Skip to content

EMT-2244 Source Code Restructure and Cleanup #1504

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: EMT-2127-Split-SPM-Targets-POC
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
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]}
745 changes: 324 additions & 421 deletions BranchSDK.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1230"
version = "1.7">
LastUpgradeVersion = "1640"
version = "2.1">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
Expand All @@ -14,12 +15,22 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "033608112605E2110032A5DC"
BuildableName = "TestDeepLinking.app"
BlueprintName = "TestDeepLinking"
ReferencedContainer = "container:TestDeepLinking.xcodeproj">
BlueprintIdentifier = "E7CA755E2E1B59F5002EFB40"
BuildableName = "BranchSDKTestsHostApp.app"
BlueprintName = "BranchSDKTestsHostApp"
ReferencedContainer = "container:BranchSDK.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "NO"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<TestPlanReference
reference = "container:BranchSDK_Tests/BranchSDKTests.xctestplan">
</TestPlanReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
Expand All @@ -29,29 +40,20 @@
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:TestDeepLinking/TestDeepLinking.xctestplan"
reference = "container:BranchSDKTests/BranchSDKTests.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
<Testables>
<TestableReference
skipped = "NO">
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "032DAED92607430600891641"
BuildableName = "TestDeepLinkingUITests.xctest"
BlueprintName = "TestDeepLinkingUITests"
ReferencedContainer = "container:TestDeepLinking.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "032DAEFA2607491B00891641"
BuildableName = "TestDeepLinkingUITestsWithHostApp.xctest"
BlueprintName = "TestDeepLinkingUITestsWithHostApp"
ReferencedContainer = "container:TestDeepLinking.xcodeproj">
BlueprintIdentifier = "E7CA74EA2E1B4F75002EFB40"
BuildableName = "BranchSDKTests.xctest"
BlueprintName = "BranchSDKTests"
ReferencedContainer = "container:BranchSDK.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
Expand All @@ -70,10 +72,10 @@
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "033608112605E2110032A5DC"
BuildableName = "TestDeepLinking.app"
BlueprintName = "TestDeepLinking"
ReferencedContainer = "container:TestDeepLinking.xcodeproj">
BlueprintIdentifier = "E7CA755E2E1B59F5002EFB40"
BuildableName = "BranchSDKTestsHostApp.app"
BlueprintName = "BranchSDKTestsHostApp"
ReferencedContainer = "container:BranchSDK.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
Expand All @@ -83,16 +85,15 @@
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "033608112605E2110032A5DC"
BuildableName = "TestDeepLinking.app"
BlueprintName = "TestDeepLinking"
ReferencedContainer = "container:TestDeepLinking.xcodeproj">
BlueprintIdentifier = "E7CA755E2E1B59F5002EFB40"
BuildableName = "BranchSDKTestsHostApp.app"
BlueprintName = "BranchSDKTestsHostApp"
ReferencedContainer = "container:BranchSDK.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
Expand Down
Loading