Skip to content

Commit b1de371

Browse files
committed
Release 3.9.0
1 parent 37d0fb8 commit b1de371

File tree

16 files changed

+444
-29
lines changed

16 files changed

+444
-29
lines changed

Branch-TestBed/Branch-SDK-Tests/BNCSystemObserverTests.m

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
#import <XCTest/XCTest.h>
1010
#import "BNCSystemObserver.h"
1111

12+
@interface BNCSystemObserver ()
13+
+ (BOOL)compareUriSchemes:(NSString *)serverUriScheme With:(NSArray *)urlTypes;
14+
@end
15+
1216
@interface BNCSystemObserverTests : XCTestCase
1317

1418
@end
@@ -100,4 +104,35 @@ - (void)testIsAppClip {
100104
XCTAssert(![BNCSystemObserver isAppClip]);
101105
}
102106

107+
- (void)testCompareURIScemes {
108+
109+
NSString *serverUriScheme = @"bnctest://";
110+
NSArray *urlTypes = @[@{@"CFBundleURLSchemes" : @[@""]}, @{@"CFBundleURLSchemes" : @[@"bnctest", @"xyzs"]}];
111+
112+
XCTAssertTrue([BNCSystemObserver compareUriSchemes:serverUriScheme With:urlTypes]);
113+
114+
XCTAssertFalse([BNCSystemObserver compareUriSchemes:serverUriScheme With:nil]);
115+
116+
XCTAssertFalse([BNCSystemObserver compareUriSchemes:nil With:nil]);
117+
118+
XCTAssertFalse([BNCSystemObserver compareUriSchemes:nil With:urlTypes]);
119+
120+
serverUriScheme = @":/";
121+
XCTAssertFalse([BNCSystemObserver compareUriSchemes:serverUriScheme With:urlTypes]);
122+
123+
serverUriScheme = @"bnctest";
124+
XCTAssertTrue([BNCSystemObserver compareUriSchemes:serverUriScheme With:urlTypes]);
125+
126+
serverUriScheme = @"bnctest://";
127+
urlTypes = @[ @{@"CFBundleURLSchemes" : @[@"bnctestX", @"xyzs"]}];
128+
XCTAssertFalse([BNCSystemObserver compareUriSchemes:serverUriScheme With:urlTypes]);
129+
130+
serverUriScheme = @"://";
131+
XCTAssertFalse([BNCSystemObserver compareUriSchemes:serverUriScheme With:urlTypes]);
132+
133+
XCTAssertFalse([BNCSystemObserver compareUriSchemes:@"" With:urlTypes]);
134+
135+
XCTAssertFalse([BNCSystemObserver compareUriSchemes:@"" With:@[@{}]]);
136+
}
137+
103138
@end

