Temporary develop commit for testing web links on jenkins builds

This commit is contained in:
manuroe
2016-05-02 10:59:53 +02:00
parent b78bb5fb3e
commit ebdfd16a9c
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -65,17 +65,23 @@
{
BOOL isUniversalLink;
NSLog(@"#### isUniversalLink. url.host: %@", url.host);
if ([url.host isEqualToString:@"vector.im"] || [url.host isEqualToString:@"www.vector.im"])
{
// iOS Patch: fix vector.im urls before using it
url = [Tools fixURLWithSeveralHashKeys:url];
NSLog(@"#### isUniversalLink. Fixed url: %@", url);
if (NSNotFound != [@[@"/app", @"/staging", @"/beta", @"/develop"] indexOfObject:url.path])
{
isUniversalLink = YES;
}
}
NSLog(@"#### isUniversalLink. Result: %@", @(isUniversalLink));
return isUniversalLink;
}