From bbeddf4acdd430e8e9ca0df5e9e82b9e4c0b7d16 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 08:34:45 -0700 Subject: [PATCH 01/85] Added class TestObserver. --- .gitignore | 1 + .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 + .../iOSReleaseTestTests/TestObserver.swift | 133 ++++++++++++++++++ .../iOSReleaseTestTests.swift | 53 ++++++- 4 files changed, 187 insertions(+), 4 deletions(-) create mode 100644 SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTestTests/TestObserver.swift diff --git a/.gitignore b/.gitignore index 041577f4e..907ba7388 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Mac .DS_Store .LSOverride +.build # Xcode [Bb]uild diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj index 265c98fdb..601e0008e 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj @@ -16,6 +16,7 @@ C119B02C27ADC92A00E8C7BF /* iOSReleaseTest.entitlements in Resources */ = {isa = PBXBuildFile; fileRef = C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */; }; E71D371D29A5707800A0FDEF /* BranchSDK in Frameworks */ = {isa = PBXBuildFile; productRef = E71D371C29A5707800A0FDEF /* BranchSDK */; }; E71D371F29A570D500A0FDEF /* BranchSDK in Frameworks */ = {isa = PBXBuildFile; productRef = E71D371E29A570D500A0FDEF /* BranchSDK */; }; + E77DEAF22E9FFEE300EDEAB4 /* TestObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = E77DEAF12E9FFEE300EDEAB4 /* TestObserver.swift */; }; E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */; }; E7A0C3052989AB200024497D /* BranchSDKTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7A0C3042989AB200024497D /* BranchSDKTest.swift */; }; /* End PBXBuildFile section */ @@ -41,6 +42,7 @@ C119B02527ADC85E00E8C7BF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = iOSReleaseTest.entitlements; sourceTree = ""; }; E73878F62988A82600BD3981 /* ios-branch-deep-linking-attribution */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = "ios-branch-deep-linking-attribution"; path = ../..; sourceTree = ""; }; + E77DEAF12E9FFEE300EDEAB4 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; E7939C0129749D3C00B90B82 /* iOSReleaseTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOSReleaseTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSReleaseTestTests.swift; sourceTree = ""; }; E7A0C3042989AB200024497D /* BranchSDKTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BranchSDKTest.swift; sourceTree = ""; }; @@ -120,6 +122,7 @@ E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */ = { isa = PBXGroup; children = ( + E77DEAF12E9FFEE300EDEAB4 /* TestObserver.swift */, E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */, ); path = iOSReleaseTestTests; @@ -245,6 +248,7 @@ buildActionMask = 2147483647; files = ( E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */, + E77DEAF22E9FFEE300EDEAB4 /* TestObserver.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTestTests/TestObserver.swift b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTestTests/TestObserver.swift new file mode 100644 index 000000000..e36c734fd --- /dev/null +++ b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTestTests/TestObserver.swift @@ -0,0 +1,133 @@ +import XCTest +import Foundation + +class TestObserver: NSObject, XCTestObservation { + + private let dateFormatter: DateFormatter = { + let formatter = DateFormatter() + formatter.dateFormat = "yyyy-MM-dd HH:mm:ss.SSS" + return formatter + }() + + func testBundleWillStart(_ testBundle: Bundle) { + logMessage("Test Bundle Will Start: \(testBundle.bundleIdentifier ?? "Unknown")") + logMessage("Bundle Path: \(testBundle.bundlePath)") + } + + func testBundleDidFinish(_ testBundle: Bundle) { + logMessage("Test Bundle Did Finish: \(testBundle.bundleIdentifier ?? "Unknown")") + } + + func testSuiteWillStart(_ testSuite: XCTestSuite) { + logMessage("Test Suite Will Start: \(testSuite.name)") + logMessage("Test Count: \(testSuite.testCaseCount)") + } + + func testSuiteDidFinish(_ testSuite: XCTestSuite) { + let duration = String(format: "%.3f", testSuite.testRun?.totalDuration ?? 0) + let failures = testSuite.testRun?.failureCount ?? 0 + let unexpected = testSuite.testRun?.unexpectedExceptionCount ?? 0 + + logMessage("Test Suite Did Finish: \(testSuite.name)") + logMessage("Duration: \(duration)s") + logMessage("Failures: \(failures)") + logMessage("Unexpected Exceptions: \(unexpected)") + + if failures > 0 || unexpected > 0 { + logMessage("SUITE FAILED: \(testSuite.name)") + } else { + logMessage("SUITE PASSED: \(testSuite.name)") + } + } + + func testCaseWillStart(_ testCase: XCTestCase) { + logMessage("Test Case Will Start: \(testCase.name)") + logMessage("Class: \(String(describing: type(of: testCase)))") + } + + func testCaseDidFinish(_ testCase: XCTestCase) { + guard let testRun = testCase.testRun else { + logMessage("Test Case Did Finish (No Run Info): \(testCase.name)") + return + } + + let duration = String(format: "%.3f", testRun.totalDuration) + let failures = testRun.failureCount + let unexpected = testRun.unexpectedExceptionCount + + logMessage("Test Case Did Finish: \(testCase.name)") + logMessage("Duration: \(duration)s") + + if testRun.hasSucceeded { + logMessage("PASSED: \(testCase.name)") + } else { + logMessage("FAILED: \(testCase.name)") + logMessage("Failures: \(failures)") + logMessage("Unexpected Exceptions: \(unexpected)") + } + } + + func testCase(_ testCase: XCTestCase, didFailWithDescription description: String, inFile filePath: String?, atLine lineNumber: Int) { + logMessage("TEST FAILURE:") + logMessage("Test: \(testCase.name)") + logMessage("Description: \(description)") + + if let filePath = filePath { + let fileName = URL(fileURLWithPath: filePath).lastPathComponent + logMessage("File: \(fileName):\(lineNumber)") + } + logMessage(String(repeating: "=", count: 80)) + } + + func testCase(_ testCase: XCTestCase, didRecord issue: XCTIssue) { + logMessage("TEST ISSUE RECORDED:") + logMessage("Test: \(testCase.name)") + logMessage("Description: \(issue.compactDescription)") + logMessage("Type: \(issue.type.description)") + + if let location = issue.sourceCodeContext.location { + if #available(iOS 16.0, *) { + let fileName = URL(fileURLWithPath: location.fileURL.path()).lastPathComponent + logMessage("Location: \(fileName):\(location.lineNumber)") + } else { + logMessage("Location: Available on iOS versions - iOS 16+") + } + + } + + // Add detailed description if available + if ((issue.detailedDescription?.isEmpty) == nil) && issue.detailedDescription != issue.compactDescription { + logMessage("Details: \(String(describing: issue.detailedDescription))") + } + } + + // MARK: - Helper Methods + + private func logMessage(_ message: String) { + let timestamp = dateFormatter.string(from: Date()) + let logLine = "[\(timestamp)] [TestObserver] \(message)" + print(logLine) + fflush(stdout) + } +} + +extension XCTIssue.IssueType { + var description: String { + switch self { + case .assertionFailure: + return "Assertion Failure" + case .performanceRegression: + return "Performance Regression" + case .system: + return "System Issue" + case .thrownError: + return "Thrown Error" + case .uncaughtException: + return "Uncaught Exception" + case .unmatchedExpectedFailure: + return "Unmatched Expected Failure" + @unknown default: + return "Unknown Issue Type" + } + } +} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTestTests/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTestTests/iOSReleaseTestTests.swift index 789d8f9d4..7399e7a83 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTestTests/iOSReleaseTestTests.swift +++ b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTestTests/iOSReleaseTestTests.swift @@ -9,30 +9,75 @@ import XCTest @testable import iOSReleaseTest final class iOSReleaseTestTests: XCTestCase { + + private static var testObserver: TestObserver? + + override class func setUp() { + super.setUp() + + // Register the test observer for detailed logging in GitHub Actions + testObserver = TestObserver() + XCTestObservationCenter.shared.addTestObserver(testObserver!) + + print("[TestSetup] Test observer registered for enhanced GitHub Actions logging") + + } + + override class func tearDown() { + // Remove the test observer + if let observer = testObserver { + XCTestObservationCenter.shared.removeTestObserver(observer) + testObserver = nil + } + + super.tearDown() + } override func setUpWithError() throws { // Put setup code here. This method is called before the invocation of each test method in the class. + print("[Setup] Setting up test: \(self.name)") } override func tearDownWithError() throws { // Put teardown code here. This method is called after the invocation of each test method in the class. + print("[Teardown] Cleaning up test: \(self.name)") + } + + func testDummy() throws { + print("[Test] Running dummy test") + XCTAssertTrue(true, "Dummy test should always pass") + print("[Test] Dummy test completed") } func testSetTrackingDisabled() throws { + print("[Test] Starting testSetTrackingDisabled") let sdk = BranchSDKTest() + print("[Test] Disabling tracking...") sdk.disableTracking(status: true) - let x = sdk.trackingStatus() - assert( x == true) + + let trackingStatus = sdk.trackingStatus() + print("[Test] Tracking status: \(trackingStatus)") + + XCTAssertTrue(trackingStatus, "Tracking should be disabled (true)") + + print("[Test] Disabling tracking again...") sdk.disableTracking(status: true) + + print("[Test] testSetTrackingDisabled completed successfully") } func testPerformanceExample() throws { - // This is an example of a performance test case. + print("[Test] Starting performance test *********************") measure { - // Put the code you want to measure the time of here. + print("[Performance] Measuring performance...********************") + let sdk = BranchSDKTest() + sdk.disableTracking(status: false) + _ = sdk.trackingStatus() } + + print("[Test] Performance test completed") } } From b97f00ec8e901dd356f814b576b85f6692d7f07f Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 09:35:18 -0700 Subject: [PATCH 02/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index 0a2d30548..4c2f47124 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -5,6 +5,7 @@ on: [push] jobs: verify-cocoapods-iOS: runs-on: macos-latest + timeout-minutes: 20 steps: - name: Check out code uses: actions/checkout@v4 @@ -17,7 +18,8 @@ jobs: pod install xcodebuild test -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]} verify-carthage-iOS: - runs-on: macos-15 + runs-on: macos-latest + timeout-minutes: 20 steps: - name: Check out code uses: actions/checkout@v4 @@ -34,6 +36,7 @@ jobs: xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]} verify-SPM-iOS: runs-on: macos-latest + timeout-minutes: 20 steps: - name: Check out code uses: actions/checkout@v4 @@ -45,6 +48,7 @@ jobs: xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]} verify-manually-with-xcframework-iOS: runs-on: macos-latest + timeout-minutes: 20 steps: - name: Check out code uses: actions/checkout@v4 @@ -57,6 +61,7 @@ jobs: xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]} verify-manually-with-StaticFramework-iOS: runs-on: macos-latest + timeout-minutes: 20 steps: - name: Check out code uses: actions/checkout@v4 @@ -69,6 +74,7 @@ jobs: xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]} verify-cocoapods-tvOS: runs-on: macos-latest + timeout-minutes: 20 steps: - name: Check out code uses: actions/checkout@v4 @@ -81,6 +87,7 @@ jobs: xcodebuild test -scheme tvOSReleaseTest -workspace tvOSReleaseTest.xcworkspace -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]} verify-carthage-tvOS: runs-on: macos-latest + timeout-minutes: 20 steps: - name: Check out code uses: actions/checkout@v4 @@ -92,6 +99,7 @@ jobs: echo "Skipping it ... its broken" verify-manually-with-xcframework-tvOS: runs-on: macos-latest + timeout-minutes: 20 steps: - name: Check out code uses: actions/checkout@v4 From 917621ffad96a77b835d1f6364843b31b139a6c8 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 09:54:23 -0700 Subject: [PATCH 03/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index 4c2f47124..dc1cdfc16 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -16,7 +16,8 @@ jobs: 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]} + xcodebuild test -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace + -destination "$DESTINATION" verify-carthage-iOS: runs-on: macos-latest timeout-minutes: 20 @@ -33,8 +34,7 @@ jobs: cd SDKIntegrationTestApps/iOSReleaseTest-Carthage/ echo "git \"file://${CURR_DIR}\" \"$BRANCH_NAME\" " >> cartfile carthage update --use-xcframeworks - xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]} - verify-SPM-iOS: + xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" runs-on: macos-latest timeout-minutes: 20 steps: @@ -45,7 +45,7 @@ jobs: ./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]} + xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" verify-manually-with-xcframework-iOS: runs-on: macos-latest timeout-minutes: 20 @@ -58,7 +58,7 @@ jobs: 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]} + xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" verify-manually-with-StaticFramework-iOS: runs-on: macos-latest timeout-minutes: 20 @@ -71,7 +71,7 @@ jobs: 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]} + xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" verify-cocoapods-tvOS: runs-on: macos-latest timeout-minutes: 20 @@ -84,7 +84,7 @@ jobs: 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]} + xcodebuild test -scheme tvOSReleaseTest -workspace tvOSReleaseTest.xcworkspace -destination "$DESTINATION" verify-carthage-tvOS: runs-on: macos-latest timeout-minutes: 20 @@ -109,4 +109,4 @@ jobs: 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]} + xcodebuild test -scheme tvOSReleaseTest -project tvOSReleaseTest.xcodeproj -destination "$DESTINATION" From 7d0d9b79f88cb0e215609fdd3d9954e66d4e2671 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 10:00:48 -0700 Subject: [PATCH 04/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index dc1cdfc16..0f2d4ac18 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -34,7 +34,8 @@ jobs: cd SDKIntegrationTestApps/iOSReleaseTest-Carthage/ echo "git \"file://${CURR_DIR}\" \"$BRANCH_NAME\" " >> cartfile carthage update --use-xcframeworks - xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" + xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" + verify-SPM-iOS: runs-on: macos-latest timeout-minutes: 20 steps: From 83d277c912c01dc7dadbcb7a87190a98db0c1bda Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 10:29:22 -0700 Subject: [PATCH 05/85] Updated DEVELOPMENT_TEAM id for code signing --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index 1d94887a7..af9a9a73c 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -242,10 +242,14 @@ inputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-iOSReleaseTest/Pods-iOSReleaseTest-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); + inputPaths = ( + ); name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-iOSReleaseTest/Pods-iOSReleaseTest-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); + outputPaths = ( + ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-iOSReleaseTest/Pods-iOSReleaseTest-frameworks.sh\"\n"; @@ -303,10 +307,14 @@ inputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-iOSReleaseTestTests/Pods-iOSReleaseTestTests-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); + inputPaths = ( + ); name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-iOSReleaseTestTests/Pods-iOSReleaseTestTests-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); + outputPaths = ( + ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-iOSReleaseTestTests/Pods-iOSReleaseTestTests-frameworks.sh\"\n"; @@ -488,7 +496,7 @@ CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 5YP4T32B58; + DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = iOSReleaseTest/Info.plist; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -518,7 +526,7 @@ CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = YKPTD52Z6X; + DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = iOSReleaseTest/Info.plist; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; From 213da052e1588115ec33e39a12ae6cfceae5ecc8 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 10:55:53 -0700 Subject: [PATCH 06/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index 0f2d4ac18..1d204b6ef 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -11,13 +11,14 @@ jobs: uses: actions/checkout@v4 - name: Install pod, build project and run tests run: | + mkdir -p test-results 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" + -destination "$DESTINATION" -resultBundlePath ../../test-results/ios-cocoapods.xcresult verify-carthage-iOS: runs-on: macos-latest timeout-minutes: 20 @@ -28,13 +29,14 @@ jobs: env: BRANCH_NAME: ${{ github.head_ref || github.ref_name }} run: | + mkdir -p test-results CURR_DIR=$(PWD) ./scripts/getSimulator DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest" cd SDKIntegrationTestApps/iOSReleaseTest-Carthage/ echo "git \"file://${CURR_DIR}\" \"$BRANCH_NAME\" " >> cartfile carthage update --use-xcframeworks - xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" + xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" -resultBundlePath ../../test-results/ios-carthage.xcresult verify-SPM-iOS: runs-on: macos-latest timeout-minutes: 20 @@ -43,10 +45,11 @@ jobs: uses: actions/checkout@v4 - name: build project and run tests run: | + mkdir -p test-results ./scripts/getSimulator DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest" cd SDKIntegrationTestApps/iOSReleaseTest-SPM/ - xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" + xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" -resultBundlePath ../../test-results/ios-spm.xcresult verify-manually-with-xcframework-iOS: runs-on: macos-latest timeout-minutes: 20 @@ -55,11 +58,12 @@ jobs: uses: actions/checkout@v4 - name: build xcframework, then build project and run tests run: | + mkdir -p test-results ./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" + xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" -resultBundlePath ../../test-results/ios-xcframework.xcresult verify-manually-with-StaticFramework-iOS: runs-on: macos-latest timeout-minutes: 20 @@ -68,11 +72,12 @@ jobs: uses: actions/checkout@v4 - name: build static xcframework, then build project and run tests run: | + mkdir -p test-results ./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" + xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" -resultBundlePath ../../test-results/ios-static-framework.xcresult verify-cocoapods-tvOS: runs-on: macos-latest timeout-minutes: 20 @@ -81,11 +86,12 @@ jobs: uses: actions/checkout@v4 - name: Install pod, build project and run tests run: | + mkdir -p test-results ./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" + xcodebuild test -scheme tvOSReleaseTest -workspace tvOSReleaseTest.xcworkspace -destination "$DESTINATION" -resultBundlePath ../../test-results/tvOS-cocoapods.xcresult verify-carthage-tvOS: runs-on: macos-latest timeout-minutes: 20 @@ -94,6 +100,7 @@ jobs: uses: actions/checkout@v4 - name: Verify Integration using Carthage for tvOS run: | + mkdir -p test-results ./scripts/getSimulator DESTINATION="platform=tvOS Simulator,name=$(cat ./appleTVSim),OS=latest" cd SDKIntegrationTestApps/tvOSReleaseTest-Carthage/ @@ -106,8 +113,9 @@ jobs: uses: actions/checkout@v4 - name: build xcframework, then build project and run tests run: | + mkdir -p test-results ./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" + xcodebuild test -scheme tvOSReleaseTest -project tvOSReleaseTest.xcodeproj -destination "$DESTINATION" -resultBundlePath ../../test-results/tvOS-xcframework.xcresult From 73323e74ce129c668b90b4a82f2ab000f2fc70c6 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 12:09:08 -0700 Subject: [PATCH 07/85] Updated project settings with App configuration from Branch Testbed. --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 +- .../iOSReleaseTest/Info.plist | 53 ++++++++++--------- .../iOSReleaseTest.entitlements | 6 ++- 3 files changed, 34 insertions(+), 29 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index af9a9a73c..8e12a71f1 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -509,7 +509,7 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.sdk.Branch-TestBed"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; @@ -539,7 +539,7 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.sdk.Branch-TestBed"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Info.plist b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Info.plist index 7cb6fcafa..34f900d68 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Info.plist +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Info.plist @@ -2,31 +2,19 @@ - branch_universal_link_domains - - nipunreleasetest.app.link - nipunreleasetest-alternate.app.link - - CFBundleURLTypes - - - CFBundleTypeRole - Editor - CFBundleURLSchemes - - iOSReleaseTest - - CFBundleURLName - com.NipunSingh.iOSReleaseTest - - - branch_key - - live - key_live_ok7NoVhyIh1llbtOW6sfHpbnxBlJjiDp - test - secret_live_NktIf5YHh5us8Hbm7CbyUCPmqwtyqz9M - + CFBundleURLTypes + + + CFBundleTypeRole + Editor + CFBundleURLName + io.branch.sdk.Branch-TestBed + CFBundleURLSchemes + + branchtest + + + UIApplicationSceneManifest UIApplicationSupportsMultipleScenes @@ -46,5 +34,20 @@ + branch_key + + live + key_live_hcnegAumkH7Kv18M8AOHhfgiohpXq5tB + test + key_test_hdcBLUy1xZ1JD0tKg7qrLcgirFmPPVJc + + branch_universal_link_domains + + + applinks:bnctestbed.test-app.link + bnc.lt + applinks:bnctestbed-alternate.app.link + bnctestbed.app.link + diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements index dc0ea48ed..77b016325 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements @@ -4,8 +4,10 @@ com.apple.developer.associated-domains - applinks:nipunreleasetest.app.link - applinks:nipunreleasetest-alternate.app.link + applinks:bnc.lt + applinks:bnctestbed.app.link + applinks:bnctestbed.test-app.link + applinks:bnctestbed-alternate.app.link From e9369c60806a88bb3dc728abfd945c22d12aec27 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 12:16:40 -0700 Subject: [PATCH 08/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 42 ++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index 1d204b6ef..230102af5 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -19,6 +19,12 @@ jobs: pod install xcodebuild test -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace -destination "$DESTINATION" -resultBundlePath ../../test-results/ios-cocoapods.xcresult + - name: Upload test report + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-report-cocoapods-iOS + path: test-results/ios-cocoapods.xcresult verify-carthage-iOS: runs-on: macos-latest timeout-minutes: 20 @@ -37,6 +43,12 @@ jobs: echo "git \"file://${CURR_DIR}\" \"$BRANCH_NAME\" " >> cartfile carthage update --use-xcframeworks xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" -resultBundlePath ../../test-results/ios-carthage.xcresult + - name: Upload test report + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-report-carthage-iOS + path: test-results/ios-carthage.xcresult verify-SPM-iOS: runs-on: macos-latest timeout-minutes: 20 @@ -50,6 +62,12 @@ jobs: DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest" cd SDKIntegrationTestApps/iOSReleaseTest-SPM/ xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" -resultBundlePath ../../test-results/ios-spm.xcresult + - name: Upload test report + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-report-spm-iOS + path: test-results/ios-spm.xcresult verify-manually-with-xcframework-iOS: runs-on: macos-latest timeout-minutes: 20 @@ -64,6 +82,12 @@ jobs: xcodebuild -scheme xcframework cd SDKIntegrationTestApps/iOSReleaseTest-Manual/ xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" -resultBundlePath ../../test-results/ios-xcframework.xcresult + - name: Upload test report + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-report-manual-xcframework-iOS + path: test-results/ios-xcframework.xcresult verify-manually-with-StaticFramework-iOS: runs-on: macos-latest timeout-minutes: 20 @@ -78,6 +102,12 @@ jobs: xcodebuild -scheme static-xcframework cd SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/ xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" -resultBundlePath ../../test-results/ios-static-framework.xcresult + - name: Upload test report + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-report-manual-static-iOS + path: test-results/ios-static-framework.xcresult verify-cocoapods-tvOS: runs-on: macos-latest timeout-minutes: 20 @@ -92,6 +122,12 @@ jobs: cd SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/ pod install xcodebuild test -scheme tvOSReleaseTest -workspace tvOSReleaseTest.xcworkspace -destination "$DESTINATION" -resultBundlePath ../../test-results/tvOS-cocoapods.xcresult + - name: Upload test report + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-report-cocoapods-tvOS + path: test-results/tvOS-cocoapods.xcresult verify-carthage-tvOS: runs-on: macos-latest timeout-minutes: 20 @@ -119,3 +155,9 @@ jobs: xcodebuild -scheme xcframework cd SDKIntegrationTestApps/tvOSReleaseTest-Manual/ xcodebuild test -scheme tvOSReleaseTest -project tvOSReleaseTest.xcodeproj -destination "$DESTINATION" -resultBundlePath ../../test-results/tvOS-xcframework.xcresult + - name: Upload test report + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-report-manual-xcframework-tvOS + path: test-results/tvOS-xcframework.xcresult From 896ae598fb6508439273d7c281ddccaa34213a2a Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 12:21:57 -0700 Subject: [PATCH 09/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index 8e12a71f1..6ba3e6224 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -511,6 +511,7 @@ MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "io.branch.sdk.Branch-TestBed"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -541,6 +542,7 @@ MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "io.branch.sdk.Branch-TestBed"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; From bc4150ac6a8750d2e88fbe4e543b97e7bfa33d24 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 12:25:45 -0700 Subject: [PATCH 10/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index 6ba3e6224..29f997a78 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -494,6 +494,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; + CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = R63EM248DP; @@ -525,6 +526,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; + CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = R63EM248DP; From 59dfef4a4a5a65d66739959e31b53f41d15b196e Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 12:29:08 -0700 Subject: [PATCH 11/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index 230102af5..581c04437 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -18,7 +18,7 @@ jobs: cd SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/ pod install xcodebuild test -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace - -destination "$DESTINATION" -resultBundlePath ../../test-results/ios-cocoapods.xcresult + -destination "$DESTINATION" -resultBundlePath ../../test-results/ios-cocoapods.xcresult -allowProvisioningUpdates - name: Upload test report uses: actions/upload-artifact@v4 if: always() From 624c189674429873e20490acb0b6596e8188bee4 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 12:35:07 -0700 Subject: [PATCH 12/85] Temp-testing without code signing --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 10 ---------- .../iOSReleaseTest/iOSReleaseTest.entitlements | 10 +--------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index 29f997a78..1e0142645 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -493,11 +493,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; - CODE_SIGN_IDENTITY = "Apple Development"; - CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = iOSReleaseTest/Info.plist; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -512,7 +508,6 @@ MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "io.branch.sdk.Branch-TestBed"; PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -525,11 +520,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; - CODE_SIGN_IDENTITY = "Apple Development"; - CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = iOSReleaseTest/Info.plist; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -544,7 +535,6 @@ MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "io.branch.sdk.Branch-TestBed"; PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements index 77b016325..0c67376eb 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements @@ -1,13 +1,5 @@ - - com.apple.developer.associated-domains - - applinks:bnc.lt - applinks:bnctestbed.app.link - applinks:bnctestbed.test-app.link - applinks:bnctestbed-alternate.app.link - - + From 8c7618c02c53d9d2da8c4988578fcce588a1d84a Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 12:36:59 -0700 Subject: [PATCH 13/85] Revert "Temp-testing without code signing" This reverts commit 624c189674429873e20490acb0b6596e8188bee4. --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 10 ++++++++++ .../iOSReleaseTest/iOSReleaseTest.entitlements | 10 +++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index 1e0142645..29f997a78 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -493,7 +493,11 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = iOSReleaseTest/Info.plist; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -508,6 +512,7 @@ MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "io.branch.sdk.Branch-TestBed"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -520,7 +525,11 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = iOSReleaseTest/Info.plist; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -535,6 +544,7 @@ MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "io.branch.sdk.Branch-TestBed"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements index 0c67376eb..77b016325 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements @@ -1,5 +1,13 @@ - + + com.apple.developer.associated-domains + + applinks:bnc.lt + applinks:bnctestbed.app.link + applinks:bnctestbed.test-app.link + applinks:bnctestbed-alternate.app.link + + From 4f89c9eb9ab7ae2ee31be567e222b0de44436ffc Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 12:37:53 -0700 Subject: [PATCH 14/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index 29f997a78..661472234 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -563,7 +563,7 @@ GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.SamSolutions.iOSReleaseTestTests; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.sdk.Branch-TestBed"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; @@ -584,7 +584,7 @@ GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.SamSolutions.iOSReleaseTestTests; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.sdk.Branch-TestBed"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; From 3630a4b309f25a7caf61d8b41ea6d82e4e6c454a Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 12:39:55 -0700 Subject: [PATCH 15/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 ---- 1 file changed, 4 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index 661472234..ae44fd2dc 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -557,9 +557,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; @@ -578,9 +576,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; From b2095c6f95a58980caab20884bf8b8b5031939a5 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 12:58:12 -0700 Subject: [PATCH 16/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index 581c04437..bee9c7b11 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -24,7 +24,7 @@ jobs: if: always() with: name: test-report-cocoapods-iOS - path: test-results/ios-cocoapods.xcresult + path: test-results verify-carthage-iOS: runs-on: macos-latest timeout-minutes: 20 From 620110630b53474577fca466928d0f3fbd8cdfc2 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 12:58:42 -0700 Subject: [PATCH 17/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index bee9c7b11..cd82a9b7f 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -24,7 +24,7 @@ jobs: if: always() with: name: test-report-cocoapods-iOS - path: test-results + path: test-results/ios-cocoapods.xcresult verify-carthage-iOS: runs-on: macos-latest timeout-minutes: 20 @@ -67,7 +67,7 @@ jobs: if: always() with: name: test-report-spm-iOS - path: test-results/ios-spm.xcresult + path: test-results verify-manually-with-xcframework-iOS: runs-on: macos-latest timeout-minutes: 20 From 44f17bce245756e5c20cfed3435adfeb0b9207cc Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 13:08:42 -0700 Subject: [PATCH 18/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index cd82a9b7f..a4bbeaf58 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -24,7 +24,7 @@ jobs: if: always() with: name: test-report-cocoapods-iOS - path: test-results/ios-cocoapods.xcresult + path: test-results verify-carthage-iOS: runs-on: macos-latest timeout-minutes: 20 @@ -48,7 +48,7 @@ jobs: if: always() with: name: test-report-carthage-iOS - path: test-results/ios-carthage.xcresult + path: test-results verify-SPM-iOS: runs-on: macos-latest timeout-minutes: 20 @@ -87,7 +87,7 @@ jobs: if: always() with: name: test-report-manual-xcframework-iOS - path: test-results/ios-xcframework.xcresult + path: test-results verify-manually-with-StaticFramework-iOS: runs-on: macos-latest timeout-minutes: 20 @@ -107,7 +107,7 @@ jobs: if: always() with: name: test-report-manual-static-iOS - path: test-results/ios-static-framework.xcresult + path: test-results verify-cocoapods-tvOS: runs-on: macos-latest timeout-minutes: 20 @@ -127,7 +127,7 @@ jobs: if: always() with: name: test-report-cocoapods-tvOS - path: test-results/tvOS-cocoapods.xcresult + path: test-results verify-carthage-tvOS: runs-on: macos-latest timeout-minutes: 20 @@ -160,4 +160,4 @@ jobs: if: always() with: name: test-report-manual-xcframework-tvOS - path: test-results/tvOS-xcframework.xcresult + path: test-results From aa8faa7c6912c394e59ecd21ebf62c5caa100382 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 14:39:36 -0700 Subject: [PATCH 19/85] Update iOSReleaseTestTests.swift --- .../iOSReleaseTestTests.swift | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTestTests/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTestTests/iOSReleaseTestTests.swift index 7399e7a83..cc5ec935f 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTestTests/iOSReleaseTestTests.swift +++ b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTestTests/iOSReleaseTestTests.swift @@ -7,6 +7,7 @@ import XCTest @testable import iOSReleaseTest +import BranchSDK final class iOSReleaseTestTests: XCTestCase { @@ -21,6 +22,47 @@ final class iOSReleaseTestTests: XCTestCase { print("[TestSetup] Test observer registered for enhanced GitHub Actions logging") + Branch.setCallbackForTracingRequests { url, request, response, error, serviceURL in + // traceQueue.async { + print("Tracing Callback Start ********************"); + print("URL: " + (url ?? "")); + if let dict = request as? [AnyHashable: Any] { + let stringDict = dict.reduce(into: [String: Any]()) { result, entry in + if let key = entry.key as? String { + result[key] = entry.value + } + } + + if let data = try? JSONSerialization.data(withJSONObject: stringDict, options: [.prettyPrinted]), + let json = String(data: data, encoding: .utf8) { + print("Request JSON:\n\(json)") + } + } else { + print("Request JSON: null") + } + + if let dict = response as? [AnyHashable: Any] { + let stringDict = dict.reduce(into: [String: Any]()) { result, entry in + if let key = entry.key as? String { + result[key] = entry.value + } + } + + if let data = try? JSONSerialization.data(withJSONObject: stringDict, options: [.prettyPrinted]), + let json = String(data: data, encoding: .utf8) { + print("Response JSON:\n\(json)") + } + } else { + print("Response JSON: null") + } + print("Error: " + (error.debugDescription)); + print("Request Service URL: " + (serviceURL!)); + + print("Tracing Callback End ********************"); + // } + } + + } override class func tearDown() { From 24057adb06e5a038274ce515f31c0fa9fcdb0e42 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 16 Oct 2025 14:47:28 -0700 Subject: [PATCH 20/85] Source Code structure refactor test. --- .../TestObserver.swift | 0 .../iOSReleaseTestTests.swift | 0 .../iOSReleaseTest.xcodeproj/project.pbxproj | 6 +- .../iOSReleaseTestTests/TestObserver.swift | 133 ++++++++++++++++++ .../iOSReleaseTestTests.swift | 41 ------ .../iOSReleaseTest.xcodeproj/project.pbxproj | 6 +- .../iOSReleaseTestTests/TestObserver.swift | 133 ++++++++++++++++++ .../iOSReleaseTestTests.swift | 39 ----- .../iOSReleaseTest.xcodeproj/project.pbxproj | 6 +- .../iOSReleaseTestTests/TestObserver.swift | 133 ++++++++++++++++++ .../iOSReleaseTestTests.swift | 38 ----- .../iOSReleaseTest.xcodeproj/project.pbxproj | 6 +- .../iOSReleaseTestTests/TestObserver.swift | 133 ++++++++++++++++++ .../iOSReleaseTestTests.swift | 39 ----- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 +- 15 files changed, 554 insertions(+), 163 deletions(-) rename SDKIntegrationTestApps/{iOSReleaseTest-SPM/iOSReleaseTestTests => Source}/TestObserver.swift (100%) rename SDKIntegrationTestApps/{iOSReleaseTest-SPM/iOSReleaseTestTests => Source}/iOSReleaseTestTests.swift (100%) create mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTestTests/TestObserver.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTestTests/iOSReleaseTestTests.swift create mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTestTests/TestObserver.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTestTests/iOSReleaseTestTests.swift create mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTestTests/TestObserver.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTestTests/iOSReleaseTestTests.swift create mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTestTests/TestObserver.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTestTests/iOSReleaseTestTests.swift diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTestTests/TestObserver.swift b/SDKIntegrationTestApps/Source/TestObserver.swift similarity index 100% rename from SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTestTests/TestObserver.swift rename to SDKIntegrationTestApps/Source/TestObserver.swift diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTestTests/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift similarity index 100% rename from SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTestTests/iOSReleaseTestTests.swift rename to SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj index acc031d5c..fe3bd7bda 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj @@ -14,6 +14,7 @@ C119B02127ADC85E00E8C7BF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C119B02027ADC85E00E8C7BF /* Assets.xcassets */; }; C119B02427ADC85E00E8C7BF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */; }; C119B02C27ADC92A00E8C7BF /* iOSReleaseTest.entitlements in Resources */ = {isa = PBXBuildFile; fileRef = C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */; }; + E72CA88B2EA19F0400805780 /* TestObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = E72CA88A2EA19F0400805780 /* TestObserver.swift */; }; E75C0E192975391F0001D5D7 /* BranchSDK.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = E763E99C29354DA40053F490 /* BranchSDK.xcframework */; }; E75C0E1A2975391F0001D5D7 /* BranchSDK.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = E763E99C29354DA40053F490 /* BranchSDK.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */; }; @@ -53,9 +54,10 @@ C119B02327ADC85E00E8C7BF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; C119B02527ADC85E00E8C7BF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = iOSReleaseTest.entitlements; sourceTree = ""; }; + E72CA88A2EA19F0400805780 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; E763E99C29354DA40053F490 /* BranchSDK.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = BranchSDK.xcframework; path = Carthage/Build/BranchSDK.xcframework; sourceTree = ""; }; E7939C0129749D3C00B90B82 /* iOSReleaseTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOSReleaseTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSReleaseTestTests.swift; sourceTree = ""; }; + E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = iOSReleaseTestTests.swift; path = ../../Source/iOSReleaseTestTests.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -122,6 +124,7 @@ E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */ = { isa = PBXGroup; children = ( + E72CA88A2EA19F0400805780 /* TestObserver.swift */, E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */, ); path = iOSReleaseTestTests; @@ -241,6 +244,7 @@ buildActionMask = 2147483647; files = ( E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */, + E72CA88B2EA19F0400805780 /* TestObserver.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTestTests/TestObserver.swift b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTestTests/TestObserver.swift new file mode 100644 index 000000000..e36c734fd --- /dev/null +++ b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTestTests/TestObserver.swift @@ -0,0 +1,133 @@ +import XCTest +import Foundation + +class TestObserver: NSObject, XCTestObservation { + + private let dateFormatter: DateFormatter = { + let formatter = DateFormatter() + formatter.dateFormat = "yyyy-MM-dd HH:mm:ss.SSS" + return formatter + }() + + func testBundleWillStart(_ testBundle: Bundle) { + logMessage("Test Bundle Will Start: \(testBundle.bundleIdentifier ?? "Unknown")") + logMessage("Bundle Path: \(testBundle.bundlePath)") + } + + func testBundleDidFinish(_ testBundle: Bundle) { + logMessage("Test Bundle Did Finish: \(testBundle.bundleIdentifier ?? "Unknown")") + } + + func testSuiteWillStart(_ testSuite: XCTestSuite) { + logMessage("Test Suite Will Start: \(testSuite.name)") + logMessage("Test Count: \(testSuite.testCaseCount)") + } + + func testSuiteDidFinish(_ testSuite: XCTestSuite) { + let duration = String(format: "%.3f", testSuite.testRun?.totalDuration ?? 0) + let failures = testSuite.testRun?.failureCount ?? 0 + let unexpected = testSuite.testRun?.unexpectedExceptionCount ?? 0 + + logMessage("Test Suite Did Finish: \(testSuite.name)") + logMessage("Duration: \(duration)s") + logMessage("Failures: \(failures)") + logMessage("Unexpected Exceptions: \(unexpected)") + + if failures > 0 || unexpected > 0 { + logMessage("SUITE FAILED: \(testSuite.name)") + } else { + logMessage("SUITE PASSED: \(testSuite.name)") + } + } + + func testCaseWillStart(_ testCase: XCTestCase) { + logMessage("Test Case Will Start: \(testCase.name)") + logMessage("Class: \(String(describing: type(of: testCase)))") + } + + func testCaseDidFinish(_ testCase: XCTestCase) { + guard let testRun = testCase.testRun else { + logMessage("Test Case Did Finish (No Run Info): \(testCase.name)") + return + } + + let duration = String(format: "%.3f", testRun.totalDuration) + let failures = testRun.failureCount + let unexpected = testRun.unexpectedExceptionCount + + logMessage("Test Case Did Finish: \(testCase.name)") + logMessage("Duration: \(duration)s") + + if testRun.hasSucceeded { + logMessage("PASSED: \(testCase.name)") + } else { + logMessage("FAILED: \(testCase.name)") + logMessage("Failures: \(failures)") + logMessage("Unexpected Exceptions: \(unexpected)") + } + } + + func testCase(_ testCase: XCTestCase, didFailWithDescription description: String, inFile filePath: String?, atLine lineNumber: Int) { + logMessage("TEST FAILURE:") + logMessage("Test: \(testCase.name)") + logMessage("Description: \(description)") + + if let filePath = filePath { + let fileName = URL(fileURLWithPath: filePath).lastPathComponent + logMessage("File: \(fileName):\(lineNumber)") + } + logMessage(String(repeating: "=", count: 80)) + } + + func testCase(_ testCase: XCTestCase, didRecord issue: XCTIssue) { + logMessage("TEST ISSUE RECORDED:") + logMessage("Test: \(testCase.name)") + logMessage("Description: \(issue.compactDescription)") + logMessage("Type: \(issue.type.description)") + + if let location = issue.sourceCodeContext.location { + if #available(iOS 16.0, *) { + let fileName = URL(fileURLWithPath: location.fileURL.path()).lastPathComponent + logMessage("Location: \(fileName):\(location.lineNumber)") + } else { + logMessage("Location: Available on iOS versions - iOS 16+") + } + + } + + // Add detailed description if available + if ((issue.detailedDescription?.isEmpty) == nil) && issue.detailedDescription != issue.compactDescription { + logMessage("Details: \(String(describing: issue.detailedDescription))") + } + } + + // MARK: - Helper Methods + + private func logMessage(_ message: String) { + let timestamp = dateFormatter.string(from: Date()) + let logLine = "[\(timestamp)] [TestObserver] \(message)" + print(logLine) + fflush(stdout) + } +} + +extension XCTIssue.IssueType { + var description: String { + switch self { + case .assertionFailure: + return "Assertion Failure" + case .performanceRegression: + return "Performance Regression" + case .system: + return "System Issue" + case .thrownError: + return "Thrown Error" + case .uncaughtException: + return "Uncaught Exception" + case .unmatchedExpectedFailure: + return "Unmatched Expected Failure" + @unknown default: + return "Unknown Issue Type" + } + } +} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTestTests/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTestTests/iOSReleaseTestTests.swift deleted file mode 100644 index c9c37f7c3..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTestTests/iOSReleaseTestTests.swift +++ /dev/null @@ -1,41 +0,0 @@ -// -// iOSReleaseTestTests.swift -// iOSReleaseTestTests -// -// Created by Nidhi Dixit on 1/15/23. -// - -import XCTest -import BranchSDK - -final class iOSReleaseTestTests: XCTestCase { - - override func setUpWithError() throws { - // Put setup code here. This method is called before the invocation of each test method in the class. - } - - override func tearDownWithError() throws { - // Put teardown code here. This method is called after the invocation of each test method in the class. - } - - func testSetTrackingDisabled() throws { - Branch.getInstance().enableLogging() - Branch.getInstance().initSession(launchOptions: nil) { (params, error) in - // do stuff with deep link data (nav to page, display content, etc) - print(params as? [String: AnyObject] ?? {}) - } - Branch.setTrackingDisabled(true) - let x = Branch.trackingDisabled() - assert( x == true) - Branch.setTrackingDisabled(false) - print("Test completed.") - } - - func testPerformanceExample() throws { - // This is an example of a performance test case. - measure { - // Put the code you want to measure the time of here. - } - } - -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index ae44fd2dc..e753e25c6 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -16,6 +16,7 @@ C119B02127ADC85E00E8C7BF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C119B02027ADC85E00E8C7BF /* Assets.xcassets */; }; C119B02427ADC85E00E8C7BF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */; }; C119B02C27ADC92A00E8C7BF /* iOSReleaseTest.entitlements in Resources */ = {isa = PBXBuildFile; fileRef = C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */; }; + E72CA8872EA19EA500805780 /* TestObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = E72CA8862EA19EA500805780 /* TestObserver.swift */; }; E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */; }; /* End PBXBuildFile section */ @@ -44,8 +45,9 @@ C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = iOSReleaseTest.entitlements; sourceTree = ""; }; CB25BCCA817F45C9E229676E /* Pods_iOSReleaseTest.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_iOSReleaseTest.framework; sourceTree = BUILT_PRODUCTS_DIR; }; D347EDD199CA7E6A4A677D5A /* Pods-iOSReleaseTestTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iOSReleaseTestTests.release.xcconfig"; path = "Target Support Files/Pods-iOSReleaseTestTests/Pods-iOSReleaseTestTests.release.xcconfig"; sourceTree = ""; }; + E72CA8862EA19EA500805780 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; E7939C0129749D3C00B90B82 /* iOSReleaseTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOSReleaseTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSReleaseTestTests.swift; sourceTree = ""; }; + E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = iOSReleaseTestTests.swift; path = ../../Source/iOSReleaseTestTests.swift; sourceTree = ""; }; FD6F9153F98F7AA38E9A2DCF /* Pods_iOSReleaseTestTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_iOSReleaseTestTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ @@ -127,6 +129,7 @@ E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */ = { isa = PBXGroup; children = ( + E72CA8862EA19EA500805780 /* TestObserver.swift */, E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */, ); path = iOSReleaseTestTests; @@ -338,6 +341,7 @@ buildActionMask = 2147483647; files = ( E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */, + E72CA8872EA19EA500805780 /* TestObserver.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTestTests/TestObserver.swift b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTestTests/TestObserver.swift new file mode 100644 index 000000000..e36c734fd --- /dev/null +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTestTests/TestObserver.swift @@ -0,0 +1,133 @@ +import XCTest +import Foundation + +class TestObserver: NSObject, XCTestObservation { + + private let dateFormatter: DateFormatter = { + let formatter = DateFormatter() + formatter.dateFormat = "yyyy-MM-dd HH:mm:ss.SSS" + return formatter + }() + + func testBundleWillStart(_ testBundle: Bundle) { + logMessage("Test Bundle Will Start: \(testBundle.bundleIdentifier ?? "Unknown")") + logMessage("Bundle Path: \(testBundle.bundlePath)") + } + + func testBundleDidFinish(_ testBundle: Bundle) { + logMessage("Test Bundle Did Finish: \(testBundle.bundleIdentifier ?? "Unknown")") + } + + func testSuiteWillStart(_ testSuite: XCTestSuite) { + logMessage("Test Suite Will Start: \(testSuite.name)") + logMessage("Test Count: \(testSuite.testCaseCount)") + } + + func testSuiteDidFinish(_ testSuite: XCTestSuite) { + let duration = String(format: "%.3f", testSuite.testRun?.totalDuration ?? 0) + let failures = testSuite.testRun?.failureCount ?? 0 + let unexpected = testSuite.testRun?.unexpectedExceptionCount ?? 0 + + logMessage("Test Suite Did Finish: \(testSuite.name)") + logMessage("Duration: \(duration)s") + logMessage("Failures: \(failures)") + logMessage("Unexpected Exceptions: \(unexpected)") + + if failures > 0 || unexpected > 0 { + logMessage("SUITE FAILED: \(testSuite.name)") + } else { + logMessage("SUITE PASSED: \(testSuite.name)") + } + } + + func testCaseWillStart(_ testCase: XCTestCase) { + logMessage("Test Case Will Start: \(testCase.name)") + logMessage("Class: \(String(describing: type(of: testCase)))") + } + + func testCaseDidFinish(_ testCase: XCTestCase) { + guard let testRun = testCase.testRun else { + logMessage("Test Case Did Finish (No Run Info): \(testCase.name)") + return + } + + let duration = String(format: "%.3f", testRun.totalDuration) + let failures = testRun.failureCount + let unexpected = testRun.unexpectedExceptionCount + + logMessage("Test Case Did Finish: \(testCase.name)") + logMessage("Duration: \(duration)s") + + if testRun.hasSucceeded { + logMessage("PASSED: \(testCase.name)") + } else { + logMessage("FAILED: \(testCase.name)") + logMessage("Failures: \(failures)") + logMessage("Unexpected Exceptions: \(unexpected)") + } + } + + func testCase(_ testCase: XCTestCase, didFailWithDescription description: String, inFile filePath: String?, atLine lineNumber: Int) { + logMessage("TEST FAILURE:") + logMessage("Test: \(testCase.name)") + logMessage("Description: \(description)") + + if let filePath = filePath { + let fileName = URL(fileURLWithPath: filePath).lastPathComponent + logMessage("File: \(fileName):\(lineNumber)") + } + logMessage(String(repeating: "=", count: 80)) + } + + func testCase(_ testCase: XCTestCase, didRecord issue: XCTIssue) { + logMessage("TEST ISSUE RECORDED:") + logMessage("Test: \(testCase.name)") + logMessage("Description: \(issue.compactDescription)") + logMessage("Type: \(issue.type.description)") + + if let location = issue.sourceCodeContext.location { + if #available(iOS 16.0, *) { + let fileName = URL(fileURLWithPath: location.fileURL.path()).lastPathComponent + logMessage("Location: \(fileName):\(location.lineNumber)") + } else { + logMessage("Location: Available on iOS versions - iOS 16+") + } + + } + + // Add detailed description if available + if ((issue.detailedDescription?.isEmpty) == nil) && issue.detailedDescription != issue.compactDescription { + logMessage("Details: \(String(describing: issue.detailedDescription))") + } + } + + // MARK: - Helper Methods + + private func logMessage(_ message: String) { + let timestamp = dateFormatter.string(from: Date()) + let logLine = "[\(timestamp)] [TestObserver] \(message)" + print(logLine) + fflush(stdout) + } +} + +extension XCTIssue.IssueType { + var description: String { + switch self { + case .assertionFailure: + return "Assertion Failure" + case .performanceRegression: + return "Performance Regression" + case .system: + return "System Issue" + case .thrownError: + return "Thrown Error" + case .uncaughtException: + return "Uncaught Exception" + case .unmatchedExpectedFailure: + return "Unmatched Expected Failure" + @unknown default: + return "Unknown Issue Type" + } + } +} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTestTests/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTestTests/iOSReleaseTestTests.swift deleted file mode 100644 index 8944efe63..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTestTests/iOSReleaseTestTests.swift +++ /dev/null @@ -1,39 +0,0 @@ -// -// iOSReleaseTestTests.swift -// iOSReleaseTestTests -// -// Created by Nidhi Dixit on 1/15/23. -// - -import XCTest -import BranchSDK - -final class iOSReleaseTestTests: XCTestCase { - - override func setUpWithError() throws { - // Put setup code here. This method is called before the invocation of each test method in the class. - } - - override func tearDownWithError() throws { - // Put teardown code here. This method is called after the invocation of each test method in the class. - } - - func testSetTrackingDisabled() throws { - Branch.getInstance().enableLogging() - Branch.getInstance().initSession(launchOptions: nil) { (params, error) in - print(params as? [String: AnyObject] ?? {}) - } - Branch.setTrackingDisabled(true) - let x = Branch.trackingDisabled() - assert( x == true) - Branch.setTrackingDisabled(false) - } - - func testPerformanceExample() throws { - // This is an example of a performance test case. - measure { - // Put the code you want to measure the time of here. - } - } - -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj index d91be94ba..d3d0e2163 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj @@ -14,6 +14,7 @@ C119B02127ADC85E00E8C7BF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C119B02027ADC85E00E8C7BF /* Assets.xcassets */; }; C119B02427ADC85E00E8C7BF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */; }; C119B02C27ADC92A00E8C7BF /* iOSReleaseTest.entitlements in Resources */ = {isa = PBXBuildFile; fileRef = C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */; }; + E72CA88D2EA19F5800805780 /* TestObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = E72CA88C2EA19F5800805780 /* TestObserver.swift */; }; E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */; }; E7A0C2FA29898E4B0024497D /* BranchSDKTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7A0C2F929898E4B0024497D /* BranchSDKTest.swift */; }; E7A0C3012989AA1D0024497D /* BranchSDK.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = E7A0C3002989AA1D0024497D /* BranchSDK.xcframework */; }; @@ -54,8 +55,9 @@ C119B02327ADC85E00E8C7BF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; C119B02527ADC85E00E8C7BF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = iOSReleaseTest.entitlements; sourceTree = ""; }; + E72CA88C2EA19F5800805780 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; E7939C0129749D3C00B90B82 /* iOSReleaseTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOSReleaseTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSReleaseTestTests.swift; sourceTree = ""; }; + E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = iOSReleaseTestTests.swift; path = ../../Source/iOSReleaseTestTests.swift; sourceTree = ""; }; E7A0C2F929898E4B0024497D /* BranchSDKTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BranchSDKTest.swift; sourceTree = ""; }; E7A0C3002989AA1D0024497D /* BranchSDK.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = BranchSDK.xcframework; path = ../../build/BranchSDK.xcframework; sourceTree = ""; }; /* End PBXFileReference section */ @@ -117,6 +119,7 @@ E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */ = { isa = PBXGroup; children = ( + E72CA88C2EA19F5800805780 /* TestObserver.swift */, E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */, ); path = iOSReleaseTestTests; @@ -245,6 +248,7 @@ buildActionMask = 2147483647; files = ( E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */, + E72CA88D2EA19F5800805780 /* TestObserver.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTestTests/TestObserver.swift b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTestTests/TestObserver.swift new file mode 100644 index 000000000..e36c734fd --- /dev/null +++ b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTestTests/TestObserver.swift @@ -0,0 +1,133 @@ +import XCTest +import Foundation + +class TestObserver: NSObject, XCTestObservation { + + private let dateFormatter: DateFormatter = { + let formatter = DateFormatter() + formatter.dateFormat = "yyyy-MM-dd HH:mm:ss.SSS" + return formatter + }() + + func testBundleWillStart(_ testBundle: Bundle) { + logMessage("Test Bundle Will Start: \(testBundle.bundleIdentifier ?? "Unknown")") + logMessage("Bundle Path: \(testBundle.bundlePath)") + } + + func testBundleDidFinish(_ testBundle: Bundle) { + logMessage("Test Bundle Did Finish: \(testBundle.bundleIdentifier ?? "Unknown")") + } + + func testSuiteWillStart(_ testSuite: XCTestSuite) { + logMessage("Test Suite Will Start: \(testSuite.name)") + logMessage("Test Count: \(testSuite.testCaseCount)") + } + + func testSuiteDidFinish(_ testSuite: XCTestSuite) { + let duration = String(format: "%.3f", testSuite.testRun?.totalDuration ?? 0) + let failures = testSuite.testRun?.failureCount ?? 0 + let unexpected = testSuite.testRun?.unexpectedExceptionCount ?? 0 + + logMessage("Test Suite Did Finish: \(testSuite.name)") + logMessage("Duration: \(duration)s") + logMessage("Failures: \(failures)") + logMessage("Unexpected Exceptions: \(unexpected)") + + if failures > 0 || unexpected > 0 { + logMessage("SUITE FAILED: \(testSuite.name)") + } else { + logMessage("SUITE PASSED: \(testSuite.name)") + } + } + + func testCaseWillStart(_ testCase: XCTestCase) { + logMessage("Test Case Will Start: \(testCase.name)") + logMessage("Class: \(String(describing: type(of: testCase)))") + } + + func testCaseDidFinish(_ testCase: XCTestCase) { + guard let testRun = testCase.testRun else { + logMessage("Test Case Did Finish (No Run Info): \(testCase.name)") + return + } + + let duration = String(format: "%.3f", testRun.totalDuration) + let failures = testRun.failureCount + let unexpected = testRun.unexpectedExceptionCount + + logMessage("Test Case Did Finish: \(testCase.name)") + logMessage("Duration: \(duration)s") + + if testRun.hasSucceeded { + logMessage("PASSED: \(testCase.name)") + } else { + logMessage("FAILED: \(testCase.name)") + logMessage("Failures: \(failures)") + logMessage("Unexpected Exceptions: \(unexpected)") + } + } + + func testCase(_ testCase: XCTestCase, didFailWithDescription description: String, inFile filePath: String?, atLine lineNumber: Int) { + logMessage("TEST FAILURE:") + logMessage("Test: \(testCase.name)") + logMessage("Description: \(description)") + + if let filePath = filePath { + let fileName = URL(fileURLWithPath: filePath).lastPathComponent + logMessage("File: \(fileName):\(lineNumber)") + } + logMessage(String(repeating: "=", count: 80)) + } + + func testCase(_ testCase: XCTestCase, didRecord issue: XCTIssue) { + logMessage("TEST ISSUE RECORDED:") + logMessage("Test: \(testCase.name)") + logMessage("Description: \(issue.compactDescription)") + logMessage("Type: \(issue.type.description)") + + if let location = issue.sourceCodeContext.location { + if #available(iOS 16.0, *) { + let fileName = URL(fileURLWithPath: location.fileURL.path()).lastPathComponent + logMessage("Location: \(fileName):\(location.lineNumber)") + } else { + logMessage("Location: Available on iOS versions - iOS 16+") + } + + } + + // Add detailed description if available + if ((issue.detailedDescription?.isEmpty) == nil) && issue.detailedDescription != issue.compactDescription { + logMessage("Details: \(String(describing: issue.detailedDescription))") + } + } + + // MARK: - Helper Methods + + private func logMessage(_ message: String) { + let timestamp = dateFormatter.string(from: Date()) + let logLine = "[\(timestamp)] [TestObserver] \(message)" + print(logLine) + fflush(stdout) + } +} + +extension XCTIssue.IssueType { + var description: String { + switch self { + case .assertionFailure: + return "Assertion Failure" + case .performanceRegression: + return "Performance Regression" + case .system: + return "System Issue" + case .thrownError: + return "Thrown Error" + case .uncaughtException: + return "Uncaught Exception" + case .unmatchedExpectedFailure: + return "Unmatched Expected Failure" + @unknown default: + return "Unknown Issue Type" + } + } +} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTestTests/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTestTests/iOSReleaseTestTests.swift deleted file mode 100644 index 789d8f9d4..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTestTests/iOSReleaseTestTests.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// iOSReleaseTestTests.swift -// iOSReleaseTestTests -// -// Created by Nidhi Dixit on 1/15/23. -// - -import XCTest -@testable import iOSReleaseTest - -final class iOSReleaseTestTests: XCTestCase { - - override func setUpWithError() throws { - // Put setup code here. This method is called before the invocation of each test method in the class. - } - - override func tearDownWithError() throws { - // Put teardown code here. This method is called after the invocation of each test method in the class. - } - - func testSetTrackingDisabled() throws { - - let sdk = BranchSDKTest() - - sdk.disableTracking(status: true) - let x = sdk.trackingStatus() - assert( x == true) - sdk.disableTracking(status: true) - } - - func testPerformanceExample() throws { - // This is an example of a performance test case. - measure { - // Put the code you want to measure the time of here. - } - } - -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj index 0d7240c64..235a5debb 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj @@ -14,6 +14,7 @@ C119B02127ADC85E00E8C7BF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C119B02027ADC85E00E8C7BF /* Assets.xcassets */; }; C119B02427ADC85E00E8C7BF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */; }; C119B02C27ADC92A00E8C7BF /* iOSReleaseTest.entitlements in Resources */ = {isa = PBXBuildFile; fileRef = C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */; }; + E72CA8892EA19ED900805780 /* TestObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = E72CA8882EA19ED900805780 /* TestObserver.swift */; }; E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */; }; E7A0C2FA29898E4B0024497D /* BranchSDKTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7A0C2F929898E4B0024497D /* BranchSDKTest.swift */; }; E7A0C2FD2989914A0024497D /* BranchSDK.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = E7A0C2FC2989914A0024497D /* BranchSDK.xcframework */; }; @@ -54,8 +55,9 @@ C119B02327ADC85E00E8C7BF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; C119B02527ADC85E00E8C7BF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = iOSReleaseTest.entitlements; sourceTree = ""; }; + E72CA8882EA19ED900805780 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; E7939C0129749D3C00B90B82 /* iOSReleaseTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOSReleaseTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSReleaseTestTests.swift; sourceTree = ""; }; + E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = iOSReleaseTestTests.swift; path = ../../Source/iOSReleaseTestTests.swift; sourceTree = ""; }; E7A0C2F929898E4B0024497D /* BranchSDKTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BranchSDKTest.swift; sourceTree = ""; }; E7A0C2FC2989914A0024497D /* BranchSDK.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = BranchSDK.xcframework; path = ../../build/BranchSDK.xcframework; sourceTree = ""; }; /* End PBXFileReference section */ @@ -117,6 +119,7 @@ E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */ = { isa = PBXGroup; children = ( + E72CA8882EA19ED900805780 /* TestObserver.swift */, E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */, ); path = iOSReleaseTestTests; @@ -245,6 +248,7 @@ buildActionMask = 2147483647; files = ( E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */, + E72CA8892EA19ED900805780 /* TestObserver.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTestTests/TestObserver.swift b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTestTests/TestObserver.swift new file mode 100644 index 000000000..e36c734fd --- /dev/null +++ b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTestTests/TestObserver.swift @@ -0,0 +1,133 @@ +import XCTest +import Foundation + +class TestObserver: NSObject, XCTestObservation { + + private let dateFormatter: DateFormatter = { + let formatter = DateFormatter() + formatter.dateFormat = "yyyy-MM-dd HH:mm:ss.SSS" + return formatter + }() + + func testBundleWillStart(_ testBundle: Bundle) { + logMessage("Test Bundle Will Start: \(testBundle.bundleIdentifier ?? "Unknown")") + logMessage("Bundle Path: \(testBundle.bundlePath)") + } + + func testBundleDidFinish(_ testBundle: Bundle) { + logMessage("Test Bundle Did Finish: \(testBundle.bundleIdentifier ?? "Unknown")") + } + + func testSuiteWillStart(_ testSuite: XCTestSuite) { + logMessage("Test Suite Will Start: \(testSuite.name)") + logMessage("Test Count: \(testSuite.testCaseCount)") + } + + func testSuiteDidFinish(_ testSuite: XCTestSuite) { + let duration = String(format: "%.3f", testSuite.testRun?.totalDuration ?? 0) + let failures = testSuite.testRun?.failureCount ?? 0 + let unexpected = testSuite.testRun?.unexpectedExceptionCount ?? 0 + + logMessage("Test Suite Did Finish: \(testSuite.name)") + logMessage("Duration: \(duration)s") + logMessage("Failures: \(failures)") + logMessage("Unexpected Exceptions: \(unexpected)") + + if failures > 0 || unexpected > 0 { + logMessage("SUITE FAILED: \(testSuite.name)") + } else { + logMessage("SUITE PASSED: \(testSuite.name)") + } + } + + func testCaseWillStart(_ testCase: XCTestCase) { + logMessage("Test Case Will Start: \(testCase.name)") + logMessage("Class: \(String(describing: type(of: testCase)))") + } + + func testCaseDidFinish(_ testCase: XCTestCase) { + guard let testRun = testCase.testRun else { + logMessage("Test Case Did Finish (No Run Info): \(testCase.name)") + return + } + + let duration = String(format: "%.3f", testRun.totalDuration) + let failures = testRun.failureCount + let unexpected = testRun.unexpectedExceptionCount + + logMessage("Test Case Did Finish: \(testCase.name)") + logMessage("Duration: \(duration)s") + + if testRun.hasSucceeded { + logMessage("PASSED: \(testCase.name)") + } else { + logMessage("FAILED: \(testCase.name)") + logMessage("Failures: \(failures)") + logMessage("Unexpected Exceptions: \(unexpected)") + } + } + + func testCase(_ testCase: XCTestCase, didFailWithDescription description: String, inFile filePath: String?, atLine lineNumber: Int) { + logMessage("TEST FAILURE:") + logMessage("Test: \(testCase.name)") + logMessage("Description: \(description)") + + if let filePath = filePath { + let fileName = URL(fileURLWithPath: filePath).lastPathComponent + logMessage("File: \(fileName):\(lineNumber)") + } + logMessage(String(repeating: "=", count: 80)) + } + + func testCase(_ testCase: XCTestCase, didRecord issue: XCTIssue) { + logMessage("TEST ISSUE RECORDED:") + logMessage("Test: \(testCase.name)") + logMessage("Description: \(issue.compactDescription)") + logMessage("Type: \(issue.type.description)") + + if let location = issue.sourceCodeContext.location { + if #available(iOS 16.0, *) { + let fileName = URL(fileURLWithPath: location.fileURL.path()).lastPathComponent + logMessage("Location: \(fileName):\(location.lineNumber)") + } else { + logMessage("Location: Available on iOS versions - iOS 16+") + } + + } + + // Add detailed description if available + if ((issue.detailedDescription?.isEmpty) == nil) && issue.detailedDescription != issue.compactDescription { + logMessage("Details: \(String(describing: issue.detailedDescription))") + } + } + + // MARK: - Helper Methods + + private func logMessage(_ message: String) { + let timestamp = dateFormatter.string(from: Date()) + let logLine = "[\(timestamp)] [TestObserver] \(message)" + print(logLine) + fflush(stdout) + } +} + +extension XCTIssue.IssueType { + var description: String { + switch self { + case .assertionFailure: + return "Assertion Failure" + case .performanceRegression: + return "Performance Regression" + case .system: + return "System Issue" + case .thrownError: + return "Thrown Error" + case .uncaughtException: + return "Uncaught Exception" + case .unmatchedExpectedFailure: + return "Unmatched Expected Failure" + @unknown default: + return "Unknown Issue Type" + } + } +} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTestTests/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTestTests/iOSReleaseTestTests.swift deleted file mode 100644 index e5826b53a..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTestTests/iOSReleaseTestTests.swift +++ /dev/null @@ -1,39 +0,0 @@ -// -// iOSReleaseTestTests.swift -// iOSReleaseTestTests -// -// Created by Nidhi Dixit on 1/15/23. -// - -import XCTest - -@testable import iOSReleaseTest - -final class iOSReleaseTestTests: XCTestCase { - - override func setUpWithError() throws { - // Put setup code here. This method is called before the invocation of each test method in the class. - } - - override func tearDownWithError() throws { - // Put teardown code here. This method is called after the invocation of each test method in the class. - } - - func testSetTrackingDisabled() throws { - - var sdk = BranchSDKTest() - - sdk.disableTracking(status: true) - let x = sdk.trackingStatus() - assert( x == true) - sdk.disableTracking(status: true) - } - - func testPerformanceExample() throws { - // This is an example of a performance test case. - measure { - // Put the code you want to measure the time of here. - } - } - -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj index 601e0008e..dffc75b97 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj @@ -42,9 +42,9 @@ C119B02527ADC85E00E8C7BF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = iOSReleaseTest.entitlements; sourceTree = ""; }; E73878F62988A82600BD3981 /* ios-branch-deep-linking-attribution */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = "ios-branch-deep-linking-attribution"; path = ../..; sourceTree = ""; }; - E77DEAF12E9FFEE300EDEAB4 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; + E77DEAF12E9FFEE300EDEAB4 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = TestObserver.swift; path = ../../Source/TestObserver.swift; sourceTree = ""; }; E7939C0129749D3C00B90B82 /* iOSReleaseTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOSReleaseTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSReleaseTestTests.swift; sourceTree = ""; }; + E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = iOSReleaseTestTests.swift; path = ../../Source/iOSReleaseTestTests.swift; sourceTree = ""; }; E7A0C3042989AB200024497D /* BranchSDKTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BranchSDKTest.swift; sourceTree = ""; }; /* End PBXFileReference section */ From 3f268ea4d21f3f1136972cf1f2fcd208e0241866 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Fri, 17 Oct 2025 09:50:27 -0700 Subject: [PATCH 21/85] Test commit for checking callback logic. --- .../Source/iOSReleaseTestTests.swift | 20 ++++++++----------- .../iOSReleaseTest/BranchSDKTest.swift | 9 ++++----- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift index cc5ec935f..6e4993d68 100644 --- a/SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift +++ b/SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift @@ -94,7 +94,12 @@ final class iOSReleaseTestTests: XCTestCase { func testSetTrackingDisabled() throws { print("[Test] Starting testSetTrackingDisabled") - let sdk = BranchSDKTest() + let expectation = expectation(description: "My asynchronous operation should complete") + + let sdk = BranchSDKTest(){ params, error in + print(params as? [String: AnyObject] ?? {}) + expectation.fulfill() + } print("[Test] Disabling tracking...") sdk.disableTracking(status: true) @@ -107,19 +112,10 @@ final class iOSReleaseTestTests: XCTestCase { print("[Test] Disabling tracking again...") sdk.disableTracking(status: true) - print("[Test] testSetTrackingDisabled completed successfully") - } + waitForExpectations(timeout: 5, handler: nil) // Wait for up to 5 seconds - func testPerformanceExample() throws { - print("[Test] Starting performance test *********************") - measure { - print("[Performance] Measuring performance...********************") - let sdk = BranchSDKTest() - sdk.disableTracking(status: false) - _ = sdk.trackingStatus() - } - print("[Test] Performance test completed") + print("[Test] testSetTrackingDisabled completed") } } diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/BranchSDKTest.swift b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/BranchSDKTest.swift index 7c1e94d7e..9be7504fa 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/BranchSDKTest.swift +++ b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/BranchSDKTest.swift @@ -10,11 +10,10 @@ import BranchSDK class BranchSDKTest { - init() { - Branch.getInstance().enableLogging() - Branch.getInstance().initSession(launchOptions: nil) { (params, error) in - print(params as? [String: AnyObject] ?? {}) - } + init(callback: @escaping ([AnyHashable: Any]?, Error?) -> Void) { + // Branch.getInstance().enableLogging() + // Branch.getInstance().initSession(launchOptions: nil, callback: callback) + Branch.getInstance().initSession(launchOptions:nil, andRegisterDeepLinkHandler: callback) } func disableTracking( status: Bool) { From 40fdb0114d080b25d032de9b207fd86fd61e0a0a Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Fri, 17 Oct 2025 10:15:37 -0700 Subject: [PATCH 22/85] Update iOSReleaseTestTests.swift --- SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift index 6e4993d68..7221a62cb 100644 --- a/SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift +++ b/SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift @@ -113,6 +113,7 @@ final class iOSReleaseTestTests: XCTestCase { sdk.disableTracking(status: true) waitForExpectations(timeout: 5, handler: nil) // Wait for up to 5 seconds + waitForExpectations(timeout: 15, handler: nil) // Wait for up to 5 seconds print("[Test] testSetTrackingDisabled completed") From 7ec6bbca84507eb53dee74b1e3bfb1d0721aa348 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Fri, 17 Oct 2025 10:38:06 -0700 Subject: [PATCH 23/85] Update iOSReleaseTestTests.swift --- SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift index 7221a62cb..995ad736b 100644 --- a/SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift +++ b/SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift @@ -112,7 +112,6 @@ final class iOSReleaseTestTests: XCTestCase { print("[Test] Disabling tracking again...") sdk.disableTracking(status: true) - waitForExpectations(timeout: 5, handler: nil) // Wait for up to 5 seconds waitForExpectations(timeout: 15, handler: nil) // Wait for up to 5 seconds From a908201596050344070940f267c1c702a517d4dd Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Fri, 17 Oct 2025 11:26:37 -0700 Subject: [PATCH 24/85] Refactored iOS Test app for SPM --- .../{ => IntegrationTests}/TestObserver.swift | 0 .../iOSReleaseTestTests.swift | 69 ++++++++++ .../iOSReleaseTest/AppDelegate.swift | 0 .../AccentColor.colorset/Contents.json | 0 .../AppIcon.appiconset/Contents.json | 0 .../Assets.xcassets/Contents.json | 0 .../Base.lproj/LaunchScreen.storyboard | 0 .../iOSReleaseTest/Base.lproj/Main.storyboard | 0 .../iOSReleaseTest/BranchSDKTest.swift | 10 +- .../iOSReleaseTest/Info.plist | 0 .../iOSReleaseTest/SceneDelegate.swift | 0 .../iOSReleaseTest/ViewController.swift | 0 .../iOSReleaseTest.entitlements | 0 .../Source/iOSReleaseTestTests.swift | 121 ------------------ .../Source/tvOSReleaseTest/AppDelegate.swift | 40 ++++++ .../AccentColor.colorset/Contents.json | 11 ++ .../Content.imageset/Contents.json | 16 +++ .../Back.imagestacklayer/Contents.json | 6 + .../Contents.json | 17 +++ .../Content.imageset/Contents.json | 16 +++ .../Front.imagestacklayer/Contents.json | 6 + .../Content.imageset/Contents.json | 16 +++ .../Middle.imagestacklayer/Contents.json | 6 + .../Content.imageset/Contents.json | 24 ++++ .../Back.imagestacklayer/Contents.json | 6 + .../App Icon.imagestack/Contents.json | 17 +++ .../Content.imageset/Contents.json | 24 ++++ .../Front.imagestacklayer/Contents.json | 6 + .../Content.imageset/Contents.json | 24 ++++ .../Middle.imagestacklayer/Contents.json | 6 + .../Contents.json | 32 +++++ .../Contents.json | 24 ++++ .../Top Shelf Image.imageset/Contents.json | 24 ++++ .../Assets.xcassets/Contents.json | 6 + .../Base.lproj/LaunchScreen.storyboard | 24 ++++ .../Base.lproj/Main.storyboard | 28 ++++ .../tvOSReleaseTest/ViewController.swift | 19 +++ .../iOSReleaseTest.xcodeproj/project.pbxproj | 14 +- 38 files changed, 477 insertions(+), 135 deletions(-) rename SDKIntegrationTestApps/Source/{ => IntegrationTests}/TestObserver.swift (100%) create mode 100644 SDKIntegrationTestApps/Source/IntegrationTests/iOSReleaseTestTests.swift rename SDKIntegrationTestApps/{iOSReleaseTest-SPM => Source}/iOSReleaseTest/AppDelegate.swift (100%) rename SDKIntegrationTestApps/{iOSReleaseTest-SPM => Source}/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json (100%) rename SDKIntegrationTestApps/{iOSReleaseTest-SPM => Source}/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename SDKIntegrationTestApps/{iOSReleaseTest-SPM => Source}/iOSReleaseTest/Assets.xcassets/Contents.json (100%) rename SDKIntegrationTestApps/{iOSReleaseTest-SPM => Source}/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard (100%) rename SDKIntegrationTestApps/{iOSReleaseTest-SPM => Source}/iOSReleaseTest/Base.lproj/Main.storyboard (100%) rename SDKIntegrationTestApps/{iOSReleaseTest-SPM => Source}/iOSReleaseTest/BranchSDKTest.swift (53%) rename SDKIntegrationTestApps/{iOSReleaseTest-SPM => Source}/iOSReleaseTest/Info.plist (100%) rename SDKIntegrationTestApps/{iOSReleaseTest-SPM => Source}/iOSReleaseTest/SceneDelegate.swift (100%) rename SDKIntegrationTestApps/{iOSReleaseTest-SPM => Source}/iOSReleaseTest/ViewController.swift (100%) rename SDKIntegrationTestApps/{iOSReleaseTest-SPM => Source}/iOSReleaseTest/iOSReleaseTest.entitlements (100%) delete mode 100644 SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/AppDelegate.swift create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/Contents.json create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/Base.lproj/Main.storyboard create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/ViewController.swift diff --git a/SDKIntegrationTestApps/Source/TestObserver.swift b/SDKIntegrationTestApps/Source/IntegrationTests/TestObserver.swift similarity index 100% rename from SDKIntegrationTestApps/Source/TestObserver.swift rename to SDKIntegrationTestApps/Source/IntegrationTests/TestObserver.swift diff --git a/SDKIntegrationTestApps/Source/IntegrationTests/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/Source/IntegrationTests/iOSReleaseTestTests.swift new file mode 100644 index 000000000..c507cc3cd --- /dev/null +++ b/SDKIntegrationTestApps/Source/IntegrationTests/iOSReleaseTestTests.swift @@ -0,0 +1,69 @@ +// +// iOSReleaseTestTests.swift +// iOSReleaseTestTests +// +// Created by Nidhi Dixit on 1/15/23. +// + +import XCTest +@testable import iOSReleaseTest +@testable import BranchSDK + +final class iOSReleaseTestTests: XCTestCase { + + private static var testObserver: TestObserver? + + override class func setUp() { + super.setUp() + testObserver = TestObserver() + XCTestObservationCenter.shared.addTestObserver(testObserver!) + print("[TestSetup] Test observer registered for enhanced GitHub Actions logging") + } + + override class func tearDown() { + if let observer = testObserver { + XCTestObservationCenter.shared.removeTestObserver(observer) + testObserver = nil + } + super.tearDown() + } + + override func setUpWithError() throws { + print("[Setup] Setting up test: \(self.name)") + } + + override func tearDownWithError() throws { + print("[Teardown] Cleaning up test: \(self.name)") + } + + func testDummy() throws { + print("[Test] Running dummy test") + XCTAssertTrue(true, "Dummy test should always pass") + print("[Test] Dummy test completed") + } + + func testSetTrackingDisabled() throws { + print("[Test] Starting testSetTrackingDisabled") + + let expectation = expectation(description: "InitSession should complete.") + + let sdk = BranchSDKTest(){ params, error in + print(params as? [String: AnyObject] ?? {}) + expectation.fulfill() + } + print("Setting CPP Level to none.") + sdk.setCPPLevel(status: BranchAttributionLevel.none) + + let cppLevel = BNCPreferenceHelper.sharedInstance().attributionLevel + print("[Test] CPP Level: \(String(describing: cppLevel))") + + XCTAssertTrue(cppLevel!.isEqual(to: BranchAttributionLevel.none.rawValue) , "Tracking should be disabled (true)") + + print("[Test] Disabling tracking again...") + sdk.setCPPLevel(status: BranchAttributionLevel.full) + + waitForExpectations(timeout: 30, handler: nil) + print("[Test] testSetTrackingDisabled completed") + } + +} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/AppDelegate.swift b/SDKIntegrationTestApps/Source/iOSReleaseTest/AppDelegate.swift similarity index 100% rename from SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/AppDelegate.swift rename to SDKIntegrationTestApps/Source/iOSReleaseTest/AppDelegate.swift diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json b/SDKIntegrationTestApps/Source/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json similarity index 100% rename from SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json rename to SDKIntegrationTestApps/Source/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json b/SDKIntegrationTestApps/Source/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json rename to SDKIntegrationTestApps/Source/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/Contents.json b/SDKIntegrationTestApps/Source/iOSReleaseTest/Assets.xcassets/Contents.json similarity index 100% rename from SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/Contents.json rename to SDKIntegrationTestApps/Source/iOSReleaseTest/Assets.xcassets/Contents.json diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard b/SDKIntegrationTestApps/Source/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard rename to SDKIntegrationTestApps/Source/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Base.lproj/Main.storyboard b/SDKIntegrationTestApps/Source/iOSReleaseTest/Base.lproj/Main.storyboard similarity index 100% rename from SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Base.lproj/Main.storyboard rename to SDKIntegrationTestApps/Source/iOSReleaseTest/Base.lproj/Main.storyboard diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/BranchSDKTest.swift b/SDKIntegrationTestApps/Source/iOSReleaseTest/BranchSDKTest.swift similarity index 53% rename from SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/BranchSDKTest.swift rename to SDKIntegrationTestApps/Source/iOSReleaseTest/BranchSDKTest.swift index 9be7504fa..7970c29cb 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/BranchSDKTest.swift +++ b/SDKIntegrationTestApps/Source/iOSReleaseTest/BranchSDKTest.swift @@ -11,16 +11,10 @@ import BranchSDK class BranchSDKTest { init(callback: @escaping ([AnyHashable: Any]?, Error?) -> Void) { - // Branch.getInstance().enableLogging() - // Branch.getInstance().initSession(launchOptions: nil, callback: callback) Branch.getInstance().initSession(launchOptions:nil, andRegisterDeepLinkHandler: callback) } - func disableTracking( status: Bool) { - Branch.setTrackingDisabled(status) - } - - func trackingStatus() -> Bool { - return Branch.trackingDisabled() + func setCPPLevel( status: BranchAttributionLevel) { + Branch.getInstance().setConsumerProtectionAttributionLevel(BranchAttributionLevel.full) } } diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Info.plist b/SDKIntegrationTestApps/Source/iOSReleaseTest/Info.plist similarity index 100% rename from SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Info.plist rename to SDKIntegrationTestApps/Source/iOSReleaseTest/Info.plist diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/SceneDelegate.swift b/SDKIntegrationTestApps/Source/iOSReleaseTest/SceneDelegate.swift similarity index 100% rename from SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/SceneDelegate.swift rename to SDKIntegrationTestApps/Source/iOSReleaseTest/SceneDelegate.swift diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/ViewController.swift b/SDKIntegrationTestApps/Source/iOSReleaseTest/ViewController.swift similarity index 100% rename from SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/ViewController.swift rename to SDKIntegrationTestApps/Source/iOSReleaseTest/ViewController.swift diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/iOSReleaseTest.entitlements b/SDKIntegrationTestApps/Source/iOSReleaseTest/iOSReleaseTest.entitlements similarity index 100% rename from SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/iOSReleaseTest.entitlements rename to SDKIntegrationTestApps/Source/iOSReleaseTest/iOSReleaseTest.entitlements diff --git a/SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift deleted file mode 100644 index 995ad736b..000000000 --- a/SDKIntegrationTestApps/Source/iOSReleaseTestTests.swift +++ /dev/null @@ -1,121 +0,0 @@ -// -// iOSReleaseTestTests.swift -// iOSReleaseTestTests -// -// Created by Nidhi Dixit on 1/15/23. -// - -import XCTest -@testable import iOSReleaseTest -import BranchSDK - -final class iOSReleaseTestTests: XCTestCase { - - private static var testObserver: TestObserver? - - override class func setUp() { - super.setUp() - - // Register the test observer for detailed logging in GitHub Actions - testObserver = TestObserver() - XCTestObservationCenter.shared.addTestObserver(testObserver!) - - print("[TestSetup] Test observer registered for enhanced GitHub Actions logging") - - Branch.setCallbackForTracingRequests { url, request, response, error, serviceURL in - // traceQueue.async { - print("Tracing Callback Start ********************"); - print("URL: " + (url ?? "")); - if let dict = request as? [AnyHashable: Any] { - let stringDict = dict.reduce(into: [String: Any]()) { result, entry in - if let key = entry.key as? String { - result[key] = entry.value - } - } - - if let data = try? JSONSerialization.data(withJSONObject: stringDict, options: [.prettyPrinted]), - let json = String(data: data, encoding: .utf8) { - print("Request JSON:\n\(json)") - } - } else { - print("Request JSON: null") - } - - if let dict = response as? [AnyHashable: Any] { - let stringDict = dict.reduce(into: [String: Any]()) { result, entry in - if let key = entry.key as? String { - result[key] = entry.value - } - } - - if let data = try? JSONSerialization.data(withJSONObject: stringDict, options: [.prettyPrinted]), - let json = String(data: data, encoding: .utf8) { - print("Response JSON:\n\(json)") - } - } else { - print("Response JSON: null") - } - print("Error: " + (error.debugDescription)); - print("Request Service URL: " + (serviceURL!)); - - print("Tracing Callback End ********************"); - // } - } - - - } - - override class func tearDown() { - // Remove the test observer - if let observer = testObserver { - XCTestObservationCenter.shared.removeTestObserver(observer) - testObserver = nil - } - - super.tearDown() - } - - override func setUpWithError() throws { - // Put setup code here. This method is called before the invocation of each test method in the class. - print("[Setup] Setting up test: \(self.name)") - } - - override func tearDownWithError() throws { - // Put teardown code here. This method is called after the invocation of each test method in the class. - print("[Teardown] Cleaning up test: \(self.name)") - } - - func testDummy() throws { - print("[Test] Running dummy test") - XCTAssertTrue(true, "Dummy test should always pass") - print("[Test] Dummy test completed") - } - - func testSetTrackingDisabled() throws { - print("[Test] Starting testSetTrackingDisabled") - - let expectation = expectation(description: "My asynchronous operation should complete") - - let sdk = BranchSDKTest(){ params, error in - print(params as? [String: AnyObject] ?? {}) - expectation.fulfill() - } - - print("[Test] Disabling tracking...") - sdk.disableTracking(status: true) - - let trackingStatus = sdk.trackingStatus() - print("[Test] Tracking status: \(trackingStatus)") - - XCTAssertTrue(trackingStatus, "Tracking should be disabled (true)") - - print("[Test] Disabling tracking again...") - sdk.disableTracking(status: true) - - waitForExpectations(timeout: 15, handler: nil) // Wait for up to 5 seconds - - - print("[Test] testSetTrackingDisabled completed") - } - -} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/AppDelegate.swift b/SDKIntegrationTestApps/Source/tvOSReleaseTest/AppDelegate.swift new file mode 100644 index 000000000..9c632aa13 --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/AppDelegate.swift @@ -0,0 +1,40 @@ +// +// AppDelegate.swift +// tvOSReleaseTest +// +// Created by Nidhi Dixit on 1/30/23. +// + +import UIKit + +@main +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + func applicationWillResignActive(_ application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + +} + diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 000000000..eb8789700 --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 000000000..795cce172 --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json new file mode 100644 index 000000000..73c00596a --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json new file mode 100644 index 000000000..de59d885a --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json @@ -0,0 +1,17 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + }, + "layers" : [ + { + "filename" : "Front.imagestacklayer" + }, + { + "filename" : "Middle.imagestacklayer" + }, + { + "filename" : "Back.imagestacklayer" + } + ] +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 000000000..795cce172 --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json new file mode 100644 index 000000000..73c00596a --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 000000000..795cce172 --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json new file mode 100644 index 000000000..73c00596a --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 000000000..b65f0cddc --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,24 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + }, + { + "idiom" : "tv-marketing", + "scale" : "1x" + }, + { + "idiom" : "tv-marketing", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json new file mode 100644 index 000000000..73c00596a --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json new file mode 100644 index 000000000..de59d885a --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json @@ -0,0 +1,17 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + }, + "layers" : [ + { + "filename" : "Front.imagestacklayer" + }, + { + "filename" : "Middle.imagestacklayer" + }, + { + "filename" : "Back.imagestacklayer" + } + ] +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 000000000..b65f0cddc --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,24 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + }, + { + "idiom" : "tv-marketing", + "scale" : "1x" + }, + { + "idiom" : "tv-marketing", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json new file mode 100644 index 000000000..73c00596a --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 000000000..b65f0cddc --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,24 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + }, + { + "idiom" : "tv-marketing", + "scale" : "1x" + }, + { + "idiom" : "tv-marketing", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json new file mode 100644 index 000000000..73c00596a --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json new file mode 100644 index 000000000..f47ba43da --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json @@ -0,0 +1,32 @@ +{ + "assets" : [ + { + "filename" : "App Icon - App Store.imagestack", + "idiom" : "tv", + "role" : "primary-app-icon", + "size" : "1280x768" + }, + { + "filename" : "App Icon.imagestack", + "idiom" : "tv", + "role" : "primary-app-icon", + "size" : "400x240" + }, + { + "filename" : "Top Shelf Image Wide.imageset", + "idiom" : "tv", + "role" : "top-shelf-image-wide", + "size" : "2320x720" + }, + { + "filename" : "Top Shelf Image.imageset", + "idiom" : "tv", + "role" : "top-shelf-image", + "size" : "1920x720" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json new file mode 100644 index 000000000..b65f0cddc --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json @@ -0,0 +1,24 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + }, + { + "idiom" : "tv-marketing", + "scale" : "1x" + }, + { + "idiom" : "tv-marketing", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json new file mode 100644 index 000000000..b65f0cddc --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json @@ -0,0 +1,24 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + }, + { + "idiom" : "tv-marketing", + "scale" : "1x" + }, + { + "idiom" : "tv-marketing", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/Contents.json new file mode 100644 index 000000000..73c00596a --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 000000000..660ba53de --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/Base.lproj/Main.storyboard b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Base.lproj/Main.storyboard new file mode 100644 index 000000000..c277013f3 --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Base.lproj/Main.storyboard @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/ViewController.swift b/SDKIntegrationTestApps/Source/tvOSReleaseTest/ViewController.swift new file mode 100644 index 000000000..831f453a6 --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/ViewController.swift @@ -0,0 +1,19 @@ +// +// ViewController.swift +// tvOSReleaseTest +// +// Created by Nidhi Dixit on 1/30/23. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } + + +} + diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj index dffc75b97..72f2f7f51 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj @@ -42,9 +42,9 @@ C119B02527ADC85E00E8C7BF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = iOSReleaseTest.entitlements; sourceTree = ""; }; E73878F62988A82600BD3981 /* ios-branch-deep-linking-attribution */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = "ios-branch-deep-linking-attribution"; path = ../..; sourceTree = ""; }; - E77DEAF12E9FFEE300EDEAB4 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = TestObserver.swift; path = ../../Source/TestObserver.swift; sourceTree = ""; }; + E77DEAF12E9FFEE300EDEAB4 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; E7939C0129749D3C00B90B82 /* iOSReleaseTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOSReleaseTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = iOSReleaseTestTests.swift; path = ../../Source/iOSReleaseTestTests.swift; sourceTree = ""; }; + E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSReleaseTestTests.swift; sourceTree = ""; }; E7A0C3042989AB200024497D /* BranchSDKTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BranchSDKTest.swift; sourceTree = ""; }; /* End PBXFileReference section */ @@ -73,7 +73,7 @@ children = ( E73878F42988A7DC00BD3981 /* Packages */, C119B01627ADC85C00E8C7BF /* iOSReleaseTest */, - E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */, + E7939C0229749D3C00B90B82 /* IntegrationTests */, C119B01527ADC85C00E8C7BF /* Products */, E73878F02988A44100BD3981 /* Frameworks */, ); @@ -101,7 +101,8 @@ C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */, C119B02527ADC85E00E8C7BF /* Info.plist */, ); - path = iOSReleaseTest; + name = iOSReleaseTest; + path = ../Source/iOSReleaseTest; sourceTree = ""; }; E73878F02988A44100BD3981 /* Frameworks */ = { @@ -119,13 +120,14 @@ name = Packages; sourceTree = ""; }; - E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */ = { + E7939C0229749D3C00B90B82 /* IntegrationTests */ = { isa = PBXGroup; children = ( E77DEAF12E9FFEE300EDEAB4 /* TestObserver.swift */, E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */, ); - path = iOSReleaseTestTests; + name = IntegrationTests; + path = ../Source/IntegrationTests; sourceTree = ""; }; /* End PBXGroup section */ From 85f0f5a6d8f91547609d1c56adb8d9c4386bb069 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Fri, 17 Oct 2025 11:30:55 -0700 Subject: [PATCH 25/85] Refactored iOS Test app for Carthage --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj index fe3bd7bda..667ada900 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj @@ -17,7 +17,8 @@ E72CA88B2EA19F0400805780 /* TestObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = E72CA88A2EA19F0400805780 /* TestObserver.swift */; }; E75C0E192975391F0001D5D7 /* BranchSDK.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = E763E99C29354DA40053F490 /* BranchSDK.xcframework */; }; E75C0E1A2975391F0001D5D7 /* BranchSDK.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = E763E99C29354DA40053F490 /* BranchSDK.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */; }; + E7ACFC612EA2C2C200E60D8B /* iOSReleaseTestTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7ACFC602EA2C2C200E60D8B /* iOSReleaseTestTests.swift */; }; + E7ACFC632EA2C2CF00E60D8B /* BranchSDKTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7ACFC622EA2C2CF00E60D8B /* BranchSDKTest.swift */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -57,7 +58,8 @@ E72CA88A2EA19F0400805780 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; E763E99C29354DA40053F490 /* BranchSDK.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = BranchSDK.xcframework; path = Carthage/Build/BranchSDK.xcframework; sourceTree = ""; }; E7939C0129749D3C00B90B82 /* iOSReleaseTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOSReleaseTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = iOSReleaseTestTests.swift; path = ../../Source/iOSReleaseTestTests.swift; sourceTree = ""; }; + E7ACFC602EA2C2C200E60D8B /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSReleaseTestTests.swift; sourceTree = ""; }; + E7ACFC622EA2C2CF00E60D8B /* BranchSDKTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BranchSDKTest.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -101,6 +103,7 @@ C119B01627ADC85C00E8C7BF /* iOSReleaseTest */ = { isa = PBXGroup; children = ( + E7ACFC622EA2C2CF00E60D8B /* BranchSDKTest.swift */, C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */, C119B01727ADC85C00E8C7BF /* AppDelegate.swift */, C119B01927ADC85C00E8C7BF /* SceneDelegate.swift */, @@ -110,7 +113,8 @@ C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */, C119B02527ADC85E00E8C7BF /* Info.plist */, ); - path = iOSReleaseTest; + name = iOSReleaseTest; + path = ../Source/iOSReleaseTest; sourceTree = ""; }; E763E99B29354DA30053F490 /* Frameworks */ = { @@ -124,10 +128,11 @@ E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */ = { isa = PBXGroup; children = ( + E7ACFC602EA2C2C200E60D8B /* iOSReleaseTestTests.swift */, E72CA88A2EA19F0400805780 /* TestObserver.swift */, - E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */, ); - path = iOSReleaseTestTests; + name = iOSReleaseTestTests; + path = ../Source/IntegrationTests; sourceTree = ""; }; /* End PBXGroup section */ @@ -235,6 +240,7 @@ files = ( C119B01C27ADC85C00E8C7BF /* ViewController.swift in Sources */, C119B01827ADC85C00E8C7BF /* AppDelegate.swift in Sources */, + E7ACFC632EA2C2CF00E60D8B /* BranchSDKTest.swift in Sources */, C119B01A27ADC85C00E8C7BF /* SceneDelegate.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -243,8 +249,8 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */, E72CA88B2EA19F0400805780 /* TestObserver.swift in Sources */, + E7ACFC612EA2C2C200E60D8B /* iOSReleaseTestTests.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; From c816a53a2a6fea218cc4904e312428262b33a39d Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Fri, 17 Oct 2025 11:35:46 -0700 Subject: [PATCH 26/85] Refactored iOS Test app for Carthage, CocoaPods and manual linking. --- .../iOSReleaseTest/AppDelegate.swift | 38 ----- .../AccentColor.colorset/Contents.json | 11 -- .../AppIcon.appiconset/Contents.json | 98 ------------- .../Assets.xcassets/Contents.json | 6 - .../Base.lproj/LaunchScreen.storyboard | 25 ---- .../iOSReleaseTest/Base.lproj/Main.storyboard | 24 ---- .../iOSReleaseTest/Info.plist | 50 ------- .../iOSReleaseTest/SceneDelegate.swift | 52 ------- .../iOSReleaseTest/ViewController.swift | 20 --- .../iOSReleaseTest.entitlements | 11 -- .../iOSReleaseTestTests/TestObserver.swift | 133 ------------------ .../iOSReleaseTest.xcodeproj/project.pbxproj | 8 +- .../iOSReleaseTest/AppDelegate.swift | 38 ----- .../AccentColor.colorset/Contents.json | 11 -- .../AppIcon.appiconset/Contents.json | 98 ------------- .../Assets.xcassets/Contents.json | 6 - .../Base.lproj/LaunchScreen.storyboard | 25 ---- .../iOSReleaseTest/Base.lproj/Main.storyboard | 24 ---- .../iOSReleaseTest/Info.plist | 53 ------- .../iOSReleaseTest/SceneDelegate.swift | 52 ------- .../iOSReleaseTest/ViewController.swift | 20 --- .../iOSReleaseTest.entitlements | 13 -- .../iOSReleaseTestTests/TestObserver.swift | 133 ------------------ .../iOSReleaseTest.xcodeproj/project.pbxproj | 8 +- .../iOSReleaseTest/AppDelegate.swift | 38 ----- .../AccentColor.colorset/Contents.json | 11 -- .../AppIcon.appiconset/Contents.json | 98 ------------- .../Assets.xcassets/Contents.json | 6 - .../Base.lproj/LaunchScreen.storyboard | 25 ---- .../iOSReleaseTest/Base.lproj/Main.storyboard | 24 ---- .../iOSReleaseTest/BranchSDKTest.swift | 27 ---- .../iOSReleaseTest/Info.plist | 50 ------- .../iOSReleaseTest/SceneDelegate.swift | 52 ------- .../iOSReleaseTest/ViewController.swift | 19 --- .../iOSReleaseTest.entitlements | 11 -- .../iOSReleaseTestTests/TestObserver.swift | 133 ------------------ .../iOSReleaseTest.xcodeproj/project.pbxproj | 8 +- .../iOSReleaseTest/AppDelegate.swift | 38 ----- .../AccentColor.colorset/Contents.json | 11 -- .../AppIcon.appiconset/Contents.json | 98 ------------- .../Assets.xcassets/Contents.json | 6 - .../Base.lproj/LaunchScreen.storyboard | 25 ---- .../iOSReleaseTest/Base.lproj/Main.storyboard | 24 ---- .../iOSReleaseTest/BranchSDKTest.swift | 24 ---- .../iOSReleaseTest/Info.plist | 50 ------- .../iOSReleaseTest/SceneDelegate.swift | 52 ------- .../iOSReleaseTest/ViewController.swift | 19 --- .../iOSReleaseTest.entitlements | 11 -- .../iOSReleaseTestTests/TestObserver.swift | 133 ------------------ 49 files changed, 15 insertions(+), 1935 deletions(-) delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/AppDelegate.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/Contents.json delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/Main.storyboard delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Info.plist delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/SceneDelegate.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/ViewController.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/iOSReleaseTest.entitlements delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTestTests/TestObserver.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/AppDelegate.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/Contents.json delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Base.lproj/Main.storyboard delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Info.plist delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/SceneDelegate.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/ViewController.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTestTests/TestObserver.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/AppDelegate.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Assets.xcassets/Contents.json delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Base.lproj/Main.storyboard delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/BranchSDKTest.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Info.plist delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/SceneDelegate.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/ViewController.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/iOSReleaseTest.entitlements delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTestTests/TestObserver.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/AppDelegate.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Assets.xcassets/Contents.json delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Base.lproj/Main.storyboard delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/BranchSDKTest.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Info.plist delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/SceneDelegate.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/ViewController.swift delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/iOSReleaseTest.entitlements delete mode 100644 SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTestTests/TestObserver.swift diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/AppDelegate.swift b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/AppDelegate.swift deleted file mode 100644 index c5cc155fc..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/AppDelegate.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// AppDelegate.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit - -@main -class AppDelegate: UIResponder, UIApplicationDelegate { - - - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - // Override point for customization after application launch. - - - return true - } - - // MARK: UISceneSession Lifecycle - - func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { - // Called when a new scene session is being created. - // Use this method to select a configuration to create the new scene with. - return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) - } - - func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { - // Called when the user discards a scene session. - // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. - // Use this method to release any resources that were specific to the discarded scenes, as they will not return. - } - - -} - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json deleted file mode 100644 index eb8789700..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors" : [ - { - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 9221b9bb1..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "60x60" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "60x60" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "83.5x83.5" - }, - { - "idiom" : "ios-marketing", - "scale" : "1x", - "size" : "1024x1024" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/Contents.json b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index 865e9329f..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/Main.storyboard b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/Main.storyboard deleted file mode 100644 index 25a763858..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/Main.storyboard +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Info.plist b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Info.plist deleted file mode 100644 index 7cb6fcafa..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/Info.plist +++ /dev/null @@ -1,50 +0,0 @@ - - - - - branch_universal_link_domains - - nipunreleasetest.app.link - nipunreleasetest-alternate.app.link - - CFBundleURLTypes - - - CFBundleTypeRole - Editor - CFBundleURLSchemes - - iOSReleaseTest - - CFBundleURLName - com.NipunSingh.iOSReleaseTest - - - branch_key - - live - key_live_ok7NoVhyIh1llbtOW6sfHpbnxBlJjiDp - test - secret_live_NktIf5YHh5us8Hbm7CbyUCPmqwtyqz9M - - UIApplicationSceneManifest - - UIApplicationSupportsMultipleScenes - - UISceneConfigurations - - UIWindowSceneSessionRoleApplication - - - UISceneConfigurationName - Default Configuration - UISceneDelegateClassName - $(PRODUCT_MODULE_NAME).SceneDelegate - UISceneStoryboardFile - Main - - - - - - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/SceneDelegate.swift b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/SceneDelegate.swift deleted file mode 100644 index 0355d0420..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/SceneDelegate.swift +++ /dev/null @@ -1,52 +0,0 @@ -// -// SceneDelegate.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit - -class SceneDelegate: UIResponder, UIWindowSceneDelegate { - - var window: UIWindow? - - - func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { - // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. - // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. - // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). - guard let _ = (scene as? UIWindowScene) else { return } - } - - func sceneDidDisconnect(_ scene: UIScene) { - // Called as the scene is being released by the system. - // This occurs shortly after the scene enters the background, or when its session is discarded. - // Release any resources associated with this scene that can be re-created the next time the scene connects. - // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). - } - - func sceneDidBecomeActive(_ scene: UIScene) { - // Called when the scene has moved from an inactive state to an active state. - // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. - } - - func sceneWillResignActive(_ scene: UIScene) { - // Called when the scene will move from an active state to an inactive state. - // This may occur due to temporary interruptions (ex. an incoming phone call). - } - - func sceneWillEnterForeground(_ scene: UIScene) { - // Called as the scene transitions from the background to the foreground. - // Use this method to undo the changes made on entering the background. - } - - func sceneDidEnterBackground(_ scene: UIScene) { - // Called as the scene transitions from the foreground to the background. - // Use this method to save data, release shared resources, and store enough scene-specific state information - // to restore the scene back to its current state. - } - - -} - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/ViewController.swift b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/ViewController.swift deleted file mode 100644 index d75237f64..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/ViewController.swift +++ /dev/null @@ -1,20 +0,0 @@ -// -// ViewController.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit -import BranchSDK - -class ViewController: UIViewController { - - override func viewDidLoad() { - super.viewDidLoad() - // Do any additional setup after loading the view. - } - - -} - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/iOSReleaseTest.entitlements b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/iOSReleaseTest.entitlements deleted file mode 100644 index dc0ea48ed..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest/iOSReleaseTest.entitlements +++ /dev/null @@ -1,11 +0,0 @@ - - - - - com.apple.developer.associated-domains - - applinks:nipunreleasetest.app.link - applinks:nipunreleasetest-alternate.app.link - - - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTestTests/TestObserver.swift b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTestTests/TestObserver.swift deleted file mode 100644 index e36c734fd..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTestTests/TestObserver.swift +++ /dev/null @@ -1,133 +0,0 @@ -import XCTest -import Foundation - -class TestObserver: NSObject, XCTestObservation { - - private let dateFormatter: DateFormatter = { - let formatter = DateFormatter() - formatter.dateFormat = "yyyy-MM-dd HH:mm:ss.SSS" - return formatter - }() - - func testBundleWillStart(_ testBundle: Bundle) { - logMessage("Test Bundle Will Start: \(testBundle.bundleIdentifier ?? "Unknown")") - logMessage("Bundle Path: \(testBundle.bundlePath)") - } - - func testBundleDidFinish(_ testBundle: Bundle) { - logMessage("Test Bundle Did Finish: \(testBundle.bundleIdentifier ?? "Unknown")") - } - - func testSuiteWillStart(_ testSuite: XCTestSuite) { - logMessage("Test Suite Will Start: \(testSuite.name)") - logMessage("Test Count: \(testSuite.testCaseCount)") - } - - func testSuiteDidFinish(_ testSuite: XCTestSuite) { - let duration = String(format: "%.3f", testSuite.testRun?.totalDuration ?? 0) - let failures = testSuite.testRun?.failureCount ?? 0 - let unexpected = testSuite.testRun?.unexpectedExceptionCount ?? 0 - - logMessage("Test Suite Did Finish: \(testSuite.name)") - logMessage("Duration: \(duration)s") - logMessage("Failures: \(failures)") - logMessage("Unexpected Exceptions: \(unexpected)") - - if failures > 0 || unexpected > 0 { - logMessage("SUITE FAILED: \(testSuite.name)") - } else { - logMessage("SUITE PASSED: \(testSuite.name)") - } - } - - func testCaseWillStart(_ testCase: XCTestCase) { - logMessage("Test Case Will Start: \(testCase.name)") - logMessage("Class: \(String(describing: type(of: testCase)))") - } - - func testCaseDidFinish(_ testCase: XCTestCase) { - guard let testRun = testCase.testRun else { - logMessage("Test Case Did Finish (No Run Info): \(testCase.name)") - return - } - - let duration = String(format: "%.3f", testRun.totalDuration) - let failures = testRun.failureCount - let unexpected = testRun.unexpectedExceptionCount - - logMessage("Test Case Did Finish: \(testCase.name)") - logMessage("Duration: \(duration)s") - - if testRun.hasSucceeded { - logMessage("PASSED: \(testCase.name)") - } else { - logMessage("FAILED: \(testCase.name)") - logMessage("Failures: \(failures)") - logMessage("Unexpected Exceptions: \(unexpected)") - } - } - - func testCase(_ testCase: XCTestCase, didFailWithDescription description: String, inFile filePath: String?, atLine lineNumber: Int) { - logMessage("TEST FAILURE:") - logMessage("Test: \(testCase.name)") - logMessage("Description: \(description)") - - if let filePath = filePath { - let fileName = URL(fileURLWithPath: filePath).lastPathComponent - logMessage("File: \(fileName):\(lineNumber)") - } - logMessage(String(repeating: "=", count: 80)) - } - - func testCase(_ testCase: XCTestCase, didRecord issue: XCTIssue) { - logMessage("TEST ISSUE RECORDED:") - logMessage("Test: \(testCase.name)") - logMessage("Description: \(issue.compactDescription)") - logMessage("Type: \(issue.type.description)") - - if let location = issue.sourceCodeContext.location { - if #available(iOS 16.0, *) { - let fileName = URL(fileURLWithPath: location.fileURL.path()).lastPathComponent - logMessage("Location: \(fileName):\(location.lineNumber)") - } else { - logMessage("Location: Available on iOS versions - iOS 16+") - } - - } - - // Add detailed description if available - if ((issue.detailedDescription?.isEmpty) == nil) && issue.detailedDescription != issue.compactDescription { - logMessage("Details: \(String(describing: issue.detailedDescription))") - } - } - - // MARK: - Helper Methods - - private func logMessage(_ message: String) { - let timestamp = dateFormatter.string(from: Date()) - let logLine = "[\(timestamp)] [TestObserver] \(message)" - print(logLine) - fflush(stdout) - } -} - -extension XCTIssue.IssueType { - var description: String { - switch self { - case .assertionFailure: - return "Assertion Failure" - case .performanceRegression: - return "Performance Regression" - case .system: - return "System Issue" - case .thrownError: - return "Thrown Error" - case .uncaughtException: - return "Uncaught Exception" - case .unmatchedExpectedFailure: - return "Unmatched Expected Failure" - @unknown default: - return "Unknown Issue Type" - } - } -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index e753e25c6..7e2403f6c 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -47,7 +47,7 @@ D347EDD199CA7E6A4A677D5A /* Pods-iOSReleaseTestTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iOSReleaseTestTests.release.xcconfig"; path = "Target Support Files/Pods-iOSReleaseTestTests/Pods-iOSReleaseTestTests.release.xcconfig"; sourceTree = ""; }; E72CA8862EA19EA500805780 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; E7939C0129749D3C00B90B82 /* iOSReleaseTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOSReleaseTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = iOSReleaseTestTests.swift; path = ../../Source/iOSReleaseTestTests.swift; sourceTree = ""; }; + E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSReleaseTestTests.swift; sourceTree = ""; }; FD6F9153F98F7AA38E9A2DCF /* Pods_iOSReleaseTestTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_iOSReleaseTestTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ @@ -114,7 +114,8 @@ C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */, C119B02527ADC85E00E8C7BF /* Info.plist */, ); - path = iOSReleaseTest; + name = iOSReleaseTest; + path = ../Source/iOSReleaseTest; sourceTree = ""; }; E763E99B29354DA30053F490 /* Frameworks */ = { @@ -132,7 +133,8 @@ E72CA8862EA19EA500805780 /* TestObserver.swift */, E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */, ); - path = iOSReleaseTestTests; + name = iOSReleaseTestTests; + path = ../Source/IntegrationTests; sourceTree = ""; }; /* End PBXGroup section */ diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/AppDelegate.swift b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/AppDelegate.swift deleted file mode 100644 index c5cc155fc..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/AppDelegate.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// AppDelegate.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit - -@main -class AppDelegate: UIResponder, UIApplicationDelegate { - - - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - // Override point for customization after application launch. - - - return true - } - - // MARK: UISceneSession Lifecycle - - func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { - // Called when a new scene session is being created. - // Use this method to select a configuration to create the new scene with. - return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) - } - - func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { - // Called when the user discards a scene session. - // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. - // Use this method to release any resources that were specific to the discarded scenes, as they will not return. - } - - -} - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json deleted file mode 100644 index eb8789700..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors" : [ - { - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 9221b9bb1..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "60x60" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "60x60" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "83.5x83.5" - }, - { - "idiom" : "ios-marketing", - "scale" : "1x", - "size" : "1024x1024" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/Contents.json b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index 865e9329f..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Base.lproj/Main.storyboard b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Base.lproj/Main.storyboard deleted file mode 100644 index 25a763858..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Base.lproj/Main.storyboard +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Info.plist b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Info.plist deleted file mode 100644 index 34f900d68..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/Info.plist +++ /dev/null @@ -1,53 +0,0 @@ - - - - - CFBundleURLTypes - - - CFBundleTypeRole - Editor - CFBundleURLName - io.branch.sdk.Branch-TestBed - CFBundleURLSchemes - - branchtest - - - - UIApplicationSceneManifest - - UIApplicationSupportsMultipleScenes - - UISceneConfigurations - - UIWindowSceneSessionRoleApplication - - - UISceneConfigurationName - Default Configuration - UISceneDelegateClassName - $(PRODUCT_MODULE_NAME).SceneDelegate - UISceneStoryboardFile - Main - - - - - branch_key - - live - key_live_hcnegAumkH7Kv18M8AOHhfgiohpXq5tB - test - key_test_hdcBLUy1xZ1JD0tKg7qrLcgirFmPPVJc - - branch_universal_link_domains - - - applinks:bnctestbed.test-app.link - bnc.lt - applinks:bnctestbed-alternate.app.link - bnctestbed.app.link - - - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/SceneDelegate.swift b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/SceneDelegate.swift deleted file mode 100644 index 0355d0420..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/SceneDelegate.swift +++ /dev/null @@ -1,52 +0,0 @@ -// -// SceneDelegate.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit - -class SceneDelegate: UIResponder, UIWindowSceneDelegate { - - var window: UIWindow? - - - func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { - // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. - // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. - // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). - guard let _ = (scene as? UIWindowScene) else { return } - } - - func sceneDidDisconnect(_ scene: UIScene) { - // Called as the scene is being released by the system. - // This occurs shortly after the scene enters the background, or when its session is discarded. - // Release any resources associated with this scene that can be re-created the next time the scene connects. - // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). - } - - func sceneDidBecomeActive(_ scene: UIScene) { - // Called when the scene has moved from an inactive state to an active state. - // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. - } - - func sceneWillResignActive(_ scene: UIScene) { - // Called when the scene will move from an active state to an inactive state. - // This may occur due to temporary interruptions (ex. an incoming phone call). - } - - func sceneWillEnterForeground(_ scene: UIScene) { - // Called as the scene transitions from the background to the foreground. - // Use this method to undo the changes made on entering the background. - } - - func sceneDidEnterBackground(_ scene: UIScene) { - // Called as the scene transitions from the foreground to the background. - // Use this method to save data, release shared resources, and store enough scene-specific state information - // to restore the scene back to its current state. - } - - -} - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/ViewController.swift b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/ViewController.swift deleted file mode 100644 index d75237f64..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/ViewController.swift +++ /dev/null @@ -1,20 +0,0 @@ -// -// ViewController.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit -import BranchSDK - -class ViewController: UIViewController { - - override func viewDidLoad() { - super.viewDidLoad() - // Do any additional setup after loading the view. - } - - -} - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements deleted file mode 100644 index 77b016325..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements +++ /dev/null @@ -1,13 +0,0 @@ - - - - - com.apple.developer.associated-domains - - applinks:bnc.lt - applinks:bnctestbed.app.link - applinks:bnctestbed.test-app.link - applinks:bnctestbed-alternate.app.link - - - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTestTests/TestObserver.swift b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTestTests/TestObserver.swift deleted file mode 100644 index e36c734fd..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTestTests/TestObserver.swift +++ /dev/null @@ -1,133 +0,0 @@ -import XCTest -import Foundation - -class TestObserver: NSObject, XCTestObservation { - - private let dateFormatter: DateFormatter = { - let formatter = DateFormatter() - formatter.dateFormat = "yyyy-MM-dd HH:mm:ss.SSS" - return formatter - }() - - func testBundleWillStart(_ testBundle: Bundle) { - logMessage("Test Bundle Will Start: \(testBundle.bundleIdentifier ?? "Unknown")") - logMessage("Bundle Path: \(testBundle.bundlePath)") - } - - func testBundleDidFinish(_ testBundle: Bundle) { - logMessage("Test Bundle Did Finish: \(testBundle.bundleIdentifier ?? "Unknown")") - } - - func testSuiteWillStart(_ testSuite: XCTestSuite) { - logMessage("Test Suite Will Start: \(testSuite.name)") - logMessage("Test Count: \(testSuite.testCaseCount)") - } - - func testSuiteDidFinish(_ testSuite: XCTestSuite) { - let duration = String(format: "%.3f", testSuite.testRun?.totalDuration ?? 0) - let failures = testSuite.testRun?.failureCount ?? 0 - let unexpected = testSuite.testRun?.unexpectedExceptionCount ?? 0 - - logMessage("Test Suite Did Finish: \(testSuite.name)") - logMessage("Duration: \(duration)s") - logMessage("Failures: \(failures)") - logMessage("Unexpected Exceptions: \(unexpected)") - - if failures > 0 || unexpected > 0 { - logMessage("SUITE FAILED: \(testSuite.name)") - } else { - logMessage("SUITE PASSED: \(testSuite.name)") - } - } - - func testCaseWillStart(_ testCase: XCTestCase) { - logMessage("Test Case Will Start: \(testCase.name)") - logMessage("Class: \(String(describing: type(of: testCase)))") - } - - func testCaseDidFinish(_ testCase: XCTestCase) { - guard let testRun = testCase.testRun else { - logMessage("Test Case Did Finish (No Run Info): \(testCase.name)") - return - } - - let duration = String(format: "%.3f", testRun.totalDuration) - let failures = testRun.failureCount - let unexpected = testRun.unexpectedExceptionCount - - logMessage("Test Case Did Finish: \(testCase.name)") - logMessage("Duration: \(duration)s") - - if testRun.hasSucceeded { - logMessage("PASSED: \(testCase.name)") - } else { - logMessage("FAILED: \(testCase.name)") - logMessage("Failures: \(failures)") - logMessage("Unexpected Exceptions: \(unexpected)") - } - } - - func testCase(_ testCase: XCTestCase, didFailWithDescription description: String, inFile filePath: String?, atLine lineNumber: Int) { - logMessage("TEST FAILURE:") - logMessage("Test: \(testCase.name)") - logMessage("Description: \(description)") - - if let filePath = filePath { - let fileName = URL(fileURLWithPath: filePath).lastPathComponent - logMessage("File: \(fileName):\(lineNumber)") - } - logMessage(String(repeating: "=", count: 80)) - } - - func testCase(_ testCase: XCTestCase, didRecord issue: XCTIssue) { - logMessage("TEST ISSUE RECORDED:") - logMessage("Test: \(testCase.name)") - logMessage("Description: \(issue.compactDescription)") - logMessage("Type: \(issue.type.description)") - - if let location = issue.sourceCodeContext.location { - if #available(iOS 16.0, *) { - let fileName = URL(fileURLWithPath: location.fileURL.path()).lastPathComponent - logMessage("Location: \(fileName):\(location.lineNumber)") - } else { - logMessage("Location: Available on iOS versions - iOS 16+") - } - - } - - // Add detailed description if available - if ((issue.detailedDescription?.isEmpty) == nil) && issue.detailedDescription != issue.compactDescription { - logMessage("Details: \(String(describing: issue.detailedDescription))") - } - } - - // MARK: - Helper Methods - - private func logMessage(_ message: String) { - let timestamp = dateFormatter.string(from: Date()) - let logLine = "[\(timestamp)] [TestObserver] \(message)" - print(logLine) - fflush(stdout) - } -} - -extension XCTIssue.IssueType { - var description: String { - switch self { - case .assertionFailure: - return "Assertion Failure" - case .performanceRegression: - return "Performance Regression" - case .system: - return "System Issue" - case .thrownError: - return "Thrown Error" - case .uncaughtException: - return "Uncaught Exception" - case .unmatchedExpectedFailure: - return "Unmatched Expected Failure" - @unknown default: - return "Unknown Issue Type" - } - } -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj index d3d0e2163..b8c03fb86 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj @@ -57,7 +57,7 @@ C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = iOSReleaseTest.entitlements; sourceTree = ""; }; E72CA88C2EA19F5800805780 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; E7939C0129749D3C00B90B82 /* iOSReleaseTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOSReleaseTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = iOSReleaseTestTests.swift; path = ../../Source/iOSReleaseTestTests.swift; sourceTree = ""; }; + E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSReleaseTestTests.swift; sourceTree = ""; }; E7A0C2F929898E4B0024497D /* BranchSDKTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BranchSDKTest.swift; sourceTree = ""; }; E7A0C3002989AA1D0024497D /* BranchSDK.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = BranchSDK.xcframework; path = ../../build/BranchSDK.xcframework; sourceTree = ""; }; /* End PBXFileReference section */ @@ -113,7 +113,8 @@ C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */, C119B02527ADC85E00E8C7BF /* Info.plist */, ); - path = iOSReleaseTest; + name = iOSReleaseTest; + path = ../Source/iOSReleaseTest; sourceTree = ""; }; E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */ = { @@ -122,7 +123,8 @@ E72CA88C2EA19F5800805780 /* TestObserver.swift */, E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */, ); - path = iOSReleaseTestTests; + name = iOSReleaseTestTests; + path = ../Source/IntegrationTests; sourceTree = ""; }; E7A0C2FB2989914A0024497D /* Frameworks */ = { diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/AppDelegate.swift b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/AppDelegate.swift deleted file mode 100644 index c5cc155fc..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/AppDelegate.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// AppDelegate.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit - -@main -class AppDelegate: UIResponder, UIApplicationDelegate { - - - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - // Override point for customization after application launch. - - - return true - } - - // MARK: UISceneSession Lifecycle - - func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { - // Called when a new scene session is being created. - // Use this method to select a configuration to create the new scene with. - return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) - } - - func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { - // Called when the user discards a scene session. - // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. - // Use this method to release any resources that were specific to the discarded scenes, as they will not return. - } - - -} - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json deleted file mode 100644 index eb8789700..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors" : [ - { - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 9221b9bb1..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "60x60" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "60x60" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "83.5x83.5" - }, - { - "idiom" : "ios-marketing", - "scale" : "1x", - "size" : "1024x1024" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Assets.xcassets/Contents.json b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Assets.xcassets/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index 865e9329f..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Base.lproj/Main.storyboard b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Base.lproj/Main.storyboard deleted file mode 100644 index 25a763858..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Base.lproj/Main.storyboard +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/BranchSDKTest.swift b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/BranchSDKTest.swift deleted file mode 100644 index 5b686de4e..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/BranchSDKTest.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// BranchSDKTest.swift -// iOSReleaseTest -// -// Created by Nidhi Dixit on 1/31/23. -// - -import Foundation -import BranchSDK - -class BranchSDKTest { - - init() { - Branch.getInstance().enableLogging() - Branch.getInstance().initSession(launchOptions: nil) { (params, error) in - print(params as? [String: AnyObject] ?? {}) - } - } - - func disableTracking( status: Bool) { - Branch.setTrackingDisabled(status) - } - - func trackingStatus() -> Bool { - return Branch.trackingDisabled() - } -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Info.plist b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Info.plist deleted file mode 100644 index 7cb6fcafa..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/Info.plist +++ /dev/null @@ -1,50 +0,0 @@ - - - - - branch_universal_link_domains - - nipunreleasetest.app.link - nipunreleasetest-alternate.app.link - - CFBundleURLTypes - - - CFBundleTypeRole - Editor - CFBundleURLSchemes - - iOSReleaseTest - - CFBundleURLName - com.NipunSingh.iOSReleaseTest - - - branch_key - - live - key_live_ok7NoVhyIh1llbtOW6sfHpbnxBlJjiDp - test - secret_live_NktIf5YHh5us8Hbm7CbyUCPmqwtyqz9M - - UIApplicationSceneManifest - - UIApplicationSupportsMultipleScenes - - UISceneConfigurations - - UIWindowSceneSessionRoleApplication - - - UISceneConfigurationName - Default Configuration - UISceneDelegateClassName - $(PRODUCT_MODULE_NAME).SceneDelegate - UISceneStoryboardFile - Main - - - - - - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/SceneDelegate.swift b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/SceneDelegate.swift deleted file mode 100644 index 0355d0420..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/SceneDelegate.swift +++ /dev/null @@ -1,52 +0,0 @@ -// -// SceneDelegate.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit - -class SceneDelegate: UIResponder, UIWindowSceneDelegate { - - var window: UIWindow? - - - func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { - // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. - // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. - // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). - guard let _ = (scene as? UIWindowScene) else { return } - } - - func sceneDidDisconnect(_ scene: UIScene) { - // Called as the scene is being released by the system. - // This occurs shortly after the scene enters the background, or when its session is discarded. - // Release any resources associated with this scene that can be re-created the next time the scene connects. - // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). - } - - func sceneDidBecomeActive(_ scene: UIScene) { - // Called when the scene has moved from an inactive state to an active state. - // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. - } - - func sceneWillResignActive(_ scene: UIScene) { - // Called when the scene will move from an active state to an inactive state. - // This may occur due to temporary interruptions (ex. an incoming phone call). - } - - func sceneWillEnterForeground(_ scene: UIScene) { - // Called as the scene transitions from the background to the foreground. - // Use this method to undo the changes made on entering the background. - } - - func sceneDidEnterBackground(_ scene: UIScene) { - // Called as the scene transitions from the foreground to the background. - // Use this method to save data, release shared resources, and store enough scene-specific state information - // to restore the scene back to its current state. - } - - -} - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/ViewController.swift b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/ViewController.swift deleted file mode 100644 index f8e6ef37c..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/ViewController.swift +++ /dev/null @@ -1,19 +0,0 @@ -// -// ViewController.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit - -class ViewController: UIViewController { - - override func viewDidLoad() { - super.viewDidLoad() - // Do any additional setup after loading the view. - } - - -} - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/iOSReleaseTest.entitlements b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/iOSReleaseTest.entitlements deleted file mode 100644 index dc0ea48ed..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest/iOSReleaseTest.entitlements +++ /dev/null @@ -1,11 +0,0 @@ - - - - - com.apple.developer.associated-domains - - applinks:nipunreleasetest.app.link - applinks:nipunreleasetest-alternate.app.link - - - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTestTests/TestObserver.swift b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTestTests/TestObserver.swift deleted file mode 100644 index e36c734fd..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTestTests/TestObserver.swift +++ /dev/null @@ -1,133 +0,0 @@ -import XCTest -import Foundation - -class TestObserver: NSObject, XCTestObservation { - - private let dateFormatter: DateFormatter = { - let formatter = DateFormatter() - formatter.dateFormat = "yyyy-MM-dd HH:mm:ss.SSS" - return formatter - }() - - func testBundleWillStart(_ testBundle: Bundle) { - logMessage("Test Bundle Will Start: \(testBundle.bundleIdentifier ?? "Unknown")") - logMessage("Bundle Path: \(testBundle.bundlePath)") - } - - func testBundleDidFinish(_ testBundle: Bundle) { - logMessage("Test Bundle Did Finish: \(testBundle.bundleIdentifier ?? "Unknown")") - } - - func testSuiteWillStart(_ testSuite: XCTestSuite) { - logMessage("Test Suite Will Start: \(testSuite.name)") - logMessage("Test Count: \(testSuite.testCaseCount)") - } - - func testSuiteDidFinish(_ testSuite: XCTestSuite) { - let duration = String(format: "%.3f", testSuite.testRun?.totalDuration ?? 0) - let failures = testSuite.testRun?.failureCount ?? 0 - let unexpected = testSuite.testRun?.unexpectedExceptionCount ?? 0 - - logMessage("Test Suite Did Finish: \(testSuite.name)") - logMessage("Duration: \(duration)s") - logMessage("Failures: \(failures)") - logMessage("Unexpected Exceptions: \(unexpected)") - - if failures > 0 || unexpected > 0 { - logMessage("SUITE FAILED: \(testSuite.name)") - } else { - logMessage("SUITE PASSED: \(testSuite.name)") - } - } - - func testCaseWillStart(_ testCase: XCTestCase) { - logMessage("Test Case Will Start: \(testCase.name)") - logMessage("Class: \(String(describing: type(of: testCase)))") - } - - func testCaseDidFinish(_ testCase: XCTestCase) { - guard let testRun = testCase.testRun else { - logMessage("Test Case Did Finish (No Run Info): \(testCase.name)") - return - } - - let duration = String(format: "%.3f", testRun.totalDuration) - let failures = testRun.failureCount - let unexpected = testRun.unexpectedExceptionCount - - logMessage("Test Case Did Finish: \(testCase.name)") - logMessage("Duration: \(duration)s") - - if testRun.hasSucceeded { - logMessage("PASSED: \(testCase.name)") - } else { - logMessage("FAILED: \(testCase.name)") - logMessage("Failures: \(failures)") - logMessage("Unexpected Exceptions: \(unexpected)") - } - } - - func testCase(_ testCase: XCTestCase, didFailWithDescription description: String, inFile filePath: String?, atLine lineNumber: Int) { - logMessage("TEST FAILURE:") - logMessage("Test: \(testCase.name)") - logMessage("Description: \(description)") - - if let filePath = filePath { - let fileName = URL(fileURLWithPath: filePath).lastPathComponent - logMessage("File: \(fileName):\(lineNumber)") - } - logMessage(String(repeating: "=", count: 80)) - } - - func testCase(_ testCase: XCTestCase, didRecord issue: XCTIssue) { - logMessage("TEST ISSUE RECORDED:") - logMessage("Test: \(testCase.name)") - logMessage("Description: \(issue.compactDescription)") - logMessage("Type: \(issue.type.description)") - - if let location = issue.sourceCodeContext.location { - if #available(iOS 16.0, *) { - let fileName = URL(fileURLWithPath: location.fileURL.path()).lastPathComponent - logMessage("Location: \(fileName):\(location.lineNumber)") - } else { - logMessage("Location: Available on iOS versions - iOS 16+") - } - - } - - // Add detailed description if available - if ((issue.detailedDescription?.isEmpty) == nil) && issue.detailedDescription != issue.compactDescription { - logMessage("Details: \(String(describing: issue.detailedDescription))") - } - } - - // MARK: - Helper Methods - - private func logMessage(_ message: String) { - let timestamp = dateFormatter.string(from: Date()) - let logLine = "[\(timestamp)] [TestObserver] \(message)" - print(logLine) - fflush(stdout) - } -} - -extension XCTIssue.IssueType { - var description: String { - switch self { - case .assertionFailure: - return "Assertion Failure" - case .performanceRegression: - return "Performance Regression" - case .system: - return "System Issue" - case .thrownError: - return "Thrown Error" - case .uncaughtException: - return "Uncaught Exception" - case .unmatchedExpectedFailure: - return "Unmatched Expected Failure" - @unknown default: - return "Unknown Issue Type" - } - } -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj index 235a5debb..fe890fe65 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj @@ -57,7 +57,7 @@ C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = iOSReleaseTest.entitlements; sourceTree = ""; }; E72CA8882EA19ED900805780 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; E7939C0129749D3C00B90B82 /* iOSReleaseTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOSReleaseTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = iOSReleaseTestTests.swift; path = ../../Source/iOSReleaseTestTests.swift; sourceTree = ""; }; + E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSReleaseTestTests.swift; sourceTree = ""; }; E7A0C2F929898E4B0024497D /* BranchSDKTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BranchSDKTest.swift; sourceTree = ""; }; E7A0C2FC2989914A0024497D /* BranchSDK.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = BranchSDK.xcframework; path = ../../build/BranchSDK.xcframework; sourceTree = ""; }; /* End PBXFileReference section */ @@ -113,7 +113,8 @@ C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */, C119B02527ADC85E00E8C7BF /* Info.plist */, ); - path = iOSReleaseTest; + name = iOSReleaseTest; + path = ../Source/iOSReleaseTest; sourceTree = ""; }; E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */ = { @@ -122,7 +123,8 @@ E72CA8882EA19ED900805780 /* TestObserver.swift */, E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */, ); - path = iOSReleaseTestTests; + name = iOSReleaseTestTests; + path = ../Source/IntegrationTests; sourceTree = ""; }; E7A0C2FB2989914A0024497D /* Frameworks */ = { diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/AppDelegate.swift b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/AppDelegate.swift deleted file mode 100644 index c5cc155fc..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/AppDelegate.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// AppDelegate.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit - -@main -class AppDelegate: UIResponder, UIApplicationDelegate { - - - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - // Override point for customization after application launch. - - - return true - } - - // MARK: UISceneSession Lifecycle - - func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { - // Called when a new scene session is being created. - // Use this method to select a configuration to create the new scene with. - return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) - } - - func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { - // Called when the user discards a scene session. - // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. - // Use this method to release any resources that were specific to the discarded scenes, as they will not return. - } - - -} - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json deleted file mode 100644 index eb8789700..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors" : [ - { - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 9221b9bb1..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "60x60" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "60x60" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "83.5x83.5" - }, - { - "idiom" : "ios-marketing", - "scale" : "1x", - "size" : "1024x1024" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Assets.xcassets/Contents.json b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Assets.xcassets/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index 865e9329f..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Base.lproj/Main.storyboard b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Base.lproj/Main.storyboard deleted file mode 100644 index 25a763858..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Base.lproj/Main.storyboard +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/BranchSDKTest.swift b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/BranchSDKTest.swift deleted file mode 100644 index 392a52c8e..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/BranchSDKTest.swift +++ /dev/null @@ -1,24 +0,0 @@ -// -// BranchSDKTest.swift -// iOSReleaseTest -// -// Created by Nidhi Dixit on 1/31/23. -// - -import Foundation -import BranchSDK - -class BranchSDKTest { - - init() { - Branch.init() - } - - func disableTracking( status: Bool) { - Branch.setTrackingDisabled(status) - } - - func trackingStatus() -> Bool { - return Branch.trackingDisabled() - } -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Info.plist b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Info.plist deleted file mode 100644 index 7cb6fcafa..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/Info.plist +++ /dev/null @@ -1,50 +0,0 @@ - - - - - branch_universal_link_domains - - nipunreleasetest.app.link - nipunreleasetest-alternate.app.link - - CFBundleURLTypes - - - CFBundleTypeRole - Editor - CFBundleURLSchemes - - iOSReleaseTest - - CFBundleURLName - com.NipunSingh.iOSReleaseTest - - - branch_key - - live - key_live_ok7NoVhyIh1llbtOW6sfHpbnxBlJjiDp - test - secret_live_NktIf5YHh5us8Hbm7CbyUCPmqwtyqz9M - - UIApplicationSceneManifest - - UIApplicationSupportsMultipleScenes - - UISceneConfigurations - - UIWindowSceneSessionRoleApplication - - - UISceneConfigurationName - Default Configuration - UISceneDelegateClassName - $(PRODUCT_MODULE_NAME).SceneDelegate - UISceneStoryboardFile - Main - - - - - - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/SceneDelegate.swift b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/SceneDelegate.swift deleted file mode 100644 index 0355d0420..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/SceneDelegate.swift +++ /dev/null @@ -1,52 +0,0 @@ -// -// SceneDelegate.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit - -class SceneDelegate: UIResponder, UIWindowSceneDelegate { - - var window: UIWindow? - - - func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { - // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. - // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. - // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). - guard let _ = (scene as? UIWindowScene) else { return } - } - - func sceneDidDisconnect(_ scene: UIScene) { - // Called as the scene is being released by the system. - // This occurs shortly after the scene enters the background, or when its session is discarded. - // Release any resources associated with this scene that can be re-created the next time the scene connects. - // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). - } - - func sceneDidBecomeActive(_ scene: UIScene) { - // Called when the scene has moved from an inactive state to an active state. - // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. - } - - func sceneWillResignActive(_ scene: UIScene) { - // Called when the scene will move from an active state to an inactive state. - // This may occur due to temporary interruptions (ex. an incoming phone call). - } - - func sceneWillEnterForeground(_ scene: UIScene) { - // Called as the scene transitions from the background to the foreground. - // Use this method to undo the changes made on entering the background. - } - - func sceneDidEnterBackground(_ scene: UIScene) { - // Called as the scene transitions from the foreground to the background. - // Use this method to save data, release shared resources, and store enough scene-specific state information - // to restore the scene back to its current state. - } - - -} - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/ViewController.swift b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/ViewController.swift deleted file mode 100644 index f8e6ef37c..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/ViewController.swift +++ /dev/null @@ -1,19 +0,0 @@ -// -// ViewController.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit - -class ViewController: UIViewController { - - override func viewDidLoad() { - super.viewDidLoad() - // Do any additional setup after loading the view. - } - - -} - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/iOSReleaseTest.entitlements b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/iOSReleaseTest.entitlements deleted file mode 100644 index dc0ea48ed..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest/iOSReleaseTest.entitlements +++ /dev/null @@ -1,11 +0,0 @@ - - - - - com.apple.developer.associated-domains - - applinks:nipunreleasetest.app.link - applinks:nipunreleasetest-alternate.app.link - - - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTestTests/TestObserver.swift b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTestTests/TestObserver.swift deleted file mode 100644 index e36c734fd..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTestTests/TestObserver.swift +++ /dev/null @@ -1,133 +0,0 @@ -import XCTest -import Foundation - -class TestObserver: NSObject, XCTestObservation { - - private let dateFormatter: DateFormatter = { - let formatter = DateFormatter() - formatter.dateFormat = "yyyy-MM-dd HH:mm:ss.SSS" - return formatter - }() - - func testBundleWillStart(_ testBundle: Bundle) { - logMessage("Test Bundle Will Start: \(testBundle.bundleIdentifier ?? "Unknown")") - logMessage("Bundle Path: \(testBundle.bundlePath)") - } - - func testBundleDidFinish(_ testBundle: Bundle) { - logMessage("Test Bundle Did Finish: \(testBundle.bundleIdentifier ?? "Unknown")") - } - - func testSuiteWillStart(_ testSuite: XCTestSuite) { - logMessage("Test Suite Will Start: \(testSuite.name)") - logMessage("Test Count: \(testSuite.testCaseCount)") - } - - func testSuiteDidFinish(_ testSuite: XCTestSuite) { - let duration = String(format: "%.3f", testSuite.testRun?.totalDuration ?? 0) - let failures = testSuite.testRun?.failureCount ?? 0 - let unexpected = testSuite.testRun?.unexpectedExceptionCount ?? 0 - - logMessage("Test Suite Did Finish: \(testSuite.name)") - logMessage("Duration: \(duration)s") - logMessage("Failures: \(failures)") - logMessage("Unexpected Exceptions: \(unexpected)") - - if failures > 0 || unexpected > 0 { - logMessage("SUITE FAILED: \(testSuite.name)") - } else { - logMessage("SUITE PASSED: \(testSuite.name)") - } - } - - func testCaseWillStart(_ testCase: XCTestCase) { - logMessage("Test Case Will Start: \(testCase.name)") - logMessage("Class: \(String(describing: type(of: testCase)))") - } - - func testCaseDidFinish(_ testCase: XCTestCase) { - guard let testRun = testCase.testRun else { - logMessage("Test Case Did Finish (No Run Info): \(testCase.name)") - return - } - - let duration = String(format: "%.3f", testRun.totalDuration) - let failures = testRun.failureCount - let unexpected = testRun.unexpectedExceptionCount - - logMessage("Test Case Did Finish: \(testCase.name)") - logMessage("Duration: \(duration)s") - - if testRun.hasSucceeded { - logMessage("PASSED: \(testCase.name)") - } else { - logMessage("FAILED: \(testCase.name)") - logMessage("Failures: \(failures)") - logMessage("Unexpected Exceptions: \(unexpected)") - } - } - - func testCase(_ testCase: XCTestCase, didFailWithDescription description: String, inFile filePath: String?, atLine lineNumber: Int) { - logMessage("TEST FAILURE:") - logMessage("Test: \(testCase.name)") - logMessage("Description: \(description)") - - if let filePath = filePath { - let fileName = URL(fileURLWithPath: filePath).lastPathComponent - logMessage("File: \(fileName):\(lineNumber)") - } - logMessage(String(repeating: "=", count: 80)) - } - - func testCase(_ testCase: XCTestCase, didRecord issue: XCTIssue) { - logMessage("TEST ISSUE RECORDED:") - logMessage("Test: \(testCase.name)") - logMessage("Description: \(issue.compactDescription)") - logMessage("Type: \(issue.type.description)") - - if let location = issue.sourceCodeContext.location { - if #available(iOS 16.0, *) { - let fileName = URL(fileURLWithPath: location.fileURL.path()).lastPathComponent - logMessage("Location: \(fileName):\(location.lineNumber)") - } else { - logMessage("Location: Available on iOS versions - iOS 16+") - } - - } - - // Add detailed description if available - if ((issue.detailedDescription?.isEmpty) == nil) && issue.detailedDescription != issue.compactDescription { - logMessage("Details: \(String(describing: issue.detailedDescription))") - } - } - - // MARK: - Helper Methods - - private func logMessage(_ message: String) { - let timestamp = dateFormatter.string(from: Date()) - let logLine = "[\(timestamp)] [TestObserver] \(message)" - print(logLine) - fflush(stdout) - } -} - -extension XCTIssue.IssueType { - var description: String { - switch self { - case .assertionFailure: - return "Assertion Failure" - case .performanceRegression: - return "Performance Regression" - case .system: - return "System Issue" - case .thrownError: - return "Thrown Error" - case .uncaughtException: - return "Uncaught Exception" - case .unmatchedExpectedFailure: - return "Unmatched Expected Failure" - @unknown default: - return "Unknown Issue Type" - } - } -} From 77f9a5e776e061f2b6a72fc2f9530785f997e708 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Fri, 17 Oct 2025 11:57:38 -0700 Subject: [PATCH 27/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj index 72f2f7f51..0d228683d 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj @@ -405,7 +405,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; + CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = R63EM248DP; @@ -434,7 +434,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; + CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = R63EM248DP; From cb56a67236f1004b9563eae14dfc54c07947b5dc Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Fri, 17 Oct 2025 11:59:34 -0700 Subject: [PATCH 28/85] Updated entitlements path --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 ++-- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 ++-- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 ++-- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj index 667ada900..ac2a5a1ed 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj @@ -405,7 +405,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; + CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 5YP4T32B58; @@ -434,7 +434,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; + CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = YKPTD52Z6X; diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index 7e2403f6c..7a92afbe6 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -499,7 +499,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; + CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; @@ -531,7 +531,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; + CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj index b8c03fb86..ea3cb94d4 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj @@ -405,7 +405,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; + CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 5YP4T32B58; @@ -434,7 +434,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; + CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = YKPTD52Z6X; diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj index fe890fe65..aa650e501 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj @@ -405,7 +405,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; + CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 5YP4T32B58; @@ -434,7 +434,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; + CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = YKPTD52Z6X; From 0e971ce5338250cca015684f2716904edd9e741c Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Fri, 17 Oct 2025 12:07:57 -0700 Subject: [PATCH 29/85] Fixed plist path. --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 ++-- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 ++-- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 ++-- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 ++-- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj index ac2a5a1ed..db1c5ed3e 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj @@ -410,7 +410,7 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 5YP4T32B58; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iOSReleaseTest/Info.plist; + INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; @@ -439,7 +439,7 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = YKPTD52Z6X; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iOSReleaseTest/Info.plist; + INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index 7a92afbe6..a394ed099 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -505,7 +505,7 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iOSReleaseTest/Info.plist; + INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; @@ -537,7 +537,7 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iOSReleaseTest/Info.plist; + INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj index ea3cb94d4..3ce705044 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj @@ -410,7 +410,7 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 5YP4T32B58; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iOSReleaseTest/Info.plist; + INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; @@ -439,7 +439,7 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = YKPTD52Z6X; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iOSReleaseTest/Info.plist; + INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj index aa650e501..86d5a2f01 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj @@ -410,7 +410,7 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 5YP4T32B58; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iOSReleaseTest/Info.plist; + INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; @@ -439,7 +439,7 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = YKPTD52Z6X; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iOSReleaseTest/Info.plist; + INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj index 0d228683d..2f382ebdf 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj @@ -410,7 +410,7 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iOSReleaseTest/Info.plist; + INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; @@ -439,7 +439,7 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iOSReleaseTest/Info.plist; + INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; From 930cf816de4e52d0f6e635e13cffd03ca93edb6c Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 08:48:30 -0700 Subject: [PATCH 30/85] Test commit From 80472ca4e95820fcf2b64630ee1d0904a5bffb86 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 09:44:57 -0700 Subject: [PATCH 31/85] Updated bundle identifiers. --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 10 ++++++---- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index a394ed099..f3627fc41 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -516,7 +516,7 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = "io.branch.sdk.Branch-TestBed"; + PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = YES; @@ -548,7 +548,7 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = "io.branch.sdk.Branch-TestBed"; + PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = YES; @@ -564,10 +564,11 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = "io.branch.sdk.Branch-TestBed"; + PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; @@ -583,10 +584,11 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = "io.branch.sdk.Branch-TestBed"; + PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj index 2f382ebdf..e21174fa9 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj @@ -470,7 +470,7 @@ GENERATE_PKGINFO_FILE = NO; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.SamSolutions.iOSReleaseTestTests; + PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; @@ -491,7 +491,7 @@ GENERATE_PKGINFO_FILE = NO; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.SamSolutions.iOSReleaseTestTests; + PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; From 4a6b87691b24ac62ef6cb9b9faea707a27855484 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 09:51:41 -0700 Subject: [PATCH 32/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 ---- 1 file changed, 4 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index f3627fc41..ed0546fd0 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -500,7 +500,6 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; - CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = R63EM248DP; @@ -518,7 +517,6 @@ MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -532,7 +530,6 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; - CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = R63EM248DP; @@ -550,7 +547,6 @@ MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; From 089374889e6a433449fbd8c5a26202067695936c Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 09:54:19 -0700 Subject: [PATCH 33/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index ed0546fd0..cc22b9e9d 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -559,6 +559,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; @@ -579,6 +580,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; From 0f60927c37f780cb420d6b5e0562ac824694ea91 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 10:05:11 -0700 Subject: [PATCH 34/85] Update BranchSDKTest.swift --- .../Source/iOSReleaseTest/BranchSDKTest.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDKIntegrationTestApps/Source/iOSReleaseTest/BranchSDKTest.swift b/SDKIntegrationTestApps/Source/iOSReleaseTest/BranchSDKTest.swift index 7970c29cb..b61bd4a94 100644 --- a/SDKIntegrationTestApps/Source/iOSReleaseTest/BranchSDKTest.swift +++ b/SDKIntegrationTestApps/Source/iOSReleaseTest/BranchSDKTest.swift @@ -15,6 +15,6 @@ class BranchSDKTest { } func setCPPLevel( status: BranchAttributionLevel) { - Branch.getInstance().setConsumerProtectionAttributionLevel(BranchAttributionLevel.full) + Branch.getInstance().setConsumerProtectionAttributionLevel(status) } } From 58b8dcd39c0a02defae5e16cb4217859ddfa52a7 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 10:28:55 -0700 Subject: [PATCH 35/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index cc22b9e9d..10990a23b 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -529,10 +529,13 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_ENTITLEMENTS = iOSReleaseTestRelease.entitlements; + CODE_SIGN_IDENTITY = "Apple Development"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -545,8 +548,10 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator - Distribution"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; From 5a97a7178ff4ef637405c93dc87519033019550b Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 10:29:44 -0700 Subject: [PATCH 36/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index 10990a23b..b3ca61a07 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -591,7 +591,7 @@ GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; From 4e8b788913731cf54cc6bec839fece60d3ca3889 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 10:33:33 -0700 Subject: [PATCH 37/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index a4bbeaf58..b9c8da794 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -9,6 +9,36 @@ jobs: steps: - name: Check out code uses: actions/checkout@v4 + - name: Install the Apple certificate and provisioning profile + env: + BUILD_CERTIFICATE_BASE64: ${{ secrets.BS_BUILD_CERTIFICATE }} + P12_PASSWORD: ${{ secrets.BS_P12_PASSWORD }} + BUILD_PROVISION_PROFILE_BASE64: ${{ secrets.BS_BUILD_PROVISION_PROFILE_BASE64_PART_AA }} + KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }} + run: | + # create variables + CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12 + KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db + PP_PATH=$RUNNER_TEMP/build_pp.mobileprovision + # import certificate + echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH + + # Create Provisioning Profiles + echo "${{ secrets.BS_BUILD_PROVISION_PROFILE_BASE64_PART_AA }}" >> part_aa + #echo "${{ secrets.BS_BUILD_PROVISION_PROFILE_BASE64_PART_AB }}" >> part_aa + #echo "${{ secrets.BS_BUILD_PROVISION_PROFILE_BASE64_PART_AC }}" >> part_aa + base64 -D -i part_aa > $PP_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 + + # apply provisioning profile + mkdir -p ~/Library/Developer/Xcode/UserData/Provisioning\ Profiles + cp $PP_PATH ~/Library/Developer/Xcode/UserData/Provisioning\ Profiles/ - name: Install pod, build project and run tests run: | mkdir -p test-results From 27dfb55a2ff8d133381e1f24b3ecaab6d62f7c45 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 10:35:44 -0700 Subject: [PATCH 38/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index b3ca61a07..be7587bdf 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -515,7 +515,7 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; @@ -570,7 +570,7 @@ GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; From 79634dbb9ecf0475e6af77942bd8cc8707ee152d Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 11:12:51 -0700 Subject: [PATCH 39/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 29 ++++++++++++++----- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index be7587bdf..3274bea5b 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -500,9 +500,12 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_IDENTITY = "Apple Distribution"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -517,6 +520,8 @@ MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator - Distribution"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -529,8 +534,8 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTestRelease.entitlements; - CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; + CODE_SIGN_IDENTITY = "Apple Distribution"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; @@ -564,14 +569,18 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator - Distribution"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -585,14 +594,18 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator - Distribution"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; From 8111ff7ab525086dd16681e001e36eae6ef8aa45 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 11:15:20 -0700 Subject: [PATCH 40/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 34 +++++++------------ 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index 3274bea5b..ebf842c06 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -500,12 +500,10 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; - CODE_SIGN_IDENTITY = "Apple Distribution"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; - CODE_SIGN_STYLE = Manual; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = ""; - "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; + DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -521,7 +519,6 @@ PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator - Distribution"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -535,12 +532,10 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; - CODE_SIGN_IDENTITY = "Apple Distribution"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; - CODE_SIGN_STYLE = Manual; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = ""; - "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; + DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -556,7 +551,6 @@ PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator - Distribution"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -569,18 +563,16 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; - CODE_SIGN_STYLE = Manual; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = ""; - "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; + DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator - Distribution"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -594,18 +586,16 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; - CODE_SIGN_STYLE = Manual; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = ""; - "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; + DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator - Distribution"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; From e4e6003b8c7e7ca53b404adb965304e9274744ff Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 11:23:18 -0700 Subject: [PATCH 41/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index b9c8da794..d99f8b789 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -11,8 +11,8 @@ jobs: uses: actions/checkout@v4 - name: Install the Apple certificate and provisioning profile env: - BUILD_CERTIFICATE_BASE64: ${{ secrets.BS_BUILD_CERTIFICATE }} - P12_PASSWORD: ${{ secrets.BS_P12_PASSWORD }} + BUILD_CERTIFICATE_BASE64: ${{ secrets.APPLE_DEV_CERT }} + P12_PASSWORD: ${{ secrets.APPLE_DEV_CERT_PASSWORD }} BUILD_PROVISION_PROFILE_BASE64: ${{ secrets.BS_BUILD_PROVISION_PROFILE_BASE64_PART_AA }} KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }} run: | From c04ff3184c287528098806177dfd81a7b3859611 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 11:25:32 -0700 Subject: [PATCH 42/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index ebf842c06..c43403b64 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -501,9 +501,11 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -519,6 +521,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -533,9 +536,11 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -551,6 +556,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -564,9 +570,11 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; CODE_SIGN_IDENTITY = "Apple Development"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; + "DEVELOPMENT_TEAM[sdk=macosx*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; @@ -587,9 +595,11 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; CODE_SIGN_IDENTITY = "Apple Development"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; + "DEVELOPMENT_TEAM[sdk=macosx*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; From 7af12f2154a648d838d9b5b3a9a2e1a146e4d8fd Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 11:27:24 -0700 Subject: [PATCH 43/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 ---- 1 file changed, 4 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index c43403b64..ba378a7da 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -15,7 +15,6 @@ C119B01F27ADC85C00E8C7BF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C119B01D27ADC85C00E8C7BF /* Main.storyboard */; }; C119B02127ADC85E00E8C7BF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C119B02027ADC85E00E8C7BF /* Assets.xcassets */; }; C119B02427ADC85E00E8C7BF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */; }; - C119B02C27ADC92A00E8C7BF /* iOSReleaseTest.entitlements in Resources */ = {isa = PBXBuildFile; fileRef = C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */; }; E72CA8872EA19EA500805780 /* TestObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = E72CA8862EA19EA500805780 /* TestObserver.swift */; }; E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */; }; /* End PBXBuildFile section */ @@ -42,7 +41,6 @@ C119B02027ADC85E00E8C7BF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; C119B02327ADC85E00E8C7BF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; C119B02527ADC85E00E8C7BF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = iOSReleaseTest.entitlements; sourceTree = ""; }; CB25BCCA817F45C9E229676E /* Pods_iOSReleaseTest.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_iOSReleaseTest.framework; sourceTree = BUILT_PRODUCTS_DIR; }; D347EDD199CA7E6A4A677D5A /* Pods-iOSReleaseTestTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iOSReleaseTestTests.release.xcconfig"; path = "Target Support Files/Pods-iOSReleaseTestTests/Pods-iOSReleaseTestTests.release.xcconfig"; sourceTree = ""; }; E72CA8862EA19EA500805780 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; @@ -105,7 +103,6 @@ C119B01627ADC85C00E8C7BF /* iOSReleaseTest */ = { isa = PBXGroup; children = ( - C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */, C119B01727ADC85C00E8C7BF /* AppDelegate.swift */, C119B01927ADC85C00E8C7BF /* SceneDelegate.swift */, C119B01B27ADC85C00E8C7BF /* ViewController.swift */, @@ -222,7 +219,6 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - C119B02C27ADC92A00E8C7BF /* iOSReleaseTest.entitlements in Resources */, C119B02427ADC85E00E8C7BF /* LaunchScreen.storyboard in Resources */, C119B02127ADC85E00E8C7BF /* Assets.xcassets in Resources */, C119B01F27ADC85C00E8C7BF /* Main.storyboard in Resources */, From 3740da4501d6d2659bef113e37a546762fa5a86c Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 11:50:55 -0700 Subject: [PATCH 44/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index d99f8b789..a34746fcf 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -48,7 +48,7 @@ jobs: cd SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/ pod install xcodebuild test -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace - -destination "$DESTINATION" -resultBundlePath ../../test-results/ios-cocoapods.xcresult -allowProvisioningUpdates + -destination "$DESTINATION" -resultBundlePath ../../test-results/ios-cocoapods.xcresult - name: Upload test report uses: actions/upload-artifact@v4 if: always() From 7c107a4e2aaddf8281fea33133ad20f5d643bb3a Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 12:21:51 -0700 Subject: [PATCH 45/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index a34746fcf..a3f7c6aee 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -13,7 +13,6 @@ jobs: env: BUILD_CERTIFICATE_BASE64: ${{ secrets.APPLE_DEV_CERT }} P12_PASSWORD: ${{ secrets.APPLE_DEV_CERT_PASSWORD }} - BUILD_PROVISION_PROFILE_BASE64: ${{ secrets.BS_BUILD_PROVISION_PROFILE_BASE64_PART_AA }} KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }} run: | # create variables @@ -24,9 +23,9 @@ jobs: echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH # Create Provisioning Profiles - echo "${{ secrets.BS_BUILD_PROVISION_PROFILE_BASE64_PART_AA }}" >> part_aa - #echo "${{ secrets.BS_BUILD_PROVISION_PROFILE_BASE64_PART_AB }}" >> part_aa - #echo "${{ secrets.BS_BUILD_PROVISION_PROFILE_BASE64_PART_AC }}" >> part_aa + echo "${{ secrets.BS_DEV_BUILD_PROVISION_PROFILE_BASE64_PART_AA }}" >> part_aa + #echo "${{ secrets.BS_DEV_BUILD_PROVISION_PROFILE_BASE64_PART_AB }}" >> part_aa + #echo "${{ secrets.BS_DEV_BUILD_PROVISION_PROFILE_BASE64_PART_AC }}" >> part_aa base64 -D -i part_aa > $PP_PATH # create temporary keychain security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH From 365eea0584dc8ec234f055c2d4cac5704edf188e Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 12:22:01 -0700 Subject: [PATCH 46/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index ba378a7da..bd874adb9 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -566,6 +566,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; CODE_SIGN_IDENTITY = "Apple Development"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = ""; @@ -577,6 +578,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -591,6 +593,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; CODE_SIGN_IDENTITY = "Apple Development"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = ""; @@ -602,6 +605,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; From 7c7d79df16e8534b8f711600cb2c52f4139f3ee6 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 12:31:33 -0700 Subject: [PATCH 47/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 30 +++++-------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index bd874adb9..f9fc14a02 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -497,11 +497,9 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CODE_SIGN_STYLE = Manual; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = ""; - "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; + DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -517,7 +515,6 @@ PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -532,11 +529,9 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CODE_SIGN_STYLE = Manual; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = ""; - "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; + DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -552,7 +547,6 @@ PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -566,19 +560,15 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; CODE_SIGN_IDENTITY = "Apple Development"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CODE_SIGN_STYLE = Manual; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = ""; - "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; - "DEVELOPMENT_TEAM[sdk=macosx*]" = R63EM248DP; + DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -593,19 +583,15 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; CODE_SIGN_IDENTITY = "Apple Development"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CODE_SIGN_STYLE = Manual; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = ""; - "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; - "DEVELOPMENT_TEAM[sdk=macosx*]" = R63EM248DP; + DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; From 8eef7f647dd767b099faf50d2eb688c0ff087ff0 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 12:36:02 -0700 Subject: [PATCH 48/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 30 ++++++++++++++----- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index f9fc14a02..dd166f245 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -497,9 +497,11 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -515,6 +517,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -529,9 +532,11 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -547,6 +552,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -560,15 +566,19 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; CODE_SIGN_IDENTITY = "Apple Development"; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -583,15 +593,19 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; CODE_SIGN_IDENTITY = "Apple Development"; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; From e516d4c4cb93c8e20f073a220efe02c9f15e8a8b Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 12:36:08 -0700 Subject: [PATCH 49/85] Update Info.plist --- .../Source/iOSReleaseTest/Info.plist | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/SDKIntegrationTestApps/Source/iOSReleaseTest/Info.plist b/SDKIntegrationTestApps/Source/iOSReleaseTest/Info.plist index 41b76ac40..36bdf40ae 100644 --- a/SDKIntegrationTestApps/Source/iOSReleaseTest/Info.plist +++ b/SDKIntegrationTestApps/Source/iOSReleaseTest/Info.plist @@ -2,19 +2,6 @@ - CFBundleURLTypes - - - CFBundleTypeRole - Editor - CFBundleURLName - com.NipunSingh.iOSReleaseTest - CFBundleURLSchemes - - iOSReleaseTest - - - UIApplicationSceneManifest UIApplicationSupportsMultipleScenes From fc3ab4a79104c476cafe34a1f9c4246577f80bd8 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 12:38:02 -0700 Subject: [PATCH 50/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index a3f7c6aee..026052dd6 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -24,8 +24,8 @@ jobs: # Create Provisioning Profiles echo "${{ secrets.BS_DEV_BUILD_PROVISION_PROFILE_BASE64_PART_AA }}" >> part_aa - #echo "${{ secrets.BS_DEV_BUILD_PROVISION_PROFILE_BASE64_PART_AB }}" >> part_aa - #echo "${{ secrets.BS_DEV_BUILD_PROVISION_PROFILE_BASE64_PART_AC }}" >> part_aa + echo "${{ secrets.BS_DEV_BUILD_PROVISION_PROFILE_BASE64_PART_AB }}" >> part_aa + echo "${{ secrets.BS_DEV_BUILD_PROVISION_PROFILE_BASE64_PART_AC }}" >> part_aa base64 -D -i part_aa > $PP_PATH # create temporary keychain security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH From 3dc00d8b874f057c216ff6d6aa1dbf4623774b79 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 13:04:31 -0700 Subject: [PATCH 51/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index 026052dd6..977b5c865 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -42,12 +42,10 @@ jobs: run: | mkdir -p test-results 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" -resultBundlePath ../../test-results/ios-cocoapods.xcresult + -destination "generic/platform=iOS" -resultBundlePath ../../test-results/ios-cocoapods.xcresult - name: Upload test report uses: actions/upload-artifact@v4 if: always() From ad3e7480a94171e3c05930cf6fabca62ff8bc848 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 14:29:23 -0700 Subject: [PATCH 52/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index 977b5c865..59aca95cb 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -45,7 +45,7 @@ jobs: cd SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/ pod install xcodebuild test -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace - -destination "generic/platform=iOS" -resultBundlePath ../../test-results/ios-cocoapods.xcresult + -destination "generic/platform=iOS" CODE_SIGNING_ALLOWED=NO -resultBundlePath ../../test-results/ios-cocoapods.xcresult - name: Upload test report uses: actions/upload-artifact@v4 if: always() From 5400360408a0654c32a47e68140942c4fc72405c Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 14:35:12 -0700 Subject: [PATCH 53/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index 59aca95cb..0dbafd817 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -44,8 +44,15 @@ jobs: echo "branch=${{ github.ref }}" >> $GITHUB_OUTPUT cd SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/ pod install - xcodebuild test -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace - -destination "generic/platform=iOS" CODE_SIGNING_ALLOWED=NO -resultBundlePath ../../test-results/ios-cocoapods.xcresult + xcodebuild -configuration Debug \ + -sdk iphonesimulator \ + -destination 'platform=iOS Simulator,OS=latest,name=iPhone 15' \ + CODE_SIGNING_ALLOWED=NO \ + CODE_SIGNING_REQUIRED=NO \ + PROVISIONING_PROFILE_SPECIFIER="" \ + DEVELOPMENT_TEAM="" \ + -resultBundlePath ../../test-results/ios-cocoapods.xcresult \ + clean test - name: Upload test report uses: actions/upload-artifact@v4 if: always() From 6dc94c1ec29c1197a9e643b2d5ce1eda421fa01f Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 14:36:32 -0700 Subject: [PATCH 54/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index 0dbafd817..ab3867470 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -45,6 +45,7 @@ jobs: cd SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/ pod install xcodebuild -configuration Debug \ + -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace\ -sdk iphonesimulator \ -destination 'platform=iOS Simulator,OS=latest,name=iPhone 15' \ CODE_SIGNING_ALLOWED=NO \ From f2a440c43366049ab81848dd9c2dc7e6c760e939 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 14:40:25 -0700 Subject: [PATCH 55/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index ab3867470..5b20ae83e 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -47,7 +47,7 @@ jobs: xcodebuild -configuration Debug \ -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace\ -sdk iphonesimulator \ - -destination 'platform=iOS Simulator,OS=latest,name=iPhone 15' \ + -destination "platform='iOS Simulator',OS=latest,name=iPhone 15" \ CODE_SIGNING_ALLOWED=NO \ CODE_SIGNING_REQUIRED=NO \ PROVISIONING_PROFILE_SPECIFIER="" \ From b9136eef840e0afe0f1e3573028ea3b95db4928d Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 14:42:14 -0700 Subject: [PATCH 56/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index 5b20ae83e..586943fce 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -45,7 +45,7 @@ jobs: cd SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/ pod install xcodebuild -configuration Debug \ - -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace\ + -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace \ -sdk iphonesimulator \ -destination "platform='iOS Simulator',OS=latest,name=iPhone 15" \ CODE_SIGNING_ALLOWED=NO \ From 2e2672d125a5132d2ea1134780a2da6d667ed11b Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 14:44:39 -0700 Subject: [PATCH 57/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index 586943fce..e2086fad7 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -47,7 +47,7 @@ jobs: xcodebuild -configuration Debug \ -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace \ -sdk iphonesimulator \ - -destination "platform='iOS Simulator',OS=latest,name=iPhone 15" \ + -destination "platform=iOS Simulator" \ CODE_SIGNING_ALLOWED=NO \ CODE_SIGNING_REQUIRED=NO \ PROVISIONING_PROFILE_SPECIFIER="" \ From 1af50588f4cb36275e9375e096a5e338cfc8d269 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 14:46:47 -0700 Subject: [PATCH 58/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index e2086fad7..c030e9358 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -47,7 +47,7 @@ jobs: xcodebuild -configuration Debug \ -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace \ -sdk iphonesimulator \ - -destination "platform=iOS Simulator" \ + -destination "platform='iOS Simulator'" \ CODE_SIGNING_ALLOWED=NO \ CODE_SIGNING_REQUIRED=NO \ PROVISIONING_PROFILE_SPECIFIER="" \ From b9171318a1381168d5fd1fbfee18ab443b637fc3 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 14:48:38 -0700 Subject: [PATCH 59/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index c030e9358..063d9de70 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -42,12 +42,14 @@ jobs: run: | mkdir -p test-results echo "branch=${{ github.ref }}" >> $GITHUB_OUTPUT + ./scripts/getSimulator + DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest" cd SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/ pod install xcodebuild -configuration Debug \ -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace \ -sdk iphonesimulator \ - -destination "platform='iOS Simulator'" \ + -destination "$DESTINATION" \ CODE_SIGNING_ALLOWED=NO \ CODE_SIGNING_REQUIRED=NO \ PROVISIONING_PROFILE_SPECIFIER="" \ From 7e42ab5909d524883c2a354260273c675a188f78 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Tue, 21 Oct 2025 14:56:40 -0700 Subject: [PATCH 60/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index dd166f245..40965edef 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -15,6 +15,8 @@ C119B01F27ADC85C00E8C7BF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C119B01D27ADC85C00E8C7BF /* Main.storyboard */; }; C119B02127ADC85E00E8C7BF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C119B02027ADC85E00E8C7BF /* Assets.xcassets */; }; C119B02427ADC85E00E8C7BF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */; }; + E72475732EA838A4002F7026 /* BranchSDKTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = E72475722EA838A4002F7026 /* BranchSDKTest.swift */; }; + E72475742EA838A4002F7026 /* BranchSDKTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = E72475722EA838A4002F7026 /* BranchSDKTest.swift */; }; E72CA8872EA19EA500805780 /* TestObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = E72CA8862EA19EA500805780 /* TestObserver.swift */; }; E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */; }; /* End PBXBuildFile section */ @@ -43,6 +45,7 @@ C119B02527ADC85E00E8C7BF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; CB25BCCA817F45C9E229676E /* Pods_iOSReleaseTest.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_iOSReleaseTest.framework; sourceTree = BUILT_PRODUCTS_DIR; }; D347EDD199CA7E6A4A677D5A /* Pods-iOSReleaseTestTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iOSReleaseTestTests.release.xcconfig"; path = "Target Support Files/Pods-iOSReleaseTestTests/Pods-iOSReleaseTestTests.release.xcconfig"; sourceTree = ""; }; + E72475722EA838A4002F7026 /* BranchSDKTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = BranchSDKTest.swift; path = ../Source/iOSReleaseTest/BranchSDKTest.swift; sourceTree = SOURCE_ROOT; }; E72CA8862EA19EA500805780 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; E7939C0129749D3C00B90B82 /* iOSReleaseTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOSReleaseTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSReleaseTestTests.swift; sourceTree = ""; }; @@ -83,6 +86,7 @@ C119B00B27ADC85C00E8C7BF = { isa = PBXGroup; children = ( + E72475722EA838A4002F7026 /* BranchSDKTest.swift */, C119B01627ADC85C00E8C7BF /* iOSReleaseTest */, E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */, C119B01527ADC85C00E8C7BF /* Products */, @@ -330,6 +334,7 @@ files = ( C119B01C27ADC85C00E8C7BF /* ViewController.swift in Sources */, C119B01827ADC85C00E8C7BF /* AppDelegate.swift in Sources */, + E72475732EA838A4002F7026 /* BranchSDKTest.swift in Sources */, C119B01A27ADC85C00E8C7BF /* SceneDelegate.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -338,6 +343,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + E72475742EA838A4002F7026 /* BranchSDKTest.swift in Sources */, E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */, E72CA8872EA19EA500805780 /* TestObserver.swift in Sources */, ); From 83bfdaba853353e086569fb3d5dc0978522f696f Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Wed, 22 Oct 2025 09:02:23 -0700 Subject: [PATCH 61/85] Update iOSReleaseTestTests.swift --- .../Source/IntegrationTests/iOSReleaseTestTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDKIntegrationTestApps/Source/IntegrationTests/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/Source/IntegrationTests/iOSReleaseTestTests.swift index c507cc3cd..e36b8de88 100644 --- a/SDKIntegrationTestApps/Source/IntegrationTests/iOSReleaseTestTests.swift +++ b/SDKIntegrationTestApps/Source/IntegrationTests/iOSReleaseTestTests.swift @@ -62,7 +62,7 @@ final class iOSReleaseTestTests: XCTestCase { print("[Test] Disabling tracking again...") sdk.setCPPLevel(status: BranchAttributionLevel.full) - waitForExpectations(timeout: 30, handler: nil) + waitForExpectations(timeout: 180, handler: nil) print("[Test] testSetTrackingDisabled completed") } From 1182effcba6e654f2d7ce9e26adcb2d9adfc7681 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Wed, 22 Oct 2025 09:02:55 -0700 Subject: [PATCH 62/85] Update iOSReleaseTest.entitlements --- .../Source/iOSReleaseTest/iOSReleaseTest.entitlements | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/SDKIntegrationTestApps/Source/iOSReleaseTest/iOSReleaseTest.entitlements b/SDKIntegrationTestApps/Source/iOSReleaseTest/iOSReleaseTest.entitlements index dc0ea48ed..0c67376eb 100644 --- a/SDKIntegrationTestApps/Source/iOSReleaseTest/iOSReleaseTest.entitlements +++ b/SDKIntegrationTestApps/Source/iOSReleaseTest/iOSReleaseTest.entitlements @@ -1,11 +1,5 @@ - - com.apple.developer.associated-domains - - applinks:nipunreleasetest.app.link - applinks:nipunreleasetest-alternate.app.link - - + From 8ff1327c60d879e5e570f360538f637074a9989d Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Wed, 22 Oct 2025 09:17:41 -0700 Subject: [PATCH 63/85] Updated script and project files. --- .github/workflows/pre-release-qa.yml | 51 ++++++++----------- .../iOSReleaseTest.xcodeproj/project.pbxproj | 20 +++++--- .../iOSReleaseTest.xcodeproj/project.pbxproj | 10 ++-- .../iOSReleaseTest.xcodeproj/project.pbxproj | 40 ++++++++++----- 4 files changed, 66 insertions(+), 55 deletions(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index 063d9de70..2af1d30cc 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -9,35 +9,6 @@ jobs: steps: - name: Check out code uses: actions/checkout@v4 - - name: Install the Apple certificate and provisioning profile - env: - BUILD_CERTIFICATE_BASE64: ${{ secrets.APPLE_DEV_CERT }} - P12_PASSWORD: ${{ secrets.APPLE_DEV_CERT_PASSWORD }} - KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }} - run: | - # create variables - CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12 - KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db - PP_PATH=$RUNNER_TEMP/build_pp.mobileprovision - # import certificate - echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH - - # Create Provisioning Profiles - echo "${{ secrets.BS_DEV_BUILD_PROVISION_PROFILE_BASE64_PART_AA }}" >> part_aa - echo "${{ secrets.BS_DEV_BUILD_PROVISION_PROFILE_BASE64_PART_AB }}" >> part_aa - echo "${{ secrets.BS_DEV_BUILD_PROVISION_PROFILE_BASE64_PART_AC }}" >> part_aa - base64 -D -i part_aa > $PP_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 - - # apply provisioning profile - mkdir -p ~/Library/Developer/Xcode/UserData/Provisioning\ Profiles - cp $PP_PATH ~/Library/Developer/Xcode/UserData/Provisioning\ Profiles/ - name: Install pod, build project and run tests run: | mkdir -p test-results @@ -79,7 +50,16 @@ jobs: cd SDKIntegrationTestApps/iOSReleaseTest-Carthage/ echo "git \"file://${CURR_DIR}\" \"$BRANCH_NAME\" " >> cartfile carthage update --use-xcframeworks - xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" -resultBundlePath ../../test-results/ios-carthage.xcresult + xcodebuild -configuration Debug \ + -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \ + -sdk iphonesimulator \ + -destination "$DESTINATION" \ + CODE_SIGNING_ALLOWED=NO \ + CODE_SIGNING_REQUIRED=NO \ + PROVISIONING_PROFILE_SPECIFIER="" \ + DEVELOPMENT_TEAM="" \ + -resultBundlePath ../../test-results/ios-carthage.xcresult \ + clean test - name: Upload test report uses: actions/upload-artifact@v4 if: always() @@ -98,7 +78,16 @@ jobs: ./scripts/getSimulator DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest" cd SDKIntegrationTestApps/iOSReleaseTest-SPM/ - xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" -resultBundlePath ../../test-results/ios-spm.xcresult + xcodebuild -configuration Debug \ + -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \ + -sdk iphonesimulator \ + -destination "$DESTINATION" \ + CODE_SIGNING_ALLOWED=NO \ + CODE_SIGNING_REQUIRED=NO \ + PROVISIONING_PROFILE_SPECIFIER="" \ + DEVELOPMENT_TEAM="" \ + -resultBundlePath ../../test-results/ios-spm.xcresult \ + clean test - name: Upload test report uses: actions/upload-artifact@v4 if: always() diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj index db1c5ed3e..4ca580932 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj @@ -406,9 +406,11 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 5YP4T32B58; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -421,8 +423,10 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -435,9 +439,11 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = YKPTD52Z6X; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -450,8 +456,10 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index 40965edef..7b61f14bb 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -15,8 +15,7 @@ C119B01F27ADC85C00E8C7BF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C119B01D27ADC85C00E8C7BF /* Main.storyboard */; }; C119B02127ADC85E00E8C7BF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C119B02027ADC85E00E8C7BF /* Assets.xcassets */; }; C119B02427ADC85E00E8C7BF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */; }; - E72475732EA838A4002F7026 /* BranchSDKTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = E72475722EA838A4002F7026 /* BranchSDKTest.swift */; }; - E72475742EA838A4002F7026 /* BranchSDKTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = E72475722EA838A4002F7026 /* BranchSDKTest.swift */; }; + E72475762EA838DB002F7026 /* BranchSDKTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = E72475752EA838DB002F7026 /* BranchSDKTest.swift */; }; E72CA8872EA19EA500805780 /* TestObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = E72CA8862EA19EA500805780 /* TestObserver.swift */; }; E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */; }; /* End PBXBuildFile section */ @@ -45,7 +44,7 @@ C119B02527ADC85E00E8C7BF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; CB25BCCA817F45C9E229676E /* Pods_iOSReleaseTest.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_iOSReleaseTest.framework; sourceTree = BUILT_PRODUCTS_DIR; }; D347EDD199CA7E6A4A677D5A /* Pods-iOSReleaseTestTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iOSReleaseTestTests.release.xcconfig"; path = "Target Support Files/Pods-iOSReleaseTestTests/Pods-iOSReleaseTestTests.release.xcconfig"; sourceTree = ""; }; - E72475722EA838A4002F7026 /* BranchSDKTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = BranchSDKTest.swift; path = ../Source/iOSReleaseTest/BranchSDKTest.swift; sourceTree = SOURCE_ROOT; }; + E72475752EA838DB002F7026 /* BranchSDKTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BranchSDKTest.swift; sourceTree = ""; }; E72CA8862EA19EA500805780 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; E7939C0129749D3C00B90B82 /* iOSReleaseTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOSReleaseTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSReleaseTestTests.swift; sourceTree = ""; }; @@ -86,7 +85,6 @@ C119B00B27ADC85C00E8C7BF = { isa = PBXGroup; children = ( - E72475722EA838A4002F7026 /* BranchSDKTest.swift */, C119B01627ADC85C00E8C7BF /* iOSReleaseTest */, E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */, C119B01527ADC85C00E8C7BF /* Products */, @@ -107,6 +105,7 @@ C119B01627ADC85C00E8C7BF /* iOSReleaseTest */ = { isa = PBXGroup; children = ( + E72475752EA838DB002F7026 /* BranchSDKTest.swift */, C119B01727ADC85C00E8C7BF /* AppDelegate.swift */, C119B01927ADC85C00E8C7BF /* SceneDelegate.swift */, C119B01B27ADC85C00E8C7BF /* ViewController.swift */, @@ -334,7 +333,7 @@ files = ( C119B01C27ADC85C00E8C7BF /* ViewController.swift in Sources */, C119B01827ADC85C00E8C7BF /* AppDelegate.swift in Sources */, - E72475732EA838A4002F7026 /* BranchSDKTest.swift in Sources */, + E72475762EA838DB002F7026 /* BranchSDKTest.swift in Sources */, C119B01A27ADC85C00E8C7BF /* SceneDelegate.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -343,7 +342,6 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - E72475742EA838A4002F7026 /* BranchSDKTest.swift in Sources */, E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */, E72CA8872EA19EA500805780 /* TestObserver.swift in Sources */, ); diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj index e21174fa9..002e3a0e1 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj @@ -406,9 +406,11 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -421,8 +423,10 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -435,9 +439,11 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -450,8 +456,10 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -463,15 +471,19 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; GENERATE_PKGINFO_FILE = NO; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -484,15 +496,19 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = R63EM248DP; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; GENERATE_PKGINFO_FILE = NO; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; From 49ce867a64a0d5b57fcc44686ede93aa5947f2b6 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Wed, 22 Oct 2025 09:46:15 -0700 Subject: [PATCH 64/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj index 86d5a2f01..61b207a8b 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Manual/iOSReleaseTest.xcodeproj/project.pbxproj @@ -408,7 +408,7 @@ CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 5YP4T32B58; + DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -421,7 +421,7 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; @@ -437,7 +437,7 @@ CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = YKPTD52Z6X; + DEVELOPMENT_TEAM = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -450,7 +450,7 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; @@ -469,7 +469,7 @@ GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.SamSolutions.iOSReleaseTestTests; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; @@ -489,7 +489,7 @@ GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.SamSolutions.iOSReleaseTestTests; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; From d22ff3a16d0a3749663d5a1a2c4cd8ef0165b7a2 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Wed, 22 Oct 2025 09:54:34 -0700 Subject: [PATCH 65/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj index 3ce705044..93924977b 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/iOSReleaseTest.xcodeproj/project.pbxproj @@ -406,9 +406,11 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 5YP4T32B58; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -421,8 +423,10 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -435,9 +439,11 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = YKPTD52Z6X; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -450,8 +456,10 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; From a8be33bc16702821da6cbf88d6e3f477d5e6f321 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Wed, 22 Oct 2025 09:58:37 -0700 Subject: [PATCH 66/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index 2af1d30cc..eb8963708 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -107,7 +107,16 @@ jobs: 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" -resultBundlePath ../../test-results/ios-xcframework.xcresult + xcodebuild -configuration Debug \ + -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \ + -sdk iphonesimulator \ + -destination "$DESTINATION" \ + CODE_SIGNING_ALLOWED=NO \ + CODE_SIGNING_REQUIRED=NO \ + PROVISIONING_PROFILE_SPECIFIER="" \ + DEVELOPMENT_TEAM="" \ + -resultBundlePath ../../test-results/ios-xcframework.xcresult \ + clean test - name: Upload test report uses: actions/upload-artifact@v4 if: always() @@ -127,7 +136,16 @@ jobs: 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" -resultBundlePath ../../test-results/ios-static-framework.xcresult + xcodebuild -configuration Debug \ + -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \ + -sdk iphonesimulator \ + -destination "$DESTINATION" \ + CODE_SIGNING_ALLOWED=NO \ + CODE_SIGNING_REQUIRED=NO \ + PROVISIONING_PROFILE_SPECIFIER="" \ + DEVELOPMENT_TEAM="" \ + -resultBundlePath ../../test-results/ios-static-framework.xcresult \ + clean test - name: Upload test report uses: actions/upload-artifact@v4 if: always() From c5af35b7e2ade0472e861c8697b81cf56c0ef028 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Wed, 22 Oct 2025 10:15:39 -0700 Subject: [PATCH 67/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index eb8963708..3b201e608 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -115,7 +115,7 @@ jobs: CODE_SIGNING_REQUIRED=NO \ PROVISIONING_PROFILE_SPECIFIER="" \ DEVELOPMENT_TEAM="" \ - -resultBundlePath ../../test-results/ios-xcframework.xcresult \ + -resultBundlePath ../../test-results/ios-xcframework.xcresult \ clean test - name: Upload test report uses: actions/upload-artifact@v4 @@ -137,7 +137,7 @@ jobs: xcodebuild -scheme static-xcframework cd SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/ xcodebuild -configuration Debug \ - -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \ + -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \ -sdk iphonesimulator \ -destination "$DESTINATION" \ CODE_SIGNING_ALLOWED=NO \ From 5f7ae26c5023e415799c802c26b5abfae14885db Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Wed, 22 Oct 2025 10:16:11 -0700 Subject: [PATCH 68/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index 3b201e608..65d51358e 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -108,7 +108,7 @@ jobs: xcodebuild -scheme xcframework cd SDKIntegrationTestApps/iOSReleaseTest-Manual/ xcodebuild -configuration Debug \ - -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \ + -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \ -sdk iphonesimulator \ -destination "$DESTINATION" \ CODE_SIGNING_ALLOWED=NO \ From 047b4c33552935ff2a1e207b579b2c63cef2c889 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Wed, 22 Oct 2025 10:41:51 -0700 Subject: [PATCH 69/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index 65d51358e..f352ec301 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -143,7 +143,7 @@ jobs: CODE_SIGNING_ALLOWED=NO \ CODE_SIGNING_REQUIRED=NO \ PROVISIONING_PROFILE_SPECIFIER="" \ - DEVELOPMENT_TEAM="" \ + DEVELOPMENT_TEAM="" \ -resultBundlePath ../../test-results/ios-static-framework.xcresult \ clean test - name: Upload test report From 57538112a096241f49d3c912597edede0a27017f Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Wed, 22 Oct 2025 11:04:33 -0700 Subject: [PATCH 70/85] Update pre-release-qa.yml --- .github/workflows/pre-release-qa.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index f352ec301..51335c319 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -5,7 +5,7 @@ on: [push] jobs: verify-cocoapods-iOS: runs-on: macos-latest - timeout-minutes: 20 + timeout-minutes: 30 steps: - name: Check out code uses: actions/checkout@v4 @@ -35,7 +35,7 @@ jobs: path: test-results verify-carthage-iOS: runs-on: macos-latest - timeout-minutes: 20 + timeout-minutes: 30 steps: - name: Check out code uses: actions/checkout@v4 @@ -68,7 +68,7 @@ jobs: path: test-results verify-SPM-iOS: runs-on: macos-latest - timeout-minutes: 20 + timeout-minutes: 30 steps: - name: Check out code uses: actions/checkout@v4 @@ -96,7 +96,7 @@ jobs: path: test-results verify-manually-with-xcframework-iOS: runs-on: macos-latest - timeout-minutes: 20 + timeout-minutes: 30 steps: - name: Check out code uses: actions/checkout@v4 @@ -125,7 +125,7 @@ jobs: path: test-results verify-manually-with-StaticFramework-iOS: runs-on: macos-latest - timeout-minutes: 20 + timeout-minutes: 30 steps: - name: Check out code uses: actions/checkout@v4 @@ -154,7 +154,7 @@ jobs: path: test-results verify-cocoapods-tvOS: runs-on: macos-latest - timeout-minutes: 20 + timeout-minutes: 30 steps: - name: Check out code uses: actions/checkout@v4 @@ -174,7 +174,7 @@ jobs: path: test-results verify-carthage-tvOS: runs-on: macos-latest - timeout-minutes: 20 + timeout-minutes: 30 steps: - name: Check out code uses: actions/checkout@v4 @@ -187,7 +187,7 @@ jobs: echo "Skipping it ... its broken" verify-manually-with-xcframework-tvOS: runs-on: macos-latest - timeout-minutes: 20 + timeout-minutes: 30 steps: - name: Check out code uses: actions/checkout@v4 From 47e5a3eb2ab7dcd6ce6981d6a9e0bc317e6533c8 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Wed, 22 Oct 2025 21:22:51 -0700 Subject: [PATCH 71/85] tvOS App refactoring. --- .../iOSReleaseTestTests.swift | 6 +- .../tvOSReleaseTestTests.swift | 69 +++++++++++++++++++ .../tvOSReleaseTest/BranchSDKTest.swift | 20 ++++++ .../tvOSReleaseTest-Cocoapods/Podfile.lock | 6 +- .../tvOSReleaseTest.xcodeproj/project.pbxproj | 15 +++- .../tvOSReleaseTest/AppDelegate.swift | 40 ----------- .../AccentColor.colorset/Contents.json | 11 --- .../Content.imageset/Contents.json | 16 ----- .../Back.imagestacklayer/Contents.json | 6 -- .../Contents.json | 17 ----- .../Content.imageset/Contents.json | 16 ----- .../Front.imagestacklayer/Contents.json | 6 -- .../Content.imageset/Contents.json | 16 ----- .../Middle.imagestacklayer/Contents.json | 6 -- .../Content.imageset/Contents.json | 24 ------- .../Back.imagestacklayer/Contents.json | 6 -- .../App Icon.imagestack/Contents.json | 17 ----- .../Content.imageset/Contents.json | 24 ------- .../Front.imagestacklayer/Contents.json | 6 -- .../Content.imageset/Contents.json | 24 ------- .../Middle.imagestacklayer/Contents.json | 6 -- .../Contents.json | 32 --------- .../Contents.json | 24 ------- .../Top Shelf Image.imageset/Contents.json | 24 ------- .../Assets.xcassets/Contents.json | 6 -- .../Base.lproj/LaunchScreen.storyboard | 24 ------- .../Base.lproj/Main.storyboard | 28 -------- .../tvOSReleaseTest/ViewController.swift | 19 ----- .../tvOSReleaseTestTests.swift | 42 ----------- 29 files changed, 107 insertions(+), 449 deletions(-) create mode 100644 SDKIntegrationTestApps/Source/IntegrationTests/tvOSReleaseTestTests.swift create mode 100644 SDKIntegrationTestApps/Source/tvOSReleaseTest/BranchSDKTest.swift delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/AppDelegate.swift delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/Main.storyboard delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/ViewController.swift delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTestTests/tvOSReleaseTestTests.swift diff --git a/SDKIntegrationTestApps/Source/IntegrationTests/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/Source/IntegrationTests/iOSReleaseTestTests.swift index e36b8de88..54e988d90 100644 --- a/SDKIntegrationTestApps/Source/IntegrationTests/iOSReleaseTestTests.swift +++ b/SDKIntegrationTestApps/Source/IntegrationTests/iOSReleaseTestTests.swift @@ -42,8 +42,8 @@ final class iOSReleaseTestTests: XCTestCase { print("[Test] Dummy test completed") } - func testSetTrackingDisabled() throws { - print("[Test] Starting testSetTrackingDisabled") + func testInitSessionAndSetCPPLevel() throws { + print("[Test] Starting testInitSessionAndSetCPPLevel") let expectation = expectation(description: "InitSession should complete.") @@ -63,7 +63,7 @@ final class iOSReleaseTestTests: XCTestCase { sdk.setCPPLevel(status: BranchAttributionLevel.full) waitForExpectations(timeout: 180, handler: nil) - print("[Test] testSetTrackingDisabled completed") + print("[Test] testInitSessionAndSetCPPLevel completed") } } diff --git a/SDKIntegrationTestApps/Source/IntegrationTests/tvOSReleaseTestTests.swift b/SDKIntegrationTestApps/Source/IntegrationTests/tvOSReleaseTestTests.swift new file mode 100644 index 000000000..363d7fc11 --- /dev/null +++ b/SDKIntegrationTestApps/Source/IntegrationTests/tvOSReleaseTestTests.swift @@ -0,0 +1,69 @@ +// +// tvOSReleaseTestTests.swift +// tvOSReleaseTestTests +// +// Created by Nidhi Dixit on 1/30/23. +// + +import XCTest +@testable import tvOSReleaseTest +@testable import BranchSDK + +final class tvOSReleaseTestTests: XCTestCase { + + private static var testObserver: TestObserver? + + override class func setUp() { + super.setUp() + testObserver = TestObserver() + XCTestObservationCenter.shared.addTestObserver(testObserver!) + print("[TestSetup] Test observer registered for enhanced GitHub Actions logging") + } + + override class func tearDown() { + if let observer = testObserver { + XCTestObservationCenter.shared.removeTestObserver(observer) + testObserver = nil + } + super.tearDown() + } + + override func setUpWithError() throws { + print("[Setup] Setting up test: \(self.name)") + } + + override func tearDownWithError() throws { + print("[Teardown] Cleaning up test: \(self.name)") + } + + func testDummy() throws { + print("[Test] Running dummy test") + XCTAssertTrue(true, "Dummy test should always pass") + print("[Test] Dummy test completed") + } + + func testInitSessionAndSetCPPLevel() throws { + print("[Test] Starting testInitSessionAndSetCPPLevel") + + let expectation = expectation(description: "InitSession should complete.") + + let sdk = BranchSDKTest(){ params, error in + print(params as? [String: AnyObject] ?? {}) + expectation.fulfill() + } + print("Setting CPP Level to none.") + sdk.setCPPLevel(status: BranchAttributionLevel.none) + + let cppLevel = BNCPreferenceHelper.sharedInstance().attributionLevel + print("[Test] CPP Level: \(String(describing: cppLevel))") + + XCTAssertTrue(cppLevel!.isEqual(to: BranchAttributionLevel.none.rawValue) , "Tracking should be disabled (true)") + + print("[Test] Disabling tracking again...") + sdk.setCPPLevel(status: BranchAttributionLevel.full) + + waitForExpectations(timeout: 180, handler: nil) + print("[Test] testInitSessionAndSetCPPLevel completed") + } + +} diff --git a/SDKIntegrationTestApps/Source/tvOSReleaseTest/BranchSDKTest.swift b/SDKIntegrationTestApps/Source/tvOSReleaseTest/BranchSDKTest.swift new file mode 100644 index 000000000..b61bd4a94 --- /dev/null +++ b/SDKIntegrationTestApps/Source/tvOSReleaseTest/BranchSDKTest.swift @@ -0,0 +1,20 @@ +// +// BranchSDKTest.swift +// iOSReleaseTest +// +// Created by Nidhi Dixit on 1/31/23. +// + +import Foundation +import BranchSDK + +class BranchSDKTest { + + init(callback: @escaping ([AnyHashable: Any]?, Error?) -> Void) { + Branch.getInstance().initSession(launchOptions:nil, andRegisterDeepLinkHandler: callback) + } + + func setCPPLevel( status: BranchAttributionLevel) { + Branch.getInstance().setConsumerProtectionAttributionLevel(status) + } +} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/Podfile.lock b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/Podfile.lock index 1f3ad49d7..f60ad1683 100644 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/Podfile.lock +++ b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/Podfile.lock @@ -1,5 +1,5 @@ PODS: - - BranchSDK (2.0.0) + - BranchSDK (3.13.3) DEPENDENCIES: - BranchSDK (from `./../../`) @@ -9,8 +9,8 @@ EXTERNAL SOURCES: :path: "./../../" SPEC CHECKSUMS: - BranchSDK: dbecf9d1da931c2cf57393b233347b3587d11acb + BranchSDK: 19a6e97115350db916a57823c7f6ed96d1e70e46 PODFILE CHECKSUM: 03b123b37ef62488cc2febccc7e8d47e6a8d0768 -COCOAPODS: 1.11.2 +COCOAPODS: 1.15.2 diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest.xcodeproj/project.pbxproj index a434eb1c1..d4285956f 100644 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest.xcodeproj/project.pbxproj @@ -8,6 +8,8 @@ /* Begin PBXBuildFile section */ 8646FB0D61425894BD23891B /* Pods_tvOSReleaseTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 13D7AAB0876D475216B5B320 /* Pods_tvOSReleaseTest.framework */; }; + E7173FF42EA9E2DE0012E12F /* BranchSDKTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7173FF32EA9E2DE0012E12F /* BranchSDKTest.swift */; }; + E7173FF62EA9E3CA0012E12F /* TestObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7173FF52EA9E3CA0012E12F /* TestObserver.swift */; }; E7A0C2CD2988F7640024497D /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7A0C2CC2988F7640024497D /* AppDelegate.swift */; }; E7A0C2CF2988F7640024497D /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7A0C2CE2988F7640024497D /* ViewController.swift */; }; E7A0C2D22988F7640024497D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E7A0C2D02988F7640024497D /* Main.storyboard */; }; @@ -34,6 +36,8 @@ 24B75FD396A352DF8FF7ED5F /* Pods-tvOSReleaseTestTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-tvOSReleaseTestTests.debug.xcconfig"; path = "Target Support Files/Pods-tvOSReleaseTestTests/Pods-tvOSReleaseTestTests.debug.xcconfig"; sourceTree = ""; }; 43F45CA69702C4C48078FB0B /* Pods-tvOSReleaseTest.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-tvOSReleaseTest.release.xcconfig"; path = "Target Support Files/Pods-tvOSReleaseTest/Pods-tvOSReleaseTest.release.xcconfig"; sourceTree = ""; }; 794220B24C3AAB292ACE6756 /* Pods-tvOSReleaseTest.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-tvOSReleaseTest.debug.xcconfig"; path = "Target Support Files/Pods-tvOSReleaseTest/Pods-tvOSReleaseTest.debug.xcconfig"; sourceTree = ""; }; + E7173FF32EA9E2DE0012E12F /* BranchSDKTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BranchSDKTest.swift; sourceTree = ""; }; + E7173FF52EA9E3CA0012E12F /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = TestObserver.swift; path = ../Source/IntegrationTests/TestObserver.swift; sourceTree = SOURCE_ROOT; }; E7A0C2C92988F7640024497D /* tvOSReleaseTest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = tvOSReleaseTest.app; sourceTree = BUILT_PRODUCTS_DIR; }; E7A0C2CC2988F7640024497D /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; E7A0C2CE2988F7640024497D /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; @@ -81,7 +85,6 @@ 24B75FD396A352DF8FF7ED5F /* Pods-tvOSReleaseTestTests.debug.xcconfig */, 1F81BFCCB63B1B7E8E4CA1FD /* Pods-tvOSReleaseTestTests.release.xcconfig */, ); - name = Pods; path = Pods; sourceTree = ""; }; @@ -110,19 +113,23 @@ children = ( E7A0C2CC2988F7640024497D /* AppDelegate.swift */, E7A0C2CE2988F7640024497D /* ViewController.swift */, + E7173FF32EA9E2DE0012E12F /* BranchSDKTest.swift */, E7A0C2D02988F7640024497D /* Main.storyboard */, E7A0C2D32988F7650024497D /* Assets.xcassets */, E7A0C2D52988F7650024497D /* LaunchScreen.storyboard */, ); - path = tvOSReleaseTest; + name = tvOSReleaseTest; + path = ../Source/tvOSReleaseTest; sourceTree = ""; }; E7A0C2DF2988F7660024497D /* tvOSReleaseTestTests */ = { isa = PBXGroup; children = ( E7A0C2E02988F7660024497D /* tvOSReleaseTestTests.swift */, + E7173FF52EA9E3CA0012E12F /* TestObserver.swift */, ); - path = tvOSReleaseTestTests; + name = tvOSReleaseTestTests; + path = ../Source/IntegrationTests; sourceTree = ""; }; /* End PBXGroup section */ @@ -311,6 +318,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + E7173FF42EA9E2DE0012E12F /* BranchSDKTest.swift in Sources */, E7A0C2CF2988F7640024497D /* ViewController.swift in Sources */, E7A0C2CD2988F7640024497D /* AppDelegate.swift in Sources */, ); @@ -321,6 +329,7 @@ buildActionMask = 2147483647; files = ( E7A0C2E12988F7660024497D /* tvOSReleaseTestTests.swift in Sources */, + E7173FF62EA9E3CA0012E12F /* TestObserver.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/AppDelegate.swift b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/AppDelegate.swift deleted file mode 100644 index 9c632aa13..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/AppDelegate.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// AppDelegate.swift -// tvOSReleaseTest -// -// Created by Nidhi Dixit on 1/30/23. -// - -import UIKit - -@main -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - // Override point for customization after application launch. - return true - } - - func applicationWillResignActive(_ application: UIApplication) { - // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. - } - - func applicationDidEnterBackground(_ application: UIApplication) { - // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. - } - - func applicationWillEnterForeground(_ application: UIApplication) { - // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. - } - - func applicationDidBecomeActive(_ application: UIApplication) { - // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. - } - - -} - diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json deleted file mode 100644 index eb8789700..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors" : [ - { - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 795cce172..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json deleted file mode 100644 index de59d885a..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - }, - "layers" : [ - { - "filename" : "Front.imagestacklayer" - }, - { - "filename" : "Middle.imagestacklayer" - }, - { - "filename" : "Back.imagestacklayer" - } - ] -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 795cce172..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 795cce172..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index b65f0cddc..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - }, - { - "idiom" : "tv-marketing", - "scale" : "1x" - }, - { - "idiom" : "tv-marketing", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json deleted file mode 100644 index de59d885a..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - }, - "layers" : [ - { - "filename" : "Front.imagestacklayer" - }, - { - "filename" : "Middle.imagestacklayer" - }, - { - "filename" : "Back.imagestacklayer" - } - ] -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index b65f0cddc..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - }, - { - "idiom" : "tv-marketing", - "scale" : "1x" - }, - { - "idiom" : "tv-marketing", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index b65f0cddc..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - }, - { - "idiom" : "tv-marketing", - "scale" : "1x" - }, - { - "idiom" : "tv-marketing", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json deleted file mode 100644 index f47ba43da..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "assets" : [ - { - "filename" : "App Icon - App Store.imagestack", - "idiom" : "tv", - "role" : "primary-app-icon", - "size" : "1280x768" - }, - { - "filename" : "App Icon.imagestack", - "idiom" : "tv", - "role" : "primary-app-icon", - "size" : "400x240" - }, - { - "filename" : "Top Shelf Image Wide.imageset", - "idiom" : "tv", - "role" : "top-shelf-image-wide", - "size" : "2320x720" - }, - { - "filename" : "Top Shelf Image.imageset", - "idiom" : "tv", - "role" : "top-shelf-image", - "size" : "1920x720" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json deleted file mode 100644 index b65f0cddc..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - }, - { - "idiom" : "tv-marketing", - "scale" : "1x" - }, - { - "idiom" : "tv-marketing", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json deleted file mode 100644 index b65f0cddc..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - }, - { - "idiom" : "tv-marketing", - "scale" : "1x" - }, - { - "idiom" : "tv-marketing", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index 660ba53de..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/Main.storyboard b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/Main.storyboard deleted file mode 100644 index c277013f3..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/Main.storyboard +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/ViewController.swift b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/ViewController.swift deleted file mode 100644 index 831f453a6..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTest/ViewController.swift +++ /dev/null @@ -1,19 +0,0 @@ -// -// ViewController.swift -// tvOSReleaseTest -// -// Created by Nidhi Dixit on 1/30/23. -// - -import UIKit - -class ViewController: UIViewController { - - override func viewDidLoad() { - super.viewDidLoad() - // Do any additional setup after loading the view. - } - - -} - diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTestTests/tvOSReleaseTestTests.swift b/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTestTests/tvOSReleaseTestTests.swift deleted file mode 100644 index e8f073a0f..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/tvOSReleaseTestTests/tvOSReleaseTestTests.swift +++ /dev/null @@ -1,42 +0,0 @@ -// -// tvOSReleaseTestTests.swift -// tvOSReleaseTestTests -// -// Created by Nidhi Dixit on 1/30/23. -// - -import XCTest -import BranchSDK - -@testable import tvOSReleaseTest - -final class tvOSReleaseTestTests: XCTestCase { - - override func setUpWithError() throws { - // Put setup code here. This method is called before the invocation of each test method in the class. - } - - override func tearDownWithError() throws { - // Put teardown code here. This method is called after the invocation of each test method in the class. - } - - func testSetTrackingDisabled() throws { - Branch.getInstance().enableLogging() - Branch.getInstance().initSession(launchOptions: nil) { (params, error) in - print(params as? [String: AnyObject] ?? {}) - } - Branch.setTrackingDisabled(false) - let x = Branch.trackingDisabled() - assert( x == false) - - } - - - func testPerformanceExample() throws { - // This is an example of a performance test case. - self.measure { - // Put the code you want to measure the time of here. - } - } - -} From 42740f6fb6ea5844751c3b3a174569e9cf9dc5fd Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Wed, 22 Oct 2025 21:25:40 -0700 Subject: [PATCH 72/85] tvOS App Refactor for manual frame linking. --- .../tvOSReleaseTest.xcodeproj/project.pbxproj | 10 ++++- .../tvOSReleaseTest/AppDelegate.swift | 40 ------------------- .../AccentColor.colorset/Contents.json | 11 ----- .../Content.imageset/Contents.json | 16 -------- .../Back.imagestacklayer/Contents.json | 6 --- .../Contents.json | 17 -------- .../Content.imageset/Contents.json | 16 -------- .../Front.imagestacklayer/Contents.json | 6 --- .../Content.imageset/Contents.json | 16 -------- .../Middle.imagestacklayer/Contents.json | 6 --- .../Content.imageset/Contents.json | 24 ----------- .../Back.imagestacklayer/Contents.json | 6 --- .../App Icon.imagestack/Contents.json | 17 -------- .../Content.imageset/Contents.json | 24 ----------- .../Front.imagestacklayer/Contents.json | 6 --- .../Content.imageset/Contents.json | 24 ----------- .../Middle.imagestacklayer/Contents.json | 6 --- .../Contents.json | 32 --------------- .../Contents.json | 24 ----------- .../Top Shelf Image.imageset/Contents.json | 24 ----------- .../Assets.xcassets/Contents.json | 6 --- .../Base.lproj/LaunchScreen.storyboard | 24 ----------- .../Base.lproj/Main.storyboard | 28 ------------- .../tvOSReleaseTest/BranchSDKTest.swift | 27 ------------- .../tvOSReleaseTest/ViewController.swift | 19 --------- .../tvOSReleaseTestTests.swift | 39 ------------------ 26 files changed, 8 insertions(+), 466 deletions(-) delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/AppDelegate.swift delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/Contents.json delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Base.lproj/Main.storyboard delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/BranchSDKTest.swift delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/ViewController.swift delete mode 100644 SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTestTests/tvOSReleaseTestTests.swift diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest.xcodeproj/project.pbxproj index 47ff38311..2a04b0610 100644 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest.xcodeproj/project.pbxproj @@ -7,6 +7,7 @@ objects = { /* Begin PBXBuildFile section */ + E71091A62EA9E5A700D4DD74 /* TestObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = E71091A52EA9E5A700D4DD74 /* TestObserver.swift */; }; E7A0C2CD2988F7640024497D /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7A0C2CC2988F7640024497D /* AppDelegate.swift */; }; E7A0C2CF2988F7640024497D /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7A0C2CE2988F7640024497D /* ViewController.swift */; }; E7A0C2D22988F7640024497D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E7A0C2D02988F7640024497D /* Main.storyboard */; }; @@ -43,6 +44,7 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + E71091A52EA9E5A700D4DD74 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; E7A0C2C92988F7640024497D /* tvOSReleaseTest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = tvOSReleaseTest.app; sourceTree = BUILT_PRODUCTS_DIR; }; E7A0C2CC2988F7640024497D /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; E7A0C2CE2988F7640024497D /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; @@ -103,15 +105,18 @@ E7A0C2D52988F7650024497D /* LaunchScreen.storyboard */, E7A0C3082989B0320024497D /* BranchSDKTest.swift */, ); - path = tvOSReleaseTest; + name = tvOSReleaseTest; + path = ../Source/tvOSReleaseTest; sourceTree = ""; }; E7A0C2DF2988F7660024497D /* tvOSReleaseTestTests */ = { isa = PBXGroup; children = ( + E71091A52EA9E5A700D4DD74 /* TestObserver.swift */, E7A0C2E02988F7660024497D /* tvOSReleaseTestTests.swift */, ); - path = tvOSReleaseTestTests; + name = tvOSReleaseTestTests; + path = ../Source/IntegrationTests; sourceTree = ""; }; E7A0C30A2989B2590024497D /* Frameworks */ = { @@ -235,6 +240,7 @@ buildActionMask = 2147483647; files = ( E7A0C2E12988F7660024497D /* tvOSReleaseTestTests.swift in Sources */, + E71091A62EA9E5A700D4DD74 /* TestObserver.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/AppDelegate.swift b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/AppDelegate.swift deleted file mode 100644 index 9c632aa13..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/AppDelegate.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// AppDelegate.swift -// tvOSReleaseTest -// -// Created by Nidhi Dixit on 1/30/23. -// - -import UIKit - -@main -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - // Override point for customization after application launch. - return true - } - - func applicationWillResignActive(_ application: UIApplication) { - // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. - } - - func applicationDidEnterBackground(_ application: UIApplication) { - // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. - } - - func applicationWillEnterForeground(_ application: UIApplication) { - // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. - } - - func applicationDidBecomeActive(_ application: UIApplication) { - // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. - } - - -} - diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json deleted file mode 100644 index eb8789700..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors" : [ - { - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 795cce172..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json deleted file mode 100644 index de59d885a..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - }, - "layers" : [ - { - "filename" : "Front.imagestacklayer" - }, - { - "filename" : "Middle.imagestacklayer" - }, - { - "filename" : "Back.imagestacklayer" - } - ] -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 795cce172..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 795cce172..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index b65f0cddc..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - }, - { - "idiom" : "tv-marketing", - "scale" : "1x" - }, - { - "idiom" : "tv-marketing", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json deleted file mode 100644 index de59d885a..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - }, - "layers" : [ - { - "filename" : "Front.imagestacklayer" - }, - { - "filename" : "Middle.imagestacklayer" - }, - { - "filename" : "Back.imagestacklayer" - } - ] -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index b65f0cddc..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - }, - { - "idiom" : "tv-marketing", - "scale" : "1x" - }, - { - "idiom" : "tv-marketing", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index b65f0cddc..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - }, - { - "idiom" : "tv-marketing", - "scale" : "1x" - }, - { - "idiom" : "tv-marketing", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json deleted file mode 100644 index f47ba43da..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "assets" : [ - { - "filename" : "App Icon - App Store.imagestack", - "idiom" : "tv", - "role" : "primary-app-icon", - "size" : "1280x768" - }, - { - "filename" : "App Icon.imagestack", - "idiom" : "tv", - "role" : "primary-app-icon", - "size" : "400x240" - }, - { - "filename" : "Top Shelf Image Wide.imageset", - "idiom" : "tv", - "role" : "top-shelf-image-wide", - "size" : "2320x720" - }, - { - "filename" : "Top Shelf Image.imageset", - "idiom" : "tv", - "role" : "top-shelf-image", - "size" : "1920x720" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json deleted file mode 100644 index b65f0cddc..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - }, - { - "idiom" : "tv-marketing", - "scale" : "1x" - }, - { - "idiom" : "tv-marketing", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json deleted file mode 100644 index b65f0cddc..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - }, - { - "idiom" : "tv-marketing", - "scale" : "1x" - }, - { - "idiom" : "tv-marketing", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/Contents.json b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index 660ba53de..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Base.lproj/Main.storyboard b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Base.lproj/Main.storyboard deleted file mode 100644 index c277013f3..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/Base.lproj/Main.storyboard +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/BranchSDKTest.swift b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/BranchSDKTest.swift deleted file mode 100644 index 6646a9efb..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/BranchSDKTest.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// File.swift -// tvOSReleaseTest -// -// Created by Nidhi Dixit on 1/31/23. -// - -import Foundation -import BranchSDK - -class BranchSDKTest { - - init() { - Branch.getInstance().enableLogging() - Branch.getInstance().initSession(launchOptions: nil) { (params, error) in - print(params as? [String: AnyObject] ?? {}) - } - } - - func disableTracking( status: Bool) { - Branch.setTrackingDisabled(status) - } - - func trackingStatus() -> Bool { - return Branch.trackingDisabled() - } -} diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/ViewController.swift b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/ViewController.swift deleted file mode 100644 index 831f453a6..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTest/ViewController.swift +++ /dev/null @@ -1,19 +0,0 @@ -// -// ViewController.swift -// tvOSReleaseTest -// -// Created by Nidhi Dixit on 1/30/23. -// - -import UIKit - -class ViewController: UIViewController { - - override func viewDidLoad() { - super.viewDidLoad() - // Do any additional setup after loading the view. - } - - -} - diff --git a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTestTests/tvOSReleaseTestTests.swift b/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTestTests/tvOSReleaseTestTests.swift deleted file mode 100644 index 85ac3b5db..000000000 --- a/SDKIntegrationTestApps/tvOSReleaseTest-Manual/tvOSReleaseTestTests/tvOSReleaseTestTests.swift +++ /dev/null @@ -1,39 +0,0 @@ -// -// tvOSReleaseTestTests.swift -// tvOSReleaseTestTests -// -// Created by Nidhi Dixit on 1/30/23. -// - -import XCTest -@testable import tvOSReleaseTest - -@testable import tvOSReleaseTest - -final class tvOSReleaseTestTests: XCTestCase { - - override func setUpWithError() throws { - // Put setup code here. This method is called before the invocation of each test method in the class. - } - - override func tearDownWithError() throws { - // Put teardown code here. This method is called after the invocation of each test method in the class. - } - - func testSetTrackingDisabled() throws { - let sdk = BranchSDKTest() - - sdk.disableTracking(status: false) - let x = sdk.trackingStatus() - assert( x == false) - } - - - func testPerformanceExample() throws { - // This is an example of a performance test case. - self.measure { - // Put the code you want to measure the time of here. - } - } - -} From b3847095157ea0367f44f23df86ea7384ac74e71 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Wed, 22 Oct 2025 21:29:19 -0700 Subject: [PATCH 73/85] PostRelease SPM Refactoring. --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 10 +- .../iOSReleaseTest/AppDelegate.swift | 38 ------- .../AccentColor.colorset/Contents.json | 11 --- .../AppIcon.appiconset/Contents.json | 98 ------------------- .../Assets.xcassets/Contents.json | 6 -- .../Base.lproj/LaunchScreen.storyboard | 25 ----- .../iOSReleaseTest/Base.lproj/Main.storyboard | 24 ----- .../iOSReleaseTest/BranchSDKTest.swift | 27 ----- .../iOSReleaseTest/Info.plist | 50 ---------- .../iOSReleaseTest/SceneDelegate.swift | 52 ---------- .../iOSReleaseTest/ViewController.swift | 18 ---- .../iOSReleaseTest.entitlements | 11 --- .../iOSReleaseTestTests.swift | 38 ------- 13 files changed, 8 insertions(+), 400 deletions(-) delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/AppDelegate.swift delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Base.lproj/Main.storyboard delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/BranchSDKTest.swift delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Info.plist delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/SceneDelegate.swift delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/ViewController.swift delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/iOSReleaseTest.entitlements delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTestTests/iOSReleaseTestTests.swift diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj index c9f85cc47..2f938e9a3 100644 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj @@ -14,6 +14,7 @@ C119B02127ADC85E00E8C7BF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C119B02027ADC85E00E8C7BF /* Assets.xcassets */; }; C119B02427ADC85E00E8C7BF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */; }; C119B02C27ADC92A00E8C7BF /* iOSReleaseTest.entitlements in Resources */ = {isa = PBXBuildFile; fileRef = C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */; }; + E71091A82EA9E66F00D4DD74 /* TestObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = E71091A72EA9E66F00D4DD74 /* TestObserver.swift */; }; E71D372129A589AA00A0FDEF /* BranchSDK in Frameworks */ = {isa = PBXBuildFile; productRef = E71D372029A589AA00A0FDEF /* BranchSDK */; }; E71D372329A589C400A0FDEF /* BranchSDK in Frameworks */ = {isa = PBXBuildFile; productRef = E71D372229A589C400A0FDEF /* BranchSDK */; }; E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */; }; @@ -40,6 +41,7 @@ C119B02327ADC85E00E8C7BF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; C119B02527ADC85E00E8C7BF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = iOSReleaseTest.entitlements; sourceTree = ""; }; + E71091A72EA9E66F00D4DD74 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; E7939C0129749D3C00B90B82 /* iOSReleaseTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOSReleaseTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSReleaseTestTests.swift; sourceTree = ""; }; E7A0C3042989AB200024497D /* BranchSDKTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BranchSDKTest.swift; sourceTree = ""; }; @@ -97,7 +99,8 @@ C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */, C119B02527ADC85E00E8C7BF /* Info.plist */, ); - path = iOSReleaseTest; + name = iOSReleaseTest; + path = ../Source/iOSReleaseTest; sourceTree = ""; }; E73878F02988A44100BD3981 /* Frameworks */ = { @@ -110,9 +113,11 @@ E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */ = { isa = PBXGroup; children = ( + E71091A72EA9E66F00D4DD74 /* TestObserver.swift */, E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */, ); - path = iOSReleaseTestTests; + name = iOSReleaseTestTests; + path = ../Source/IntegrationTests; sourceTree = ""; }; /* End PBXGroup section */ @@ -238,6 +243,7 @@ buildActionMask = 2147483647; files = ( E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */, + E71091A82EA9E66F00D4DD74 /* TestObserver.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/AppDelegate.swift b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/AppDelegate.swift deleted file mode 100644 index c5cc155fc..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/AppDelegate.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// AppDelegate.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit - -@main -class AppDelegate: UIResponder, UIApplicationDelegate { - - - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - // Override point for customization after application launch. - - - return true - } - - // MARK: UISceneSession Lifecycle - - func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { - // Called when a new scene session is being created. - // Use this method to select a configuration to create the new scene with. - return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) - } - - func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { - // Called when the user discards a scene session. - // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. - // Use this method to release any resources that were specific to the discarded scenes, as they will not return. - } - - -} - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json deleted file mode 100644 index eb8789700..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors" : [ - { - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 9221b9bb1..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "60x60" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "60x60" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "83.5x83.5" - }, - { - "idiom" : "ios-marketing", - "scale" : "1x", - "size" : "1024x1024" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/Contents.json b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index 865e9329f..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Base.lproj/Main.storyboard b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Base.lproj/Main.storyboard deleted file mode 100644 index 25a763858..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Base.lproj/Main.storyboard +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/BranchSDKTest.swift b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/BranchSDKTest.swift deleted file mode 100644 index 7c1e94d7e..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/BranchSDKTest.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// BranchSDKTest.swift -// iOSReleaseTest -// -// Created by Nidhi Dixit on 1/31/23. -// - -import Foundation -import BranchSDK - -class BranchSDKTest { - - init() { - Branch.getInstance().enableLogging() - Branch.getInstance().initSession(launchOptions: nil) { (params, error) in - print(params as? [String: AnyObject] ?? {}) - } - } - - func disableTracking( status: Bool) { - Branch.setTrackingDisabled(status) - } - - func trackingStatus() -> Bool { - return Branch.trackingDisabled() - } -} diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Info.plist b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Info.plist deleted file mode 100644 index 41b76ac40..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Info.plist +++ /dev/null @@ -1,50 +0,0 @@ - - - - - CFBundleURLTypes - - - CFBundleTypeRole - Editor - CFBundleURLName - com.NipunSingh.iOSReleaseTest - CFBundleURLSchemes - - iOSReleaseTest - - - - UIApplicationSceneManifest - - UIApplicationSupportsMultipleScenes - - UISceneConfigurations - - UIWindowSceneSessionRoleApplication - - - UISceneConfigurationName - Default Configuration - UISceneDelegateClassName - $(PRODUCT_MODULE_NAME).SceneDelegate - UISceneStoryboardFile - Main - - - - - branch_key - - live - key_live_ok7NoVhyIh1llbtOW6sfHpbnxBlJjiDp - test - secret_live_NktIf5YHh5us8Hbm7CbyUCPmqwtyqz9M - - branch_universal_link_domains - - nipunreleasetest.app.link - nipunreleasetest-alternate.app.link - - - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/SceneDelegate.swift b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/SceneDelegate.swift deleted file mode 100644 index 0355d0420..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/SceneDelegate.swift +++ /dev/null @@ -1,52 +0,0 @@ -// -// SceneDelegate.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit - -class SceneDelegate: UIResponder, UIWindowSceneDelegate { - - var window: UIWindow? - - - func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { - // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. - // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. - // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). - guard let _ = (scene as? UIWindowScene) else { return } - } - - func sceneDidDisconnect(_ scene: UIScene) { - // Called as the scene is being released by the system. - // This occurs shortly after the scene enters the background, or when its session is discarded. - // Release any resources associated with this scene that can be re-created the next time the scene connects. - // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). - } - - func sceneDidBecomeActive(_ scene: UIScene) { - // Called when the scene has moved from an inactive state to an active state. - // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. - } - - func sceneWillResignActive(_ scene: UIScene) { - // Called when the scene will move from an active state to an inactive state. - // This may occur due to temporary interruptions (ex. an incoming phone call). - } - - func sceneWillEnterForeground(_ scene: UIScene) { - // Called as the scene transitions from the background to the foreground. - // Use this method to undo the changes made on entering the background. - } - - func sceneDidEnterBackground(_ scene: UIScene) { - // Called as the scene transitions from the foreground to the background. - // Use this method to save data, release shared resources, and store enough scene-specific state information - // to restore the scene back to its current state. - } - - -} - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/ViewController.swift b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/ViewController.swift deleted file mode 100644 index 48ad1746d..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/ViewController.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ViewController.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit - -class ViewController: UIViewController { - - override func viewDidLoad() { - super.viewDidLoad() - } - - -} - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/iOSReleaseTest.entitlements b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/iOSReleaseTest.entitlements deleted file mode 100644 index dc0ea48ed..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/iOSReleaseTest.entitlements +++ /dev/null @@ -1,11 +0,0 @@ - - - - - com.apple.developer.associated-domains - - applinks:nipunreleasetest.app.link - applinks:nipunreleasetest-alternate.app.link - - - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTestTests/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTestTests/iOSReleaseTestTests.swift deleted file mode 100644 index 789d8f9d4..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTestTests/iOSReleaseTestTests.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// iOSReleaseTestTests.swift -// iOSReleaseTestTests -// -// Created by Nidhi Dixit on 1/15/23. -// - -import XCTest -@testable import iOSReleaseTest - -final class iOSReleaseTestTests: XCTestCase { - - override func setUpWithError() throws { - // Put setup code here. This method is called before the invocation of each test method in the class. - } - - override func tearDownWithError() throws { - // Put teardown code here. This method is called after the invocation of each test method in the class. - } - - func testSetTrackingDisabled() throws { - - let sdk = BranchSDKTest() - - sdk.disableTracking(status: true) - let x = sdk.trackingStatus() - assert( x == true) - sdk.disableTracking(status: true) - } - - func testPerformanceExample() throws { - // This is an example of a performance test case. - measure { - // Put the code you want to measure the time of here. - } - } - -} From eb8d0806b9f0206f5bb8521603bb9398c3d09b06 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Wed, 22 Oct 2025 23:35:45 -0700 Subject: [PATCH 74/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj index 2f938e9a3..93fb83e25 100644 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj @@ -398,10 +398,12 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 5YP4T32B58; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = iOSReleaseTest/Info.plist; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -414,8 +416,10 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -427,10 +431,12 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = YKPTD52Z6X; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = iOSReleaseTest/Info.plist; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -443,8 +449,10 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; From f83c8a6f268583e49d07abc62e299f56bf34b715 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Wed, 22 Oct 2025 23:42:24 -0700 Subject: [PATCH 75/85] Update project.pbxproj --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj index 93fb83e25..20818b618 100644 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj @@ -405,7 +405,7 @@ DEVELOPMENT_TEAM = ""; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iOSReleaseTest/Info.plist; + INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; @@ -438,7 +438,7 @@ DEVELOPMENT_TEAM = ""; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iOSReleaseTest/Info.plist; + INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; From fbc8de089ee922b804929e7b84725cb54cfa8574 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Wed, 22 Oct 2025 23:58:33 -0700 Subject: [PATCH 76/85] Refactoring Post Release test apps --- .../iOSReleaseTest.xcodeproj/project.pbxproj | 36 ++++--- .../iOSReleaseTest/AppDelegate.swift | 38 ------- .../AccentColor.colorset/Contents.json | 11 --- .../AppIcon.appiconset/Contents.json | 98 ------------------- .../Assets.xcassets/Contents.json | 6 -- .../Base.lproj/LaunchScreen.storyboard | 25 ----- .../iOSReleaseTest/Base.lproj/Main.storyboard | 24 ----- .../iOSReleaseTest/Info.plist | 50 ---------- .../iOSReleaseTest/SceneDelegate.swift | 52 ---------- .../iOSReleaseTest/ViewController.swift | 20 ---- .../iOSReleaseTest.entitlements | 11 --- .../iOSReleaseTestTests.swift | 41 -------- .../iOSReleaseTest.xcodeproj/project.pbxproj | 54 +++++++--- .../iOSReleaseTest/AppDelegate.swift | 38 ------- .../AccentColor.colorset/Contents.json | 11 --- .../AppIcon.appiconset/Contents.json | 98 ------------------- .../Assets.xcassets/Contents.json | 6 -- .../Base.lproj/LaunchScreen.storyboard | 25 ----- .../iOSReleaseTest/Base.lproj/Main.storyboard | 24 ----- .../iOSReleaseTest/Info.plist | 50 ---------- .../iOSReleaseTest/SceneDelegate.swift | 52 ---------- .../iOSReleaseTest/ViewController.swift | 20 ---- .../iOSReleaseTest.entitlements | 11 --- .../iOSReleaseTestTests.swift | 39 -------- 24 files changed, 64 insertions(+), 776 deletions(-) delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/AppDelegate.swift delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/Main.storyboard delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Info.plist delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/SceneDelegate.swift delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/ViewController.swift delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/iOSReleaseTest.entitlements delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTestTests/iOSReleaseTestTests.swift delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/AppDelegate.swift delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Base.lproj/Main.storyboard delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Info.plist delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/SceneDelegate.swift delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/ViewController.swift delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTestTests/iOSReleaseTestTests.swift diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj index acc031d5c..d1214d0b6 100644 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj @@ -17,6 +17,8 @@ E75C0E192975391F0001D5D7 /* BranchSDK.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = E763E99C29354DA40053F490 /* BranchSDK.xcframework */; }; E75C0E1A2975391F0001D5D7 /* BranchSDK.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = E763E99C29354DA40053F490 /* BranchSDK.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */; }; + E7B81C062EAA091000BD39D6 /* BranchSDKTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7B81C052EAA091000BD39D6 /* BranchSDKTest.swift */; }; + E7B81C082EAA092700BD39D6 /* TestObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7B81C072EAA092700BD39D6 /* TestObserver.swift */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -56,6 +58,8 @@ E763E99C29354DA40053F490 /* BranchSDK.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = BranchSDK.xcframework; path = Carthage/Build/BranchSDK.xcframework; sourceTree = ""; }; E7939C0129749D3C00B90B82 /* iOSReleaseTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOSReleaseTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSReleaseTestTests.swift; sourceTree = ""; }; + E7B81C052EAA091000BD39D6 /* BranchSDKTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BranchSDKTest.swift; sourceTree = ""; }; + E7B81C072EAA092700BD39D6 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -99,6 +103,7 @@ C119B01627ADC85C00E8C7BF /* iOSReleaseTest */ = { isa = PBXGroup; children = ( + E7B81C052EAA091000BD39D6 /* BranchSDKTest.swift */, C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */, C119B01727ADC85C00E8C7BF /* AppDelegate.swift */, C119B01927ADC85C00E8C7BF /* SceneDelegate.swift */, @@ -108,7 +113,8 @@ C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */, C119B02527ADC85E00E8C7BF /* Info.plist */, ); - path = iOSReleaseTest; + name = iOSReleaseTest; + path = ../Source/iOSReleaseTest; sourceTree = ""; }; E763E99B29354DA30053F490 /* Frameworks */ = { @@ -122,9 +128,11 @@ E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */ = { isa = PBXGroup; children = ( + E7B81C072EAA092700BD39D6 /* TestObserver.swift */, E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */, ); - path = iOSReleaseTestTests; + name = iOSReleaseTestTests; + path = ../Source/IntegrationTests; sourceTree = ""; }; /* End PBXGroup section */ @@ -232,6 +240,7 @@ files = ( C119B01C27ADC85C00E8C7BF /* ViewController.swift in Sources */, C119B01827ADC85C00E8C7BF /* AppDelegate.swift in Sources */, + E7B81C062EAA091000BD39D6 /* BranchSDKTest.swift in Sources */, C119B01A27ADC85C00E8C7BF /* SceneDelegate.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -241,6 +250,7 @@ buildActionMask = 2147483647; files = ( E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */, + E7B81C082EAA092700BD39D6 /* TestObserver.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -395,12 +405,12 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 5YP4T32B58; + DEVELOPMENT_TEAM = ""; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iOSReleaseTest/Info.plist; + INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; @@ -411,8 +421,9 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -424,12 +435,12 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = YKPTD52Z6X; + DEVELOPMENT_TEAM = ""; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iOSReleaseTest/Info.plist; + INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; @@ -440,8 +451,9 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/AppDelegate.swift b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/AppDelegate.swift deleted file mode 100644 index c5cc155fc..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/AppDelegate.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// AppDelegate.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit - -@main -class AppDelegate: UIResponder, UIApplicationDelegate { - - - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - // Override point for customization after application launch. - - - return true - } - - // MARK: UISceneSession Lifecycle - - func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { - // Called when a new scene session is being created. - // Use this method to select a configuration to create the new scene with. - return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) - } - - func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { - // Called when the user discards a scene session. - // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. - // Use this method to release any resources that were specific to the discarded scenes, as they will not return. - } - - -} - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json deleted file mode 100644 index eb8789700..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors" : [ - { - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 9221b9bb1..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "60x60" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "60x60" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "83.5x83.5" - }, - { - "idiom" : "ios-marketing", - "scale" : "1x", - "size" : "1024x1024" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/Contents.json b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index 865e9329f..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/Main.storyboard b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/Main.storyboard deleted file mode 100644 index 25a763858..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/Main.storyboard +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Info.plist b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Info.plist deleted file mode 100644 index 7cb6fcafa..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Info.plist +++ /dev/null @@ -1,50 +0,0 @@ - - - - - branch_universal_link_domains - - nipunreleasetest.app.link - nipunreleasetest-alternate.app.link - - CFBundleURLTypes - - - CFBundleTypeRole - Editor - CFBundleURLSchemes - - iOSReleaseTest - - CFBundleURLName - com.NipunSingh.iOSReleaseTest - - - branch_key - - live - key_live_ok7NoVhyIh1llbtOW6sfHpbnxBlJjiDp - test - secret_live_NktIf5YHh5us8Hbm7CbyUCPmqwtyqz9M - - UIApplicationSceneManifest - - UIApplicationSupportsMultipleScenes - - UISceneConfigurations - - UIWindowSceneSessionRoleApplication - - - UISceneConfigurationName - Default Configuration - UISceneDelegateClassName - $(PRODUCT_MODULE_NAME).SceneDelegate - UISceneStoryboardFile - Main - - - - - - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/SceneDelegate.swift b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/SceneDelegate.swift deleted file mode 100644 index 0355d0420..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/SceneDelegate.swift +++ /dev/null @@ -1,52 +0,0 @@ -// -// SceneDelegate.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit - -class SceneDelegate: UIResponder, UIWindowSceneDelegate { - - var window: UIWindow? - - - func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { - // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. - // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. - // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). - guard let _ = (scene as? UIWindowScene) else { return } - } - - func sceneDidDisconnect(_ scene: UIScene) { - // Called as the scene is being released by the system. - // This occurs shortly after the scene enters the background, or when its session is discarded. - // Release any resources associated with this scene that can be re-created the next time the scene connects. - // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). - } - - func sceneDidBecomeActive(_ scene: UIScene) { - // Called when the scene has moved from an inactive state to an active state. - // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. - } - - func sceneWillResignActive(_ scene: UIScene) { - // Called when the scene will move from an active state to an inactive state. - // This may occur due to temporary interruptions (ex. an incoming phone call). - } - - func sceneWillEnterForeground(_ scene: UIScene) { - // Called as the scene transitions from the background to the foreground. - // Use this method to undo the changes made on entering the background. - } - - func sceneDidEnterBackground(_ scene: UIScene) { - // Called as the scene transitions from the foreground to the background. - // Use this method to save data, release shared resources, and store enough scene-specific state information - // to restore the scene back to its current state. - } - - -} - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/ViewController.swift b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/ViewController.swift deleted file mode 100644 index d75237f64..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/ViewController.swift +++ /dev/null @@ -1,20 +0,0 @@ -// -// ViewController.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit -import BranchSDK - -class ViewController: UIViewController { - - override func viewDidLoad() { - super.viewDidLoad() - // Do any additional setup after loading the view. - } - - -} - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/iOSReleaseTest.entitlements b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/iOSReleaseTest.entitlements deleted file mode 100644 index dc0ea48ed..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/iOSReleaseTest.entitlements +++ /dev/null @@ -1,11 +0,0 @@ - - - - - com.apple.developer.associated-domains - - applinks:nipunreleasetest.app.link - applinks:nipunreleasetest-alternate.app.link - - - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTestTests/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTestTests/iOSReleaseTestTests.swift deleted file mode 100644 index c9c37f7c3..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTestTests/iOSReleaseTestTests.swift +++ /dev/null @@ -1,41 +0,0 @@ -// -// iOSReleaseTestTests.swift -// iOSReleaseTestTests -// -// Created by Nidhi Dixit on 1/15/23. -// - -import XCTest -import BranchSDK - -final class iOSReleaseTestTests: XCTestCase { - - override func setUpWithError() throws { - // Put setup code here. This method is called before the invocation of each test method in the class. - } - - override func tearDownWithError() throws { - // Put teardown code here. This method is called after the invocation of each test method in the class. - } - - func testSetTrackingDisabled() throws { - Branch.getInstance().enableLogging() - Branch.getInstance().initSession(launchOptions: nil) { (params, error) in - // do stuff with deep link data (nav to page, display content, etc) - print(params as? [String: AnyObject] ?? {}) - } - Branch.setTrackingDisabled(true) - let x = Branch.trackingDisabled() - assert( x == true) - Branch.setTrackingDisabled(false) - print("Test completed.") - } - - func testPerformanceExample() throws { - // This is an example of a performance test case. - measure { - // Put the code you want to measure the time of here. - } - } - -} diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj index 1d94887a7..c8460d692 100644 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -17,6 +17,8 @@ C119B02427ADC85E00E8C7BF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */; }; C119B02C27ADC92A00E8C7BF /* iOSReleaseTest.entitlements in Resources */ = {isa = PBXBuildFile; fileRef = C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */; }; E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */; }; + E7B81C012EAA083500BD39D6 /* BranchSDKTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7B81C002EAA083500BD39D6 /* BranchSDKTest.swift */; }; + E7B81C032EAA084B00BD39D6 /* TestObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7B81C022EAA084B00BD39D6 /* TestObserver.swift */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -46,6 +48,8 @@ D347EDD199CA7E6A4A677D5A /* Pods-iOSReleaseTestTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iOSReleaseTestTests.release.xcconfig"; path = "Target Support Files/Pods-iOSReleaseTestTests/Pods-iOSReleaseTestTests.release.xcconfig"; sourceTree = ""; }; E7939C0129749D3C00B90B82 /* iOSReleaseTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOSReleaseTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSReleaseTestTests.swift; sourceTree = ""; }; + E7B81C002EAA083500BD39D6 /* BranchSDKTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BranchSDKTest.swift; sourceTree = ""; }; + E7B81C022EAA084B00BD39D6 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; FD6F9153F98F7AA38E9A2DCF /* Pods_iOSReleaseTestTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_iOSReleaseTestTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ @@ -103,6 +107,7 @@ C119B01627ADC85C00E8C7BF /* iOSReleaseTest */ = { isa = PBXGroup; children = ( + E7B81C002EAA083500BD39D6 /* BranchSDKTest.swift */, C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */, C119B01727ADC85C00E8C7BF /* AppDelegate.swift */, C119B01927ADC85C00E8C7BF /* SceneDelegate.swift */, @@ -112,7 +117,8 @@ C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */, C119B02527ADC85E00E8C7BF /* Info.plist */, ); - path = iOSReleaseTest; + name = iOSReleaseTest; + path = ../Source/iOSReleaseTest; sourceTree = ""; }; E763E99B29354DA30053F490 /* Frameworks */ = { @@ -127,9 +133,11 @@ E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */ = { isa = PBXGroup; children = ( + E7B81C022EAA084B00BD39D6 /* TestObserver.swift */, E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */, ); - path = iOSReleaseTestTests; + name = iOSReleaseTestTests; + path = ../Source/IntegrationTests; sourceTree = ""; }; /* End PBXGroup section */ @@ -242,10 +250,14 @@ inputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-iOSReleaseTest/Pods-iOSReleaseTest-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); + inputPaths = ( + ); name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-iOSReleaseTest/Pods-iOSReleaseTest-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); + outputPaths = ( + ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-iOSReleaseTest/Pods-iOSReleaseTest-frameworks.sh\"\n"; @@ -303,10 +315,14 @@ inputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-iOSReleaseTestTests/Pods-iOSReleaseTestTests-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); + inputPaths = ( + ); name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-iOSReleaseTestTests/Pods-iOSReleaseTestTests-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); + outputPaths = ( + ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-iOSReleaseTestTests/Pods-iOSReleaseTestTests-frameworks.sh\"\n"; @@ -321,6 +337,7 @@ files = ( C119B01C27ADC85C00E8C7BF /* ViewController.swift in Sources */, C119B01827ADC85C00E8C7BF /* AppDelegate.swift in Sources */, + E7B81C012EAA083500BD39D6 /* BranchSDKTest.swift in Sources */, C119B01A27ADC85C00E8C7BF /* SceneDelegate.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -330,6 +347,7 @@ buildActionMask = 2147483647; files = ( E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */, + E7B81C032EAA084B00BD39D6 /* TestObserver.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -485,12 +503,14 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 5YP4T32B58; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iOSReleaseTest/Info.plist; + INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; @@ -501,8 +521,10 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -515,12 +537,14 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_ENTITLEMENTS = "$(PROJECT_DIR)/../Source/iOSReleaseTest/iOSReleaseTest.entitlements"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = YKPTD52Z6X; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R63EM248DP; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iOSReleaseTest/Info.plist; + INFOPLIST_FILE = "$(PROJECT_DIR)/../Source/iOSReleaseTest/Info.plist"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; @@ -531,8 +555,10 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.NipunSingh.iOSReleaseTest; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Branch Link Simulator"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -551,7 +577,7 @@ GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.SamSolutions.iOSReleaseTestTests; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; @@ -572,7 +598,7 @@ GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.SamSolutions.iOSReleaseTestTests; + PRODUCT_BUNDLE_IDENTIFIER = "io.branch.link-simulator"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/AppDelegate.swift b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/AppDelegate.swift deleted file mode 100644 index c5cc155fc..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/AppDelegate.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// AppDelegate.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit - -@main -class AppDelegate: UIResponder, UIApplicationDelegate { - - - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - // Override point for customization after application launch. - - - return true - } - - // MARK: UISceneSession Lifecycle - - func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { - // Called when a new scene session is being created. - // Use this method to select a configuration to create the new scene with. - return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) - } - - func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { - // Called when the user discards a scene session. - // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. - // Use this method to release any resources that were specific to the discarded scenes, as they will not return. - } - - -} - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json deleted file mode 100644 index eb8789700..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors" : [ - { - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 9221b9bb1..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "60x60" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "60x60" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "83.5x83.5" - }, - { - "idiom" : "ios-marketing", - "scale" : "1x", - "size" : "1024x1024" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/Contents.json b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index 865e9329f..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Base.lproj/Main.storyboard b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Base.lproj/Main.storyboard deleted file mode 100644 index 25a763858..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Base.lproj/Main.storyboard +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Info.plist b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Info.plist deleted file mode 100644 index 7cb6fcafa..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Info.plist +++ /dev/null @@ -1,50 +0,0 @@ - - - - - branch_universal_link_domains - - nipunreleasetest.app.link - nipunreleasetest-alternate.app.link - - CFBundleURLTypes - - - CFBundleTypeRole - Editor - CFBundleURLSchemes - - iOSReleaseTest - - CFBundleURLName - com.NipunSingh.iOSReleaseTest - - - branch_key - - live - key_live_ok7NoVhyIh1llbtOW6sfHpbnxBlJjiDp - test - secret_live_NktIf5YHh5us8Hbm7CbyUCPmqwtyqz9M - - UIApplicationSceneManifest - - UIApplicationSupportsMultipleScenes - - UISceneConfigurations - - UIWindowSceneSessionRoleApplication - - - UISceneConfigurationName - Default Configuration - UISceneDelegateClassName - $(PRODUCT_MODULE_NAME).SceneDelegate - UISceneStoryboardFile - Main - - - - - - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/SceneDelegate.swift b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/SceneDelegate.swift deleted file mode 100644 index 0355d0420..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/SceneDelegate.swift +++ /dev/null @@ -1,52 +0,0 @@ -// -// SceneDelegate.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit - -class SceneDelegate: UIResponder, UIWindowSceneDelegate { - - var window: UIWindow? - - - func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { - // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. - // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. - // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). - guard let _ = (scene as? UIWindowScene) else { return } - } - - func sceneDidDisconnect(_ scene: UIScene) { - // Called as the scene is being released by the system. - // This occurs shortly after the scene enters the background, or when its session is discarded. - // Release any resources associated with this scene that can be re-created the next time the scene connects. - // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). - } - - func sceneDidBecomeActive(_ scene: UIScene) { - // Called when the scene has moved from an inactive state to an active state. - // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. - } - - func sceneWillResignActive(_ scene: UIScene) { - // Called when the scene will move from an active state to an inactive state. - // This may occur due to temporary interruptions (ex. an incoming phone call). - } - - func sceneWillEnterForeground(_ scene: UIScene) { - // Called as the scene transitions from the background to the foreground. - // Use this method to undo the changes made on entering the background. - } - - func sceneDidEnterBackground(_ scene: UIScene) { - // Called as the scene transitions from the foreground to the background. - // Use this method to save data, release shared resources, and store enough scene-specific state information - // to restore the scene back to its current state. - } - - -} - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/ViewController.swift b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/ViewController.swift deleted file mode 100644 index d75237f64..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/ViewController.swift +++ /dev/null @@ -1,20 +0,0 @@ -// -// ViewController.swift -// iOSReleaseTest -// -// Created by Nipun Singh on 2/4/22. -// - -import UIKit -import BranchSDK - -class ViewController: UIViewController { - - override func viewDidLoad() { - super.viewDidLoad() - // Do any additional setup after loading the view. - } - - -} - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements deleted file mode 100644 index dc0ea48ed..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/iOSReleaseTest.entitlements +++ /dev/null @@ -1,11 +0,0 @@ - - - - - com.apple.developer.associated-domains - - applinks:nipunreleasetest.app.link - applinks:nipunreleasetest-alternate.app.link - - - diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTestTests/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTestTests/iOSReleaseTestTests.swift deleted file mode 100644 index 8944efe63..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTestTests/iOSReleaseTestTests.swift +++ /dev/null @@ -1,39 +0,0 @@ -// -// iOSReleaseTestTests.swift -// iOSReleaseTestTests -// -// Created by Nidhi Dixit on 1/15/23. -// - -import XCTest -import BranchSDK - -final class iOSReleaseTestTests: XCTestCase { - - override func setUpWithError() throws { - // Put setup code here. This method is called before the invocation of each test method in the class. - } - - override func tearDownWithError() throws { - // Put teardown code here. This method is called after the invocation of each test method in the class. - } - - func testSetTrackingDisabled() throws { - Branch.getInstance().enableLogging() - Branch.getInstance().initSession(launchOptions: nil) { (params, error) in - print(params as? [String: AnyObject] ?? {}) - } - Branch.setTrackingDisabled(true) - let x = Branch.trackingDisabled() - assert( x == true) - Branch.setTrackingDisabled(false) - } - - func testPerformanceExample() throws { - // This is an example of a performance test case. - measure { - // Put the code you want to measure the time of here. - } - } - -} From b4cd08000b6ff8b38f542f16e6453c4d5e65bb3b Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 23 Oct 2025 00:02:05 -0700 Subject: [PATCH 77/85] PR tvOS Cocopods refactoring --- .../tvOSReleaseTest.xcodeproj/project.pbxproj | 23 +++++++++-- .../tvOSReleaseTest/AppDelegate.swift | 40 ------------------ .../AccentColor.colorset/Contents.json | 11 ----- .../Content.imageset/Contents.json | 16 -------- .../Back.imagestacklayer/Contents.json | 6 --- .../Contents.json | 17 -------- .../Content.imageset/Contents.json | 16 -------- .../Front.imagestacklayer/Contents.json | 6 --- .../Content.imageset/Contents.json | 16 -------- .../Middle.imagestacklayer/Contents.json | 6 --- .../Content.imageset/Contents.json | 24 ----------- .../Back.imagestacklayer/Contents.json | 6 --- .../App Icon.imagestack/Contents.json | 17 -------- .../Content.imageset/Contents.json | 24 ----------- .../Front.imagestacklayer/Contents.json | 6 --- .../Content.imageset/Contents.json | 24 ----------- .../Middle.imagestacklayer/Contents.json | 6 --- .../Contents.json | 32 --------------- .../Contents.json | 24 ----------- .../Top Shelf Image.imageset/Contents.json | 24 ----------- .../Assets.xcassets/Contents.json | 6 --- .../Base.lproj/LaunchScreen.storyboard | 24 ----------- .../Base.lproj/Main.storyboard | 28 ------------- .../tvOSReleaseTest/ViewController.swift | 19 --------- .../tvOSReleaseTestTests.swift | 41 ------------------- 25 files changed, 20 insertions(+), 442 deletions(-) delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/AppDelegate.swift delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/Contents.json delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/Main.storyboard delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/ViewController.swift delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTestTests/tvOSReleaseTestTests.swift diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest.xcodeproj/project.pbxproj index 1ba3e574a..c058cf161 100644 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest.xcodeproj/project.pbxproj @@ -15,6 +15,8 @@ E7A0C2D42988F7650024497D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E7A0C2D32988F7650024497D /* Assets.xcassets */; }; E7A0C2D72988F7650024497D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E7A0C2D52988F7650024497D /* LaunchScreen.storyboard */; }; E7A0C2E12988F7660024497D /* tvOSReleaseTestTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7A0C2E02988F7660024497D /* tvOSReleaseTestTests.swift */; }; + E7B81C0A2EAA09F200BD39D6 /* BranchSDKTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7B81C092EAA09F200BD39D6 /* BranchSDKTest.swift */; }; + E7B81C0C2EAA0A0900BD39D6 /* TestObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7B81C0B2EAA0A0900BD39D6 /* TestObserver.swift */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -41,6 +43,8 @@ E7A0C2D62988F7650024497D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; E7A0C2DC2988F7660024497D /* tvOSReleaseTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = tvOSReleaseTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; E7A0C2E02988F7660024497D /* tvOSReleaseTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = tvOSReleaseTestTests.swift; sourceTree = ""; }; + E7B81C092EAA09F200BD39D6 /* BranchSDKTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BranchSDKTest.swift; sourceTree = ""; }; + E7B81C0B2EAA0A0900BD39D6 /* TestObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestObserver.swift; sourceTree = ""; }; EB31BAFEF5E3765A587A3CC3 /* Pods_tvOSReleaseTestTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_tvOSReleaseTestTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ @@ -81,7 +85,6 @@ 20A568BA2F69208556344FCF /* Pods-tvOSReleaseTestTests.debug.xcconfig */, 18E3D2779BF391A05B2F3854 /* Pods-tvOSReleaseTestTests.release.xcconfig */, ); - name = Pods; path = Pods; sourceTree = ""; }; @@ -108,21 +111,25 @@ E7A0C2CB2988F7640024497D /* tvOSReleaseTest */ = { isa = PBXGroup; children = ( + E7B81C092EAA09F200BD39D6 /* BranchSDKTest.swift */, E7A0C2CC2988F7640024497D /* AppDelegate.swift */, E7A0C2CE2988F7640024497D /* ViewController.swift */, E7A0C2D02988F7640024497D /* Main.storyboard */, E7A0C2D32988F7650024497D /* Assets.xcassets */, E7A0C2D52988F7650024497D /* LaunchScreen.storyboard */, ); - path = tvOSReleaseTest; + name = tvOSReleaseTest; + path = ../Source/tvOSReleaseTest; sourceTree = ""; }; E7A0C2DF2988F7660024497D /* tvOSReleaseTestTests */ = { isa = PBXGroup; children = ( + E7B81C0B2EAA0A0900BD39D6 /* TestObserver.swift */, E7A0C2E02988F7660024497D /* tvOSReleaseTestTests.swift */, ); - path = tvOSReleaseTestTests; + name = tvOSReleaseTestTests; + path = ../Source/IntegrationTests; sourceTree = ""; }; /* End PBXGroup section */ @@ -256,10 +263,14 @@ inputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-tvOSReleaseTest/Pods-tvOSReleaseTest-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); + inputPaths = ( + ); name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-tvOSReleaseTest/Pods-tvOSReleaseTest-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); + outputPaths = ( + ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-tvOSReleaseTest/Pods-tvOSReleaseTest-frameworks.sh\"\n"; @@ -295,10 +306,14 @@ inputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-tvOSReleaseTestTests/Pods-tvOSReleaseTestTests-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); + inputPaths = ( + ); name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-tvOSReleaseTestTests/Pods-tvOSReleaseTestTests-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); + outputPaths = ( + ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-tvOSReleaseTestTests/Pods-tvOSReleaseTestTests-frameworks.sh\"\n"; @@ -311,6 +326,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + E7B81C0A2EAA09F200BD39D6 /* BranchSDKTest.swift in Sources */, E7A0C2CF2988F7640024497D /* ViewController.swift in Sources */, E7A0C2CD2988F7640024497D /* AppDelegate.swift in Sources */, ); @@ -321,6 +337,7 @@ buildActionMask = 2147483647; files = ( E7A0C2E12988F7660024497D /* tvOSReleaseTestTests.swift in Sources */, + E7B81C0C2EAA0A0900BD39D6 /* TestObserver.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/AppDelegate.swift b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/AppDelegate.swift deleted file mode 100644 index 9c632aa13..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/AppDelegate.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// AppDelegate.swift -// tvOSReleaseTest -// -// Created by Nidhi Dixit on 1/30/23. -// - -import UIKit - -@main -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - // Override point for customization after application launch. - return true - } - - func applicationWillResignActive(_ application: UIApplication) { - // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. - } - - func applicationDidEnterBackground(_ application: UIApplication) { - // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. - } - - func applicationWillEnterForeground(_ application: UIApplication) { - // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. - } - - func applicationDidBecomeActive(_ application: UIApplication) { - // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. - } - - -} - diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json deleted file mode 100644 index eb8789700..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors" : [ - { - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 795cce172..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json deleted file mode 100644 index de59d885a..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - }, - "layers" : [ - { - "filename" : "Front.imagestacklayer" - }, - { - "filename" : "Middle.imagestacklayer" - }, - { - "filename" : "Back.imagestacklayer" - } - ] -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 795cce172..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 795cce172..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index b65f0cddc..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - }, - { - "idiom" : "tv-marketing", - "scale" : "1x" - }, - { - "idiom" : "tv-marketing", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json deleted file mode 100644 index de59d885a..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - }, - "layers" : [ - { - "filename" : "Front.imagestacklayer" - }, - { - "filename" : "Middle.imagestacklayer" - }, - { - "filename" : "Back.imagestacklayer" - } - ] -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index b65f0cddc..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - }, - { - "idiom" : "tv-marketing", - "scale" : "1x" - }, - { - "idiom" : "tv-marketing", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index b65f0cddc..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - }, - { - "idiom" : "tv-marketing", - "scale" : "1x" - }, - { - "idiom" : "tv-marketing", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json deleted file mode 100644 index f47ba43da..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "assets" : [ - { - "filename" : "App Icon - App Store.imagestack", - "idiom" : "tv", - "role" : "primary-app-icon", - "size" : "1280x768" - }, - { - "filename" : "App Icon.imagestack", - "idiom" : "tv", - "role" : "primary-app-icon", - "size" : "400x240" - }, - { - "filename" : "Top Shelf Image Wide.imageset", - "idiom" : "tv", - "role" : "top-shelf-image-wide", - "size" : "2320x720" - }, - { - "filename" : "Top Shelf Image.imageset", - "idiom" : "tv", - "role" : "top-shelf-image", - "size" : "1920x720" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json deleted file mode 100644 index b65f0cddc..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - }, - { - "idiom" : "tv-marketing", - "scale" : "1x" - }, - { - "idiom" : "tv-marketing", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json deleted file mode 100644 index b65f0cddc..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - }, - { - "idiom" : "tv", - "scale" : "2x" - }, - { - "idiom" : "tv-marketing", - "scale" : "1x" - }, - { - "idiom" : "tv-marketing", - "scale" : "2x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/Contents.json b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index 660ba53de..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/Main.storyboard b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/Main.storyboard deleted file mode 100644 index c277013f3..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/Main.storyboard +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/ViewController.swift b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/ViewController.swift deleted file mode 100644 index 831f453a6..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/ViewController.swift +++ /dev/null @@ -1,19 +0,0 @@ -// -// ViewController.swift -// tvOSReleaseTest -// -// Created by Nidhi Dixit on 1/30/23. -// - -import UIKit - -class ViewController: UIViewController { - - override func viewDidLoad() { - super.viewDidLoad() - // Do any additional setup after loading the view. - } - - -} - diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTestTests/tvOSReleaseTestTests.swift b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTestTests/tvOSReleaseTestTests.swift deleted file mode 100644 index 023819dff..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTestTests/tvOSReleaseTestTests.swift +++ /dev/null @@ -1,41 +0,0 @@ -// -// tvOSReleaseTestTests.swift -// tvOSReleaseTestTests -// -// Created by Nidhi Dixit on 1/30/23. -// - -import XCTest -import BranchSDK - -@testable import tvOSReleaseTest - -final class tvOSReleaseTestTests: XCTestCase { - - override func setUpWithError() throws { - // Put setup code here. This method is called before the invocation of each test method in the class. - } - - override func tearDownWithError() throws { - // Put teardown code here. This method is called after the invocation of each test method in the class. - } - - func testSetTrackingDisabled() throws { - Branch.getInstance().enableLogging() - Branch.getInstance().initSession(launchOptions: nil) { (params, error) in - print(params as? [String: AnyObject] ?? {}) - } - Branch.setTrackingDisabled(false) - let x = Branch.trackingDisabled() - assert( x == false) - } - - - func testPerformanceExample() throws { - // This is an example of a performance test case. - self.measure { - // Put the code you want to measure the time of here. - } - } - -} From ada30ef2b21319e01ccf0b0d7380a5fb359bbb8f Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 23 Oct 2025 00:08:48 -0700 Subject: [PATCH 78/85] Update post-release-qa.yml --- .github/workflows/post-release-qa.yml | 64 ++++++++++++++++++++++++--- 1 file changed, 59 insertions(+), 5 deletions(-) diff --git a/.github/workflows/post-release-qa.yml b/.github/workflows/post-release-qa.yml index 869796deb..ffd3de098 100644 --- a/.github/workflows/post-release-qa.yml +++ b/.github/workflows/post-release-qa.yml @@ -11,11 +11,27 @@ jobs: uses: actions/checkout@v4 - name: Install pod, build project and run tests run: | + mkdir -p test-results ./scripts/getSimulator DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest" cd SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/ pod install - xcodebuild test -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace -destination "$DESTINATION"| xcpretty && exit ${PIPESTATUS[0]} + xcodebuild -configuration Debug \ + -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace \ + -sdk iphonesimulator \ + -destination "$DESTINATION" \ + CODE_SIGNING_ALLOWED=NO \ + CODE_SIGNING_REQUIRED=NO \ + PROVISIONING_PROFILE_SPECIFIER="" \ + DEVELOPMENT_TEAM="" \ + -resultBundlePath ../../test-results/ios-cocoapods.xcresult \ + clean test + - name: Upload test report + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-report-cocoapods-iOS + path: test-results verify-carthage-iOS: runs-on: macos-latest steps: @@ -23,11 +39,27 @@ jobs: uses: actions/checkout@v4 - name: Run carthage command, build project and run tests run: | + mkdir -p test-results ./scripts/getSimulator DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest" cd SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/ carthage update --use-xcframeworks - xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION"| xcpretty && exit ${PIPESTATUS[0]} + xcodebuild -configuration Debug \ + -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \ + -sdk iphonesimulator \ + -destination "$DESTINATION" \ + CODE_SIGNING_ALLOWED=NO \ + CODE_SIGNING_REQUIRED=NO \ + PROVISIONING_PROFILE_SPECIFIER="" \ + DEVELOPMENT_TEAM="" \ + -resultBundlePath ../../test-results/ios-carthage.xcresult \ + clean test + - name: Upload test report + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-report-carthage-iOS + path: test-results verify-SPM-iOS: runs-on: macos-latest steps: @@ -35,10 +67,26 @@ jobs: uses: actions/checkout@v4 - name: build project and run tests run: | + mkdir -p test-results ./scripts/getSimulator DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest" cd SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/ - xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION"| xcpretty && exit ${PIPESTATUS[0]} + xcodebuild -configuration Debug \ + -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \ + -sdk iphonesimulator \ + -destination "$DESTINATION" \ + CODE_SIGNING_ALLOWED=NO \ + CODE_SIGNING_REQUIRED=NO \ + PROVISIONING_PROFILE_SPECIFIER="" \ + DEVELOPMENT_TEAM="" \ + -resultBundlePath ../../test-results/ios-spm.xcresult \ + clean test + - name: Upload test report + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-report-spm-iOS + path: test-results verify-cocoapods-tvOS: runs-on: macos-latest steps: @@ -46,9 +94,15 @@ jobs: uses: actions/checkout@v4 - name: Install pod, build project and run tests run: | + mkdir -p test-results ./scripts/getSimulator DESTINATION="platform=tvOS Simulator,name=$(cat ./appleTVSim),OS=latest" cd SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/ pod install - xcodebuild test -scheme tvOSReleaseTest -workspace tvOSReleaseTest.xcworkspace -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]} - + xcodebuild test -scheme tvOSReleaseTest -workspace tvOSReleaseTest.xcworkspace -destination "$DESTINATION" -resultBundlePath ../../test-results/tvOS-cocoapods.xcresult + - name: Upload test report + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-report-cocoapods-tvOS + path: test-results From 30b8f6a307820f16e3edaa5bb3705c644920cc16 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 23 Oct 2025 00:21:34 -0700 Subject: [PATCH 79/85] Update post-release-qa.yml --- .github/workflows/post-release-qa.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/post-release-qa.yml b/.github/workflows/post-release-qa.yml index ffd3de098..408a7729c 100644 --- a/.github/workflows/post-release-qa.yml +++ b/.github/workflows/post-release-qa.yml @@ -71,6 +71,7 @@ jobs: ./scripts/getSimulator DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest" cd SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/ + xcodebuild -resolvePackageDependencies -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj xcodebuild -configuration Debug \ -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \ -sdk iphonesimulator \ From 27652826d611c140b2d0f25d89e5dda2a9420cf3 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 23 Oct 2025 00:23:49 -0700 Subject: [PATCH 80/85] Update Podfile --- .../PostRelease-tvOSReleaseTest-Cocoapods/Podfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/Podfile b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/Podfile index f82752b73..a4d1b1c9a 100644 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/Podfile +++ b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/Podfile @@ -1,3 +1,6 @@ + +platform :tvos, '18.0' + target 'tvOSReleaseTest' do # Comment the next line if you don't want to use dynamic frameworks use_frameworks! From fb2de3ee8ec403df6262151aacdbc14945bf57ca Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 23 Oct 2025 00:39:43 -0700 Subject: [PATCH 81/85] Update post-release-qa.yml --- .github/workflows/post-release-qa.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/post-release-qa.yml b/.github/workflows/post-release-qa.yml index 408a7729c..da896dd39 100644 --- a/.github/workflows/post-release-qa.yml +++ b/.github/workflows/post-release-qa.yml @@ -71,7 +71,7 @@ jobs: ./scripts/getSimulator DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest" cd SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/ - xcodebuild -resolvePackageDependencies -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj + xcodebuild -disableAutomaticPackageResolution -resolvePackageDependencies -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj xcodebuild -configuration Debug \ -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \ -sdk iphonesimulator \ From fb76d31b44fd36cae9366e8312e4dc43e293378b Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 23 Oct 2025 00:41:42 -0700 Subject: [PATCH 82/85] Update post-release-qa.yml --- .github/workflows/post-release-qa.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/post-release-qa.yml b/.github/workflows/post-release-qa.yml index da896dd39..009f8a475 100644 --- a/.github/workflows/post-release-qa.yml +++ b/.github/workflows/post-release-qa.yml @@ -6,6 +6,7 @@ on: jobs: verify-cocoapods-iOS: runs-on: macos-latest + timeout-minutes: 30 steps: - name: Check out code uses: actions/checkout@v4 @@ -34,6 +35,7 @@ jobs: path: test-results verify-carthage-iOS: runs-on: macos-latest + timeout-minutes: 30 steps: - name: Check out code uses: actions/checkout@v4 @@ -62,6 +64,7 @@ jobs: path: test-results verify-SPM-iOS: runs-on: macos-latest + timeout-minutes: 30 steps: - name: Check out code uses: actions/checkout@v4 @@ -90,6 +93,7 @@ jobs: path: test-results verify-cocoapods-tvOS: runs-on: macos-latest + timeout-minutes: 30 steps: - name: Check out code uses: actions/checkout@v4 From 031df1f30fa2ba9c579020369abd7b6a77d27dca Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 23 Oct 2025 00:42:30 -0700 Subject: [PATCH 83/85] Delete Package.resolved --- .../xcshareddata/swiftpm/Package.resolved | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved deleted file mode 100644 index 439725c56..000000000 --- a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ /dev/null @@ -1,14 +0,0 @@ -{ - "pins" : [ - { - "identity" : "ios-branch-deep-linking-attribution", - "kind" : "remoteSourceControl", - "location" : "https://github.com/BranchMetrics/ios-branch-deep-linking-attribution", - "state" : { - "branch" : "master", - "revision" : "c088b0be61f91768b46caf8c1862cad0e4a149da" - } - } - ], - "version" : 2 -} From a049dcc0f0acaffba7dadb86d934a01dfd86c778 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 23 Oct 2025 00:44:24 -0700 Subject: [PATCH 84/85] Update post-release-qa.yml --- .github/workflows/post-release-qa.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/post-release-qa.yml b/.github/workflows/post-release-qa.yml index 009f8a475..3436e0e3b 100644 --- a/.github/workflows/post-release-qa.yml +++ b/.github/workflows/post-release-qa.yml @@ -74,7 +74,7 @@ jobs: ./scripts/getSimulator DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest" cd SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/ - xcodebuild -disableAutomaticPackageResolution -resolvePackageDependencies -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj + xcodebuild -resolvePackageDependencies -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj xcodebuild -configuration Debug \ -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \ -sdk iphonesimulator \ From 37facab5ad14c8b289f3120d94be1b3fcc7b8aa7 Mon Sep 17 00:00:00 2001 From: NidhiDixit09 <93544270+NidhiDixit09@users.noreply.github.com> Date: Thu, 23 Oct 2025 00:50:04 -0700 Subject: [PATCH 85/85] Delete Podfile.lock --- .../Podfile.lock | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/Podfile.lock diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/Podfile.lock b/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/Podfile.lock deleted file mode 100644 index ae50838fd..000000000 --- a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/Podfile.lock +++ /dev/null @@ -1,16 +0,0 @@ -PODS: - - BranchSDK (2.0.0) - -DEPENDENCIES: - - BranchSDK - -SPEC REPOS: - trunk: - - BranchSDK - -SPEC CHECKSUMS: - BranchSDK: dbecf9d1da931c2cf57393b233347b3587d11acb - -PODFILE CHECKSUM: b7db230f02cca02441bc18cee8f2e100c8afe864 - -COCOAPODS: 1.11.2