Branch-TestBed/Branch-TestBed.xcodeproj/project.pbxproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@
233233
C1614D56285BC8A00098946B /* LinkPresentation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C1614D55285BC8A00098946B /* LinkPresentation.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
234234
C17DAF7B2AC20C2000B16B1A /* BranchClassTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C17DAF7A2AC20C2000B16B1A /* BranchClassTests.m */; };
235235
C1CC888229BAAFC000BDD2B5 /* BNCReferringURLUtilityTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C1CC888129BAAFC000BDD2B5 /* BNCReferringURLUtilityTests.m */; };
236+
E51F642A2CF46899000858D2 /* BranchFileLogger.h in Headers */ = {isa = PBXBuildFile; fileRef = E51F64292CF46899000858D2 /* BranchFileLogger.h */; };
237+
E56394312CC7AC9F00E18E65 /* BranchFileLogger.m in Sources */ = {isa = PBXBuildFile; fileRef = E563942F2CC7AC9500E18E65 /* BranchFileLogger.m */; };
236238
E72489D228E40D0200DCD8FD /* PasteControlViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E72489D128E40D0200DCD8FD /* PasteControlViewController.m */; };
237239
E7A728BD2AA9A112009343B7 /* BNCAPIServerTest.m in Sources */ = {isa = PBXBuildFile; fileRef = E7A728BC2AA9A112009343B7 /* BNCAPIServerTest.m */; };
238240
F1CF14111F4CC79F00BB2694 /* CoreSpotlight.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67F270881BA9FCFF002546A7 /* CoreSpotlight.framework */; settings = {ATTRIBUTES = (Required, ); }; };
@@ -536,6 +538,8 @@
536538
C1614D55285BC8A00098946B /* LinkPresentation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = LinkPresentation.framework; path = System/Library/Frameworks/LinkPresentation.framework; sourceTree = SDKROOT; };
537539
C17DAF7A2AC20C2000B16B1A /* BranchClassTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BranchClassTests.m; sourceTree = "<group>"; };
538540
C1CC888129BAAFC000BDD2B5 /* BNCReferringURLUtilityTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BNCReferringURLUtilityTests.m; sourceTree = "<group>"; };
541+
E51F64292CF46899000858D2 /* BranchFileLogger.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BranchFileLogger.h; sourceTree = "<group>"; };
542+
E563942F2CC7AC9500E18E65 /* BranchFileLogger.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BranchFileLogger.m; sourceTree = "<group>"; };
539543
E72489D028E40D0200DCD8FD /* PasteControlViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PasteControlViewController.h; sourceTree = "<group>"; };
540544
E72489D128E40D0200DCD8FD /* PasteControlViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PasteControlViewController.m; sourceTree = "<group>"; };
541545
E7A728BC2AA9A112009343B7 /* BNCAPIServerTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BNCAPIServerTest.m; sourceTree = "<group>"; };
@@ -672,6 +676,7 @@
672676
5F644B252B7AA810000DCD78 /* BranchSDK */ = {
673677
isa = PBXGroup;
674678
children = (
679+
E563942F2CC7AC9500E18E65 /* BranchFileLogger.m */,
675680
5F644BB02B7AA811000DCD78 /* BNCAppGroupsData.m */,
676681
5F644BA82B7AA811000DCD78 /* BNCAppleReceipt.m */,
677682
5F644B2B2B7AA810000DCD78 /* BNCApplication.m */,
@@ -830,6 +835,7 @@
830835
5F644B862B7AA811000DCD78 /* NSError+Branch.h */,
831836
5F644B822B7AA811000DCD78 /* NSMutableDictionary+Branch.h */,
832837
5F644B8B2B7AA811000DCD78 /* NSString+Branch.h */,
838+
E51F64292CF46899000858D2 /* BranchFileLogger.h */,
833839
5F644B752B7AA810000DCD78 /* UIViewController+Branch.h */,
834840
);
835841
path = Private;
@@ -954,6 +960,7 @@
954960
isa = PBXHeadersBuildPhase;
955961
buildActionMask = 2147483647;
956962
files = (
963+
E51F642A2CF46899000858D2 /* BranchFileLogger.h in Headers */,
957964
5F644BE52B7AA811000DCD78 /* BNCLinkData.h in Headers */,
958965
5F644BE62B7AA811000DCD78 /* BranchDelegate.h in Headers */,
959966
5F644BE72B7AA811000DCD78 /* BranchQRCode.h in Headers */,
@@ -1313,6 +1320,7 @@
13131320
5F644BD72B7AA811000DCD78 /* BNCNetworkService.m in Sources */,
13141321
5F644C402B7AA811000DCD78 /* UIViewController+Branch.m in Sources */,
13151322
5F644BC12B7AA811000DCD78 /* BNCServerRequestQueue.m in Sources */,
1323+
E56394312CC7AC9F00E18E65 /* BranchFileLogger.m in Sources */,
13161324
5F644C452B7AA811000DCD78 /* BranchOpenRequest.m in Sources */,
13171325
5F644C312B7AA811000DCD78 /* BNCLinkData.m in Sources */,
13181326
5F644BD22B7AA811000DCD78 /* BranchContentDiscoveryManifest.m in Sources */,

Branch-TestBed/Branch-TestBed/AppDelegate.m

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#import "ViewController.h"
1313
#import "Branch.h"
1414
#import "BNCEncodingUtils.h"
15+
#import "BranchEvent.h"
1516

1617
AppDelegate* appDelegate = nil;
1718
void APPLogHookFunction(NSDate*_Nonnull timestamp, BranchLogLevel level, NSString*_Nullable message);
@@ -33,7 +34,6 @@ - (BOOL)application:(UIApplication *)application
3334

3435
// Branch.useTestBranchKey = YES; // Make sure to comment this line out for production apps!!!
3536
Branch *branch = [Branch getInstance];
36-
3737

3838
// Change the Branch base API URL
3939
//[Branch setAPIUrl:@"https://api3.branch.io"];
@@ -89,6 +89,12 @@ - (BOOL)application:(UIApplication *)application
8989
[self handleDeepLinkObject:universalObject linkProperties:linkProperties error:error];
9090
}];
9191

