Skip to content

Commit cec44e4

Browse files
committed
Merge branch '4.0.0-alpha.0' into feature/remove-bridging-code
2 parents 67862dc + 70ba5ef commit cec44e4

File tree

137 files changed

+1221
-10946
lines changed

Some content is hidden

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

137 files changed

+1221
-10946
lines changed

.github/workflows/pre-release-qa.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push]
44

55
jobs:
66
verify-cocoapods-iOS:
7-
runs-on: macos-latest
7+
runs-on: macos-15
88
steps:
99
- name: Check out code
1010
uses: actions/checkout@v4
@@ -33,7 +33,7 @@ jobs:
3333
carthage update --use-xcframeworks
3434
xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}
3535
verify-SPM-iOS:
36-
runs-on: macos-latest
36+
runs-on: macos-15
3737
steps:
3838
- name: Check out code
3939
uses: actions/checkout@v4
@@ -44,7 +44,7 @@ jobs:
4444
cd SDKIntegrationTestApps/iOSReleaseTest-SPM/
4545
xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}
4646
verify-manually-with-xcframework-iOS:
47-
runs-on: macos-latest
47+
runs-on: macos-15
4848
steps:
4949
- name: Check out code
5050
uses: actions/checkout@v4
@@ -56,7 +56,7 @@ jobs:
5656
cd SDKIntegrationTestApps/iOSReleaseTest-Manual/
5757
xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}
5858
verify-manually-with-StaticFramework-iOS:
59-
runs-on: macos-latest
59+
runs-on: macos-15
6060
steps:
6161
- name: Check out code
6262
uses: actions/checkout@v4
@@ -68,7 +68,7 @@ jobs:
6868
cd SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/
6969
xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}
7070
verify-cocoapods-tvOS:
71-
runs-on: macos-latest
71+
runs-on: macos-15
7272
steps:
7373
- name: Check out code
7474
uses: actions/checkout@v4
@@ -80,7 +80,7 @@ jobs:
8080
pod install
8181
xcodebuild test -scheme tvOSReleaseTest -workspace tvOSReleaseTest.xcworkspace -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}
8282
verify-carthage-tvOS:
83-
runs-on: macos-latest
83+
runs-on: macos-15
8484
steps:
8585
- name: Check out code
8686
uses: actions/checkout@v4
@@ -91,7 +91,7 @@ jobs:
9191
cd SDKIntegrationTestApps/tvOSReleaseTest-Carthage/
9292
echo "Skipping it ... its broken"
9393
verify-manually-with-xcframework-tvOS:
94-
runs-on: macos-latest
94+
runs-on: macos-15
9595
steps:
9696
- name: Check out code
9797
uses: actions/checkout@v4

.github/workflows/verify.yml

Lines changed: 9 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,13 @@ jobs:
1313
steps:
1414
- name: Check out code
1515
uses: actions/checkout@v4
16-
- name: Set up Ruby 2.7
17-
uses: ruby/setup-ruby@v1
18-
with:
19-
ruby-version: '2.7'
20-
- name: Restore cache
21-
uses: actions/cache@v3
22-
with:
23-
path: |
24-
vendor
25-
Branch-TestBed/Pods
26-
key: ${{ runner.os }}-${{ hashFiles('Gemfile.lock','Branch-TestBed/Podfile.lock') }}
27-
restore-keys: |
28-
${{ runner.os }}-
29-
- name: Install Ruby dependencies
30-
run: |
31-
bundle config set --local path vendor
32-
bundle check || bundle install
33-
# This happens automatically with the unit_tests lane, but adding it here
34-
# makes it easier to keep track of installation time via GHA without
35-
# adding execution time to the next step.
36-
#- name: Install CocoaPods dependencies
37-
# run: bundle exec fastlane prepare_pods
3816
- name: Run unit tests
39-
run: bundle exec fastlane unit_tests
40-
- name: Upload test results
41-
uses: actions/upload-artifact@v4
42-
if: always() # even if tests fail
43-
with:
44-
name: test-results
45-
path: fastlane/test_output
46-
- name: Upload codecov results
47-
uses: codecov/codecov-action@v5
48-
with:
49-
files: ./fastlane/test_output/cobertura.xml
17+
run: |
18+
echo "branch=${{ github.ref }}" >> $GITHUB_OUTPUT
19+
./scripts/getSimulator
20+
DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest"
21+
xcodebuild test \
22+
-project BranchSDK.xcodeproj \
23+
-scheme BranchSDKTests \
24+
-destination "$DESTINATION" \
25+
-testPlan BranchSDKTests | xcpretty && exit ${PIPESTATUS[0]}

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

Lines changed: 381 additions & 269 deletions
Large diffs are not rendered by default.

BranchSDK.podspec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ Use the Branch SDK (branch.io) to create and power the links that point back to
1818
s.ios.deployment_target = '12.0'
1919
s.tvos.deployment_target = '12.0'
2020

21+
s.swift_versions = ['5.0', '5.1', '5.2', '5.3', '5.4', '5.5', '5.6', '5.7', '5.8', '5.9', '6.0']
22+
2123
s.resource_bundles = { 'BranchSDK' => 'Sources/Resources/*.xcprivacy' }
22-
s.ios.source_files = "Sources/BranchSDK/**/*.{h,m}"
24+
s.ios.source_files = "Sources/BranchSDK/**/*.{h,m}", "Sources/BranchSDK_Swift/**/*.swift", "Sources/BranchSDK_ObjC/**/*.{h,m}"
2325

24-
s.tvos.source_files = "Sources/BranchSDK/**/*.{h,m}"
26+
s.tvos.source_files = "Sources/BranchSDK/**/*.{h,m}", "Sources/BranchSDK_Swift/**/*.swift", "Sources/BranchSDK_ObjC/**/*.{h,m}"
2527
s.tvos.exclude_files = "Sources/BranchSDK/**/BNCContentDiscoveryManager.{h,m}",
2628
"Sources/BranchSDK/**/BNCUserAgentCollector.{h,m}",
2729
"Sources/BranchSDK/**/BNCSpotlightService.{h,m}",

0 commit comments

Comments
 (0)