mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Hardcode the sliding sync proxy. (#502)
* Add support for migrating between versions. * Rename InfoPlistReader property. * Bump SDK version.
This commit is contained in:
@@ -22,7 +22,7 @@ class KeychainControllerTests: XCTestCase {
|
||||
|
||||
override func setUp() {
|
||||
keychain = KeychainController(service: .tests,
|
||||
accessGroup: InfoPlistReader.target.keychainAccessGroupIdentifier)
|
||||
accessGroup: InfoPlistReader.main.keychainAccessGroupIdentifier)
|
||||
keychain.removeAllRestorationTokens()
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ final class NotificationManagerTests: XCTestCase {
|
||||
XCTAssertEqual(clientProxy.setPusherAppId, settings?.pusherAppId)
|
||||
XCTAssertEqual(clientProxy.setPusherKind, .http)
|
||||
XCTAssertEqual(clientProxy.setPusherAppId, settings?.pusherAppId)
|
||||
XCTAssertEqual(clientProxy.setPusherAppDisplayName, "\(InfoPlistReader.target.bundleDisplayName) (iOS)")
|
||||
XCTAssertEqual(clientProxy.setPusherAppDisplayName, "\(InfoPlistReader.main.bundleDisplayName) (iOS)")
|
||||
XCTAssertEqual(clientProxy.setPusherDeviceDisplayName, UIDevice.current.name)
|
||||
XCTAssertNotNil(clientProxy.setPusherProfileTag)
|
||||
XCTAssertEqual(clientProxy.setPusherLang, Bundle.preferredLanguages.first)
|
||||
|
||||
@@ -25,11 +25,11 @@ class UserAgentBuilderTests: XCTestCase {
|
||||
|
||||
func testContainsClientName() {
|
||||
let userAgent = UserAgentBuilder.makeASCIIUserAgent()
|
||||
XCTAssert(userAgent?.contains(InfoPlistReader.target.bundleDisplayName) == true, "\(userAgent ?? "nil") does not contain client name")
|
||||
XCTAssert(userAgent?.contains(InfoPlistReader.main.bundleDisplayName) == true, "\(userAgent ?? "nil") does not contain client name")
|
||||
}
|
||||
|
||||
func testContainsClientVersion() {
|
||||
let userAgent = UserAgentBuilder.makeASCIIUserAgent()
|
||||
XCTAssert(userAgent?.contains(InfoPlistReader.target.bundleShortVersionString) == true, "\(userAgent ?? "nil") does not contain client version")
|
||||
XCTAssert(userAgent?.contains(InfoPlistReader.main.bundleShortVersionString) == true, "\(userAgent ?? "nil") does not contain client version")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user