92+
93+
BranchEvent *earlyEvent = [BranchEvent standardEvent:BNCAddToCartEvent];
94+
NSLog(@"Logging Early Event: %@", earlyEvent);
95+
[earlyEvent logEvent];
96+
97+
9298
// Push notification support (Optional)
9399
// [self registerForPushNotifications:application];
94100

BranchSDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "BranchSDK"
3-
s.version = "3.8.0"
3+
s.version = "3.9.0"
44
s.summary = "Create an HTTP URL for any piece of content in your app"
55
s.description = <<-DESC
66
- Want the highest possible conversions on your sharing feature?

BranchSDK.xcodeproj/project.pbxproj

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,11 @@
489489
5FCDD5B22B7AC89100EAF29F /* BranchSDK.h in Headers */ = {isa = PBXBuildFile; fileRef = 5FF2AFDF28E7C22100393216 /* BranchSDK.h */; settings = {ATTRIBUTES = (Public, ); }; };
490490
5FCDD5B32B7AC89200EAF29F /* BranchSDK.h in Headers */ = {isa = PBXBuildFile; fileRef = 5FF2AFDF28E7C22100393216 /* BranchSDK.h */; settings = {ATTRIBUTES = (Public, ); }; };
491491
5FCDD5B42B7AC89200EAF29F /* BranchSDK.h in Headers */ = {isa = PBXBuildFile; fileRef = 5FF2AFDF28E7C22100393216 /* BranchSDK.h */; settings = {ATTRIBUTES = (Public, ); }; };
492+
E52E5B062CC79E4E00F553EE /* BranchFileLogger.h in Headers */ = {isa = PBXBuildFile; fileRef = E52E5B052CC79E4E00F553EE /* BranchFileLogger.h */; settings = {ATTRIBUTES = (Public, ); }; };
493+
E52E5B072CC79E4E00F553EE /* BranchFileLogger.h in Headers */ = {isa = PBXBuildFile; fileRef = E52E5B052CC79E4E00F553EE /* BranchFileLogger.h */; };
494+
E52E5B0A2CC79E5C00F553EE /* BranchFileLogger.m in Sources */ = {isa = PBXBuildFile; fileRef = E52E5B092CC79E5C00F553EE /* BranchFileLogger.m */; };
495+
E52E5B0B2CC79E5C00F553EE /* BranchFileLogger.m in Sources */ = {isa = PBXBuildFile; fileRef = E52E5B092CC79E5C00F553EE /* BranchFileLogger.m */; };
496+
E563942E2CC7A8E600E18E65 /* BranchFileLogger.h in Headers */ = {isa = PBXBuildFile; fileRef = E52E5B052CC79E4E00F553EE /* BranchFileLogger.h */; };
492497
/* End PBXBuildFile section */
493498

