diff --git a/App/client-ios/Resources/client-ios.entitlements b/App/client-ios/Resources/client-ios.entitlements index c5460225092202a6000d72287bc8888a6f72e8d4..8e8b5bf0e9493dfab9ec6ddc3a93aed3b0f36e52 100644 --- a/App/client-ios/Resources/client-ios.entitlements +++ b/App/client-ios/Resources/client-ios.entitlements @@ -6,7 +6,7 @@ <string>development</string> <key>com.apple.developer.associated-domains</key> <array> - <string>applinks:xx.network</string> + <string>applinks:elixxir.io</string> </array> <key>com.apple.developer.icloud-container-identifiers</key> <array> diff --git a/Sources/App/AppDelegate.swift b/Sources/App/AppDelegate.swift index 40780f6fa7e0066ef993d1c6a519d5417a319357..4143a5f270c7179e9f11892702bf7f7db79a6800 100644 --- a/Sources/App/AppDelegate.swift +++ b/Sources/App/AppDelegate.swift @@ -165,8 +165,8 @@ public class AppDelegate: UIResponder, UIApplicationDelegate { func getUsernameFromInvitationDeepLink(_ url: URL) -> String? { if let components = URLComponents(url: url, resolvingAgainstBaseURL: false), components.scheme == "https", - components.host == "xx.network", - components.path == "/messenger/invitation", + components.host == "elixxir.io", + components.path == "/connect", let queryItem = components.queryItems?.first(where: { $0.name == "username" }), let username = queryItem.value { return username diff --git a/Sources/MenuFeature/ViewModels/MenuViewModel.swift b/Sources/MenuFeature/ViewModels/MenuViewModel.swift index 20a9ebd2565fefcb3b49756e8a60023902c6d879..b4ebd7571a0e3bafd60bb972310693af1c8fc02f 100644 --- a/Sources/MenuFeature/ViewModels/MenuViewModel.swift +++ b/Sources/MenuFeature/ViewModels/MenuViewModel.swift @@ -42,6 +42,6 @@ final class MenuViewModel { } var referralDeeplink: String { - "https://xx.network/messenger/invitation?username=\(username)" + "https://elixxir.io/connect?username=\(username)" } } diff --git a/Tests/AppTests/General/InvitationTests.swift b/Tests/AppTests/General/InvitationTests.swift index d29258e324a1d6da30fb6dc1f695dfe347115be7..220f92a8d570778df333349044f85d55b696ce3a 100644 --- a/Tests/AppTests/General/InvitationTests.swift +++ b/Tests/AppTests/General/InvitationTests.swift @@ -5,31 +5,31 @@ import XCTest final class AppDelegateTests: XCTestCase { func test_invitationUniversalLink() { XCTAssertNil(getUsernameFromInvitationDeepLink( - URL(string: "https://xx.network/messenger/invite?username=some")! + URL(string: "https://elixxir.io/connecting?username=some")! )) XCTAssertNil(getUsernameFromInvitationDeepLink( - URL(string: "http://xx.network/messenger/invitation?username=some")! + URL(string: "http://elixxir.io/connect?username=some")! )) XCTAssertNil(getUsernameFromInvitationDeepLink( - URL(string: "https://network.xx/messenger/invitation?username=some")! + URL(string: "https://io.elixxir/connect?username=some")! )) XCTAssertEqual(getUsernameFromInvitationDeepLink( - URL(string: "https://xx.network/messenger/invitation?username=brad")! + URL(string: "https://elixxir.io/connect?username=brad")! ), "brad") XCTAssertNil(getUsernameFromInvitationDeepLink( - URL(string: "https://xx.network/messenger/invitation?password=value")! + URL(string: "https://elixxir.io/connect?password=value")! )) XCTAssertNil(getUsernameFromInvitationDeepLink( - URL(string: "https://xx.network/xxmessenger/invitation?username=some")! + URL(string: "https://elixxir.io/connect?usernamer=some")! )) XCTAssertNotEqual(getUsernameFromInvitationDeepLink( - URL(string: "https://xx.network/messenger/invitation?username=anderson")! + URL(string: "https://elixxir.io/connect?username=anderson")! ), "silva") } }