Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 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
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
f4be940
Merge branch 'EMT-2127-Split-SPM-Targets-POC' into EMT-2244-Source-Co…
NidhiDixit09 Jul 16, 2025
f2af7f3
Added swift version of ServerRequestQueue
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
618e87d
Implement Swift Concurrency for iOS Branch SDK (EMT-2309)
wpinho-branch Oct 2, 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
14 changes: 7 additions & 7 deletions .github/workflows/pre-release-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

jobs:
verify-cocoapods-iOS:
runs-on: macos-latest
runs-on: macos-15
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install pod, build project and run tests
run: |
echo "branch=${{ github.ref }}" >> $GITHUB_OUTPUT
./scripts/getSimulator
DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest"
cd SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/
pod install
xcodebuild test -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}
verify-carthage-iOS:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: macos-15
steps:
- name: Check out code
Expand All @@ -33,72 +33,72 @@
carthage update --use-xcframeworks
xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}
verify-SPM-iOS:
runs-on: macos-latest
runs-on: macos-15
steps:
- name: Check out code
uses: actions/checkout@v4
- name: build project and run tests
run: |
./scripts/getSimulator
DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest"
cd SDKIntegrationTestApps/iOSReleaseTest-SPM/
xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}
verify-manually-with-xcframework-iOS:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: macos-latest
runs-on: macos-15
steps:
- name: Check out code
uses: actions/checkout@v4
- name: build xcframework, then build project and run tests
run: |
./scripts/getSimulator
DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest"
xcodebuild -scheme xcframework
cd SDKIntegrationTestApps/iOSReleaseTest-Manual/
xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}
verify-manually-with-StaticFramework-iOS:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: macos-latest
runs-on: macos-15
steps:
- name: Check out code
uses: actions/checkout@v4
- name: build static xcframework, then build project and run tests
run: |
./scripts/getSimulator
DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest"
xcodebuild -scheme static-xcframework
cd SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/
xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}
verify-cocoapods-tvOS:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: macos-latest
runs-on: macos-15
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install pod, build project and run tests
run: |
./scripts/getSimulator
DESTINATION="platform=tvOS Simulator,name=$(cat ./appleTVSim),OS=latest"
cd SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/
pod install
xcodebuild test -scheme tvOSReleaseTest -workspace tvOSReleaseTest.xcworkspace -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}
verify-carthage-tvOS:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: macos-latest
runs-on: macos-15
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Verify Integration using Carthage for tvOS
run: |
./scripts/getSimulator
DESTINATION="platform=tvOS Simulator,name=$(cat ./appleTVSim),OS=latest"
cd SDKIntegrationTestApps/tvOSReleaseTest-Carthage/
echo "Skipping it ... its broken"
verify-manually-with-xcframework-tvOS:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: macos-latest
runs-on: macos-15
steps:
- name: Check out code
uses: actions/checkout@v4
- name: build xcframework, then build project and run tests
run: |
./scripts/getSimulator
DESTINATION="platform=tvOS Simulator,name=$(cat ./appleTVSim),OS=latest"
xcodebuild -scheme xcframework
cd SDKIntegrationTestApps/tvOSReleaseTest-Manual/
xcodebuild test -scheme tvOSReleaseTest -project tvOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
42 changes: 9 additions & 33 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,13 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Ruby 2.7
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
- name: Restore cache
uses: actions/cache@v3
with:
path: |
vendor
Branch-TestBed/Pods
key: ${{ runner.os }}-${{ hashFiles('Gemfile.lock','Branch-TestBed/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-
- name: Install Ruby dependencies
run: |
bundle config set --local path vendor
bundle check || bundle install
# This happens automatically with the unit_tests lane, but adding it here
# makes it easier to keep track of installation time via GHA without
# adding execution time to the next step.
#- name: Install CocoaPods dependencies
# run: bundle exec fastlane prepare_pods
- name: Run unit tests
run: bundle exec fastlane unit_tests
- name: Upload test results
uses: actions/upload-artifact@v4
if: always() # even if tests fail
with:
name: test-results
path: fastlane/test_output
- name: Upload codecov results
uses: codecov/codecov-action@v5
with:
files: ./fastlane/test_output/cobertura.xml
run: |
echo "branch=${{ github.ref }}" >> $GITHUB_OUTPUT
./scripts/getSimulator
DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest"
xcodebuild test \
-project BranchSDK.xcodeproj \
-scheme BranchSDKTests \
-destination "$DESTINATION" \
-testPlan BranchSDKTests | xcpretty && exit ${PIPESTATUS[0]}
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
2 changes: 1 addition & 1 deletion 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
2 changes: 1 addition & 1 deletion 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
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
2 changes: 1 addition & 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
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
2 changes: 1 addition & 1 deletion Branch-TestBed/Branch-SDK-Tests/BranchClassTests.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 "BranchConstants.h"
#import "BNCPasteboard.h"
#import "BNCAppGroupsData.h"
Expand Down
2 changes: 1 addition & 1 deletion Branch-TestBed/Branch-SDK-Tests/BranchLoggerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

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

@interface BranchLoggerTests : XCTestCase

Expand Down
2 changes: 1 addition & 1 deletion Branch-TestBed/Branch-SDK-Tests/BranchQRCodeTests.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 "BranchQRCode.h"
#import "BNCQRCodeCache.h"

Expand Down
2 changes: 1 addition & 1 deletion Branch-TestBed/Branch-SDK-Tests/BranchShareLinkTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#import <XCTest/XCTest.h>
#import "BranchShareLink.h"
#import "BranchLinkProperties.h"
#import "Branch.h"
@import BranchSDK;

@interface BranchShareLinkTests : XCTestCase

Expand Down
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 DispatchToIsolationQueueTests : XCTestCase
// @property (nonatomic, strong, readwrite) Branch *branch;
Expand Down
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 "NSError+Branch.h"

// expose private methods used by tests
Expand Down
2 changes: 1 addition & 1 deletion Branch-TestBed/Branch-TestBed-UITests/UITestCaseMisc.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import "UITestCaseTestBed.h"
#import "Branch.h"
@import BranchSDK;
#import "BranchEvent.h"

@interface UITestCaseMisc : UITestCaseTestBed
Expand Down
2 changes: 1 addition & 1 deletion Branch-TestBed/Branch-TestBed-UITests/UITestCaseTracking.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import "UITestCaseTestBed.h"
#import "Branch.h"
@import BranchSDK;
#import "BranchEvent.h"

@interface UITestCaseTracking : UITestCaseTestBed
Expand Down
2 changes: 1 addition & 1 deletion Branch-TestBed/Branch-TestBed-UITests/UITestSendV2Event.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 "BranchEvent.h"
#import "UITestCaseTestBed.h"

Expand Down
2 changes: 1 addition & 1 deletion Branch-TestBed/Branch-TestBed-UITests/UITestSetIdentity.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


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

Expand Down
Loading
Loading