Remove "Beta" from User-Agent and Version info

This commit is contained in:
Benoit Martins 2025-09-01 15:43:12 +02:00
parent e3106a3f50
commit 140f6d5e2b
2 changed files with 2 additions and 2 deletions

View file

@ -151,7 +151,7 @@ class CoreContext: ObservableObject {
let appName = Bundle.main.infoDictionary?["CFBundleName"] as? String
let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String
let userAgent = "LinphoneiOS/\(version ?? "6.0.0") Beta (\(UIDevice.current.localizedModel.replacingOccurrences(of: "'", with: ""))) LinphoneSDK"
let userAgent = "LinphoneiOS/\(version ?? "6.0.0") (\(UIDevice.current.localizedModel.replacingOccurrences(of: "'", with: ""))) LinphoneSDK"
self.mCore.setUserAgent(name: userAgent, version: self.coreVersion)
self.mCore.videoCaptureEnabled = true
self.mCore.videoDisplayEnabled = true

View file

@ -42,7 +42,7 @@ class HelpViewModel: ObservableObject {
let versionTmp = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String
let build = Bundle.main.infoDictionary?["CFBundleVersion"] as? String
self.version = (versionTmp ?? "6.0.0") + "-beta-" + (build ?? "0")
self.version = (versionTmp ?? "6.0.0") + (build ?? "0")
self.sdkVersion = Core.getVersion