diff --git a/.github/workflows/post-release-qa.yml b/.github/workflows/post-release-qa.yml index 869796deb..3436e0e3b 100644 --- a/.github/workflows/post-release-qa.yml +++ b/.github/workflows/post-release-qa.yml @@ -6,49 +6,108 @@ on: jobs: verify-cocoapods-iOS: runs-on: macos-latest + timeout-minutes: 30 steps: - name: Check out code 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 + timeout-minutes: 30 steps: - name: Check out code 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 + timeout-minutes: 30 steps: - name: Check out code 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 -resolvePackageDependencies -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj + 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 + timeout-minutes: 30 steps: - name: Check out code 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 diff --git a/.github/workflows/pre-release-qa.yml b/.github/workflows/pre-release-qa.yml index 0a2d30548..51335c319 100644 --- a/.github/workflows/pre-release-qa.yml +++ b/.github/workflows/pre-release-qa.yml @@ -5,19 +5,37 @@ on: [push] jobs: verify-cocoapods-iOS: runs-on: macos-latest + timeout-minutes: 30 steps: - name: Check out code 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" | 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-15 + runs-on: macos-latest + timeout-minutes: 30 steps: - name: Check out code uses: actions/checkout@v4 @@ -25,80 +43,165 @@ 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" | 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 + timeout-minutes: 30 steps: - name: Check out code 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" | 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-manually-with-xcframework-iOS: runs-on: macos-latest + timeout-minutes: 30 steps: - name: Check out code 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" | 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-xcframework.xcresult \ + clean test + - name: Upload test report + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-report-manual-xcframework-iOS + path: test-results verify-manually-with-StaticFramework-iOS: runs-on: macos-latest + timeout-minutes: 30 steps: - name: Check out code 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" | 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-static-framework.xcresult \ + clean test + - name: Upload test report + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-report-manual-static-iOS + path: test-results verify-cocoapods-tvOS: runs-on: macos-latest + timeout-minutes: 30 steps: - name: Check out code 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" | 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 verify-carthage-tvOS: runs-on: macos-latest + timeout-minutes: 30 steps: - name: Check out code 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/ echo "Skipping it ... its broken" verify-manually-with-xcframework-tvOS: runs-on: macos-latest + timeout-minutes: 30 steps: - name: Check out code 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" | xcpretty && exit ${PIPESTATUS[0]} + 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 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/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/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/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/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/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. - } - } - -} diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj index c9f85cc47..20818b618 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; }; @@ -392,12 +398,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; @@ -408,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"; @@ -421,12 +431,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; @@ -437,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"; 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 -} 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/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. - } - } - -} 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! 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 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/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.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/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/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. - } - } - -} diff --git a/SDKIntegrationTestApps/Source/IntegrationTests/TestObserver.swift b/SDKIntegrationTestApps/Source/IntegrationTests/TestObserver.swift new file mode 100644 index 000000000..e36c734fd --- /dev/null +++ b/SDKIntegrationTestApps/Source/IntegrationTests/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/Source/IntegrationTests/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/Source/IntegrationTests/iOSReleaseTestTests.swift new file mode 100644 index 000000000..54e988d90 --- /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 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/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/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/AppDelegate.swift b/SDKIntegrationTestApps/Source/iOSReleaseTest/AppDelegate.swift similarity index 100% rename from SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/AppDelegate.swift rename to SDKIntegrationTestApps/Source/iOSReleaseTest/AppDelegate.swift diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json b/SDKIntegrationTestApps/Source/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json rename to SDKIntegrationTestApps/Source/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json b/SDKIntegrationTestApps/Source/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json rename to SDKIntegrationTestApps/Source/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/Contents.json b/SDKIntegrationTestApps/Source/iOSReleaseTest/Assets.xcassets/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Assets.xcassets/Contents.json rename to SDKIntegrationTestApps/Source/iOSReleaseTest/Assets.xcassets/Contents.json diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard b/SDKIntegrationTestApps/Source/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard rename to SDKIntegrationTestApps/Source/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/Main.storyboard b/SDKIntegrationTestApps/Source/iOSReleaseTest/Base.lproj/Main.storyboard similarity index 100% rename from SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/Base.lproj/Main.storyboard rename to SDKIntegrationTestApps/Source/iOSReleaseTest/Base.lproj/Main.storyboard diff --git a/SDKIntegrationTestApps/Source/iOSReleaseTest/BranchSDKTest.swift b/SDKIntegrationTestApps/Source/iOSReleaseTest/BranchSDKTest.swift new file mode 100644 index 000000000..b61bd4a94 --- /dev/null +++ b/SDKIntegrationTestApps/Source/iOSReleaseTest/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/iOSReleaseTest-SPM/iOSReleaseTest/Info.plist b/SDKIntegrationTestApps/Source/iOSReleaseTest/Info.plist similarity index 78% rename from SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Info.plist rename to SDKIntegrationTestApps/Source/iOSReleaseTest/Info.plist index 41b76ac40..36bdf40ae 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Info.plist +++ b/SDKIntegrationTestApps/Source/iOSReleaseTest/Info.plist @@ -2,19 +2,6 @@ - CFBundleURLTypes - - - CFBundleTypeRole - Editor - CFBundleURLName - com.NipunSingh.iOSReleaseTest - CFBundleURLSchemes - - iOSReleaseTest - - - UIApplicationSceneManifest UIApplicationSupportsMultipleScenes diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/iOSReleaseTest/SceneDelegate.swift b/SDKIntegrationTestApps/Source/iOSReleaseTest/SceneDelegate.swift similarity index 100% rename from SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/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/Source/iOSReleaseTest/iOSReleaseTest.entitlements b/SDKIntegrationTestApps/Source/iOSReleaseTest/iOSReleaseTest.entitlements new file mode 100644 index 000000000..0c67376eb --- /dev/null +++ b/SDKIntegrationTestApps/Source/iOSReleaseTest/iOSReleaseTest.entitlements @@ -0,0 +1,5 @@ + + + + + diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/AppDelegate.swift b/SDKIntegrationTestApps/Source/tvOSReleaseTest/AppDelegate.swift similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/AppDelegate.swift rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/AppDelegate.swift diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json 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/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/iOSReleaseTest/Assets.xcassets/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json 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/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json 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/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json diff --git a/SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/Contents.json b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json 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/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json 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/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json 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/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json 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/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/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 similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json 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/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json 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/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json 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/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json 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/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/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 similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json 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/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/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 similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json 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/Source/tvOSReleaseTest/Assets.xcassets/Contents.json similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Assets.xcassets/Contents.json diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Base.lproj/LaunchScreen.storyboard diff --git a/SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/Main.storyboard b/SDKIntegrationTestApps/Source/tvOSReleaseTest/Base.lproj/Main.storyboard similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/Base.lproj/Main.storyboard rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/Base.lproj/Main.storyboard 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/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/ViewController.swift b/SDKIntegrationTestApps/Source/tvOSReleaseTest/ViewController.swift similarity index 100% rename from SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/tvOSReleaseTest/ViewController.swift rename to SDKIntegrationTestApps/Source/tvOSReleaseTest/ViewController.swift diff --git a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj index acc031d5c..4ca580932 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Carthage/iOSReleaseTest.xcodeproj/project.pbxproj @@ -14,9 +14,11 @@ 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 */; }; + 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 */ @@ -53,9 +55,11 @@ 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 = ""; }; + 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 */ @@ -99,6 +103,7 @@ C119B01627ADC85C00E8C7BF /* iOSReleaseTest */ = { isa = PBXGroup; children = ( + E7ACFC622EA2C2CF00E60D8B /* 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 = ( - E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */, + E7ACFC602EA2C2C200E60D8B /* iOSReleaseTestTests.swift */, + E72CA88A2EA19F0400805780 /* TestObserver.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 */, + E7ACFC632EA2C2CF00E60D8B /* BranchSDKTest.swift in Sources */, C119B01A27ADC85C00E8C7BF /* SceneDelegate.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -240,7 +249,8 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */, + E72CA88B2EA19F0400805780 /* TestObserver.swift in Sources */, + E7ACFC612EA2C2C200E60D8B /* iOSReleaseTestTests.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -395,12 +405,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; @@ -411,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"; @@ -424,12 +438,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; @@ -440,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-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/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 1d94887a7..7b61f14bb 100644 --- a/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj +++ b/SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/iOSReleaseTest.xcodeproj/project.pbxproj @@ -15,7 +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 */; }; - C119B02C27ADC92A00E8C7BF /* iOSReleaseTest.entitlements in Resources */ = {isa = PBXBuildFile; fileRef = C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */; }; + 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 */ @@ -41,9 +42,10 @@ 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 = ""; }; + 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 = ""; }; FD6F9153F98F7AA38E9A2DCF /* Pods_iOSReleaseTestTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_iOSReleaseTestTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -103,7 +105,7 @@ C119B01627ADC85C00E8C7BF /* iOSReleaseTest */ = { isa = PBXGroup; children = ( - C119B02B27ADC8FB00E8C7BF /* iOSReleaseTest.entitlements */, + E72475752EA838DB002F7026 /* BranchSDKTest.swift */, C119B01727ADC85C00E8C7BF /* AppDelegate.swift */, C119B01927ADC85C00E8C7BF /* SceneDelegate.swift */, C119B01B27ADC85C00E8C7BF /* ViewController.swift */, @@ -112,7 +114,8 @@ C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */, C119B02527ADC85E00E8C7BF /* Info.plist */, ); - path = iOSReleaseTest; + name = iOSReleaseTest; + path = ../Source/iOSReleaseTest; sourceTree = ""; }; E763E99B29354DA30053F490 /* Frameworks */ = { @@ -127,9 +130,11 @@ E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */ = { isa = PBXGroup; children = ( + E72CA8862EA19EA500805780 /* TestObserver.swift */, E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */, ); - path = iOSReleaseTestTests; + name = iOSReleaseTestTests; + path = ../Source/IntegrationTests; sourceTree = ""; }; /* End PBXGroup section */ @@ -217,7 +222,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 */, @@ -242,10 +246,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 +311,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 +333,7 @@ files = ( C119B01C27ADC85C00E8C7BF /* ViewController.swift in Sources */, C119B01827ADC85C00E8C7BF /* AppDelegate.swift in Sources */, + E72475762EA838DB002F7026 /* BranchSDKTest.swift in Sources */, C119B01A27ADC85C00E8C7BF /* SceneDelegate.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -330,6 +343,7 @@ buildActionMask = 2147483647; files = ( E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */, + E72CA8872EA19EA500805780 /* TestObserver.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -485,12 +499,15 @@ 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 = "Apple Development"; + "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 +518,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 +534,15 @@ 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 = "Apple Development"; + "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 +553,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"; @@ -545,14 +569,20 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_IDENTITY = "Apple Development"; + "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 = com.SamSolutions.iOSReleaseTestTests; + 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"; @@ -566,14 +596,20 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_IDENTITY = "Apple Development"; + "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 = com.SamSolutions.iOSReleaseTestTests; + 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"; 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 7cb6fcafa..000000000 --- a/SDKIntegrationTestApps/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/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 dc0ea48ed..000000000 --- a/SDKIntegrationTestApps/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/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..93924977b 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,6 +55,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 = ""; }; + 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 = ""; }; E7A0C2F929898E4B0024497D /* BranchSDKTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BranchSDKTest.swift; sourceTree = ""; }; @@ -111,15 +113,18 @@ C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */, C119B02527ADC85E00E8C7BF /* Info.plist */, ); - path = iOSReleaseTest; + name = iOSReleaseTest; + path = ../Source/iOSReleaseTest; sourceTree = ""; }; E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */ = { isa = PBXGroup; children = ( + E72CA88C2EA19F5800805780 /* TestObserver.swift */, E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */, ); - path = iOSReleaseTestTests; + name = iOSReleaseTestTests; + path = ../Source/IntegrationTests; sourceTree = ""; }; E7A0C2FB2989914A0024497D /* Frameworks */ = { @@ -245,6 +250,7 @@ buildActionMask = 2147483647; files = ( E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */, + E72CA88D2EA19F5800805780 /* TestObserver.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -399,12 +405,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; @@ -415,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"; @@ -428,12 +438,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; @@ -444,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-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/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..61b207a8b 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,6 +55,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 = ""; }; + 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 = ""; }; E7A0C2F929898E4B0024497D /* BranchSDKTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BranchSDKTest.swift; sourceTree = ""; }; @@ -111,15 +113,18 @@ C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */, C119B02527ADC85E00E8C7BF /* Info.plist */, ); - path = iOSReleaseTest; + name = iOSReleaseTest; + path = ../Source/iOSReleaseTest; sourceTree = ""; }; E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */ = { isa = PBXGroup; children = ( + E72CA8882EA19ED900805780 /* TestObserver.swift */, E7939C0329749D3C00B90B82 /* iOSReleaseTestTests.swift */, ); - path = iOSReleaseTestTests; + name = iOSReleaseTestTests; + path = ../Source/IntegrationTests; sourceTree = ""; }; E7A0C2FB2989914A0024497D /* Frameworks */ = { @@ -245,6 +250,7 @@ buildActionMask = 2147483647; files = ( E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */, + E72CA8892EA19ED900805780 /* TestObserver.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -399,12 +405,12 @@ 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; + 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; @@ -415,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; @@ -428,12 +434,12 @@ 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; + 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; @@ -444,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; @@ -463,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; @@ -483,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; 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/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 265c98fdb..002e3a0e1 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 = ""; }; @@ -71,7 +73,7 @@ children = ( E73878F42988A7DC00BD3981 /* Packages */, C119B01627ADC85C00E8C7BF /* iOSReleaseTest */, - E7939C0229749D3C00B90B82 /* iOSReleaseTestTests */, + E7939C0229749D3C00B90B82 /* IntegrationTests */, C119B01527ADC85C00E8C7BF /* Products */, E73878F02988A44100BD3981 /* Frameworks */, ); @@ -99,7 +101,8 @@ C119B02227ADC85E00E8C7BF /* LaunchScreen.storyboard */, C119B02527ADC85E00E8C7BF /* Info.plist */, ); - path = iOSReleaseTest; + name = iOSReleaseTest; + path = ../Source/iOSReleaseTest; sourceTree = ""; }; E73878F02988A44100BD3981 /* Frameworks */ = { @@ -117,12 +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 */ @@ -245,6 +250,7 @@ buildActionMask = 2147483647; files = ( E7939C0429749D3C00B90B82 /* iOSReleaseTestTests.swift in Sources */, + E77DEAF22E9FFEE300EDEAB4 /* TestObserver.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -399,12 +405,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 = R63EM248DP; + 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; @@ -415,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"; @@ -428,12 +438,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 = R63EM248DP; + 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; @@ -444,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"; @@ -457,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.SamSolutions.iOSReleaseTestTests; + 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"; @@ -478,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.SamSolutions.iOSReleaseTestTests; + 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"; diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/AppDelegate.swift b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/AppDelegate.swift deleted file mode 100644 index c5cc155fc..000000000 --- a/SDKIntegrationTestApps/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/iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/AccentColor.colorset/Contents.json deleted file mode 100644 index eb8789700..000000000 --- a/SDKIntegrationTestApps/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/iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 9221b9bb1..000000000 --- a/SDKIntegrationTestApps/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/iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/Contents.json b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/Contents.json deleted file mode 100644 index 73c00596a..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index 865e9329f..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Base.lproj/Main.storyboard b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Base.lproj/Main.storyboard deleted file mode 100644 index 25a763858..000000000 --- a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/Base.lproj/Main.storyboard +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/BranchSDKTest.swift b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/BranchSDKTest.swift deleted file mode 100644 index 7c1e94d7e..000000000 --- a/SDKIntegrationTestApps/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/iOSReleaseTest-SPM/iOSReleaseTest/SceneDelegate.swift b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/SceneDelegate.swift deleted file mode 100644 index 0355d0420..000000000 --- a/SDKIntegrationTestApps/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/iOSReleaseTest-SPM/iOSReleaseTest/iOSReleaseTest.entitlements b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest/iOSReleaseTest.entitlements deleted file mode 100644 index dc0ea48ed..000000000 --- a/SDKIntegrationTestApps/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/iOSReleaseTest-SPM/iOSReleaseTestTests/iOSReleaseTestTests.swift b/SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTestTests/iOSReleaseTestTests.swift deleted file mode 100644 index 789d8f9d4..000000000 --- a/SDKIntegrationTestApps/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. - } - } - -} 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. - } - } - -} 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. - } - } - -}