Skip to content

Commit 174c8ec

Browse files
Merge branch 'master' into SDK-2055
2 parents dfe5e21 + b1edfdd commit 174c8ec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+149
-801
lines changed

.github/workflows/dependabot-merger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Get list of PRs from dependabot
3535
id: pr_list
3636
run: |
37-
PR_LIST=$(gh pr list --json number,headRefName --jq '.[] | "\(.number) \(.headRefName)"' | grep dependabot)
37+
PR_LIST=$(gh pr list --json number,author,headRefName --jq '.[] | select( .author.is_bot == true and .author.login == "app/dependabot" ) | "\(.number) \(.headRefName)"')
3838
PR_LIST=$(echo "$PR_LIST" | tr -d '\r')
3939
if [ -z "$PR_LIST" ]; then
4040
echo "No PRs from dependabot found."

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,6 @@ - (void)testScreenScale {
153153
XCTAssert(self.deviceInfo.screenScale.intValue >= 1);
154154
}
155155

156-
- (void)testCarrierName_Simulator {
157-
XCTAssertNil(self.deviceInfo.carrierName);
158-
}
159-
160156
- (void)testLocale {
161157
NSString *locale = [NSLocale currentLocale].localeIdentifier;
162158
XCTAssertNotNil(locale);

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

Lines changed: 0 additions & 73 deletions
This file was deleted.

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

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,53 +31,41 @@ - (void)tearDown {
3131

3232
- (void)addStringToPasteboard {
3333
#if !TARGET_OS_TV
34-
if (@available(iOS 10.0, *)) {
35-
[UIPasteboard.generalPasteboard setString:self.testString];
36-
}
34+
[UIPasteboard.generalPasteboard setString:self.testString];
3735
#endif
3836
}
3937

4038
- (void)addBranchURLToPasteboard {
4139
#if !TARGET_OS_TV
42-
if (@available(iOS 10.0, *)) {
43-
[UIPasteboard.generalPasteboard setURL:self.testBranchURL];
44-
}
40+
[UIPasteboard.generalPasteboard setURL:self.testBranchURL];
4541
#endif
4642
}
4743

4844
- (void)addNonBranchURLToPasteboard {
4945
#if !TARGET_OS_TV
50-
if (@available(iOS 10.0, *)) {
51-
[UIPasteboard.generalPasteboard setURL:[NSURL URLWithString:@"https://www.apple.com"]];
52-
}
46+
[UIPasteboard.generalPasteboard setURL:[NSURL URLWithString:@"https://www.apple.com"]];
5347
#endif
5448
}
5549

5650
- (void)clearPasteboard {
5751
#if !TARGET_OS_TV
58-
if (@available(iOS 10.0, *)) {
59-
// cannot delete items from the pasteboard, but we can put something else on there
60-
[[UIPasteboard generalPasteboard] setString:@""];
61-
}
52+
// cannot delete items from the pasteboard, but we can put something else on there
53+
[[UIPasteboard generalPasteboard] setString:@""];
6254
#endif
6355
}
6456

6557
- (NSString *)getStringFromClipboard {
6658
NSString *string = nil;
6759
#if !TARGET_OS_TV
68-
if (@available(iOS 10.0, *)) {
69-
string = [UIPasteboard.generalPasteboard string];
70-
}
60+
string = [UIPasteboard.generalPasteboard string];
7161
#endif
7262
return string;
7363
}
7464

7565
- (NSURL *)getURLFromPasteboard {
7666
NSURL *url = nil;
7767
#if !TARGET_OS_TV
78-
if (@available(iOS 10.0, *)) {
79-
url = [UIPasteboard.generalPasteboard URL];
80-
}
68+
url = [UIPasteboard.generalPasteboard URL];
8169
#endif
8270
return url;
8371
}
@@ -157,7 +145,7 @@ - (void)testCheckForBranchLink_noLink {
157145
// This test fails intermittently when executed with other tests - depending upon the order in which its executed
158146
- (void) testPassPasteControl {
159147
#if !TARGET_OS_TV
160-
if (@available(iOS 16.0, *)) {
148+
if (@available(iOS 16.0, macCatalyst 16.0, *)) {
161149

162150
long long timeStamp = ([[NSDate date] timeIntervalSince1970] - 5*60)*1000; // 5 minute earlier timestamp
163151
NSString *urlString = [NSString stringWithFormat:@"https://bnctestbed-alternate.app.link/9R7MbTmnRtb?__branch_flow_type=viewapp&__branch_flow_id=1105940563590163783&__branch_mobile_deepview_type=1&nl_opt_in=1&_cpts=%lld", timeStamp];

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ - (void)tearDown {
4747

4848
- (void)testDefaultMaxTimeout {
4949
NSTimeInterval days;
50-
if (@available(iOS 16.1, *)) {
50+
if (@available(iOS 16.1, macCatalyst 16.1, *)) {
5151
days = 3600.0 * 24.0 * 60.0; // one day
5252
} else {
5353
days = 3600.0 * 24.0; // one day
@@ -66,7 +66,7 @@ - (void)testShouldAttemptSKAdNetworkCalloutFalse {
6666

6767
- (void)testPostbackCall {
6868

69-
if (@available(iOS 16.1, *)) {
69+
if (@available(iOS 16.1, macCatalyst 16.1, *)) {
7070
self.skAdNetwork.maxTimeSinceInstall = 3600.0 * 24.0 * 60.0;
7171
} else {
7272
self.skAdNetwork.maxTimeSinceInstall = 3600.0 * 24.0; // one day
@@ -94,7 +94,7 @@ - (void)testPostbackCall {
9494

9595
- (void)testSKAN4ParamsDefaultValues {
9696

97-
if (@available(iOS 16.1, *)) {
97+
if (@available(iOS 16.1, macCatalyst 16.1, *)) {
9898
NSString *coarseValue = [[BNCSKAdNetwork sharedInstance] getCoarseConversionValueFromDataResponse:@{}];
9999
XCTAssertTrue([coarseValue isEqualToString:@"low"]);
100100

@@ -108,7 +108,7 @@ - (void)testSKAN4ParamsDefaultValues {
108108

109109
- (void)testSKAN4ParamsValues {
110110

111-
if (@available(iOS 16.1, *)) {
111+
if (@available(iOS 16.1, macCatalyst 16.1, *)) {
112112

113113
NSDictionary *response = @{@"update_conversion_value": @16, @"coarse_key": @"high", @"locked": @YES, @"ascending_only":@NO };
114114
BNCSKAdNetwork *adNetwork = [BNCSKAdNetwork sharedInstance];

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

Lines changed: 0 additions & 43 deletions
This file was deleted.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ - (void)testAddLPLinkMetadata {
2323

2424
BranchShareLink *bsl = [[BranchShareLink alloc] initWithUniversalObject:buo linkProperties:lp];
2525

26-
if (@available(iOS 13.0, *)) {
26+
if (@available(iOS 13.0, macCatalyst 13.1, *)) {
2727
NSURL *imageURL = [NSURL URLWithString:@"https://cdn.branch.io/branch-assets/1598575682753-og_image.png"];
2828
NSData *imageData = [NSData dataWithContentsOfURL:imageURL];
2929
UIImage *iconImage = [UIImage imageWithData:imageData];

Branch-TestBed/Branch-TestBed-UITests/UITestSafari.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
//
88

99
#import <XCTest/XCTest.h>
10-
//#import "Branch/NSString+Branch.h"
11-
12-
// Ignore UITests availability for iOS 8 and lower in this example.
13-
#pragma clang diagnostic ignored "-Wpartial-availability"
1410

1511
static NSTimeInterval const kDeepLinkSleepTimeInterval = 10.0;
1612
static NSTimeInterval const kLoadWikiPageTimeInterval = 3.0;

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

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,7 @@
164164
5F4101F526851DC7003699AD /* BNCPasteboard.h in Headers */ = {isa = PBXBuildFile; fileRef = 5F4101F326851DC7003699AD /* BNCPasteboard.h */; };
165165
5F4101F626851DC7003699AD /* BNCPasteboard.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F4101F426851DC7003699AD /* BNCPasteboard.m */; };
166166
5F42763325DB3694005B9BBC /* AdServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F42763225DB3694005B9BBC /* AdServices.framework */; };
167-
5F437E35237DDF770052064B /* BNCTelephony.h in Headers */ = {isa = PBXBuildFile; fileRef = 5F437E33237DDF770052064B /* BNCTelephony.h */; };
168-
5F437E36237DDF770052064B /* BNCTelephony.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F437E34237DDF770052064B /* BNCTelephony.m */; };
169167
5F437E38237DE1320052064B /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F437E37237DE1320052064B /* CoreTelephony.framework */; settings = {ATTRIBUTES = (Required, ); }; };
170-
5F437E3A237DE3480052064B /* BNCTelephonyTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F437E39237DE3480052064B /* BNCTelephonyTests.m */; };
171168
5F437E3D237E03C00052064B /* BNCDeviceSystem.h in Headers */ = {isa = PBXBuildFile; fileRef = 5F437E3B237E03C00052064B /* BNCDeviceSystem.h */; };
172169
5F437E3E237E03C00052064B /* BNCDeviceSystem.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F437E3C237E03C00052064B /* BNCDeviceSystem.m */; };
173170
5F437E40237E1A560052064B /* BNCDeviceSystemTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F437E3F237E1A560052064B /* BNCDeviceSystemTests.m */; };
@@ -193,9 +190,6 @@
193190
5F92B23223834AFD00CA909B /* BNCReachability.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F92B23023834AFD00CA909B /* BNCReachability.m */; };
194191
5F92B23423835FEB00CA909B /* BNCReachabilityTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F92B23323835FEB00CA909B /* BNCReachabilityTests.m */; };
195192
5F92B2362383644C00CA909B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F92B2352383644C00CA909B /* SystemConfiguration.framework */; };
196-
5F92B2392383703700CA909B /* BNCLocale.h in Headers */ = {isa = PBXBuildFile; fileRef = 5F92B2372383703700CA909B /* BNCLocale.h */; };
197-
5F92B23A2383703700CA909B /* BNCLocale.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F92B2382383703700CA909B /* BNCLocale.m */; };
198-
5F92B23C2384744A00CA909B /* BNCLocaleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F92B23B2384744A00CA909B /* BNCLocaleTests.m */; };
199193
5F92B23F238486E200CA909B /* BNCNetworkInterface.h in Headers */ = {isa = PBXBuildFile; fileRef = 5F92B23D238486E200CA909B /* BNCNetworkInterface.h */; };
200194
5F92B240238486E200CA909B /* BNCNetworkInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F92B23E238486E200CA909B /* BNCNetworkInterface.m */; };
201195
5F92B242238752A500CA909B /* BNCDeviceInfoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F92B241238752A500CA909B /* BNCDeviceInfoTests.m */; };
@@ -485,10 +479,7 @@
485479
5F4101F326851DC7003699AD /* BNCPasteboard.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BNCPasteboard.h; sourceTree = "<group>"; };
486480
5F4101F426851DC7003699AD /* BNCPasteboard.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BNCPasteboard.m; sourceTree = "<group>"; };
487481
5F42763225DB3694005B9BBC /* AdServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AdServices.framework; path = System/Library/Frameworks/AdServices.framework; sourceTree = SDKROOT; };
488-
5F437E33237DDF770052064B /* BNCTelephony.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BNCTelephony.h; sourceTree = "<group>"; };
489-
5F437E34237DDF770052064B /* BNCTelephony.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BNCTelephony.m; sourceTree = "<group>"; };
490482
5F437E37237DE1320052064B /* CoreTelephony.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreTelephony.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreTelephony.framework; sourceTree = DEVELOPER_DIR; };
491-
5F437E39237DE3480052064B /* BNCTelephonyTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BNCTelephonyTests.m; sourceTree = "<group>"; };
492483
5F437E3B237E03C00052064B /* BNCDeviceSystem.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BNCDeviceSystem.h; sourceTree = "<group>"; };
493484
5F437E3C237E03C00052064B /* BNCDeviceSystem.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BNCDeviceSystem.m; sourceTree = "<group>"; };
494485
5F437E3F237E1A560052064B /* BNCDeviceSystemTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BNCDeviceSystemTests.m; sourceTree = "<group>"; };
@@ -515,9 +506,6 @@
515506
5F92B23023834AFD00CA909B /* BNCReachability.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BNCReachability.m; sourceTree = "<group>"; };
516507
5F92B23323835FEB00CA909B /* BNCReachabilityTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BNCReachabilityTests.m; sourceTree = "<group>"; };
517508
5F92B2352383644C00CA909B /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/SystemConfiguration.framework; sourceTree = DEVELOPER_DIR; };
518-
5F92B2372383703700CA909B /* BNCLocale.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BNCLocale.h; sourceTree = "<group>"; };
519-
5F92B2382383703700CA909B /* BNCLocale.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BNCLocale.m; sourceTree = "<group>"; };
520-
5F92B23B2384744A00CA909B /* BNCLocaleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BNCLocaleTests.m; sourceTree = "<group>"; };
521509
5F92B23D238486E200CA909B /* BNCNetworkInterface.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BNCNetworkInterface.h; sourceTree = "<group>"; };
522510
5F92B23E238486E200CA909B /* BNCNetworkInterface.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BNCNetworkInterface.m; sourceTree = "<group>"; };
523511
5F92B241238752A500CA909B /* BNCDeviceInfoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BNCDeviceInfoTests.m; sourceTree = "<group>"; };
@@ -732,7 +720,6 @@
732720
5F73FC8023314697000EBD32 /* BNCJSONUtilityTests.m */,
733721
5F8BB66D278771890055D2DC /* BNCKeyChainTests.m */,
734722
4D1683842098C901008819E3 /* BNCLinkDataTests.m */,
735-
5F92B23B2384744A00CA909B /* BNCLocaleTests.m */,
736723
4D1683902098C901008819E3 /* BNCLog.Test.m */,
737724
5FA9112E29BC662000F3D35C /* BNCNetworkInterfaceTests.m */,
738725
5FDF91582581CDF4009BE5A3 /* BNCPartnerParametersTests.m */,
@@ -745,7 +732,6 @@
745732
5FB6CC12264F0C7C0020E478 /* BNCServerRequestQueueTests.m */,
746733
5FDB04F324E6156800F2F267 /* BNCSKAdNetworkTests.m */,
747734
4D16838F2098C901008819E3 /* BNCSystemObserverTests.m */,
748-
5F437E39237DE3480052064B /* BNCTelephonyTests.m */,
749735
4D1683A12098C901008819E3 /* BNCTestCase.h */,
750736
4D16838D2098C901008819E3 /* BNCTestCase.m */,
751737
4D7881F9209CF2D4002B750F /* BNCTestCase.strings */,
@@ -960,8 +946,6 @@
960946
7E30BCF61A72FE7900AC7402 /* BNCLinkCache.m */,
961947
7E30BCF21A71EEEE00AC7402 /* BNCLinkData.h */,
962948
7E30BCF31A71EEEE00AC7402 /* BNCLinkData.m */,
963-
5F92B2372383703700CA909B /* BNCLocale.h */,
964-
5F92B2382383703700CA909B /* BNCLocale.m */,
965949
4DA577151E67B1D600A43BDD /* BNCLog.h */,
966950
4DA577161E67B1D600A43BDD /* BNCLog.m */,
967951
5F92B23D238486E200CA909B /* BNCNetworkInterface.h */,
@@ -995,8 +979,6 @@
995979
F185BAA91F3D30D70056300C /* BNCSpotlightService.m */,
996980
670016C71946309100A9E103 /* BNCSystemObserver.h */,
997981
670016C81946309100A9E103 /* BNCSystemObserver.m */,
998-
5F437E33237DDF770052064B /* BNCTelephony.h */,
999-
5F437E34237DDF770052064B /* BNCTelephony.m */,
1000982
4D7881F6209CF28E002B750F /* BNCThreads.h */,
1001983
4D7881F5209CF28E002B750F /* BNCThreads.m */,
1002984
5F08460F23480008005B17E6 /* BNCTuneUtility.h */,
@@ -1155,10 +1137,8 @@
11551137
4DCAC80E1F426F7C00405D1D /* BNCSystemObserver.h in Headers */,
11561138
C10C61AD28248E5A00761D7E /* BNCQRCodeCache.h in Headers */,
11571139
5FE693F72405E91500E3AEE2 /* BNCCallbackMap.h in Headers */,
1158-
5F92B2392383703700CA909B /* BNCLocale.h in Headers */,
11591140
5F38021F24DCC2E800E6FAFD /* BNCServerResponse.h in Headers */,
11601141
5F38023024DCC2E800E6FAFD /* BNCServerRequestQueue.h in Headers */,
1161-
5F437E35237DDF770052064B /* BNCTelephony.h in Headers */,
11621142
4DCAC8161F426F7C00405D1D /* BranchCSSearchableItemAttributeSet.h in Headers */,
11631143
4D59B51F2006979C00F89FD5 /* BNCApplication.h in Headers */,
11641144
5FB0AA6B231875B500A0F9EA /* BNCUserAgentCollector.h in Headers */,
@@ -1496,10 +1476,8 @@
14961476
4D9607F51FBF9473008AB3C2 /* UIViewController+Branch.m in Sources */,
14971477
C1CC888929C27E8000BDD2B5 /* BNCUrlQueryParameter.m in Sources */,
14981478
4D35141C1E3201D80085EBA1 /* NSMutableDictionary+Branch.m in Sources */,
1499-
5F92B23A2383703700CA909B /* BNCLocale.m in Sources */,
15001479
4D955CCD2035021400FB8008 /* BNCURLFilter.m in Sources */,
15011480
466B58681B17779C00A69EDE /* BNCLinkData.m in Sources */,
1502-
5F437E36237DDF770052064B /* BNCTelephony.m in Sources */,
15031481
5F892ED8236258390023AEC1 /* BNCFacebookAppLinks.m in Sources */,
15041482
54FF1F921BD1DC320004CE2E /* BranchLinkProperties.m in Sources */,
15051483
466B586A1B17779C00A69EDE /* BNCLinkCache.m in Sources */,
@@ -1567,8 +1545,6 @@
15671545
5F205D0823186AF700C776D1 /* BNCUserAgentCollectorTests.m in Sources */,
15681546
5FCF7EAD29DC96A7008D629E /* BNCURLFilterSkiplistUpgradeTests.m in Sources */,
15691547
4D1683C12098C902008819E3 /* BNCApplication.Test.m in Sources */,
1570-
5F92B23C2384744A00CA909B /* BNCLocaleTests.m in Sources */,
1571-
5F437E3A237DE3480052064B /* BNCTelephonyTests.m in Sources */,
15721548
4D1683B92098C902008819E3 /* BNCSystemObserverTests.m in Sources */,
15731549
4D1683BE2098C902008819E3 /* BranchShortUrlSyncRequestTests.m in Sources */,
15741550
4D1683CA2098C902008819E3 /* BNCPreferenceHelperTests.m in Sources */,

0 commit comments

Comments
 (0)