Merge pull request #3503 from vector-im/element_3483

Update Provisioning Link's Domain
This commit is contained in:
ismailgulek 2020-08-06 13:59:18 +03:00 committed by GitHub
commit 4c3b0a3db8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 2 deletions

View file

@ -44,6 +44,7 @@ Improvements:
Bug fix: Bug fix:
* Rebranding: Remove Riot from app name (#3497). * Rebranding: Remove Riot from app name (#3497).
* AuthenticationViewController: Fix custom homeserver textfield scroll issue (#3467). * AuthenticationViewController: Fix custom homeserver textfield scroll issue (#3467).
* Rebranding: Update provisioning universal link domain (#3483).
Changes in 1.0.2 (2020-07-28) Changes in 1.0.2 (2020-07-28)
=============================================== ===============================================

View file

@ -79,6 +79,7 @@ final class BuildSettings: NSObject {
"app.element.io": [], "app.element.io": [],
"staging.element.io": [], "staging.element.io": [],
"develop.element.io": [], "develop.element.io": [],
"mobile.element.io": [""],
// Historical ones // Historical ones
"riot.im": ["/app", "/staging", "/develop"], "riot.im": ["/app", "/staging", "/develop"],
"www.riot.im": ["/app", "/staging", "/develop"], "www.riot.im": ["/app", "/staging", "/develop"],

View file

@ -1229,7 +1229,7 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
[[NSNotificationCenter defaultCenter] postNotificationName:AppDelegateUniversalLinkDidChangeNotification object:nil]; [[NSNotificationCenter defaultCenter] postNotificationName:AppDelegateUniversalLinkDidChangeNotification object:nil];
} }
if ([webURL.path hasPrefix:@"/config"]) if ([webURL.path isEqualToString:@"/"])
{ {
return [self handleServerProvionningLink:webURL]; return [self handleServerProvionningLink:webURL];
} }
@ -1772,7 +1772,7 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
- (void)parseServerProvionningLink:(NSURL*)link homeserver:(NSString**)homeserver identityServer:(NSString**)identityServer - (void)parseServerProvionningLink:(NSURL*)link homeserver:(NSString**)homeserver identityServer:(NSString**)identityServer
{ {
if ([link.path isEqualToString:@"/config/config"]) if ([link.path isEqualToString:@"/"])
{ {
NSURLComponents *linkURLComponents = [NSURLComponents componentsWithURL:link resolvingAgainstBaseURL:NO]; NSURLComponents *linkURLComponents = [NSURLComponents componentsWithURL:link resolvingAgainstBaseURL:NO];
for (NSURLQueryItem *item in linkURLComponents.queryItems) for (NSURLQueryItem *item in linkURLComponents.queryItems)

View file

@ -15,6 +15,7 @@
<string>applinks:app.element.io</string> <string>applinks:app.element.io</string>
<string>applinks:staging.element.io</string> <string>applinks:staging.element.io</string>
<string>applinks:develop.element.io</string> <string>applinks:develop.element.io</string>
<string>applinks:mobile.element.io</string>
<string>webcredentials:*.element.io</string> <string>webcredentials:*.element.io</string>
</array> </array>
<key>com.apple.developer.icloud-container-identifiers</key> <key>com.apple.developer.icloud-container-identifiers</key>