Skip to content

Commit

Permalink
SDK, libwebrtc の version 文字列を作成しそちらを参照する
Browse files Browse the repository at this point in the history
  • Loading branch information
miosakuma committed Mar 27, 2024
1 parent 4b9ee1e commit 2d3482f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sora/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public struct Proxy: CustomStringConvertible {
let password: String?

/// エージェント
var agent: String = "Sora iOS SDK \(SDKInfo.version)"
var agent: String = SDKInfo.versionString

/**
初期化します。
Expand Down
6 changes: 5 additions & 1 deletion Sora/PackageInfo.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/// :nodoc:
public enum SDKInfo {
// Sora iOS SDK のバージョンを定義する
/// Sora iOS SDK のバージョンを定義する
public static let version = "2024.1.0"
/// Sora iOS SDK のバージョン文字列
public static let versionString = "Sora iOS SDK \(version)"
}

/**
Expand All @@ -26,4 +28,6 @@ public enum WebRTCInfo {
revision.startIndex, offsetBy: 7
)])
}
/// libwebrtc のバージョン文字列
public static let versionString = "Shiguredo-build \(version) (\(version).\(commitPosition).\(maintenanceVersion) \(shortRevision))"
}
4 changes: 2 additions & 2 deletions Sora/PeerChannel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@ class PeerChannel: NSObject, RTCPeerConnectionDelegate {
multistream = true
}

let soraClient = "Sora iOS SDK \(SDKInfo.version)"
let soraClient = SDKInfo.versionString

let webRTCVersion = "Shiguredo-build \(WebRTCInfo.version) (\(WebRTCInfo.version).\(WebRTCInfo.commitPosition).\(WebRTCInfo.maintenanceVersion) \(WebRTCInfo.shortRevision))"
let webRTCVersion = WebRTCInfo.versionString

let simulcast = configuration.simulcastEnabled
let connect = SignalingConnect(
Expand Down

0 comments on commit 2d3482f

Please sign in to comment.