494499
/* Begin PBXContainerItemProxy section */
@@ -698,6 +703,8 @@
698703
5FF2AFDC28E7BF8A00393216 /* build_xcframework.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = build_xcframework.sh; sourceTree = "<group>"; };
699704
5FF2AFDE28E7C22100393216 /* module.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = module.modulemap; sourceTree = "<group>"; };
700705
5FF2AFDF28E7C22100393216 /* BranchSDK.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BranchSDK.h; sourceTree = "<group>"; };
706+
E52E5B052CC79E4E00F553EE /* BranchFileLogger.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BranchFileLogger.h; sourceTree = "<group>"; };
707+
E52E5B092CC79E5C00F553EE /* BranchFileLogger.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BranchFileLogger.m; sourceTree = "<group>"; };
701708
/* End PBXFileReference section */
702709

703710
/* Begin PBXFrameworksBuildPhase section */
@@ -811,6 +818,7 @@
811818
5FCDD36B2B7AC6A100EAF29F /* BranchSDK */ = {
812819
isa = PBXGroup;
813820
children = (
821+
E52E5B092CC79E5C00F553EE /* BranchFileLogger.m */,
814822
5FCDD3F62B7AC6A100EAF29F /* BNCAppGroupsData.m */,
815823
5FCDD3EE2B7AC6A100EAF29F /* BNCAppleReceipt.m */,
816824
5FCDD3712B7AC6A100EAF29F /* BNCApplication.m */,
@@ -969,6 +977,7 @@
969977
5FCDD3CC2B7AC6A100EAF29F /* NSError+Branch.h */,
970978
5FCDD3C82B7AC6A100EAF29F /* NSMutableDictionary+Branch.h */,
971979
5FCDD3D12B7AC6A100EAF29F /* NSString+Branch.h */,
980+
E52E5B052CC79E4E00F553EE /* BranchFileLogger.h */,
972981
5FCDD3BB2B7AC6A100EAF29F /* UIViewController+Branch.h */,
973982
);
974983
path = Private;
@@ -1029,6 +1038,7 @@
10291038
5FCDD4A12B7AC6A200EAF29F /* BNCServerResponse.h in Headers */,
10301039
5FCDD4C22B7AC6A200EAF29F /* BranchDeepLinkingController.h in Headers */,
10311040
5FCDD4B92B7AC6A200EAF29F /* BranchPasteControl.h in Headers */,
1041+
E52E5B062CC79E4E00F553EE /* BranchFileLogger.h in Headers */,
10321042
5FCDD5072B7AC6A300EAF29F /* BNCUrlQueryParameter.h in Headers */,
10331043
5FCDD5462B7AC6A300EAF29F /* BNCConfig.h in Headers */,
10341044
5FCDD4E62B7AC6A200EAF29F /* UIViewController+Branch.h in Headers */,
@@ -1110,6 +1120,7 @@
11101120
5FCDD4C32B7AC6A200EAF29F /* BranchDeepLinkingController.h in Headers */,
11111121
5FCDD4BA2B7AC6A200EAF29F /* BranchPasteControl.h in Headers */,
11121122
5FCDD49F2B7AC6A200EAF29F /* Branch.h in Headers */,
1123+
E52E5B072CC79E4E00F553EE /* BranchFileLogger.h in Headers */,
11131124
5FCDD5082B7AC6A300EAF29F /* BNCUrlQueryParameter.h in Headers */,
11141125
5FCDD5472B7AC6A300EAF29F /* BNCConfig.h in Headers */,
11151126
5F5FDA1B2B7DE31E00F14A43 /* BranchLogger.h in Headers */,
@@ -1190,6 +1201,7 @@
11901201
5FCDD4A02B7AC6A200EAF29F /* Branch.h in Headers */,
11911202
5FCDD5092B7AC6A300EAF29F /* BNCUrlQueryParameter.h in Headers */,
11921203
5FCDD5482B7AC6A300EAF29F /* BNCConfig.h in Headers */,
1204+
E563942E2CC7A8E600E18E65 /* BranchFileLogger.h in Headers */,
11931205
5FCDD4E82B7AC6A200EAF29F /* UIViewController+Branch.h in Headers */,
11941206
5FCDD54B2B7AC6A300EAF29F /* BranchConstants.h in Headers */,
11951207
5F5FDA1C2B7DE31E00F14A43 /* BranchLogger.h in Headers */,
@@ -1608,6 +1620,7 @@
16081620
5FCDD4592B7AC6A100EAF29F /* BNCNetworkService.m in Sources */,
16091621
5FCDD5942B7AC6A400EAF29F /* UIViewController+Branch.m in Sources */,
16101622
5FCDD4172B7AC6A100EAF29F /* BNCServerRequestQueue.m in Sources */,
1623+
E52E5B0A2CC79E5C00F553EE /* BranchFileLogger.m in Sources */,
16111624
5FCDD5A32B7AC6A400EAF29F /* BranchOpenRequest.m in Sources */,
16121625
5FCDD5672B7AC6A300EAF29F /* BNCLinkData.m in Sources */,
16131626
5FCDD44A2B7AC6A100EAF29F /* BranchContentDiscoveryManifest.m in Sources */,
@@ -1712,6 +1725,7 @@
17121725
5FCDD45A2B7AC6A100EAF29F /* BNCNetworkService.m in Sources */,
17131726
5FCDD5952B7AC6A400EAF29F /* UIViewController+Branch.m in Sources */,
17141727
5FCDD4182B7AC6A100EAF29F /* BNCServerRequestQueue.m in Sources */,
1728+
E52E5B0B2CC79E5C00F553EE /* BranchFileLogger.m in Sources */,
17151729
5FCDD5A42B7AC6A400EAF29F /* BranchOpenRequest.m in Sources */,
17161730
5FCDD5682B7AC6A400EAF29F /* BNCLinkData.m in Sources */,
17171731
5FCDD44B2B7AC6A100EAF29F /* BranchContentDiscoveryManifest.m in Sources */,
@@ -1974,7 +1988,7 @@
19741988
"@executable_path/Frameworks",
19751989
"@loader_path/Frameworks",
19761990
);
1977-
MARKETING_VERSION = 3.8.0;
1991+
MARKETING_VERSION = 3.9.0;
19781992
OTHER_LDFLAGS = (
19791993
"-weak_framework",
19801994
LinkPresentation,
@@ -2009,7 +2023,7 @@
20092023
"@executable_path/Frameworks",
20102024
"@loader_path/Frameworks",
20112025
);
2012-
MARKETING_VERSION = 3.8.0;
2026+
MARKETING_VERSION = 3.9.0;
20132027
OTHER_LDFLAGS = (
20142028
"-weak_framework",
20152029
LinkPresentation,
@@ -2215,7 +2229,7 @@
22152229
"@loader_path/Frameworks",
22162230
);
22172231
MACH_O_TYPE = staticlib;
2218-
MARKETING_VERSION = 3.8.0;
2232+
MARKETING_VERSION = 3.9.0;
22192233
OTHER_LDFLAGS = (
22202234
"-weak_framework",
22212235
LinkPresentation,
@@ -2254,7 +2268,7 @@
22542268
"@loader_path/Frameworks",
22552269
);
22562270
MACH_O_TYPE = staticlib;
2257-
MARKETING_VERSION = 3.8.0;
2271+
MARKETING_VERSION = 3.9.0;
22582272
OTHER_LDFLAGS = (
22592273
"-weak_framework",
22602274
LinkPresentation,
@@ -2291,7 +2305,7 @@
22912305
"@executable_path/Frameworks",
22922306
"@loader_path/Frameworks",
22932307
);
2294-
MARKETING_VERSION = 3.8.0;
2308+
MARKETING_VERSION = 3.9.0;
22952309
OTHER_LDFLAGS = (
22962310
"-weak_framework",
22972311
LinkPresentation,
@@ -2326,7 +2340,7 @@
23262340
"@executable_path/Frameworks",
23272341
"@loader_path/Frameworks",
23282342
);
2329-
MARKETING_VERSION = 3.8.0;
2343+
MARKETING_VERSION = 3.9.0;
23302344
OTHER_LDFLAGS = (
23312345
"-weak_framework",
23322346
LinkPresentation,

ChangeLog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
Branch iOS SDK Change Log
22

3+
v.3.9.0
4+
- Integration Validator 2.0 - Improved integration validator to provide references to how to fix when a check fails, export logs from the app and invoke it using query parameter
5+
- Fixed Integration Validator crash when URIs and bundle ids from the server are empty.
6+
- Fixed Init Race for Push notifications
7+
- Fixed issue which was not sending linking request when tracking is disabled and app is launched via spotlight results.
8+
- Added test apps for Mobileboost.
9+
- Added GHA for Mobileboost.
10+
- Fix for early branch init on install.
11+
- Fixed compilation error for enableLoggingAtLevel API when used without callback.
12+
313
v.3.8.0
414
- Added new `BranchAdvancedLogCallback` which contains request and response data for Branch network requests
515
- Added ability to set Consumer Protection Attribution Level through the `branch.json` file

Sources/BranchSDK/BNCConfig.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include "BNCConfig.h"
1010

11-
NSString * const BNC_SDK_VERSION = @"3.8.0";
11+
NSString * const BNC_SDK_VERSION = @"3.9.0";
1212
NSString * const BNC_LINK_URL = @"https://bnc.lt";
1313
NSString * const BNC_CDN_URL = @"https://cdn.branch.io";
1414

Sources/BranchSDK/BNCSystemObserver.m

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,37 @@ + (NSString *)defaultURIScheme {
152152

153153
+ (BOOL)compareUriSchemes : (NSString *) serverUriScheme {
154154
NSArray *urlTypes = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleURLTypes"];
155+
return [self compareUriSchemes:serverUriScheme With:urlTypes];
156+
}
157+
158+
+ (BOOL)compareUriSchemes:(NSString *)serverUriScheme With:(NSArray *)urlTypes {
159+
NSString * serverUriSchemeWithoutSuffix ;
160+
161+
if ([serverUriScheme hasSuffix:@"://"]) {
162+
serverUriSchemeWithoutSuffix = [serverUriScheme substringToIndex:[serverUriScheme length] - 3];
163+
} else {
164+
serverUriSchemeWithoutSuffix = serverUriScheme;
165+
}
155166

156167
for (NSDictionary *urlType in urlTypes) {
157168

158169
NSArray *urlSchemes = [urlType objectForKey:@"CFBundleURLSchemes"];
159170
for (NSString *uriScheme in urlSchemes) {
160-
NSString * serverUriSchemeWithoutSuffix = [serverUriScheme substringToIndex:[serverUriScheme length] - 3];
161171
if ([uriScheme isEqualToString:serverUriSchemeWithoutSuffix]) {
162-
return true; }
172+
return true;
173+
}
174+
}
175+
}
176+
return false;
177+
}
178+
179+
+ (BOOL)compareLinkDomain:(NSString *)serverLinkDomain {
180+
NSArray *linkDomains = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"branch_universal_link_domains"];
181+
182+
for (NSString *domain in linkDomains) {
183+
if ([domain isEqualToString:serverLinkDomain]) {
184+
return true;
163185
}
164-
// If no Uri schemes match the one set on the dashboard
165-
return false;
166186
}
167187
return false;
168188
}

0 commit comments

Comments
 (0)