Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
743763f
Added class BranchConfigurationController to send operational_metrics…
NidhiDixit09 Jun 13, 2025
fcf9344
Removed unused property configurationController.
NidhiDixit09 Jun 13, 2025
53af9f8
Fixed typo error.
NidhiDixit09 Jun 17, 2025
5005b0f
Converted class BranchConfigurationController to Swift.
NidhiDixit09 Jun 24, 2025
dc2d9c7
Added target for swift code.
NidhiDixit09 Jun 24, 2025
0ad4564
Updated swift version.
NidhiDixit09 Jun 25, 2025
4902201
Updated GH runner OS version number.
NidhiDixit09 Jun 25, 2025
7dbd73b
Removed extra comma
NidhiDixit09 Jun 25, 2025
53d322c
Revert "Updated swift version."
NidhiDixit09 Jun 25, 2025
d34fed1
Update Package.swift
NidhiDixit09 Jun 25, 2025
46330e0
Reapply "Updated swift version."
NidhiDixit09 Jun 25, 2025
ef025f1
Update Package.swift
NidhiDixit09 Jun 25, 2025
d68dd4a
Update Branch.h
NidhiDixit09 Jun 25, 2025
b217280
Update project.pbxproj
NidhiDixit09 Jun 25, 2025
fd32ed3
Update BranchSDK.podspec
NidhiDixit09 Jun 25, 2025
11f5b06
Update BranchSDK.podspec
NidhiDixit09 Jun 25, 2025
1d706e3
Revert "Update Package.swift"
NidhiDixit09 Jun 26, 2025
0af652c
Update Package.swift
NidhiDixit09 Jun 26, 2025
08f370d
Test checkin POC
NidhiDixit09 Jul 1, 2025
3a38c1a
Package.swift target name updates and minor refactors.
NidhiDixit09 Jul 3, 2025
132b2c9
Added dir BranchSDK_ObjC in podspec file.
NidhiDixit09 Jul 3, 2025
f808caa
Fixed typo.
NidhiDixit09 Jul 3, 2025
90090ae
Fixed SDK name.
NidhiDixit09 Jul 3, 2025
422be6b
Added swift files.
NidhiDixit09 Jul 7, 2025
c71ea06
Update BNCServerInterface.m
gdeluna-branch Jul 11, 2025
83cd178
Source Code folder and project workspace restructuring.
NidhiDixit09 Jul 14, 2025
dadded4
Merge branch '4.0.0.alpha.0' into EMT-2127-Split-SPM-Targets-POC
NidhiDixit09 Jul 15, 2025
af22cad
Revert "Source Code folder and project workspace restructuring."
NidhiDixit09 Jul 15, 2025
f18933a
Reapply "Source Code folder and project workspace restructuring."
NidhiDixit09 Jul 15, 2025
11889f7
Updated GHA for unit tests.
NidhiDixit09 Jul 15, 2025
218c2ec
Update verify.yml
NidhiDixit09 Jul 15, 2025
143eb56
Update verify.yml
NidhiDixit09 Jul 15, 2025
9783baf
Update Package.swift
NidhiDixit09 Jul 15, 2025
d952fa6
Removed tests for app-link-settings custom URL which is not valid any…
NidhiDixit09 Jul 15, 2025
8881ac4
Update project.pbxproj
NidhiDixit09 Jul 15, 2025
f2adb1c
Moved BranchConstants.h file.
NidhiDixit09 Jul 15, 2025
348ef44
Update Package.swift
NidhiDixit09 Jul 16, 2025
e1eb8ae
Update project.pbxproj
NidhiDixit09 Jul 16, 2025
a8b98ba
Removed fastlane files.
NidhiDixit09 Jul 16, 2025
a0ac029
Combined Dependabot PR (#1478)
github-actions[bot] Jul 16, 2025
f4be940
Merge branch 'EMT-2127-Split-SPM-Targets-POC' into EMT-2244-Source-Co…
NidhiDixit09 Jul 16, 2025
5398263
Update BNCServerInterface.m
gdeluna-branch Jul 18, 2025
f2af7f3
Added swift version of ServerRequestQueue
NidhiDixit09 Jul 18, 2025
429e923
Merge pull request #1501 from BranchMetrics/gdeluna-branch/INTENG-22813
gdeluna-branch Jul 18, 2025
808a57f
Release 3.12.2
gdeluna-branch Jul 18, 2025
d0e2a0c
Update ChangeLog.md
gdeluna-branch Jul 18, 2025
a5df809
Update ChangeLog.md
gdeluna-branch Jul 18, 2025
45809c3
Merge pull request #1506 from BranchMetrics/Release-3.12.2
gdeluna-branch Jul 18, 2025
6d9b036
Added step to import cert in release GHA for build-noidfa-framework a…
NidhiDixit09 Jul 18, 2025
60fe3d0
Added class BNCServerRequestOperation and updated rest of SDK source …
NidhiDixit09 Jul 30, 2025
991cf70
Removed processNextQueueItem calls
NidhiDixit09 Jul 30, 2025
6b2d149
Code Cleanup.
NidhiDixit09 Aug 4, 2025
40dadaf
Bump actions/download-artifact from 4 to 5 (#1516)
dependabot[bot] Aug 25, 2025
e29ddd9
EMT- Removed apple_receipt and apple_testflight param from the Server…
NidhiDixit09 Aug 29, 2025
d7f6b62
Emt-2337 setAnonID API (#1519)
NidhiDixit09 Aug 29, 2025
c98a544
EMT-2370 setThirdPartyAPIsTimeout Implementation (#1517)
NidhiDixit09 Aug 29, 2025
b4eac7f
Release 3.13.0 Updates. (#1522)
NidhiDixit09 Aug 29, 2025
4e1e300
Added check to send ODM Info if attribution level is not set. (#1526)
NidhiDixit09 Sep 9, 2025
bb72ef8
Retry logic updated for Http Response Codes 1xx, 2xx, 3xx and 4xx. (#…
NidhiDixit09 Sep 9, 2025
b88d372
Release 3.13.1 Updates. (#1527)
NidhiDixit09 Sep 9, 2025
9a10152
Disabled Deprecation warning for StoreKit(Original) APIs (#1529)
NidhiDixit09 Sep 24, 2025
8d8f5ce
Custom callback test (#1528)
NidhiDixit09 Sep 24, 2025
c17349a
Release 3.13.2 Updates. (#1530)
NidhiDixit09 Sep 24, 2025
618e87d
Implement Swift Concurrency for iOS Branch SDK (EMT-2309)
wpinho-branch Oct 2, 2025
de94b7f
Fixed bug for sending appleAttributionToken in the server requests. (…
NidhiDixit09 Oct 3, 2025
020fdc6
Release 3.13.3 Updates. (#1536)
NidhiDixit09 Oct 3, 2025
0b4ae3c
Fix build errors in BranchSDK target
wpinho-branch Nov 19, 2025
0d9b95e
WIP: Phase 2 - Remove bridging code and add Swift implementations
wpinho-branch Nov 19, 2025
3c48289
Add Swift queue implementation alongside existing queue
wpinho-branch Nov 19, 2025
fdb3c61
Migrate to NSOperationQueue-based request processing
wpinho-branch Nov 19, 2025
a7ed8b1
Remove Swift implementation, finalize pure Objective-C architecture
wpinho-branch Nov 19, 2025
2d5f7a5
Phase 5: Reorganize headers and add missing imports
wpinho-branch Nov 19, 2025
67862dc
Phase 2: Test reorganization and modernization
wpinho-branch Nov 19, 2025
cec44e4
Merge branch '4.0.0-alpha.0' into feature/remove-bridging-code
wpinho-branch Dec 12, 2025
233f9ea
Merge branch 'BNC-Server-Request-Queue-Refactoring-And-Auto-Request-P…
wpinho-branch Dec 12, 2025
52c6507
Merge branch 'master' into feature/remove-bridging-code
wpinho-branch Dec 16, 2025
ccd3ffe
Remove stale BNCAppleReceiptTests
wpinho-branch Dec 16, 2025
129e2e8
Update BNCODMTests to use current API
wpinho-branch Dec 16, 2025
5c5b806
Fix BranchConfigurationControllerTests for Xcode builds
wpinho-branch Dec 16, 2025
fcbf768
Add header search paths to BranchSDKTests target
wpinho-branch Dec 16, 2025
98278fe
Revert version numbers to 3.12.1 to match 4.0.0-alpha.0 base
wpinho-branch Dec 16, 2025
725271c
Fix BNCServerRequestOperation target membership for CI builds
wpinho-branch Dec 16, 2025
c8ef210
Fix bridging header paths for CocoaPods compatibility
wpinho-branch Dec 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/automation-trigger-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Setup Node.js environment
uses: actions/setup-node@v4.0.3
uses: actions/setup-node@v4.2.0
- name: Build with Maven
id: build_maven
run: |
Expand Down
25 changes: 23 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,27 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install the Apple certificate
env:
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
run: |
# create variables
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db

# import certificate
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH

# create temporary keychain
security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
security set-keychain-settings -lut 21600 $KEYCHAIN_PATH
security unlock-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH

# import certificate to keychain
security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
security list-keychain -d user -s $KEYCHAIN_PATH
- name: Build xcframework
run: |
./scripts/prep_xcframework_noidfa.sh
Expand All @@ -110,7 +131,7 @@ jobs:
path: |
./Branch_noidfa.zip
./checksum_noidfa.txt
./Branch_noidfa_signed_xcframework
./Branch_noidfa_signed_xcframework.zip
./checksum_noidfa_signed_xcframework.txt

build-static-framework:
Expand Down Expand Up @@ -177,7 +198,7 @@ jobs:
bundle config set --local path vendor
bundle check || bundle install
- name: Download build artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v5
- name: Publish to CocoaPods
run: |
# TODO: Authenticate using repo secret
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Mac

.build
.vscode

.DS_Store
.LSOverride

Expand Down
6 changes: 3 additions & 3 deletions Branch-TestBed/Branch-SDK-Tests/BNCAPIServerTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#import "BNCSystemObserver.h"
#import "BNCConfig.h"
#import "BranchConstants.h"
#import "Branch.h"
@import BranchSDK;

@interface BNCAPIServerTest : XCTestCase

Expand Down Expand Up @@ -450,7 +450,7 @@ - (void)testSetSafeTrackServiceURLWithUserTrackingDomain {
XCTAssertEqualObjects(storedUrl, expectedUrl);

storedUrl = [[BNCServerAPI sharedInstance] validationServiceURL];
expectedUrl = @"https://links.toTestDomain.com/v1/app-link-settings";
expectedUrl = @"https://api3.branch.io/v1/app-link-settings";
XCTAssertEqualObjects(storedUrl, expectedUrl);

[BNCServerAPI sharedInstance].useTrackingDomain = NO;
Expand Down Expand Up @@ -501,7 +501,7 @@ - (void)testSetSafeTrackServiceURLWithOutUserTrackingDomain {
XCTAssertEqualObjects(storedUrl, expectedUrl);

storedUrl = [[BNCServerAPI sharedInstance] validationServiceURL];
expectedUrl = @"https://links.toTestDomain.com/v1/app-link-settings";
expectedUrl = @"https://api3.branch.io/v1/app-link-settings";
XCTAssertEqualObjects(storedUrl, expectedUrl);

[BNCServerAPI sharedInstance].useTrackingDomain = NO;
Expand Down
33 changes: 0 additions & 33 deletions Branch-TestBed/Branch-SDK-Tests/BNCAppleReceiptTests.m

This file was deleted.

18 changes: 10 additions & 8 deletions Branch-TestBed/Branch-SDK-Tests/BNCODMTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <XCTest/XCTest.h>
#import "Branch.h"
@import BranchSDK;
#import "BNCPreferenceHelper.h"
#import "BNCRequestFactory.h"
#import "BNCEncodingUtils.h"
Expand Down Expand Up @@ -65,7 +65,7 @@ - (void)testSetODMandSDKRequests {
}

- (void)testODMTimeOut {

NSString* requestUUID = [[NSUUID UUID ] UUIDString];
NSNumber* requestCreationTimeStamp = BNCWireFormatFromDate([NSDate date]);
NSString *odm = @"testODMString";
Expand All @@ -80,21 +80,23 @@ - (void)testODMTimeOut {

sleep(10);

NSDictionary *jsonOpen = [factory dataForOpenWithURLString:@"https://branch.io"];
BNCRequestFactory *factory2 = [[BNCRequestFactory alloc] initWithBranchKey:@"key_abcd" UUID:requestUUID TimeStamp:requestCreationTimeStamp];
NSDictionary *jsonOpen = [factory2 dataForOpenWithURLString:@"https://branch.io"];
XCTAssertTrue(![odm isEqualToString:[jsonOpen objectForKey:@"odm_info"]]);

self.prefHelper.odmInfo = nil;
self.prefHelper.odmInfoInitDate = nil;

}


- (void) testODMAPIsNotLoaded {

XCTestExpectation *expectation = [self expectationWithDescription:@"Check if ODCManager class is loaded."];
[[BNCODMInfoCollector instance ] loadODMInfoWithTimeOut:DISPATCH_TIME_FOREVER andCompletionHandler:^(NSString * _Nullable odmInfo, NSError * _Nullable error) {
if (error.code == BNCClassNotFoundError){
[expectation fulfill];
}
[[BNCODMInfoCollector instance ] loadODMInfoWithCompletionHandler:^(NSString * _Nullable odmInfo, NSError * _Nullable error) {
if (error.code == BNCClassNotFoundError){
[expectation fulfill];
}
}];
[self waitForExpectationsWithTimeout:15 handler:nil];
}
Expand Down
2 changes: 1 addition & 1 deletion Branch-TestBed/Branch-SDK-Tests/BNCPasteboardTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#import <XCTest/XCTest.h>
#import "BNCPasteboard.h"
#import "Branch.h"
@import BranchSDK;

@interface BNCPasteboardTests : XCTestCase

Expand Down
25 changes: 24 additions & 1 deletion Branch-TestBed/Branch-SDK-Tests/BNCPreferenceHelperTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#import <XCTest/XCTest.h>
#import "BNCPreferenceHelper.h"
#import "BNCEncodingUtils.h"
#import "Branch.h"
@import BranchSDK;
#import "BNCConfig.h"

@interface BNCPreferenceHelper()
Expand Down Expand Up @@ -414,4 +414,27 @@ - (void)testSaveContentAnalyticsManifest {
XCTAssertEqualObjects(retrievedManifest, dummyManifest);
}

- (void)testThirdPartyAPIsTimeoutDefaultValue {
XCTAssertEqual(self.prefHelper.thirdPartyAPIsWaitTime, 0.5,
@"Default third party APIs timeout should be 0.5 seconds");
}

- (void)testThirdPartyAPIsTimeoutSetterGetter {
NSTimeInterval testTimeout1 = 1.0;
self.prefHelper.thirdPartyAPIsWaitTime = testTimeout1;
XCTAssertEqual(self.prefHelper.thirdPartyAPIsWaitTime, testTimeout1,
@"Third party APIs timeout should be settable and retrievable");

NSTimeInterval testTimeout2 = 2.5;
self.prefHelper.thirdPartyAPIsWaitTime = testTimeout2;
XCTAssertEqual(self.prefHelper.thirdPartyAPIsWaitTime, testTimeout2,
@"Third party APIs timeout should be updatable");

NSTimeInterval testTimeout3 = 0.1;
self.prefHelper.thirdPartyAPIsWaitTime = testTimeout3;
XCTAssertEqual(self.prefHelper.thirdPartyAPIsWaitTime, testTimeout3,
@"Third party APIs timeout should support small values");
}


@end
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
// Module headers for Branch SDK unit testing.
//

#import "Branch.h"
@import BranchSDK;
2 changes: 1 addition & 1 deletion Branch-TestBed/Branch-SDK-Tests/BranchActivityItemTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <XCTest/XCTest.h>
#import "Branch.h"
@import BranchSDK;

@interface BranchActivityItemTests: XCTestCase
@end
Expand Down
Loading