diff --git a/.github/mini_flows/build_project/action.yml b/.github/mini_flows/build_project/action.yml deleted file mode 100644 index d6ee1b932..000000000 --- a/.github/mini_flows/build_project/action.yml +++ /dev/null @@ -1,6 +0,0 @@ -runs: - using: "composite" - steps: - - name: Build project - shell: bash - run: xcodebuild clean build -workspace CleverTapSDK.xcworkspace -scheme CleverTapSDK -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.2' diff --git a/.github/mini_flows/install_dependencies/action.yml b/.github/mini_flows/install_dependencies/action.yml deleted file mode 100644 index db4bbb2e1..000000000 --- a/.github/mini_flows/install_dependencies/action.yml +++ /dev/null @@ -1,8 +0,0 @@ -runs: - using: "composite" - steps: - - name: Install dependencies - shell: bash - run: | - sudo gem install cocoapods - pod install diff --git a/.github/mini_flows/mandatory_filechanges/action.yml b/.github/mini_flows/mandatory_filechanges/action.yml deleted file mode 100644 index 09e279faf..000000000 --- a/.github/mini_flows/mandatory_filechanges/action.yml +++ /dev/null @@ -1,18 +0,0 @@ -runs: - using: "composite" - steps: - - name: Setup Path Filter task and Execute - uses: dorny/paths-filter@v2 - id: filter - with: - filters: | - md: ['CHANGELOG.md'] - txt: ['sdk-version.txt'] - h: ['CleverTapSDK/CleverTapBuildInfo.h'] - - - name: FAIL if mandatory files are not changed - if: ${{ steps.filter.outputs.md == 'false' || steps.filter.outputs.podspec == 'false' || steps.filter.outputs.h == 'false'}} - uses: actions/github-script@v6 - with: - script: | - core.setFailed('Mandatory markdown files were not changed') diff --git a/.github/mini_flows/pod_lib_lint/action.yml b/.github/mini_flows/pod_lib_lint/action.yml deleted file mode 100644 index a45df4c57..000000000 --- a/.github/mini_flows/pod_lib_lint/action.yml +++ /dev/null @@ -1,7 +0,0 @@ -runs: - using: "composite" - steps: - - name: Run Pod lib lint - shell: bash - run: | - pod lib lint --allow-warnings diff --git a/.github/mini_flows/pod_release/action.yml b/.github/mini_flows/pod_release/action.yml deleted file mode 100644 index 8b461ab2b..000000000 --- a/.github/mini_flows/pod_release/action.yml +++ /dev/null @@ -1,9 +0,0 @@ -runs: - using: "composite" - steps: - - uses: actions/checkout@v1 - - name: Publish to CocoaPod register - env: - COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} - run: | - pod trunk push CleverTap-iOS-SDK.podspec --allow-warnings diff --git a/.github/mini_flows/run_tests/action.yml b/.github/mini_flows/run_tests/action.yml deleted file mode 100644 index 346e7aba7..000000000 --- a/.github/mini_flows/run_tests/action.yml +++ /dev/null @@ -1,12 +0,0 @@ -runs: - using: "composite" - steps: - - name: Run tests - shell: bash - run: xcodebuild test -workspace CleverTapSDK.xcworkspace -scheme CleverTapSDKTests -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.2' -enableCodeCoverage YES - - # - uses: kishikawakatsumi/xcresulttool@v1 - # with: - # path: '/Users/runner/work/clevertap-ios-sdk/clevertap-ios-sdk/TestResults.xcresult' - # show-code-coverage: true - # if: success() || failure() diff --git a/.github/mini_flows/setup_xcode/action.yml b/.github/mini_flows/setup_xcode/action.yml deleted file mode 100644 index 901f21c14..000000000 --- a/.github/mini_flows/setup_xcode/action.yml +++ /dev/null @@ -1,9 +0,0 @@ - runs: - using: "composite" - steps: - - name: Set up Xcode - uses: maxim-lobanov/setup-xcode@v1 - with: - xcode-version: latest-stable - - diff --git a/.github/mini_flows/validate_pr_description/action.yml b/.github/mini_flows/validate_pr_description/action.yml deleted file mode 100644 index 1054680e1..000000000 --- a/.github/mini_flows/validate_pr_description/action.yml +++ /dev/null @@ -1,11 +0,0 @@ -runs: - using: "composite" - steps: - - name: Validate PR Description - shell: bash - env: - PR_DESCRIPTION: ${{ github.event.pull_request.body }} - run: | - if [[ -z "$PR_DESCRIPTION" ]]; then - echo "::warning ::Invalid PR Description format. Please add valid description." - fi diff --git a/.github/workflows/create_draft_release.yml b/.github/workflows/create_draft_release.yml new file mode 100644 index 000000000..b594a6fce --- /dev/null +++ b/.github/workflows/create_draft_release.yml @@ -0,0 +1,69 @@ +name: Create draft release + +on: + push: + branches: + - master + workflow_dispatch: + inputs: + force_build: + description: "Force build even if sdk-version.txt has not changed" + required: false + default: "false" + +permissions: + contents: write + +jobs: + build: + runs-on: macos-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Check for sdk-version.txt Change + id: check_version + run: | + git fetch origin + if [ "${{ github.event.inputs.force_build }}" == 'true' ]; then + echo "🟠 Force build triggered. Continuing..." + elif git diff --quiet HEAD^ HEAD -- sdk-version.txt; then + echo "❌ No changes in sdk-version.txt. Exiting..." + exit 1 + fi + echo "✅ sdk-version.txt has changed. Continuing..." + + - name: Install dependencies + run: | + sudo xcode-select -s /Applications/Xcode_15.0.app + swift --version + echo "✅ Dependencies installed successfully" + + - name: Create or Update Draft Release + run: | + VERSION=$(cat sdk-version.txt) # Read the version from sdk-version.txt + TAG="$VERSION" + RELEASE_NAME="CleverTap iOS SDK $VERSION" + RELEASE_NOTES="CleverTap iOS SDK $VERSION Release Notes" + + # Check if the tag exists + if ! git rev-parse "$TAG" >/dev/null 2>&1; then + git tag "$TAG" + git push origin "$TAG" + fi + + # Check if a draft release already exists + EXISTING_RELEASE=$(gh release list --json name,tagName --jq ".[] | select(.tagName == \"$TAG\") | .tagName") + + if [ -n "$EXISTING_RELEASE" ]; then + echo "🟠 Draft release found. Skipping asset upload as S3 is used." + else + echo "🟢 No existing draft found. Creating new one..." + gh release create "$TAG" \ + --title "$RELEASE_NAME" \ + --notes "$RELEASE_NOTES" \ + --draft + echo "✅ New draft release created." + fi + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/on_pr_from_develop_to_master.yml b/.github/workflows/on_pr_from_develop_to_master.yml deleted file mode 100644 index 5a14f8fba..000000000 --- a/.github/workflows/on_pr_from_develop_to_master.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: Validate PR from develop branch to master branch - -on: - pull_request: - types: - - opened - - edited - - synchronize - branches: - - master - -jobs: - build: - runs-on: macos-latest - - steps: - - name: Checkout code - uses: actions/checkout@main - - - name: Set up Xcode - if: always() - uses: ./.github/mini_flows/setup_xcode - - - name: Install dependencies - if: always() - uses: ./.github/mini_flows/install_dependencies - - - name: Build project - if: always() - uses: ./.github/mini_flows/build_project - - - name: Run tests - if: always() - uses: ./.github/mini_flows/run_tests - - - name: Validate PR Title - if: always() - run: | - PR_TITLE="${{ github.event.pull_request.title }}" - if [[ ! $PR_TITLE =~ ^Release+ ]]; then - echo "Invalid PR title format. Please use 'Release-{version}' format." - exit 1 - fi - - - name: Validate PR Description - if: always() - uses: ./.github/mini_flows/validate_pr_description - - - name: Mandatory File Changes - if: always() - uses: ./.github/mini_flows/mandatory_filechanges - - - name: Run pod lib lint - if: always() - uses: ./.github/mini_flows/pod_lib_lint - - diff --git a/.github/workflows/on_pr_from_task_to_develop.yml b/.github/workflows/on_pr_from_task_to_develop.yml deleted file mode 100644 index b30853d06..000000000 --- a/.github/workflows/on_pr_from_task_to_develop.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: Validate PR from task branch to develop branch - -on: - pull_request: - types: - - opened - - edited - - synchronize - branches: - - develop - -permissions: write-all - -jobs: - build: - runs-on: macos-latest - - steps: - - name: Checkout code - uses: actions/checkout@main - - - name: Set up Xcode - if: always() - uses: ./.github/mini_flows/setup_xcode - - - name: Install dependencies - if: always() - uses: ./.github/mini_flows/install_dependencies - - - name: Build project - if: always() - uses: ./.github/mini_flows/build_project - - - name: Run tests - if: always() - uses: ./.github/mini_flows/run_tests - - - name: Validate PR Title - if: always() - run: | - PR_TITLE="${{ github.event.pull_request.title }}" - if [[ ! $PR_TITLE =~ ^.*SDK-[0-9].* ]]; then - echo "::warning ::Invalid PR title format. Please use 'SDK-{number}' format." - fi - - - name: Validate PR Description - if: always() - uses: ./.github/mini_flows/validate_pr_description - - diff --git a/.github/workflows/run_unit_tests.yml b/.github/workflows/run_unit_tests.yml new file mode 100644 index 000000000..cc9f9181d --- /dev/null +++ b/.github/workflows/run_unit_tests.yml @@ -0,0 +1,45 @@ +name: Run Unit Tests with Coverage + +on: + push: + branches: + - SDK-4101-swift-support + +jobs: + test: + runs-on: macos-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Xcode + run: sudo xcode-select -s /Applications/Xcode_15.0.app + + - name: Install CocoaPods dependencies + run: pod install --repo-update + + - name: Install Slather + run: gem install slather + + - name: Run Unit Tests with Coverage + run: | + xcodebuild test \ + -workspace CleverTapSDK.xcworkspace \ + -scheme CleverTapSDKTests \ + -destination 'platform=iOS Simulator,name=iPhone 15' \ + -enableCodeCoverage YES \ + -resultBundlePath TestResults.xcresult \ + FRAMEWORK_SEARCH_PATHS="./Vendors/simulator" \ + | xcpretty --color && exit ${PIPESTATUS[0]} + + - name: Generate Code Coverage Report with Slather + run: | + slather coverage --html --output-directory slather-report --scheme CleverTapSDK CleverTapSDK.xcodeproj + echo "✅ Code coverage report generated." + + - name: Upload HTML Coverage Report as Artifact + uses: actions/upload-artifact@v4 + with: + name: code-coverage-report + path: slather-report diff --git a/.github/workflows/update_package_swift.yml b/.github/workflows/update_package_swift.yml new file mode 100644 index 000000000..7150471fa --- /dev/null +++ b/.github/workflows/update_package_swift.yml @@ -0,0 +1,150 @@ +name: Update Package.swift with checksum in S3 bucket + +on: + workflow_dispatch: + inputs: + force_build: + description: 'Force build even if sdk-version.txt has not changed' + required: false + default: 'false' + push: + branches: + - SDK-4101-swift-support + +permissions: + contents: write + +jobs: + build: + runs-on: macos-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Check for sdk-version.txt Change + id: check_version + run: | + git fetch origin + if [ "${{ inputs.force_build }}" == 'true' ]; then + echo "🟠 Force build triggered. Continuing..." + elif git diff --quiet HEAD^ HEAD -- sdk-version.txt; then + echo "❌ No changes in sdk-version.txt. Exiting..." + exit 1 + fi + echo "✅ sdk-version.txt has changed. Continuing..." + + - name: Install dependencies + run: | + sudo xcode-select -s /Applications/Xcode_15.0.app + swift --version + echo "✅ Dependencies installed successfully" + + - name: Build iOS Framework + run: | + xcodebuild archive \ + -scheme CleverTapSDK \ + -sdk iphoneos \ + -destination generic/platform=iOS \ + -archivePath ./build/CleverTapSDK-iOS.xcarchive \ + SKIP_INSTALL=NO \ + BUILD_LIBRARY_FOR_DISTRIBUTION=YES + echo "📱 iOS framework built successfully" + + - name: Build iOS Simulator Framework + run: | + xcodebuild archive \ + -scheme CleverTapSDK \ + -sdk iphonesimulator \ + -destination 'generic/platform=iOS Simulator' \ + -archivePath ./build/CleverTapSDK-iOSSimulator.xcarchive \ + SKIP_INSTALL=NO \ + BUILD_LIBRARY_FOR_DISTRIBUTION=YES \ + FRAMEWORK_SEARCH_PATHS="./Vendors/simulator" + echo "🖥️ iOS Simulator framework built successfully" + + - name: Create XCFramework + run: | + xcodebuild -create-xcframework \ + -framework ./build/CleverTapSDK-iOS.xcarchive/Products/Library/Frameworks/CleverTapSDK.framework \ + -framework ./build/CleverTapSDK-iOSSimulator.xcarchive/Products/Library/Frameworks/CleverTapSDK.framework \ + -output CleverTapSDK.xcframework + + zip -r CleverTapSDK.xcframework.zip CleverTapSDK.xcframework + echo "📦 XCFramework created and zipped successfully" + + - name: Compute Checksum + id: checksum + run: | + CHECKSUM=$(swift package compute-checksum CleverTapSDK.xcframework.zip) + echo "CHECKSUM=$CHECKSUM" >> $GITHUB_ENV + echo "🔢 Checksum computed: $CHECKSUM" + + - name: Upload to S3 + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: ${{ secrets.AWS_REGION }} + S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }} + run: | + VERSION=$(cat sdk-version.txt) + S3_FILENAME="CleverTapSDK-${VERSION}.xcframework.zip" + + aws s3 cp CleverTapSDK.xcframework.zip s3://$S3_BUCKET_NAME/$S3_FILENAME + + echo "S3_FILENAME=$S3_FILENAME" >> $GITHUB_ENV + echo "✅ Uploaded to S3 as $S3_FILENAME" + + - name: Pull Latest Changes + run: | + git pull origin SDK-4101-swift-support --rebase || true + + - name: Update Package.swift + run: | + # Update Checksum + VERSION=$(cat sdk-version.txt) + S3_URL="https://d1new0xr8otir0.cloudfront.net/CleverTapSDK-${VERSION}.xcframework.zip" + + awk -v url="$S3_URL" ' + BEGIN { + found=0; + inTarget=0 + } + { + if ($0 ~ /\.binaryTarget\(/) inTarget=1 + if (inTarget && $0 ~ /name: "CleverTapSDK"/) found=1 + if (found==1 && $0 ~ /url:/) { + sub(/url: "[^"]+"/, "url: \""url"\"", $0) + found=0 + } + if ($0 ~ /\),/) inTarget=0 + print $0 + }' Package.swift > Package.swift.tmp && mv Package.swift.tmp Package.swift + + # Update Checksum + awk -v checksum="$CHECKSUM" ' + BEGIN { + found=0; + inTarget=0 + } + { + if ($0 ~ /\.binaryTarget\(/) inTarget=1 + if (inTarget && $0 ~ /name: "CleverTapSDK"/) found=1 + if (found==1 && $0 ~ /checksum:/) { + sub(/checksum: "[^"]+"/, "checksum: \""checksum"\"", $0) + found=0 + } + if ($0 ~ /\),/) inTarget=0 + print $0 + }' Package.swift > Package.swift.tmp && mv Package.swift.tmp Package.swift + echo "📝 Package.swift updated successfully" + + - name: Commit Updated Package.swift + run: | + git config user.name "github-actions" + git config user.email "github-actions@github.com" + git add Package.swift + git commit -m "Update Package.swift with new S3 URL and checksum" || echo "🟡 No changes to commit." + git push origin SDK-4101-swift-support + echo "✅ Package.swift changes committed and pushed successfully" diff --git a/.gitignore b/.gitignore index 53cbb19a0..61ee729b3 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ profile DerivedData *.hmap *.ipa +.build # Bundler .bundle diff --git a/CleverTap-iOS-SDK.podspec b/CleverTap-iOS-SDK.podspec index c385c8f27..77c430131 100644 --- a/CleverTap-iOS-SDK.podspec +++ b/CleverTap-iOS-SDK.podspec @@ -10,12 +10,16 @@ s.requires_arc = true s.module_name = 'CleverTapSDK' s.resources = 'CleverTapSDK/*.{cer}' s.resource_bundles = {'CleverTapSDK' => ['CleverTapSDK/*.{xcprivacy}']} +s.swift_version = '5.0' s.ios.dependency 'SDWebImage', '~> 5.11' s.ios.resource_bundle = {'CleverTapSDK' => ['CleverTapSDK/**/*.{png,xib,html}', 'CleverTapSDK/**/*.xcdatamodeld']} s.ios.deployment_target = '9.0' -s.ios.source_files = 'CleverTapSDK/**/*.{h,m}' +s.ios.source_files = 'CleverTapSDK/**/*.{h,m,swift}' s.ios.exclude_files = 'CleverTapSDK/include/**/*.h' -s.ios.public_header_files = 'CleverTapSDK/CleverTap.h', 'CleverTapSDK/CleverTap+SSLPinning.h','CleverTapSDK/CleverTap+Inbox.h', 'CleverTapSDK/CleverTapInstanceConfig.h', 'CleverTapSDK/CleverTapBuildInfo.h', 'CleverTapSDK/CleverTapEventDetail.h', 'CleverTapSDK/CleverTapInAppNotificationDelegate.h', 'CleverTapSDK/CleverTapSyncDelegate.h', 'CleverTapSDK/CleverTapTrackedViewController.h', 'CleverTapSDK/CleverTapUTMDetail.h', 'CleverTapSDK/CleverTapJSInterface.h', 'CleverTapSDK/CleverTap+DisplayUnit.h', 'CleverTapSDK/CleverTap+FeatureFlags.h', 'CleverTapSDK/CleverTap+ProductConfig.h', 'CleverTapSDK/CleverTapPushNotificationDelegate.h', 'CleverTapSDK/CleverTapURLDelegate.h', 'CleverTapSDK/CleverTap+InAppNotifications.h', 'CleverTapSDK/CleverTap+SCDomain.h', 'CleverTapSDK/CleverTap+PushPermission.h', 'CleverTapSDK/InApps/CTLocalInApp.h', 'CleverTapSDK/CleverTap+CTVar.h', 'CleverTapSDK/ProductExperiences/CTVar.h', 'CleverTapSDK/LeanplumCT.h', 'CleverTapSDK/InApps/CustomTemplates/CTInAppTemplateBuilder.h', 'CleverTapSDK/InApps/CustomTemplates/CTAppFunctionBuilder.h', 'CleverTapSDK/InApps/CustomTemplates/CTTemplatePresenter.h', 'CleverTapSDK/InApps/CustomTemplates/CTTemplateProducer.h', 'CleverTapSDK/InApps/CustomTemplates/CTCustomTemplateBuilder.h', 'CleverTapSDK/InApps/CustomTemplates/CTCustomTemplate.h', 'CleverTapSDK/InApps/CustomTemplates/CTTemplateContext.h', 'CleverTapSDK/InApps/CustomTemplates/CTCustomTemplatesManager.h', 'CleverTapSDK/InApps/CustomTemplates/CTJsonTemplateProducer.h' +s.ios.public_header_files = 'CleverTapSDK/CTRequestFactory.h', 'CleverTapSDK/CTRequest.h', 'CleverTapSDK/CleverTap.h', 'CleverTapSDK/CleverTap+SSLPinning.h','CleverTapSDK/CleverTap+Inbox.h', 'CleverTapSDK/CleverTapInstanceConfig.h', 'CleverTapSDK/CleverTapBuildInfo.h', 'CleverTapSDK/CleverTapEventDetail.h', 'CleverTapSDK/CleverTapInAppNotificationDelegate.h', 'CleverTapSDK/CleverTapSyncDelegate.h', 'CleverTapSDK/CleverTapTrackedViewController.h', 'CleverTapSDK/CleverTapUTMDetail.h', 'CleverTapSDK/CleverTapJSInterface.h', 'CleverTapSDK/CleverTap+DisplayUnit.h', 'CleverTapSDK/CleverTap+FeatureFlags.h', 'CleverTapSDK/CleverTap+ProductConfig.h', 'CleverTapSDK/CleverTapPushNotificationDelegate.h', 'CleverTapSDK/CleverTapURLDelegate.h', 'CleverTapSDK/CleverTap+InAppNotifications.h', 'CleverTapSDK/CleverTap+SCDomain.h', 'CleverTapSDK/CleverTap+PushPermission.h', 'CleverTapSDK/InApps/CTLocalInApp.h', 'CleverTapSDK/CleverTap+CTVar.h', 'CleverTapSDK/ProductExperiences/CTVar.h', 'CleverTapSDK/LeanplumCT.h', 'CleverTapSDK/InApps/CustomTemplates/CTInAppTemplateBuilder.h', 'CleverTapSDK/InApps/CustomTemplates/CTAppFunctionBuilder.h', 'CleverTapSDK/InApps/CustomTemplates/CTTemplatePresenter.h', 'CleverTapSDK/InApps/CustomTemplates/CTTemplateProducer.h', 'CleverTapSDK/InApps/CustomTemplates/CTCustomTemplateBuilder.h', 'CleverTapSDK/InApps/CustomTemplates/CTCustomTemplate.h', 'CleverTapSDK/InApps/CustomTemplates/CTTemplateContext.h', 'CleverTapSDK/InApps/CustomTemplates/CTCustomTemplatesManager.h', 'CleverTapSDK/InApps/CustomTemplates/CTJsonTemplateProducer.h' +# using private_header_files and module_map only includes objc headers that the sdk swift classes need to import +# s.ios.private_header_files = 'CleverTapSDK/CTRequestFactory.h', 'CleverTapSDK/CTRequest.h' +# s.ios.module_map = 'CleverTapSDK/ios.modulemap' s.tvos.deployment_target = '9.0' s.tvos.source_files = 'CleverTapSDK/*.{h,m}', 'CleverTapSDK/FileDownload/*.{h,m}', 'CleverTapSDK/ProductConfig/**/*.{h,m}', 'CleverTapSDK/FeatureFlags/**/*.{h,m}', 'CleverTapSDK/ProductExperiences/*.{h,m}', 'CleverTapSDK/Swizzling/*.{h,m}', 'CleverTapSDK/Session/*.{h,m}', 'CleverTapSDK/EventDatabase/*.{h,m}' s.tvos.exclude_files = 'CleverTapSDK/include/**/*.h', 'CleverTapSDK/CleverTapJSInterface.{h,m}', 'CleverTapSDK/CTInAppNotification.{h,m}', 'CleverTapSDK/CTNotificationButton.{h,m}', 'CleverTapSDK/CTNotificationAction.{h,m}', 'CleverTapSDK/CTPushPrimerManager.{h,m}', 'CleverTapSDK/InApps/*.{h,m}', 'CleverTapSDK/InApps/**/*.{h,m}', 'CleverTapSDK/CTInAppFCManager.{h,m}', 'CleverTapSDK/CTInAppDisplayViewController.{h,m}' diff --git a/CleverTapSDK.xcodeproj/project.pbxproj b/CleverTapSDK.xcodeproj/project.pbxproj index 1df10405e..cba75ff95 100644 --- a/CleverTapSDK.xcodeproj/project.pbxproj +++ b/CleverTapSDK.xcodeproj/project.pbxproj @@ -7,6 +7,7 @@ objects = { /* Begin PBXBuildFile section */ + 0152B59345BC5B5023436F1D /* Pods_shared_CleverTapSDKTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21F13F42C1D80813AA022BBE /* Pods_shared_CleverTapSDKTests.framework */; }; 0701E95C2372BA250034AAC2 /* CleverTap+DisplayUnit.h in Headers */ = {isa = PBXBuildFile; fileRef = 0701E95A2372BA250034AAC2 /* CleverTap+DisplayUnit.h */; settings = {ATTRIBUTES = (Public, ); }; }; 0701E9622372C1950034AAC2 /* CTDisplayUnitController.h in Headers */ = {isa = PBXBuildFile; fileRef = 0701E9602372C1950034AAC2 /* CTDisplayUnitController.h */; }; 0701E9632372C1950034AAC2 /* CTDisplayUnitController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0701E9612372C1950034AAC2 /* CTDisplayUnitController.m */; }; @@ -95,7 +96,6 @@ 072F9E3F21B1368000BC6313 /* CTInboxIconMessageCell~port.xib in Resources */ = {isa = PBXBuildFile; fileRef = 072F9E3C21B1368000BC6313 /* CTInboxIconMessageCell~port.xib */; }; 072F9E4221B14ECC00BC6313 /* CTInboxMessageActionView.h in Headers */ = {isa = PBXBuildFile; fileRef = 072F9E4021B14ECC00BC6313 /* CTInboxMessageActionView.h */; settings = {ATTRIBUTES = (Private, ); }; }; 072F9E4321B14ECC00BC6313 /* CTInboxMessageActionView.m in Sources */ = {isa = PBXBuildFile; fileRef = 072F9E4121B14ECC00BC6313 /* CTInboxMessageActionView.m */; }; - 0781852B229FBD5100A72B07 /* SDWebImage.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D09A5E0221EA33C50032DDDF /* SDWebImage.framework */; }; 078C63A922420321001FDDB8 /* CleverTapJSInterface.h in Headers */ = {isa = PBXBuildFile; fileRef = 078C63A722420321001FDDB8 /* CleverTapJSInterface.h */; settings = {ATTRIBUTES = (Public, ); }; }; 078C63AA22420321001FDDB8 /* CleverTapJSInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 078C63A822420321001FDDB8 /* CleverTapJSInterface.m */; }; 07961B7621B50A4C0081953E /* CleverTapInboxMessageContent.m in Sources */ = {isa = PBXBuildFile; fileRef = 07961B7421B50A4C0081953E /* CleverTapInboxMessageContent.m */; }; @@ -152,7 +152,6 @@ 07FD65A4223BCB8200A845B7 /* CTCoverViewController~ipadland.xib in Resources */ = {isa = PBXBuildFile; fileRef = 07FD65A3223BCB8200A845B7 /* CTCoverViewController~ipadland.xib */; }; 0B5564562C25946C00B87284 /* CTUserInfoMigratorTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B5564552C25946C00B87284 /* CTUserInfoMigratorTest.m */; }; 0B995A4A2C36AEDC00AF6006 /* CTLocalDataStoreTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B995A492C36AEDC00AF6006 /* CTLocalDataStoreTests.m */; }; - 1F1C18806B7F29B3374F2448 /* libPods-shared-CleverTapSDKTestsApp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E303560B5EE1D154C1E3D9EF /* libPods-shared-CleverTapSDKTestsApp.a */; }; 32394C1F29FA251E00956058 /* CTEventBuilderTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 32394C1E29FA251E00956058 /* CTEventBuilderTest.m */; }; 32394C2129FA264B00956058 /* CTPreferencesTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 32394C2029FA264B00956058 /* CTPreferencesTest.m */; }; 32394C2529FA272600956058 /* CTValidatorTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 32394C2429FA272600956058 /* CTValidatorTest.m */; }; @@ -160,10 +159,11 @@ 3242D7DB2B1DDA2E00A5E37A /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 3242D7DA2B1DDA2E00A5E37A /* PrivacyInfo.xcprivacy */; }; 32790957299CC099001FE140 /* CTUtilsTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 32790956299CC099001FE140 /* CTUtilsTest.m */; }; 32790959299F4B29001FE140 /* CTDeviceInfoTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 32790958299F4B29001FE140 /* CTDeviceInfoTest.m */; }; + 3A79E49CFAA0CC5F8FCCE7FC /* Pods_shared_CleverTapSDKTestsApp.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DA0E02B1B36855C058BBB2D4 /* Pods_shared_CleverTapSDKTestsApp.framework */; }; 4803951B2A7ABAD200C4D254 /* CTAES.m in Sources */ = {isa = PBXBuildFile; fileRef = 480395192A7ABAD200C4D254 /* CTAES.m */; }; 4803951C2A7ABAD200C4D254 /* CTAES.h in Headers */ = {isa = PBXBuildFile; fileRef = 4803951A2A7ABAD200C4D254 /* CTAES.h */; }; 4806346F2CEB620400E39E9B /* CTInAppDisplayViewControllerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4806346E2CEB620400E39E9B /* CTInAppDisplayViewControllerTests.m */; }; - 4808030E292EB4FB00C06E2F /* CleverTap+PushPermission.h in Headers */ = {isa = PBXBuildFile; fileRef = 4808030D292EB4FB00C06E2F /* CleverTap+PushPermission.h */; }; + 4808030E292EB4FB00C06E2F /* CleverTap+PushPermission.h in Headers */ = {isa = PBXBuildFile; fileRef = 4808030D292EB4FB00C06E2F /* CleverTap+PushPermission.h */; settings = {ATTRIBUTES = (Public, ); }; }; 48080311292EB50D00C06E2F /* CTLocalInApp.h in Headers */ = {isa = PBXBuildFile; fileRef = 4808030F292EB50D00C06E2F /* CTLocalInApp.h */; settings = {ATTRIBUTES = (Public, ); }; }; 48080312292EB50D00C06E2F /* CTLocalInApp.m in Sources */ = {isa = PBXBuildFile; fileRef = 48080310292EB50D00C06E2F /* CTLocalInApp.m */; }; 4847D16D2CCB90E0008DC327 /* CTEventDatabase.h in Headers */ = {isa = PBXBuildFile; fileRef = 4847D16C2CCB90E0008DC327 /* CTEventDatabase.h */; }; @@ -201,6 +201,8 @@ 4E1F156627709304009387AE /* inapp_interstitial.json in Resources */ = {isa = PBXBuildFile; fileRef = 4E1F156427709304009387AE /* inapp_interstitial.json */; }; 4E1F156827709849009387AE /* app_inbox.json in Resources */ = {isa = PBXBuildFile; fileRef = 4E1F156727709848009387AE /* app_inbox.json */; }; 4E1F156927709849009387AE /* app_inbox.json in Resources */ = {isa = PBXBuildFile; fileRef = 4E1F156727709848009387AE /* app_inbox.json */; }; + 4E23D7C72D780F4C008E6707 /* CTNewFeature.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E23D7C62D780F4C008E6707 /* CTNewFeature.swift */; }; + 4E23D7C82D780F4C008E6707 /* CTNewFeature.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E23D7C62D780F4C008E6707 /* CTNewFeature.swift */; }; 4E25E3C1278887A70008C888 /* CTIdentityRepo.h in Headers */ = {isa = PBXBuildFile; fileRef = 4E49AE42275D00E80074A774 /* CTIdentityRepo.h */; }; 4E25E3C2278887A70008C888 /* CTIdentityRepoFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = 4E49AE57275D31910074A774 /* CTIdentityRepoFactory.h */; }; 4E25E3C3278887A70008C888 /* CTFlexibleIdentityRepo.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E49AE4C275D08C50074A774 /* CTFlexibleIdentityRepo.m */; }; @@ -292,13 +294,13 @@ 4EB4C8BE2AAD91AC00B7F045 /* CTTriggerEvaluator.h in Headers */ = {isa = PBXBuildFile; fileRef = 4EB4C8BC2AAD91AC00B7F045 /* CTTriggerEvaluator.h */; }; 4EB4C8BF2AAD91AC00B7F045 /* CTTriggerEvaluator.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EB4C8BD2AAD91AC00B7F045 /* CTTriggerEvaluator.m */; }; 4ECD88312ADC8A05003885CE /* CTSessionManagerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4ECD88302ADC8A05003885CE /* CTSessionManagerTests.m */; }; + 4EE8CE7F2D9165080005F2E2 /* SDWebImage.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4EE8CE7E2D9164FC0005F2E2 /* SDWebImage.framework */; }; 4EED219B29AF6368006CEA19 /* CTVarCacheTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EED219A29AF6368006CEA19 /* CTVarCacheTest.m */; }; 4EF0D5452AD84BCA0044C48F /* CTSessionManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 4EF0D5432AD84BCA0044C48F /* CTSessionManager.h */; }; 4EF0D5462AD84BCA0044C48F /* CTSessionManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 4EF0D5432AD84BCA0044C48F /* CTSessionManager.h */; }; 4EF0D5472AD84BCA0044C48F /* CTSessionManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EF0D5442AD84BCA0044C48F /* CTSessionManager.m */; }; 4EF0D5482AD84BCA0044C48F /* CTSessionManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EF0D5442AD84BCA0044C48F /* CTSessionManager.m */; }; 4EFC642B2AB44CF900F01414 /* CTLimitsMatcherTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EFC642A2AB44CF900F01414 /* CTLimitsMatcherTest.m */; }; - 55BC2486DE562AE8CF4F77C4 /* libPods-shared-CleverTapSDKTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EC3B716CFCA79A3703457CEC /* libPods-shared-CleverTapSDKTests.a */; }; 5709005327FD8E1F0011B89F /* CleverTap+SCDomain.h in Headers */ = {isa = PBXBuildFile; fileRef = 5709005227FD8E1E0011B89F /* CleverTap+SCDomain.h */; settings = {ATTRIBUTES = (Public, ); }; }; 57D2E1C82684B1630068E45A /* CleverTap.h in Headers */ = {isa = PBXBuildFile; fileRef = D0C7BBC8207D8837001345EF /* CleverTap.h */; settings = {ATTRIBUTES = (Public, ); }; }; 57EDC7A12683845B001DD157 /* CleverTap+InAppNotifications.h in Headers */ = {isa = PBXBuildFile; fileRef = 57EDC7A02683845B001DD157 /* CleverTap+InAppNotifications.h */; settings = {ATTRIBUTES = (Public, ); }; }; @@ -512,7 +514,6 @@ D0213D54207D93C300FE5740 /* CTConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = D0213D53207D93C300FE5740 /* CTConstants.h */; settings = {ATTRIBUTES = (Private, ); }; }; D02AC2DB276044F70031C1BE /* CleverTapSDKTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D02AC2DA276044F70031C1BE /* CleverTapSDKTests.m */; }; D02AC2DC276044F70031C1BE /* CleverTapSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D0C7BBBD207D82C0001345EF /* CleverTapSDK.framework */; }; - D02AC2E527604E0F0031C1BE /* SDWebImage.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = D02AC2E427604E0F0031C1BE /* SDWebImage.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; D02AC2EB2767F4590031C1BE /* BaseTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = D02AC2EA2767F4580031C1BE /* BaseTestCase.m */; }; D032F3A82093EC9700F98D74 /* CTValidationResult.h in Headers */ = {isa = PBXBuildFile; fileRef = D032F3A62093EC9700F98D74 /* CTValidationResult.h */; settings = {ATTRIBUTES = (Private, ); }; }; D032F3A92093EC9700F98D74 /* CTValidationResult.m in Sources */ = {isa = PBXBuildFile; fileRef = D032F3A72093EC9700F98D74 /* CTValidationResult.m */; }; @@ -542,7 +543,6 @@ D0B044AC2769744F000ED628 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = D0B044AB2769744F000ED628 /* main.m */; }; D0B044BC27697660000ED628 /* CleverTapSDKUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = D0B044BB27697660000ED628 /* CleverTapSDKUITests.m */; }; D0B044BE27697660000ED628 /* CleverTapSDKUITestsLaunchTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D0B044BD27697660000ED628 /* CleverTapSDKUITestsLaunchTests.m */; }; - D0B044D02769933D000ED628 /* SDWebImage.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D09A5E0221EA33C50032DDDF /* SDWebImage.framework */; }; D0BD759D241760C60006EE55 /* CTProductConfigController.h in Headers */ = {isa = PBXBuildFile; fileRef = D0BD759B241760C60006EE55 /* CTProductConfigController.h */; settings = {ATTRIBUTES = (Private, ); }; }; D0BD759E241760C60006EE55 /* CTProductConfigController.m in Sources */ = {isa = PBXBuildFile; fileRef = D0BD759C241760C60006EE55 /* CTProductConfigController.m */; }; D0BD75A02417690E0006EE55 /* CleverTapProductConfigPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = D0BD759F2417690E0006EE55 /* CleverTapProductConfigPrivate.h */; settings = {ATTRIBUTES = (Private, ); }; }; @@ -601,14 +601,14 @@ /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ - D02AC2E327604DF10031C1BE /* CopyFiles */ = { + 4E7C65FC2D8971A6008115A9 /* Embed Frameworks */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = ""; dstSubfolderSpec = 10; files = ( - D02AC2E527604E0F0031C1BE /* SDWebImage.framework in CopyFiles */, ); + name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; }; D0B044CD276991D5000ED628 /* Embed Frameworks */ = { @@ -772,6 +772,7 @@ 0B995A492C36AEDC00AF6006 /* CTLocalDataStoreTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CTLocalDataStoreTests.m; sourceTree = ""; }; 0CA46771B6F202E37DAC9F70 /* Pods-shared-CleverTapSDKTestsApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-shared-CleverTapSDKTestsApp.debug.xcconfig"; path = "Target Support Files/Pods-shared-CleverTapSDKTestsApp/Pods-shared-CleverTapSDKTestsApp.debug.xcconfig"; sourceTree = ""; }; 129AEC403AFA828F591B756E /* Pods-shared-CleverTapSDKTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-shared-CleverTapSDKTests.release.xcconfig"; path = "Target Support Files/Pods-shared-CleverTapSDKTests/Pods-shared-CleverTapSDKTests.release.xcconfig"; sourceTree = ""; }; + 21F13F42C1D80813AA022BBE /* Pods_shared_CleverTapSDKTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_shared_CleverTapSDKTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 32394C1E29FA251E00956058 /* CTEventBuilderTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CTEventBuilderTest.m; sourceTree = ""; }; 32394C2029FA264B00956058 /* CTPreferencesTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CTPreferencesTest.m; sourceTree = ""; }; 32394C2229FA26DE00956058 /* CTValidationResultStackTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CTValidationResultStackTest.m; sourceTree = ""; }; @@ -811,6 +812,7 @@ 4E1F1561277090D6009387AE /* inapp_alert.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = inapp_alert.json; sourceTree = ""; }; 4E1F156427709304009387AE /* inapp_interstitial.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = inapp_interstitial.json; sourceTree = ""; }; 4E1F156727709848009387AE /* app_inbox.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = app_inbox.json; sourceTree = ""; }; + 4E23D7C62D780F4C008E6707 /* CTNewFeature.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CTNewFeature.swift; sourceTree = ""; }; 4E2BFB9A2AD69BCA00DEB247 /* XCTestCase+XCTestCase_Tests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "XCTestCase+XCTestCase_Tests.h"; sourceTree = ""; }; 4E2BFB9B2AD69BCA00DEB247 /* XCTestCase+XCTestCase_Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "XCTestCase+XCTestCase_Tests.m"; sourceTree = ""; }; 4E2CF1432AC56D8F00441E8B /* CTEncryptionTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CTEncryptionTests.m; sourceTree = ""; }; @@ -863,6 +865,7 @@ 4EC2D084278AAD8000F4DE54 /* IdentityManagementTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = IdentityManagementTests.m; sourceTree = ""; }; 4ECD88302ADC8A05003885CE /* CTSessionManagerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CTSessionManagerTests.m; sourceTree = ""; }; 4EDCDE4D278AC4DF0065E699 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; + 4EE8CE7E2D9164FC0005F2E2 /* SDWebImage.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SDWebImage.framework; path = Vendors/SDWebImage.framework; sourceTree = ""; }; 4EED219A29AF6368006CEA19 /* CTVarCacheTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CTVarCacheTest.m; sourceTree = ""; }; 4EEF4A382ADD05B600F090EB /* CTSessionManager+Tests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CTSessionManager+Tests.h"; sourceTree = ""; }; 4EF0D5432AD84BCA0044C48F /* CTSessionManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CTSessionManager.h; sourceTree = ""; }; @@ -1037,7 +1040,6 @@ D0213D53207D93C300FE5740 /* CTConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CTConstants.h; sourceTree = ""; }; D02AC2D8276044F60031C1BE /* CleverTapSDKTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CleverTapSDKTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; D02AC2DA276044F70031C1BE /* CleverTapSDKTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CleverTapSDKTests.m; sourceTree = ""; }; - D02AC2E427604E0F0031C1BE /* SDWebImage.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SDWebImage.framework; path = Vendors/SDWebImage.framework; sourceTree = ""; }; D02AC2E6276402160031C1BE /* CleverTap+Tests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CleverTap+Tests.h"; sourceTree = ""; }; D02AC2E8276402CF0031C1BE /* CleverTap+Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "CleverTap+Tests.m"; sourceTree = ""; }; D02AC2EA2767F4580031C1BE /* BaseTestCase.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BaseTestCase.m; sourceTree = ""; }; @@ -1098,8 +1100,7 @@ D0D4C9ED2414D8FD0029477E /* CleverTap+FeatureFlags.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CleverTap+FeatureFlags.h"; sourceTree = ""; }; D0D4C9F22414EE6C0029477E /* CleverTapFeatureFlags.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CleverTapFeatureFlags.m; sourceTree = ""; }; D0D4C9F42414EE770029477E /* CleverTapFeatureFlagsPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CleverTapFeatureFlagsPrivate.h; sourceTree = ""; }; - E303560B5EE1D154C1E3D9EF /* libPods-shared-CleverTapSDKTestsApp.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-shared-CleverTapSDKTestsApp.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - EC3B716CFCA79A3703457CEC /* libPods-shared-CleverTapSDKTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-shared-CleverTapSDKTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + DA0E02B1B36855C058BBB2D4 /* Pods_shared_CleverTapSDKTestsApp.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_shared_CleverTapSDKTestsApp.framework; sourceTree = BUILT_PRODUCTS_DIR; }; F9356ED32487FE4600B4F507 /* CleverTapPushNotificationDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CleverTapPushNotificationDelegate.h; sourceTree = ""; }; /* End PBXFileReference section */ @@ -1115,9 +1116,8 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - D0B044D02769933D000ED628 /* SDWebImage.framework in Frameworks */, D02AC2DC276044F70031C1BE /* CleverTapSDK.framework in Frameworks */, - 55BC2486DE562AE8CF4F77C4 /* libPods-shared-CleverTapSDKTests.a in Frameworks */, + 0152B59345BC5B5023436F1D /* Pods_shared_CleverTapSDKTests.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1125,7 +1125,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 1F1C18806B7F29B3374F2448 /* libPods-shared-CleverTapSDKTestsApp.a in Frameworks */, + 3A79E49CFAA0CC5F8FCCE7FC /* Pods_shared_CleverTapSDKTestsApp.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1141,7 +1141,7 @@ buildActionMask = 2147483647; files = ( D0CB456522EA550C000762B2 /* libicucore.tbd in Frameworks */, - 0781852B229FBD5100A72B07 /* SDWebImage.framework in Frameworks */, + 4EE8CE7F2D9165080005F2E2 /* SDWebImage.framework in Frameworks */, 07B94553219EA44100D4C542 /* libsqlite3.tbd in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -1324,8 +1324,8 @@ D0CB456422EA550C000762B2 /* libicucore.tbd */, D09A5E0221EA33C50032DDDF /* SDWebImage.framework */, 07B94552219EA44100D4C542 /* libsqlite3.tbd */, - EC3B716CFCA79A3703457CEC /* libPods-shared-CleverTapSDKTests.a */, - E303560B5EE1D154C1E3D9EF /* libPods-shared-CleverTapSDKTestsApp.a */, + 21F13F42C1D80813AA022BBE /* Pods_shared_CleverTapSDKTests.framework */, + DA0E02B1B36855C058BBB2D4 /* Pods_shared_CleverTapSDKTestsApp.framework */, ); name = Frameworks; sourceTree = ""; @@ -1728,7 +1728,7 @@ D0C7BBB3207D82C0001345EF = { isa = PBXGroup; children = ( - D02AC2E427604E0F0031C1BE /* SDWebImage.framework */, + 4EE8CE7E2D9164FC0005F2E2 /* SDWebImage.framework */, D0C7BBBF207D82C0001345EF /* CleverTapSDK */, D02AC2D9276044F70031C1BE /* CleverTapSDKTests */, D0B044982769744E000ED628 /* CleverTapSDKTestsApp */, @@ -1772,6 +1772,7 @@ 071EB476217F6427008F0FAB /* InApps */, D0C7BBC8207D8837001345EF /* CleverTap.h */, D0C7BBC9207D8837001345EF /* CleverTap.m */, + 4E23D7C62D780F4C008E6707 /* CTNewFeature.swift */, 4E8B816A2AD2B2FD00714BB4 /* CleverTapInternal.h */, 4E8B81762AD2CB4E00714BB4 /* CTPushPrimerManager.h */, 4E8B81772AD2CB4E00714BB4 /* CTPushPrimerManager.m */, @@ -2201,7 +2202,8 @@ D02AC2D4276044F60031C1BE /* Sources */, D02AC2D5276044F60031C1BE /* Frameworks */, D02AC2D6276044F60031C1BE /* Resources */, - D02AC2E327604DF10031C1BE /* CopyFiles */, + 75B43079C73D6EA5E70E1552 /* [CP] Embed Pods Frameworks */, + 4E7C65FC2D8971A6008115A9 /* Embed Frameworks */, ); buildRules = ( ); @@ -2223,7 +2225,7 @@ D0B044942769744E000ED628 /* Frameworks */, D0B044952769744E000ED628 /* Resources */, D0B044CD276991D5000ED628 /* Embed Frameworks */, - F78D96218D1AB9DCCCA4E755 /* [CP] Copy Pods Resources */, + 76835890B351600554FF8384 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -2283,6 +2285,7 @@ TargetAttributes = { D014B8D620E2F963001E0780 = { CreatedOnToolsVersion = 10.0; + LastSwiftMigration = 1600; }; D02AC2D7276044F60031C1BE = { CreatedOnToolsVersion = 13.1; @@ -2296,6 +2299,7 @@ }; D0C7BBBC207D82C0001345EF = { CreatedOnToolsVersion = 9.3; + LastSwiftMigration = 1600; }; }; }; @@ -2434,29 +2438,41 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ - 858B88D86DA48BA298A2F1DD /* [CP] Check Pods Manifest.lock */ = { + 75B43079C73D6EA5E70E1552 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-shared-CleverTapSDKTests/Pods-shared-CleverTapSDKTests-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; + name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-shared-CleverTapSDKTests/Pods-shared-CleverTapSDKTests-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-shared-CleverTapSDKTestsApp-checkManifestLockResult.txt", + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-shared-CleverTapSDKTests/Pods-shared-CleverTapSDKTests-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 76835890B351600554FF8384 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-shared-CleverTapSDKTestsApp/Pods-shared-CleverTapSDKTestsApp-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-shared-CleverTapSDKTestsApp/Pods-shared-CleverTapSDKTestsApp-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-shared-CleverTapSDKTestsApp/Pods-shared-CleverTapSDKTestsApp-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - 8B33D4BA1074DD7E869029C5 /* [CP] Check Pods Manifest.lock */ = { + 858B88D86DA48BA298A2F1DD /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -2471,28 +2487,33 @@ outputFileListPaths = ( ); outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-shared-CleverTapSDKTests-checkManifestLockResult.txt", + "$(DERIVED_FILE_DIR)/Pods-shared-CleverTapSDKTestsApp-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - F78D96218D1AB9DCCCA4E755 /* [CP] Copy Pods Resources */ = { + 8B33D4BA1074DD7E869029C5 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-shared-CleverTapSDKTestsApp/Pods-shared-CleverTapSDKTestsApp-resources-${CONFIGURATION}-input-files.xcfilelist", ); - name = "[CP] Copy Pods Resources"; + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-shared-CleverTapSDKTestsApp/Pods-shared-CleverTapSDKTestsApp-resources-${CONFIGURATION}-output-files.xcfilelist", + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-shared-CleverTapSDKTests-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-shared-CleverTapSDKTestsApp/Pods-shared-CleverTapSDKTestsApp-resources.sh\"\n"; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; /* End PBXShellScriptBuildPhase section */ @@ -2522,6 +2543,7 @@ 4E838C43299F419900ED0875 /* ContentMerger.m in Sources */, 4E7929FC29799E8F00B81F3C /* CTDomainFactory.m in Sources */, D014B90B20E2FB7A001E0780 /* CTProfileBuilder.m in Sources */, + 4E23D7C72D780F4C008E6707 /* CTNewFeature.swift in Sources */, D014B90120E2FB4C001E0780 /* CTValidationResult.m in Sources */, 4E25E3CB278887A80008C888 /* CTLegacyIdentityRepo.m in Sources */, 4E25E3CA278887A80008C888 /* CTFlexibleIdentityRepo.m in Sources */, @@ -2768,6 +2790,7 @@ 4847D16F2CCB90F5008DC327 /* CTEventDatabase.m in Sources */, 4E49AE55275D24570074A774 /* CTValidationResultStack.m in Sources */, D01A0895207EC2D400423D6F /* CleverTapInstanceConfig.m in Sources */, + 4E23D7C82D780F4C008E6707 /* CTNewFeature.swift in Sources */, 071EB4C8217F6427008F0FAB /* CTDismissButton.m in Sources */, 6BB778C82BECEC2700A41628 /* CTCustomTemplateInAppData.m in Sources */, 4EF0D5472AD84BCA0044C48F /* CTSessionManager.m in Sources */, @@ -2832,6 +2855,8 @@ D014B8DD20E2F963001E0780 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; + CLANG_ENABLE_MODULES = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; CODE_SIGN_IDENTITY = ""; CODE_SIGN_STYLE = Manual; @@ -2851,6 +2876,7 @@ "@loader_path/Frameworks", ); MODULEMAP_FILE = CleverTapSDK/tvos.modulemap; + MODULEMAP_PRIVATE_FILE = ""; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; PRODUCT_BUNDLE_IDENTIFIER = "com.clevertap.CleverTapSDK-TVOS"; PRODUCT_MODULE_NAME = CleverTapSDK; @@ -2858,6 +2884,8 @@ PROVISIONING_PROFILE_SPECIFIER = ""; SDKROOT = appletvos; SKIP_INSTALL = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 3; TVOS_DEPLOYMENT_TARGET = 9.0; }; @@ -2866,6 +2894,8 @@ D014B8DE20E2F963001E0780 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; + CLANG_ENABLE_MODULES = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; CODE_SIGN_IDENTITY = ""; CODE_SIGN_STYLE = Manual; @@ -2885,12 +2915,14 @@ "@loader_path/Frameworks", ); MODULEMAP_FILE = CleverTapSDK/tvos.modulemap; + MODULEMAP_PRIVATE_FILE = ""; PRODUCT_BUNDLE_IDENTIFIER = "com.clevertap.CleverTapSDK-TVOS"; PRODUCT_MODULE_NAME = CleverTapSDK; PRODUCT_NAME = CleverTapSDK; PROVISIONING_PROFILE_SPECIFIER = ""; SDKROOT = appletvos; SKIP_INSTALL = YES; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 3; TVOS_DEPLOYMENT_TARGET = 9.0; }; @@ -3211,6 +3243,8 @@ isa = XCBuildConfiguration; buildSettings = { APPLICATION_EXTENSION_API_ONLY = YES; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; + CLANG_ENABLE_MODULES = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; CODE_SIGN_IDENTITY = ""; CODE_SIGN_STYLE = Manual; @@ -3242,6 +3276,7 @@ "@loader_path/Frameworks", ); MODULEMAP_FILE = CleverTapSDK/ios.modulemap; + MODULEMAP_PRIVATE_FILE = ""; ONLY_ACTIVE_ARCH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.clevertap.CleverTapSDK; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; @@ -3249,6 +3284,9 @@ "PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = ""; SKIP_INSTALL = YES; SUPPORTS_MACCATALYST = NO; + SWIFT_INCLUDE_PATHS = ""; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; @@ -3257,6 +3295,8 @@ isa = XCBuildConfiguration; buildSettings = { APPLICATION_EXTENSION_API_ONLY = YES; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; + CLANG_ENABLE_MODULES = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; CODE_SIGN_IDENTITY = ""; CODE_SIGN_STYLE = Manual; @@ -3280,12 +3320,15 @@ "@loader_path/Frameworks", ); MODULEMAP_FILE = CleverTapSDK/ios.modulemap; + MODULEMAP_PRIVATE_FILE = ""; PRODUCT_BUNDLE_IDENTIFIER = com.clevertap.CleverTapSDK; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; PROVISIONING_PROFILE_SPECIFIER = ""; "PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = ""; SKIP_INSTALL = YES; SUPPORTS_MACCATALYST = NO; + SWIFT_INCLUDE_PATHS = ""; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; diff --git a/CleverTapSDK/CTNewFeature.swift b/CleverTapSDK/CTNewFeature.swift new file mode 100644 index 000000000..9deb76a4b --- /dev/null +++ b/CleverTapSDK/CTNewFeature.swift @@ -0,0 +1,15 @@ +// +// CTNewFeature.swift +// CleverTapSDK +// +// Created by Akash Malhotra on 14/10/24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +import Foundation + +@objc public class CTNewFeature: NSObject { + @objc public func newFeature() { + CTRequestFactory.description() + } +} diff --git a/CleverTapSDK/CTRequest.h b/CleverTapSDK/CTRequest.h index b03f0b27a..c61cae568 100644 --- a/CleverTapSDK/CTRequest.h +++ b/CleverTapSDK/CTRequest.h @@ -7,7 +7,7 @@ // #import -#import "CleverTapInstanceConfig.h" +#import typedef void (^CTNetworkResponseBlock)(NSData * _Nullable data, NSURLResponse *_Nullable response); typedef void (^CTNetworkResponseErrorBlock)(NSError * _Nullable error); diff --git a/CleverTapSDK/CTRequestFactory.h b/CleverTapSDK/CTRequestFactory.h index 634d71b7a..24fd528fc 100644 --- a/CleverTapSDK/CTRequestFactory.h +++ b/CleverTapSDK/CTRequestFactory.h @@ -8,7 +8,6 @@ #import #import "CTRequest.h" -#import "CleverTapInstanceConfig.h" @interface CTRequestFactory : NSObject diff --git a/CleverTapSDK/CleverTap.m b/CleverTapSDK/CleverTap.m index 30e0cd21a..17e588be8 100644 --- a/CleverTapSDK/CleverTap.m +++ b/CleverTapSDK/CleverTap.m @@ -100,6 +100,11 @@ #import "NSDictionary+Extensions.h" #import "CTAES.h" +#if __has_include() +#import +#else +#import "CleverTapSDK-Swift.h" +#endif #import @@ -295,6 +300,7 @@ @implementation CleverTap #pragma mark - Lifecycle + (void)load { + [[[CTNewFeature alloc]init]newFeature]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onDidFinishLaunchingNotification:) name:UIApplicationDidFinishLaunchingNotification object:nil]; } diff --git a/CleverTapSDK/ios.modulemap b/CleverTapSDK/ios.modulemap index 9d8d1e312..4d44b8d5d 100644 --- a/CleverTapSDK/ios.modulemap +++ b/CleverTapSDK/ios.modulemap @@ -1,4 +1,4 @@ -framework module CleverTapSDK { +framework module CleverTapSDK { header "CleverTap.h" header "CleverTap+Inbox.h" header "CleverTap+FeatureFlags.h" @@ -29,5 +29,11 @@ framework module CleverTapSDK { header "CTCustomTemplate.h" header "CTTemplateContext.h" header "CTCustomTemplatesManager.h" + header "CleverTap+PushPermission.h" + header "CTRequestFactory.h" export * + + // Private headers for swift +// header "CTRequestFactory.h" +// header "CTRequest.h" } diff --git a/CleverTapSDK/tvos.modulemap b/CleverTapSDK/tvos.modulemap index 58b53128f..8c38ac731 100644 --- a/CleverTapSDK/tvos.modulemap +++ b/CleverTapSDK/tvos.modulemap @@ -9,8 +9,10 @@ framework module CleverTapSDK { header "CleverTapUTMDetail.h" header "CleverTapTrackedViewController.h" header "CleverTapInstanceConfig.h" - header "CleverTap+CTVar.h" header "CTVar.h" + header "CleverTap+CTVar.h" header "LeanplumCT.h" export * + + // Private headers for swift } diff --git a/CleverTapSDKWrapper/Dummy.swift b/CleverTapSDKWrapper/Dummy.swift new file mode 100644 index 000000000..4ec0959a1 --- /dev/null +++ b/CleverTapSDKWrapper/Dummy.swift @@ -0,0 +1,4 @@ +// Dummy.swift +// This file is required for SPM to recognize the target +public struct CleverTapSDKWrapper { +} diff --git a/Framework/CleverTapSDK.xcframework/Info.plist b/Framework/CleverTapSDK.xcframework/Info.plist new file mode 100644 index 000000000..2c70d2bb8 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/Info.plist @@ -0,0 +1,44 @@ + + + + + AvailableLibraries + + + BinaryPath + CleverTapSDK.framework/CleverTapSDK + LibraryIdentifier + ios-arm64_x86_64-simulator + LibraryPath + CleverTapSDK.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + ios + SupportedPlatformVariant + simulator + + + BinaryPath + CleverTapSDK.framework/CleverTapSDK + LibraryIdentifier + ios-arm64 + LibraryPath + CleverTapSDK.framework + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + + + CFBundlePackageType + XFWK + XCFrameworkFormatVersion + 1.0 + + diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/AmazonRootCA1.cer b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/AmazonRootCA1.cer new file mode 100644 index 000000000..86b7dcd0b Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/AmazonRootCA1.cer differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCarouselImageMessageCell~land.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCarouselImageMessageCell~land.nib new file mode 100644 index 000000000..382caaa23 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCarouselImageMessageCell~land.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCarouselImageMessageCell~port.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCarouselImageMessageCell~port.nib new file mode 100644 index 000000000..cddddfdfe Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCarouselImageMessageCell~port.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCarouselImageView.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCarouselImageView.nib new file mode 100644 index 000000000..3117076de Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCarouselImageView.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCarouselMessageCell~land.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCarouselMessageCell~land.nib new file mode 100644 index 000000000..ad57567fe Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCarouselMessageCell~land.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCarouselMessageCell~port.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCarouselMessageCell~port.nib new file mode 100644 index 000000000..e89abae60 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCarouselMessageCell~port.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverImageViewController~ipad.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverImageViewController~ipad.nib new file mode 100644 index 000000000..87f4ead83 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverImageViewController~ipad.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverImageViewController~ipadland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverImageViewController~ipadland.nib new file mode 100644 index 000000000..5afc76f05 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverImageViewController~ipadland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverImageViewController~iphoneland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverImageViewController~iphoneland.nib new file mode 100644 index 000000000..a2d25ead9 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverImageViewController~iphoneland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverImageViewController~iphoneport.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverImageViewController~iphoneport.nib new file mode 100644 index 000000000..588fb233a Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverImageViewController~iphoneport.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverViewController~ipad.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverViewController~ipad.nib new file mode 100644 index 000000000..fc298f939 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverViewController~ipad.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverViewController~ipadland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverViewController~ipadland.nib new file mode 100644 index 000000000..ef73dc243 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverViewController~ipadland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverViewController~iphoneland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverViewController~iphoneland.nib new file mode 100644 index 000000000..7875ca66b Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverViewController~iphoneland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverViewController~iphoneport.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverViewController~iphoneport.nib new file mode 100644 index 000000000..ca6ab7f24 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTCoverViewController~iphoneport.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTFooterViewController~ipad.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTFooterViewController~ipad.nib new file mode 100644 index 000000000..81d3dc746 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTFooterViewController~ipad.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTFooterViewController~ipadland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTFooterViewController~ipadland.nib new file mode 100644 index 000000000..e773aaabb Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTFooterViewController~ipadland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTFooterViewController~iphoneland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTFooterViewController~iphoneland.nib new file mode 100644 index 000000000..af2fd210c Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTFooterViewController~iphoneland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTFooterViewController~iphoneport.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTFooterViewController~iphoneport.nib new file mode 100644 index 000000000..a13f9ddd0 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTFooterViewController~iphoneport.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialImageViewController~ipad.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialImageViewController~ipad.nib new file mode 100644 index 000000000..40ea37a16 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialImageViewController~ipad.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialImageViewController~ipadland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialImageViewController~ipadland.nib new file mode 100644 index 000000000..767d05ead Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialImageViewController~ipadland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialImageViewController~iphoneland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialImageViewController~iphoneland.nib new file mode 100644 index 000000000..2116e0555 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialImageViewController~iphoneland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialImageViewController~iphoneport.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialImageViewController~iphoneport.nib new file mode 100644 index 000000000..5f8023846 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialImageViewController~iphoneport.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialViewController~ipad.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialViewController~ipad.nib new file mode 100644 index 000000000..800f88dec Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialViewController~ipad.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialViewController~ipadland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialViewController~ipadland.nib new file mode 100644 index 000000000..fbfa7f092 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialViewController~ipadland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialViewController~iphoneland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialViewController~iphoneland.nib new file mode 100644 index 000000000..6c3dcaf18 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialViewController~iphoneland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialViewController~iphoneport.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialViewController~iphoneport.nib new file mode 100644 index 000000000..8c91b3f3c Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHalfInterstitialViewController~iphoneport.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHeaderViewController~ipad.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHeaderViewController~ipad.nib new file mode 100644 index 000000000..fb6d9984d Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHeaderViewController~ipad.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHeaderViewController~ipadland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHeaderViewController~ipadland.nib new file mode 100644 index 000000000..2945cafa1 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHeaderViewController~ipadland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHeaderViewController~iphoneland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHeaderViewController~iphoneland.nib new file mode 100644 index 000000000..6c3c5b209 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHeaderViewController~iphoneland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHeaderViewController~iphoneport.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHeaderViewController~iphoneport.nib new file mode 100644 index 000000000..268577b64 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTHeaderViewController~iphoneport.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInboxIconMessageCell~land.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInboxIconMessageCell~land.nib new file mode 100644 index 000000000..3ebabdb42 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInboxIconMessageCell~land.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInboxIconMessageCell~port.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInboxIconMessageCell~port.nib new file mode 100644 index 000000000..edbcef96e Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInboxIconMessageCell~port.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInboxSimpleMessageCell~land.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInboxSimpleMessageCell~land.nib new file mode 100644 index 000000000..2814a9694 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInboxSimpleMessageCell~land.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInboxSimpleMessageCell~port.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInboxSimpleMessageCell~port.nib new file mode 100644 index 000000000..8e0510545 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInboxSimpleMessageCell~port.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialImageViewController~ipad.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialImageViewController~ipad.nib new file mode 100644 index 000000000..118c15d8a Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialImageViewController~ipad.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialImageViewController~ipadland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialImageViewController~ipadland.nib new file mode 100644 index 000000000..1db5ffce4 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialImageViewController~ipadland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialImageViewController~iphoneland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialImageViewController~iphoneland.nib new file mode 100644 index 000000000..0873d06f4 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialImageViewController~iphoneland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialImageViewController~iphoneport.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialImageViewController~iphoneport.nib new file mode 100644 index 000000000..d73b20b24 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialImageViewController~iphoneport.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialViewController~ipad.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialViewController~ipad.nib new file mode 100644 index 000000000..0c3a43c37 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialViewController~ipad.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialViewController~ipadland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialViewController~ipadland.nib new file mode 100644 index 000000000..b4ef0c302 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialViewController~ipadland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialViewController~iphoneland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialViewController~iphoneland.nib new file mode 100644 index 000000000..13031fdec Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialViewController~iphoneland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialViewController~iphoneport.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialViewController~iphoneport.nib new file mode 100644 index 000000000..83c4820c3 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CTInterstitialViewController~iphoneport.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CleverTapInboxViewController.nib/objects-11.0+.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CleverTapInboxViewController.nib/objects-11.0+.nib new file mode 100644 index 000000000..449cece5a Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CleverTapInboxViewController.nib/objects-11.0+.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CleverTapInboxViewController.nib/runtime.nib b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CleverTapInboxViewController.nib/runtime.nib new file mode 100644 index 000000000..8470e71cf Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CleverTapInboxViewController.nib/runtime.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CleverTapSDK b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CleverTapSDK new file mode 100755 index 000000000..c1542d04a Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/CleverTapSDK differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTAppFunctionBuilder.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTAppFunctionBuilder.h new file mode 100644 index 000000000..30459c7b7 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTAppFunctionBuilder.h @@ -0,0 +1,31 @@ +// +// CTAppFunctionBuilder.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 27.02.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#import +#import "CTCustomTemplateBuilder.h" + +NS_ASSUME_NONNULL_BEGIN + +/*! + Builder for ``CTCustomTemplate`` functions. See ``CTCustomTemplateBuilder``. + */ +@interface CTAppFunctionBuilder : CTCustomTemplateBuilder + +/*! + Use `isVisual` to set if the template has UI or not. + If set to `YES` the template is registered as part of the in-apps queue + and must be explicitly dismissed before other in-apps can be shown. + If set to `NO` the template is executed directly and does not require dismissal nor it impedes other in-apps. + + @param isVisual Whether the function will present UI. + */ +- (instancetype)initWithIsVisual:(BOOL)isVisual; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTCustomTemplate.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTCustomTemplate.h new file mode 100644 index 000000000..b326efc95 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTCustomTemplate.h @@ -0,0 +1,33 @@ +// +// CTCustomTemplate.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 27.02.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +/*! + A definition of a custom template. Can be a function or a code template. + Instances are uniquely identified by their name. + */ +@interface CTCustomTemplate : NSObject + +/*! + The name of the template. + */ +@property (nonatomic, strong, readonly) NSString *name; + +/*! + Whether the template has UI or not. + */ +@property (nonatomic, readonly) BOOL isVisual; + +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTCustomTemplateBuilder.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTCustomTemplateBuilder.h new file mode 100644 index 000000000..a713db487 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTCustomTemplateBuilder.h @@ -0,0 +1,92 @@ +// +// CTCustomTemplateBuilder.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 6.03.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#import +#import "CTTemplatePresenter.h" +#import "CTCustomTemplate.h" + +#define TEMPLATE_TYPE @"template" +#define FUNCTION_TYPE @"function" + +NS_ASSUME_NONNULL_BEGIN + +/*! + Builder for ``CTCustomTemplate``s creation. Set `name` and `presenter` before calling ``build``. + Arguments can be specified by using one of the `addArgument:` methods. Argument names must be unique. + The "." characters in template arguments' names denote hierarchical structure. + They are treated the same way as the keys within dictionaries passed to ``addArgument:withDictionary:``. + If a higher-level name (to the left of a "." symbol) matches a dictionary argument's name, + it is treated the same as if the argument was part of the dictionary itself. + + For example, the following code snippets define identical arguments: + ``` + [builder addArgument:@"map" withDictionary:@{ + @"a": @5, + @"b": @6 + }]; + ``` + and + ``` + [builder addArgument:@"map.a" withNumber:@5]; + [builder addArgument:@"map.b" withNumber:@6]; + ``` + + Methods of this class throw `NSException` with name `CleverTapCustomTemplateException` + for invalid states or parameters. Defined templates must be correct when the app is running. If such an + exception is thrown the template definition must be corrected instead of handling the error. + */ +@interface CTCustomTemplateBuilder : NSObject + +- (instancetype)init NS_UNAVAILABLE; + +/*! + The name for the template. It should be provided exactly once. + It must be unique across template definitions. + Must be non-blank. + + This method throws `NSException` with name `CleverTapCustomTemplateException` if the name is already set or the provided name is blank. + */ +- (void)setName:(NSString *)name; + +- (void)addArgument:(NSString *)name withString:(NSString *)defaultValue +NS_SWIFT_NAME(addArgument(_:string:)); + +- (void)addArgument:(NSString *)name withNumber:(NSNumber *)defaultValue +NS_SWIFT_NAME(addArgument(_:number:)); + +- (void)addArgument:(NSString *)name withBool:(BOOL)defaultValue +NS_SWIFT_NAME(addArgument(_:boolean:)); + +/*! + Add a dictionary structure to the arguments of the ``CTCustomTemplate``. + The `name` should be unique across all arguments and also + all keys in `defaultValue` should form unique names across all arguments. + + @param defaultValue The dictionary must be non-empty. Values can be of type `NSNumber` or `NSString` or another `NSDictionary` which values can also be of the same types. + */ +- (void)addArgument:(nonnull NSString *)name withDictionary:(nonnull NSDictionary *)defaultValue +NS_SWIFT_NAME(addArgument(_:dictionary:)); + +- (void)addFileArgument:(NSString *)name; + +/*! + The presenter for this template. See ``CTTemplatePresenter``. + */ +- (void)setPresenter:(id)presenter; + +/*! + Creates the ``CTCustomTemplate`` with the previously defined name, arguments and presenter. + Name and presenter must be set before calling this method. + + This method throws `NSException` with name `CleverTapCustomTemplateException` if name or presenter were not set. + */ +- (CTCustomTemplate *)build; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTCustomTemplatesManager.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTCustomTemplatesManager.h new file mode 100644 index 000000000..9334a0307 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTCustomTemplatesManager.h @@ -0,0 +1,29 @@ +// +// CTCustomTemplatesManager.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 28.02.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#import +#import "CTTemplateProducer.h" +#import "CTTemplateContext.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface CTCustomTemplatesManager : NSObject + ++ (void)registerTemplateProducer:(id)producer; + +- (instancetype)init NS_UNAVAILABLE; + +- (BOOL)isRegisteredTemplateWithName:(NSString *)name; +- (BOOL)isVisualTemplateWithName:(nonnull NSString *)name; +- (CTTemplateContext *)activeContextForTemplate:(NSString *)templateName; + +- (NSDictionary*)syncPayload; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTInAppTemplateBuilder.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTInAppTemplateBuilder.h new file mode 100644 index 000000000..e7805d08b --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTInAppTemplateBuilder.h @@ -0,0 +1,30 @@ +// +// CTInAppTemplateBuilder.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 27.02.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#import +#import "CTCustomTemplateBuilder.h" + +NS_ASSUME_NONNULL_BEGIN + +/*! + Builder for ``CTCustomTemplate`` code templates. See ``CTCustomTemplateBuilder``. + */ +@interface CTInAppTemplateBuilder : CTCustomTemplateBuilder + +- (instancetype)init; + +/*! + Action arguments are specified by name only. When the ``CTCustomTemplate`` is triggered, the configured action + can be executed through ``CTTemplateContext/triggerActionNamed:``. + Action values could either be a predefined action (like close or open-url) or а registered ``CTCustomTemplate`` function. + */ +- (void)addActionArgument:(NSString *)name; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTJsonTemplateProducer.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTJsonTemplateProducer.h new file mode 100644 index 000000000..1e6aec236 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTJsonTemplateProducer.h @@ -0,0 +1,93 @@ +// +// CTJsonTemplateProducer.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 13.09.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#import +#import "CTTemplatePresenter.h" +#import "CTTemplateProducer.h" +#import "CTCustomTemplate.h" +#import "CleverTapInstanceConfig.h" + +NS_ASSUME_NONNULL_BEGIN + +/*! + A ``CTTemplateProducer`` that creates templates based on a json definition. + */ +@interface CTJsonTemplateProducer : NSObject + +- (instancetype)init NS_UNAVAILABLE; + +/*! + Creates a template producer with a json definition, template presenter and function presenter. + + See ``CTTemplatePresenter`` for more information on the template/function presenter. + + Invalid definitions throw `NSException` with name `CleverTapCustomTemplateException` when ``defineTemplates:`` is called. + + @param jsonTemplatesDefinition A string with a json definition of templates in the following format: + ``` + { + "TemplateName": { + "type": "template", + "arguments": { + "Argument1": { + "type": "string|number|boolean|file|action|object", + "value": "val" // different type depending on "type", e.g 12.5, true, "str" or {} + }, + "Argument2": { + "type": "object", + "value": { + "Nested1": { + "type": "string|number|boolean|object", // file and action cannot be nested + "value": {} + }, + "Nested2": { + "type": "string|number|boolean|object", + "value": "val" + } + } + } + } + }, + "functionName": { + "type": "function", + "isVisual": true|false, + "arguments": { + "a": { + "type": "string|number|boolean|file|object", // action arguments are not supported for functions + "value": "val" + } + } + } + } + ``` + + @param templatePresenter A presenter for all templates in the json definitions. Required if there + is at least one template with type "template". + + @param functionPresenter A presenter for all functions in the json definitions. Required if there + is at least one template with type "function". + */ +- (nonnull instancetype)initWithJson:(nonnull NSString *)jsonTemplatesDefinition + templatePresenter:(nonnull id)templatePresenter + functionPresenter:(nonnull id)functionPresenter; + + +/*! + Creates ``CTCustomTemplate``s based on the `jsonTemplatesDefinition` this ``CTJsonTemplateProducer`` was initialized with. + + @param instanceConfig The config of the CleverTap instance. + @return A set of the custom templates created. + + This method throws an `NSException` with name `CleverTapCustomTemplateException` if an invalid JSON format or values occur while parsing `jsonTemplatesDefinition`. + See the exception reason for details. + */ +- (NSSet * _Nonnull)defineTemplates:(CleverTapInstanceConfig * _Nonnull)instanceConfig; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTLocalInApp.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTLocalInApp.h new file mode 100644 index 000000000..201411f37 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTLocalInApp.h @@ -0,0 +1,71 @@ +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSUInteger, CTLocalInAppType) { + ALERT, + HALF_INTERSTITIAL +}; + +/*! + + @abstract + The `CTLocalInApp` represents the builder class to display local in-app. + */ +@interface CTLocalInApp : NSObject + +/*! + @method + + @abstract + Initializes and returns an instance of the CTLocalInApp. + + @discussion + This method have all parameters as required fields. + + @param inAppType the local in-app type, ALERT or HALF_INTERSTITIAL + @param titleText in-app title text + @param messageText in-app message text + @param followDeviceOrientation If YES, in-app will display in both orientation. If NO, in-app will not display in landscape orientation + @param positiveBtnText in-app positive button text, eg "Allow" + @param negativeBtnText in-app negative button text, eg "Cancel" + */ +- (instancetype)initWithInAppType:(CTLocalInAppType)inAppType + titleText:(NSString *)titleText + messageText:(NSString *)messageText + followDeviceOrientation:(BOOL)followDeviceOrientation + positiveBtnText:(NSString *)positiveBtnText + negativeBtnText:(NSString *)negativeBtnText; + +/** + Returns NSDictionary having all local in-app settings as key-value pair. + */ +- (NSDictionary *)getLocalInAppSettings; + +/* ----------------- + * Optional methods. + * ----------------- + */ +- (void)setBackgroundColor:(NSString *)backgroundColor; +- (void)setTitleTextColor:(NSString *)titleTextColor; +- (void)setMessageTextColor:(NSString *)messageTextColor; +- (void)setBtnBorderRadius:(NSString *)btnBorderRadius; +- (void)setBtnTextColor:(NSString *)btnTextColor; +- (void)setBtnBorderColor:(NSString *)btnBorderColor; +- (void)setBtnBackgroundColor:(NSString *)btnBackgroundColor; +- (void)setImageUrl:(NSString *)imageUrl; + +/** + If fallbackToSettings is YES and permission is denied, then we fallback to app’s notification settings. + If fallbackToSettings is NO, then we just throw a log saying permission is denied. + */ +- (void)setFallbackToSettings:(BOOL)fallbackToSettings; + +/** + If skipAlert is YES, then we skip the settings alert dialog shown before opening app notification settings. + */ +- (void)setSkipSettingsAlert:(BOOL)skipAlert; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTTemplateContext.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTTemplateContext.h new file mode 100644 index 000000000..8160f1686 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTTemplateContext.h @@ -0,0 +1,141 @@ +// +// CTTemplateContext.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 27.02.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +/*! + Representation of the context around a ``CTCustomTemplate``. Use the `Named:` methods to obtain the + current values of the arguments. Use ``triggerActionNamed:`` to trigger template actions. + Use ``presented`` and ``dismissed`` to notify the SDK of the current state of this InApp context. + */ +@interface CTTemplateContext : NSObject + +- (instancetype)init NS_UNAVAILABLE; + +/*! + The name of the template or function. + + @return The name of the ``CTCustomTemplate``. + */ +- (NSString *)templateName +NS_SWIFT_NAME(name()); + +/*! + Retrieve a `NSString` argument by `name`. + + @return The argument value or `nil` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (nullable NSString *)stringNamed:(NSString *)name +NS_SWIFT_NAME(string(name:)); + +/*! + Retrieve a `NSNumber` argument by `name`. + + @return The argument value or `nil` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (nullable NSNumber *)numberNamed:(NSString *)name +NS_SWIFT_NAME(number(name:)); + +/*! + Retrieve a `char` argument by `name`. + + @return The argument value or `0` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (int)charNamed:(NSString *)name +NS_SWIFT_NAME(char(name:)); + +/*! + Retrieve an `int` argument by `name`. + + @return The argument value or `0` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (int)intNamed:(NSString *)name +NS_SWIFT_NAME(int(name:)); + +/*! + Retrieve a `double` argument by `name`. + + @return The argument value or `0` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (double)doubleNamed:(NSString *)name +NS_SWIFT_NAME(double(name:)); + +/*! + Retrieve a `float` argument by `name`. + + @return The argument value or `0` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (float)floatNamed:(NSString *)name +NS_SWIFT_NAME(float(name:)); + +/*! + Retrieve a `long` argument by `name`. + + @return The argument value or `0` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (long)longNamed:(NSString *)name +NS_SWIFT_NAME(long(name:)); + +/*! + Retrieve a `long long` argument by `name`. + + @return The argument value or `0` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (long long)longLongNamed:(NSString *)name +NS_SWIFT_NAME(longLong(name:)); + +/*! + Retrieve a `BOOL` argument by `name`. + + @return The argument value or `NO` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (BOOL)boolNamed:(NSString *)name +NS_SWIFT_NAME(boolean(name:)); + +/*! + Retrieve a dictionary of all arguments under `name`. Dictionary arguments will be combined with dot notation arguments. All + values are converted to their defined type in the ``CTCustomTemplate``. Action arguments are mapped to their + name as `NSString`. Returns `nil` if no arguments are found for the requested map. + + @return A dictionary of all arguments under `name` or `nil`. + */ +- (nullable NSDictionary *)dictionaryNamed:(NSString *)name +NS_SWIFT_NAME(dictionary(name:)); + +/*! + Retrieve an absolute file path argument by `name`. + + @return The argument value or `nil` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (nullable NSString *)fileNamed:(NSString *)name +NS_SWIFT_NAME(file(name:)); + +/*! + Call this method to notify the SDK the ``CTCustomTemplate`` is presented. + */ +- (void)presented; + +/*! + Trigger an action argument by `name`. + Records a "Notification Clicked" event. + */ +- (void)triggerActionNamed:(NSString *)name +NS_SWIFT_NAME(triggerAction(name:)); + +/*! + Notify the SDK that the current ``CTCustomTemplate`` is dismissed. The current ``CTCustomTemplate`` is considered to be + visible to the user until this method is called. Since the SDK can show only one InApp message at a time, all + other messages will be queued until the current one is dismissed. + */ +- (void)dismissed; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTTemplatePresenter.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTTemplatePresenter.h new file mode 100644 index 000000000..bc0db0980 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTTemplatePresenter.h @@ -0,0 +1,43 @@ +// +// TemplatePresenter.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 27.02.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#ifndef CTTemplatePresenter_h +#define CTTemplatePresenter_h + +#import "CTTemplateContext.h" + +NS_ASSUME_NONNULL_BEGIN + +/*! + A handler of custom code templates ``CTCustomTemplate``. Its methods are called when the corresponding InApp + message should be presented to the user or closed. + */ +@protocol CTTemplatePresenter + +/*! + Called when a ``CTCustomTemplate`` should be presented or a function should be executed. For visual templates + (code templates and functions with ``CTCustomTemplate/isVisual`` equals `YES`) implementing classes should use the provided + ``CTTemplateContext`` methods ``CTTemplateContext/presented`` and + ``CTTemplateContext/dismissed`` to notify the SDK of the state of the template invocation. Only + one visual template or other InApp message can be displayed at a time by the SDK and no new messages can be + shown until the current one is dismissed. + */ +- (void)onPresent:(CTTemplateContext *)context +NS_SWIFT_NAME(onPresent(context:)); + +/*! + Called when a ``CTCustomTemplate`` action Notification Close is executed. Dismiss the custom template InApp and call ``CTTemplateContext/dismissed`` to notify the SDK the template is dismissed. + */ +- (void)onCloseClicked:(CTTemplateContext *)context +NS_SWIFT_NAME(onCloseClicked(context:)); + +@end + +NS_ASSUME_NONNULL_END + +#endif /* TemplatePresenter_h */ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTTemplateProducer.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTTemplateProducer.h new file mode 100644 index 000000000..c4e727e78 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTTemplateProducer.h @@ -0,0 +1,27 @@ +// +// CTTemplateProducer.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 27.02.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#ifndef CTTemplateProducer_h +#define CTTemplateProducer_h + +#import "CTCustomTemplate.h" +#import "CleverTapInstanceConfig.h" + +@protocol CTTemplateProducer + +/*! + Defines custom templates. + + @param instanceConfig Use the config to decide which instance the templates are defined for. + + @return A set of ``CTCustomTemplate`` definitions. ``CTCustomTemplate``s are uniquely identified by their name. + */ +- (NSSet * _Nonnull)defineTemplates:(CleverTapInstanceConfig * _Nonnull)instanceConfig; + +@end +#endif /* TemplateProducer_h */ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTVar.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTVar.h new file mode 100644 index 000000000..368ea546f --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CTVar.h @@ -0,0 +1,119 @@ +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef void (^CleverTapVariablesChangedBlock)(void); +typedef void (^CleverTapFetchVariablesBlock)(BOOL success); + +@class CTVar; +/** + * Receives callbacks for {@link CTVar} + */ +NS_SWIFT_NAME(VarDelegate) +@protocol CTVarDelegate +@optional +/** + * Called when the value of the variable changes. + */ +- (void)valueDidChange:(CTVar *)variable; +/** + * Called when the file is downloaded and ready. + */ +- (void)fileIsReady:(CTVar *)var; +@end + +/** + * A variable is any part of your application that can change from an experiment. + * Check out {@link Macros the macros} for defining variables more easily. + */ +NS_SWIFT_NAME(Var) +@interface CTVar : NSObject + +@property (readonly, strong, nullable) NSString *stringValue; +@property (readonly, strong, nullable) NSNumber *numberValue; +@property (readonly, strong, nullable) id value; +@property (readonly, strong, nullable) id defaultValue; +@property (readonly, strong, nullable) NSString *fileValue; + +/** + * @{ + * Defines a {@link LPVar} + */ +- (instancetype)init NS_UNAVAILABLE; + +/** + * Returns the name of the variable. + */ +- (NSString *)name; + +/** + * Returns the components of the variable's name. + */ +- (NSArray *)nameComponents; + +/** + * Returns the default value of a variable. + */ +- (nullable id)defaultValue; + +/** + * Returns the kind of the variable. + */ +- (NSString *)kind; + +/** + * Returns whether the variable has changed since the last time the app was run. + */ +- (BOOL)hasChanged; + +/** + * Called when the value of the variable changes. + */ +- (void)onValueChanged:(CleverTapVariablesChangedBlock)block; + +/** + * Called when the value of the file variable is downloaded and ready. + */ +- (void)onFileIsReady:(CleverTapVariablesChangedBlock)block; + +/** + * Sets the delegate of the variable in order to use + * {@link CTVarDelegate::valueDidChange:} + */ +- (void)setDelegate:(nullable id )delegate; + +- (void)clearState; + +/** + * @{ + * Accessess the value(s) of the variable + */ +- (id)objectForKey:(nullable NSString *)key; +- (id)objectAtIndex:(NSUInteger )index; +- (id)objectForKeyPath:(nullable id)firstComponent, ... NS_REQUIRES_NIL_TERMINATION; +- (id)objectForKeyPathComponents:(nullable NSArray *)pathComponents; + +- (nullable NSNumber *)numberValue; +- (nullable NSString *)stringValue; +- (int)intValue; +- (double)doubleValue; +- (CGFloat)cgFloatValue; +- (float)floatValue; +- (short)shortValue; +- (BOOL)boolValue; +- (char)charValue; +- (long)longValue; +- (long long)longLongValue; +- (NSInteger)integerValue; +- (unsigned char)unsignedCharValue; +- (unsigned short)unsignedShortValue; +- (unsigned int)unsignedIntValue; +- (NSUInteger)unsignedIntegerValue; +- (unsigned long)unsignedLongValue; +- (unsigned long long)unsignedLongLongValue; +- (nullable NSString *)fileValue; +/**@}*/ +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+CTVar.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+CTVar.h new file mode 100644 index 000000000..d6c1b058a --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+CTVar.h @@ -0,0 +1,60 @@ +// +// CleverTap+CTVar.h +// CleverTapSDK +// +// Created by Akash Malhotra on 18/02/23. +// Copyright © 2023 CleverTap. All rights reserved. +// + +#import +#import "CleverTap.h" +@class CTVar; + +NS_ASSUME_NONNULL_BEGIN + +@interface CleverTap (Vars) + +- (CTVar *)defineVar:(NSString *)name +NS_SWIFT_NAME(defineVar(name:)); +- (CTVar *)defineVar:(NSString *)name withInt:(int)defaultValue +NS_SWIFT_NAME(defineVar(name:integer:)); +- (CTVar *)defineVar:(NSString *)name withFloat:(float)defaultValue +NS_SWIFT_NAME(defineVar(name:float:)); +- (CTVar *)defineVar:(NSString *)name withDouble:(double)defaultValue +NS_SWIFT_NAME(defineVar(name:double:)); +- (CTVar *)defineVar:(NSString *)name withCGFloat:(CGFloat)cgFloatValue +NS_SWIFT_NAME(defineVar(name:cgFloat:)); +- (CTVar *)defineVar:(NSString *)name withShort:(short)defaultValue +NS_SWIFT_NAME(defineVar(name:short:)); +- (CTVar *)defineVar:(NSString *)name withBool:(BOOL)defaultValue +NS_SWIFT_NAME(defineVar(name:boolean:)); +- (CTVar *)defineVar:(NSString *)name withString:(nullable NSString *)defaultValue +NS_SWIFT_NAME(defineVar(name:string:)); +- (CTVar *)defineVar:(NSString *)name withNumber:(nullable NSNumber *)defaultValue +NS_SWIFT_NAME(defineVar(name:number:)); +- (CTVar *)defineVar:(NSString *)name withInteger:(NSInteger)defaultValue +NS_SWIFT_NAME(defineVar(name:NSInteger:)); +- (CTVar *)defineVar:(NSString *)name withLong:(long)defaultValue +NS_SWIFT_NAME(defineVar(name:long:)); +- (CTVar *)defineVar:(NSString *)name withLongLong:(long long)defaultValue +NS_SWIFT_NAME(defineVar(name:longLong:)); +- (CTVar *)defineVar:(NSString *)name withUnsignedChar:(unsigned char)defaultValue +NS_SWIFT_NAME(defineVar(name:unsignedChar:)); +- (CTVar *)defineVar:(NSString *)name withUnsignedInt:(unsigned int)defaultValue +NS_SWIFT_NAME(defineVar(name:unsignedInt:)); +- (CTVar *)defineVar:(NSString *)name withUnsignedInteger:(NSUInteger)defaultValue +NS_SWIFT_NAME(defineVar(name:unsignedInteger:)); +- (CTVar *)defineVar:(NSString *)name withUnsignedLong:(unsigned long)defaultValue +NS_SWIFT_NAME(defineVar(name:unsignedLong:)); +- (CTVar *)defineVar:(NSString *)name withUnsignedLongLong:(unsigned long long)defaultValue +NS_SWIFT_NAME(defineVar(name:unsignedLongLong:)); +- (CTVar *)defineVar:(NSString *)name withUnsignedShort:(unsigned short)defaultValue +NS_SWIFT_NAME(defineVar(name:UnsignedShort:)); +- (CTVar *)defineVar:(NSString *)name withDictionary:(nullable NSDictionary *)defaultValue +NS_SWIFT_NAME(defineVar(name:dictionary:)); +- (CTVar *)defineFileVar:(NSString *)name +NS_SWIFT_NAME(defineFileVar(name:)); + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+DisplayUnit.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+DisplayUnit.h new file mode 100644 index 000000000..34398e6ab --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+DisplayUnit.h @@ -0,0 +1,158 @@ +#import +#import "CleverTap.h" +@class CleverTapDisplayUnitContent; + +/*! + + @abstract + The `CleverTapDisplayUnit` represents the display unit object. + */ +@interface CleverTapDisplayUnit : NSObject + +- (instancetype _Nullable )initWithJSON:(NSDictionary *_Nullable)json; +/*! + * json defines the display unit data in the form of NSDictionary. + */ +@property (nullable, nonatomic, copy, readonly) NSDictionary *json; +/*! + * unitID defines the display unit identifier. + */ +@property (nullable, nonatomic, copy, readonly) NSString *unitID; +/*! + * type defines the display unit type. + */ +@property (nullable, nonatomic, copy, readonly) NSString *type; +/*! + * bgColor defines the backgroundColor of the display unit. + */ +@property (nullable, nonatomic, copy, readonly) NSString *bgColor; +/*! + * customExtras defines the extra data in the form of an NSDictionary. The extra key/value pairs set in the CleverTap dashboard. + */ +@property (nullable, nonatomic, copy, readonly) NSDictionary *customExtras; +/*! + * content defines the content of the display unit. + */ +@property (nullable, nonatomic, copy, readonly) NSArray *contents; + +@end + +/*! + + @abstract + The `CleverTapDisplayUnitContent` represents the display unit content. + */ +@interface CleverTapDisplayUnitContent : NSObject +/*! + * title defines the title section of the display unit content. + */ +@property (nullable, nonatomic, copy, readonly) NSString *title; +/*! + * titleColor defines hex-code value of the title color as String. + */ +@property (nullable, nonatomic, copy, readonly) NSString *titleColor; +/*! + * message defines the message section of the display unit content. + */ +@property (nullable, nonatomic, copy, readonly) NSString *message; +/*! + * messageColor defines hex-code value of the message color as String. + */ +@property (nullable, nonatomic, copy, readonly) NSString *messageColor; +/*! + * videoPosterUrl defines video URL of the display unit as String. + */ +@property (nullable, nonatomic, copy, readonly) NSString *videoPosterUrl; +/*! + * actionUrl defines action URL of the display unit as String. + */ +@property (nullable, nonatomic, copy, readonly) NSString *actionUrl; +/*! + * mediaUrl defines media URL of the display unit as String. + */ +@property (nullable, nonatomic, copy, readonly) NSString *mediaUrl; +/*! + * iconUrl defines icon URL of the display unit as String. + */ +@property (nullable, nonatomic, copy, readonly) NSString *iconUrl; +/*! + * mediaIsAudio check whether mediaUrl is an audio. + */ +@property (nonatomic, readonly, assign) BOOL mediaIsAudio; +/*! + * mediaIsVideo check whether mediaUrl is a video. + */ +@property (nonatomic, readonly, assign) BOOL mediaIsVideo; +/*! + * mediaIsImage check whether mediaUrl is an image. + */ +@property (nonatomic, readonly, assign) BOOL mediaIsImage; +/*! + * mediaIsGif check whether mediaUrl is a gif. + */ +@property (nonatomic, readonly, assign) BOOL mediaIsGif; + +- (instancetype _Nullable )initWithJSON:(NSDictionary *_Nullable)jsonObject; + +@end + +@protocol CleverTapDisplayUnitDelegate +@optional +- (void)displayUnitsUpdated:(NSArray*_Nonnull)displayUnits; +@end + +typedef void (^CleverTapDisplayUnitSuccessBlock)(BOOL success); + +@interface CleverTap (DisplayUnit) + +/*! + @method + + @abstract + This method returns all the display units. + */ +- (NSArray*_Nonnull)getAllDisplayUnits; + +/*! + @method + + @abstract + This method return display unit for the provided unitID + */ +- (CleverTapDisplayUnit *_Nullable)getDisplayUnitForID:(NSString *_Nonnull)unitID; + +/*! + @method + + @abstract + The `CleverTapDisplayUnitDelegate` protocol provides methods for notifying + your application (the adopting delegate) about display units. + + @discussion + This sets the CleverTapDisplayUnitDelegate. + + @param delegate an object conforming to the CleverTapDisplayUnitDelegate Protocol + */ +- (void)setDisplayUnitDelegate:(id _Nonnull)delegate; + +/*! + @method + + @abstract + Record Notification Viewed for display unit. + + @param unitID unique id of the display unit + */ +- (void)recordDisplayUnitViewedEventForID:(NSString *_Nonnull)unitID; + +/*! + @method + + @abstract + Record Notification Clicked for display unit. + + @param unitID unique id of the display unit + */ +- (void)recordDisplayUnitClickedEventForID:(NSString *_Nonnull)unitID; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+FeatureFlags.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+FeatureFlags.h new file mode 100644 index 000000000..b793e3ac4 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+FeatureFlags.h @@ -0,0 +1,24 @@ +#import +#import "CleverTap.h" + +__attribute__((deprecated("This protocol has been deprecated and will be removed in the future versions of this SDK."))) +@protocol CleverTapFeatureFlagsDelegate +@optional +- (void)ctFeatureFlagsUpdated +__attribute__((deprecated("This protocol method has been deprecated and will be removed in the future versions of this SDK."))); +@end + +@interface CleverTap (FeatureFlags) +@property (atomic, strong, readonly, nonnull) CleverTapFeatureFlags *featureFlags +__attribute__((deprecated("This property has been deprecated and will be removed in the future versions of this SDK."))); +@end + +@interface CleverTapFeatureFlags : NSObject + +@property (nonatomic, weak) id _Nullable delegate +__attribute__((deprecated("This property has been deprecated and will be removed in the future versions of this SDK.")));; + +- (BOOL)get:(NSString* _Nonnull)key withDefaultValue:(BOOL)defaultValue +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK.")));; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+InAppNotifications.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+InAppNotifications.h new file mode 100644 index 000000000..70e0cbe36 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+InAppNotifications.h @@ -0,0 +1,47 @@ +#import +#import "CleverTap.h" + +@interface CleverTap (InAppNotifications) + +#if !CLEVERTAP_NO_INAPP_SUPPORT +/*! + @method + + @abstract + Suspends and saves inApp notifications until 'resumeInAppNotifications' is called for current session. + + Automatically resumes InApp notifications display on CleverTap shared instance creation. Pending inApp notifications are displayed only for current session. + */ +- (void)suspendInAppNotifications; + +/*! + @method + + @abstract + Discards inApp notifications until 'resumeInAppNotifications' is called for current session. + + Automatically resumes InApp notifications display on CleverTap shared instance creation. Pending inApp notifications are not displayed. + */ +- (void)discardInAppNotifications; + +/*! + @method + + @abstract + Resumes displaying inApps notifications and shows pending inApp notifications if any. + */ +- (void)resumeInAppNotifications; + +/*! + @method + + @abstract + Clear inApps images stored in disk cache + + @param expiredOnly when true, it delete the expired images only + */ +- (void)clearInAppResources:(BOOL)expiredOnly; + +#endif + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+Inbox.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+Inbox.h new file mode 100755 index 000000000..9674c1e25 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+Inbox.h @@ -0,0 +1,262 @@ +#import +#import "CleverTap.h" +@class CleverTapInboxMessageContent; + +/*! + + @abstract + The `CleverTapInboxMessage` represents the inbox message object. + */ + +@interface CleverTapInboxMessage : NSObject + +@property (nullable, nonatomic, copy, readonly) NSDictionary *json; +@property (nullable, nonatomic, copy, readonly) NSDictionary *customData; + +@property (nonatomic, assign, readonly) BOOL isRead; +@property (nonatomic, assign, readonly) NSUInteger date; +@property (nonatomic, assign, readonly) NSUInteger expires; +@property (nullable, nonatomic, copy, readonly) NSString *relativeDate; +@property (nullable, nonatomic, copy, readonly) NSString *type; +@property (nullable, nonatomic, copy, readonly) NSString *messageId; +@property (nullable, nonatomic, copy, readonly) NSString *campaignId; +@property (nullable, nonatomic, copy, readonly) NSString *tagString; +@property (nullable, nonatomic, copy, readonly) NSArray *tags; +@property (nullable, nonatomic, copy, readonly) NSString *orientation; +@property (nullable, nonatomic, copy, readonly) NSString *backgroundColor; +@property (nullable, nonatomic, copy, readonly) NSArray *content; + +- (void)setRead:(BOOL)read; + +@end + +/*! + + @abstract + The `CleverTapInboxMessageContent` represents the inbox message content. + */ + +@interface CleverTapInboxMessageContent : NSObject + +@property (nullable, nonatomic, copy, readonly) NSString *title; +@property (nullable, nonatomic, copy, readonly) NSString *titleColor; +@property (nullable, nonatomic, copy, readonly) NSString *message; +@property (nullable, nonatomic, copy, readonly) NSString *messageColor; +@property (nullable, nonatomic, copy, readonly) NSString *backgroundColor; +@property (nullable, nonatomic, copy, readonly) NSString *mediaUrl; +@property (nullable, nonatomic, copy, readonly) NSString *videoPosterUrl; +@property (nullable, nonatomic, copy, readonly) NSString *iconUrl; +@property (nullable, nonatomic, copy, readonly) NSString *actionUrl; +@property (nullable, nonatomic, copy, readonly) NSArray *links; +@property (nonatomic, readonly, assign) BOOL mediaIsAudio; +@property (nonatomic, readonly, assign) BOOL mediaIsVideo; +@property (nonatomic, readonly, assign) BOOL mediaIsImage; +@property (nonatomic, readonly, assign) BOOL mediaIsGif; +@property (nonatomic, readonly, assign) BOOL actionHasUrl; +@property (nonatomic, readonly, assign) BOOL actionHasLinks; + +- (NSString *_Nullable)urlForLinkAtIndex:(int)index; +- (NSDictionary *_Nullable)customDataForLinkAtIndex:(int)index; + +@end + +@protocol CleverTapInboxViewControllerDelegate +@optional +- (void)messageDidSelect:(CleverTapInboxMessage *_Nonnull)message atIndex:(int)index withButtonIndex:(int)buttonIndex; +- (void)messageButtonTappedWithCustomExtras:(NSDictionary *_Nullable)customExtras; + +@end + +/*! + + @abstract + The `CleverTapInboxStyleConfig` has all the parameters required to configure the styling of your Inbox ViewController + */ + +@interface CleverTapInboxStyleConfig : NSObject + +@property (nonatomic, strong, nullable) NSString *title; +@property (nonatomic, strong, nullable) UIColor *backgroundColor; +@property (nonatomic, strong, nullable) NSArray *messageTags; +@property (nonatomic, strong, nullable) UIColor *navigationBarTintColor; +@property (nonatomic, strong, nullable) UIColor *navigationTintColor; +@property (nonatomic, strong, nullable) UIColor *tabSelectedBgColor; +@property (nonatomic, strong, nullable) UIColor *tabSelectedTextColor; +@property (nonatomic, strong, nullable) UIColor *tabUnSelectedTextColor; +@property (nonatomic, strong, nullable) NSString *noMessageViewText; +@property (nonatomic, strong, nullable) UIColor *noMessageViewTextColor; +@property (nonatomic, strong, nullable) NSString *firstTabTitle; + +@end + +@interface CleverTapInboxViewController : UITableViewController + +@end + +typedef void (^CleverTapInboxSuccessBlock)(BOOL success); +typedef void (^CleverTapInboxUpdatedBlock)(void); + +@interface CleverTap (Inbox) + +/*! + @method + + @abstract + Initialized the inbox controller and sends a callback. + + @discussion + Use this method to initialize the inbox controller. + You must call this method separately for each instance of CleverTap. + */ + +- (void)initializeInboxWithCallback:(CleverTapInboxSuccessBlock _Nonnull)callback; + +/*! + @method + + @abstract + This method returns the total number of inbox messages for the user. + */ + +- (NSInteger)getInboxMessageCount; + +/*! + @method + + @abstract + This method returns the total number of unread inbox messages for the user. + */ + +- (NSInteger)getInboxMessageUnreadCount; + +/*! + @method + Get all the inbox messages. + + @abstract + This method returns an array of `CleverTapInboxMessage` objects for the user. + */ + +- (NSArray * _Nonnull)getAllInboxMessages; + +/*! + @method + Get all the unread inbox messages. + + @abstract + This method returns an array of unread `CleverTapInboxMessage` objects for the user. + */ + +- (NSArray * _Nonnull)getUnreadInboxMessages; + +/*! + @method + + @abstract + This method returns `CleverTapInboxMessage` object that belongs to the given messageId. + */ + +- (CleverTapInboxMessage * _Nullable)getInboxMessageForId:(NSString * _Nonnull)messageId; + +/*! + @method + + @abstract + This method deletes the given `CleverTapInboxMessage` object. + */ + +- (void)deleteInboxMessage:(CleverTapInboxMessage * _Nonnull)message; + +/*! + @method + + @abstract + This method marks the given `CleverTapInboxMessage` object as read. + */ + +- (void)markReadInboxMessage:(CleverTapInboxMessage * _Nonnull) message; + +/*! + @method + + @abstract + This method deletes `CleverTapInboxMessage` object for the given `Message Id` as String. + */ + +- (void)deleteInboxMessageForID:(NSString * _Nonnull)messageId; + +/*! + @method + + @abstract + This method deletes `CleverTapInboxMessage` objects for the given `Message Id` as a collection. + */ + +- (void)deleteInboxMessagesForIDs:(NSArray *_Nonnull)messageIds; + +/*! + @method + + @abstract + This method marks the `CleverTapInboxMessage` object as read for given 'Message Id` as String. + */ + +- (void)markReadInboxMessageForID:(NSString * _Nonnull)messageId; + +/*! + @method + + @abstract + This method marks the `CleverTapInboxMessage` object as read for given 'Message Ids` as Collection. + */ + +- (void)markReadInboxMessagesForIDs:(NSArray *_Nonnull)messageIds; + +/*! + @method + + @abstract + Register a callback block when inbox messages are updated. + */ + +- (void)registerInboxUpdatedBlock:(CleverTapInboxUpdatedBlock _Nonnull)block; + +/** + + @method + This method opens the controller to display the inbox messages. + + @abstract + The `CleverTapInboxViewControllerDelegate` protocol provides a method for notifying + your application when a inbox message is clicked (or tapped). + + The `CleverTapInboxStyleConfig` has all the parameters required to configure the styling of your Inbox ViewController + */ + +- (CleverTapInboxViewController * _Nullable)newInboxViewControllerWithConfig:(CleverTapInboxStyleConfig * _Nullable)config andDelegate:(id _Nullable )delegate; + +/*! + @method + + @abstract + Record Notification Viewed for App Inbox. + */ +- (void)recordInboxNotificationViewedEventForID:(NSString * _Nonnull)messageId; + +/*! + @method + + @abstract + Record Notification Clicked for App Inbox. + */ +- (void)recordInboxNotificationClickedEventForID:(NSString * _Nonnull)messageId; + +/*! + @method + + @abstract + This method dismisses the inbox controller + */ +- (void)dismissAppInbox; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+ProductConfig.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+ProductConfig.h new file mode 100644 index 000000000..8ab582294 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+ProductConfig.h @@ -0,0 +1,144 @@ +#import +#import "CleverTap.h" + +__attribute__((deprecated("This protocol has been deprecated and will be removed in the future versions of this SDK."))) +@protocol CleverTapProductConfigDelegate +@optional +- (void)ctProductConfigFetched +__attribute__((deprecated("This protocol method has been deprecated and will be removed in the future versions of this SDK."))); +- (void)ctProductConfigActivated +__attribute__((deprecated("This protocol method has been deprecated and will be removed in the future versions of this SDK."))); +- (void)ctProductConfigInitialized +__attribute__((deprecated("This protocol method has been deprecated and will be removed in the future versions of this SDK."))); +@end + +@interface CleverTap(ProductConfig) +@property (atomic, strong, readonly, nonnull) CleverTapProductConfig *productConfig +__attribute__((deprecated("This property has been deprecated and will be removed in the future versions of this SDK."))); +@end + + +#pragma mark - CleverTapConfigValue + +@interface CleverTapConfigValue : NSObject +/// Gets the value as a string. +@property(nonatomic, readonly, nullable) NSString *stringValue; +/// Gets the value as a number value. +@property(nonatomic, readonly, nullable) NSNumber *numberValue; +/// Gets the value as a NSData object. +@property(nonatomic, readonly, nonnull) NSData *dataValue; +/// Gets the value as a boolean. +@property(nonatomic, readonly) BOOL boolValue; +/// Gets a foundation object (NSDictionary / NSArray) by parsing the value as JSON. This method uses +/// NSJSONSerialization's JSONObjectWithData method with an options value of 0. +@property(nonatomic, readonly, nullable) id jsonValue; + +@end + +@interface CleverTapProductConfig : NSObject + +@property (nonatomic, weak) id _Nullable delegate +__attribute__((deprecated("This property has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Fetches product configs, adhering to the default minimum fetch interval. + */ + +- (void)fetch +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Fetches product configs, adhering to the specified minimum fetch interval in seconds. + */ + +- (void)fetchWithMinimumInterval:(NSTimeInterval)minimumInterval +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Sets the minimum interval between successive fetch calls. + */ + +- (void)setMinimumFetchInterval:(NSTimeInterval)minimumFetchInterval +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Activates Fetched Config data to the Active Config, so that the fetched key value pairs take effect. + */ + +- (void)activate +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Fetches and then activates the fetched product configs. + */ + +- (void)fetchAndActivate +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Sets default configs using the given Dictionary + */ + +- (void)setDefaults:(NSDictionary *_Nullable)defaults +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Sets default configs using the given plist + */ + +- (void)setDefaultsFromPlistFileName:(NSString *_Nullable)fileName +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Returns the config value of the given key + */ + +- (CleverTapConfigValue *_Nullable)get:(NSString* _Nonnull)key +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Returns the last fetch timestamp + */ + +- (NSDate *_Nullable)getLastFetchTimeStamp +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Deletes all activated, fetched and defaults configs and resets all Product Config settings. + */ + +- (void)reset +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+PushPermission.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+PushPermission.h new file mode 100644 index 000000000..833d3ccb1 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+PushPermission.h @@ -0,0 +1,69 @@ +#import +#import +#import "CleverTap.h" + +@protocol CleverTapPushPermissionDelegate + +/*! + @discussion + When an user either allow or deny permission for push notifications, + this method will be called. + + @param accepted The boolean will be true/false if notification permission is granted/denied. + */ +@optional +- (void)onPushPermissionResponse:(BOOL)accepted; +@end + + +@interface CleverTap (PushPermission) + +/*! + + @method + + @abstract + The `CleverTapPushPermissionDelegate` protocol provides methods for notifying + your application (the adopting delegate) about push permission response. + + @discussion + This sets the CleverTapPushPermissionDelegate. + + @param delegate an object conforming to the CleverTapPushPermissionDelegate Protocol + */ +- (void)setPushPermissionDelegate:(id _Nullable)delegate; + +/*! + @method + + @abstract + This method will create a push primer asking user to enable push notification. + + @param json A NSDictionary which have all fields needed to display push primer. + */ +- (void)promptPushPrimer:(NSDictionary *_Nonnull)json; + +/*! + @method + + @abstract + This method will directly show OS hard dialog for requesting push permission. + + @param showFallbackSettings If YES and permission is denied already, then we fallback to app’s notification settings. + */ +- (void)promptForPushPermission:(BOOL)showFallbackSettings; + +/*! + @method + + @abstract + Returns the push notification permission status inside completion block. + This method can be called before creating push primer and prompt push primer only if permission is denied. + + @param completion the completion block to be executed when push permission status is retrieved. + */ + +- (void)getNotificationPermissionStatusWithCompletionHandler:(void (^_Nonnull)(UNAuthorizationStatus status))completion API_AVAILABLE(ios(10.0)); + +@end + diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+SCDomain.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+SCDomain.h new file mode 100644 index 000000000..cd6ab232b --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+SCDomain.h @@ -0,0 +1,28 @@ +#import +#import "CleverTap.h" + +@class CleverTap; + +@protocol CleverTapDomainDelegate +@optional +/*! + @method + + @abstract + When conformed to `CleverTapDomainDelegate`, domain available callback will be received if domain available + + @param domain the domain to be used by SC SDK + */ +- (void)onSCDomainAvailable:(NSString* _Nonnull)domain; + +/*! + @method + + @abstract + When conformed to `CleverTapDomainDelegate`, domain unavailable callback will be received if domain not available + */ +- (void)onSCDomainUnavailable; +@end + +@interface CleverTap (SCDomain) +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+SSLPinning.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+SSLPinning.h new file mode 100644 index 000000000..6a90e9299 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap+SSLPinning.h @@ -0,0 +1,10 @@ +#import +#import "CleverTap.h" + +@interface CleverTap (SSLPinning) + +#ifdef CLEVERTAP_SSL_PINNING +@property (nonatomic, assign, readonly) BOOL sslPinningEnabled; +#endif + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap.h new file mode 100644 index 000000000..d3a4a1007 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTap.h @@ -0,0 +1,1498 @@ +#import +#import +#import + +#if defined(CLEVERTAP_HOST_WATCHOS) +#import +#endif + +#if TARGET_OS_TV +#define CLEVERTAP_TVOS 1 +#endif + +#if defined(CLEVERTAP_TVOS) +#define CLEVERTAP_NO_INAPP_SUPPORT 1 +#define CLEVERTAP_NO_REACHABILITY_SUPPORT 1 +#define CLEVERTAP_NO_INBOX_SUPPORT 1 +#define CLEVERTAP_NO_DISPLAY_UNIT_SUPPORT 1 +#define CLEVERTAP_NO_GEOFENCE_SUPPORT 1 +#endif + +@protocol CleverTapDomainDelegate; +@protocol CleverTapSyncDelegate; +@protocol CleverTapURLDelegate; +@protocol CleverTapPushNotificationDelegate; +#if !CLEVERTAP_NO_INAPP_SUPPORT +@protocol CleverTapInAppNotificationDelegate; +@class CTTemplateContext; +@protocol CTTemplateProducer; +#endif + +@protocol CTBatchSentDelegate; +@protocol CTAttachToBatchHeaderDelegate; +@protocol CTSwitchUserDelegate; + +@class CleverTapEventDetail; +@class CleverTapUTMDetail; +@class CleverTapInstanceConfig; +@class CleverTapFeatureFlags; +@class CleverTapProductConfig; + +@class CTInAppNotification; +#import "CTVar.h" + +#pragma clang diagnostic push +#pragma ide diagnostic ignored "OCUnusedMethodInspection" + +typedef NS_ENUM(int, CleverTapLogLevel) { + CleverTapLogOff = -1, + CleverTapLogInfo = 0, + CleverTapLogDebug = 1 +}; + +typedef NS_ENUM(int, CleverTapChannel) { + CleverTapPushNotification = 0, + CleverTapAppInbox = 1, + CleverTapInAppNotification = 2 +}; + +typedef NS_ENUM(int, CTSignedCallEvent) { + SIGNED_CALL_OUTGOING_EVENT = 0, + SIGNED_CALL_INCOMING_EVENT, + SIGNED_CALL_END_EVENT +}; + +typedef NS_ENUM(int, CleverTapEncryptionLevel) { + CleverTapEncryptionNone = 0, + CleverTapEncryptionMedium = 1 +}; + +typedef void (^CleverTapFetchInAppsBlock)(BOOL success); + +@interface CleverTap : NSObject + +#pragma mark - Properties + +/* ----------------------------------------------------------------------------- + * Instance Properties + */ + +/** + CleverTap Configuration (e.g. the CleverTap accountId, token, region, other configuration properties...) for this instance. + */ + +@property (nonatomic, strong, readonly, nonnull) CleverTapInstanceConfig *config; + +/** + CleverTap region/ domain value for signed call domain setup + */ +@property (nonatomic, strong, readwrite, nullable) NSString *signedCallDomain; + + +/* ------------------------------------------------------------------------------------------------------ + * Initialization + */ + +/*! + @method + + @abstract + Initializes and returns a singleton instance of the API. + + @discussion + This method will set up a singleton instance of the CleverTap class, when you want to make calls to CleverTap + elsewhere in your code, you can use this singleton or call sharedInstance. + + Returns nil if the CleverTap Account ID and Token are not provided in apps info.plist + + */ ++ (nullable instancetype)sharedInstance; + +/*! + @method + + @abstract + Initializes and returns a singleton instance of the API. + + @discussion + This method will set up a singleton instance of the CleverTap class, when you want to make calls to CleverTap + elsewhere in your code, you can use this singleton or call sharedInstanceWithCleverTapId. + + Returns nil if the CleverTap Account ID and Token are not provided in apps info.plist + + CleverTapUseCustomId key should be set to YES in apps info.plist to enable support for setting custom cleverTapID. + + */ ++ (nullable instancetype)sharedInstanceWithCleverTapID:(NSString * _Nonnull)cleverTapID; + +/*! + @method + + @abstract + Auto integrates CleverTap and initializes and returns a singleton instance of the API. + + @discussion + This method will auto integrate CleverTap to automatically handle device token registration and + push notification/url referrer tracking, and set up a singleton instance of the CleverTap class, + when you want to make calls to CleverTap elsewhere in your code, you can use this singleton or call sharedInstance. + + Returns nil if the CleverTap Account ID and Token are not provided in apps info.plist + + */ ++ (nullable instancetype)autoIntegrate; + +/*! + @method + + @abstract + Auto integrates with CleverTapID CleverTap and initializes and returns a singleton instance of the API. + + @discussion + This method will auto integrate CleverTap to automatically handle device token registration and + push notification/url referrer tracking, and set up a singleton instance of the CleverTap class, + when you want to make calls to CleverTap elsewhere in your code, you can use this singleton or call sharedInstance. + + Returns nil if the CleverTap Account ID and Token are not provided in apps info.plist + + CleverTapUseCustomId key should be set to YES in apps info.plist to enable support for setting custom cleverTapID. + + */ ++ (nullable instancetype)autoIntegrateWithCleverTapID:(NSString * _Nonnull)cleverTapID; + +/*! + @method + + @abstract + Returns the CleverTap instance corresponding to the config.accountId param. Use this for multiple instances of the SDK. + + @discussion + Create an instance of CleverTapInstanceConfig with your CleverTap Account Id, Token, Region(if any) and other optional config properties. + Passing that into this method will create (if necessary, and on all subsequent calls return) a singleton instance mapped to the config.accountId property. + + */ ++ (instancetype _Nonnull )instanceWithConfig:(CleverTapInstanceConfig * _Nonnull)config; + +/*! + @method + + @abstract + Returns the CleverTap instance corresponding to the config.accountId param. Use this for multiple instances of the SDK. + + @discussion + Create an instance of CleverTapInstanceConfig with your CleverTap Account Id, Token, Region(if any) and other optional config properties. + Passing that into this method will create (if necessary, and on all subsequent calls return) a singleton instance mapped to the config.accountId property. + + */ ++ (instancetype _Nonnull)instanceWithConfig:(CleverTapInstanceConfig * _Nonnull)config andCleverTapID:(NSString * _Nonnull)cleverTapID; + +/*! + @method + + @abstract + Returns the CleverTap instance corresponding to the CleverTap accountId param. + + @discussion + Returns the instance if such is already created, otherwise loads it from cache. + + @param accountId the CleverTap account id + */ ++ (CleverTap *_Nullable)getGlobalInstance:(NSString *_Nonnull)accountId; + +/*! + @method + + @abstract + Set the CleverTap AccountID and Token + + @discussion + Sets the CleverTap account credentials. Once thes default shared instance is intialized subsequent calls will be ignored. + Only has effect on the default shared instance. + + @param accountID the CleverTap account id + @param token the CleverTap account token + + */ ++ (void)changeCredentialsWithAccountID:(NSString * _Nonnull)accountID andToken:(NSString * _Nonnull)token __attribute__((deprecated("Deprecated as of version 3.1.7, use setCredentialsWithAccountID:andToken instead"))); + +/*! + @method + + @abstract + Set the CleverTap AccountID, Token and Region + + @discussion + Sets the CleverTap account credentials. Once the default shared instance is intialized subsequent calls will be ignored. + Only has effect on the default shared instance. + + @param accountID the CleverTap account id + @param token the CleverTap account token + @param region the dedicated CleverTap region + + */ ++ (void)changeCredentialsWithAccountID:(NSString * _Nonnull)accountID token:(NSString * _Nonnull)token region:(NSString * _Nonnull)region __attribute__((deprecated("Deprecated as of version 3.1.7, use setCredentialsWithAccountID:token:region instead"))); + +/*! + @method + + @abstract + Set the CleverTap AccountID and Token + + @discussion + Sets the CleverTap account credentials. Once the default shared instance is intialized subsequent calls will be ignored. + Only has effect on the default shared instance. + + @param accountID the CleverTap account id + @param token the CleverTap account token + + */ ++ (void)setCredentialsWithAccountID:(NSString * _Nonnull)accountID andToken:(NSString * _Nonnull)token; + +/*! + @method + + @abstract + Set the CleverTap AccountID, Token and Region + + @discussion + Sets the CleverTap account credentials. Once the default shared instance is intialized subsequent calls will be ignored. + Only has effect on the default shared instance. + + @param accountID the CleverTap account id + @param token the CleverTap account token + @param region the dedicated CleverTap region + + */ ++ (void)setCredentialsWithAccountID:(NSString * _Nonnull)accountID token:(NSString * _Nonnull)token region:(NSString * _Nonnull)region; + +/*! + @method + + @abstract + Sets the CleverTap AccountID, token and proxy domain URL + + @discussion + Sets the CleverTap account credentials and proxy domain URL. Once the default shared instance is intialized subsequent calls will be ignored. + Only has effect on the default shared instance. + + @param accountID the CleverTap account id + @param token the CleverTap account token + @param proxyDomain the domain of the proxy server eg: example.com or subdomain.example.com + */ ++ (void)setCredentialsWithAccountID:(NSString * _Nonnull)accountID token:(NSString * _Nonnull)token proxyDomain:(NSString * _Nonnull)proxyDomain; + +/*! + @method + + @abstract + Sets the CleverTap AccountID, token, proxy domain URL for APIs and spiky proxy domain URL for push impression APIs + + @discussion + Sets the CleverTap account credentials and proxy domain URL. Once the default shared instance is intialized subsequent calls will be ignored. + Only has effect on the default shared instance. + + @param accountID the CleverTap account id + @param token the CleverTap account token + @param proxyDomain the domain of the proxy server eg: example.com or subdomain.example.com + @param spikyProxyDomain the domain of the proxy server for push impression eg: example.com or subdomain.example.com + */ ++ (void)setCredentialsWithAccountID:(NSString * _Nonnull)accountID token:(NSString * _Nonnull)token proxyDomain:(NSString * _Nonnull)proxyDomain spikyProxyDomain:(NSString * _Nonnull)spikyProxyDomain; + +/*! + @method + + @abstract + notify the SDK instance of application launch + + */ +- (void)notifyApplicationLaunchedWithOptions:launchOptions; + +/* ------------------------------------------------------------------------------------------------------ + * User Profile/Action Events/Session API + */ + +/*! + @method + + @abstract + Enables the Profile/Events Read and Synchronization API + + @discussion + Call this method (typically once at app launch) to enable the Profile/Events Read and Synchronization API. + + */ ++ (void)enablePersonalization; + +/*! + @method + + @abstract + Disables the Profile/Events Read and Synchronization API + + */ ++ (void)disablePersonalization; + +/*! + @method + + @abstract + Store the users location on the default shared CleverTap instance. + + @discussion + Optional. If you're application is collection the user location you can pass it to CleverTap + for, among other things, more fine-grained geo-targeting and segmentation purposes. + + @param location CLLocationCoordiate2D + */ ++ (void)setLocation:(CLLocationCoordinate2D)location; + +/*! + @method + + @abstract + Store the users location on a particular CleverTap SDK instance. + + @discussion + Optional. If you're application is collection the user location you can pass it to CleverTap + for, among other things, more fine-grained geo-targeting and segmentation purposes. + + @param location CLLocationCoordiate2D + */ +- (void)setLocation:(CLLocationCoordinate2D)location; + +/*! + + @abstract + Posted when the CleverTap Geofences are updated. + + @discussion + Useful for accessing the CleverTap geofences + + */ +extern NSString * _Nonnull const CleverTapGeofencesDidUpdateNotification; + +/*! + @method + + @abstract + Creates a separate and distinct user profile identified by one or more of Identity or Email values, + and populated with the key-values included in the properties dictionary. + + @discussion + If your app is used by multiple users, you can use this method to assign them each a unique profile to track them separately. + + If instead you wish to assign multiple Identity and/or Email values to the same user profile, + use profilePush rather than this method. + + If none of Identity or Email is included in the properties dictionary, + all properties values will be associated with the current user profile. + + When initially installed on this device, your app is assigned an "anonymous" profile. + The first time you identify a user on this device (whether via onUserLogin or profilePush), + the "anonymous" history on the device will be associated with the newly identified user. + + Then, use this method to switch between subsequent separate identified users. + + Please note that switching from one identified user to another is a costly operation + in that the current session for the previous user is automatically closed + and data relating to the old user removed, and a new session is started + for the new user and data for that user refreshed via a network call to CleverTap. + In addition, any global frequency caps are reset as part of the switch. + + @param properties properties dictionary + + */ +- (void)onUserLogin:(NSDictionary *_Nonnull)properties; + +/*! + @method + + @abstract + Creates a separate and distinct user profile identified by one or more of Identity, Email, FBID or GPID values, + and populated with the key-values included in the properties dictionary. + + @discussion + If your app is used by multiple users, you can use this method to assign them each a unique profile to track them separately. + + If instead you wish to assign multiple Identity and/or Email values to the same user profile, + use profilePush rather than this method. + + If none of Identity or Email is included in the properties dictionary, + all properties values will be associated with the current user profile. + + When initially installed on this device, your app is assigned an "anonymous" profile. + The first time you identify a user on this device (whether via onUserLogin or profilePush), + the "anonymous" history on the device will be associated with the newly identified user. + + Then, use this method to switch between subsequent separate identified users. + + Please note that switching from one identified user to another is a costly operation + in that the current session for the previous user is automatically closed + and data relating to the old user removed, and a new session is started + for the new user and data for that user refreshed via a network call to CleverTap. + In addition, any global frequency caps are reset as part of the switch. + + CleverTapUseCustomId key should be set to YES in apps info.plist to enable support for setting custom cleverTapID. + + @param properties properties dictionary + @param cleverTapID the CleverTap id + + */ +- (void)onUserLogin:(NSDictionary *_Nonnull)properties withCleverTapID:(NSString * _Nonnull)cleverTapID; + +/*! + @method + + @abstract + Enables tracking opt out for the currently active user. + + @discussion + Use this method to opt the current user out of all event/profile tracking. + You must call this method separately for each active user profile (e.g. when switching user profiles using onUserLogin). + Once enabled, no events will be saved remotely or locally for the current user. To re-enable tracking call this method with enabled set to NO. + + @param enabled BOOL Whether tracking opt out should be enabled/disabled. + */ +- (void)setOptOut:(BOOL)enabled; + +/*! + @method + + @abstract + Disables/Enables sending events to the server. + + @discussion + If you want to stop recorded events from being sent to the server, use this method to set the SDK instance to offline. Once offline, events will be recorded and queued locally but will not be sent to the server until offline is disabled. Calling this method again with offline set to NO will allow events to be sent to server and the SDK instance will immediately attempt to send events that have been queued while offline. + + @param offline BOOL Whether sending events to servers should be disabled(TRUE)/enabled(FALSE). + */ +- (void)setOffline:(BOOL)offline; + +/*! + @method + + @abstract + Enables the reporting of device network-related information, including IP address. This reporting is disabled by default. + + @discussion + Use this method to enable device network-related information tracking, including IP address. + This reporting is disabled by default. To re-disable tracking call this method with enabled set to NO. + + @param enabled BOOL Whether device network info reporting should be enabled/disabled. + */ +- (void)enableDeviceNetworkInfoReporting:(BOOL)enabled; + +#pragma mark Profile API + +/*! + @method + + @abstract + Set properties on the current user profile. + + @discussion + Property keys must be NSString and values must be one of NSString, NSNumber, BOOL, NSDate. + + To add a multi-value (array) property value type please use profileAddValueToSet: forKey: + + @param properties properties dictionary + */ +- (void)profilePush:(NSDictionary *_Nonnull)properties; + +/*! + @method + + @abstract + Remove the property specified by key from the user profile. + + @param key key string + + */ +- (void)profileRemoveValueForKey:(NSString *_Nonnull)key; + +/*! + @method + + @abstract + Method for setting a multi-value user profile property. + + Any existing value(s) for the key will be overwritten. + + @discussion + Key must be NSString. + Values must be NSStrings. + Max 100 values, on reaching 100 cap, oldest value(s) will be removed. + + + @param key key string + @param values values NSArray + + */ +- (void)profileSetMultiValues:(NSArray *_Nonnull)values forKey:(NSString *_Nonnull)key; + +/*! + @method + + @abstract + Method for adding a unique value to a multi-value profile property (or creating if not already existing). + + If the key currently contains a scalar value, the key will be promoted to a multi-value property + with the current value cast to a string and the new value(s) added + + @discussion + Key must be NSString. + Values must be NSStrings. + Max 100 values, on reaching 100 cap, oldest value(s) will be removed. + + + @param key key string + @param value value string + */ +- (void)profileAddMultiValue:(NSString * _Nonnull)value forKey:(NSString *_Nonnull)key; + +/*! + @method + + @abstract + Method for adding multiple unique values to a multi-value profile property (or creating if not already existing). + + If the key currently contains a scalar value, the key will be promoted to a multi-value property + with the current value cast to a string and the new value(s) added. + + @discussion + Key must be NSString. + Values must be NSStrings. + Max 100 values, on reaching 100 cap, oldest value(s) will be removed. + + + @param key key string + @param values values NSArray + */ +- (void)profileAddMultiValues:(NSArray *_Nonnull)values forKey:(NSString *_Nonnull)key; + +/*! + @method + + @abstract + Method for removing a unique value from a multi-value profile property. + + If the key currently contains a scalar value, prior to performing the remove operation the key will be promoted to a multi-value property with the current value cast to a string. + + If the multi-value property is empty after the remove operation, the key will be removed. + + @param key key string + @param value value string + */ +- (void)profileRemoveMultiValue:(NSString *_Nonnull)value forKey:(NSString *_Nonnull)key; + +/*! + @method + + @abstract + Method for removing multiple unique values from a multi-value profile property. + + If the key currently contains a scalar value, prior to performing the remove operation the key will be promoted to a multi-value property with the current value cast to a string. + + If the multi-value property is empty after the remove operation, the key will be removed. + + @param key key string + @param values values NSArray + */ +- (void)profileRemoveMultiValues:(NSArray * _Nonnull)values forKey:(NSString * _Nonnull)key; + +/*! + @method + + @abstract + Method for incrementing a value for a single-value profile property (if it exists). + + @param key key string + @param value value number + */ +- (void)profileIncrementValueBy:(NSNumber *_Nonnull)value forKey:(NSString *_Nonnull)key; + +/*! + @method + + @abstract + Method for decrementing a value for a single-value profile property (if it exists). + + @param key key string + @param value value number + */ +- (void)profileDecrementValueBy:(NSNumber *_Nonnull)value forKey:(NSString *_Nonnull)key; + +/*! + @method + + @abstract + Get a user profile property. + + @discussion + Be sure to call enablePersonalization (typically once at app launch) prior to using this method. + If the property is not available or enablePersonalization has not been called, this call will return nil. + + @param propertyName property name + + @return + returns NSArray in the case of a multi-value property + + */ +- (id _Nullable )profileGet:(NSString *_Nonnull)propertyName; + +/*! + @method + + @abstract + Get the CleverTap ID of the User Profile. + + @discussion + The CleverTap ID is the unique identifier assigned to the User Profile by CleverTap. + + */ +- (NSString *_Nullable)profileGetCleverTapID; + +/*! + @method + + @abstract + Get CleverTap account Id. + + @discussion + The CleverTap account Id is the unique identifier assigned to the Account by CleverTap. + + */ +- (NSString *_Nullable)getAccountID; + +/*! + @method + + @abstract + Returns a unique CleverTap identifier suitable for use with install attribution providers. + + */ +- (NSString *_Nullable)profileGetCleverTapAttributionIdentifier; + +#pragma mark User Action Events API + +/*! + @method + + @abstract + Record an event. + + Reserved event names: "Stayed", "Notification Clicked", "Notification Viewed", "UTM Visited", "Notification Sent", "App Launched", "wzrk_d", are prohibited. + + Be sure to call enablePersonalization (typically once at app launch) prior to using this method. + + @param event event name + */ +- (void)recordEvent:(NSString *_Nonnull)event; + +/*! + @method + + @abstract + Records an event with properties. + + @discussion + Property keys must be NSString and values must be one of NSString, NSNumber, BOOL or NSDate. + Reserved event names: "Stayed", "Notification Clicked", "Notification Viewed", "UTM Visited", "Notification Sent", "App Launched", "wzrk_d", are prohibited. + Keys are limited to 32 characters. + Values are limited to 40 bytes. + Longer will be truncated. + Maximum number of event properties is 16. + + @param event event name + @param properties properties dictionary + */ +- (void)recordEvent:(NSString *_Nonnull)event withProps:(NSDictionary *_Nonnull)properties; + +/*! + @method + + @abstract + Records the special Charged event with properties. + + @discussion + Charged is a special event in CleverTap. It should be used to track transactions or purchases. + Recording the Charged event can help you analyze how your customers are using your app, or even to reach out to loyal or lost customers. + The transaction total or subscription charge should be recorded in an event property called “Amount” in the chargeDetails param. + Set your transaction ID or the receipt ID as the value of the "Charged ID" property of the chargeDetails param. + + You can send an array of purchased item dictionaries via the items param. + + Property keys must be NSString and values must be one of NSString, NSNumber, BOOL or NSDATE. + Keys are limited to 32 characters. + Values are limited to 40 bytes. + Longer will be truncated. + + @param chargeDetails charge transaction details dictionary + @param items charged items array + */ +- (void)recordChargedEventWithDetails:(NSDictionary *_Nonnull)chargeDetails andItems:(NSArray *_Nonnull)items; + +/*! + @method + + @abstract + Record an error event. + + @param message error message + @param code int error code + */ + +- (void)recordErrorWithMessage:(NSString *_Nonnull)message andErrorCode:(int)code; + +/*! + @method + + @abstract + Record a screen view. + + @param screenName the screen name + */ +- (void)recordScreenView:(NSString *_Nonnull)screenName; + +/*! + @method + + @abstract + Record Notification Viewed for Push Notifications. + + @param notificationData notificationData id + */ +- (void)recordNotificationViewedEventWithData:(id _Nonnull)notificationData; + +/*! + @method + + @abstract + Record Notification Clicked for Push Notifications. + + @param notificationData notificationData id + */ +- (void)recordNotificationClickedEventWithData:(id _Nonnull)notificationData; + +/*! + @method + + @abstract + Get the time of the first recording of the event. + + Be sure to call enablePersonalization prior to invoking this method. + + @param event event name + */ +- (NSTimeInterval)eventGetFirstTime:(NSString *_Nonnull)event; + +/*! + @method + + @abstract + Get the time of the last recording of the event. + Be sure to call enablePersonalization prior to invoking this method. + + @param event event name + */ + +- (NSTimeInterval)eventGetLastTime:(NSString *_Nonnull)event; + +/*! + @method + + @abstract + Get the number of occurrences of the event. + Be sure to call enablePersonalization prior to invoking this method. + + @param event event name + */ +- (int)eventGetOccurrences:(NSString *_Nonnull)event; + +/*! + @method + + @abstract + Get the user's event history. + + @discussion + Returns a dictionary of CleverTapEventDetail objects (eventName, firstTime, lastTime, occurrences), keyed by eventName. + + Be sure to call enablePersonalization (typically once at app launch) prior to using this method. + + */ +- (NSDictionary *_Nullable)userGetEventHistory; + +/*! + @method + + @abstract + Get the details for the event. + + @discussion + Returns a CleverTapEventDetail object (eventName, firstTime, lastTime, occurrences) + + Be sure to call enablePersonalization (typically once at app launch) prior to using this method. + + @param event event name + */ +- (CleverTapEventDetail *_Nullable)eventGetDetail:(NSString *_Nullable)event; + + +#pragma mark Session API + +/*! + @method + + @abstract + Get the elapsed time of the current user session. + Be sure to call enablePersonalization (typically once at app launch) prior to using this method. + */ +- (NSTimeInterval)sessionGetTimeElapsed; + +/*! + @method + + @abstract + Get the utm referrer details for this user session. + + @discussion + Returns a CleverTapUTMDetail object (source, medium and campaign). + + Be sure to call enablePersonalization (typically once at app launch) prior to using this method. + + */ +- (CleverTapUTMDetail *_Nullable)sessionGetUTMDetails; + +/*! + @method + + @abstract + Get the total number of visits by this user. + + Be sure to call enablePersonalization (typically once at app launch) prior to using this method. + */ +- (int)userGetTotalVisits; + +/*! + @method + + @abstract + Get the total screens viewed by this user. + Be sure to call enablePersonalization (typically once at app launch) prior to using this method. + + */ +- (int)userGetScreenCount; + +/*! + @method + + @abstract + Get the last prior visit time for this user. + Be sure to call enablePersonalization (typically once at app launch) prior to using this method. + + */ +- (NSTimeInterval)userGetPreviousVisitTime; + +/* ------------------------------------------------------------------------------------------------------ + * Synchronization + */ + + +/*! + @abstract + Posted when the CleverTap User Profile/Event History has changed in response to a synchronization call to the CleverTap servers. + + @discussion + CleverTap provides a flexible notification system for informing applications when changes have occured + to the CleverTap User Profile/Event History in response to synchronization activities. + + CleverTap leverages the NSNotification broadcast mechanism to notify your application when changes occur. + Your application should observe CleverTapProfileDidChangeNotification in order to receive notifications. + + Be sure to call enablePersonalization (typically once at app launch) to enable synchronization. + + Change data will be returned in the userInfo property of the NSNotification, and is of the form: + { + "profile":{"":{"oldValue":, "newValue":}, ...}, + "events:{"": + {"count": + {"oldValue":(int), "newValue":}, + "firstTime": + {"oldValue":(double), "newValue":}, + "lastTime": + {"oldValue":(double), "newValue":}, + }, ... + } + } + + */ +extern NSString * _Nonnull const CleverTapProfileDidChangeNotification; + +/*! + + @abstract + Posted when the CleverTap User Profile is initialized. + + @discussion + Useful for accessing the CleverTap ID of the User Profile. + + The CleverTap ID is the unique identifier assigned to the User Profile by CleverTap. + + The CleverTap ID and cooresponding CleverTapAccountID will be returned in the userInfo property of the NSNotifcation in the form: {@"CleverTapID":CleverTapID, @"CleverTapAccountID":CleverTapAccountID}. + + */ +extern NSString * _Nonnull const CleverTapProfileDidInitializeNotification; + + +/*! + + @method + + @abstract + The `CleverTapSyncDelegate` protocol provides additional/alternative methods for notifying + your application (the adopting delegate) about synchronization-related changes to the User Profile/Event History. + + @see CleverTapSyncDelegate.h + + @discussion + This sets the CleverTapSyncDelegate. + + Be sure to call enablePersonalization (typically once at app launch) to enable synchronization. + + @param delegate an object conforming to the CleverTapSyncDelegate Protocol + */ +- (void)setSyncDelegate:(id _Nullable)delegate; + + +/*! + + @method + + @abstract + The `CleverTapPushNotificationDelegate` protocol provides methods for notifying + your application (the adopting delegate) about push notifications. + + @see CleverTapPushNotificationDelegate.h + + @discussion + This sets the CleverTapPushNotificationDelegate. + + @param delegate an object conforming to the CleverTapPushNotificationDelegate Protocol + */ + +- (void)setPushNotificationDelegate:(id _Nullable)delegate; + +#if !CLEVERTAP_NO_INAPP_SUPPORT +/*! + + @method + + @abstract + The `CleverTapInAppNotificationDelegate` protocol provides methods for notifying + your application (the adopting delegate) about in-app notifications. + + @see CleverTapInAppNotificationDelegate.h + + @discussion + This sets the CleverTapInAppNotificationDelegate. + + @param delegate an object conforming to the CleverTapInAppNotificationDelegate Protocol + */ +- (void)setInAppNotificationDelegate:(id _Nullable)delegate; + +/*! + @method + + @abstract + Forces inapps to update from the server. + + @discussion + Forces inapps to update from the server. + + @param block a callback with a boolean flag whether the update was successful. + */ +- (void)fetchInApps:(CleverTapFetchInAppsBlock _Nullable)block; + +#endif + +/*! + + @method + + @abstract + The `CleverTapURLDelegate` protocol provides a method for the confirming class to implement custom handling for URLs in case of in-app notification CTAs, push notifications and App inbox. + + @see CleverTapURLDelegate.h + + @discussion + This sets the CleverTapURLDelegate. + + @param delegate an object conforming to the CleverTapURLDelegate Protocol + */ +- (void)setUrlDelegate:(id _Nullable)delegate; + +/* ------------------------------------------------------------------------------------------------------ + * Notifications + */ + +/*! + @method + + @abstract + Register the device to receive push notifications. + + @discussion + This will associate the device token with the current user to allow push notifications to the user. + + @param pushToken device token as returned from application:didRegisterForRemoteNotificationsWithDeviceToken: + */ +- (void)setPushToken:(NSData *_Nonnull)pushToken; + +/*! + @method + + @abstract + Convenience method to register the device push token as as string. + + @discussion + This will associate the device token with the current user to allow push notifications to the user. + + @param pushTokenString device token as returned from application:didRegisterForRemoteNotificationsWithDeviceToken: converted to an NSString. + */ +- (void)setPushTokenAsString:(NSString *_Nonnull)pushTokenString; + +/*! + @method + + @abstract + Track and process a push notification based on its payload. + + @discussion + By calling this method, CleverTap will automatically track user notification interaction for you. + If the push notification contains a deep link, CleverTap will handle the call to application:openUrl: with the deep link, as long as the application is not in the foreground. + + @param data notification payload + */ +- (void)handleNotificationWithData:(id _Nonnull )data; + +/*! + @method + + @abstract + Track and process a push notification based on its payload. + + @discussion + By calling this method, CleverTap will automatically track user notification interaction for you. + If the push notification contains a deep link, CleverTap will handle the call to application:openUrl: with the deep link, as long as the application is not in the foreground or you pass TRUE in the openInForeground param. + + @param data notification payload + @param openInForeground Boolean as to whether the SDK should open any deep link attached to the notification while the application is in the foreground. + */ +- (void)handleNotificationWithData:(id _Nonnull )data openDeepLinksInForeground:(BOOL)openInForeground; + +/*! + @method + + @abstract + Convenience method when using multiple SDK instances to track and process a push notification based on its payload. + + @discussion + By calling this method, CleverTap will automatically track user notification interaction for you; the specific instance of the CleverTap SDK to process the call is determined based on the CleverTap AccountID included in the notification payload and, if not present, will default to the shared instance. + + If the push notification contains a deep link, CleverTap will handle the call to application:openUrl: with the deep link, as long as the application is not in the foreground or you pass TRUE in the openInForeground param. + + @param notification notification payload + @param openInForeground Boolean as to whether the SDK should open any deep link attached to the notification while the application is in the foreground. + */ ++ (void)handlePushNotification:(NSDictionary*_Nonnull)notification openDeepLinksInForeground:(BOOL)openInForeground; + +/*! + @method + + @abstract + Determine whether a notification originated from CleverTap + + @param payload notification payload + */ +- (BOOL)isCleverTapNotification:(NSDictionary *_Nonnull)payload; + +#if !CLEVERTAP_NO_INAPP_SUPPORT +/*! + @method + + @abstract + Manually initiate the display of any pending in app notifications. + + */ +- (void)showInAppNotificationIfAny __attribute__((deprecated("Use resumeInAppNotifications to show pending InApp notifications. This will be removed soon."))); + +#endif + +/* ------------------------------------------------------------------------------------------------------ + * Referrer tracking + */ + +/*! + @method + + @abstract + Track incoming referrers on a specific SDK instance. + + @discussion + By calling this method, the specific CleverTap instance will automatically track incoming referrer utm details. + When implementing multiple SDK instances, consider using +handleOpenURL: instead. + + + @param url the incoming NSURL + @param sourceApplication the source application + */ +- (void)handleOpenURL:(NSURL *_Nonnull)url sourceApplication:(NSString *_Nullable)sourceApplication; + +/*! + @method + + @abstract + Convenience method to track incoming referrers when using multile SDK instances. + + @discussion + By calling this method, if the url contains a query parameter with a CleverTap AccountID, the SDK will pass the URL to that specific instance for processing. + If no CleverTap AccountID param is present, the SDK will default to passing the URL to the shared instance. + + @param url the incoming NSURL + */ ++ (void)handleOpenURL:(NSURL*_Nonnull)url; + + +/*! + @method + + @abstract + Manually track incoming referrers. + + @discussion + Call this to manually track the utm details for an incoming install referrer. + + + @param source the utm source + @param medium the utm medium + @param campaign the utm campaign + */ +- (void)pushInstallReferrerSource:(NSString *_Nullable)source + medium:(NSString *_Nullable)medium + campaign:(NSString *_Nullable)campaign; + +/* ------------------------------------------------------------------------------------------------------ + * Admin + */ + +/*! + @method + + @abstract + Set the debug logging level + + @discussion + Set using CleverTapLogLevel enum values (or the corresponding int values). + SDK logging defaults to CleverTapLogInfo, which prints minimal SDK integration-related messages + + CleverTapLogOff - turns off all SDK logging. + CleverTapLogInfo - default, prints minimal SDK integration related messages. + CleverTapLogDebug - enables verbose debug logging. + In Swift, use the respective rawValues: CleverTapLogLevel.off.rawValue, CleverTapLogLevel.info.rawValue, + CleverTapLogLevel.debug.rawValue. + + @param level the level to set + */ ++ (void)setDebugLevel:(int)level; + +/*! + @method + + @abstract + Get the debug logging level + + @discussion + Returns the currently set debug logging level. + */ ++ (CleverTapLogLevel)getDebugLevel; + +/*! + @method + + @abstract + Set the Library name for Auxiliary SDKs + + @discussion + Call this to method to set library name in the Auxiliary SDK + */ +- (void)setLibrary:(NSString * _Nonnull)name; + +/*! + @method + + @abstract + Set the Library name and version for Auxiliary SDKs + + @discussion + Call this to method to set library name and version in the Auxiliary SDK + */ +- (void)setCustomSdkVersion:(NSString * _Nonnull)name version:(int)version; + +/*! + @method + + @abstract + Updates a user locale after session start. + + @discussion + Call this to method to set locale + */ +- (void)setLocale:(NSLocale * _Nonnull)locale; + +/*! + @method + + @abstract + Store the users location for geofences on the default shared CleverTap instance. + + @discussion + Optional. If you're application is collection the user location you can pass it to CleverTap + for, among other things, more fine-grained geo-targeting and segmentation purposes. + + @param location CLLocationCoordiate2D + */ +- (void)setLocationForGeofences:(CLLocationCoordinate2D)location withPluginVersion:(NSString *_Nullable)version; + +/*! + @method + + @abstract + Record the error for geofences + + @param error NSError + */ +- (void)didFailToRegisterForGeofencesWithError:(NSError *_Nullable)error; + +/*! + @method + + @abstract + Record Geofence Entered Event. + + @param geofenceDetails details of the Geofence + */ +- (void)recordGeofenceEnteredEvent:(NSDictionary *_Nonnull)geofenceDetails; + +/*! + @method + + @abstract + Record Geofence Exited Event. + + @param geofenceDetails details of the Geofence + */ +- (void)recordGeofenceExitedEvent:(NSDictionary *_Nonnull)geofenceDetails; + +#if defined(CLEVERTAP_HOST_WATCHOS) +/** HostWatchOS + */ +- (BOOL)handleMessage:(NSDictionary *_Nonnull)message forWatchSession:(WCSession *_Nonnull)session API_AVAILABLE(ios(9.0)); +#endif + +/*! + @method + + @abstract + Record Signed Call System Events. + + @param calldetails call details dictionary + */ +- (void)recordSignedCallEvent:(int)eventRawValue forCallDetails:(NSDictionary *_Nonnull)calldetails; + +/*! + @method + + @abstract + The `CTDomainDelegate` protocol provides methods for notifying your application (the adopting delegate) about domain/ region changes. + + @see CleverTap+DCDomain.h + + @discussion + This sets the CTDomainDelegate + + @param delegate an object conforming to the CTDomainDelegate Protocol + */ +- (void)setDomainDelegate:(id _Nullable)delegate; + +/*! + @method + + @abstract + Get region/ domain string value + */ +- (NSString *_Nullable)getDomainString; + +/*! + @method + + @abstract + Checks if a custom CleverTapID is valid + */ ++ (BOOL)isValidCleverTapId:(NSString *_Nullable)cleverTapID; + +#pragma mark Product Experiences - Vars + +/*! + @method + + @abstract + Adds a callback to be invoked when variables are initialised with server values. Will be called each time new values are fetched. + + @param block a callback to add. + */ +- (void)onVariablesChanged:(CleverTapVariablesChangedBlock _Nonnull )block; + +/*! + @method + + @abstract + Adds a callback to be invoked only once when variables are initialised with server values. + + @param block a callback to add. + */ +- (void)onceVariablesChanged:(CleverTapVariablesChangedBlock _Nonnull )block; + +/*! + @method + + @abstract + Uploads variables to the server. Requires Development/Debug build/configuration. + */ +- (void)syncVariables; + +/*! + @method + + @abstract + Uploads variables to the server. + + @param isProduction Provide `true` if variables must be sync in Productuon build/configuration. + */ +- (void)syncVariables:(BOOL)isProduction; + +/*! + @method + + @abstract + Forces variables to update from the server. + + @discussion + Forces variables to update from the server. If variables have changed, the appropriate callbacks will fire. Use sparingly as if the app is updated, you'll have to deal with potentially inconsistent state or user experience. + The provided callback has a boolean flag whether the update was successful or not. The callback fires regardless + of whether the variables have changed. + + @param block a callback with a boolean flag whether the update was successful. + */ +- (void)fetchVariables:(CleverTapFetchVariablesBlock _Nullable)block; + +/*! + @method + + @abstract + Get an instance of a variable or a group. + + @param name The name of the variable or the group. + + @return + The instance of the variable or the group, or nil if not created yet. + + */ +- (CTVar * _Nullable)getVariable:(NSString * _Nonnull)name; + +/*! + @method + + @abstract + Get a copy of the current value of a variable or a group. + + @param name The name of the variable or the group. + */ +- (id _Nullable)getVariableValue:(NSString * _Nonnull)name; + +/*! + @method + + @abstract + Adds a callback to be invoked when no more file downloads are pending (either when no files needed to be downloaded or all downloads have been completed). + + @param block a callback to add. + */ +- (void)onVariablesChangedAndNoDownloadsPending:(CleverTapVariablesChangedBlock _Nonnull )block; + +/*! + @method + + @abstract + Adds a callback to be invoked only once when no more file downloads are pending (either when no files needed to be downloaded or all downloads have been completed). + + @param block a callback to add. + */ +- (void)onceVariablesChangedAndNoDownloadsPending:(CleverTapVariablesChangedBlock _Nonnull )block; + +#if !CLEVERTAP_NO_INAPP_SUPPORT +#pragma mark Custom Templates and Functions + +/*! + Register ``CTCustomTemplate`` templates through a ``CTTemplateProducer``. + See ``CTCustomTemplateBuilder``. Templates must be registered before the ``CleverTap`` instance, that would use + them, is created. + + Typically, this method is called from `UIApplicationDelegate/application:didFinishLaunchingWithOptions:`. + If your application uses multiple ``CleverTap`` instances, use the ``CleverTapInstanceConfig`` within the + ``CTTemplateProducer/defineTemplates:`` method to differentiate which templates should be registered to which instances. + + This method can be called multiple times with different ``CTTemplateProducer`` producers, however all of the + produced templates must have unique names. + + @param producer A ``CTTemplateProducer`` to register and define templates with. + */ ++ (void)registerCustomInAppTemplates:(id _Nonnull)producer; + +/*! + @method + + @abstract + Uploads Custom in-app templates and app functions to the server. Requires Development/Debug build/configuration. + */ +- (void)syncCustomTemplates; + +/*! + @method + + @abstract + Uploads Custom in-app templates and app functions to the server. + + @param isProduction Provide `true` if Custom in-app templates and app functions must be sync in Productuon build/configuration. + */ +- (void)syncCustomTemplates:(BOOL)isProduction; + +/*! + @method + + @abstract + Retrieves the active context for a template that is currently displaying. If the provided template + name is not of a currently active template, this method returns nil. + + @param templateName The template name to get the active context for. + + @return + A CTTemplateContext object representing the active context for the given template name, or nil if no active context exists. + + */ +- (CTTemplateContext * _Nullable)activeContextForTemplate:(NSString * _Nonnull)templateName; + +#endif + +@end + +#pragma clang diagnostic pop diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapBuildInfo.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapBuildInfo.h new file mode 100644 index 000000000..2c0566459 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapBuildInfo.h @@ -0,0 +1 @@ +#define WR_SDK_REVISION @"70002" diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapEventDetail.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapEventDetail.h new file mode 100644 index 000000000..e211c7438 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapEventDetail.h @@ -0,0 +1,10 @@ +#import + +@interface CleverTapEventDetail : NSObject + +@property (nonatomic, strong) NSString *eventName; +@property (nonatomic) NSTimeInterval firstTime; +@property (nonatomic) NSTimeInterval lastTime; +@property (nonatomic) NSUInteger count; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapInAppNotificationDelegate.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapInAppNotificationDelegate.h new file mode 100644 index 000000000..49b3158ad --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapInAppNotificationDelegate.h @@ -0,0 +1,41 @@ +#import + +@protocol CleverTapInAppNotificationDelegate + +/*! + @discussion + This is called when an in-app notification is about to be rendered. + If you'd like this notification to not be rendered, then return false. + + Returning true will cause this notification to be rendered immediately. + + @param extras The extra key/value pairs set in the CleverTap dashboard for this notification + */ +@optional +- (BOOL)shouldShowInAppNotificationWithExtras:(NSDictionary *)extras; + +/*! + @discussion + When an in-app notification is dismissed (either by the close button, or a call to action), + this method will be called. + + @param extras The extra key/value pairs set in the CleverTap dashboard for this notification + @param actionExtras The extra key/value pairs from the notification + (for example, a rating widget might have some properties which can be read here). + + Note: This can be nil if the notification was dismissed without taking any action + */ +@optional +- (void)inAppNotificationDismissedWithExtras:(NSDictionary *)extras andActionExtras:(NSDictionary *)actionExtras; + +/*! + @discussion + When an in-app notification is dismissed by a call to action with custom extras, + this method will be called. + + @param extras The extra key/value pairs set in the CleverTap dashboard for this notification + */ +@optional +- (void)inAppNotificationButtonTappedWithCustomExtras:(NSDictionary *)customExtras; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapInstanceConfig.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapInstanceConfig.h new file mode 100644 index 000000000..c351f4443 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapInstanceConfig.h @@ -0,0 +1,62 @@ +#import +#import "CleverTap.h" +@class CTAES; + +@interface CleverTapInstanceConfig : NSObject + +@property (nonatomic, strong, readonly, nonnull) NSString *accountId; +@property (nonatomic, strong, readonly, nonnull) NSString *accountToken; +@property (nonatomic, strong, readonly, nullable) NSString *accountRegion; +@property (nonatomic, strong, readonly, nullable) NSString *proxyDomain; +@property (nonatomic, strong, readonly, nullable) NSString *spikyProxyDomain; + +@property (nonatomic, assign) BOOL analyticsOnly; +@property (nonatomic, assign) BOOL disableAppLaunchedEvent; +@property (nonatomic, assign) BOOL enablePersonalization; +@property (nonatomic, assign) BOOL useCustomCleverTapId; +@property (nonatomic, assign) BOOL disableIDFV; +@property (nonatomic, assign) BOOL enableFileProtection; +@property (nonatomic, strong, nullable) NSString *handshakeDomain; + +@property (nonatomic, assign) CleverTapLogLevel logLevel; +@property (nonatomic, strong, nullable) NSArray *identityKeys; +@property (nonatomic, assign) CleverTapEncryptionLevel encryptionLevel; +@property (nonatomic, strong, nullable) CTAES *aesCrypt; + + +- (instancetype _Nonnull) init __unavailable; + +- (instancetype _Nonnull)initWithAccountId:(NSString* _Nonnull)accountId + accountToken:(NSString* _Nonnull)accountToken; + +- (instancetype _Nonnull)initWithAccountId:(NSString* _Nonnull)accountId + accountToken:(NSString* _Nonnull)accountToken + accountRegion:(NSString* _Nonnull)accountRegion; + +- (instancetype _Nonnull)initWithAccountId:(NSString* _Nonnull)accountId + accountToken:(NSString* _Nonnull)accountToken + proxyDomain:(NSString* _Nonnull)proxyDomain; + +- (instancetype _Nonnull)initWithAccountId:(NSString* _Nonnull)accountId + accountToken:(NSString* _Nonnull)accountToken + proxyDomain:(NSString* _Nonnull)proxyDomain + spikyProxyDomain:(NSString* _Nonnull)spikyProxyDomain; + +/*! + @method + + @abstract + Set the encryption level + + @discussion + Set the encryption level using CleverTapEncryptionLevel enum values (or the corresponding int values). + + CleverTapEncryptionNone - turns off all encryption. + CleverTapEncryptionMedium - turns encryption on for PII data + + @param encryptionLevel the encryption level to set + */ +- (void)setEncryptionLevel:(CleverTapEncryptionLevel)encryptionLevel; +- (void)setEnableFileProtection:(BOOL)enableFileProtection; +- (void)setHandshakeDomain:(NSString * _Nonnull)handshakeDomain; +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapJSInterface.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapJSInterface.h new file mode 100644 index 000000000..8211d0279 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapJSInterface.h @@ -0,0 +1,18 @@ +#import +#if !(TARGET_OS_TV) +#import + +@class CleverTapInstanceConfig; +@class CTInAppDisplayViewController; +/*! + @abstract + The `CleverTapJSInterface` class is a bridge to communicate between Webviews and CleverTap SDK. Calls to forward record events or set user properties fired within a Webview to CleverTap SDK. + */ + +@interface CleverTapJSInterface : NSObject + +- (instancetype)initWithConfig:(CleverTapInstanceConfig *)config; + +@end +#endif + diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapPushNotificationDelegate.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapPushNotificationDelegate.h new file mode 100644 index 000000000..dbe2efe1b --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapPushNotificationDelegate.h @@ -0,0 +1,14 @@ +#import + +@protocol CleverTapPushNotificationDelegate + +/*! +@discussion +When a push notification is clicked with custom extras, this method will be called. + +@param extras The extra key/value pairs set in the CleverTap dashboard for this notification +*/ +@optional +- (void)pushNotificationTappedWithCustomExtras:(NSDictionary *)customExtras; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapSDK-Swift.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapSDK-Swift.h new file mode 100644 index 000000000..a8c66a81c --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapSDK-Swift.h @@ -0,0 +1,323 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Generated by Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) +#ifndef CLEVERTAPSDK_SWIFT_H +#define CLEVERTAPSDK_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +# include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +# ifndef __ptrauth_swift_value_witness_function_pointer +# define __ptrauth_swift_value_witness_function_pointer(x) +# endif +# ifndef __ptrauth_swift_class_method_pointer +# define __ptrauth_swift_class_method_pointer(x) +# endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif +#if !defined(SWIFT_RUNTIME_NAME) +# if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +# else +# define SWIFT_RUNTIME_NAME(X) +# endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +# if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +# else +# define SWIFT_COMPILE_NAME(X) +# endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +# if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +# else +# define SWIFT_METHOD_FAMILY(X) +# endif +#endif +#if !defined(SWIFT_NOESCAPE) +# if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +# else +# define SWIFT_NOESCAPE +# endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +# if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +# else +# define SWIFT_RELEASES_ARGUMENT +# endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +# if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +# else +# define SWIFT_WARN_UNUSED_RESULT +# endif +#endif +#if !defined(SWIFT_NORETURN) +# if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +# else +# define SWIFT_NORETURN +# endif +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if !defined(SWIFT_DEPRECATED_OBJC) +# if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +# else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +# endif +#endif +#if defined(__OBJC__) +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if !defined(SWIFT_CALL) +# define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if !defined(SWIFT_INDIRECT_RESULT) +# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +# define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +# define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +# define SWIFT_NOEXCEPT noexcept +#else +# define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +# if __has_attribute(always_inline) +# if __has_attribute(nodebug) +# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug)) +# else +# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +# endif +# else +# define SWIFT_C_INLINE_THUNK inline +# endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +# define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import ObjectiveC; +#endif + +#endif +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CleverTapSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +SWIFT_CLASS("_TtC12CleverTapSDK12CTNewFeature") +@interface CTNewFeature : NSObject +- (void)newFeature; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +#endif +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#else +#error unsupported Swift architecture +#endif diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapSDK.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapSDK.h new file mode 100644 index 000000000..7f1703399 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapSDK.h @@ -0,0 +1,65 @@ +// +// CleverTapSDK.h +// CleverTapSDK +// +// Created by Akash Malhotra on 27/02/25. +// Copyright © 2025 CleverTap. All rights reserved. +// + +#import + +//! Project version number for CleverTapSDK. +FOUNDATION_EXPORT double CleverTapSDKVersionNumber; + +//! Project version string for CleverTapSDK. +FOUNDATION_EXPORT const unsigned char CleverTapSDKVersionString[]; + +#if TARGET_OS_IOS +#import "CleverTap.h" +#import "CleverTap+Inbox.h" +#import "CleverTap+FeatureFlags.h" +#import "CleverTap+ProductConfig.h" +#import "CleverTap+DisplayUnit.h" +#import "CleverTap+SSLPinning.h" +#import "CleverTapBuildInfo.h" +#import "CleverTapEventDetail.h" +#import "CleverTapInAppNotificationDelegate.h" +#import "CleverTapPushNotificationDelegate.h" +#import "CleverTapURLDelegate.h" +#import "CleverTapSyncDelegate.h" +#import "CleverTapUTMDetail.h" +#import "CleverTapTrackedViewController.h" +#import "CleverTapInstanceConfig.h" +#import "CleverTapJSInterface.h" +#import "CleverTap+InAppNotifications.h" +#import "CleverTap+SCDomain.h" +#import "CTLocalInApp.h" +#import "CleverTap+CTVar.h" +#import "CTVar.h" +#import "LeanplumCT.h" +#import "CTInAppTemplateBuilder.h" +#import "CTAppFunctionBuilder.h" +#import "CTTemplatePresenter.h" +#import "CTTemplateProducer.h" +#import "CTCustomTemplateBuilder.h" +#import "CTCustomTemplate.h" +#import "CTTemplateContext.h" +#import "CTCustomTemplatesManager.h" +#import "CleverTap+PushPermission.h" +#import "CTJsonTemplateProducer.h" + +#elif TARGET_OS_TV +#import "CleverTap.h" +#import "CleverTap+SSLPinning.h" +#import "CleverTap+FeatureFlags.h" +#import "CleverTap+ProductConfig.h" +#import "CleverTapBuildInfo.h" +#import "CleverTapEventDetail.h" +#import "CleverTapSyncDelegate.h" +#import "CleverTapUTMDetail.h" +#import "CleverTapTrackedViewController.h" +#import "CleverTapInstanceConfig.h" +#import "CTVar.h" +#import "CleverTap+CTVar.h" +#import "LeanplumCT.h" +#endif diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapSyncDelegate.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapSyncDelegate.h new file mode 100644 index 000000000..73e55f39c --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapSyncDelegate.h @@ -0,0 +1,58 @@ +#import + +@protocol CleverTapSyncDelegate + +/*! + + @abstract + The `CleverTapSyncDelegate` protocol provides additional/alternative methods for + notifying your application (the adopting delegate) when the User Profile is initialized. + + @discussion + This method will be called when the User Profile is initialized with the CleverTap ID of the User Profile. + The CleverTap ID is the unique identifier assigned to the User Profile by CleverTap. + */ +@optional +- (void)profileDidInitialize:(NSString*)CleverTapID; + +/*! + + @abstract + The `CleverTapSyncDelegate` protocol provides additional/alternative methods for + notifying your application (the adopting delegate) when the User Profile is initialized. + + @discussion + This method will be called when the User Profile is initialized with the CleverTap ID of the User Profile. + The CleverTap ID is the unique identifier assigned to the User Profile by CleverTap. + */ +@optional +- (void)profileDidInitialize:(NSString*)CleverTapID forAccountId:(NSString*)accountId; + + +/*! + + @abstract + The `CleverTapSyncDelegate` protocol provides additional/alternative methods for + notifying your application (the adopting delegate) about synchronization-related changes to the User Profile/Event History. + + @discussion + the updates argument represents the changed data and is of the form: + { + "profile":{"":{"oldValue":, "newValue":}, ...}, + "events:{"": + {"count": + {"oldValue":(int), "newValue":}, + "firstTime": + {"oldValue":(double), "newValue":}, + "lastTime": + {"oldValue":(double), "newValue":}, + }, ... + } + } + + */ + +@optional +- (void)profileDataUpdated:(NSDictionary*)updates; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapTrackedViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapTrackedViewController.h new file mode 100644 index 000000000..60a2453fa --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapTrackedViewController.h @@ -0,0 +1,7 @@ +#import + +@interface CleverTapTrackedViewController : UIViewController + +@property(readwrite, nonatomic, copy) NSString *screenName; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapURLDelegate.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapURLDelegate.h new file mode 100644 index 000000000..af59f7b5a --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapURLDelegate.h @@ -0,0 +1,25 @@ +#import + +@protocol CleverTapURLDelegate + +/*! + @method + + @abstract + Implement custom handling of URLs. + + @discussion + Use this method if you would like to implement custom handling for URLs in case of in-app notification CTAs, push notifications and App inbox. + + Use the following enum values of type CleverTapChannel to optionally implement URL handling based on the corresponding CleverTap channel. + + CleverTapPushNotification - Remote Notifications, + CleverTapAppInbox - App Inbox, + CleverTapInAppNotification - In-App Notification + + @param url the NSURL object + @param channel the CleverTapChannel enum value + */ +- (BOOL)shouldHandleCleverTapURL:(NSURL *_Nullable )url forChannel:(CleverTapChannel)channel; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapUTMDetail.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapUTMDetail.h new file mode 100644 index 000000000..181a51e5e --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/CleverTapUTMDetail.h @@ -0,0 +1,7 @@ +#import + +@interface CleverTapUTMDetail : NSObject +@property(nonatomic, strong) NSString *source; +@property(nonatomic, strong) NSString *medium; +@property(nonatomic, strong) NSString *campaign; +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/LeanplumCT.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/LeanplumCT.h new file mode 100644 index 000000000..bc82a6590 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Headers/LeanplumCT.h @@ -0,0 +1,160 @@ +// +// LeanplumCT.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 22.05.23. +// Copyright © 2023 CleverTap. All rights reserved. +// + +#import +#import "CleverTap.h" + +NS_ASSUME_NONNULL_BEGIN + +FOUNDATION_EXPORT NSString *const LP_PURCHASE_EVENT; +FOUNDATION_EXPORT NSString *const LP_STATE_PREFIX; +FOUNDATION_EXPORT NSString *const LP_VALUE_PARAM_NAME; +FOUNDATION_EXPORT NSString *const LP_INFO_PARAM_NAME; +FOUNDATION_EXPORT NSString *const LP_CHARGED_EVENT_PARAM_NAME; +FOUNDATION_EXPORT NSString *const LP_CURRENCY_CODE_PARAM_NAME; + +@interface LeanplumCT : NSObject + +@property (class) CleverTap *instance; + +/** + * @{ + * Advances to a particular state in your application. The string can be + * any value of your choosing, and will show up in the dashboard. + * A state is a section of your app that the user is currently in. + * @param state The name of the state. + */ ++ (void)advanceTo:(nullable NSString *)state +NS_SWIFT_NAME(advance(state:)); + +/** + * Advances to a particular state in your application. The string can be + * any value of your choosing, and will show up in the dashboard. + * A state is a section of your app that the user is currently in. + * @param state The name of the state. + * @param info Anything else you want to log with the state. For example, if the state + * is watchVideo, info could be the video ID. + */ ++ (void)advanceTo:(nullable NSString *)state + withInfo:(nullable NSString *)info +NS_SWIFT_NAME(advance(state:info:)); + +/** + * Advances to a particular state in your application. The string can be + * any value of your choosing, and will show up in the dashboard. + * A state is a section of your app that the user is currently in. + * You can specify up to 200 types of parameters per app across all events and state. + * The parameter keys must be strings, and values either strings or numbers. + * @param state The name of the state. + * @param params A dictionary with custom parameters. + */ ++ (void)advanceTo:(nullable NSString *)state + withParameters:(nullable NSDictionary *)params +NS_SWIFT_NAME(advance(state:params:)); + +/** + * Advances to a particular state in your application. The string can be + * any value of your choosing, and will show up in the dashboard. + * A state is a section of your app that the user is currently in. + * You can specify up to 200 types of parameters per app across all events and state. + * The parameter keys must be strings, and values either strings or numbers. + * @param state The name of the state. (nullable) + * @param info Anything else you want to log with the state. For example, if the state + * is watchVideo, info could be the video ID. + * @param params A dictionary with custom parameters. + */ ++ (void)advanceTo:(nullable NSString *)state + withInfo:(nullable NSString *)info + andParameters:(nullable NSDictionary *)params +NS_SWIFT_NAME(advance(state:info:params:)); + +/** + * Sets additional user attributes after the session has started. + * Variables retrieved by start won't be targeted based on these attributes, but + * they will count for the current session for reporting purposes. + * Only those attributes given in the dictionary will be updated. All other + * attributes will be preserved. + */ ++ (void)setUserAttributes:(NSDictionary *)attributes; + +/** + * Updates a user ID after session start. + */ ++ (void)setUserId:(NSString *)userId +NS_SWIFT_NAME(setUserId(_:)); + +/** + * Updates a user ID after session start with a dictionary of user attributes. + */ ++ (void)setUserId:(NSString *)userId withUserAttributes:(NSDictionary *)attributes +NS_SWIFT_NAME(setUserId(_:attributes:)); + +/** + * Sets the traffic source info for the current user. + * Keys in info must be one of: publisherId, publisherName, publisherSubPublisher, + * publisherSubSite, publisherSubCampaign, publisherSubAdGroup, publisherSubAd. + */ ++ (void)setTrafficSourceInfo:(NSDictionary *)info +NS_SWIFT_NAME(setTrafficSource(info:)); + +/** + * Manually track purchase event with currency code in your application. It is advised to use + * trackInAppPurchases to automatically track IAPs. + */ ++ (void)trackPurchase:(NSString *)event + withValue:(double)value + andCurrencyCode:(nullable NSString *)currencyCode + andParameters:(nullable NSDictionary *)params +NS_SWIFT_NAME(track(event:value:currencyCode:params:)); +/**@}*/ + +/** + * @{ + * Logs a particular event in your application. The string can be + * any value of your choosing, and will show up in the dashboard. + * To track a purchase, use LP_PURCHASE_EVENT. + */ ++ (void)track:(NSString *)event; + ++ (void)track:(NSString *)event + withValue:(double)value +NS_SWIFT_NAME(track(_:value:)); + ++ (void)track:(NSString *)event + withInfo:(nullable NSString *)info +NS_SWIFT_NAME(track(_:info:)); + ++ (void)track:(NSString *)event + withValue:(double)value + andInfo:(nullable NSString *)info +NS_SWIFT_NAME(track(_:value:info:)); + +// See above for the explanation of params. ++ (void)track:(NSString *)event withParameters:(nullable NSDictionary *)params +NS_SWIFT_NAME(track(_:params:)); + ++ (void)track:(NSString *)event + withValue:(double)value +andParameters:(nullable NSDictionary *)params +NS_SWIFT_NAME(track(_:value:params:)); + ++ (void)track:(NSString *)event + withValue:(double)value + andInfo:(nullable NSString *)info +andParameters:(nullable NSDictionary *)params +NS_SWIFT_NAME(track(_:value:info:params:)); +/**@}*/ + +/** + * Sets the log level of the CleverTap SDK. + */ ++ (void)setLogLevel:(CleverTapLogLevel)level; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Inbox.momd/Inbox.mom b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Inbox.momd/Inbox.mom new file mode 100644 index 000000000..e9b27f354 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Inbox.momd/Inbox.mom differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Inbox.momd/VersionInfo.plist b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Inbox.momd/VersionInfo.plist new file mode 100644 index 000000000..03dafe446 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Inbox.momd/VersionInfo.plist differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Info.plist b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Info.plist new file mode 100644 index 000000000..2c673a2a6 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Info.plist differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios.abi.json b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios.abi.json new file mode 100644 index 000000000..cb022c718 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios.abi.json @@ -0,0 +1,154 @@ +{ + "ABIRoot": { + "kind": "Root", + "name": "CleverTapSDK", + "printedName": "CleverTapSDK", + "children": [ + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "CleverTapSDK", + "declAttributes": [ + "RawDocComment" + ] + }, + { + "kind": "TypeDecl", + "name": "CTNewFeature", + "printedName": "CTNewFeature", + "children": [ + { + "kind": "Function", + "name": "newFeature", + "printedName": "newFeature()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Func", + "usr": "c:@M@CleverTapSDK@objc(cs)CTNewFeature(im)newFeature", + "mangledName": "$s12CleverTapSDK12CTNewFeatureC03newE0yyF", + "moduleName": "CleverTapSDK", + "declAttributes": [ + "AccessControl", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init()", + "children": [ + { + "kind": "TypeNominal", + "name": "CTNewFeature", + "printedName": "CleverTapSDK.CTNewFeature", + "usr": "c:@M@CleverTapSDK@objc(cs)CTNewFeature" + } + ], + "declKind": "Constructor", + "usr": "c:@M@CleverTapSDK@objc(cs)CTNewFeature(im)init", + "mangledName": "$s12CleverTapSDK12CTNewFeatureCACycfc", + "moduleName": "CleverTapSDK", + "overriding": true, + "implicit": true, + "objc_name": "init", + "declAttributes": [ + "Dynamic", + "ObjC", + "Override" + ], + "init_kind": "Designated" + } + ], + "declKind": "Class", + "usr": "c:@M@CleverTapSDK@objc(cs)CTNewFeature", + "mangledName": "$s12CleverTapSDK12CTNewFeatureC", + "moduleName": "CleverTapSDK", + "declAttributes": [ + "AccessControl", + "ObjC", + "RawDocComment" + ], + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "_KeyValueCodingAndObservingPublishing", + "printedName": "_KeyValueCodingAndObservingPublishing", + "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP", + "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP" + }, + { + "kind": "Conformance", + "name": "_KeyValueCodingAndObserving", + "printedName": "_KeyValueCodingAndObserving", + "usr": "s:10Foundation27_KeyValueCodingAndObservingP", + "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } + ] + } + ], + "json_format_version": 8 + }, + "ConstValues": [] +} \ No newline at end of file diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios.private.swiftinterface b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios.private.swiftinterface new file mode 100644 index 000000000..19a62cbd3 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios.private.swiftinterface @@ -0,0 +1,15 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) +// swift-module-flags: -target arm64-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 6 -enforce-exclusivity=checked -O -module-name CleverTapSDK +// swift-module-flags-ignorable: -no-verify-emitted-module-interface +@_exported import CleverTapSDK +import Foundation +import Swift +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +@_inheritsConvenienceInitializers @objc public class CTNewFeature : ObjectiveC.NSObject { + @objc public func newFeature() + @objc override dynamic public init() + @objc deinit +} diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios.swiftdoc b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios.swiftdoc new file mode 100644 index 000000000..59b5ab2f4 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios.swiftdoc differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios.swiftinterface b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios.swiftinterface new file mode 100644 index 000000000..19a62cbd3 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios.swiftinterface @@ -0,0 +1,15 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) +// swift-module-flags: -target arm64-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 6 -enforce-exclusivity=checked -O -module-name CleverTapSDK +// swift-module-flags-ignorable: -no-verify-emitted-module-interface +@_exported import CleverTapSDK +import Foundation +import Swift +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +@_inheritsConvenienceInitializers @objc public class CTNewFeature : ObjectiveC.NSObject { + @objc public func newFeature() + @objc override dynamic public init() + @objc deinit +} diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Modules/module.modulemap b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Modules/module.modulemap new file mode 100644 index 000000000..2a9861faf --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/Modules/module.modulemap @@ -0,0 +1,61 @@ +//framework module CleverTapSDK { +// header "CleverTap.h" +// header "CleverTap+Inbox.h" +// header "CleverTap+FeatureFlags.h" +// header "CleverTap+ProductConfig.h" +// header "CleverTap+DisplayUnit.h" +// header "CleverTap+SSLPinning.h" +// header "CleverTapBuildInfo.h" +// header "CleverTapEventDetail.h" +// header "CleverTapInAppNotificationDelegate.h" +// header "CleverTapPushNotificationDelegate.h" +// header "CleverTapURLDelegate.h" +// header "CleverTapSyncDelegate.h" +// header "CleverTapUTMDetail.h" +// header "CleverTapTrackedViewController.h" +// header "CleverTapInstanceConfig.h" +// header "CleverTapJSInterface.h" +// header "CleverTap+InAppNotifications.h" +// header "CleverTap+SCDomain.h" +// header "CTLocalInApp.h" +// header "CleverTap+CTVar.h" +// header "CTVar.h" +// header "LeanplumCT.h" +// header "CTInAppTemplateBuilder.h" +// header "CTAppFunctionBuilder.h" +// header "CTTemplatePresenter.h" +// header "CTTemplateProducer.h" +// header "CTCustomTemplateBuilder.h" +// header "CTCustomTemplate.h" +// header "CTTemplateContext.h" +// header "CTCustomTemplatesManager.h" +// header "CleverTap+PushPermission.h" +// export * +// +// //Private headers +// header "CTRequestFactory.h" +// header "CTRequest.h" +// +//} + + +framework module CleverTapSDK { + umbrella header "CleverTapSDK.h" + export * + + //Private headers + // If we do this, sdk swift classes can access private objc classes, but clients can access them too. This is a known issue online. + header "CTRequestFactory.h" + header "CTRequest.h" +} + +// Clients can still access this, but they need to import a new module. +//framework module CleverTapSDK_Private { +// header "CTRequestFactory.h" +// export * +//} + +module CleverTapSDK.Swift { + header "CleverTapSDK-Swift.h" + requires objc +} diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivacyInfo.xcprivacy b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivacyInfo.xcprivacy new file mode 100644 index 000000000..02f5651a5 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivacyInfo.xcprivacy @@ -0,0 +1,61 @@ + + + + + NSPrivacyCollectedDataTypes + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeUserID + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + NSPrivacyCollectedDataTypePurposeProductPersonalization + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeDeviceID + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + NSPrivacyCollectedDataTypePurposeProductPersonalization + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeProductInteraction + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAnalytics + NSPrivacyCollectedDataTypePurposeProductPersonalization + + + + NSPrivacyTracking + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + + diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTAVPlayerViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTAVPlayerViewController.h new file mode 100644 index 000000000..4cb2729b7 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTAVPlayerViewController.h @@ -0,0 +1,9 @@ +#import + +@class CTInAppNotification; + +@interface CTAVPlayerViewController : AVPlayerViewController + +- (instancetype)initWithNotification:(CTInAppNotification*)notification; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTAlertViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTAlertViewController.h new file mode 100644 index 000000000..e67befbc4 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTAlertViewController.h @@ -0,0 +1,5 @@ +#import "CTInAppDisplayViewController.h" + +@interface CTAlertViewController : CTInAppDisplayViewController + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTBaseHeaderFooterViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTBaseHeaderFooterViewController.h new file mode 100644 index 000000000..46fe2371a --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTBaseHeaderFooterViewController.h @@ -0,0 +1,6 @@ + +#import "CTInAppDisplayViewController.h" + +@interface CTBaseHeaderFooterViewController : CTInAppDisplayViewController + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTBaseHeaderFooterViewControllerPrivate.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTBaseHeaderFooterViewControllerPrivate.h new file mode 100644 index 000000000..df10d5206 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTBaseHeaderFooterViewControllerPrivate.h @@ -0,0 +1,10 @@ + +@interface CTBaseHeaderFooterViewController () + +- (instancetype)initWithNibName:(NSString *)nibNameOrNil + bundle:(NSBundle *)nibBundleOrNil + notification: (CTInAppNotification *)notification; + +- (void)layoutNotification; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTCarouselImageMessageCell.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTCarouselImageMessageCell.h new file mode 100644 index 000000000..bb54ad044 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTCarouselImageMessageCell.h @@ -0,0 +1,5 @@ +#import "CTCarouselMessageCell.h" + +@interface CTCarouselImageMessageCell : CTCarouselMessageCell + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTCarouselImageView.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTCarouselImageView.h new file mode 100644 index 000000000..16e36e1a5 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTCarouselImageView.h @@ -0,0 +1,28 @@ +#import + +@interface CTCarouselImageView : UIView + +@property(nonatomic, strong, nullable, readonly) NSString *actionUrl; +@property (strong, nonatomic) IBOutlet UIImageView * _Nullable cellImageView; +@property (strong, nonatomic) IBOutlet UILabel * _Nullable titleLabel; +@property (strong, nonatomic) IBOutlet UILabel *_Nullable bodyLabel; +@property (nonatomic, strong) IBOutlet NSLayoutConstraint * _Nullable imageViewLandRatioConstraint; +@property (nonatomic, strong) IBOutlet NSLayoutConstraint * _Nullable imageViewPortRatioConstraint; + ++ (CGFloat)captionHeight; + +- (instancetype _Nonnull)initWithFrame:(CGRect)frame + caption:(NSString * _Nullable)caption + subcaption:(NSString * _Nullable)subcaption + captionColor:(NSString * _Nullable)captionColor + subcaptionColor:(NSString * _Nullable)subcaptionColor + imageUrl:(NSString * _Nonnull)imageUrl + actionUrl:(NSString * _Nullable)actionUrl + orientationPortrait:(BOOL)orientationPortrait; + +- (instancetype _Nonnull)initWithFrame:(CGRect)frame + imageUrl:(NSString * _Nonnull)imageUrl + actionUrl:(NSString * _Nullable)actionUrl + orientationPortrait:(BOOL)orientationPortrait; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTCarouselMessageCell.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTCarouselMessageCell.h new file mode 100644 index 000000000..7e79d252b --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTCarouselMessageCell.h @@ -0,0 +1,27 @@ +#import "CTInboxBaseMessageCell.h" +#import "CTSwipeView.h" + +@class CTCarouselImageView; + +@interface CTCarouselMessageCell : CTInboxBaseMessageCell{ + CGFloat captionHeight; +} + +@property (nonatomic, strong) NSMutableArray *itemViews; +@property (nonatomic, assign) long currentItemIndex; +@property (nonatomic, strong) UIPageControl *pageControl; +@property (nonatomic, strong) CTSwipeView *swipeView; +@property (nonatomic, strong) IBOutlet UIView *carouselView; +@property (nonatomic, strong) IBOutlet NSLayoutConstraint *carouselViewHeight; +@property (nonatomic, strong) IBOutlet NSLayoutConstraint *carouselViewWidth; + +@property (nonatomic, strong) IBOutlet NSLayoutConstraint *carouselLandRatioConstraint; +@property (nonatomic, strong) IBOutlet NSLayoutConstraint *carouselPortRatioConstraint; + +- (CGFloat)heightForPageControl; +- (float)getLandscapeMultiplier; +- (void)configurePageControlWithRect:(CGRect)rect; +- (void)configureSwipeViewWithHeightAdjustment:(CGFloat)adjustment; +- (void)handleItemViewTapGesture:(UITapGestureRecognizer *)sender; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTCertificatePinning.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTCertificatePinning.h new file mode 100644 index 000000000..2fed8b19a --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTCertificatePinning.h @@ -0,0 +1,67 @@ +#if CLEVERTAP_SSL_PINNING + +// Based on: +// ISPCertificatePinning.h +// SSLCertificatePinning v3 +// +// Created by Alban Diquet on 1/14/14. +// Copyright (c) 2014 iSEC Partners. All rights reserved. +// + +@import Foundation; + +/** This class implements certificate pinning utility functions. + + First, the certificates and domains to pin should be loaded using + setupSSLPinsUsingDictionnary:. This method will store them in + "~/Library/SSLPins.plist". + + Then, the verifyPinnedCertificateForTrust:andDomain: method can be + used to validate that at least one the certificates pinned to a + specific domain is in the server's certificate chain when connecting to + it. This method should be used for example in the + connection:willSendRequestForAuthenticationChallenge: method of the + NSURLConnectionDelegate object that is used to perform the connection. + + Alternatively, the ISPPinnedNSURLSessionDelegate or + ISPPinnedNSURLConnectionDelegate classes can be directly used + to create a delegate class performing certificate pinning. + + */ +@interface CTCertificatePinning : NSObject + + +/** + Certificate pinning loading method + + This method takes a dictionary with domain names as keys and arrays of DER- + encoded certificates as values, and stores them in a pre-defined location on + the filesystem. The ability to specify multiple certificates for a single + domain is useful when transitioning from an expiring certificate to a new one. + + @param domainsAndCertificates a dictionnary with domain names as keys and arrays of DER-encoded certificates as values + @return BOOL successfully loaded the public keys and domains + + */ ++ (BOOL)setupSSLPinsUsingDictionnary:(NSDictionary*)domainsAndCertificates forAccountId:(NSString *)accountId; + + +/** + Certificate pinning validation method + + This method accesses the certificates previously loaded using the + setupSSLPinsUsingDictionnary: method and inspects the trust object's + certificate chain in order to find at least one certificate pinned to the + given domain. SecTrustEvaluate() should always be called before this method to + ensure that the certificate chain is valid. + + @param trust the trust object whose certificate chain must contain the certificate previously pinned to the given domain + @param domain the domain we're trying to connect to + @return BOOL found the domain's pinned certificate in the trust object's certificate chain + + */ ++ (BOOL)verifyPinnedCertificateForTrust:(SecTrustRef)trust andDomain:(NSString*)domain forAccountId:(NSString *)accountId; + +@end + +#endif diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTConstants.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTConstants.h new file mode 100644 index 000000000..c1f91ae17 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTConstants.h @@ -0,0 +1,276 @@ +#import "CTLogger.h" + +extern NSString *const kCTApiDomain; +extern NSString *const kCTNotifViewedApiDomain; +extern NSString *const kHANDSHAKE_URL; +extern NSString *const kHANDSHAKE_DOMAIN_HEADER; +extern NSString *const ACCOUNT_ID_HEADER; +extern NSString *const ACCOUNT_TOKEN_HEADER; + +extern NSString *const REDIRECT_DOMAIN_KEY; +extern NSString *const REDIRECT_NOTIF_VIEWED_DOMAIN_KEY; + +extern NSString *const kLastSessionPing; +extern NSString *const kLastSessionTime; +extern NSString *const kSessionId; + +#define CleverTapLogInfo(level, fmt, ...) if(level >= 0) { NSLog((@"%@" fmt), @"[CleverTap]: ", ##__VA_ARGS__); } +#define CleverTapLogDebug(level, fmt, ...) if(level > 0) { NSLog((@"%@" fmt), @"[CleverTap]: ", ##__VA_ARGS__); } +#define CleverTapLogInternal(level, fmt, ...) if (level >= 1) { NSLog((@"%@" fmt), @"[CleverTap]: ", ##__VA_ARGS__); } +#define CleverTapLogStaticInfo(fmt, ...) if([CTLogger getDebugLevel] >= 0) { NSLog((@"%@" fmt), @"[CleverTap]: ", ##__VA_ARGS__); } +#define CleverTapLogStaticDebug(fmt, ...) if([CTLogger getDebugLevel] > 0) { NSLog((@"%@" fmt), @"[CleverTap]: ", ##__VA_ARGS__); } +#define CleverTapLogStaticInternal(fmt, ...) if([CTLogger getDebugLevel] >= 1) { NSLog((@"%@" fmt), @"[CleverTap]: ", ##__VA_ARGS__); } + +#define CT_TRY @try { +#define CT_END_TRY }\ +@catch (NSException *e) {\ +[CTLogger logInternalError:e]; } + +#define CLTAP_CUSTOM_TEMPLATE_EXCEPTION @"CleverTapCustomTemplateException" + +#pragma mark Constants for General data +#define CLTAP_REQUEST_TIME_OUT_INTERVAL 10 +#define CLTAP_ACCOUNT_ID_LABEL @"CleverTapAccountID" +#define CLTAP_TOKEN_LABEL @"CleverTapToken" +#define CLTAP_REGION_LABEL @"CleverTapRegion" +#define CLTAP_PROXY_DOMAIN_LABEL @"CleverTapProxyDomain" +#define CLTAP_SPIKY_PROXY_DOMAIN_LABEL @"CleverTapSpikyProxyDomain" +#define CLTAP_DISABLE_APP_LAUNCH_LABEL @"CleverTapDisableAppLaunched" +#define CLTAP_USE_CUSTOM_CLEVERTAP_ID_LABEL @"CleverTapUseCustomId" +#define CLTAP_DISABLE_IDFV_LABEL @"CleverTapDisableIDFV" +#define CLTAP_ENABLE_FILE_PROTECTION @"CleverTapEnableFileProtection" +#define CLTAP_HANDSHAKE_DOMAIN @"CleverTapHandshakeDomain" +#define CLTAP_BETA_LABEL @"CleverTapBeta" +#define CLTAP_SESSION_LENGTH_MINS 20 +#define CLTAP_SESSION_LAST_VC_TRAIL @"last_session_vc_trail" +#define CLTAP_FB_DOB_DATE_FORMAT @"MM/dd/yyyy" +#define CLTAP_GP_DOB_DATE_FORMAT @"yyyy-MM-dd" +#define CLTAP_APNS_PROPERTY_DEVICE_TOKEN @"device_token" +#define CLTAP_NOTIFICATION_CLICKED_EVENT_NAME @"Notification Clicked" +#define CLTAP_NOTIFICATION_VIEWED_EVENT_NAME @"Notification Viewed" +#define CLTAP_GEOFENCE_ENTERED_EVENT_NAME @"Geocluster Entered" +#define CLTAP_GEOFENCE_EXITED_EVENT_NAME @"Geocluster Exited" + +#define CLTAP_SIGNED_CALL_OUTGOING_EVENT_NAME @"SCOutgoing" +#define CLTAP_SIGNED_CALL_INCOMING_EVENT_NAME @"SCIncoming" +#define CLTAP_SIGNED_CALL_END_EVENT_NAME @"SCEnd" + +#define CLTAP_PREFS_LAST_DAILY_PUSHED_EVENTS_DATE @"lastDailyEventsPushedDate" +#define CLTAP_SYSTEM_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending) +#define CLTAP_APP_LAUNCHED_EVENT @"App Launched" +#define CLTAP_CHARGED_EVENT @"Charged" +#define CLTAP_PROFILE @"profile" +#define CLTAP_USER_ATTRIBUTE_CHANGE @"_change" +#define CLTAP_KEY_NEW_VALUE @"newValue" +#define CLTAP_KEY_OLD_VALUE @"oldValue" +#define CLTAP_KEY_PROFILE_ATTR_NAME @"profileAttrName" +#define CLTAP_EVENT_NAME @"evtName" +#define CLTAP_EVENT_DATA @"evtData" +#define CLTAP_CHARGED_EVENT_ITEMS @"Items" +#define CLTAP_ERROR_KEY @"wzrk_error" +#define CLTAP_WZRK_FETCH_EVENT @"wzrk_fetch" +#define CLTAP_PUSH_DELAY_SECONDS 1 +#define CLTAP_PING_TICK_INTERVAL 1 +#define CLTAP_LOCATION_PING_INTERVAL_SECONDS 10 +#define CLTAP_INBOX_MSG_JSON_RESPONSE_KEY @"inbox_notifs" +#define CLTAP_DISPLAY_UNIT_JSON_RESPONSE_KEY @"adUnit_notifs" +#define CLTAP_FEATURE_FLAGS_JSON_RESPONSE_KEY @"ff_notifs" +#define CLTAP_PRODUCT_CONFIG_JSON_RESPONSE_KEY @"pc_notifs" +#define CLTAP_GEOFENCES_JSON_RESPONSE_KEY @"geofences" +#define CLTAP_PE_VARS_RESPONSE_KEY @"vars" +#define CLTAP_DISCARDED_EVENT_JSON_KEY @"d_e" +#define CLTAP_INAPP_CLOSE_IV_WIDTH 40 +#define CLTAP_NOTIFICATION_ID_TAG @"wzrk_id" +#define CLTAP_NOTIFICATION_PIVOT @"wzrk_pivot" +#define CLTAP_NOTIFICATION_PIVOT_DEFAULT @"wzrk_default" +#define CLTAP_NOTIFICATION_CONTROL_GROUP_ID @"wzrk_cgId" +#define CLTAP_WZRK_PREFIX @"wzrk_" +#define CLTAP_NOTIFICATION_TAG_SECONDARY @"wzrk_" +#define CLTAP_NOTIFICATION_CLICKED_TAG @"wzrk_cts" +#define CLTAP_NOTIFICATION_TAG @"W$" +#define CLTAP_DATE_FORMAT @"yyyyMMdd" +#define CLTAP_DATE_PREFIX @"$D_" + +// profile commands +static NSString *const kCLTAP_COMMAND_SET = @"$set"; +static NSString *const kCLTAP_COMMAND_ADD = @"$add"; +static NSString *const kCLTAP_COMMAND_REMOVE = @"$remove"; +static NSString *const kCLTAP_COMMAND_INCREMENT = @"$incr"; +static NSString *const kCLTAP_COMMAND_DECREMENT = @"$decr"; +static NSString *const kCLTAP_COMMAND_DELETE = @"$delete"; + +#define CLTAP_MULTIVAL_COMMANDS @[kCLTAP_COMMAND_SET, kCLTAP_COMMAND_ADD, kCLTAP_COMMAND_REMOVE] + +#pragma mark Constants for File Assets +#define CLTAP_FILE_URLS_EXPIRY_DICT @"file_urls_expiry_dict" +#define CLTAP_FILE_ASSETS_LAST_DELETED_TS @"cs_file_assets_last_deleted_timestamp" +#define CLTAP_FILE_EXPIRY_OFFSET (60 * 60 * 24 * 7 * 2) // 2 weeks +#define CLTAP_FILE_RESOURCE_TIME_OUT_INTERVAL 25 +#define CLTAP_FILE_MAX_CONCURRENCY_COUNT 10 +#define CLTAP_FILES_DIRECTORY_NAME @"CleverTap_Files" + +#pragma mark Constants for App fields +#define CLTAP_APP_VERSION @"Version" +#define CLTAP_LATITUDE @"Latitude" +#define CLTAP_LONGITUDE @"Longitude" +#define CLTAP_OS_VERSION @"OS Version" +#define CLTAP_SDK_VERSION @"SDK Version" +#define CLTAP_CARRIER @"Carrier" +#define CLTAP_NETWORK_TYPE @"Radio" +#define CLTAP_CONNECTED_TO_WIFI @"wifi" +#define CLTAP_BLUETOOTH_VERSION @"BluetoothVersion" +#define CLTAP_BLUETOOTH_ENABLED @"BluetoothEnabled" + +#pragma mark Constants for PE Variables +extern NSString *CT_KIND_INT; +extern NSString *CT_KIND_FLOAT; +extern NSString *CT_KIND_STRING; +extern NSString *CT_KIND_BOOLEAN; +extern NSString *CT_KIND_DICTIONARY; +extern NSString *CT_KIND_FILE; +extern NSString *CLEVERTAP_DEFAULTS_VARIABLES_KEY; +extern NSString *CLEVERTAP_DEFAULTS_VARS_JSON_KEY; + +extern NSString *CT_PE_VARS_PAYLOAD_TYPE; +extern NSString *CT_PE_VARS_PAYLOAD_KEY; +extern NSString *CT_PE_VAR_TYPE; +extern NSString *CT_PE_NUMBER_TYPE; +extern NSString *CT_PE_BOOL_TYPE; +extern NSString *CT_PE_DEFAULT_VALUE; + +extern NSString *CLTAP_PROFILE_IDENTITY_KEY; + +#pragma mark Constants for In-App Notifications +#define CLTAP_INAPP_JSON_RESPONSE_KEY @"inapp_notifs" +#define CLTAP_INAPP_STALE_JSON_RESPONSE_KEY @"inapp_stale" +#define CLTAP_INAPP_GLOBAL_CAP_SESSION_JSON_RESPONSE_KEY @"imc" +#define CLTAP_INAPP_GLOBAL_CAP_DAY_JSON_RESPONSE_KEY @"imp" +#define CLTAP_INAPP_CS_JSON_RESPONSE_KEY @"inapp_notifs_cs" +#define CLTAP_INAPP_SS_JSON_RESPONSE_KEY @"inapp_notifs_ss" +#define CLTAP_INAPP_SS_APP_LAUNCHED_JSON_RESPONSE_KEY @"inapp_notifs_applaunched" +#define CLTAP_INAPP_MODE_JSON_RESPONSE_KEY @"inapp_delivery_mode" + +#define CLTAP_INAPP_SHOWN_TODAY_META_KEY @"imp" +#define CLTAP_INAPP_COUNTS_META_KEY @"tlc" +#define CLTAP_INAPP_SS_EVAL_META_KEY @"inapps_eval" +#define CLTAP_INAPP_SUPPRESSED_META_KEY @"inapps_suppressed" +#define CLTAP_INAPP_SS_EVAL_STORAGE_KEY @"inapps_eval" +#define CLTAP_INAPP_SUPPRESSED_STORAGE_KEY @"inapps_suppressed" +#define CLTAP_INAPP_SS_EVAL_STORAGE_KEY_PROFILE @"inapps_eval_profile" +#define CLTAP_INAPP_SUPPRESSED_STORAGE_KEY_PROFILE @"inapps_suppressed_profile" + +#define CLTAP_PREFS_INAPP_SESSION_MAX_KEY @"imc_max" +#define CLTAP_PREFS_INAPP_LAST_DATE_KEY @"ict_date" +#define CLTAP_PREFS_INAPP_COUNTS_PER_INAPP_KEY @"counts_per_inapp" +#define CLTAP_PREFS_INAPP_COUNTS_SHOWN_TODAY_KEY @"istc_inapp" +#define CLTAP_PREFS_INAPP_MAX_PER_DAY_KEY @"istmcd_inapp" +#define CLTAP_PREFS_INAPP_LOCAL_INAPP_COUNT_KEY @"local_in_app_count" + +#define CLTAP_PREFS_INAPP_KEY @"inapp_notifs" +#define CLTAP_PREFS_INAPP_KEY_CS @"inapp_notifs_cs" +#define CLTAP_PREFS_INAPP_KEY_SS @"inapp_notifs_ss" + +#define CLTAP_PREFS_CS_INAPP_ACTIVE_ASSETS @"cs_inapp_active_assets" +#define CLTAP_PREFS_CS_INAPP_INACTIVE_ASSETS @"cs_inapp_inactive_assets" +#define CLTAP_PREFS_CS_INAPP_ASSETS_LAST_DELETED_TS @"cs_inapp_assets_last_deleted_timestamp" + +#define CLTAP_PROP_CAMPAIGN_ID @"Campaign id" +#define CLTAP_PROP_WZRK_ID @"wzrk_id" +#define CLTAP_PROP_VARIANT @"Variant" +#define CLTAP_PROP_WZRK_PIVOT @"wzrk_pivot" +#define CLTAP_PROP_WZRK_CTA @"wzrk_c2a" + +#define CLTAP_INAPP_ID @"ti" +#define CLTAP_INAPP_TTL @"wzrk_ttl" +#define CLTAP_INAPP_CS_TTL_OFFSET @"wzrk_ttl_offset" +#define CLTAP_INAPP_PRIORITY @"priority" +#define CLTAP_INAPP_IS_SUPPRESSED @"suppressed" +#define CLTAP_INAPP_MAX_PER_SESSION @"mdc" +#define CLTAP_INAPP_TOTAL_DAILY_COUNT @"tdc" +#define CLTAP_INAPP_TOTAL_LIFETIME_COUNT @"tlc" +#define CLTAP_INAPP_EXCLUDE_FROM_CAPS @"efc" +#define CLTAP_INAPP_EXCLUDE_GLOBAL_CAPS @"excludeGlobalFCaps" +#define CLTAP_INAPP_MEDIA @"media" +#define CLTAP_INAPP_MEDIA_LANDSCAPE @"mediaLandscape" +#define CLTAP_INAPP_MEDIA_CONTENT_TYPE @"content_type" +#define CLTAP_INAPP_MEDIA_URL @"url" + +#define CLTAP_TRIGGER_BOOL_STRING_YES @"true" +#define CLTAP_TRIGGER_BOOL_STRING_NO @"false" + +// whenTriggers +#define CLTAP_INAPP_TRIGGERS @"whenTriggers" + +// whenLimits +#define CLTAP_INAPP_FC_LIMITS @"frequencyLimits" +#define CLTAP_INAPP_OCCURRENCE_LIMITS @"occurrenceLimits" + +#define CLTAP_INAPP_DATA_TAG @"d" +#define CLTAP_INAPP_HTML @"html" +#define CLTAP_INAPP_X_PERCENT @"xp" +#define CLTAP_INAPP_Y_PERCENT @"yp" +#define CLTAP_INAPP_X_DP @"xdp" +#define CLTAP_INAPP_Y_DP @"ydp" +#define CLTAP_INAPP_POSITION @"pos" +#define CLTAP_INAPP_POSITION_TOP 't' +#define CLTAP_INAPP_POSITION_RIGHT 'r' +#define CLTAP_INAPP_POSITION_BOTTOM 'b' +#define CLTAP_INAPP_POSITION_LEFT 'l' +#define CLTAP_INAPP_POSITION_CENTER 'c' +#define CLTAP_INAPP_NOTIF_DARKEN_SCREEN @"dk" +#define CLTAP_INAPP_NOTIF_SHOW_CLOSE @"sc" + +#define CLTAP_INAPP_HTML_TYPE @"custom-html" + +#define CLTAP_INAPP_TYPE @"type" +#define CLTAP_INAPP_TEMPLATE_NAME @"templateName" +#define CLTAP_INAPP_TEMPLATE_ID @"templateId" +#define CLTAP_INAPP_TEMPLATE_DESCRIPTION @"templateDescription" +#define CLTAP_INAPP_VARS @"vars" +#define CLTAP_INAPP_ACTIONS @"actions" + +#define CLTAP_INAPP_PREVIEW_TYPE @"wzrk_inapp_type" +#define CLTAP_INAPP_IMAGE_INTERSTITIAL_TYPE @"image-interstitial" +#define CLTAP_INAPP_IMAGE_INTERSTITIAL_CONFIG @"imageInterstitialConfig" +#define CLTAP_INAPP_HTML_SPLIT @"\"##Vars##\"" +#define CLTAP_INAPP_IMAGE_INTERSTITIAL_HTML_NAME @"image_interstitial" + +#pragma mark Constants for persisting system data +#define CLTAP_SYS_CARRIER @"sysCarrier" +#define CLTAP_SYS_CC @"sysCountryCode" +#define CLTAP_SYS_TZ @"sysTZ" + +#define CLTAP_USER_NAME @"Name" +#define CLTAP_USER_EMAIL @"Email" +#define CLTAP_USER_EDUCATION @"Education" +#define CLTAP_USER_MARRIED @"Married" +#define CLTAP_USER_DOB @"DOB" +#define CLTAP_USER_BIRTHDAY @"Birthday" +#define CLTAP_USER_EMPLOYED @"Employed" +#define CLTAP_USER_GENDER @"Gender" +#define CLTAP_USER_PHONE @"Phone" +#define CLTAP_USER_AGE @"Age" + +#define CLTAP_OPTOUT @"ct_optout" + +#pragma mark Constants for profile init/sync notifications +#define CLTAP_PROFILE_DID_INITIALIZE_NOTIFICATION @"CleverTapProfileDidInitializeNotification" +#define CLTAP_PROFILE_DID_CHANGE_NOTIFICATION @"CleverTapProfileDidChangeNotification" + +#pragma mark Constants for Inbox notifications +#define CLTAP_INBOX_MESSAGE_TAPPED_NOTIFICATION @"CleverTapInboxMessageTappedNotification" +#define CLTAP_INBOX_MESSAGE_MEDIA_PLAYING_NOTIFICATION @"CleverTapInboxMediaPlayingNotification" +#define CLTAP_INBOX_MESSAGE_MEDIA_MUTED_NOTIFICATION @"CleverTapInboxMediaMutedNotification" + +#pragma mark Constants for Geofences update notification +#define CLTAP_GEOFENCES_DID_UPDATE_NOTIFICATION @"CleverTapGeofencesDidUpdateNotification" + +#pragma mark Constants for Profile identifier keys +#define CLTAP_PROFILE_IDENTIFIER_KEYS @[@"Identity", @"Email"] // LEGACY KEYS +#define CLTAP_ALL_PROFILE_IDENTIFIER_KEYS @[@"Identity", @"Email", @"Phone"] +#define CLTAP_SKIP_KEYS_USER_ATTRIBUTE_EVALUATION @[@"cc", @"tz", @"Carrier"] + +#pragma mark Constants for Encryption +#define CLTAP_ENCRYPTION_LEVEL @"CleverTapEncryptionLevel" +#define CLTAP_ENCRYPTION_IV @"__CL3>3Rt#P__1V_" +#define CLTAP_ENCRYPTION_PII_DATA (@[@"Identity", @"Email", @"Phone", @"Name"]); diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTCoverImageViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTCoverImageViewController.h new file mode 100644 index 000000000..3dd064dea --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTCoverImageViewController.h @@ -0,0 +1,6 @@ +#import "CTImageInAppViewController.h" + +@interface CTCoverImageViewController : CTImageInAppViewController + +@end + diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTCoverViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTCoverViewController.h new file mode 100644 index 000000000..bb08ec89e --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTCoverViewController.h @@ -0,0 +1,5 @@ +#import "CTInAppDisplayViewController.h" + +@interface CTCoverViewController : CTInAppDisplayViewController + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTDeviceInfo.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTDeviceInfo.h new file mode 100644 index 000000000..3258516b1 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTDeviceInfo.h @@ -0,0 +1,37 @@ +#import + +@class CleverTapInstanceConfig; +@class CTValidationResult; + +@interface CTDeviceInfo : NSObject + +@property (strong, readonly) NSString *sdkVersion; +@property (strong, readonly) NSString *appVersion; +@property (strong, readonly) NSString *appBuild; +@property (strong, readonly) NSString *bundleId; +@property (strong, readonly) NSString *osName; +@property (strong, readonly) NSString *osVersion; +@property (strong, readonly) NSString *manufacturer; +@property (atomic, readonly) NSString *model; +@property (strong, readonly) NSString *carrier; +@property (strong, readonly) NSString *countryCode; +@property (strong, readonly) NSString *timeZone; +@property (strong, readonly) NSString *radio; +@property (strong, readonly) NSString *vendorIdentifier; +@property (strong, readonly) NSString *deviceWidth; +@property (strong, readonly) NSString *deviceHeight; +@property (atomic, readonly) NSString *deviceId; +@property (atomic, readonly) NSString *fallbackDeviceId; +@property (atomic, readwrite) NSString *library; +@property (assign, readonly) BOOL wifi; +@property (assign, readonly) BOOL isOnline; +@property (assign, readonly) BOOL enableFileProtection; +@property (strong, readonly) NSMutableArray* validationErrors; +@property (strong, readonly) NSLocale *systemLocale; + +- (instancetype)initWithConfig:(CleverTapInstanceConfig *)config andCleverTapID:(NSString *)cleverTapID; +- (void)forceUpdateDeviceID:(NSString *)newDeviceID; +- (void)forceNewDeviceID; +- (void)forceUpdateCustomDeviceID:(NSString *)cleverTapID; +- (BOOL)isErrorDeviceID; +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTDismissButton.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTDismissButton.h new file mode 100644 index 000000000..91b3a81ab --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTDismissButton.h @@ -0,0 +1,6 @@ + +#import + +@interface CTDismissButton : UIButton + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTEventBuilder.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTEventBuilder.h new file mode 100644 index 000000000..d3a846354 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTEventBuilder.h @@ -0,0 +1,45 @@ +#import +#import "CleverTap.h" + +@class CTValidationResult; +@class CTInAppNotification; +@class CleverTapInboxMessage; +@class CleverTapDisplayUnit; + +@interface CTEventBuilder : NSObject + ++ (void)build:(NSString * _Nonnull)eventName completionHandler:(void(^ _Nonnull )(NSDictionary* _Nullable event, NSArray* _Nullable errors))completion; + ++ (void)build:(NSString * _Nonnull)eventName withEventActions:(NSDictionary * _Nullable)eventActions completionHandler:(void(^ _Nonnull )(NSDictionary* _Nullable event, NSArray* _Nullable errors))completion; + ++ (void)buildChargedEventWithDetails:(NSDictionary * _Nonnull)chargeDetails + andItems:(NSArray * _Nullable)items completionHandler:(void(^ _Nonnull )(NSDictionary* _Nullable event, NSArray * _Nullable errors))completion; + ++ (void)buildPushNotificationEvent:(BOOL)clicked + forNotification:(NSDictionary * _Nonnull)notification + completionHandler:(void(^ _Nonnull )(NSDictionary* _Nullable event, NSArray* _Nullable errors))completion; + ++ (void)buildInAppNotificationStateEvent:(BOOL)clicked + forNotification:(CTInAppNotification * _Nonnull)notification + andQueryParameters:(NSDictionary * _Nullable)params + completionHandler:(void(^ _Nonnull)(NSDictionary* _Nullable event, NSArray* _Nullable errors))completion; + ++ (void)buildInboxMessageStateEvent:(BOOL)clicked + forMessage:(CleverTapInboxMessage * _Nonnull)message + andQueryParameters:(NSDictionary * _Nullable)params + completionHandler:(void(^ _Nonnull)(NSDictionary * _Nullable event, NSArray * _Nullable errors))completion; + ++ (void)buildDisplayViewStateEvent:(BOOL)clicked + forDisplayUnit:(CleverTapDisplayUnit * _Nonnull)displayUnit + andQueryParameters:(NSDictionary * _Nullable)params + completionHandler:(void(^ _Nonnull)(NSDictionary * _Nullable event, NSArray * _Nullable errors))completion; + ++ (void)buildGeofenceStateEvent:(BOOL)entered + forGeofenceDetails:(NSDictionary * _Nonnull)geofenceDetails + completionHandler:(void(^ _Nonnull)(NSDictionary * _Nullable event, NSArray * _Nullable errors))completion; + ++ (void)buildSignedCallEvent:(int)eventRawValue + forCallDetails:(NSDictionary * _Nonnull)callDetails + completionHandler:(void(^ _Nonnull)(NSDictionary * _Nullable event, NSArray * _Nullable errors))completion; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTFeatureFlagsController.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTFeatureFlagsController.h new file mode 100644 index 000000000..37aed36a3 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTFeatureFlagsController.h @@ -0,0 +1,25 @@ +#import + +@protocol CTFeatureFlagsDelegate +@required +- (void)featureFlagsDidUpdate; +@end + +@class CleverTapInstanceConfig; + +@interface CTFeatureFlagsController : NSObject + +@property (nonatomic, assign, readonly) BOOL isInitialized; + +- (instancetype _Nullable ) init __unavailable; + +// blocking, call off main thread +- (instancetype _Nullable)initWithConfig:(CleverTapInstanceConfig *_Nonnull)config + guid:(NSString *_Nonnull)guid + delegate:(id_Nonnull)delegate; + +- (void)updateFeatureFlags:(NSArray *_Nullable)featureFlags; + +- (BOOL)get:(NSString* _Nonnull)key withDefaultValue:(BOOL)defaultValue; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTFooterViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTFooterViewController.h new file mode 100644 index 000000000..62a515964 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTFooterViewController.h @@ -0,0 +1,6 @@ + +#import "CTBaseHeaderFooterViewController.h" + +@interface CTFooterViewController : CTBaseHeaderFooterViewController + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTHalfInterstitialImageViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTHalfInterstitialImageViewController.h new file mode 100644 index 000000000..25438e66b --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTHalfInterstitialImageViewController.h @@ -0,0 +1,6 @@ +#import "CTImageInAppViewController.h" + +@interface CTHalfInterstitialImageViewController : CTImageInAppViewController + +@end + diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTHalfInterstitialViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTHalfInterstitialViewController.h new file mode 100644 index 000000000..bfabc2939 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTHalfInterstitialViewController.h @@ -0,0 +1,5 @@ +#import "CTInAppDisplayViewController.h" + +@interface CTHalfInterstitialViewController : CTInAppDisplayViewController + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTHeaderViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTHeaderViewController.h new file mode 100644 index 000000000..e4569b567 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTHeaderViewController.h @@ -0,0 +1,5 @@ +#import "CTBaseHeaderFooterViewController.h" + +@interface CTHeaderViewController : CTBaseHeaderFooterViewController + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppDisplayViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppDisplayViewController.h new file mode 100644 index 000000000..e86833b28 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppDisplayViewController.h @@ -0,0 +1,24 @@ +#import +#import "CTInAppNotification.h" +#import "CTInAppNotificationDisplayDelegate.h" +#if !(TARGET_OS_TV) +#import "CleverTapJSInterface.h" +#endif + +@interface CTInAppDisplayViewController : UIViewController + +@property (nonatomic, weak) id delegate; +@property (nonatomic, strong, readonly) CTInAppNotification *notification; + +- (instancetype)init __unavailable; +- (instancetype)initWithNotification:(CTInAppNotification*)notification; + +- (void)initializeWindowOfClass:(Class)windowClass animated:(BOOL)animated; + +- (void)show:(BOOL)animated; +- (void)hide:(BOOL)animated; +- (BOOL)deviceOrientationIsLandscape; + +- (void)triggerInAppAction:(CTNotificationAction *)action callToAction:(NSString *)callToAction buttonId:(NSString *)buttonId; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppDisplayViewControllerPrivate.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppDisplayViewControllerPrivate.h new file mode 100644 index 000000000..6cb54f76f --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppDisplayViewControllerPrivate.h @@ -0,0 +1,32 @@ +#import +#import "CTConstants.h" + +@interface CTInAppPassThroughWindow : UIWindow +@end + +@protocol CTInAppPassThroughViewDelegate +@required +- (void)viewWillPassThroughTouch; +@end + +@interface CTInAppPassThroughView : UIView +@property (nonatomic, weak) id delegate; +@end + +@interface CTInAppDisplayViewController () { +} + +@property (nonatomic, strong) UIWindow *window; +@property (nonatomic, strong, readwrite) CTInAppNotification *notification; +@property (nonatomic, assign) BOOL shouldPassThroughTouches; + +- (void)showFromWindow:(BOOL)animated; +- (void)hideFromWindow:(BOOL)animated; + +- (void)tappedDismiss; +- (void)buttonTapped:(UIButton*)button; +- (void)handleButtonClickFromIndex:(int)index; +- (void)handleImageTapGesture; +- (UIButton*)setupViewForButton:(UIButton *)buttonView withData:(CTNotificationButton *)button withIndex:(NSInteger)index; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppFCManager.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppFCManager.h new file mode 100644 index 000000000..e9dda9a73 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppFCManager.h @@ -0,0 +1,36 @@ +#import +#import "CTAttachToBatchHeaderDelegate.h" +#import "CTSwitchUserDelegate.h" + +@class CleverTap; +@class CleverTapInstanceConfig; +@class CTInAppNotification; +@class CTInAppEvaluationManager; +@class CTImpressionManager; +@class CTMultiDelegateManager; +@class CTInAppTriggerManager; + +@interface CTInAppFCManager : NSObject + +@property (nonatomic, strong, readonly) CleverTapInstanceConfig *config; +@property (atomic, copy, readonly) NSString *deviceId; +@property (assign, readonly) int localInAppCount; + +- (instancetype)init NS_UNAVAILABLE; +- (instancetype)initWithConfig:(CleverTapInstanceConfig *)config + delegateManager:(CTMultiDelegateManager *)delegateManager + deviceId:(NSString *)deviceId + impressionManager:(CTImpressionManager *)impressionManager + inAppTriggerManager:(CTInAppTriggerManager *)inAppTriggerManager; + +- (NSString *)storageKeyWithSuffix: (NSString *)suffix; +- (void)checkUpdateDailyLimits; +- (BOOL)canShow:(CTInAppNotification *)inapp; +- (void)didShow:(CTInAppNotification *)inapp; +- (void)updateGlobalLimitsPerDay:(int)perDay andPerSession:(int)perSession; +- (void)removeStaleInAppCounts:(NSArray *)staleInApps; +- (BOOL)hasLifetimeCapacityMaxedOut:(CTInAppNotification *)dictionary; +- (BOOL)hasDailyCapacityMaxedOut:(CTInAppNotification *)dictionary; +- (int)getLocalInAppCount; +- (void)incrementLocalInAppCount; +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppHTMLViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppHTMLViewController.h new file mode 100644 index 000000000..e1f29ff84 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppHTMLViewController.h @@ -0,0 +1,7 @@ +#import "CTInAppDisplayViewController.h" + +@interface CTInAppHTMLViewController : CTInAppDisplayViewController + +- (instancetype)initWithNotification:(CTInAppNotification *)notification config:(CleverTapInstanceConfig *)config; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppNotification.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppNotification.h new file mode 100644 index 000000000..92c55d69f --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppNotification.h @@ -0,0 +1,83 @@ +#import +#import +#import "CTInAppUtils.h" +#import "CTNotificationButton.h" +#if !CLEVERTAP_NO_INAPP_SUPPORT +#import "CTCustomTemplateInAppData.h" +#endif + +@interface CTInAppNotification : NSObject + +@property (nonatomic, readonly) NSString *Id; +@property (nonatomic, readonly) NSString *campaignId; +@property (nonatomic, readonly) CTInAppType inAppType; + +@property (nonatomic, copy, readonly) NSString *html; +@property (nonatomic, copy, readonly) NSString *url; +@property (nonatomic, readonly) BOOL excludeFromCaps; +@property (nonatomic, readonly) BOOL showClose; +@property (nonatomic, readonly) BOOL darkenScreen; +@property (nonatomic, readonly) int maxPerSession; +@property (nonatomic, readonly) int totalLifetimeCount; +@property (nonatomic, readonly) int totalDailyCount; +@property (nonatomic, readonly) NSInteger timeToLive; +@property (nonatomic, assign, readonly) char position; +@property (nonatomic, assign, readonly) float height; +@property (nonatomic, assign, readonly) float heightPercent; +@property (nonatomic, assign, readonly) float width; +@property (nonatomic, assign, readonly) float widthPercent; + +@property (nonatomic, copy, readonly) NSString *landscapeContentType; +@property (nonatomic, readonly) UIImage *inAppImage; +@property (nonatomic, readonly) UIImage *inAppImageLandscape; +@property (nonatomic, readonly) NSData *imageData; +@property (nonatomic, strong, readonly) NSURL *imageURL; +@property (nonatomic, readonly) NSData *imageLandscapeData; +@property (nonatomic, strong, readonly) NSURL *imageUrlLandscape; +@property (nonatomic, copy, readonly) NSString *contentType; +@property (nonatomic, copy, readonly) NSString *mediaUrl; +@property (nonatomic, readonly, assign) BOOL mediaIsVideo; +@property (nonatomic, readonly, assign) BOOL mediaIsAudio; +@property (nonatomic, readonly, assign) BOOL mediaIsImage; +@property (nonatomic, readonly, assign) BOOL mediaIsGif; + +@property (nonatomic, copy, readonly) NSString *title; +@property (nonatomic, copy, readonly) NSString *titleColor; +@property (nonatomic, copy, readonly) NSString *message; +@property (nonatomic, copy, readonly) NSString *messageColor; +@property (nonatomic, copy, readonly) NSString *backgroundColor; + +@property (nonatomic, readonly, assign) BOOL showCloseButton; +@property (nonatomic, readonly, assign) BOOL tablet; +@property (nonatomic, readonly, assign) BOOL hasLandscape; +@property (nonatomic, readonly, assign) BOOL hasPortrait; + +@property (nonatomic, readonly) NSArray *buttons; + +@property (nonatomic, copy, readonly) NSDictionary *jsonDescription; +@property (nonatomic) NSString *error; + +@property (nonatomic, copy, readonly) NSDictionary *customExtras; +@property (nonatomic, copy, readwrite) NSDictionary *actionExtras; + +@property (nonatomic, readonly) BOOL isLocalInApp; +@property (nonatomic, readonly) BOOL isPushSettingsSoftAlert; +@property (nonatomic, readonly) BOOL fallBackToNotificationSettings; +@property (nonatomic, readonly) BOOL skipSettingsAlert; + +@property (nonatomic, readonly) CTCustomTemplateInAppData *customTemplateInAppData; + +- (instancetype)init __unavailable; +#if !CLEVERTAP_NO_INAPP_SUPPORT +- (instancetype)initWithJSON:(NSDictionary*)json; +#endif + ++ (NSString * _Nullable)inAppId:(NSDictionary * _Nullable)inApp; + +- (void)setPreparedInAppImage:(UIImage * _Nullable)inAppImage + inAppImageData:(NSData * _Nullable)inAppImageData error:(NSString * _Nullable)error; + +- (void)setPreparedInAppImageLandscape:(UIImage * _Nullable)inAppImageLandscape + inAppImageLandscapeData:(NSData * _Nullable)inAppImageLandscapeData error:(NSString * _Nullable)error; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppNotificationDisplayDelegate.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppNotificationDisplayDelegate.h new file mode 100644 index 000000000..04c079d42 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppNotificationDisplayDelegate.h @@ -0,0 +1,38 @@ +// +// CTInAppNotificationDisplayDelegate.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 21.05.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#ifndef CTInAppNotificationDisplayDelegate_h +#define CTInAppNotificationDisplayDelegate_h + +@class CTInAppDisplayViewController; +@class CTInAppNotification; +@class CTNotificationAction; + +@protocol CTInAppNotificationDisplayDelegate + +- (void)notificationDidShow:(CTInAppNotification *)notification; + +- (void)handleNotificationAction:(CTNotificationAction *)action forNotification:(CTInAppNotification *)notification withExtras:(NSDictionary *)extras; + +- (void)notificationDidDismiss:(CTInAppNotification *)notification fromViewController:(CTInAppDisplayViewController *)controller; + +/** + Called when in-app button is tapped for requesting push permission. + */ +- (void)handleInAppPushPrimer:(CTInAppNotification *)notification + fromViewController:(CTInAppDisplayViewController *)controller + withFallbackToSettings:(BOOL)isFallbackToSettings; + +/** + Called to notify that local in-app push primer is dismissed. + */ +- (void)inAppPushPrimerDidDismissed; + +@end + +#endif /* Header_h */ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppUtils.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppUtils.h new file mode 100644 index 000000000..6c67df355 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInAppUtils.h @@ -0,0 +1,37 @@ + +#import + +typedef NS_ENUM(NSUInteger, CTInAppType){ + CTInAppTypeUnknown, + CTInAppTypeHTML, + CTInAppTypeInterstitial, + CTInAppTypeHalfInterstitial, + CTInAppTypeCover, + CTInAppTypeHeader, + CTInAppTypeFooter, + CTInAppTypeAlert, + CTInAppTypeInterstitialImage, + CTInAppTypeHalfInterstitialImage, + CTInAppTypeCoverImage, + CTInAppTypeCustom +}; + +typedef NS_ENUM(NSUInteger, CTInAppActionType){ + CTInAppActionTypeUnknown, + CTInAppActionTypeClose, + CTInAppActionTypeOpenURL, + CTInAppActionTypeKeyValues, + CTInAppActionTypeCustom, + CTInAppActionTypeRequestForPermission +}; + +@interface CTInAppUtils : NSObject + ++ (CTInAppType)inAppTypeFromString:(NSString *_Nonnull)type; ++ (NSString * _Nonnull)inAppTypeString:(CTInAppType)type; ++ (CTInAppActionType)inAppActionTypeFromString:(NSString *_Nonnull)type; ++ (NSString * _Nonnull)inAppActionTypeString:(CTInAppActionType)type; ++ (NSBundle *_Nullable)bundle; ++ (NSString *_Nullable)getXibNameForControllerName:(NSString *_Nonnull)controllerName; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInboxBaseMessageCell.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInboxBaseMessageCell.h new file mode 100644 index 000000000..a3bde1bc1 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInboxBaseMessageCell.h @@ -0,0 +1,89 @@ +#import +#import +#import +#import +#import +#import +#import "CleverTap+Inbox.h" +#import "CTInboxMessageActionView.h" +#import "CTConstants.h" +#import "CTInboxUtils.h" +#import "CTUIUtils.h" +#import "CTVideoThumbnailGenerator.h" + +@class SDAnimatedImageView; + +typedef NS_OPTIONS(NSUInteger , CTMediaPlayerCellType) { + CTMediaPlayerCellTypeNone, + CTMediaPlayerCellTypeTopLandscape, + CTMediaPlayerCellTypeTopPortrait, + CTMediaPlayerCellTypeMiddleLandscape, + CTMediaPlayerCellTypeMiddlePortrait, + CTMediaPlayerCellTypeBottomLandscape, + CTMediaPlayerCellTypeBottomPortrait +}; + +@interface CTInboxBaseMessageCell : UITableViewCell + +@property (strong, nonatomic) IBOutlet UIView *containerView; +@property (strong, nonatomic) IBOutlet SDAnimatedImageView *cellImageView; +@property (strong, nonatomic) IBOutlet UILabel *titleLabel; +@property (strong, nonatomic) IBOutlet UILabel *bodyLabel; +@property (strong, nonatomic) IBOutlet UILabel *dateLabel; +@property (strong, nonatomic) IBOutlet UIView *readView; +@property (strong, nonatomic) IBOutlet CTInboxMessageActionView *actionView; +@property (strong, nonatomic) IBOutlet UIView *avPlayerContainerView; +@property (strong, nonatomic) IBOutlet UIView *avPlayerControlsView; +@property (strong, nonatomic) IBOutlet UIView *mediaContainerView; + +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *imageViewWidthConstraint; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *imageViewHeightConstraint; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *imageViewLRatioConstraint; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *imageViewPRatioConstraint; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *actionViewHeightConstraint; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *readViewWidthConstraint; + +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *dividerCenterXConstraint; + +// video controls +@property (nonatomic, strong) UIButton *volumeButton; +@property (nonatomic, strong) IBOutlet UIButton *playButton; +@property (nonatomic, strong, readwrite) AVPlayer *avPlayer; +@property (nonatomic, strong) AVPlayerLayer *avPlayerLayer; +@property (nonatomic, weak) NSTimer *controllersTimer; +@property (nonatomic, assign) NSInteger controllersTimeoutPeriod; +@property (nonatomic, assign) BOOL isAVMuted; +@property (nonatomic, assign) BOOL isControlsHidden; +@property (atomic, assign) BOOL hasVideoPoster; +@property (nonatomic, strong) CTVideoThumbnailGenerator *thumbnailGenerator; +@property (nonatomic, strong) CleverTapInboxMessage *message; +@property (atomic, assign) CTMediaPlayerCellType mediaPlayerCellType; +@property (atomic, assign) CTInboxMessageType messageType; +@property (nonatomic, strong) IBOutlet UIActivityIndicatorView *activityIndicator; + + +@property (nonatomic, assign) SDWebImageOptions sdWebImageOptions; +@property (nonatomic, strong) SDWebImageContext *sdWebImageContext; + +- (void)volumeButtonTapped:(UIButton *)sender; + +- (void)configureForMessage:(CleverTapInboxMessage *)message; +- (void)configureActionView:(BOOL)hide; +- (BOOL)mediaIsEmpty; +- (BOOL)orientationIsPortrait; +- (BOOL)deviceOrientationIsLandscape; +- (UIImage *)getPortraitPlaceHolderImage; +- (UIImage *)getLandscapePlaceHolderImage; + +- (BOOL)hasAudio; +- (BOOL)hasVideo; +- (void)setupMediaPlayer; +- (void)pause; +- (void)play; +- (void)mute:(BOOL)mute; +- (CGRect)videoRect; + +- (void)setupInboxMessageActions:(CleverTapInboxMessageContent *)content; +- (void)handleOnMessageTapGesture:(UITapGestureRecognizer *)sender; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInboxController.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInboxController.h new file mode 100755 index 000000000..c4d8a8327 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInboxController.h @@ -0,0 +1,36 @@ +#import + +@protocol CTInboxDelegate +@required +- (void)inboxMessagesDidUpdate; +@end + +NS_ASSUME_NONNULL_BEGIN + +@interface CTInboxController : NSObject + +@property (nonatomic, assign, readonly) BOOL isInitialized; +@property (nonatomic, assign, readonly) NSInteger count; +@property (nonatomic, assign, readonly) NSInteger unreadCount; +@property (nonatomic, assign, readonly, nullable) NSArray *messages; +@property (nonatomic, assign, readonly, nullable) NSArray *unreadMessages; + +@property (nonatomic, weak) id delegate; + + +- (instancetype) init __unavailable; + +// blocking, call off main thread +- (instancetype _Nullable)initWithAccountId:(NSString *)accountId + guid:(NSString *)guid; + +- (void)updateMessages:(NSArray *)messages; +- (NSDictionary * _Nullable )messageForId:(NSString *)messageId; +- (void)deleteMessageWithId:(NSString *)messageId; +- (void)deleteMessagesWithId:(NSArray *_Nonnull)messageIds; +- (void)markReadMessageWithId:(NSString *)messageId; +- (void)markReadMessagesWithId:(NSArray *_Nonnull)messageIds; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInboxIconMessageCell.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInboxIconMessageCell.h new file mode 100644 index 000000000..bd38ff588 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInboxIconMessageCell.h @@ -0,0 +1,10 @@ +#import "CTInboxBaseMessageCell.h" + +@interface CTInboxIconMessageCell : CTInboxBaseMessageCell + +@property (strong, nonatomic) IBOutlet UIImageView *cellIcon; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *cellIconWidthContraint; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *cellIconRatioContraint; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *cellIconHeightContraint; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInboxMessageActionView.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInboxMessageActionView.h new file mode 100644 index 000000000..d3eb69e0c --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInboxMessageActionView.h @@ -0,0 +1,23 @@ +#import + +@protocol CTInboxActionViewDelegate +@required +- (void)handleInboxMessageTappedAtIndex:(int)index; +@end + +NS_ASSUME_NONNULL_BEGIN + +@interface CTInboxMessageActionView : UIView + +@property (strong, nonatomic) IBOutlet UIButton *firstButton; +@property (strong, nonatomic) IBOutlet UIButton *secondButton; +@property (strong, nonatomic) IBOutlet UIButton *thirdButton; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *secondButtonWidthConstraint; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *thirdButtonWidthConstraint; +@property (nonatomic, weak) id delegate; + +- (UIButton*)setupViewForButton:(UIButton *)buttonView forText:(NSDictionary *)messageButton withIndex:(int)index; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInboxSimpleMessageCell.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInboxSimpleMessageCell.h new file mode 100755 index 000000000..2be401b56 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInboxSimpleMessageCell.h @@ -0,0 +1,7 @@ +#import "CTInboxBaseMessageCell.h" + +@class SDAnimatedImageView; + +@interface CTInboxSimpleMessageCell : CTInboxBaseMessageCell + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInboxUtils.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInboxUtils.h new file mode 100644 index 000000000..0bf6514bd --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInboxUtils.h @@ -0,0 +1,18 @@ + +#import + +typedef NS_ENUM(NSUInteger, CTInboxMessageType){ + CTInboxMessageTypeUnknown, + CTInboxMessageTypeSimple, + CTInboxMessageTypeMessageIcon, + CTInboxMessageTypeCarousel, + CTInboxMessageTypeCarouselImage, +}; + +@interface CTInboxUtils : NSObject + ++ (CTInboxMessageType)inboxMessageTypeFromString:(NSString *_Nonnull)type; ++ (NSString *_Nullable)getXibNameForControllerName:(NSString *_Nonnull)controllerName; ++ (NSBundle *_Nullable)bundle:(Class _Nonnull)bundleClass; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInterstitialImageViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInterstitialImageViewController.h new file mode 100644 index 000000000..e2300179e --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInterstitialImageViewController.h @@ -0,0 +1,6 @@ + +#import "CTImageInAppViewController.h" + +@interface CTInterstitialImageViewController : CTImageInAppViewController + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInterstitialViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInterstitialViewController.h new file mode 100644 index 000000000..ee212b28e --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTInterstitialViewController.h @@ -0,0 +1,6 @@ + +#import "CTInAppDisplayViewController.h" + +@interface CTInterstitialViewController : CTInAppDisplayViewController + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTKnownProfileFields.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTKnownProfileFields.h new file mode 100644 index 000000000..a85e730eb --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTKnownProfileFields.h @@ -0,0 +1,12 @@ +#import + +// Needs to start from 100 +typedef enum { + Name = 100, Email, Education, Married, DOB, Birthday, Employed, Gender, Phone, Age, UNKNOWN +} KnownField; + +@interface CTKnownProfileFields : NSObject + ++ (KnownField)getKnownFieldIfPossibleForKey:(NSString *)key; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTLocalDataStore.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTLocalDataStore.h new file mode 100644 index 000000000..2bbd9c02b --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTLocalDataStore.h @@ -0,0 +1,47 @@ +#import +#import "CTDeviceInfo.h" +#import "CTDispatchQueueManager.h" + +@class CleverTapInstanceConfig; +@class CleverTapEventDetail; + +@interface CTLocalDataStore : NSObject + + +- (instancetype)initWithConfig:(CleverTapInstanceConfig *)config profileValues:(NSDictionary*)profileValues andDeviceInfo:(CTDeviceInfo*)deviceInfo dispatchQueueManager:(CTDispatchQueueManager*)dispatchQueueManager; + +- (void)persistEvent:(NSDictionary *)event; + +- (void)addDataSyncFlag:(NSMutableDictionary *)event; + +- (NSDictionary*)syncWithRemoteData:(NSDictionary *)responseData; + +- (NSTimeInterval)getFirstTimeForEvent:(NSString *)event; + +- (NSTimeInterval)getLastTimeForEvent:(NSString *)event; + +- (int)getOccurrencesForEvent:(NSString *)event; + +- (NSDictionary *)getEventHistory; + +- (CleverTapEventDetail *)getEventDetail:(NSString *)event; + +- (void)setProfileFields:(NSDictionary *)fields; + +- (void)setProfileFieldWithKey:(NSString *)key andValue:(id)value; + +- (void)removeProfileFieldsWithKeys:(NSArray *)keys; + +- (void)removeProfileFieldForKey:(NSString *)key; + +- (id)getProfileFieldForKey:(NSString *)key; + +- (NSDictionary *> *)getUserAttributeChangeProperties:(NSDictionary *)event; + +- (void)persistLocalProfileIfRequired; + +- (NSDictionary*)generateBaseProfile; + +- (void)changeUser; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTLogger.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTLogger.h new file mode 100644 index 000000000..b8a8160b1 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTLogger.h @@ -0,0 +1,8 @@ +#import + +@interface CTLogger : NSObject + ++ (void)setDebugLevel:(int)level; ++ (int)getDebugLevel; ++ (void)logInternalError:(NSException *)e; +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTNotificationButton.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTNotificationButton.h new file mode 100644 index 000000000..20af03e5f --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTNotificationButton.h @@ -0,0 +1,28 @@ +#import +#import "CTInAppUtils.h" +#import "CTNotificationAction.h" + +@interface CTNotificationButton : NSObject + +@property (nonatomic, copy, readonly) NSString *text; +@property (nonatomic, copy, readonly) NSString *textColor; +@property (nonatomic, copy, readonly) NSString *borderRadius; +@property (nonatomic, copy, readonly) NSString *borderColor; +@property (nonatomic, copy, readonly) NSDictionary *customExtras; +@property (nonatomic, readonly) CTInAppActionType type; +@property (nonatomic, readonly) BOOL fallbackToSettings; + +@property (nonatomic, strong, readonly) CTNotificationAction *action; + +@property (nonatomic, copy, readonly) NSString *backgroundColor; +@property (nonatomic, readonly) NSURL *actionURL; + +@property (nonatomic, copy, readonly) NSDictionary *jsonDescription; + +@property (nonatomic, readonly) NSString *error; + +- (instancetype)init __unavailable; + +- (instancetype)initWithJSON:(NSDictionary *)json; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTPinnedNSURLSessionDelegate.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTPinnedNSURLSessionDelegate.h new file mode 100644 index 000000000..3ab32b1ff --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTPinnedNSURLSessionDelegate.h @@ -0,0 +1,15 @@ +#if CLEVERTAP_SSL_PINNING +@import Foundation; + +@class CleverTapInstanceConfig; + +@interface CTPinnedNSURLSessionDelegate : NSObject + +- (instancetype)initWithConfig:(CleverTapInstanceConfig *)config; + +- (void)pinSSLCerts:(NSArray *)filenames forDomains:(NSArray *)domains; + +- (void)URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential))completionHandler; + +@end +#endif diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTPlistInfo.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTPlistInfo.h new file mode 100644 index 000000000..3c2b322e2 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTPlistInfo.h @@ -0,0 +1,25 @@ +#import +#import "CleverTap.h" + +@interface CTPlistInfo : NSObject + +@property (nonatomic, strong, readonly, nullable) NSString *accountId; +@property (nonatomic, strong, readonly, nullable) NSString *accountToken; +@property (nonatomic, strong, readonly, nullable) NSString *accountRegion; +@property (nonatomic, strong, readonly, nullable) NSString *proxyDomain; +@property (nonatomic, strong, readonly, nullable) NSString *spikyProxyDomain; +@property (nonatomic, strong, readonly, nullable) NSArray* registeredUrlSchemes; +@property (nonatomic, assign, readonly) BOOL disableAppLaunchedEvent; +@property (nonatomic, assign, readonly) BOOL useCustomCleverTapId; +@property (nonatomic, assign, readonly) BOOL beta; +@property (nonatomic, assign, readonly) BOOL disableIDFV; +@property (nonatomic, assign) BOOL enableFileProtection; +@property (nonatomic, strong, readonly, nullable) NSString *handshakeDomain; +@property (nonatomic, readonly) CleverTapEncryptionLevel encryptionLevel; + ++ (instancetype _Nullable)sharedInstance; +- (void)setCredentialsWithAccountID:(NSString * _Nonnull)accountID token:(NSString * _Nonnull)token region:(NSString * _Nullable)region; +- (void)setCredentialsWithAccountID:(NSString * _Nonnull)accountID token:(NSString * _Nonnull)token proxyDomain:(NSString * _Nonnull)proxyDomain; +- (void)setCredentialsWithAccountID:(NSString * _Nonnull)accountID token:(NSString * _Nonnull)token proxyDomain:(NSString * _Nonnull)proxyDomain spikyProxyDomain:(NSString * _Nullable)spikyProxyDomain; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTPreferences.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTPreferences.h new file mode 100644 index 000000000..cab14306b --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTPreferences.h @@ -0,0 +1,30 @@ +#import +#import "CleverTapInstanceConfig.h" + +@interface CTPreferences : NSObject + ++ (long)getIntForKey:(NSString *_Nonnull)key withResetValue:(long)resetValue; + ++ (void)putInt:(long)resetValue forKey:(NSString *_Nonnull)key; + ++ (NSString *_Nullable)getStringForKey:(NSString *_Nonnull)key withResetValue:(NSString *_Nullable)resetValue; + ++ (void)putString:(NSString *_Nonnull)resetValue forKey:(NSString *_Nonnull)key; + ++ (id _Nonnull)getObjectForKey:(NSString *_Nonnull)key; + ++ (void)putObject:(id _Nonnull)object forKey:(NSString *_Nonnull)key; + ++ (void)removeObjectForKey:(NSString *_Nonnull)key; + ++ (id _Nullable)unarchiveFromFile:(NSString *_Nonnull)filename ofType:(Class _Nonnull)cls removeFile:(BOOL)remove; + ++ (id _Nullable)unarchiveFromFile:(NSString *_Nonnull)filename ofTypes:(nonnull NSSet *)classes removeFile:(BOOL)remove; + ++ (BOOL)archiveObject:(id _Nonnull)object forFileName:(NSString *_Nonnull)fileName config: (CleverTapInstanceConfig *_Nonnull)config; + ++ (NSString *_Nonnull)storageKeyWithSuffix: (NSString *_Nonnull)suffix config: (CleverTapInstanceConfig *_Nonnull)config; + ++ (NSString *_Nonnull)filePathfromFileName:(NSString *_Nonnull)filename; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTProductConfigController.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTProductConfigController.h new file mode 100644 index 000000000..f66ab221d --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTProductConfigController.h @@ -0,0 +1,38 @@ +#import +#import "CleverTap+ProductConfig.h" + +@protocol CTProductConfigDelegate +@required +- (void)productConfigDidFetch; +- (void)productConfigDidActivate; +- (void)productConfigDidInitialize; +@end + +@class CleverTapInstanceConfig; + +@interface CTProductConfigController : NSObject + +@property (nonatomic, assign, readonly) BOOL isInitialized; + +- (instancetype _Nullable ) init __unavailable; + +// blocking, call off main thread +- (instancetype _Nullable)initWithConfig:(CleverTapInstanceConfig *_Nonnull)config + guid:(NSString *_Nonnull)guid + delegate:(id_Nonnull)delegate; + +- (void)updateProductConfig:(NSArray *_Nullable)productConfig; + +- (void)activate; + +- (void)fetchAndActivate; + +- (void)reset; + +- (void)setDefaults:(NSDictionary *_Nullable)defaults; + +- (void)setDefaultsFromPlistFileName:(NSString *_Nullable)fileName; + +- (CleverTapConfigValue *_Nullable)get:(NSString* _Nonnull)key; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTProfileBuilder.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTProfileBuilder.h new file mode 100644 index 000000000..308939df9 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTProfileBuilder.h @@ -0,0 +1,30 @@ +#import + +@class CTValidationResult; +@class CTLocalDataStore; + +@interface CTProfileBuilder : NSObject + ++ (void)build:(NSDictionary *_Nonnull)profile completionHandler:(void(^ _Nonnull )(NSDictionary* _Nullable customFields, NSDictionary* _Nullable systemFields, NSArray* _Nullable errors))completion; + ++ (void)buildRemoveValueForKey:(NSString *_Nonnull)key completionHandler:(void(^ _Nonnull )(NSDictionary *_Nullable customFields, NSDictionary *_Nullable systemFields, NSArray *_Nullable errors))completion; + ++ (void)buildSetMultiValues:(NSArray *_Nonnull)values forKey:(NSString *_Nullable)key localDataStore:(CTLocalDataStore*_Nullable)dataStore completionHandler:(void(^ _Nonnull )(NSDictionary *_Nullable customFields, NSArray* _Nullable updatedMultiValue, NSArray *_Nullable errors))completion; + ++ (void)buildAddMultiValue:(NSString *_Nonnull)value forKey:(NSString *_Nullable)key localDataStore:(CTLocalDataStore*_Nullable)dataStore completionHandler:(void(^ _Nonnull )(NSDictionary *_Nullable customFields, NSArray* _Nullable updatedMultiValue, NSArray* _Nullable errors))completion; + ++ (void)buildAddMultiValues:(NSArray *_Nonnull)values forKey:(NSString *_Nullable)key localDataStore:(CTLocalDataStore*_Nullable)dataStore completionHandler:(void(^ _Nonnull )(NSDictionary *_Nullable customFields, NSArray* _Nullable updatedMultiValue, NSArray *_Nullable errors))completion; + ++ (void)buildRemoveMultiValue:(NSString *_Nonnull)value forKey:(NSString *_Nullable)key localDataStore:(CTLocalDataStore*_Nullable)dataStore completionHandler:(void(^ _Nonnull )(NSDictionary *_Nullable customFields, NSArray* _Nullable updatedMultiValue, NSArray *_Nullable errors))completion; + ++ (void)buildRemoveMultiValues:(NSArray *_Nonnull)values forKey:(NSString *_Nullable)key localDataStore:(CTLocalDataStore*_Nullable)dataStore completionHandler:(void(^ _Nonnull )(NSDictionary *_Nullable customFields, NSArray* _Nullable updatedMultiValue, NSArray *_Nullable errors))completion; + ++ (void)buildIncrementValueBy:(NSNumber *_Nonnull)value forKey: (NSString *_Nonnull)key localDataStore:(CTLocalDataStore* _Nonnull)dataStore completionHandler:(void(^ _Nonnull )(NSDictionary *_Nullable operatorDict, NSNumber *_Nullable updatedValue, NSArray *_Nullable errors))completion; + ++ (void)buildDecrementValueBy:(NSNumber *_Nonnull)value forKey: (NSString *_Nonnull)key localDataStore:(CTLocalDataStore* _Nonnull)dataStore completionHandler:(void(^ _Nonnull )(NSDictionary *_Nullable operatorDict, NSNumber *_Nullable updatedValue, NSArray *_Nullable errors))completion; + ++ (NSNumber *_Nullable)_getUpdatedValue:(NSNumber *_Nonnull)value forKey:(NSString *_Nonnull)key withCommand:(NSString *_Nonnull)command cachedValue:(id _Nullable)cachedValue; + ++ (NSArray *_Nullable) _constructLocalMultiValueWithOriginalValues:(NSArray * _Nonnull)values forKey:(NSString * _Nonnull)key usingCommand:(NSString * _Nonnull)command localDataStore:(CTLocalDataStore* _Nonnull)dataStore; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTRequest.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTRequest.h new file mode 100644 index 000000000..c61cae568 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTRequest.h @@ -0,0 +1,27 @@ +// +// CTRequest.h +// CleverTapSDK +// +// Created by Akash Malhotra on 09/01/23. +// Copyright © 2023 CleverTap. All rights reserved. +// + +#import +#import + +typedef void (^CTNetworkResponseBlock)(NSData * _Nullable data, NSURLResponse *_Nullable response); +typedef void (^CTNetworkResponseErrorBlock)(NSError * _Nullable error); + +@interface CTRequest : NSObject + +- (CTRequest *_Nonnull)initWithHttpMethod:(NSString *_Nonnull)httpMethod config:(CleverTapInstanceConfig *_Nonnull)config params:(id _Nullable)params url:(NSString *_Nonnull)url; + +- (void)onResponse:(CTNetworkResponseBlock _Nonnull)responseBlock; +- (void)onError:(CTNetworkResponseErrorBlock _Nonnull)errorBlock; + +@property (nonatomic, strong, nonnull) NSMutableURLRequest *urlRequest; +@property (nonatomic, strong, nonnull) CTNetworkResponseBlock responseBlock; +@property (nonatomic, strong, nullable) CTNetworkResponseErrorBlock errorBlock; + +@end + diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTRequestFactory.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTRequestFactory.h new file mode 100644 index 000000000..175a98de4 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTRequestFactory.h @@ -0,0 +1,22 @@ +// +// CTRequestFactory.h +// CleverTapSDK +// +// Created by Akash Malhotra on 09/01/23. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#import +#import "CTRequest.h" +#import + +@interface CTRequestFactory : NSObject + ++ (CTRequest *_Nonnull)helloRequestWithConfig:(CleverTapInstanceConfig *_Nonnull)config; ++ (CTRequest *_Nonnull)eventRequestWithConfig:(CleverTapInstanceConfig *_Nonnull)config params:(id _Nullable)params url:(NSString *_Nonnull)url; ++ (CTRequest *_Nonnull)syncVarsRequestWithConfig:(CleverTapInstanceConfig *_Nonnull)config params:(id _Nullable)params domain:(NSString *_Nonnull)domain; ++ (CTRequest *_Nonnull)syncTemplatesRequestWithConfig:(CleverTapInstanceConfig *_Nonnull)config params:(id _Nullable)params domain:(NSString *_Nonnull)domain; + +@end + + diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTSwipeView.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTSwipeView.h new file mode 100755 index 000000000..57b0f9321 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTSwipeView.h @@ -0,0 +1,129 @@ +// +// SwipeView.h +// +// Version 1.3.2 +// +// Created by Nick Lockwood on 03/09/2010. +// Copyright 2010 Charcoal Design +// +// Distributed under the permissive zlib License +// Get the latest version of SwipeView from here: +// +// https://github.com/nicklockwood/SwipeView +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would be +// appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not be +// misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source distribution. +// + + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wauto-import" +#pragma GCC diagnostic ignored "-Wobjc-missing-property-synthesis" + + +#import +#undef weak_delegate +#if __has_feature(objc_arc) && __has_feature(objc_arc_weak) +#define weak_delegate weak +#else +#define weak_delegate unsafe_unretained +#endif + + +#import + + +typedef NS_ENUM(NSUInteger, CTSwipeViewAlignment) +{ + CTSwipeViewAlignmentEdge = 0, + CTSwipeViewAlignmentCenter +}; + + +@protocol CTSwipeViewDataSource, CTSwipeViewDelegate; + +@interface CTSwipeView : UIView + +@property (nonatomic, weak_delegate) IBOutlet id dataSource; +@property (nonatomic, weak_delegate) IBOutlet id delegate; +@property (nonatomic, readonly) NSInteger numberOfItems; +@property (nonatomic, readonly) NSInteger numberOfPages; +@property (nonatomic, readonly) CGSize itemSize; +@property (nonatomic, assign) NSInteger itemsPerPage; +@property (nonatomic, assign) BOOL truncateFinalPage; +@property (nonatomic, strong, readonly) NSArray *indexesForVisibleItems; +@property (nonatomic, strong, readonly) NSArray *visibleItemViews; +@property (nonatomic, strong, readonly) UIView *currentItemView; +@property (nonatomic, assign) NSInteger currentItemIndex; +@property (nonatomic, assign) NSInteger currentPage; +@property (nonatomic, assign) CTSwipeViewAlignment alignment; +@property (nonatomic, assign) CGFloat scrollOffset; +@property (nonatomic, assign, getter = isPagingEnabled) BOOL pagingEnabled; +@property (nonatomic, assign, getter = isScrollEnabled) BOOL scrollEnabled; +@property (nonatomic, assign, getter = isWrapEnabled) BOOL wrapEnabled; +@property (nonatomic, assign) BOOL delaysContentTouches; +@property (nonatomic, assign) BOOL bounces; +@property (nonatomic, assign) float decelerationRate; +@property (nonatomic, assign) CGFloat autoscroll; +@property (nonatomic, readonly, getter = isDragging) BOOL dragging; +@property (nonatomic, readonly, getter = isDecelerating) BOOL decelerating; +@property (nonatomic, readonly, getter = isScrolling) BOOL scrolling; +@property (nonatomic, assign) BOOL defersItemViewLoading; +@property (nonatomic, assign, getter = isVertical) BOOL vertical; + +- (void)reloadData; +- (void)reloadItemAtIndex:(NSInteger)index; +- (void)scrollByOffset:(CGFloat)offset duration:(NSTimeInterval)duration; +- (void)scrollToOffset:(CGFloat)offset duration:(NSTimeInterval)duration; +- (void)scrollByNumberOfItems:(NSInteger)itemCount duration:(NSTimeInterval)duration; +- (void)scrollToItemAtIndex:(NSInteger)index duration:(NSTimeInterval)duration; +- (void)scrollToPage:(NSInteger)page duration:(NSTimeInterval)duration; +- (UIView *)itemViewAtIndex:(NSInteger)index; +- (NSInteger)indexOfItemView:(UIView *)view; +- (NSInteger)indexOfItemViewOrSubview:(UIView *)view; + +@end + + +@protocol CTSwipeViewDataSource + +- (NSInteger)numberOfItemsInSwipeView:(CTSwipeView *)swipeView; +- (UIView *)swipeView:(CTSwipeView *)swipeView viewForItemAtIndex:(NSInteger)index reusingView:(UIView *)view; + +@end + + +@protocol CTSwipeViewDelegate +@optional + +- (CGSize)swipeViewItemSize:(CTSwipeView *)swipeView; +- (void)swipeViewDidScroll:(CTSwipeView *)swipeView; +- (void)swipeViewCurrentItemIndexDidChange:(CTSwipeView *)swipeView; +- (void)swipeViewWillBeginDragging:(CTSwipeView *)swipeView; +- (void)swipeViewDidEndDragging:(CTSwipeView *)swipeView willDecelerate:(BOOL)decelerate; +- (void)swipeViewWillBeginDecelerating:(CTSwipeView *)swipeView; +- (void)swipeViewDidEndDecelerating:(CTSwipeView *)swipeView; +- (void)swipeViewDidEndScrollingAnimation:(CTSwipeView *)swipeView; +- (BOOL)swipeView:(CTSwipeView *)swipeView shouldSelectItemAtIndex:(NSInteger)index; +- (void)swipeView:(CTSwipeView *)swipeView didSelectItemAtIndex:(NSInteger)index; + +@end + + +#pragma GCC diagnostic pop + diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTSwizzle.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTSwizzle.h new file mode 100644 index 000000000..e0f467656 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTSwizzle.h @@ -0,0 +1,51 @@ + +// JRSwizzle.h semver:1.1.0 +// Copyright (c) 2007-2016 Jonathan 'Wolf' Rentzsch: http://rentzsch.com +// Some rights reserved: http://opensource.org/licenses/mit +// https://github.com/rentzsch/jrswizzle + +// renamed methods to conform to CleverTap prefixing + +#import + +@interface NSObject (CTSwizzle) + ++ (BOOL)ct_swizzleMethod:(SEL)origSel_ withMethod:(SEL)altSel_ error:(NSError**)error_; ++ (BOOL)ct_swizzleClassMethod:(SEL)origSel_ withClassMethod:(SEL)altSel_ error:(NSError**)error_; + + +/** + ``` + __block NSInvocation *invocation = nil; + invocation = [self jr_swizzleMethod:@selector(initWithCoder:) withBlock:^(id obj, NSCoder *coder) { + NSLog(@"before %@, coder %@", obj, coder); + + [invocation setArgument:&coder atIndex:2]; + [invocation invokeWithTarget:obj]; + + id ret = nil; + [invocation getReturnValue:&ret]; + + NSLog(@"after %@, coder %@", obj, coder); + + return ret; + } error:nil]; + ``` + */ ++ (NSInvocation*)ct_swizzleMethod:(SEL)origSel withBlock:(id)block error:(NSError**)error; + +/** + ``` + __block NSInvocation *classInvocation = nil; + classInvocation = [self jr_swizzleClassMethod:@selector(test) withBlock:^() { + NSLog(@"before"); + + [classInvocation invoke]; + + NSLog(@"after"); + } error:nil]; + ``` + */ ++ (NSInvocation*)ct_swizzleClassMethod:(SEL)origSel withBlock:(id)block error:(NSError**)error; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTUIUtils.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTUIUtils.h new file mode 100644 index 000000000..936a8cbcc --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTUIUtils.h @@ -0,0 +1,29 @@ + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface CTUIUtils : NSObject + ++ (NSBundle *)bundle; ++ (NSBundle *)bundle:(Class)bundleClass; ++ (UIApplication * _Nullable)getSharedApplication; ++ (UIWindow * _Nullable)getKeyWindow; +#if !(TARGET_OS_TV) ++ (BOOL)isDeviceOrientationLandscape; +#endif ++ (BOOL)isUserInterfaceIdiomPad; ++ (CGFloat)getLeftMargin; + ++ (UIImage *)getImageForName:(NSString *)name; + ++ (UIColor *)ct_colorWithHexString:(NSString *)string; ++ (UIColor *)ct_colorWithHexString:(NSString *)string withAlpha:(CGFloat)alpha; + ++ (BOOL)runningInsideAppExtension; ++ (void)openURL:(NSURL *)ctaURL forModule:(NSString *)ctModule; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTUriHelper.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTUriHelper.h new file mode 100644 index 000000000..6b494063e --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTUriHelper.h @@ -0,0 +1,8 @@ +#import + +@interface CTUriHelper : NSObject + ++ (NSDictionary *)getUrchinFromUri:(NSString *)uri withSourceApp:(NSString *)sourceApp; ++ (NSDictionary *)getQueryParameters:(NSURL *)url andDecode:(BOOL)decode; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTUserInfoMigrator.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTUserInfoMigrator.h new file mode 100644 index 000000000..4483b7f34 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTUserInfoMigrator.h @@ -0,0 +1,15 @@ +// +// CTUserInfoMigrator.h +// Pods +// +// Created by Kushagra Mishra on 29/05/24. +// + +#import +#import "CleverTapInstanceConfig.h" + +@interface CTUserInfoMigrator : NSObject + ++ (void)migrateUserInfoFileForDeviceID:(NSString *)device_id config:(CleverTapInstanceConfig *) config; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTUserMO+CoreDataProperties.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTUserMO+CoreDataProperties.h new file mode 100755 index 000000000..b97b1a6a7 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTUserMO+CoreDataProperties.h @@ -0,0 +1,23 @@ +#import "CTUserMO.h" + +@class CTMessageMO; + +NS_ASSUME_NONNULL_BEGIN + +@interface CTUserMO (CoreDataProperties) + ++ (instancetype _Nullable)fetchOrCreateFromJSON:(NSDictionary *)json forContext:(NSManagedObjectContext *)context; +- (BOOL)updateMessages:(NSArray *)messages forContext:(NSManagedObjectContext *)context; + +@property (nullable, nonatomic, copy) NSString *accountId; +@property (nullable, nonatomic, copy) NSString *guid; +@property (nullable, nonatomic, copy) NSString *identifier; +@property (nullable, nonatomic, retain) NSOrderedSet *messages; + +@end + +@interface CTUserMO (CoreDataGeneratedAccessors) + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTUserMO.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTUserMO.h new file mode 100755 index 000000000..fd98fc866 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTUserMO.h @@ -0,0 +1,8 @@ +#import +#import + +@interface CTUserMO : NSManagedObject + +@end + +#import "CTUserMO+CoreDataProperties.h" diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTUtils.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTUtils.h new file mode 100644 index 000000000..26a1b247e --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTUtils.h @@ -0,0 +1,18 @@ +#import +#import + +@interface CTUtils : NSObject + ++ (NSString *)urlEncodeString:(NSString*)s; ++ (BOOL)doesString:(NSString *)s startWith:(NSString *)prefix; ++ (NSString *)deviceTokenStringFromData:(NSData *)tokenData; ++ (double)toTwoPlaces:(double)x; ++ (BOOL)isNullOrEmpty:(id)obj; ++ (NSString *)jsonObjectToString:(id)object; ++ (NSString *)getKeyWithSuffix:(NSString *)suffix accountID:(NSString *)accountID; ++ (void)runSyncMainQueue:(void (^)(void))block; ++ (double)haversineDistance:(CLLocationCoordinate2D)coordinateA coordinateB:(CLLocationCoordinate2D)coordinateB; ++ (NSNumber * _Nullable)numberFromString:(NSString * _Nullable)string; ++ (NSNumber * _Nullable)numberFromString:(NSString * _Nullable)string withLocale:(NSLocale * _Nullable)locale; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTValidationResult.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTValidationResult.h new file mode 100644 index 000000000..3bf9f446e --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTValidationResult.h @@ -0,0 +1,19 @@ +#import + +@interface CTValidationResult : NSObject + +- (NSString *)errorDesc; + +- (NSObject *)object; + +- (int)errorCode; + +- (void)setErrorDesc:(NSString *)errorDsc; + +- (void)setObject:(NSObject *)obj; + +- (void)setErrorCode:(int)errorCod; + ++ (CTValidationResult *) resultWithErrorCode:(int) code andMessage:(NSString*) message; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTValidator.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTValidator.h new file mode 100644 index 000000000..da307440d --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTValidator.h @@ -0,0 +1,33 @@ +#import + +typedef NS_ENUM(int, CTValidatorContext) { + CTValidatorContextEvent, + CTValidatorContextProfile, + CTValidatorContextOther +}; + +@class CTValidationResult; + +@interface CTValidator : NSObject + ++ (CTValidationResult *)cleanEventName:(NSString *)name; + ++ (CTValidationResult *)cleanObjectKey:(NSString *)name; + ++ (CTValidationResult *)cleanMultiValuePropertyKey:(NSString *)name; + ++ (CTValidationResult *)cleanMultiValuePropertyValue:(NSString *)value; + ++ (CTValidationResult *)cleanMultiValuePropertyArray:(NSArray *)multi forKey:(NSString*)key; + ++ (CTValidationResult *)cleanObjectValue:(NSObject *)o context:(CTValidatorContext)context; + ++ (BOOL)isRestrictedEventName:(NSString *)name; + ++ (BOOL)isDiscaredEventName:(NSString *)name; + ++ (void)setDiscardedEvents:(NSArray *)events; + ++ (BOOL)isValidCleverTapId:(NSString *)cleverTapID; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTVar-Internal.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTVar-Internal.h new file mode 100644 index 000000000..b061e66e4 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTVar-Internal.h @@ -0,0 +1,35 @@ +#import "CTVar.h" +@class CTVarCache; + +NS_ASSUME_NONNULL_BEGIN + +@interface CTVar () + +- (instancetype)initWithName:(NSString *)name + withDefaultValue:(NSObject *)defaultValue + withKind:(NSString *)kind + varCache:(CTVarCache *)cache; + +@property (readonly, strong) CTVarCache *varCache; +@property (readonly, strong) NSString *name; +@property (readonly, strong) NSArray *nameComponents; +@property (readonly) BOOL hadStarted; +@property (readonly, strong) NSString *kind; +@property (readonly, strong) NSMutableArray *valueChangedBlocks; +@property (readonly, strong) NSMutableArray *fileReadyBlocks; +@property (nonatomic, unsafe_unretained, nullable) id delegate; +@property (readonly) BOOL hasChanged; +@property (readonly) BOOL shouldDownloadFile; +@property (readonly, strong, nullable) NSString *fileURL; + +- (BOOL)update; +- (void)cacheComputedValues; +- (void)triggerValueChanged; +- (void)triggerFileIsReady; + ++ (BOOL)printedCallbackWarning; ++ (void)setPrintedCallbackWarning:(BOOL)newPrintedCallbackWarning; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTVarCache.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTVarCache.h new file mode 100644 index 000000000..81ca14ab2 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTVarCache.h @@ -0,0 +1,49 @@ +#import +#import "CTVar-Internal.h" +#import "CleverTapInstanceConfig.h" +#import "CTDeviceInfo.h" +#import "CTFileDownloader.h" + +@protocol CTFileVarDelegate +@required +- (void)triggerNoDownloadsPending; +@end + +NS_ASSUME_NONNULL_BEGIN + +typedef void (^CacheUpdateBlock)(void); + +NS_SWIFT_NAME(VarCache) +@interface CTVarCache : NSObject + +- (instancetype)init NS_UNAVAILABLE; + +- (instancetype)initWithConfig:(CleverTapInstanceConfig *)config + deviceInfo:(CTDeviceInfo*)deviceInfo + fileDownloader:(CTFileDownloader *)fileDownloader; + +@property (nonatomic, strong, readonly) CleverTapInstanceConfig *config; +@property (strong, nonatomic) NSMutableDictionary *vars; +@property (assign, nonatomic) BOOL hasVarsRequestCompleted; +@property (assign, nonatomic) BOOL hasPendingDownloads; +@property (nonatomic, weak) id delegate; + +- (nullable NSDictionary *)diffs; +- (void)loadDiffs; +- (void)applyVariableDiffs:(nullable NSDictionary *)diffs_; + +- (void)registerVariable:(CTVar *)var; +- (nullable CTVar *)getVariable:(NSString *)name; +- (id)getMergedValue:(NSString *)name; + +- (NSArray *)getNameComponents:(NSString *)name; +- (nullable id)getMergedValueFromComponentArray:(NSArray *) components; +- (void)clearUserContent; + +- (nullable NSString *)fileDownloadPath:(NSString *)fileURL; +- (BOOL)isFileAlreadyPresent:(NSString *)fileURL; +- (void)fileVarUpdated:(CTVar *)fileVar; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTVariables.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTVariables.h new file mode 100644 index 000000000..8ea4cb64d --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTVariables.h @@ -0,0 +1,45 @@ +// +// CTVariables.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 12.03.23. +// Copyright © 2023 CleverTap. All rights reserved. +// + +#import +#import "CTVarCache.h" +#import "CleverTapInstanceConfig.h" +#import "CTDeviceInfo.h" +#import "CTFileDownloader.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface CTVariables : NSObject + +@property(strong, nonatomic) CTVarCache *varCache; +@property(strong, nonatomic, nullable) CleverTapFetchVariablesBlock fetchVariablesBlock; + +- (instancetype)initWithConfig:(CleverTapInstanceConfig *)config + deviceInfo:(CTDeviceInfo *)deviceInfo + fileDownloader:(CTFileDownloader *)fileDownloader; + +- (CTVar * _Nullable)define:(NSString *)name + with:(nullable NSObject *)defaultValue + kind:(nullable NSString *)kind +NS_SWIFT_NAME(define(name:value:kind:)); + +- (void)handleVariablesResponse:(NSDictionary *)varsResponse; +- (void)handleVariablesError; +- (void)triggerFetchVariables:(BOOL)success; +- (void)onVariablesChanged:(CleverTapVariablesChangedBlock _Nonnull)block; +- (void)onceVariablesChanged:(CleverTapVariablesChangedBlock _Nonnull)block; +- (void)onVariablesChangedAndNoDownloadsPending:(CleverTapVariablesChangedBlock _Nonnull)block; +- (void)onceVariablesChangedAndNoDownloadsPending:(CleverTapVariablesChangedBlock _Nonnull)block; +- (NSDictionary*)flatten:(NSDictionary*)map varName:(NSString*)varName; +- (NSDictionary*)varsPayload; +- (NSDictionary*)unflatten:(NSDictionary*)result; +- (void)clearUserContent; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTVideoThumbnailGenerator.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTVideoThumbnailGenerator.h new file mode 100755 index 000000000..b9bfb587b --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CTVideoThumbnailGenerator.h @@ -0,0 +1,10 @@ + +#import +#import + +@interface CTVideoThumbnailGenerator : NSObject + +- (void)generateImageFromUrl:(NSString *)videoURL withCompletionBlock:(void (^)(UIImage *image, NSString *sourceUrl))completion; +- (void)cleanup; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CleverTapFeatureFlagsPrivate.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CleverTapFeatureFlagsPrivate.h new file mode 100644 index 000000000..98a63a4f1 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CleverTapFeatureFlagsPrivate.h @@ -0,0 +1,24 @@ +#import +#import "CleverTap+FeatureFlags.h" + +@protocol CleverTapPrivateFeatureFlagsDelegate +@required + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +@property (atomic, weak) id _Nullable featureFlagsDelegate; +#pragma clang diagnostic pop + +- (BOOL)getFeatureFlag:(NSString* _Nonnull)key withDefaultValue:(BOOL)defaultValue; + +@end + +@interface CleverTapFeatureFlags () {} + +@property (nonatomic, weak) id _Nullable privateDelegate; + +- (instancetype _Nullable)init __unavailable; + +- (instancetype _Nonnull)initWithPrivateDelegate:(id _Nonnull)delegate; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CleverTapInboxViewControllerPrivate.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CleverTapInboxViewControllerPrivate.h new file mode 100755 index 000000000..a64a2fcd5 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CleverTapInboxViewControllerPrivate.h @@ -0,0 +1,25 @@ +#import + +@protocol CleverTapInboxViewControllerDelegate; +@class CleverTapInboxStyleConfig; + +@protocol CleverTapInboxViewControllerAnalyticsDelegate +@required +- (void)messageDidShow:(CleverTapInboxMessage * _Nonnull)message; +- (void)messageDidSelect:(CleverTapInboxMessage * _Nonnull)message atIndex:(int)index withButtonIndex:(int)buttonIndex; +/** + Called when app inbox link is tapped for requesting push permission. + */ +- (void)messageDidSelectForPushPermission:(BOOL)fallbackToSettings; +@end + +@interface CleverTapInboxViewController () + +- (instancetype _Nonnull)init __unavailable; + +- (instancetype _Nonnull)initWithMessages:(NSArray * _Nonnull)messages + config:(CleverTapInboxStyleConfig * _Nonnull)config + delegate:(id _Nullable)delegate + analyticsDelegate:(id _Nullable)analyticsDelegate; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CleverTapInstanceConfigPrivate.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CleverTapInstanceConfigPrivate.h new file mode 100644 index 000000000..4d60db85b --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CleverTapInstanceConfigPrivate.h @@ -0,0 +1,30 @@ +#import + +@interface CleverTapInstanceConfig () {} + +@property (nonatomic, assign, readonly) BOOL isDefaultInstance; +@property (nonatomic, strong, readonly, nonnull) NSString *queueLabel; +@property (nonatomic, assign) BOOL isCreatedPostAppLaunched; +@property (nonatomic, assign) BOOL beta; + +// SET ONLY WHEN THE USER INITIALISES A WEBVIEW WITH CT JS INTERFACE +@property (nonatomic, assign) BOOL wv_init; + +- (instancetype _Nonnull)initWithAccountId:(NSString * _Nonnull)accountId + accountToken:(NSString * _Nonnull)accountToken + accountRegion:(NSString * _Nullable)accountRegion + isDefaultInstance:(BOOL)isDefault; + +- (instancetype _Nonnull)initWithAccountId:(NSString * _Nonnull)accountId + accountToken:(NSString * _Nonnull)accountToken + proxyDomain:(NSString * _Nonnull)proxyDomain + isDefaultInstance:(BOOL)isDefault; + +- (instancetype _Nonnull)initWithAccountId:(NSString* _Nonnull)accountId + accountToken:(NSString* _Nonnull)accountToken + proxyDomain:(NSString* _Nonnull)proxyDomain + spikyProxyDomain:(NSString* _Nonnull)spikyProxyDomain + isDefaultInstance:(BOOL)isDefault; + ++ (NSString* _Nonnull)dataArchiveFileNameWithAccountId:(NSString* _Nonnull)accountId; +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CleverTapProductConfigPrivate.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CleverTapProductConfigPrivate.h new file mode 100644 index 000000000..277856ac5 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/CleverTapProductConfigPrivate.h @@ -0,0 +1,54 @@ +#import +#import "CleverTap+ProductConfig.h" + +@protocol CleverTapPrivateProductConfigDelegate +@required + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +@property (atomic, weak) id _Nullable productConfigDelegate; +#pragma clang diagnostic pop + +- (void)fetchProductConfig; + +- (void)activateProductConfig; + +- (void)fetchAndActivateProductConfig; + +- (void)resetProductConfig; + +- (void)setDefaultsProductConfig:(NSDictionary *_Nullable)defaults; + +- (void)setDefaultsFromPlistFileNameProductConfig:(NSString *_Nullable)fileName; + +- (CleverTapConfigValue *_Nullable)getProductConfig:(NSString* _Nonnull)key; + +@end + +@interface CleverTapConfigValue() {} + +- (instancetype _Nullable )initWithData:(NSData *_Nullable)data; + +@end + + +@interface CleverTapProductConfig () {} + +@property(nonatomic, assign) NSInteger fetchConfigCalls; +@property(nonatomic, assign) NSInteger fetchConfigWindowLength; +@property(nonatomic, assign) NSTimeInterval minimumFetchConfigInterval; +@property(nonatomic, assign) NSTimeInterval lastFetchTs; + +@property (nonatomic, weak) id _Nullable privateDelegate; + +- (instancetype _Nullable)init __unavailable; + +- (instancetype _Nonnull)initWithConfig:(CleverTapInstanceConfig *_Nonnull)config + privateDelegate:(id_Nonnull)delegate; + +- (void)updateProductConfigWithOptions:(NSDictionary *_Nullable)options; + +- (void)updateProductConfigWithLastFetchTs:(NSTimeInterval)lastFetchTs; + +- (void)resetProductConfigSettings; +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/ContentMerger.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/ContentMerger.h new file mode 100644 index 000000000..92077a76c --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/ContentMerger.h @@ -0,0 +1,13 @@ +// +// ContentMerger.h +// CleverTapSDK +// +// Created by Akash Malhotra on 17/02/23. +// Copyright © 2023 CleverTap. All rights reserved. +// + +#import + +@interface ContentMerger : NSObject ++ (id)mergeWithVars:(id)vars diff:(id)diff; +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/UIView+CTToast.h b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/UIView+CTToast.h new file mode 100755 index 000000000..a3f6cba5c --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/PrivateHeaders/UIView+CTToast.h @@ -0,0 +1,446 @@ +// +// UIView+Toast.h +// Toast +// +// Copyright (c) 2011-2017 Charles Scalesse. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +extern const NSString * CTToastPositionTop; +extern const NSString * CTToastPositionCenter; +extern const NSString * CTToastPositionBottom; + +@class CTToastStyle; + +/** + Toast is an Objective-C category that adds toast notifications to the UIView + object class. It is intended to be simple, lightweight, and easy to use. Most + toast notifications can be triggered with a single line of code. + + The `makeToast:` methods create a new view and then display it as toast. + + The `showToast:` methods display any view as toast. + + */ +@interface UIView (CTToast) + +/** + Creates and presents a new toast view with a message and displays it with the + default duration and position. Styled using the shared style. + + @param message The message to be displayed + */ +- (void)ct_makeToast:(NSString *)message; + +/** + Creates and presents a new toast view with a message. Duration and position + can be set explicitly. Styled using the shared style. + + @param message The message to be displayed + @param duration The toast duration + @param position The toast's center point. Can be one of the predefined CSToastPosition + constants or a `CGPoint` wrapped in an `NSValue` object. + */ +- (void)ct_makeToast:(NSString *)message + duration:(NSTimeInterval)duration + position:(id)position; + +/** + Creates and presents a new toast view with a message. Duration, position, and + style can be set explicitly. + + @param message The message to be displayed + @param duration The toast duration + @param position The toast's center point. Can be one of the predefined CSToastPosition + constants or a `CGPoint` wrapped in an `NSValue` object. + @param style The style. The shared style will be used when nil + */ +- (void)ct_makeToast:(NSString *)message + duration:(NSTimeInterval)duration + position:(id)position + style:(CTToastStyle *)style; + +/** + Creates and presents a new toast view with a message, title, and image. Duration, + position, and style can be set explicitly. The completion block executes when the + toast view completes. `didTap` will be `YES` if the toast view was dismissed from + a tap. + + @param message The message to be displayed + @param duration The toast duration + @param position The toast's center point. Can be one of the predefined CSToastPosition + constants or a `CGPoint` wrapped in an `NSValue` object. + @param title The title + @param image The image + @param style The style. The shared style will be used when nil + @param completion The completion block, executed after the toast view disappears. + didTap will be `YES` if the toast view was dismissed from a tap. + */ +- (void)ct_makeToast:(NSString *)message + duration:(NSTimeInterval)duration + position:(id)position + title:(NSString *)title + image:(UIImage *)image + style:(CTToastStyle *)style + completion:(void(^)(BOOL didTap))completion; + +/** + Creates a new toast view with any combination of message, title, and image. + The look and feel is configured via the style. Unlike the `makeToast:` methods, + this method does not present the toast view automatically. One of the showToast: + methods must be used to present the resulting view. + + @warning if message, title, and image are all nil, this method will return nil. + + @param message The message to be displayed + @param title The title + @param image The image + @param style The style. The shared style will be used when nil + @return The newly created toast view + */ +- (UIView *)ct_toastViewForMessage:(NSString *)message + title:(NSString *)title + image:(UIImage *)image + style:(CTToastStyle *)style; + +/** + Hides the active toast. If there are multiple toasts active in a view, this method + hides the oldest toast (the first of the toasts to have been presented). + + @see `hideAllToasts` to remove all active toasts from a view. + + @warning This method has no effect on activity toasts. Use `hideToastActivity` to + hide activity toasts. + */ +- (void)ct_hideToast; + +/** + Hides an active toast. + + @param toast The active toast view to dismiss. Any toast that is currently being displayed + on the screen is considered active. + + @warning this does not clear a toast view that is currently waiting in the queue. + */ +- (void)ct_hideToast:(UIView *)toast; + +/** + Hides all active toast views and clears the queue. + */ +- (void)ct_hideAllToasts; + +/** + Hides all active toast views, with options to hide activity and clear the queue. + + @param includeActivity If `true`, toast activity will also be hidden. Default is `false`. + @param clearQueue If `true`, removes all toast views from the queue. Default is `true`. + */ +- (void)ct_hideAllToasts:(BOOL)includeActivity clearQueue:(BOOL)clearQueue; + +/** + Removes all toast views from the queue. This has no effect on toast views that are + active. Use `hideAllToasts` to hide the active toasts views and clear the queue. + */ +- (void)ct_clearToastQueue; + +/** + Creates and displays a new toast activity indicator view at a specified position. + + @warning Only one toast activity indicator view can be presented per superview. Subsequent + calls to `makeToastActivity:` will be ignored until hideToastActivity is called. + + @warning `makeToastActivity:` works independently of the showToast: methods. Toast activity + views can be presented and dismissed while toast views are being displayed. `makeToastActivity:` + has no effect on the queueing behavior of the showToast: methods. + + @param position The toast's center point. Can be one of the predefined CSToastPosition + constants or a `CGPoint` wrapped in an `NSValue` object. + */ +- (void)ct_makeToastActivity:(id)position; + +/** + Dismisses the active toast activity indicator view. + */ +- (void)ct_hideToastActivity; + +/** + Displays any view as toast using the default duration and position. + + @param toast The view to be displayed as toast + */ +- (void)ct_showToast:(UIView *)toast; + +/** + Displays any view as toast at a provided position and duration. The completion block + executes when the toast view completes. `didTap` will be `YES` if the toast view was + dismissed from a tap. + + @param toast The view to be displayed as toast + @param duration The notification duration + @param position The toast's center point. Can be one of the predefined CSToastPosition + constants or a `CGPoint` wrapped in an `NSValue` object. + @param completion The completion block, executed after the toast view disappears. + didTap will be `YES` if the toast view was dismissed from a tap. + */ +- (void)ct_showToast:(UIView *)toast + duration:(NSTimeInterval)duration + position:(id)position + completion:(void(^)(BOOL didTap))completion; + +@end + +/** + `CTToastStyle` instances define the look and feel for toast views created via the + `makeToast:` methods as well for toast views created directly with + `toastViewForMessage:title:image:style:`. + + @warning `CTToastStyle` offers relatively simple styling options for the default + toast view. If you require a toast view with more complex UI, it probably makes more + sense to create your own custom UIView subclass and present it with the `showToast:` + methods. + */ +@interface CTToastStyle : NSObject + +/** + The background color. Default is `[UIColor blackColor]` at 80% opacity. + */ +@property (strong, nonatomic) UIColor *backgroundColor; + +/** + The title color. Default is `[UIColor whiteColor]`. + */ +@property (strong, nonatomic) UIColor *titleColor; + +/** + The message color. Default is `[UIColor whiteColor]`. + */ +@property (strong, nonatomic) UIColor *messageColor; + +/** + A percentage value from 0.0 to 1.0, representing the maximum width of the toast + view relative to it's superview. Default is 0.8 (80% of the superview's width). + */ +@property (assign, nonatomic) CGFloat maxWidthPercentage; + +/** + A percentage value from 0.0 to 1.0, representing the maximum height of the toast + view relative to it's superview. Default is 0.8 (80% of the superview's height). + */ +@property (assign, nonatomic) CGFloat maxHeightPercentage; + +/** + The spacing from the horizontal edge of the toast view to the content. When an image + is present, this is also used as the padding between the image and the text. + Default is 10.0. + */ +@property (assign, nonatomic) CGFloat horizontalPadding; + +/** + The spacing from the vertical edge of the toast view to the content. When a title + is present, this is also used as the padding between the title and the message. + Default is 10.0. + */ +@property (assign, nonatomic) CGFloat verticalPadding; + +/** + The corner radius. Default is 10.0. + */ +@property (assign, nonatomic) CGFloat cornerRadius; + +/** + The title font. Default is `[UIFont boldSystemFontOfSize:16.0]`. + */ +@property (strong, nonatomic) UIFont *titleFont; + +/** + The message font. Default is `[UIFont systemFontOfSize:16.0]`. + */ +@property (strong, nonatomic) UIFont *messageFont; + +/** + The title text alignment. Default is `NSTextAlignmentLeft`. + */ +@property (assign, nonatomic) NSTextAlignment titleAlignment; + +/** + The message text alignment. Default is `NSTextAlignmentLeft`. + */ +@property (assign, nonatomic) NSTextAlignment messageAlignment; + +/** + The maximum number of lines for the title. The default is 0 (no limit). + */ +@property (assign, nonatomic) NSInteger titleNumberOfLines; + +/** + The maximum number of lines for the message. The default is 0 (no limit). + */ +@property (assign, nonatomic) NSInteger messageNumberOfLines; + +/** + Enable or disable a shadow on the toast view. Default is `NO`. + */ +@property (assign, nonatomic) BOOL displayShadow; + +/** + The shadow color. Default is `[UIColor blackColor]`. + */ +@property (strong, nonatomic) UIColor *shadowColor; + +/** + A value from 0.0 to 1.0, representing the opacity of the shadow. + Default is 0.8 (80% opacity). + */ +@property (assign, nonatomic) CGFloat shadowOpacity; + +/** + The shadow radius. Default is 6.0. + */ +@property (assign, nonatomic) CGFloat shadowRadius; + +/** + The shadow offset. The default is `CGSizeMake(4.0, 4.0)`. + */ +@property (assign, nonatomic) CGSize shadowOffset; + +/** + The image size. The default is `CGSizeMake(80.0, 80.0)`. + */ +@property (assign, nonatomic) CGSize imageSize; + +/** + The size of the toast activity view when `makeToastActivity:` is called. + Default is `CGSizeMake(100.0, 100.0)`. + */ +@property (assign, nonatomic) CGSize activitySize; + +/** + The fade in/out animation duration. Default is 0.2. + */ +@property (assign, nonatomic) NSTimeInterval fadeDuration; + +/** + Creates a new instance of `CTToastStyle` with all the default values set. + */ +- (instancetype)initWithDefaultStyle NS_DESIGNATED_INITIALIZER; + +/** + @warning Only the designated initializer should be used to create + an instance of `CTToastStyle`. + */ +- (instancetype)init NS_UNAVAILABLE; + +@end + +/** + `CTToastManager` provides general configuration options for all toast + notifications. Backed by a singleton instance. + */ +@interface CTToastManager : NSObject + +/** + Sets the shared style on the singleton. The shared style is used whenever + a `makeToast:` method (or `toastViewForMessage:title:image:style:`) is called + with with a nil style. By default, this is set to `CTToastStyle`'s default + style. + + @param sharedStyle the shared style + */ ++ (void)setSharedStyle:(CTToastStyle *)sharedStyle; + +/** + Gets the shared style from the singlton. By default, this is + `CTToastStyle`'s default style. + + @return the shared style + */ ++ (CTToastStyle *)sharedStyle; + +/** + Enables or disables tap to dismiss on toast views. Default is `YES`. + + @param tapToDismissEnabled YES or NO + */ ++ (void)setTapToDismissEnabled:(BOOL)tapToDismissEnabled; + +/** + Returns `YES` if tap to dismiss is enabled, otherwise `NO`. + Default is `YES`. + + @return BOOL YES or NO + */ ++ (BOOL)isTapToDismissEnabled; + +/** + Enables or disables queueing behavior for toast views. When `YES`, + toast views will appear one after the other. When `NO`, multiple Toast + views will appear at the same time (potentially overlapping depending + on their positions). This has no effect on the toast activity view, + which operates independently of normal toast views. Default is `NO`. + + @param queueEnabled YES or NO + */ ++ (void)setQueueEnabled:(BOOL)queueEnabled; + +/** + Returns `YES` if the queue is enabled, otherwise `NO`. + Default is `NO`. + + @return BOOL + */ ++ (BOOL)isQueueEnabled; + +/** + Sets the default duration. Used for the `makeToast:` and + `showToast:` methods that don't require an explicit duration. + Default is 3.0. + + @param duration The toast duration + */ ++ (void)setDefaultDuration:(NSTimeInterval)duration; + +/** + Returns the default duration. Default is 3.0. + + @return duration The toast duration + */ ++ (NSTimeInterval)defaultDuration; + +/** + Sets the default position. Used for the `makeToast:` and + `showToast:` methods that don't require an explicit position. + Default is `CTToastPositionBottom`. + + @param position The default center point. Can be one of the predefined + CSToastPosition constants or a `CGPoint` wrapped in an `NSValue` object. + */ ++ (void)setDefaultPosition:(id)position; + +/** + Returns the default toast position. Default is `CTToastPositionBottom`. + + @return position The default center point. Will be one of the predefined + CSToastPosition constants or a `CGPoint` wrapped in an `NSValue` object. + */ ++ (id)defaultPosition; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ct_default_audio.png b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ct_default_audio.png new file mode 100644 index 000000000..95a4cfe1a Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ct_default_audio.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ct_default_landscape_image.png b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ct_default_landscape_image.png new file mode 100644 index 000000000..77a74905e Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ct_default_landscape_image.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ct_default_portrait_image.png b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ct_default_portrait_image.png new file mode 100644 index 000000000..a791730d8 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ct_default_portrait_image.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ct_default_video.png b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ct_default_video.png new file mode 100644 index 000000000..b66fd3992 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ct_default_video.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ct_volume_off.png b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ct_volume_off.png new file mode 100644 index 000000000..7f22fae65 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ct_volume_off.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ct_volume_on.png b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ct_volume_on.png new file mode 100644 index 000000000..b13222bbe Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ct_volume_on.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ic_pause@1x.png b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ic_pause@1x.png new file mode 100644 index 000000000..797bb037f Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ic_pause@1x.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ic_pause@2x.png b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ic_pause@2x.png new file mode 100644 index 000000000..4cdbd0375 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ic_pause@2x.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ic_pause@3x.png b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ic_pause@3x.png new file mode 100644 index 000000000..890cdbc4c Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ic_pause@3x.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ic_play@1x.png b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ic_play@1x.png new file mode 100644 index 000000000..b9991b630 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ic_play@1x.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ic_play@2x.png b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ic_play@2x.png new file mode 100644 index 000000000..f11b7a27f Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ic_play@2x.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ic_play@3x.png b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ic_play@3x.png new file mode 100644 index 000000000..e613203d1 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/ic_play@3x.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/image_interstitial.html b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/image_interstitial.html new file mode 100644 index 000000000..3b2d49c82 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64/CleverTapSDK.framework/image_interstitial.html @@ -0,0 +1 @@ +
diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/AmazonRootCA1.cer b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/AmazonRootCA1.cer new file mode 100644 index 000000000..86b7dcd0b Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/AmazonRootCA1.cer differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCarouselImageMessageCell~land.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCarouselImageMessageCell~land.nib new file mode 100644 index 000000000..382caaa23 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCarouselImageMessageCell~land.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCarouselImageMessageCell~port.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCarouselImageMessageCell~port.nib new file mode 100644 index 000000000..cddddfdfe Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCarouselImageMessageCell~port.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCarouselImageView.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCarouselImageView.nib new file mode 100644 index 000000000..3117076de Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCarouselImageView.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCarouselMessageCell~land.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCarouselMessageCell~land.nib new file mode 100644 index 000000000..ad57567fe Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCarouselMessageCell~land.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCarouselMessageCell~port.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCarouselMessageCell~port.nib new file mode 100644 index 000000000..e89abae60 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCarouselMessageCell~port.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverImageViewController~ipad.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverImageViewController~ipad.nib new file mode 100644 index 000000000..87f4ead83 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverImageViewController~ipad.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverImageViewController~ipadland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverImageViewController~ipadland.nib new file mode 100644 index 000000000..5afc76f05 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverImageViewController~ipadland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverImageViewController~iphoneland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverImageViewController~iphoneland.nib new file mode 100644 index 000000000..a2d25ead9 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverImageViewController~iphoneland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverImageViewController~iphoneport.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverImageViewController~iphoneport.nib new file mode 100644 index 000000000..588fb233a Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverImageViewController~iphoneport.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverViewController~ipad.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverViewController~ipad.nib new file mode 100644 index 000000000..fc298f939 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverViewController~ipad.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverViewController~ipadland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverViewController~ipadland.nib new file mode 100644 index 000000000..ef73dc243 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverViewController~ipadland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverViewController~iphoneland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverViewController~iphoneland.nib new file mode 100644 index 000000000..7875ca66b Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverViewController~iphoneland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverViewController~iphoneport.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverViewController~iphoneport.nib new file mode 100644 index 000000000..ca6ab7f24 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTCoverViewController~iphoneport.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTFooterViewController~ipad.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTFooterViewController~ipad.nib new file mode 100644 index 000000000..81d3dc746 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTFooterViewController~ipad.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTFooterViewController~ipadland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTFooterViewController~ipadland.nib new file mode 100644 index 000000000..e773aaabb Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTFooterViewController~ipadland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTFooterViewController~iphoneland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTFooterViewController~iphoneland.nib new file mode 100644 index 000000000..af2fd210c Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTFooterViewController~iphoneland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTFooterViewController~iphoneport.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTFooterViewController~iphoneport.nib new file mode 100644 index 000000000..a13f9ddd0 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTFooterViewController~iphoneport.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialImageViewController~ipad.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialImageViewController~ipad.nib new file mode 100644 index 000000000..40ea37a16 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialImageViewController~ipad.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialImageViewController~ipadland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialImageViewController~ipadland.nib new file mode 100644 index 000000000..767d05ead Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialImageViewController~ipadland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialImageViewController~iphoneland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialImageViewController~iphoneland.nib new file mode 100644 index 000000000..2116e0555 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialImageViewController~iphoneland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialImageViewController~iphoneport.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialImageViewController~iphoneport.nib new file mode 100644 index 000000000..5f8023846 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialImageViewController~iphoneport.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialViewController~ipad.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialViewController~ipad.nib new file mode 100644 index 000000000..800f88dec Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialViewController~ipad.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialViewController~ipadland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialViewController~ipadland.nib new file mode 100644 index 000000000..fbfa7f092 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialViewController~ipadland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialViewController~iphoneland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialViewController~iphoneland.nib new file mode 100644 index 000000000..6c3dcaf18 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialViewController~iphoneland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialViewController~iphoneport.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialViewController~iphoneport.nib new file mode 100644 index 000000000..8c91b3f3c Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHalfInterstitialViewController~iphoneport.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHeaderViewController~ipad.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHeaderViewController~ipad.nib new file mode 100644 index 000000000..fb6d9984d Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHeaderViewController~ipad.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHeaderViewController~ipadland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHeaderViewController~ipadland.nib new file mode 100644 index 000000000..2945cafa1 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHeaderViewController~ipadland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHeaderViewController~iphoneland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHeaderViewController~iphoneland.nib new file mode 100644 index 000000000..6c3c5b209 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHeaderViewController~iphoneland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHeaderViewController~iphoneport.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHeaderViewController~iphoneport.nib new file mode 100644 index 000000000..268577b64 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTHeaderViewController~iphoneport.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInboxIconMessageCell~land.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInboxIconMessageCell~land.nib new file mode 100644 index 000000000..3ebabdb42 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInboxIconMessageCell~land.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInboxIconMessageCell~port.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInboxIconMessageCell~port.nib new file mode 100644 index 000000000..edbcef96e Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInboxIconMessageCell~port.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInboxSimpleMessageCell~land.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInboxSimpleMessageCell~land.nib new file mode 100644 index 000000000..2814a9694 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInboxSimpleMessageCell~land.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInboxSimpleMessageCell~port.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInboxSimpleMessageCell~port.nib new file mode 100644 index 000000000..8e0510545 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInboxSimpleMessageCell~port.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialImageViewController~ipad.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialImageViewController~ipad.nib new file mode 100644 index 000000000..118c15d8a Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialImageViewController~ipad.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialImageViewController~ipadland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialImageViewController~ipadland.nib new file mode 100644 index 000000000..1db5ffce4 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialImageViewController~ipadland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialImageViewController~iphoneland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialImageViewController~iphoneland.nib new file mode 100644 index 000000000..0873d06f4 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialImageViewController~iphoneland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialImageViewController~iphoneport.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialImageViewController~iphoneport.nib new file mode 100644 index 000000000..d73b20b24 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialImageViewController~iphoneport.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialViewController~ipad.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialViewController~ipad.nib new file mode 100644 index 000000000..0c3a43c37 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialViewController~ipad.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialViewController~ipadland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialViewController~ipadland.nib new file mode 100644 index 000000000..b4ef0c302 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialViewController~ipadland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialViewController~iphoneland.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialViewController~iphoneland.nib new file mode 100644 index 000000000..13031fdec Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialViewController~iphoneland.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialViewController~iphoneport.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialViewController~iphoneport.nib new file mode 100644 index 000000000..83c4820c3 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CTInterstitialViewController~iphoneport.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CleverTapInboxViewController.nib/objects-11.0+.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CleverTapInboxViewController.nib/objects-11.0+.nib new file mode 100644 index 000000000..449cece5a Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CleverTapInboxViewController.nib/objects-11.0+.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CleverTapInboxViewController.nib/runtime.nib b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CleverTapInboxViewController.nib/runtime.nib new file mode 100644 index 000000000..8470e71cf Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CleverTapInboxViewController.nib/runtime.nib differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CleverTapSDK b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CleverTapSDK new file mode 100755 index 000000000..a49e20875 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/CleverTapSDK differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTAppFunctionBuilder.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTAppFunctionBuilder.h new file mode 100644 index 000000000..30459c7b7 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTAppFunctionBuilder.h @@ -0,0 +1,31 @@ +// +// CTAppFunctionBuilder.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 27.02.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#import +#import "CTCustomTemplateBuilder.h" + +NS_ASSUME_NONNULL_BEGIN + +/*! + Builder for ``CTCustomTemplate`` functions. See ``CTCustomTemplateBuilder``. + */ +@interface CTAppFunctionBuilder : CTCustomTemplateBuilder + +/*! + Use `isVisual` to set if the template has UI or not. + If set to `YES` the template is registered as part of the in-apps queue + and must be explicitly dismissed before other in-apps can be shown. + If set to `NO` the template is executed directly and does not require dismissal nor it impedes other in-apps. + + @param isVisual Whether the function will present UI. + */ +- (instancetype)initWithIsVisual:(BOOL)isVisual; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTCustomTemplate.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTCustomTemplate.h new file mode 100644 index 000000000..b326efc95 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTCustomTemplate.h @@ -0,0 +1,33 @@ +// +// CTCustomTemplate.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 27.02.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +/*! + A definition of a custom template. Can be a function or a code template. + Instances are uniquely identified by their name. + */ +@interface CTCustomTemplate : NSObject + +/*! + The name of the template. + */ +@property (nonatomic, strong, readonly) NSString *name; + +/*! + Whether the template has UI or not. + */ +@property (nonatomic, readonly) BOOL isVisual; + +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTCustomTemplateBuilder.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTCustomTemplateBuilder.h new file mode 100644 index 000000000..a713db487 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTCustomTemplateBuilder.h @@ -0,0 +1,92 @@ +// +// CTCustomTemplateBuilder.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 6.03.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#import +#import "CTTemplatePresenter.h" +#import "CTCustomTemplate.h" + +#define TEMPLATE_TYPE @"template" +#define FUNCTION_TYPE @"function" + +NS_ASSUME_NONNULL_BEGIN + +/*! + Builder for ``CTCustomTemplate``s creation. Set `name` and `presenter` before calling ``build``. + Arguments can be specified by using one of the `addArgument:` methods. Argument names must be unique. + The "." characters in template arguments' names denote hierarchical structure. + They are treated the same way as the keys within dictionaries passed to ``addArgument:withDictionary:``. + If a higher-level name (to the left of a "." symbol) matches a dictionary argument's name, + it is treated the same as if the argument was part of the dictionary itself. + + For example, the following code snippets define identical arguments: + ``` + [builder addArgument:@"map" withDictionary:@{ + @"a": @5, + @"b": @6 + }]; + ``` + and + ``` + [builder addArgument:@"map.a" withNumber:@5]; + [builder addArgument:@"map.b" withNumber:@6]; + ``` + + Methods of this class throw `NSException` with name `CleverTapCustomTemplateException` + for invalid states or parameters. Defined templates must be correct when the app is running. If such an + exception is thrown the template definition must be corrected instead of handling the error. + */ +@interface CTCustomTemplateBuilder : NSObject + +- (instancetype)init NS_UNAVAILABLE; + +/*! + The name for the template. It should be provided exactly once. + It must be unique across template definitions. + Must be non-blank. + + This method throws `NSException` with name `CleverTapCustomTemplateException` if the name is already set or the provided name is blank. + */ +- (void)setName:(NSString *)name; + +- (void)addArgument:(NSString *)name withString:(NSString *)defaultValue +NS_SWIFT_NAME(addArgument(_:string:)); + +- (void)addArgument:(NSString *)name withNumber:(NSNumber *)defaultValue +NS_SWIFT_NAME(addArgument(_:number:)); + +- (void)addArgument:(NSString *)name withBool:(BOOL)defaultValue +NS_SWIFT_NAME(addArgument(_:boolean:)); + +/*! + Add a dictionary structure to the arguments of the ``CTCustomTemplate``. + The `name` should be unique across all arguments and also + all keys in `defaultValue` should form unique names across all arguments. + + @param defaultValue The dictionary must be non-empty. Values can be of type `NSNumber` or `NSString` or another `NSDictionary` which values can also be of the same types. + */ +- (void)addArgument:(nonnull NSString *)name withDictionary:(nonnull NSDictionary *)defaultValue +NS_SWIFT_NAME(addArgument(_:dictionary:)); + +- (void)addFileArgument:(NSString *)name; + +/*! + The presenter for this template. See ``CTTemplatePresenter``. + */ +- (void)setPresenter:(id)presenter; + +/*! + Creates the ``CTCustomTemplate`` with the previously defined name, arguments and presenter. + Name and presenter must be set before calling this method. + + This method throws `NSException` with name `CleverTapCustomTemplateException` if name or presenter were not set. + */ +- (CTCustomTemplate *)build; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTCustomTemplatesManager.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTCustomTemplatesManager.h new file mode 100644 index 000000000..9334a0307 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTCustomTemplatesManager.h @@ -0,0 +1,29 @@ +// +// CTCustomTemplatesManager.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 28.02.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#import +#import "CTTemplateProducer.h" +#import "CTTemplateContext.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface CTCustomTemplatesManager : NSObject + ++ (void)registerTemplateProducer:(id)producer; + +- (instancetype)init NS_UNAVAILABLE; + +- (BOOL)isRegisteredTemplateWithName:(NSString *)name; +- (BOOL)isVisualTemplateWithName:(nonnull NSString *)name; +- (CTTemplateContext *)activeContextForTemplate:(NSString *)templateName; + +- (NSDictionary*)syncPayload; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTInAppTemplateBuilder.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTInAppTemplateBuilder.h new file mode 100644 index 000000000..e7805d08b --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTInAppTemplateBuilder.h @@ -0,0 +1,30 @@ +// +// CTInAppTemplateBuilder.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 27.02.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#import +#import "CTCustomTemplateBuilder.h" + +NS_ASSUME_NONNULL_BEGIN + +/*! + Builder for ``CTCustomTemplate`` code templates. See ``CTCustomTemplateBuilder``. + */ +@interface CTInAppTemplateBuilder : CTCustomTemplateBuilder + +- (instancetype)init; + +/*! + Action arguments are specified by name only. When the ``CTCustomTemplate`` is triggered, the configured action + can be executed through ``CTTemplateContext/triggerActionNamed:``. + Action values could either be a predefined action (like close or open-url) or а registered ``CTCustomTemplate`` function. + */ +- (void)addActionArgument:(NSString *)name; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTJsonTemplateProducer.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTJsonTemplateProducer.h new file mode 100644 index 000000000..1e6aec236 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTJsonTemplateProducer.h @@ -0,0 +1,93 @@ +// +// CTJsonTemplateProducer.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 13.09.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#import +#import "CTTemplatePresenter.h" +#import "CTTemplateProducer.h" +#import "CTCustomTemplate.h" +#import "CleverTapInstanceConfig.h" + +NS_ASSUME_NONNULL_BEGIN + +/*! + A ``CTTemplateProducer`` that creates templates based on a json definition. + */ +@interface CTJsonTemplateProducer : NSObject + +- (instancetype)init NS_UNAVAILABLE; + +/*! + Creates a template producer with a json definition, template presenter and function presenter. + + See ``CTTemplatePresenter`` for more information on the template/function presenter. + + Invalid definitions throw `NSException` with name `CleverTapCustomTemplateException` when ``defineTemplates:`` is called. + + @param jsonTemplatesDefinition A string with a json definition of templates in the following format: + ``` + { + "TemplateName": { + "type": "template", + "arguments": { + "Argument1": { + "type": "string|number|boolean|file|action|object", + "value": "val" // different type depending on "type", e.g 12.5, true, "str" or {} + }, + "Argument2": { + "type": "object", + "value": { + "Nested1": { + "type": "string|number|boolean|object", // file and action cannot be nested + "value": {} + }, + "Nested2": { + "type": "string|number|boolean|object", + "value": "val" + } + } + } + } + }, + "functionName": { + "type": "function", + "isVisual": true|false, + "arguments": { + "a": { + "type": "string|number|boolean|file|object", // action arguments are not supported for functions + "value": "val" + } + } + } + } + ``` + + @param templatePresenter A presenter for all templates in the json definitions. Required if there + is at least one template with type "template". + + @param functionPresenter A presenter for all functions in the json definitions. Required if there + is at least one template with type "function". + */ +- (nonnull instancetype)initWithJson:(nonnull NSString *)jsonTemplatesDefinition + templatePresenter:(nonnull id)templatePresenter + functionPresenter:(nonnull id)functionPresenter; + + +/*! + Creates ``CTCustomTemplate``s based on the `jsonTemplatesDefinition` this ``CTJsonTemplateProducer`` was initialized with. + + @param instanceConfig The config of the CleverTap instance. + @return A set of the custom templates created. + + This method throws an `NSException` with name `CleverTapCustomTemplateException` if an invalid JSON format or values occur while parsing `jsonTemplatesDefinition`. + See the exception reason for details. + */ +- (NSSet * _Nonnull)defineTemplates:(CleverTapInstanceConfig * _Nonnull)instanceConfig; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTLocalInApp.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTLocalInApp.h new file mode 100644 index 000000000..201411f37 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTLocalInApp.h @@ -0,0 +1,71 @@ +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSUInteger, CTLocalInAppType) { + ALERT, + HALF_INTERSTITIAL +}; + +/*! + + @abstract + The `CTLocalInApp` represents the builder class to display local in-app. + */ +@interface CTLocalInApp : NSObject + +/*! + @method + + @abstract + Initializes and returns an instance of the CTLocalInApp. + + @discussion + This method have all parameters as required fields. + + @param inAppType the local in-app type, ALERT or HALF_INTERSTITIAL + @param titleText in-app title text + @param messageText in-app message text + @param followDeviceOrientation If YES, in-app will display in both orientation. If NO, in-app will not display in landscape orientation + @param positiveBtnText in-app positive button text, eg "Allow" + @param negativeBtnText in-app negative button text, eg "Cancel" + */ +- (instancetype)initWithInAppType:(CTLocalInAppType)inAppType + titleText:(NSString *)titleText + messageText:(NSString *)messageText + followDeviceOrientation:(BOOL)followDeviceOrientation + positiveBtnText:(NSString *)positiveBtnText + negativeBtnText:(NSString *)negativeBtnText; + +/** + Returns NSDictionary having all local in-app settings as key-value pair. + */ +- (NSDictionary *)getLocalInAppSettings; + +/* ----------------- + * Optional methods. + * ----------------- + */ +- (void)setBackgroundColor:(NSString *)backgroundColor; +- (void)setTitleTextColor:(NSString *)titleTextColor; +- (void)setMessageTextColor:(NSString *)messageTextColor; +- (void)setBtnBorderRadius:(NSString *)btnBorderRadius; +- (void)setBtnTextColor:(NSString *)btnTextColor; +- (void)setBtnBorderColor:(NSString *)btnBorderColor; +- (void)setBtnBackgroundColor:(NSString *)btnBackgroundColor; +- (void)setImageUrl:(NSString *)imageUrl; + +/** + If fallbackToSettings is YES and permission is denied, then we fallback to app’s notification settings. + If fallbackToSettings is NO, then we just throw a log saying permission is denied. + */ +- (void)setFallbackToSettings:(BOOL)fallbackToSettings; + +/** + If skipAlert is YES, then we skip the settings alert dialog shown before opening app notification settings. + */ +- (void)setSkipSettingsAlert:(BOOL)skipAlert; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTTemplateContext.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTTemplateContext.h new file mode 100644 index 000000000..8160f1686 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTTemplateContext.h @@ -0,0 +1,141 @@ +// +// CTTemplateContext.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 27.02.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +/*! + Representation of the context around a ``CTCustomTemplate``. Use the `Named:` methods to obtain the + current values of the arguments. Use ``triggerActionNamed:`` to trigger template actions. + Use ``presented`` and ``dismissed`` to notify the SDK of the current state of this InApp context. + */ +@interface CTTemplateContext : NSObject + +- (instancetype)init NS_UNAVAILABLE; + +/*! + The name of the template or function. + + @return The name of the ``CTCustomTemplate``. + */ +- (NSString *)templateName +NS_SWIFT_NAME(name()); + +/*! + Retrieve a `NSString` argument by `name`. + + @return The argument value or `nil` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (nullable NSString *)stringNamed:(NSString *)name +NS_SWIFT_NAME(string(name:)); + +/*! + Retrieve a `NSNumber` argument by `name`. + + @return The argument value or `nil` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (nullable NSNumber *)numberNamed:(NSString *)name +NS_SWIFT_NAME(number(name:)); + +/*! + Retrieve a `char` argument by `name`. + + @return The argument value or `0` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (int)charNamed:(NSString *)name +NS_SWIFT_NAME(char(name:)); + +/*! + Retrieve an `int` argument by `name`. + + @return The argument value or `0` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (int)intNamed:(NSString *)name +NS_SWIFT_NAME(int(name:)); + +/*! + Retrieve a `double` argument by `name`. + + @return The argument value or `0` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (double)doubleNamed:(NSString *)name +NS_SWIFT_NAME(double(name:)); + +/*! + Retrieve a `float` argument by `name`. + + @return The argument value or `0` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (float)floatNamed:(NSString *)name +NS_SWIFT_NAME(float(name:)); + +/*! + Retrieve a `long` argument by `name`. + + @return The argument value or `0` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (long)longNamed:(NSString *)name +NS_SWIFT_NAME(long(name:)); + +/*! + Retrieve a `long long` argument by `name`. + + @return The argument value or `0` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (long long)longLongNamed:(NSString *)name +NS_SWIFT_NAME(longLong(name:)); + +/*! + Retrieve a `BOOL` argument by `name`. + + @return The argument value or `NO` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (BOOL)boolNamed:(NSString *)name +NS_SWIFT_NAME(boolean(name:)); + +/*! + Retrieve a dictionary of all arguments under `name`. Dictionary arguments will be combined with dot notation arguments. All + values are converted to their defined type in the ``CTCustomTemplate``. Action arguments are mapped to their + name as `NSString`. Returns `nil` if no arguments are found for the requested map. + + @return A dictionary of all arguments under `name` or `nil`. + */ +- (nullable NSDictionary *)dictionaryNamed:(NSString *)name +NS_SWIFT_NAME(dictionary(name:)); + +/*! + Retrieve an absolute file path argument by `name`. + + @return The argument value or `nil` if no such argument is defined for the ``CTCustomTemplate``. + */ +- (nullable NSString *)fileNamed:(NSString *)name +NS_SWIFT_NAME(file(name:)); + +/*! + Call this method to notify the SDK the ``CTCustomTemplate`` is presented. + */ +- (void)presented; + +/*! + Trigger an action argument by `name`. + Records a "Notification Clicked" event. + */ +- (void)triggerActionNamed:(NSString *)name +NS_SWIFT_NAME(triggerAction(name:)); + +/*! + Notify the SDK that the current ``CTCustomTemplate`` is dismissed. The current ``CTCustomTemplate`` is considered to be + visible to the user until this method is called. Since the SDK can show only one InApp message at a time, all + other messages will be queued until the current one is dismissed. + */ +- (void)dismissed; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTTemplatePresenter.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTTemplatePresenter.h new file mode 100644 index 000000000..bc0db0980 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTTemplatePresenter.h @@ -0,0 +1,43 @@ +// +// TemplatePresenter.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 27.02.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#ifndef CTTemplatePresenter_h +#define CTTemplatePresenter_h + +#import "CTTemplateContext.h" + +NS_ASSUME_NONNULL_BEGIN + +/*! + A handler of custom code templates ``CTCustomTemplate``. Its methods are called when the corresponding InApp + message should be presented to the user or closed. + */ +@protocol CTTemplatePresenter + +/*! + Called when a ``CTCustomTemplate`` should be presented or a function should be executed. For visual templates + (code templates and functions with ``CTCustomTemplate/isVisual`` equals `YES`) implementing classes should use the provided + ``CTTemplateContext`` methods ``CTTemplateContext/presented`` and + ``CTTemplateContext/dismissed`` to notify the SDK of the state of the template invocation. Only + one visual template or other InApp message can be displayed at a time by the SDK and no new messages can be + shown until the current one is dismissed. + */ +- (void)onPresent:(CTTemplateContext *)context +NS_SWIFT_NAME(onPresent(context:)); + +/*! + Called when a ``CTCustomTemplate`` action Notification Close is executed. Dismiss the custom template InApp and call ``CTTemplateContext/dismissed`` to notify the SDK the template is dismissed. + */ +- (void)onCloseClicked:(CTTemplateContext *)context +NS_SWIFT_NAME(onCloseClicked(context:)); + +@end + +NS_ASSUME_NONNULL_END + +#endif /* TemplatePresenter_h */ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTTemplateProducer.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTTemplateProducer.h new file mode 100644 index 000000000..c4e727e78 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTTemplateProducer.h @@ -0,0 +1,27 @@ +// +// CTTemplateProducer.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 27.02.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#ifndef CTTemplateProducer_h +#define CTTemplateProducer_h + +#import "CTCustomTemplate.h" +#import "CleverTapInstanceConfig.h" + +@protocol CTTemplateProducer + +/*! + Defines custom templates. + + @param instanceConfig Use the config to decide which instance the templates are defined for. + + @return A set of ``CTCustomTemplate`` definitions. ``CTCustomTemplate``s are uniquely identified by their name. + */ +- (NSSet * _Nonnull)defineTemplates:(CleverTapInstanceConfig * _Nonnull)instanceConfig; + +@end +#endif /* TemplateProducer_h */ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTVar.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTVar.h new file mode 100644 index 000000000..368ea546f --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CTVar.h @@ -0,0 +1,119 @@ +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef void (^CleverTapVariablesChangedBlock)(void); +typedef void (^CleverTapFetchVariablesBlock)(BOOL success); + +@class CTVar; +/** + * Receives callbacks for {@link CTVar} + */ +NS_SWIFT_NAME(VarDelegate) +@protocol CTVarDelegate +@optional +/** + * Called when the value of the variable changes. + */ +- (void)valueDidChange:(CTVar *)variable; +/** + * Called when the file is downloaded and ready. + */ +- (void)fileIsReady:(CTVar *)var; +@end + +/** + * A variable is any part of your application that can change from an experiment. + * Check out {@link Macros the macros} for defining variables more easily. + */ +NS_SWIFT_NAME(Var) +@interface CTVar : NSObject + +@property (readonly, strong, nullable) NSString *stringValue; +@property (readonly, strong, nullable) NSNumber *numberValue; +@property (readonly, strong, nullable) id value; +@property (readonly, strong, nullable) id defaultValue; +@property (readonly, strong, nullable) NSString *fileValue; + +/** + * @{ + * Defines a {@link LPVar} + */ +- (instancetype)init NS_UNAVAILABLE; + +/** + * Returns the name of the variable. + */ +- (NSString *)name; + +/** + * Returns the components of the variable's name. + */ +- (NSArray *)nameComponents; + +/** + * Returns the default value of a variable. + */ +- (nullable id)defaultValue; + +/** + * Returns the kind of the variable. + */ +- (NSString *)kind; + +/** + * Returns whether the variable has changed since the last time the app was run. + */ +- (BOOL)hasChanged; + +/** + * Called when the value of the variable changes. + */ +- (void)onValueChanged:(CleverTapVariablesChangedBlock)block; + +/** + * Called when the value of the file variable is downloaded and ready. + */ +- (void)onFileIsReady:(CleverTapVariablesChangedBlock)block; + +/** + * Sets the delegate of the variable in order to use + * {@link CTVarDelegate::valueDidChange:} + */ +- (void)setDelegate:(nullable id )delegate; + +- (void)clearState; + +/** + * @{ + * Accessess the value(s) of the variable + */ +- (id)objectForKey:(nullable NSString *)key; +- (id)objectAtIndex:(NSUInteger )index; +- (id)objectForKeyPath:(nullable id)firstComponent, ... NS_REQUIRES_NIL_TERMINATION; +- (id)objectForKeyPathComponents:(nullable NSArray *)pathComponents; + +- (nullable NSNumber *)numberValue; +- (nullable NSString *)stringValue; +- (int)intValue; +- (double)doubleValue; +- (CGFloat)cgFloatValue; +- (float)floatValue; +- (short)shortValue; +- (BOOL)boolValue; +- (char)charValue; +- (long)longValue; +- (long long)longLongValue; +- (NSInteger)integerValue; +- (unsigned char)unsignedCharValue; +- (unsigned short)unsignedShortValue; +- (unsigned int)unsignedIntValue; +- (NSUInteger)unsignedIntegerValue; +- (unsigned long)unsignedLongValue; +- (unsigned long long)unsignedLongLongValue; +- (nullable NSString *)fileValue; +/**@}*/ +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+CTVar.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+CTVar.h new file mode 100644 index 000000000..d6c1b058a --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+CTVar.h @@ -0,0 +1,60 @@ +// +// CleverTap+CTVar.h +// CleverTapSDK +// +// Created by Akash Malhotra on 18/02/23. +// Copyright © 2023 CleverTap. All rights reserved. +// + +#import +#import "CleverTap.h" +@class CTVar; + +NS_ASSUME_NONNULL_BEGIN + +@interface CleverTap (Vars) + +- (CTVar *)defineVar:(NSString *)name +NS_SWIFT_NAME(defineVar(name:)); +- (CTVar *)defineVar:(NSString *)name withInt:(int)defaultValue +NS_SWIFT_NAME(defineVar(name:integer:)); +- (CTVar *)defineVar:(NSString *)name withFloat:(float)defaultValue +NS_SWIFT_NAME(defineVar(name:float:)); +- (CTVar *)defineVar:(NSString *)name withDouble:(double)defaultValue +NS_SWIFT_NAME(defineVar(name:double:)); +- (CTVar *)defineVar:(NSString *)name withCGFloat:(CGFloat)cgFloatValue +NS_SWIFT_NAME(defineVar(name:cgFloat:)); +- (CTVar *)defineVar:(NSString *)name withShort:(short)defaultValue +NS_SWIFT_NAME(defineVar(name:short:)); +- (CTVar *)defineVar:(NSString *)name withBool:(BOOL)defaultValue +NS_SWIFT_NAME(defineVar(name:boolean:)); +- (CTVar *)defineVar:(NSString *)name withString:(nullable NSString *)defaultValue +NS_SWIFT_NAME(defineVar(name:string:)); +- (CTVar *)defineVar:(NSString *)name withNumber:(nullable NSNumber *)defaultValue +NS_SWIFT_NAME(defineVar(name:number:)); +- (CTVar *)defineVar:(NSString *)name withInteger:(NSInteger)defaultValue +NS_SWIFT_NAME(defineVar(name:NSInteger:)); +- (CTVar *)defineVar:(NSString *)name withLong:(long)defaultValue +NS_SWIFT_NAME(defineVar(name:long:)); +- (CTVar *)defineVar:(NSString *)name withLongLong:(long long)defaultValue +NS_SWIFT_NAME(defineVar(name:longLong:)); +- (CTVar *)defineVar:(NSString *)name withUnsignedChar:(unsigned char)defaultValue +NS_SWIFT_NAME(defineVar(name:unsignedChar:)); +- (CTVar *)defineVar:(NSString *)name withUnsignedInt:(unsigned int)defaultValue +NS_SWIFT_NAME(defineVar(name:unsignedInt:)); +- (CTVar *)defineVar:(NSString *)name withUnsignedInteger:(NSUInteger)defaultValue +NS_SWIFT_NAME(defineVar(name:unsignedInteger:)); +- (CTVar *)defineVar:(NSString *)name withUnsignedLong:(unsigned long)defaultValue +NS_SWIFT_NAME(defineVar(name:unsignedLong:)); +- (CTVar *)defineVar:(NSString *)name withUnsignedLongLong:(unsigned long long)defaultValue +NS_SWIFT_NAME(defineVar(name:unsignedLongLong:)); +- (CTVar *)defineVar:(NSString *)name withUnsignedShort:(unsigned short)defaultValue +NS_SWIFT_NAME(defineVar(name:UnsignedShort:)); +- (CTVar *)defineVar:(NSString *)name withDictionary:(nullable NSDictionary *)defaultValue +NS_SWIFT_NAME(defineVar(name:dictionary:)); +- (CTVar *)defineFileVar:(NSString *)name +NS_SWIFT_NAME(defineFileVar(name:)); + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+DisplayUnit.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+DisplayUnit.h new file mode 100644 index 000000000..34398e6ab --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+DisplayUnit.h @@ -0,0 +1,158 @@ +#import +#import "CleverTap.h" +@class CleverTapDisplayUnitContent; + +/*! + + @abstract + The `CleverTapDisplayUnit` represents the display unit object. + */ +@interface CleverTapDisplayUnit : NSObject + +- (instancetype _Nullable )initWithJSON:(NSDictionary *_Nullable)json; +/*! + * json defines the display unit data in the form of NSDictionary. + */ +@property (nullable, nonatomic, copy, readonly) NSDictionary *json; +/*! + * unitID defines the display unit identifier. + */ +@property (nullable, nonatomic, copy, readonly) NSString *unitID; +/*! + * type defines the display unit type. + */ +@property (nullable, nonatomic, copy, readonly) NSString *type; +/*! + * bgColor defines the backgroundColor of the display unit. + */ +@property (nullable, nonatomic, copy, readonly) NSString *bgColor; +/*! + * customExtras defines the extra data in the form of an NSDictionary. The extra key/value pairs set in the CleverTap dashboard. + */ +@property (nullable, nonatomic, copy, readonly) NSDictionary *customExtras; +/*! + * content defines the content of the display unit. + */ +@property (nullable, nonatomic, copy, readonly) NSArray *contents; + +@end + +/*! + + @abstract + The `CleverTapDisplayUnitContent` represents the display unit content. + */ +@interface CleverTapDisplayUnitContent : NSObject +/*! + * title defines the title section of the display unit content. + */ +@property (nullable, nonatomic, copy, readonly) NSString *title; +/*! + * titleColor defines hex-code value of the title color as String. + */ +@property (nullable, nonatomic, copy, readonly) NSString *titleColor; +/*! + * message defines the message section of the display unit content. + */ +@property (nullable, nonatomic, copy, readonly) NSString *message; +/*! + * messageColor defines hex-code value of the message color as String. + */ +@property (nullable, nonatomic, copy, readonly) NSString *messageColor; +/*! + * videoPosterUrl defines video URL of the display unit as String. + */ +@property (nullable, nonatomic, copy, readonly) NSString *videoPosterUrl; +/*! + * actionUrl defines action URL of the display unit as String. + */ +@property (nullable, nonatomic, copy, readonly) NSString *actionUrl; +/*! + * mediaUrl defines media URL of the display unit as String. + */ +@property (nullable, nonatomic, copy, readonly) NSString *mediaUrl; +/*! + * iconUrl defines icon URL of the display unit as String. + */ +@property (nullable, nonatomic, copy, readonly) NSString *iconUrl; +/*! + * mediaIsAudio check whether mediaUrl is an audio. + */ +@property (nonatomic, readonly, assign) BOOL mediaIsAudio; +/*! + * mediaIsVideo check whether mediaUrl is a video. + */ +@property (nonatomic, readonly, assign) BOOL mediaIsVideo; +/*! + * mediaIsImage check whether mediaUrl is an image. + */ +@property (nonatomic, readonly, assign) BOOL mediaIsImage; +/*! + * mediaIsGif check whether mediaUrl is a gif. + */ +@property (nonatomic, readonly, assign) BOOL mediaIsGif; + +- (instancetype _Nullable )initWithJSON:(NSDictionary *_Nullable)jsonObject; + +@end + +@protocol CleverTapDisplayUnitDelegate +@optional +- (void)displayUnitsUpdated:(NSArray*_Nonnull)displayUnits; +@end + +typedef void (^CleverTapDisplayUnitSuccessBlock)(BOOL success); + +@interface CleverTap (DisplayUnit) + +/*! + @method + + @abstract + This method returns all the display units. + */ +- (NSArray*_Nonnull)getAllDisplayUnits; + +/*! + @method + + @abstract + This method return display unit for the provided unitID + */ +- (CleverTapDisplayUnit *_Nullable)getDisplayUnitForID:(NSString *_Nonnull)unitID; + +/*! + @method + + @abstract + The `CleverTapDisplayUnitDelegate` protocol provides methods for notifying + your application (the adopting delegate) about display units. + + @discussion + This sets the CleverTapDisplayUnitDelegate. + + @param delegate an object conforming to the CleverTapDisplayUnitDelegate Protocol + */ +- (void)setDisplayUnitDelegate:(id _Nonnull)delegate; + +/*! + @method + + @abstract + Record Notification Viewed for display unit. + + @param unitID unique id of the display unit + */ +- (void)recordDisplayUnitViewedEventForID:(NSString *_Nonnull)unitID; + +/*! + @method + + @abstract + Record Notification Clicked for display unit. + + @param unitID unique id of the display unit + */ +- (void)recordDisplayUnitClickedEventForID:(NSString *_Nonnull)unitID; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+FeatureFlags.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+FeatureFlags.h new file mode 100644 index 000000000..b793e3ac4 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+FeatureFlags.h @@ -0,0 +1,24 @@ +#import +#import "CleverTap.h" + +__attribute__((deprecated("This protocol has been deprecated and will be removed in the future versions of this SDK."))) +@protocol CleverTapFeatureFlagsDelegate +@optional +- (void)ctFeatureFlagsUpdated +__attribute__((deprecated("This protocol method has been deprecated and will be removed in the future versions of this SDK."))); +@end + +@interface CleverTap (FeatureFlags) +@property (atomic, strong, readonly, nonnull) CleverTapFeatureFlags *featureFlags +__attribute__((deprecated("This property has been deprecated and will be removed in the future versions of this SDK."))); +@end + +@interface CleverTapFeatureFlags : NSObject + +@property (nonatomic, weak) id _Nullable delegate +__attribute__((deprecated("This property has been deprecated and will be removed in the future versions of this SDK.")));; + +- (BOOL)get:(NSString* _Nonnull)key withDefaultValue:(BOOL)defaultValue +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK.")));; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+InAppNotifications.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+InAppNotifications.h new file mode 100644 index 000000000..70e0cbe36 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+InAppNotifications.h @@ -0,0 +1,47 @@ +#import +#import "CleverTap.h" + +@interface CleverTap (InAppNotifications) + +#if !CLEVERTAP_NO_INAPP_SUPPORT +/*! + @method + + @abstract + Suspends and saves inApp notifications until 'resumeInAppNotifications' is called for current session. + + Automatically resumes InApp notifications display on CleverTap shared instance creation. Pending inApp notifications are displayed only for current session. + */ +- (void)suspendInAppNotifications; + +/*! + @method + + @abstract + Discards inApp notifications until 'resumeInAppNotifications' is called for current session. + + Automatically resumes InApp notifications display on CleverTap shared instance creation. Pending inApp notifications are not displayed. + */ +- (void)discardInAppNotifications; + +/*! + @method + + @abstract + Resumes displaying inApps notifications and shows pending inApp notifications if any. + */ +- (void)resumeInAppNotifications; + +/*! + @method + + @abstract + Clear inApps images stored in disk cache + + @param expiredOnly when true, it delete the expired images only + */ +- (void)clearInAppResources:(BOOL)expiredOnly; + +#endif + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+Inbox.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+Inbox.h new file mode 100755 index 000000000..9674c1e25 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+Inbox.h @@ -0,0 +1,262 @@ +#import +#import "CleverTap.h" +@class CleverTapInboxMessageContent; + +/*! + + @abstract + The `CleverTapInboxMessage` represents the inbox message object. + */ + +@interface CleverTapInboxMessage : NSObject + +@property (nullable, nonatomic, copy, readonly) NSDictionary *json; +@property (nullable, nonatomic, copy, readonly) NSDictionary *customData; + +@property (nonatomic, assign, readonly) BOOL isRead; +@property (nonatomic, assign, readonly) NSUInteger date; +@property (nonatomic, assign, readonly) NSUInteger expires; +@property (nullable, nonatomic, copy, readonly) NSString *relativeDate; +@property (nullable, nonatomic, copy, readonly) NSString *type; +@property (nullable, nonatomic, copy, readonly) NSString *messageId; +@property (nullable, nonatomic, copy, readonly) NSString *campaignId; +@property (nullable, nonatomic, copy, readonly) NSString *tagString; +@property (nullable, nonatomic, copy, readonly) NSArray *tags; +@property (nullable, nonatomic, copy, readonly) NSString *orientation; +@property (nullable, nonatomic, copy, readonly) NSString *backgroundColor; +@property (nullable, nonatomic, copy, readonly) NSArray *content; + +- (void)setRead:(BOOL)read; + +@end + +/*! + + @abstract + The `CleverTapInboxMessageContent` represents the inbox message content. + */ + +@interface CleverTapInboxMessageContent : NSObject + +@property (nullable, nonatomic, copy, readonly) NSString *title; +@property (nullable, nonatomic, copy, readonly) NSString *titleColor; +@property (nullable, nonatomic, copy, readonly) NSString *message; +@property (nullable, nonatomic, copy, readonly) NSString *messageColor; +@property (nullable, nonatomic, copy, readonly) NSString *backgroundColor; +@property (nullable, nonatomic, copy, readonly) NSString *mediaUrl; +@property (nullable, nonatomic, copy, readonly) NSString *videoPosterUrl; +@property (nullable, nonatomic, copy, readonly) NSString *iconUrl; +@property (nullable, nonatomic, copy, readonly) NSString *actionUrl; +@property (nullable, nonatomic, copy, readonly) NSArray *links; +@property (nonatomic, readonly, assign) BOOL mediaIsAudio; +@property (nonatomic, readonly, assign) BOOL mediaIsVideo; +@property (nonatomic, readonly, assign) BOOL mediaIsImage; +@property (nonatomic, readonly, assign) BOOL mediaIsGif; +@property (nonatomic, readonly, assign) BOOL actionHasUrl; +@property (nonatomic, readonly, assign) BOOL actionHasLinks; + +- (NSString *_Nullable)urlForLinkAtIndex:(int)index; +- (NSDictionary *_Nullable)customDataForLinkAtIndex:(int)index; + +@end + +@protocol CleverTapInboxViewControllerDelegate +@optional +- (void)messageDidSelect:(CleverTapInboxMessage *_Nonnull)message atIndex:(int)index withButtonIndex:(int)buttonIndex; +- (void)messageButtonTappedWithCustomExtras:(NSDictionary *_Nullable)customExtras; + +@end + +/*! + + @abstract + The `CleverTapInboxStyleConfig` has all the parameters required to configure the styling of your Inbox ViewController + */ + +@interface CleverTapInboxStyleConfig : NSObject + +@property (nonatomic, strong, nullable) NSString *title; +@property (nonatomic, strong, nullable) UIColor *backgroundColor; +@property (nonatomic, strong, nullable) NSArray *messageTags; +@property (nonatomic, strong, nullable) UIColor *navigationBarTintColor; +@property (nonatomic, strong, nullable) UIColor *navigationTintColor; +@property (nonatomic, strong, nullable) UIColor *tabSelectedBgColor; +@property (nonatomic, strong, nullable) UIColor *tabSelectedTextColor; +@property (nonatomic, strong, nullable) UIColor *tabUnSelectedTextColor; +@property (nonatomic, strong, nullable) NSString *noMessageViewText; +@property (nonatomic, strong, nullable) UIColor *noMessageViewTextColor; +@property (nonatomic, strong, nullable) NSString *firstTabTitle; + +@end + +@interface CleverTapInboxViewController : UITableViewController + +@end + +typedef void (^CleverTapInboxSuccessBlock)(BOOL success); +typedef void (^CleverTapInboxUpdatedBlock)(void); + +@interface CleverTap (Inbox) + +/*! + @method + + @abstract + Initialized the inbox controller and sends a callback. + + @discussion + Use this method to initialize the inbox controller. + You must call this method separately for each instance of CleverTap. + */ + +- (void)initializeInboxWithCallback:(CleverTapInboxSuccessBlock _Nonnull)callback; + +/*! + @method + + @abstract + This method returns the total number of inbox messages for the user. + */ + +- (NSInteger)getInboxMessageCount; + +/*! + @method + + @abstract + This method returns the total number of unread inbox messages for the user. + */ + +- (NSInteger)getInboxMessageUnreadCount; + +/*! + @method + Get all the inbox messages. + + @abstract + This method returns an array of `CleverTapInboxMessage` objects for the user. + */ + +- (NSArray * _Nonnull)getAllInboxMessages; + +/*! + @method + Get all the unread inbox messages. + + @abstract + This method returns an array of unread `CleverTapInboxMessage` objects for the user. + */ + +- (NSArray * _Nonnull)getUnreadInboxMessages; + +/*! + @method + + @abstract + This method returns `CleverTapInboxMessage` object that belongs to the given messageId. + */ + +- (CleverTapInboxMessage * _Nullable)getInboxMessageForId:(NSString * _Nonnull)messageId; + +/*! + @method + + @abstract + This method deletes the given `CleverTapInboxMessage` object. + */ + +- (void)deleteInboxMessage:(CleverTapInboxMessage * _Nonnull)message; + +/*! + @method + + @abstract + This method marks the given `CleverTapInboxMessage` object as read. + */ + +- (void)markReadInboxMessage:(CleverTapInboxMessage * _Nonnull) message; + +/*! + @method + + @abstract + This method deletes `CleverTapInboxMessage` object for the given `Message Id` as String. + */ + +- (void)deleteInboxMessageForID:(NSString * _Nonnull)messageId; + +/*! + @method + + @abstract + This method deletes `CleverTapInboxMessage` objects for the given `Message Id` as a collection. + */ + +- (void)deleteInboxMessagesForIDs:(NSArray *_Nonnull)messageIds; + +/*! + @method + + @abstract + This method marks the `CleverTapInboxMessage` object as read for given 'Message Id` as String. + */ + +- (void)markReadInboxMessageForID:(NSString * _Nonnull)messageId; + +/*! + @method + + @abstract + This method marks the `CleverTapInboxMessage` object as read for given 'Message Ids` as Collection. + */ + +- (void)markReadInboxMessagesForIDs:(NSArray *_Nonnull)messageIds; + +/*! + @method + + @abstract + Register a callback block when inbox messages are updated. + */ + +- (void)registerInboxUpdatedBlock:(CleverTapInboxUpdatedBlock _Nonnull)block; + +/** + + @method + This method opens the controller to display the inbox messages. + + @abstract + The `CleverTapInboxViewControllerDelegate` protocol provides a method for notifying + your application when a inbox message is clicked (or tapped). + + The `CleverTapInboxStyleConfig` has all the parameters required to configure the styling of your Inbox ViewController + */ + +- (CleverTapInboxViewController * _Nullable)newInboxViewControllerWithConfig:(CleverTapInboxStyleConfig * _Nullable)config andDelegate:(id _Nullable )delegate; + +/*! + @method + + @abstract + Record Notification Viewed for App Inbox. + */ +- (void)recordInboxNotificationViewedEventForID:(NSString * _Nonnull)messageId; + +/*! + @method + + @abstract + Record Notification Clicked for App Inbox. + */ +- (void)recordInboxNotificationClickedEventForID:(NSString * _Nonnull)messageId; + +/*! + @method + + @abstract + This method dismisses the inbox controller + */ +- (void)dismissAppInbox; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+ProductConfig.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+ProductConfig.h new file mode 100644 index 000000000..8ab582294 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+ProductConfig.h @@ -0,0 +1,144 @@ +#import +#import "CleverTap.h" + +__attribute__((deprecated("This protocol has been deprecated and will be removed in the future versions of this SDK."))) +@protocol CleverTapProductConfigDelegate +@optional +- (void)ctProductConfigFetched +__attribute__((deprecated("This protocol method has been deprecated and will be removed in the future versions of this SDK."))); +- (void)ctProductConfigActivated +__attribute__((deprecated("This protocol method has been deprecated and will be removed in the future versions of this SDK."))); +- (void)ctProductConfigInitialized +__attribute__((deprecated("This protocol method has been deprecated and will be removed in the future versions of this SDK."))); +@end + +@interface CleverTap(ProductConfig) +@property (atomic, strong, readonly, nonnull) CleverTapProductConfig *productConfig +__attribute__((deprecated("This property has been deprecated and will be removed in the future versions of this SDK."))); +@end + + +#pragma mark - CleverTapConfigValue + +@interface CleverTapConfigValue : NSObject +/// Gets the value as a string. +@property(nonatomic, readonly, nullable) NSString *stringValue; +/// Gets the value as a number value. +@property(nonatomic, readonly, nullable) NSNumber *numberValue; +/// Gets the value as a NSData object. +@property(nonatomic, readonly, nonnull) NSData *dataValue; +/// Gets the value as a boolean. +@property(nonatomic, readonly) BOOL boolValue; +/// Gets a foundation object (NSDictionary / NSArray) by parsing the value as JSON. This method uses +/// NSJSONSerialization's JSONObjectWithData method with an options value of 0. +@property(nonatomic, readonly, nullable) id jsonValue; + +@end + +@interface CleverTapProductConfig : NSObject + +@property (nonatomic, weak) id _Nullable delegate +__attribute__((deprecated("This property has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Fetches product configs, adhering to the default minimum fetch interval. + */ + +- (void)fetch +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Fetches product configs, adhering to the specified minimum fetch interval in seconds. + */ + +- (void)fetchWithMinimumInterval:(NSTimeInterval)minimumInterval +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Sets the minimum interval between successive fetch calls. + */ + +- (void)setMinimumFetchInterval:(NSTimeInterval)minimumFetchInterval +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Activates Fetched Config data to the Active Config, so that the fetched key value pairs take effect. + */ + +- (void)activate +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Fetches and then activates the fetched product configs. + */ + +- (void)fetchAndActivate +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Sets default configs using the given Dictionary + */ + +- (void)setDefaults:(NSDictionary *_Nullable)defaults +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Sets default configs using the given plist + */ + +- (void)setDefaultsFromPlistFileName:(NSString *_Nullable)fileName +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Returns the config value of the given key + */ + +- (CleverTapConfigValue *_Nullable)get:(NSString* _Nonnull)key +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Returns the last fetch timestamp + */ + +- (NSDate *_Nullable)getLastFetchTimeStamp +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + +/*! + @method + + @abstract + Deletes all activated, fetched and defaults configs and resets all Product Config settings. + */ + +- (void)reset +__attribute__((deprecated("This method has been deprecated and will be removed in the future versions of this SDK."))); + + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+PushPermission.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+PushPermission.h new file mode 100644 index 000000000..833d3ccb1 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+PushPermission.h @@ -0,0 +1,69 @@ +#import +#import +#import "CleverTap.h" + +@protocol CleverTapPushPermissionDelegate + +/*! + @discussion + When an user either allow or deny permission for push notifications, + this method will be called. + + @param accepted The boolean will be true/false if notification permission is granted/denied. + */ +@optional +- (void)onPushPermissionResponse:(BOOL)accepted; +@end + + +@interface CleverTap (PushPermission) + +/*! + + @method + + @abstract + The `CleverTapPushPermissionDelegate` protocol provides methods for notifying + your application (the adopting delegate) about push permission response. + + @discussion + This sets the CleverTapPushPermissionDelegate. + + @param delegate an object conforming to the CleverTapPushPermissionDelegate Protocol + */ +- (void)setPushPermissionDelegate:(id _Nullable)delegate; + +/*! + @method + + @abstract + This method will create a push primer asking user to enable push notification. + + @param json A NSDictionary which have all fields needed to display push primer. + */ +- (void)promptPushPrimer:(NSDictionary *_Nonnull)json; + +/*! + @method + + @abstract + This method will directly show OS hard dialog for requesting push permission. + + @param showFallbackSettings If YES and permission is denied already, then we fallback to app’s notification settings. + */ +- (void)promptForPushPermission:(BOOL)showFallbackSettings; + +/*! + @method + + @abstract + Returns the push notification permission status inside completion block. + This method can be called before creating push primer and prompt push primer only if permission is denied. + + @param completion the completion block to be executed when push permission status is retrieved. + */ + +- (void)getNotificationPermissionStatusWithCompletionHandler:(void (^_Nonnull)(UNAuthorizationStatus status))completion API_AVAILABLE(ios(10.0)); + +@end + diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+SCDomain.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+SCDomain.h new file mode 100644 index 000000000..cd6ab232b --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+SCDomain.h @@ -0,0 +1,28 @@ +#import +#import "CleverTap.h" + +@class CleverTap; + +@protocol CleverTapDomainDelegate +@optional +/*! + @method + + @abstract + When conformed to `CleverTapDomainDelegate`, domain available callback will be received if domain available + + @param domain the domain to be used by SC SDK + */ +- (void)onSCDomainAvailable:(NSString* _Nonnull)domain; + +/*! + @method + + @abstract + When conformed to `CleverTapDomainDelegate`, domain unavailable callback will be received if domain not available + */ +- (void)onSCDomainUnavailable; +@end + +@interface CleverTap (SCDomain) +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+SSLPinning.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+SSLPinning.h new file mode 100644 index 000000000..6a90e9299 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap+SSLPinning.h @@ -0,0 +1,10 @@ +#import +#import "CleverTap.h" + +@interface CleverTap (SSLPinning) + +#ifdef CLEVERTAP_SSL_PINNING +@property (nonatomic, assign, readonly) BOOL sslPinningEnabled; +#endif + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap.h new file mode 100644 index 000000000..d3a4a1007 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTap.h @@ -0,0 +1,1498 @@ +#import +#import +#import + +#if defined(CLEVERTAP_HOST_WATCHOS) +#import +#endif + +#if TARGET_OS_TV +#define CLEVERTAP_TVOS 1 +#endif + +#if defined(CLEVERTAP_TVOS) +#define CLEVERTAP_NO_INAPP_SUPPORT 1 +#define CLEVERTAP_NO_REACHABILITY_SUPPORT 1 +#define CLEVERTAP_NO_INBOX_SUPPORT 1 +#define CLEVERTAP_NO_DISPLAY_UNIT_SUPPORT 1 +#define CLEVERTAP_NO_GEOFENCE_SUPPORT 1 +#endif + +@protocol CleverTapDomainDelegate; +@protocol CleverTapSyncDelegate; +@protocol CleverTapURLDelegate; +@protocol CleverTapPushNotificationDelegate; +#if !CLEVERTAP_NO_INAPP_SUPPORT +@protocol CleverTapInAppNotificationDelegate; +@class CTTemplateContext; +@protocol CTTemplateProducer; +#endif + +@protocol CTBatchSentDelegate; +@protocol CTAttachToBatchHeaderDelegate; +@protocol CTSwitchUserDelegate; + +@class CleverTapEventDetail; +@class CleverTapUTMDetail; +@class CleverTapInstanceConfig; +@class CleverTapFeatureFlags; +@class CleverTapProductConfig; + +@class CTInAppNotification; +#import "CTVar.h" + +#pragma clang diagnostic push +#pragma ide diagnostic ignored "OCUnusedMethodInspection" + +typedef NS_ENUM(int, CleverTapLogLevel) { + CleverTapLogOff = -1, + CleverTapLogInfo = 0, + CleverTapLogDebug = 1 +}; + +typedef NS_ENUM(int, CleverTapChannel) { + CleverTapPushNotification = 0, + CleverTapAppInbox = 1, + CleverTapInAppNotification = 2 +}; + +typedef NS_ENUM(int, CTSignedCallEvent) { + SIGNED_CALL_OUTGOING_EVENT = 0, + SIGNED_CALL_INCOMING_EVENT, + SIGNED_CALL_END_EVENT +}; + +typedef NS_ENUM(int, CleverTapEncryptionLevel) { + CleverTapEncryptionNone = 0, + CleverTapEncryptionMedium = 1 +}; + +typedef void (^CleverTapFetchInAppsBlock)(BOOL success); + +@interface CleverTap : NSObject + +#pragma mark - Properties + +/* ----------------------------------------------------------------------------- + * Instance Properties + */ + +/** + CleverTap Configuration (e.g. the CleverTap accountId, token, region, other configuration properties...) for this instance. + */ + +@property (nonatomic, strong, readonly, nonnull) CleverTapInstanceConfig *config; + +/** + CleverTap region/ domain value for signed call domain setup + */ +@property (nonatomic, strong, readwrite, nullable) NSString *signedCallDomain; + + +/* ------------------------------------------------------------------------------------------------------ + * Initialization + */ + +/*! + @method + + @abstract + Initializes and returns a singleton instance of the API. + + @discussion + This method will set up a singleton instance of the CleverTap class, when you want to make calls to CleverTap + elsewhere in your code, you can use this singleton or call sharedInstance. + + Returns nil if the CleverTap Account ID and Token are not provided in apps info.plist + + */ ++ (nullable instancetype)sharedInstance; + +/*! + @method + + @abstract + Initializes and returns a singleton instance of the API. + + @discussion + This method will set up a singleton instance of the CleverTap class, when you want to make calls to CleverTap + elsewhere in your code, you can use this singleton or call sharedInstanceWithCleverTapId. + + Returns nil if the CleverTap Account ID and Token are not provided in apps info.plist + + CleverTapUseCustomId key should be set to YES in apps info.plist to enable support for setting custom cleverTapID. + + */ ++ (nullable instancetype)sharedInstanceWithCleverTapID:(NSString * _Nonnull)cleverTapID; + +/*! + @method + + @abstract + Auto integrates CleverTap and initializes and returns a singleton instance of the API. + + @discussion + This method will auto integrate CleverTap to automatically handle device token registration and + push notification/url referrer tracking, and set up a singleton instance of the CleverTap class, + when you want to make calls to CleverTap elsewhere in your code, you can use this singleton or call sharedInstance. + + Returns nil if the CleverTap Account ID and Token are not provided in apps info.plist + + */ ++ (nullable instancetype)autoIntegrate; + +/*! + @method + + @abstract + Auto integrates with CleverTapID CleverTap and initializes and returns a singleton instance of the API. + + @discussion + This method will auto integrate CleverTap to automatically handle device token registration and + push notification/url referrer tracking, and set up a singleton instance of the CleverTap class, + when you want to make calls to CleverTap elsewhere in your code, you can use this singleton or call sharedInstance. + + Returns nil if the CleverTap Account ID and Token are not provided in apps info.plist + + CleverTapUseCustomId key should be set to YES in apps info.plist to enable support for setting custom cleverTapID. + + */ ++ (nullable instancetype)autoIntegrateWithCleverTapID:(NSString * _Nonnull)cleverTapID; + +/*! + @method + + @abstract + Returns the CleverTap instance corresponding to the config.accountId param. Use this for multiple instances of the SDK. + + @discussion + Create an instance of CleverTapInstanceConfig with your CleverTap Account Id, Token, Region(if any) and other optional config properties. + Passing that into this method will create (if necessary, and on all subsequent calls return) a singleton instance mapped to the config.accountId property. + + */ ++ (instancetype _Nonnull )instanceWithConfig:(CleverTapInstanceConfig * _Nonnull)config; + +/*! + @method + + @abstract + Returns the CleverTap instance corresponding to the config.accountId param. Use this for multiple instances of the SDK. + + @discussion + Create an instance of CleverTapInstanceConfig with your CleverTap Account Id, Token, Region(if any) and other optional config properties. + Passing that into this method will create (if necessary, and on all subsequent calls return) a singleton instance mapped to the config.accountId property. + + */ ++ (instancetype _Nonnull)instanceWithConfig:(CleverTapInstanceConfig * _Nonnull)config andCleverTapID:(NSString * _Nonnull)cleverTapID; + +/*! + @method + + @abstract + Returns the CleverTap instance corresponding to the CleverTap accountId param. + + @discussion + Returns the instance if such is already created, otherwise loads it from cache. + + @param accountId the CleverTap account id + */ ++ (CleverTap *_Nullable)getGlobalInstance:(NSString *_Nonnull)accountId; + +/*! + @method + + @abstract + Set the CleverTap AccountID and Token + + @discussion + Sets the CleverTap account credentials. Once thes default shared instance is intialized subsequent calls will be ignored. + Only has effect on the default shared instance. + + @param accountID the CleverTap account id + @param token the CleverTap account token + + */ ++ (void)changeCredentialsWithAccountID:(NSString * _Nonnull)accountID andToken:(NSString * _Nonnull)token __attribute__((deprecated("Deprecated as of version 3.1.7, use setCredentialsWithAccountID:andToken instead"))); + +/*! + @method + + @abstract + Set the CleverTap AccountID, Token and Region + + @discussion + Sets the CleverTap account credentials. Once the default shared instance is intialized subsequent calls will be ignored. + Only has effect on the default shared instance. + + @param accountID the CleverTap account id + @param token the CleverTap account token + @param region the dedicated CleverTap region + + */ ++ (void)changeCredentialsWithAccountID:(NSString * _Nonnull)accountID token:(NSString * _Nonnull)token region:(NSString * _Nonnull)region __attribute__((deprecated("Deprecated as of version 3.1.7, use setCredentialsWithAccountID:token:region instead"))); + +/*! + @method + + @abstract + Set the CleverTap AccountID and Token + + @discussion + Sets the CleverTap account credentials. Once the default shared instance is intialized subsequent calls will be ignored. + Only has effect on the default shared instance. + + @param accountID the CleverTap account id + @param token the CleverTap account token + + */ ++ (void)setCredentialsWithAccountID:(NSString * _Nonnull)accountID andToken:(NSString * _Nonnull)token; + +/*! + @method + + @abstract + Set the CleverTap AccountID, Token and Region + + @discussion + Sets the CleverTap account credentials. Once the default shared instance is intialized subsequent calls will be ignored. + Only has effect on the default shared instance. + + @param accountID the CleverTap account id + @param token the CleverTap account token + @param region the dedicated CleverTap region + + */ ++ (void)setCredentialsWithAccountID:(NSString * _Nonnull)accountID token:(NSString * _Nonnull)token region:(NSString * _Nonnull)region; + +/*! + @method + + @abstract + Sets the CleverTap AccountID, token and proxy domain URL + + @discussion + Sets the CleverTap account credentials and proxy domain URL. Once the default shared instance is intialized subsequent calls will be ignored. + Only has effect on the default shared instance. + + @param accountID the CleverTap account id + @param token the CleverTap account token + @param proxyDomain the domain of the proxy server eg: example.com or subdomain.example.com + */ ++ (void)setCredentialsWithAccountID:(NSString * _Nonnull)accountID token:(NSString * _Nonnull)token proxyDomain:(NSString * _Nonnull)proxyDomain; + +/*! + @method + + @abstract + Sets the CleverTap AccountID, token, proxy domain URL for APIs and spiky proxy domain URL for push impression APIs + + @discussion + Sets the CleverTap account credentials and proxy domain URL. Once the default shared instance is intialized subsequent calls will be ignored. + Only has effect on the default shared instance. + + @param accountID the CleverTap account id + @param token the CleverTap account token + @param proxyDomain the domain of the proxy server eg: example.com or subdomain.example.com + @param spikyProxyDomain the domain of the proxy server for push impression eg: example.com or subdomain.example.com + */ ++ (void)setCredentialsWithAccountID:(NSString * _Nonnull)accountID token:(NSString * _Nonnull)token proxyDomain:(NSString * _Nonnull)proxyDomain spikyProxyDomain:(NSString * _Nonnull)spikyProxyDomain; + +/*! + @method + + @abstract + notify the SDK instance of application launch + + */ +- (void)notifyApplicationLaunchedWithOptions:launchOptions; + +/* ------------------------------------------------------------------------------------------------------ + * User Profile/Action Events/Session API + */ + +/*! + @method + + @abstract + Enables the Profile/Events Read and Synchronization API + + @discussion + Call this method (typically once at app launch) to enable the Profile/Events Read and Synchronization API. + + */ ++ (void)enablePersonalization; + +/*! + @method + + @abstract + Disables the Profile/Events Read and Synchronization API + + */ ++ (void)disablePersonalization; + +/*! + @method + + @abstract + Store the users location on the default shared CleverTap instance. + + @discussion + Optional. If you're application is collection the user location you can pass it to CleverTap + for, among other things, more fine-grained geo-targeting and segmentation purposes. + + @param location CLLocationCoordiate2D + */ ++ (void)setLocation:(CLLocationCoordinate2D)location; + +/*! + @method + + @abstract + Store the users location on a particular CleverTap SDK instance. + + @discussion + Optional. If you're application is collection the user location you can pass it to CleverTap + for, among other things, more fine-grained geo-targeting and segmentation purposes. + + @param location CLLocationCoordiate2D + */ +- (void)setLocation:(CLLocationCoordinate2D)location; + +/*! + + @abstract + Posted when the CleverTap Geofences are updated. + + @discussion + Useful for accessing the CleverTap geofences + + */ +extern NSString * _Nonnull const CleverTapGeofencesDidUpdateNotification; + +/*! + @method + + @abstract + Creates a separate and distinct user profile identified by one or more of Identity or Email values, + and populated with the key-values included in the properties dictionary. + + @discussion + If your app is used by multiple users, you can use this method to assign them each a unique profile to track them separately. + + If instead you wish to assign multiple Identity and/or Email values to the same user profile, + use profilePush rather than this method. + + If none of Identity or Email is included in the properties dictionary, + all properties values will be associated with the current user profile. + + When initially installed on this device, your app is assigned an "anonymous" profile. + The first time you identify a user on this device (whether via onUserLogin or profilePush), + the "anonymous" history on the device will be associated with the newly identified user. + + Then, use this method to switch between subsequent separate identified users. + + Please note that switching from one identified user to another is a costly operation + in that the current session for the previous user is automatically closed + and data relating to the old user removed, and a new session is started + for the new user and data for that user refreshed via a network call to CleverTap. + In addition, any global frequency caps are reset as part of the switch. + + @param properties properties dictionary + + */ +- (void)onUserLogin:(NSDictionary *_Nonnull)properties; + +/*! + @method + + @abstract + Creates a separate and distinct user profile identified by one or more of Identity, Email, FBID or GPID values, + and populated with the key-values included in the properties dictionary. + + @discussion + If your app is used by multiple users, you can use this method to assign them each a unique profile to track them separately. + + If instead you wish to assign multiple Identity and/or Email values to the same user profile, + use profilePush rather than this method. + + If none of Identity or Email is included in the properties dictionary, + all properties values will be associated with the current user profile. + + When initially installed on this device, your app is assigned an "anonymous" profile. + The first time you identify a user on this device (whether via onUserLogin or profilePush), + the "anonymous" history on the device will be associated with the newly identified user. + + Then, use this method to switch between subsequent separate identified users. + + Please note that switching from one identified user to another is a costly operation + in that the current session for the previous user is automatically closed + and data relating to the old user removed, and a new session is started + for the new user and data for that user refreshed via a network call to CleverTap. + In addition, any global frequency caps are reset as part of the switch. + + CleverTapUseCustomId key should be set to YES in apps info.plist to enable support for setting custom cleverTapID. + + @param properties properties dictionary + @param cleverTapID the CleverTap id + + */ +- (void)onUserLogin:(NSDictionary *_Nonnull)properties withCleverTapID:(NSString * _Nonnull)cleverTapID; + +/*! + @method + + @abstract + Enables tracking opt out for the currently active user. + + @discussion + Use this method to opt the current user out of all event/profile tracking. + You must call this method separately for each active user profile (e.g. when switching user profiles using onUserLogin). + Once enabled, no events will be saved remotely or locally for the current user. To re-enable tracking call this method with enabled set to NO. + + @param enabled BOOL Whether tracking opt out should be enabled/disabled. + */ +- (void)setOptOut:(BOOL)enabled; + +/*! + @method + + @abstract + Disables/Enables sending events to the server. + + @discussion + If you want to stop recorded events from being sent to the server, use this method to set the SDK instance to offline. Once offline, events will be recorded and queued locally but will not be sent to the server until offline is disabled. Calling this method again with offline set to NO will allow events to be sent to server and the SDK instance will immediately attempt to send events that have been queued while offline. + + @param offline BOOL Whether sending events to servers should be disabled(TRUE)/enabled(FALSE). + */ +- (void)setOffline:(BOOL)offline; + +/*! + @method + + @abstract + Enables the reporting of device network-related information, including IP address. This reporting is disabled by default. + + @discussion + Use this method to enable device network-related information tracking, including IP address. + This reporting is disabled by default. To re-disable tracking call this method with enabled set to NO. + + @param enabled BOOL Whether device network info reporting should be enabled/disabled. + */ +- (void)enableDeviceNetworkInfoReporting:(BOOL)enabled; + +#pragma mark Profile API + +/*! + @method + + @abstract + Set properties on the current user profile. + + @discussion + Property keys must be NSString and values must be one of NSString, NSNumber, BOOL, NSDate. + + To add a multi-value (array) property value type please use profileAddValueToSet: forKey: + + @param properties properties dictionary + */ +- (void)profilePush:(NSDictionary *_Nonnull)properties; + +/*! + @method + + @abstract + Remove the property specified by key from the user profile. + + @param key key string + + */ +- (void)profileRemoveValueForKey:(NSString *_Nonnull)key; + +/*! + @method + + @abstract + Method for setting a multi-value user profile property. + + Any existing value(s) for the key will be overwritten. + + @discussion + Key must be NSString. + Values must be NSStrings. + Max 100 values, on reaching 100 cap, oldest value(s) will be removed. + + + @param key key string + @param values values NSArray + + */ +- (void)profileSetMultiValues:(NSArray *_Nonnull)values forKey:(NSString *_Nonnull)key; + +/*! + @method + + @abstract + Method for adding a unique value to a multi-value profile property (or creating if not already existing). + + If the key currently contains a scalar value, the key will be promoted to a multi-value property + with the current value cast to a string and the new value(s) added + + @discussion + Key must be NSString. + Values must be NSStrings. + Max 100 values, on reaching 100 cap, oldest value(s) will be removed. + + + @param key key string + @param value value string + */ +- (void)profileAddMultiValue:(NSString * _Nonnull)value forKey:(NSString *_Nonnull)key; + +/*! + @method + + @abstract + Method for adding multiple unique values to a multi-value profile property (or creating if not already existing). + + If the key currently contains a scalar value, the key will be promoted to a multi-value property + with the current value cast to a string and the new value(s) added. + + @discussion + Key must be NSString. + Values must be NSStrings. + Max 100 values, on reaching 100 cap, oldest value(s) will be removed. + + + @param key key string + @param values values NSArray + */ +- (void)profileAddMultiValues:(NSArray *_Nonnull)values forKey:(NSString *_Nonnull)key; + +/*! + @method + + @abstract + Method for removing a unique value from a multi-value profile property. + + If the key currently contains a scalar value, prior to performing the remove operation the key will be promoted to a multi-value property with the current value cast to a string. + + If the multi-value property is empty after the remove operation, the key will be removed. + + @param key key string + @param value value string + */ +- (void)profileRemoveMultiValue:(NSString *_Nonnull)value forKey:(NSString *_Nonnull)key; + +/*! + @method + + @abstract + Method for removing multiple unique values from a multi-value profile property. + + If the key currently contains a scalar value, prior to performing the remove operation the key will be promoted to a multi-value property with the current value cast to a string. + + If the multi-value property is empty after the remove operation, the key will be removed. + + @param key key string + @param values values NSArray + */ +- (void)profileRemoveMultiValues:(NSArray * _Nonnull)values forKey:(NSString * _Nonnull)key; + +/*! + @method + + @abstract + Method for incrementing a value for a single-value profile property (if it exists). + + @param key key string + @param value value number + */ +- (void)profileIncrementValueBy:(NSNumber *_Nonnull)value forKey:(NSString *_Nonnull)key; + +/*! + @method + + @abstract + Method for decrementing a value for a single-value profile property (if it exists). + + @param key key string + @param value value number + */ +- (void)profileDecrementValueBy:(NSNumber *_Nonnull)value forKey:(NSString *_Nonnull)key; + +/*! + @method + + @abstract + Get a user profile property. + + @discussion + Be sure to call enablePersonalization (typically once at app launch) prior to using this method. + If the property is not available or enablePersonalization has not been called, this call will return nil. + + @param propertyName property name + + @return + returns NSArray in the case of a multi-value property + + */ +- (id _Nullable )profileGet:(NSString *_Nonnull)propertyName; + +/*! + @method + + @abstract + Get the CleverTap ID of the User Profile. + + @discussion + The CleverTap ID is the unique identifier assigned to the User Profile by CleverTap. + + */ +- (NSString *_Nullable)profileGetCleverTapID; + +/*! + @method + + @abstract + Get CleverTap account Id. + + @discussion + The CleverTap account Id is the unique identifier assigned to the Account by CleverTap. + + */ +- (NSString *_Nullable)getAccountID; + +/*! + @method + + @abstract + Returns a unique CleverTap identifier suitable for use with install attribution providers. + + */ +- (NSString *_Nullable)profileGetCleverTapAttributionIdentifier; + +#pragma mark User Action Events API + +/*! + @method + + @abstract + Record an event. + + Reserved event names: "Stayed", "Notification Clicked", "Notification Viewed", "UTM Visited", "Notification Sent", "App Launched", "wzrk_d", are prohibited. + + Be sure to call enablePersonalization (typically once at app launch) prior to using this method. + + @param event event name + */ +- (void)recordEvent:(NSString *_Nonnull)event; + +/*! + @method + + @abstract + Records an event with properties. + + @discussion + Property keys must be NSString and values must be one of NSString, NSNumber, BOOL or NSDate. + Reserved event names: "Stayed", "Notification Clicked", "Notification Viewed", "UTM Visited", "Notification Sent", "App Launched", "wzrk_d", are prohibited. + Keys are limited to 32 characters. + Values are limited to 40 bytes. + Longer will be truncated. + Maximum number of event properties is 16. + + @param event event name + @param properties properties dictionary + */ +- (void)recordEvent:(NSString *_Nonnull)event withProps:(NSDictionary *_Nonnull)properties; + +/*! + @method + + @abstract + Records the special Charged event with properties. + + @discussion + Charged is a special event in CleverTap. It should be used to track transactions or purchases. + Recording the Charged event can help you analyze how your customers are using your app, or even to reach out to loyal or lost customers. + The transaction total or subscription charge should be recorded in an event property called “Amount” in the chargeDetails param. + Set your transaction ID or the receipt ID as the value of the "Charged ID" property of the chargeDetails param. + + You can send an array of purchased item dictionaries via the items param. + + Property keys must be NSString and values must be one of NSString, NSNumber, BOOL or NSDATE. + Keys are limited to 32 characters. + Values are limited to 40 bytes. + Longer will be truncated. + + @param chargeDetails charge transaction details dictionary + @param items charged items array + */ +- (void)recordChargedEventWithDetails:(NSDictionary *_Nonnull)chargeDetails andItems:(NSArray *_Nonnull)items; + +/*! + @method + + @abstract + Record an error event. + + @param message error message + @param code int error code + */ + +- (void)recordErrorWithMessage:(NSString *_Nonnull)message andErrorCode:(int)code; + +/*! + @method + + @abstract + Record a screen view. + + @param screenName the screen name + */ +- (void)recordScreenView:(NSString *_Nonnull)screenName; + +/*! + @method + + @abstract + Record Notification Viewed for Push Notifications. + + @param notificationData notificationData id + */ +- (void)recordNotificationViewedEventWithData:(id _Nonnull)notificationData; + +/*! + @method + + @abstract + Record Notification Clicked for Push Notifications. + + @param notificationData notificationData id + */ +- (void)recordNotificationClickedEventWithData:(id _Nonnull)notificationData; + +/*! + @method + + @abstract + Get the time of the first recording of the event. + + Be sure to call enablePersonalization prior to invoking this method. + + @param event event name + */ +- (NSTimeInterval)eventGetFirstTime:(NSString *_Nonnull)event; + +/*! + @method + + @abstract + Get the time of the last recording of the event. + Be sure to call enablePersonalization prior to invoking this method. + + @param event event name + */ + +- (NSTimeInterval)eventGetLastTime:(NSString *_Nonnull)event; + +/*! + @method + + @abstract + Get the number of occurrences of the event. + Be sure to call enablePersonalization prior to invoking this method. + + @param event event name + */ +- (int)eventGetOccurrences:(NSString *_Nonnull)event; + +/*! + @method + + @abstract + Get the user's event history. + + @discussion + Returns a dictionary of CleverTapEventDetail objects (eventName, firstTime, lastTime, occurrences), keyed by eventName. + + Be sure to call enablePersonalization (typically once at app launch) prior to using this method. + + */ +- (NSDictionary *_Nullable)userGetEventHistory; + +/*! + @method + + @abstract + Get the details for the event. + + @discussion + Returns a CleverTapEventDetail object (eventName, firstTime, lastTime, occurrences) + + Be sure to call enablePersonalization (typically once at app launch) prior to using this method. + + @param event event name + */ +- (CleverTapEventDetail *_Nullable)eventGetDetail:(NSString *_Nullable)event; + + +#pragma mark Session API + +/*! + @method + + @abstract + Get the elapsed time of the current user session. + Be sure to call enablePersonalization (typically once at app launch) prior to using this method. + */ +- (NSTimeInterval)sessionGetTimeElapsed; + +/*! + @method + + @abstract + Get the utm referrer details for this user session. + + @discussion + Returns a CleverTapUTMDetail object (source, medium and campaign). + + Be sure to call enablePersonalization (typically once at app launch) prior to using this method. + + */ +- (CleverTapUTMDetail *_Nullable)sessionGetUTMDetails; + +/*! + @method + + @abstract + Get the total number of visits by this user. + + Be sure to call enablePersonalization (typically once at app launch) prior to using this method. + */ +- (int)userGetTotalVisits; + +/*! + @method + + @abstract + Get the total screens viewed by this user. + Be sure to call enablePersonalization (typically once at app launch) prior to using this method. + + */ +- (int)userGetScreenCount; + +/*! + @method + + @abstract + Get the last prior visit time for this user. + Be sure to call enablePersonalization (typically once at app launch) prior to using this method. + + */ +- (NSTimeInterval)userGetPreviousVisitTime; + +/* ------------------------------------------------------------------------------------------------------ + * Synchronization + */ + + +/*! + @abstract + Posted when the CleverTap User Profile/Event History has changed in response to a synchronization call to the CleverTap servers. + + @discussion + CleverTap provides a flexible notification system for informing applications when changes have occured + to the CleverTap User Profile/Event History in response to synchronization activities. + + CleverTap leverages the NSNotification broadcast mechanism to notify your application when changes occur. + Your application should observe CleverTapProfileDidChangeNotification in order to receive notifications. + + Be sure to call enablePersonalization (typically once at app launch) to enable synchronization. + + Change data will be returned in the userInfo property of the NSNotification, and is of the form: + { + "profile":{"":{"oldValue":, "newValue":}, ...}, + "events:{"": + {"count": + {"oldValue":(int), "newValue":}, + "firstTime": + {"oldValue":(double), "newValue":}, + "lastTime": + {"oldValue":(double), "newValue":}, + }, ... + } + } + + */ +extern NSString * _Nonnull const CleverTapProfileDidChangeNotification; + +/*! + + @abstract + Posted when the CleverTap User Profile is initialized. + + @discussion + Useful for accessing the CleverTap ID of the User Profile. + + The CleverTap ID is the unique identifier assigned to the User Profile by CleverTap. + + The CleverTap ID and cooresponding CleverTapAccountID will be returned in the userInfo property of the NSNotifcation in the form: {@"CleverTapID":CleverTapID, @"CleverTapAccountID":CleverTapAccountID}. + + */ +extern NSString * _Nonnull const CleverTapProfileDidInitializeNotification; + + +/*! + + @method + + @abstract + The `CleverTapSyncDelegate` protocol provides additional/alternative methods for notifying + your application (the adopting delegate) about synchronization-related changes to the User Profile/Event History. + + @see CleverTapSyncDelegate.h + + @discussion + This sets the CleverTapSyncDelegate. + + Be sure to call enablePersonalization (typically once at app launch) to enable synchronization. + + @param delegate an object conforming to the CleverTapSyncDelegate Protocol + */ +- (void)setSyncDelegate:(id _Nullable)delegate; + + +/*! + + @method + + @abstract + The `CleverTapPushNotificationDelegate` protocol provides methods for notifying + your application (the adopting delegate) about push notifications. + + @see CleverTapPushNotificationDelegate.h + + @discussion + This sets the CleverTapPushNotificationDelegate. + + @param delegate an object conforming to the CleverTapPushNotificationDelegate Protocol + */ + +- (void)setPushNotificationDelegate:(id _Nullable)delegate; + +#if !CLEVERTAP_NO_INAPP_SUPPORT +/*! + + @method + + @abstract + The `CleverTapInAppNotificationDelegate` protocol provides methods for notifying + your application (the adopting delegate) about in-app notifications. + + @see CleverTapInAppNotificationDelegate.h + + @discussion + This sets the CleverTapInAppNotificationDelegate. + + @param delegate an object conforming to the CleverTapInAppNotificationDelegate Protocol + */ +- (void)setInAppNotificationDelegate:(id _Nullable)delegate; + +/*! + @method + + @abstract + Forces inapps to update from the server. + + @discussion + Forces inapps to update from the server. + + @param block a callback with a boolean flag whether the update was successful. + */ +- (void)fetchInApps:(CleverTapFetchInAppsBlock _Nullable)block; + +#endif + +/*! + + @method + + @abstract + The `CleverTapURLDelegate` protocol provides a method for the confirming class to implement custom handling for URLs in case of in-app notification CTAs, push notifications and App inbox. + + @see CleverTapURLDelegate.h + + @discussion + This sets the CleverTapURLDelegate. + + @param delegate an object conforming to the CleverTapURLDelegate Protocol + */ +- (void)setUrlDelegate:(id _Nullable)delegate; + +/* ------------------------------------------------------------------------------------------------------ + * Notifications + */ + +/*! + @method + + @abstract + Register the device to receive push notifications. + + @discussion + This will associate the device token with the current user to allow push notifications to the user. + + @param pushToken device token as returned from application:didRegisterForRemoteNotificationsWithDeviceToken: + */ +- (void)setPushToken:(NSData *_Nonnull)pushToken; + +/*! + @method + + @abstract + Convenience method to register the device push token as as string. + + @discussion + This will associate the device token with the current user to allow push notifications to the user. + + @param pushTokenString device token as returned from application:didRegisterForRemoteNotificationsWithDeviceToken: converted to an NSString. + */ +- (void)setPushTokenAsString:(NSString *_Nonnull)pushTokenString; + +/*! + @method + + @abstract + Track and process a push notification based on its payload. + + @discussion + By calling this method, CleverTap will automatically track user notification interaction for you. + If the push notification contains a deep link, CleverTap will handle the call to application:openUrl: with the deep link, as long as the application is not in the foreground. + + @param data notification payload + */ +- (void)handleNotificationWithData:(id _Nonnull )data; + +/*! + @method + + @abstract + Track and process a push notification based on its payload. + + @discussion + By calling this method, CleverTap will automatically track user notification interaction for you. + If the push notification contains a deep link, CleverTap will handle the call to application:openUrl: with the deep link, as long as the application is not in the foreground or you pass TRUE in the openInForeground param. + + @param data notification payload + @param openInForeground Boolean as to whether the SDK should open any deep link attached to the notification while the application is in the foreground. + */ +- (void)handleNotificationWithData:(id _Nonnull )data openDeepLinksInForeground:(BOOL)openInForeground; + +/*! + @method + + @abstract + Convenience method when using multiple SDK instances to track and process a push notification based on its payload. + + @discussion + By calling this method, CleverTap will automatically track user notification interaction for you; the specific instance of the CleverTap SDK to process the call is determined based on the CleverTap AccountID included in the notification payload and, if not present, will default to the shared instance. + + If the push notification contains a deep link, CleverTap will handle the call to application:openUrl: with the deep link, as long as the application is not in the foreground or you pass TRUE in the openInForeground param. + + @param notification notification payload + @param openInForeground Boolean as to whether the SDK should open any deep link attached to the notification while the application is in the foreground. + */ ++ (void)handlePushNotification:(NSDictionary*_Nonnull)notification openDeepLinksInForeground:(BOOL)openInForeground; + +/*! + @method + + @abstract + Determine whether a notification originated from CleverTap + + @param payload notification payload + */ +- (BOOL)isCleverTapNotification:(NSDictionary *_Nonnull)payload; + +#if !CLEVERTAP_NO_INAPP_SUPPORT +/*! + @method + + @abstract + Manually initiate the display of any pending in app notifications. + + */ +- (void)showInAppNotificationIfAny __attribute__((deprecated("Use resumeInAppNotifications to show pending InApp notifications. This will be removed soon."))); + +#endif + +/* ------------------------------------------------------------------------------------------------------ + * Referrer tracking + */ + +/*! + @method + + @abstract + Track incoming referrers on a specific SDK instance. + + @discussion + By calling this method, the specific CleverTap instance will automatically track incoming referrer utm details. + When implementing multiple SDK instances, consider using +handleOpenURL: instead. + + + @param url the incoming NSURL + @param sourceApplication the source application + */ +- (void)handleOpenURL:(NSURL *_Nonnull)url sourceApplication:(NSString *_Nullable)sourceApplication; + +/*! + @method + + @abstract + Convenience method to track incoming referrers when using multile SDK instances. + + @discussion + By calling this method, if the url contains a query parameter with a CleverTap AccountID, the SDK will pass the URL to that specific instance for processing. + If no CleverTap AccountID param is present, the SDK will default to passing the URL to the shared instance. + + @param url the incoming NSURL + */ ++ (void)handleOpenURL:(NSURL*_Nonnull)url; + + +/*! + @method + + @abstract + Manually track incoming referrers. + + @discussion + Call this to manually track the utm details for an incoming install referrer. + + + @param source the utm source + @param medium the utm medium + @param campaign the utm campaign + */ +- (void)pushInstallReferrerSource:(NSString *_Nullable)source + medium:(NSString *_Nullable)medium + campaign:(NSString *_Nullable)campaign; + +/* ------------------------------------------------------------------------------------------------------ + * Admin + */ + +/*! + @method + + @abstract + Set the debug logging level + + @discussion + Set using CleverTapLogLevel enum values (or the corresponding int values). + SDK logging defaults to CleverTapLogInfo, which prints minimal SDK integration-related messages + + CleverTapLogOff - turns off all SDK logging. + CleverTapLogInfo - default, prints minimal SDK integration related messages. + CleverTapLogDebug - enables verbose debug logging. + In Swift, use the respective rawValues: CleverTapLogLevel.off.rawValue, CleverTapLogLevel.info.rawValue, + CleverTapLogLevel.debug.rawValue. + + @param level the level to set + */ ++ (void)setDebugLevel:(int)level; + +/*! + @method + + @abstract + Get the debug logging level + + @discussion + Returns the currently set debug logging level. + */ ++ (CleverTapLogLevel)getDebugLevel; + +/*! + @method + + @abstract + Set the Library name for Auxiliary SDKs + + @discussion + Call this to method to set library name in the Auxiliary SDK + */ +- (void)setLibrary:(NSString * _Nonnull)name; + +/*! + @method + + @abstract + Set the Library name and version for Auxiliary SDKs + + @discussion + Call this to method to set library name and version in the Auxiliary SDK + */ +- (void)setCustomSdkVersion:(NSString * _Nonnull)name version:(int)version; + +/*! + @method + + @abstract + Updates a user locale after session start. + + @discussion + Call this to method to set locale + */ +- (void)setLocale:(NSLocale * _Nonnull)locale; + +/*! + @method + + @abstract + Store the users location for geofences on the default shared CleverTap instance. + + @discussion + Optional. If you're application is collection the user location you can pass it to CleverTap + for, among other things, more fine-grained geo-targeting and segmentation purposes. + + @param location CLLocationCoordiate2D + */ +- (void)setLocationForGeofences:(CLLocationCoordinate2D)location withPluginVersion:(NSString *_Nullable)version; + +/*! + @method + + @abstract + Record the error for geofences + + @param error NSError + */ +- (void)didFailToRegisterForGeofencesWithError:(NSError *_Nullable)error; + +/*! + @method + + @abstract + Record Geofence Entered Event. + + @param geofenceDetails details of the Geofence + */ +- (void)recordGeofenceEnteredEvent:(NSDictionary *_Nonnull)geofenceDetails; + +/*! + @method + + @abstract + Record Geofence Exited Event. + + @param geofenceDetails details of the Geofence + */ +- (void)recordGeofenceExitedEvent:(NSDictionary *_Nonnull)geofenceDetails; + +#if defined(CLEVERTAP_HOST_WATCHOS) +/** HostWatchOS + */ +- (BOOL)handleMessage:(NSDictionary *_Nonnull)message forWatchSession:(WCSession *_Nonnull)session API_AVAILABLE(ios(9.0)); +#endif + +/*! + @method + + @abstract + Record Signed Call System Events. + + @param calldetails call details dictionary + */ +- (void)recordSignedCallEvent:(int)eventRawValue forCallDetails:(NSDictionary *_Nonnull)calldetails; + +/*! + @method + + @abstract + The `CTDomainDelegate` protocol provides methods for notifying your application (the adopting delegate) about domain/ region changes. + + @see CleverTap+DCDomain.h + + @discussion + This sets the CTDomainDelegate + + @param delegate an object conforming to the CTDomainDelegate Protocol + */ +- (void)setDomainDelegate:(id _Nullable)delegate; + +/*! + @method + + @abstract + Get region/ domain string value + */ +- (NSString *_Nullable)getDomainString; + +/*! + @method + + @abstract + Checks if a custom CleverTapID is valid + */ ++ (BOOL)isValidCleverTapId:(NSString *_Nullable)cleverTapID; + +#pragma mark Product Experiences - Vars + +/*! + @method + + @abstract + Adds a callback to be invoked when variables are initialised with server values. Will be called each time new values are fetched. + + @param block a callback to add. + */ +- (void)onVariablesChanged:(CleverTapVariablesChangedBlock _Nonnull )block; + +/*! + @method + + @abstract + Adds a callback to be invoked only once when variables are initialised with server values. + + @param block a callback to add. + */ +- (void)onceVariablesChanged:(CleverTapVariablesChangedBlock _Nonnull )block; + +/*! + @method + + @abstract + Uploads variables to the server. Requires Development/Debug build/configuration. + */ +- (void)syncVariables; + +/*! + @method + + @abstract + Uploads variables to the server. + + @param isProduction Provide `true` if variables must be sync in Productuon build/configuration. + */ +- (void)syncVariables:(BOOL)isProduction; + +/*! + @method + + @abstract + Forces variables to update from the server. + + @discussion + Forces variables to update from the server. If variables have changed, the appropriate callbacks will fire. Use sparingly as if the app is updated, you'll have to deal with potentially inconsistent state or user experience. + The provided callback has a boolean flag whether the update was successful or not. The callback fires regardless + of whether the variables have changed. + + @param block a callback with a boolean flag whether the update was successful. + */ +- (void)fetchVariables:(CleverTapFetchVariablesBlock _Nullable)block; + +/*! + @method + + @abstract + Get an instance of a variable or a group. + + @param name The name of the variable or the group. + + @return + The instance of the variable or the group, or nil if not created yet. + + */ +- (CTVar * _Nullable)getVariable:(NSString * _Nonnull)name; + +/*! + @method + + @abstract + Get a copy of the current value of a variable or a group. + + @param name The name of the variable or the group. + */ +- (id _Nullable)getVariableValue:(NSString * _Nonnull)name; + +/*! + @method + + @abstract + Adds a callback to be invoked when no more file downloads are pending (either when no files needed to be downloaded or all downloads have been completed). + + @param block a callback to add. + */ +- (void)onVariablesChangedAndNoDownloadsPending:(CleverTapVariablesChangedBlock _Nonnull )block; + +/*! + @method + + @abstract + Adds a callback to be invoked only once when no more file downloads are pending (either when no files needed to be downloaded or all downloads have been completed). + + @param block a callback to add. + */ +- (void)onceVariablesChangedAndNoDownloadsPending:(CleverTapVariablesChangedBlock _Nonnull )block; + +#if !CLEVERTAP_NO_INAPP_SUPPORT +#pragma mark Custom Templates and Functions + +/*! + Register ``CTCustomTemplate`` templates through a ``CTTemplateProducer``. + See ``CTCustomTemplateBuilder``. Templates must be registered before the ``CleverTap`` instance, that would use + them, is created. + + Typically, this method is called from `UIApplicationDelegate/application:didFinishLaunchingWithOptions:`. + If your application uses multiple ``CleverTap`` instances, use the ``CleverTapInstanceConfig`` within the + ``CTTemplateProducer/defineTemplates:`` method to differentiate which templates should be registered to which instances. + + This method can be called multiple times with different ``CTTemplateProducer`` producers, however all of the + produced templates must have unique names. + + @param producer A ``CTTemplateProducer`` to register and define templates with. + */ ++ (void)registerCustomInAppTemplates:(id _Nonnull)producer; + +/*! + @method + + @abstract + Uploads Custom in-app templates and app functions to the server. Requires Development/Debug build/configuration. + */ +- (void)syncCustomTemplates; + +/*! + @method + + @abstract + Uploads Custom in-app templates and app functions to the server. + + @param isProduction Provide `true` if Custom in-app templates and app functions must be sync in Productuon build/configuration. + */ +- (void)syncCustomTemplates:(BOOL)isProduction; + +/*! + @method + + @abstract + Retrieves the active context for a template that is currently displaying. If the provided template + name is not of a currently active template, this method returns nil. + + @param templateName The template name to get the active context for. + + @return + A CTTemplateContext object representing the active context for the given template name, or nil if no active context exists. + + */ +- (CTTemplateContext * _Nullable)activeContextForTemplate:(NSString * _Nonnull)templateName; + +#endif + +@end + +#pragma clang diagnostic pop diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapBuildInfo.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapBuildInfo.h new file mode 100644 index 000000000..2c0566459 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapBuildInfo.h @@ -0,0 +1 @@ +#define WR_SDK_REVISION @"70002" diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapEventDetail.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapEventDetail.h new file mode 100644 index 000000000..e211c7438 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapEventDetail.h @@ -0,0 +1,10 @@ +#import + +@interface CleverTapEventDetail : NSObject + +@property (nonatomic, strong) NSString *eventName; +@property (nonatomic) NSTimeInterval firstTime; +@property (nonatomic) NSTimeInterval lastTime; +@property (nonatomic) NSUInteger count; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapInAppNotificationDelegate.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapInAppNotificationDelegate.h new file mode 100644 index 000000000..49b3158ad --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapInAppNotificationDelegate.h @@ -0,0 +1,41 @@ +#import + +@protocol CleverTapInAppNotificationDelegate + +/*! + @discussion + This is called when an in-app notification is about to be rendered. + If you'd like this notification to not be rendered, then return false. + + Returning true will cause this notification to be rendered immediately. + + @param extras The extra key/value pairs set in the CleverTap dashboard for this notification + */ +@optional +- (BOOL)shouldShowInAppNotificationWithExtras:(NSDictionary *)extras; + +/*! + @discussion + When an in-app notification is dismissed (either by the close button, or a call to action), + this method will be called. + + @param extras The extra key/value pairs set in the CleverTap dashboard for this notification + @param actionExtras The extra key/value pairs from the notification + (for example, a rating widget might have some properties which can be read here). + + Note: This can be nil if the notification was dismissed without taking any action + */ +@optional +- (void)inAppNotificationDismissedWithExtras:(NSDictionary *)extras andActionExtras:(NSDictionary *)actionExtras; + +/*! + @discussion + When an in-app notification is dismissed by a call to action with custom extras, + this method will be called. + + @param extras The extra key/value pairs set in the CleverTap dashboard for this notification + */ +@optional +- (void)inAppNotificationButtonTappedWithCustomExtras:(NSDictionary *)customExtras; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapInstanceConfig.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapInstanceConfig.h new file mode 100644 index 000000000..c351f4443 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapInstanceConfig.h @@ -0,0 +1,62 @@ +#import +#import "CleverTap.h" +@class CTAES; + +@interface CleverTapInstanceConfig : NSObject + +@property (nonatomic, strong, readonly, nonnull) NSString *accountId; +@property (nonatomic, strong, readonly, nonnull) NSString *accountToken; +@property (nonatomic, strong, readonly, nullable) NSString *accountRegion; +@property (nonatomic, strong, readonly, nullable) NSString *proxyDomain; +@property (nonatomic, strong, readonly, nullable) NSString *spikyProxyDomain; + +@property (nonatomic, assign) BOOL analyticsOnly; +@property (nonatomic, assign) BOOL disableAppLaunchedEvent; +@property (nonatomic, assign) BOOL enablePersonalization; +@property (nonatomic, assign) BOOL useCustomCleverTapId; +@property (nonatomic, assign) BOOL disableIDFV; +@property (nonatomic, assign) BOOL enableFileProtection; +@property (nonatomic, strong, nullable) NSString *handshakeDomain; + +@property (nonatomic, assign) CleverTapLogLevel logLevel; +@property (nonatomic, strong, nullable) NSArray *identityKeys; +@property (nonatomic, assign) CleverTapEncryptionLevel encryptionLevel; +@property (nonatomic, strong, nullable) CTAES *aesCrypt; + + +- (instancetype _Nonnull) init __unavailable; + +- (instancetype _Nonnull)initWithAccountId:(NSString* _Nonnull)accountId + accountToken:(NSString* _Nonnull)accountToken; + +- (instancetype _Nonnull)initWithAccountId:(NSString* _Nonnull)accountId + accountToken:(NSString* _Nonnull)accountToken + accountRegion:(NSString* _Nonnull)accountRegion; + +- (instancetype _Nonnull)initWithAccountId:(NSString* _Nonnull)accountId + accountToken:(NSString* _Nonnull)accountToken + proxyDomain:(NSString* _Nonnull)proxyDomain; + +- (instancetype _Nonnull)initWithAccountId:(NSString* _Nonnull)accountId + accountToken:(NSString* _Nonnull)accountToken + proxyDomain:(NSString* _Nonnull)proxyDomain + spikyProxyDomain:(NSString* _Nonnull)spikyProxyDomain; + +/*! + @method + + @abstract + Set the encryption level + + @discussion + Set the encryption level using CleverTapEncryptionLevel enum values (or the corresponding int values). + + CleverTapEncryptionNone - turns off all encryption. + CleverTapEncryptionMedium - turns encryption on for PII data + + @param encryptionLevel the encryption level to set + */ +- (void)setEncryptionLevel:(CleverTapEncryptionLevel)encryptionLevel; +- (void)setEnableFileProtection:(BOOL)enableFileProtection; +- (void)setHandshakeDomain:(NSString * _Nonnull)handshakeDomain; +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapJSInterface.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapJSInterface.h new file mode 100644 index 000000000..8211d0279 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapJSInterface.h @@ -0,0 +1,18 @@ +#import +#if !(TARGET_OS_TV) +#import + +@class CleverTapInstanceConfig; +@class CTInAppDisplayViewController; +/*! + @abstract + The `CleverTapJSInterface` class is a bridge to communicate between Webviews and CleverTap SDK. Calls to forward record events or set user properties fired within a Webview to CleverTap SDK. + */ + +@interface CleverTapJSInterface : NSObject + +- (instancetype)initWithConfig:(CleverTapInstanceConfig *)config; + +@end +#endif + diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapPushNotificationDelegate.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapPushNotificationDelegate.h new file mode 100644 index 000000000..dbe2efe1b --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapPushNotificationDelegate.h @@ -0,0 +1,14 @@ +#import + +@protocol CleverTapPushNotificationDelegate + +/*! +@discussion +When a push notification is clicked with custom extras, this method will be called. + +@param extras The extra key/value pairs set in the CleverTap dashboard for this notification +*/ +@optional +- (void)pushNotificationTappedWithCustomExtras:(NSDictionary *)customExtras; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapSDK-Swift.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapSDK-Swift.h new file mode 100644 index 000000000..b53b258ad --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapSDK-Swift.h @@ -0,0 +1,642 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Generated by Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) +#ifndef CLEVERTAPSDK_SWIFT_H +#define CLEVERTAPSDK_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +# include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +# ifndef __ptrauth_swift_value_witness_function_pointer +# define __ptrauth_swift_value_witness_function_pointer(x) +# endif +# ifndef __ptrauth_swift_class_method_pointer +# define __ptrauth_swift_class_method_pointer(x) +# endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif +#if !defined(SWIFT_RUNTIME_NAME) +# if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +# else +# define SWIFT_RUNTIME_NAME(X) +# endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +# if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +# else +# define SWIFT_COMPILE_NAME(X) +# endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +# if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +# else +# define SWIFT_METHOD_FAMILY(X) +# endif +#endif +#if !defined(SWIFT_NOESCAPE) +# if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +# else +# define SWIFT_NOESCAPE +# endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +# if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +# else +# define SWIFT_RELEASES_ARGUMENT +# endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +# if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +# else +# define SWIFT_WARN_UNUSED_RESULT +# endif +#endif +#if !defined(SWIFT_NORETURN) +# if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +# else +# define SWIFT_NORETURN +# endif +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if !defined(SWIFT_DEPRECATED_OBJC) +# if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +# else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +# endif +#endif +#if defined(__OBJC__) +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if !defined(SWIFT_CALL) +# define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if !defined(SWIFT_INDIRECT_RESULT) +# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +# define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +# define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +# define SWIFT_NOEXCEPT noexcept +#else +# define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +# if __has_attribute(always_inline) +# if __has_attribute(nodebug) +# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug)) +# else +# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +# endif +# else +# define SWIFT_C_INLINE_THUNK inline +# endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +# define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import ObjectiveC; +#endif + +#endif +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CleverTapSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +SWIFT_CLASS("_TtC12CleverTapSDK12CTNewFeature") +@interface CTNewFeature : NSObject +- (void)newFeature; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +#endif +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) +#ifndef CLEVERTAPSDK_SWIFT_H +#define CLEVERTAPSDK_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +# include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +# ifndef __ptrauth_swift_value_witness_function_pointer +# define __ptrauth_swift_value_witness_function_pointer(x) +# endif +# ifndef __ptrauth_swift_class_method_pointer +# define __ptrauth_swift_class_method_pointer(x) +# endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif +#if !defined(SWIFT_RUNTIME_NAME) +# if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +# else +# define SWIFT_RUNTIME_NAME(X) +# endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +# if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +# else +# define SWIFT_COMPILE_NAME(X) +# endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +# if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +# else +# define SWIFT_METHOD_FAMILY(X) +# endif +#endif +#if !defined(SWIFT_NOESCAPE) +# if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +# else +# define SWIFT_NOESCAPE +# endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +# if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +# else +# define SWIFT_RELEASES_ARGUMENT +# endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +# if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +# else +# define SWIFT_WARN_UNUSED_RESULT +# endif +#endif +#if !defined(SWIFT_NORETURN) +# if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +# else +# define SWIFT_NORETURN +# endif +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if !defined(SWIFT_DEPRECATED_OBJC) +# if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +# else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +# endif +#endif +#if defined(__OBJC__) +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if !defined(SWIFT_CALL) +# define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if !defined(SWIFT_INDIRECT_RESULT) +# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +# define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +# define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +# define SWIFT_NOEXCEPT noexcept +#else +# define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +# if __has_attribute(always_inline) +# if __has_attribute(nodebug) +# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug)) +# else +# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +# endif +# else +# define SWIFT_C_INLINE_THUNK inline +# endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +# define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import ObjectiveC; +#endif + +#endif +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CleverTapSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +SWIFT_CLASS("_TtC12CleverTapSDK12CTNewFeature") +@interface CTNewFeature : NSObject +- (void)newFeature; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +#endif +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#else +#error unsupported Swift architecture +#endif diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapSDK.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapSDK.h new file mode 100644 index 000000000..7f1703399 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapSDK.h @@ -0,0 +1,65 @@ +// +// CleverTapSDK.h +// CleverTapSDK +// +// Created by Akash Malhotra on 27/02/25. +// Copyright © 2025 CleverTap. All rights reserved. +// + +#import + +//! Project version number for CleverTapSDK. +FOUNDATION_EXPORT double CleverTapSDKVersionNumber; + +//! Project version string for CleverTapSDK. +FOUNDATION_EXPORT const unsigned char CleverTapSDKVersionString[]; + +#if TARGET_OS_IOS +#import "CleverTap.h" +#import "CleverTap+Inbox.h" +#import "CleverTap+FeatureFlags.h" +#import "CleverTap+ProductConfig.h" +#import "CleverTap+DisplayUnit.h" +#import "CleverTap+SSLPinning.h" +#import "CleverTapBuildInfo.h" +#import "CleverTapEventDetail.h" +#import "CleverTapInAppNotificationDelegate.h" +#import "CleverTapPushNotificationDelegate.h" +#import "CleverTapURLDelegate.h" +#import "CleverTapSyncDelegate.h" +#import "CleverTapUTMDetail.h" +#import "CleverTapTrackedViewController.h" +#import "CleverTapInstanceConfig.h" +#import "CleverTapJSInterface.h" +#import "CleverTap+InAppNotifications.h" +#import "CleverTap+SCDomain.h" +#import "CTLocalInApp.h" +#import "CleverTap+CTVar.h" +#import "CTVar.h" +#import "LeanplumCT.h" +#import "CTInAppTemplateBuilder.h" +#import "CTAppFunctionBuilder.h" +#import "CTTemplatePresenter.h" +#import "CTTemplateProducer.h" +#import "CTCustomTemplateBuilder.h" +#import "CTCustomTemplate.h" +#import "CTTemplateContext.h" +#import "CTCustomTemplatesManager.h" +#import "CleverTap+PushPermission.h" +#import "CTJsonTemplateProducer.h" + +#elif TARGET_OS_TV +#import "CleverTap.h" +#import "CleverTap+SSLPinning.h" +#import "CleverTap+FeatureFlags.h" +#import "CleverTap+ProductConfig.h" +#import "CleverTapBuildInfo.h" +#import "CleverTapEventDetail.h" +#import "CleverTapSyncDelegate.h" +#import "CleverTapUTMDetail.h" +#import "CleverTapTrackedViewController.h" +#import "CleverTapInstanceConfig.h" +#import "CTVar.h" +#import "CleverTap+CTVar.h" +#import "LeanplumCT.h" +#endif diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapSyncDelegate.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapSyncDelegate.h new file mode 100644 index 000000000..73e55f39c --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapSyncDelegate.h @@ -0,0 +1,58 @@ +#import + +@protocol CleverTapSyncDelegate + +/*! + + @abstract + The `CleverTapSyncDelegate` protocol provides additional/alternative methods for + notifying your application (the adopting delegate) when the User Profile is initialized. + + @discussion + This method will be called when the User Profile is initialized with the CleverTap ID of the User Profile. + The CleverTap ID is the unique identifier assigned to the User Profile by CleverTap. + */ +@optional +- (void)profileDidInitialize:(NSString*)CleverTapID; + +/*! + + @abstract + The `CleverTapSyncDelegate` protocol provides additional/alternative methods for + notifying your application (the adopting delegate) when the User Profile is initialized. + + @discussion + This method will be called when the User Profile is initialized with the CleverTap ID of the User Profile. + The CleverTap ID is the unique identifier assigned to the User Profile by CleverTap. + */ +@optional +- (void)profileDidInitialize:(NSString*)CleverTapID forAccountId:(NSString*)accountId; + + +/*! + + @abstract + The `CleverTapSyncDelegate` protocol provides additional/alternative methods for + notifying your application (the adopting delegate) about synchronization-related changes to the User Profile/Event History. + + @discussion + the updates argument represents the changed data and is of the form: + { + "profile":{"":{"oldValue":, "newValue":}, ...}, + "events:{"": + {"count": + {"oldValue":(int), "newValue":}, + "firstTime": + {"oldValue":(double), "newValue":}, + "lastTime": + {"oldValue":(double), "newValue":}, + }, ... + } + } + + */ + +@optional +- (void)profileDataUpdated:(NSDictionary*)updates; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapTrackedViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapTrackedViewController.h new file mode 100644 index 000000000..60a2453fa --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapTrackedViewController.h @@ -0,0 +1,7 @@ +#import + +@interface CleverTapTrackedViewController : UIViewController + +@property(readwrite, nonatomic, copy) NSString *screenName; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapURLDelegate.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapURLDelegate.h new file mode 100644 index 000000000..af59f7b5a --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapURLDelegate.h @@ -0,0 +1,25 @@ +#import + +@protocol CleverTapURLDelegate + +/*! + @method + + @abstract + Implement custom handling of URLs. + + @discussion + Use this method if you would like to implement custom handling for URLs in case of in-app notification CTAs, push notifications and App inbox. + + Use the following enum values of type CleverTapChannel to optionally implement URL handling based on the corresponding CleverTap channel. + + CleverTapPushNotification - Remote Notifications, + CleverTapAppInbox - App Inbox, + CleverTapInAppNotification - In-App Notification + + @param url the NSURL object + @param channel the CleverTapChannel enum value + */ +- (BOOL)shouldHandleCleverTapURL:(NSURL *_Nullable )url forChannel:(CleverTapChannel)channel; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapUTMDetail.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapUTMDetail.h new file mode 100644 index 000000000..181a51e5e --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/CleverTapUTMDetail.h @@ -0,0 +1,7 @@ +#import + +@interface CleverTapUTMDetail : NSObject +@property(nonatomic, strong) NSString *source; +@property(nonatomic, strong) NSString *medium; +@property(nonatomic, strong) NSString *campaign; +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/LeanplumCT.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/LeanplumCT.h new file mode 100644 index 000000000..bc82a6590 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Headers/LeanplumCT.h @@ -0,0 +1,160 @@ +// +// LeanplumCT.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 22.05.23. +// Copyright © 2023 CleverTap. All rights reserved. +// + +#import +#import "CleverTap.h" + +NS_ASSUME_NONNULL_BEGIN + +FOUNDATION_EXPORT NSString *const LP_PURCHASE_EVENT; +FOUNDATION_EXPORT NSString *const LP_STATE_PREFIX; +FOUNDATION_EXPORT NSString *const LP_VALUE_PARAM_NAME; +FOUNDATION_EXPORT NSString *const LP_INFO_PARAM_NAME; +FOUNDATION_EXPORT NSString *const LP_CHARGED_EVENT_PARAM_NAME; +FOUNDATION_EXPORT NSString *const LP_CURRENCY_CODE_PARAM_NAME; + +@interface LeanplumCT : NSObject + +@property (class) CleverTap *instance; + +/** + * @{ + * Advances to a particular state in your application. The string can be + * any value of your choosing, and will show up in the dashboard. + * A state is a section of your app that the user is currently in. + * @param state The name of the state. + */ ++ (void)advanceTo:(nullable NSString *)state +NS_SWIFT_NAME(advance(state:)); + +/** + * Advances to a particular state in your application. The string can be + * any value of your choosing, and will show up in the dashboard. + * A state is a section of your app that the user is currently in. + * @param state The name of the state. + * @param info Anything else you want to log with the state. For example, if the state + * is watchVideo, info could be the video ID. + */ ++ (void)advanceTo:(nullable NSString *)state + withInfo:(nullable NSString *)info +NS_SWIFT_NAME(advance(state:info:)); + +/** + * Advances to a particular state in your application. The string can be + * any value of your choosing, and will show up in the dashboard. + * A state is a section of your app that the user is currently in. + * You can specify up to 200 types of parameters per app across all events and state. + * The parameter keys must be strings, and values either strings or numbers. + * @param state The name of the state. + * @param params A dictionary with custom parameters. + */ ++ (void)advanceTo:(nullable NSString *)state + withParameters:(nullable NSDictionary *)params +NS_SWIFT_NAME(advance(state:params:)); + +/** + * Advances to a particular state in your application. The string can be + * any value of your choosing, and will show up in the dashboard. + * A state is a section of your app that the user is currently in. + * You can specify up to 200 types of parameters per app across all events and state. + * The parameter keys must be strings, and values either strings or numbers. + * @param state The name of the state. (nullable) + * @param info Anything else you want to log with the state. For example, if the state + * is watchVideo, info could be the video ID. + * @param params A dictionary with custom parameters. + */ ++ (void)advanceTo:(nullable NSString *)state + withInfo:(nullable NSString *)info + andParameters:(nullable NSDictionary *)params +NS_SWIFT_NAME(advance(state:info:params:)); + +/** + * Sets additional user attributes after the session has started. + * Variables retrieved by start won't be targeted based on these attributes, but + * they will count for the current session for reporting purposes. + * Only those attributes given in the dictionary will be updated. All other + * attributes will be preserved. + */ ++ (void)setUserAttributes:(NSDictionary *)attributes; + +/** + * Updates a user ID after session start. + */ ++ (void)setUserId:(NSString *)userId +NS_SWIFT_NAME(setUserId(_:)); + +/** + * Updates a user ID after session start with a dictionary of user attributes. + */ ++ (void)setUserId:(NSString *)userId withUserAttributes:(NSDictionary *)attributes +NS_SWIFT_NAME(setUserId(_:attributes:)); + +/** + * Sets the traffic source info for the current user. + * Keys in info must be one of: publisherId, publisherName, publisherSubPublisher, + * publisherSubSite, publisherSubCampaign, publisherSubAdGroup, publisherSubAd. + */ ++ (void)setTrafficSourceInfo:(NSDictionary *)info +NS_SWIFT_NAME(setTrafficSource(info:)); + +/** + * Manually track purchase event with currency code in your application. It is advised to use + * trackInAppPurchases to automatically track IAPs. + */ ++ (void)trackPurchase:(NSString *)event + withValue:(double)value + andCurrencyCode:(nullable NSString *)currencyCode + andParameters:(nullable NSDictionary *)params +NS_SWIFT_NAME(track(event:value:currencyCode:params:)); +/**@}*/ + +/** + * @{ + * Logs a particular event in your application. The string can be + * any value of your choosing, and will show up in the dashboard. + * To track a purchase, use LP_PURCHASE_EVENT. + */ ++ (void)track:(NSString *)event; + ++ (void)track:(NSString *)event + withValue:(double)value +NS_SWIFT_NAME(track(_:value:)); + ++ (void)track:(NSString *)event + withInfo:(nullable NSString *)info +NS_SWIFT_NAME(track(_:info:)); + ++ (void)track:(NSString *)event + withValue:(double)value + andInfo:(nullable NSString *)info +NS_SWIFT_NAME(track(_:value:info:)); + +// See above for the explanation of params. ++ (void)track:(NSString *)event withParameters:(nullable NSDictionary *)params +NS_SWIFT_NAME(track(_:params:)); + ++ (void)track:(NSString *)event + withValue:(double)value +andParameters:(nullable NSDictionary *)params +NS_SWIFT_NAME(track(_:value:params:)); + ++ (void)track:(NSString *)event + withValue:(double)value + andInfo:(nullable NSString *)info +andParameters:(nullable NSDictionary *)params +NS_SWIFT_NAME(track(_:value:info:params:)); +/**@}*/ + +/** + * Sets the log level of the CleverTap SDK. + */ ++ (void)setLogLevel:(CleverTapLogLevel)level; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Inbox.momd/Inbox.mom b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Inbox.momd/Inbox.mom new file mode 100644 index 000000000..e9b27f354 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Inbox.momd/Inbox.mom differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Inbox.momd/VersionInfo.plist b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Inbox.momd/VersionInfo.plist new file mode 100644 index 000000000..03dafe446 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Inbox.momd/VersionInfo.plist differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Info.plist b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Info.plist new file mode 100644 index 000000000..231c81dc9 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Info.plist differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.abi.json b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.abi.json new file mode 100644 index 000000000..cb022c718 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.abi.json @@ -0,0 +1,154 @@ +{ + "ABIRoot": { + "kind": "Root", + "name": "CleverTapSDK", + "printedName": "CleverTapSDK", + "children": [ + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "CleverTapSDK", + "declAttributes": [ + "RawDocComment" + ] + }, + { + "kind": "TypeDecl", + "name": "CTNewFeature", + "printedName": "CTNewFeature", + "children": [ + { + "kind": "Function", + "name": "newFeature", + "printedName": "newFeature()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Func", + "usr": "c:@M@CleverTapSDK@objc(cs)CTNewFeature(im)newFeature", + "mangledName": "$s12CleverTapSDK12CTNewFeatureC03newE0yyF", + "moduleName": "CleverTapSDK", + "declAttributes": [ + "AccessControl", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init()", + "children": [ + { + "kind": "TypeNominal", + "name": "CTNewFeature", + "printedName": "CleverTapSDK.CTNewFeature", + "usr": "c:@M@CleverTapSDK@objc(cs)CTNewFeature" + } + ], + "declKind": "Constructor", + "usr": "c:@M@CleverTapSDK@objc(cs)CTNewFeature(im)init", + "mangledName": "$s12CleverTapSDK12CTNewFeatureCACycfc", + "moduleName": "CleverTapSDK", + "overriding": true, + "implicit": true, + "objc_name": "init", + "declAttributes": [ + "Dynamic", + "ObjC", + "Override" + ], + "init_kind": "Designated" + } + ], + "declKind": "Class", + "usr": "c:@M@CleverTapSDK@objc(cs)CTNewFeature", + "mangledName": "$s12CleverTapSDK12CTNewFeatureC", + "moduleName": "CleverTapSDK", + "declAttributes": [ + "AccessControl", + "ObjC", + "RawDocComment" + ], + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "_KeyValueCodingAndObservingPublishing", + "printedName": "_KeyValueCodingAndObservingPublishing", + "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP", + "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP" + }, + { + "kind": "Conformance", + "name": "_KeyValueCodingAndObserving", + "printedName": "_KeyValueCodingAndObserving", + "usr": "s:10Foundation27_KeyValueCodingAndObservingP", + "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } + ] + } + ], + "json_format_version": 8 + }, + "ConstValues": [] +} \ No newline at end of file diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface new file mode 100644 index 000000000..7c4903e97 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface @@ -0,0 +1,15 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) +// swift-module-flags: -target arm64-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 6 -enforce-exclusivity=checked -O -module-name CleverTapSDK +// swift-module-flags-ignorable: -no-verify-emitted-module-interface +@_exported import CleverTapSDK +import Foundation +import Swift +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +@_inheritsConvenienceInitializers @objc public class CTNewFeature : ObjectiveC.NSObject { + @objc public func newFeature() + @objc override dynamic public init() + @objc deinit +} diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc new file mode 100644 index 000000000..94fad50da Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface new file mode 100644 index 000000000..7c4903e97 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -0,0 +1,15 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) +// swift-module-flags: -target arm64-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 6 -enforce-exclusivity=checked -O -module-name CleverTapSDK +// swift-module-flags-ignorable: -no-verify-emitted-module-interface +@_exported import CleverTapSDK +import Foundation +import Swift +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +@_inheritsConvenienceInitializers @objc public class CTNewFeature : ObjectiveC.NSObject { + @objc public func newFeature() + @objc override dynamic public init() + @objc deinit +} diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json new file mode 100644 index 000000000..cb022c718 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json @@ -0,0 +1,154 @@ +{ + "ABIRoot": { + "kind": "Root", + "name": "CleverTapSDK", + "printedName": "CleverTapSDK", + "children": [ + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "CleverTapSDK", + "declAttributes": [ + "RawDocComment" + ] + }, + { + "kind": "TypeDecl", + "name": "CTNewFeature", + "printedName": "CTNewFeature", + "children": [ + { + "kind": "Function", + "name": "newFeature", + "printedName": "newFeature()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Func", + "usr": "c:@M@CleverTapSDK@objc(cs)CTNewFeature(im)newFeature", + "mangledName": "$s12CleverTapSDK12CTNewFeatureC03newE0yyF", + "moduleName": "CleverTapSDK", + "declAttributes": [ + "AccessControl", + "ObjC" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init()", + "children": [ + { + "kind": "TypeNominal", + "name": "CTNewFeature", + "printedName": "CleverTapSDK.CTNewFeature", + "usr": "c:@M@CleverTapSDK@objc(cs)CTNewFeature" + } + ], + "declKind": "Constructor", + "usr": "c:@M@CleverTapSDK@objc(cs)CTNewFeature(im)init", + "mangledName": "$s12CleverTapSDK12CTNewFeatureCACycfc", + "moduleName": "CleverTapSDK", + "overriding": true, + "implicit": true, + "objc_name": "init", + "declAttributes": [ + "Dynamic", + "ObjC", + "Override" + ], + "init_kind": "Designated" + } + ], + "declKind": "Class", + "usr": "c:@M@CleverTapSDK@objc(cs)CTNewFeature", + "mangledName": "$s12CleverTapSDK12CTNewFeatureC", + "moduleName": "CleverTapSDK", + "declAttributes": [ + "AccessControl", + "ObjC", + "RawDocComment" + ], + "superclassUsr": "c:objc(cs)NSObject", + "inheritsConvenienceInitializers": true, + "superclassNames": [ + "ObjectiveC.NSObject" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "CVarArg", + "printedName": "CVarArg", + "usr": "s:s7CVarArgP", + "mangledName": "$ss7CVarArgP" + }, + { + "kind": "Conformance", + "name": "_KeyValueCodingAndObservingPublishing", + "printedName": "_KeyValueCodingAndObservingPublishing", + "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP", + "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP" + }, + { + "kind": "Conformance", + "name": "_KeyValueCodingAndObserving", + "printedName": "_KeyValueCodingAndObserving", + "usr": "s:10Foundation27_KeyValueCodingAndObservingP", + "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP" + }, + { + "kind": "Conformance", + "name": "CustomStringConvertible", + "printedName": "CustomStringConvertible", + "usr": "s:s23CustomStringConvertibleP", + "mangledName": "$ss23CustomStringConvertibleP" + }, + { + "kind": "Conformance", + "name": "CustomDebugStringConvertible", + "printedName": "CustomDebugStringConvertible", + "usr": "s:s28CustomDebugStringConvertibleP", + "mangledName": "$ss28CustomDebugStringConvertibleP" + } + ] + } + ], + "json_format_version": 8 + }, + "ConstValues": [] +} \ No newline at end of file diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface new file mode 100644 index 000000000..f8b5e9dab --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface @@ -0,0 +1,15 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) +// swift-module-flags: -target x86_64-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 6 -enforce-exclusivity=checked -O -module-name CleverTapSDK +// swift-module-flags-ignorable: -no-verify-emitted-module-interface +@_exported import CleverTapSDK +import Foundation +import Swift +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +@_inheritsConvenienceInitializers @objc public class CTNewFeature : ObjectiveC.NSObject { + @objc public func newFeature() + @objc override dynamic public init() + @objc deinit +} diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc new file mode 100644 index 000000000..68c756c8e Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface new file mode 100644 index 000000000..f8b5e9dab --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -0,0 +1,15 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) +// swift-module-flags: -target x86_64-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 6 -enforce-exclusivity=checked -O -module-name CleverTapSDK +// swift-module-flags-ignorable: -no-verify-emitted-module-interface +@_exported import CleverTapSDK +import Foundation +import Swift +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +@_inheritsConvenienceInitializers @objc public class CTNewFeature : ObjectiveC.NSObject { + @objc public func newFeature() + @objc override dynamic public init() + @objc deinit +} diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/module.modulemap b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/module.modulemap new file mode 100644 index 000000000..2a9861faf --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/Modules/module.modulemap @@ -0,0 +1,61 @@ +//framework module CleverTapSDK { +// header "CleverTap.h" +// header "CleverTap+Inbox.h" +// header "CleverTap+FeatureFlags.h" +// header "CleverTap+ProductConfig.h" +// header "CleverTap+DisplayUnit.h" +// header "CleverTap+SSLPinning.h" +// header "CleverTapBuildInfo.h" +// header "CleverTapEventDetail.h" +// header "CleverTapInAppNotificationDelegate.h" +// header "CleverTapPushNotificationDelegate.h" +// header "CleverTapURLDelegate.h" +// header "CleverTapSyncDelegate.h" +// header "CleverTapUTMDetail.h" +// header "CleverTapTrackedViewController.h" +// header "CleverTapInstanceConfig.h" +// header "CleverTapJSInterface.h" +// header "CleverTap+InAppNotifications.h" +// header "CleverTap+SCDomain.h" +// header "CTLocalInApp.h" +// header "CleverTap+CTVar.h" +// header "CTVar.h" +// header "LeanplumCT.h" +// header "CTInAppTemplateBuilder.h" +// header "CTAppFunctionBuilder.h" +// header "CTTemplatePresenter.h" +// header "CTTemplateProducer.h" +// header "CTCustomTemplateBuilder.h" +// header "CTCustomTemplate.h" +// header "CTTemplateContext.h" +// header "CTCustomTemplatesManager.h" +// header "CleverTap+PushPermission.h" +// export * +// +// //Private headers +// header "CTRequestFactory.h" +// header "CTRequest.h" +// +//} + + +framework module CleverTapSDK { + umbrella header "CleverTapSDK.h" + export * + + //Private headers + // If we do this, sdk swift classes can access private objc classes, but clients can access them too. This is a known issue online. + header "CTRequestFactory.h" + header "CTRequest.h" +} + +// Clients can still access this, but they need to import a new module. +//framework module CleverTapSDK_Private { +// header "CTRequestFactory.h" +// export * +//} + +module CleverTapSDK.Swift { + header "CleverTapSDK-Swift.h" + requires objc +} diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivacyInfo.xcprivacy b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivacyInfo.xcprivacy new file mode 100644 index 000000000..02f5651a5 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivacyInfo.xcprivacy @@ -0,0 +1,61 @@ + + + + + NSPrivacyCollectedDataTypes + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeUserID + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + NSPrivacyCollectedDataTypePurposeProductPersonalization + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeDeviceID + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + NSPrivacyCollectedDataTypePurposeProductPersonalization + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeProductInteraction + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAnalytics + NSPrivacyCollectedDataTypePurposeProductPersonalization + + + + NSPrivacyTracking + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + + diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTAVPlayerViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTAVPlayerViewController.h new file mode 100644 index 000000000..4cb2729b7 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTAVPlayerViewController.h @@ -0,0 +1,9 @@ +#import + +@class CTInAppNotification; + +@interface CTAVPlayerViewController : AVPlayerViewController + +- (instancetype)initWithNotification:(CTInAppNotification*)notification; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTAlertViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTAlertViewController.h new file mode 100644 index 000000000..e67befbc4 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTAlertViewController.h @@ -0,0 +1,5 @@ +#import "CTInAppDisplayViewController.h" + +@interface CTAlertViewController : CTInAppDisplayViewController + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTBaseHeaderFooterViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTBaseHeaderFooterViewController.h new file mode 100644 index 000000000..46fe2371a --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTBaseHeaderFooterViewController.h @@ -0,0 +1,6 @@ + +#import "CTInAppDisplayViewController.h" + +@interface CTBaseHeaderFooterViewController : CTInAppDisplayViewController + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTBaseHeaderFooterViewControllerPrivate.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTBaseHeaderFooterViewControllerPrivate.h new file mode 100644 index 000000000..df10d5206 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTBaseHeaderFooterViewControllerPrivate.h @@ -0,0 +1,10 @@ + +@interface CTBaseHeaderFooterViewController () + +- (instancetype)initWithNibName:(NSString *)nibNameOrNil + bundle:(NSBundle *)nibBundleOrNil + notification: (CTInAppNotification *)notification; + +- (void)layoutNotification; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTCarouselImageMessageCell.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTCarouselImageMessageCell.h new file mode 100644 index 000000000..bb54ad044 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTCarouselImageMessageCell.h @@ -0,0 +1,5 @@ +#import "CTCarouselMessageCell.h" + +@interface CTCarouselImageMessageCell : CTCarouselMessageCell + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTCarouselImageView.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTCarouselImageView.h new file mode 100644 index 000000000..16e36e1a5 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTCarouselImageView.h @@ -0,0 +1,28 @@ +#import + +@interface CTCarouselImageView : UIView + +@property(nonatomic, strong, nullable, readonly) NSString *actionUrl; +@property (strong, nonatomic) IBOutlet UIImageView * _Nullable cellImageView; +@property (strong, nonatomic) IBOutlet UILabel * _Nullable titleLabel; +@property (strong, nonatomic) IBOutlet UILabel *_Nullable bodyLabel; +@property (nonatomic, strong) IBOutlet NSLayoutConstraint * _Nullable imageViewLandRatioConstraint; +@property (nonatomic, strong) IBOutlet NSLayoutConstraint * _Nullable imageViewPortRatioConstraint; + ++ (CGFloat)captionHeight; + +- (instancetype _Nonnull)initWithFrame:(CGRect)frame + caption:(NSString * _Nullable)caption + subcaption:(NSString * _Nullable)subcaption + captionColor:(NSString * _Nullable)captionColor + subcaptionColor:(NSString * _Nullable)subcaptionColor + imageUrl:(NSString * _Nonnull)imageUrl + actionUrl:(NSString * _Nullable)actionUrl + orientationPortrait:(BOOL)orientationPortrait; + +- (instancetype _Nonnull)initWithFrame:(CGRect)frame + imageUrl:(NSString * _Nonnull)imageUrl + actionUrl:(NSString * _Nullable)actionUrl + orientationPortrait:(BOOL)orientationPortrait; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTCarouselMessageCell.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTCarouselMessageCell.h new file mode 100644 index 000000000..7e79d252b --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTCarouselMessageCell.h @@ -0,0 +1,27 @@ +#import "CTInboxBaseMessageCell.h" +#import "CTSwipeView.h" + +@class CTCarouselImageView; + +@interface CTCarouselMessageCell : CTInboxBaseMessageCell{ + CGFloat captionHeight; +} + +@property (nonatomic, strong) NSMutableArray *itemViews; +@property (nonatomic, assign) long currentItemIndex; +@property (nonatomic, strong) UIPageControl *pageControl; +@property (nonatomic, strong) CTSwipeView *swipeView; +@property (nonatomic, strong) IBOutlet UIView *carouselView; +@property (nonatomic, strong) IBOutlet NSLayoutConstraint *carouselViewHeight; +@property (nonatomic, strong) IBOutlet NSLayoutConstraint *carouselViewWidth; + +@property (nonatomic, strong) IBOutlet NSLayoutConstraint *carouselLandRatioConstraint; +@property (nonatomic, strong) IBOutlet NSLayoutConstraint *carouselPortRatioConstraint; + +- (CGFloat)heightForPageControl; +- (float)getLandscapeMultiplier; +- (void)configurePageControlWithRect:(CGRect)rect; +- (void)configureSwipeViewWithHeightAdjustment:(CGFloat)adjustment; +- (void)handleItemViewTapGesture:(UITapGestureRecognizer *)sender; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTCertificatePinning.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTCertificatePinning.h new file mode 100644 index 000000000..2fed8b19a --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTCertificatePinning.h @@ -0,0 +1,67 @@ +#if CLEVERTAP_SSL_PINNING + +// Based on: +// ISPCertificatePinning.h +// SSLCertificatePinning v3 +// +// Created by Alban Diquet on 1/14/14. +// Copyright (c) 2014 iSEC Partners. All rights reserved. +// + +@import Foundation; + +/** This class implements certificate pinning utility functions. + + First, the certificates and domains to pin should be loaded using + setupSSLPinsUsingDictionnary:. This method will store them in + "~/Library/SSLPins.plist". + + Then, the verifyPinnedCertificateForTrust:andDomain: method can be + used to validate that at least one the certificates pinned to a + specific domain is in the server's certificate chain when connecting to + it. This method should be used for example in the + connection:willSendRequestForAuthenticationChallenge: method of the + NSURLConnectionDelegate object that is used to perform the connection. + + Alternatively, the ISPPinnedNSURLSessionDelegate or + ISPPinnedNSURLConnectionDelegate classes can be directly used + to create a delegate class performing certificate pinning. + + */ +@interface CTCertificatePinning : NSObject + + +/** + Certificate pinning loading method + + This method takes a dictionary with domain names as keys and arrays of DER- + encoded certificates as values, and stores them in a pre-defined location on + the filesystem. The ability to specify multiple certificates for a single + domain is useful when transitioning from an expiring certificate to a new one. + + @param domainsAndCertificates a dictionnary with domain names as keys and arrays of DER-encoded certificates as values + @return BOOL successfully loaded the public keys and domains + + */ ++ (BOOL)setupSSLPinsUsingDictionnary:(NSDictionary*)domainsAndCertificates forAccountId:(NSString *)accountId; + + +/** + Certificate pinning validation method + + This method accesses the certificates previously loaded using the + setupSSLPinsUsingDictionnary: method and inspects the trust object's + certificate chain in order to find at least one certificate pinned to the + given domain. SecTrustEvaluate() should always be called before this method to + ensure that the certificate chain is valid. + + @param trust the trust object whose certificate chain must contain the certificate previously pinned to the given domain + @param domain the domain we're trying to connect to + @return BOOL found the domain's pinned certificate in the trust object's certificate chain + + */ ++ (BOOL)verifyPinnedCertificateForTrust:(SecTrustRef)trust andDomain:(NSString*)domain forAccountId:(NSString *)accountId; + +@end + +#endif diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTConstants.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTConstants.h new file mode 100644 index 000000000..c1f91ae17 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTConstants.h @@ -0,0 +1,276 @@ +#import "CTLogger.h" + +extern NSString *const kCTApiDomain; +extern NSString *const kCTNotifViewedApiDomain; +extern NSString *const kHANDSHAKE_URL; +extern NSString *const kHANDSHAKE_DOMAIN_HEADER; +extern NSString *const ACCOUNT_ID_HEADER; +extern NSString *const ACCOUNT_TOKEN_HEADER; + +extern NSString *const REDIRECT_DOMAIN_KEY; +extern NSString *const REDIRECT_NOTIF_VIEWED_DOMAIN_KEY; + +extern NSString *const kLastSessionPing; +extern NSString *const kLastSessionTime; +extern NSString *const kSessionId; + +#define CleverTapLogInfo(level, fmt, ...) if(level >= 0) { NSLog((@"%@" fmt), @"[CleverTap]: ", ##__VA_ARGS__); } +#define CleverTapLogDebug(level, fmt, ...) if(level > 0) { NSLog((@"%@" fmt), @"[CleverTap]: ", ##__VA_ARGS__); } +#define CleverTapLogInternal(level, fmt, ...) if (level >= 1) { NSLog((@"%@" fmt), @"[CleverTap]: ", ##__VA_ARGS__); } +#define CleverTapLogStaticInfo(fmt, ...) if([CTLogger getDebugLevel] >= 0) { NSLog((@"%@" fmt), @"[CleverTap]: ", ##__VA_ARGS__); } +#define CleverTapLogStaticDebug(fmt, ...) if([CTLogger getDebugLevel] > 0) { NSLog((@"%@" fmt), @"[CleverTap]: ", ##__VA_ARGS__); } +#define CleverTapLogStaticInternal(fmt, ...) if([CTLogger getDebugLevel] >= 1) { NSLog((@"%@" fmt), @"[CleverTap]: ", ##__VA_ARGS__); } + +#define CT_TRY @try { +#define CT_END_TRY }\ +@catch (NSException *e) {\ +[CTLogger logInternalError:e]; } + +#define CLTAP_CUSTOM_TEMPLATE_EXCEPTION @"CleverTapCustomTemplateException" + +#pragma mark Constants for General data +#define CLTAP_REQUEST_TIME_OUT_INTERVAL 10 +#define CLTAP_ACCOUNT_ID_LABEL @"CleverTapAccountID" +#define CLTAP_TOKEN_LABEL @"CleverTapToken" +#define CLTAP_REGION_LABEL @"CleverTapRegion" +#define CLTAP_PROXY_DOMAIN_LABEL @"CleverTapProxyDomain" +#define CLTAP_SPIKY_PROXY_DOMAIN_LABEL @"CleverTapSpikyProxyDomain" +#define CLTAP_DISABLE_APP_LAUNCH_LABEL @"CleverTapDisableAppLaunched" +#define CLTAP_USE_CUSTOM_CLEVERTAP_ID_LABEL @"CleverTapUseCustomId" +#define CLTAP_DISABLE_IDFV_LABEL @"CleverTapDisableIDFV" +#define CLTAP_ENABLE_FILE_PROTECTION @"CleverTapEnableFileProtection" +#define CLTAP_HANDSHAKE_DOMAIN @"CleverTapHandshakeDomain" +#define CLTAP_BETA_LABEL @"CleverTapBeta" +#define CLTAP_SESSION_LENGTH_MINS 20 +#define CLTAP_SESSION_LAST_VC_TRAIL @"last_session_vc_trail" +#define CLTAP_FB_DOB_DATE_FORMAT @"MM/dd/yyyy" +#define CLTAP_GP_DOB_DATE_FORMAT @"yyyy-MM-dd" +#define CLTAP_APNS_PROPERTY_DEVICE_TOKEN @"device_token" +#define CLTAP_NOTIFICATION_CLICKED_EVENT_NAME @"Notification Clicked" +#define CLTAP_NOTIFICATION_VIEWED_EVENT_NAME @"Notification Viewed" +#define CLTAP_GEOFENCE_ENTERED_EVENT_NAME @"Geocluster Entered" +#define CLTAP_GEOFENCE_EXITED_EVENT_NAME @"Geocluster Exited" + +#define CLTAP_SIGNED_CALL_OUTGOING_EVENT_NAME @"SCOutgoing" +#define CLTAP_SIGNED_CALL_INCOMING_EVENT_NAME @"SCIncoming" +#define CLTAP_SIGNED_CALL_END_EVENT_NAME @"SCEnd" + +#define CLTAP_PREFS_LAST_DAILY_PUSHED_EVENTS_DATE @"lastDailyEventsPushedDate" +#define CLTAP_SYSTEM_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending) +#define CLTAP_APP_LAUNCHED_EVENT @"App Launched" +#define CLTAP_CHARGED_EVENT @"Charged" +#define CLTAP_PROFILE @"profile" +#define CLTAP_USER_ATTRIBUTE_CHANGE @"_change" +#define CLTAP_KEY_NEW_VALUE @"newValue" +#define CLTAP_KEY_OLD_VALUE @"oldValue" +#define CLTAP_KEY_PROFILE_ATTR_NAME @"profileAttrName" +#define CLTAP_EVENT_NAME @"evtName" +#define CLTAP_EVENT_DATA @"evtData" +#define CLTAP_CHARGED_EVENT_ITEMS @"Items" +#define CLTAP_ERROR_KEY @"wzrk_error" +#define CLTAP_WZRK_FETCH_EVENT @"wzrk_fetch" +#define CLTAP_PUSH_DELAY_SECONDS 1 +#define CLTAP_PING_TICK_INTERVAL 1 +#define CLTAP_LOCATION_PING_INTERVAL_SECONDS 10 +#define CLTAP_INBOX_MSG_JSON_RESPONSE_KEY @"inbox_notifs" +#define CLTAP_DISPLAY_UNIT_JSON_RESPONSE_KEY @"adUnit_notifs" +#define CLTAP_FEATURE_FLAGS_JSON_RESPONSE_KEY @"ff_notifs" +#define CLTAP_PRODUCT_CONFIG_JSON_RESPONSE_KEY @"pc_notifs" +#define CLTAP_GEOFENCES_JSON_RESPONSE_KEY @"geofences" +#define CLTAP_PE_VARS_RESPONSE_KEY @"vars" +#define CLTAP_DISCARDED_EVENT_JSON_KEY @"d_e" +#define CLTAP_INAPP_CLOSE_IV_WIDTH 40 +#define CLTAP_NOTIFICATION_ID_TAG @"wzrk_id" +#define CLTAP_NOTIFICATION_PIVOT @"wzrk_pivot" +#define CLTAP_NOTIFICATION_PIVOT_DEFAULT @"wzrk_default" +#define CLTAP_NOTIFICATION_CONTROL_GROUP_ID @"wzrk_cgId" +#define CLTAP_WZRK_PREFIX @"wzrk_" +#define CLTAP_NOTIFICATION_TAG_SECONDARY @"wzrk_" +#define CLTAP_NOTIFICATION_CLICKED_TAG @"wzrk_cts" +#define CLTAP_NOTIFICATION_TAG @"W$" +#define CLTAP_DATE_FORMAT @"yyyyMMdd" +#define CLTAP_DATE_PREFIX @"$D_" + +// profile commands +static NSString *const kCLTAP_COMMAND_SET = @"$set"; +static NSString *const kCLTAP_COMMAND_ADD = @"$add"; +static NSString *const kCLTAP_COMMAND_REMOVE = @"$remove"; +static NSString *const kCLTAP_COMMAND_INCREMENT = @"$incr"; +static NSString *const kCLTAP_COMMAND_DECREMENT = @"$decr"; +static NSString *const kCLTAP_COMMAND_DELETE = @"$delete"; + +#define CLTAP_MULTIVAL_COMMANDS @[kCLTAP_COMMAND_SET, kCLTAP_COMMAND_ADD, kCLTAP_COMMAND_REMOVE] + +#pragma mark Constants for File Assets +#define CLTAP_FILE_URLS_EXPIRY_DICT @"file_urls_expiry_dict" +#define CLTAP_FILE_ASSETS_LAST_DELETED_TS @"cs_file_assets_last_deleted_timestamp" +#define CLTAP_FILE_EXPIRY_OFFSET (60 * 60 * 24 * 7 * 2) // 2 weeks +#define CLTAP_FILE_RESOURCE_TIME_OUT_INTERVAL 25 +#define CLTAP_FILE_MAX_CONCURRENCY_COUNT 10 +#define CLTAP_FILES_DIRECTORY_NAME @"CleverTap_Files" + +#pragma mark Constants for App fields +#define CLTAP_APP_VERSION @"Version" +#define CLTAP_LATITUDE @"Latitude" +#define CLTAP_LONGITUDE @"Longitude" +#define CLTAP_OS_VERSION @"OS Version" +#define CLTAP_SDK_VERSION @"SDK Version" +#define CLTAP_CARRIER @"Carrier" +#define CLTAP_NETWORK_TYPE @"Radio" +#define CLTAP_CONNECTED_TO_WIFI @"wifi" +#define CLTAP_BLUETOOTH_VERSION @"BluetoothVersion" +#define CLTAP_BLUETOOTH_ENABLED @"BluetoothEnabled" + +#pragma mark Constants for PE Variables +extern NSString *CT_KIND_INT; +extern NSString *CT_KIND_FLOAT; +extern NSString *CT_KIND_STRING; +extern NSString *CT_KIND_BOOLEAN; +extern NSString *CT_KIND_DICTIONARY; +extern NSString *CT_KIND_FILE; +extern NSString *CLEVERTAP_DEFAULTS_VARIABLES_KEY; +extern NSString *CLEVERTAP_DEFAULTS_VARS_JSON_KEY; + +extern NSString *CT_PE_VARS_PAYLOAD_TYPE; +extern NSString *CT_PE_VARS_PAYLOAD_KEY; +extern NSString *CT_PE_VAR_TYPE; +extern NSString *CT_PE_NUMBER_TYPE; +extern NSString *CT_PE_BOOL_TYPE; +extern NSString *CT_PE_DEFAULT_VALUE; + +extern NSString *CLTAP_PROFILE_IDENTITY_KEY; + +#pragma mark Constants for In-App Notifications +#define CLTAP_INAPP_JSON_RESPONSE_KEY @"inapp_notifs" +#define CLTAP_INAPP_STALE_JSON_RESPONSE_KEY @"inapp_stale" +#define CLTAP_INAPP_GLOBAL_CAP_SESSION_JSON_RESPONSE_KEY @"imc" +#define CLTAP_INAPP_GLOBAL_CAP_DAY_JSON_RESPONSE_KEY @"imp" +#define CLTAP_INAPP_CS_JSON_RESPONSE_KEY @"inapp_notifs_cs" +#define CLTAP_INAPP_SS_JSON_RESPONSE_KEY @"inapp_notifs_ss" +#define CLTAP_INAPP_SS_APP_LAUNCHED_JSON_RESPONSE_KEY @"inapp_notifs_applaunched" +#define CLTAP_INAPP_MODE_JSON_RESPONSE_KEY @"inapp_delivery_mode" + +#define CLTAP_INAPP_SHOWN_TODAY_META_KEY @"imp" +#define CLTAP_INAPP_COUNTS_META_KEY @"tlc" +#define CLTAP_INAPP_SS_EVAL_META_KEY @"inapps_eval" +#define CLTAP_INAPP_SUPPRESSED_META_KEY @"inapps_suppressed" +#define CLTAP_INAPP_SS_EVAL_STORAGE_KEY @"inapps_eval" +#define CLTAP_INAPP_SUPPRESSED_STORAGE_KEY @"inapps_suppressed" +#define CLTAP_INAPP_SS_EVAL_STORAGE_KEY_PROFILE @"inapps_eval_profile" +#define CLTAP_INAPP_SUPPRESSED_STORAGE_KEY_PROFILE @"inapps_suppressed_profile" + +#define CLTAP_PREFS_INAPP_SESSION_MAX_KEY @"imc_max" +#define CLTAP_PREFS_INAPP_LAST_DATE_KEY @"ict_date" +#define CLTAP_PREFS_INAPP_COUNTS_PER_INAPP_KEY @"counts_per_inapp" +#define CLTAP_PREFS_INAPP_COUNTS_SHOWN_TODAY_KEY @"istc_inapp" +#define CLTAP_PREFS_INAPP_MAX_PER_DAY_KEY @"istmcd_inapp" +#define CLTAP_PREFS_INAPP_LOCAL_INAPP_COUNT_KEY @"local_in_app_count" + +#define CLTAP_PREFS_INAPP_KEY @"inapp_notifs" +#define CLTAP_PREFS_INAPP_KEY_CS @"inapp_notifs_cs" +#define CLTAP_PREFS_INAPP_KEY_SS @"inapp_notifs_ss" + +#define CLTAP_PREFS_CS_INAPP_ACTIVE_ASSETS @"cs_inapp_active_assets" +#define CLTAP_PREFS_CS_INAPP_INACTIVE_ASSETS @"cs_inapp_inactive_assets" +#define CLTAP_PREFS_CS_INAPP_ASSETS_LAST_DELETED_TS @"cs_inapp_assets_last_deleted_timestamp" + +#define CLTAP_PROP_CAMPAIGN_ID @"Campaign id" +#define CLTAP_PROP_WZRK_ID @"wzrk_id" +#define CLTAP_PROP_VARIANT @"Variant" +#define CLTAP_PROP_WZRK_PIVOT @"wzrk_pivot" +#define CLTAP_PROP_WZRK_CTA @"wzrk_c2a" + +#define CLTAP_INAPP_ID @"ti" +#define CLTAP_INAPP_TTL @"wzrk_ttl" +#define CLTAP_INAPP_CS_TTL_OFFSET @"wzrk_ttl_offset" +#define CLTAP_INAPP_PRIORITY @"priority" +#define CLTAP_INAPP_IS_SUPPRESSED @"suppressed" +#define CLTAP_INAPP_MAX_PER_SESSION @"mdc" +#define CLTAP_INAPP_TOTAL_DAILY_COUNT @"tdc" +#define CLTAP_INAPP_TOTAL_LIFETIME_COUNT @"tlc" +#define CLTAP_INAPP_EXCLUDE_FROM_CAPS @"efc" +#define CLTAP_INAPP_EXCLUDE_GLOBAL_CAPS @"excludeGlobalFCaps" +#define CLTAP_INAPP_MEDIA @"media" +#define CLTAP_INAPP_MEDIA_LANDSCAPE @"mediaLandscape" +#define CLTAP_INAPP_MEDIA_CONTENT_TYPE @"content_type" +#define CLTAP_INAPP_MEDIA_URL @"url" + +#define CLTAP_TRIGGER_BOOL_STRING_YES @"true" +#define CLTAP_TRIGGER_BOOL_STRING_NO @"false" + +// whenTriggers +#define CLTAP_INAPP_TRIGGERS @"whenTriggers" + +// whenLimits +#define CLTAP_INAPP_FC_LIMITS @"frequencyLimits" +#define CLTAP_INAPP_OCCURRENCE_LIMITS @"occurrenceLimits" + +#define CLTAP_INAPP_DATA_TAG @"d" +#define CLTAP_INAPP_HTML @"html" +#define CLTAP_INAPP_X_PERCENT @"xp" +#define CLTAP_INAPP_Y_PERCENT @"yp" +#define CLTAP_INAPP_X_DP @"xdp" +#define CLTAP_INAPP_Y_DP @"ydp" +#define CLTAP_INAPP_POSITION @"pos" +#define CLTAP_INAPP_POSITION_TOP 't' +#define CLTAP_INAPP_POSITION_RIGHT 'r' +#define CLTAP_INAPP_POSITION_BOTTOM 'b' +#define CLTAP_INAPP_POSITION_LEFT 'l' +#define CLTAP_INAPP_POSITION_CENTER 'c' +#define CLTAP_INAPP_NOTIF_DARKEN_SCREEN @"dk" +#define CLTAP_INAPP_NOTIF_SHOW_CLOSE @"sc" + +#define CLTAP_INAPP_HTML_TYPE @"custom-html" + +#define CLTAP_INAPP_TYPE @"type" +#define CLTAP_INAPP_TEMPLATE_NAME @"templateName" +#define CLTAP_INAPP_TEMPLATE_ID @"templateId" +#define CLTAP_INAPP_TEMPLATE_DESCRIPTION @"templateDescription" +#define CLTAP_INAPP_VARS @"vars" +#define CLTAP_INAPP_ACTIONS @"actions" + +#define CLTAP_INAPP_PREVIEW_TYPE @"wzrk_inapp_type" +#define CLTAP_INAPP_IMAGE_INTERSTITIAL_TYPE @"image-interstitial" +#define CLTAP_INAPP_IMAGE_INTERSTITIAL_CONFIG @"imageInterstitialConfig" +#define CLTAP_INAPP_HTML_SPLIT @"\"##Vars##\"" +#define CLTAP_INAPP_IMAGE_INTERSTITIAL_HTML_NAME @"image_interstitial" + +#pragma mark Constants for persisting system data +#define CLTAP_SYS_CARRIER @"sysCarrier" +#define CLTAP_SYS_CC @"sysCountryCode" +#define CLTAP_SYS_TZ @"sysTZ" + +#define CLTAP_USER_NAME @"Name" +#define CLTAP_USER_EMAIL @"Email" +#define CLTAP_USER_EDUCATION @"Education" +#define CLTAP_USER_MARRIED @"Married" +#define CLTAP_USER_DOB @"DOB" +#define CLTAP_USER_BIRTHDAY @"Birthday" +#define CLTAP_USER_EMPLOYED @"Employed" +#define CLTAP_USER_GENDER @"Gender" +#define CLTAP_USER_PHONE @"Phone" +#define CLTAP_USER_AGE @"Age" + +#define CLTAP_OPTOUT @"ct_optout" + +#pragma mark Constants for profile init/sync notifications +#define CLTAP_PROFILE_DID_INITIALIZE_NOTIFICATION @"CleverTapProfileDidInitializeNotification" +#define CLTAP_PROFILE_DID_CHANGE_NOTIFICATION @"CleverTapProfileDidChangeNotification" + +#pragma mark Constants for Inbox notifications +#define CLTAP_INBOX_MESSAGE_TAPPED_NOTIFICATION @"CleverTapInboxMessageTappedNotification" +#define CLTAP_INBOX_MESSAGE_MEDIA_PLAYING_NOTIFICATION @"CleverTapInboxMediaPlayingNotification" +#define CLTAP_INBOX_MESSAGE_MEDIA_MUTED_NOTIFICATION @"CleverTapInboxMediaMutedNotification" + +#pragma mark Constants for Geofences update notification +#define CLTAP_GEOFENCES_DID_UPDATE_NOTIFICATION @"CleverTapGeofencesDidUpdateNotification" + +#pragma mark Constants for Profile identifier keys +#define CLTAP_PROFILE_IDENTIFIER_KEYS @[@"Identity", @"Email"] // LEGACY KEYS +#define CLTAP_ALL_PROFILE_IDENTIFIER_KEYS @[@"Identity", @"Email", @"Phone"] +#define CLTAP_SKIP_KEYS_USER_ATTRIBUTE_EVALUATION @[@"cc", @"tz", @"Carrier"] + +#pragma mark Constants for Encryption +#define CLTAP_ENCRYPTION_LEVEL @"CleverTapEncryptionLevel" +#define CLTAP_ENCRYPTION_IV @"__CL3>3Rt#P__1V_" +#define CLTAP_ENCRYPTION_PII_DATA (@[@"Identity", @"Email", @"Phone", @"Name"]); diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTCoverImageViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTCoverImageViewController.h new file mode 100644 index 000000000..3dd064dea --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTCoverImageViewController.h @@ -0,0 +1,6 @@ +#import "CTImageInAppViewController.h" + +@interface CTCoverImageViewController : CTImageInAppViewController + +@end + diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTCoverViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTCoverViewController.h new file mode 100644 index 000000000..bb08ec89e --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTCoverViewController.h @@ -0,0 +1,5 @@ +#import "CTInAppDisplayViewController.h" + +@interface CTCoverViewController : CTInAppDisplayViewController + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTDeviceInfo.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTDeviceInfo.h new file mode 100644 index 000000000..3258516b1 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTDeviceInfo.h @@ -0,0 +1,37 @@ +#import + +@class CleverTapInstanceConfig; +@class CTValidationResult; + +@interface CTDeviceInfo : NSObject + +@property (strong, readonly) NSString *sdkVersion; +@property (strong, readonly) NSString *appVersion; +@property (strong, readonly) NSString *appBuild; +@property (strong, readonly) NSString *bundleId; +@property (strong, readonly) NSString *osName; +@property (strong, readonly) NSString *osVersion; +@property (strong, readonly) NSString *manufacturer; +@property (atomic, readonly) NSString *model; +@property (strong, readonly) NSString *carrier; +@property (strong, readonly) NSString *countryCode; +@property (strong, readonly) NSString *timeZone; +@property (strong, readonly) NSString *radio; +@property (strong, readonly) NSString *vendorIdentifier; +@property (strong, readonly) NSString *deviceWidth; +@property (strong, readonly) NSString *deviceHeight; +@property (atomic, readonly) NSString *deviceId; +@property (atomic, readonly) NSString *fallbackDeviceId; +@property (atomic, readwrite) NSString *library; +@property (assign, readonly) BOOL wifi; +@property (assign, readonly) BOOL isOnline; +@property (assign, readonly) BOOL enableFileProtection; +@property (strong, readonly) NSMutableArray* validationErrors; +@property (strong, readonly) NSLocale *systemLocale; + +- (instancetype)initWithConfig:(CleverTapInstanceConfig *)config andCleverTapID:(NSString *)cleverTapID; +- (void)forceUpdateDeviceID:(NSString *)newDeviceID; +- (void)forceNewDeviceID; +- (void)forceUpdateCustomDeviceID:(NSString *)cleverTapID; +- (BOOL)isErrorDeviceID; +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTDismissButton.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTDismissButton.h new file mode 100644 index 000000000..91b3a81ab --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTDismissButton.h @@ -0,0 +1,6 @@ + +#import + +@interface CTDismissButton : UIButton + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTEventBuilder.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTEventBuilder.h new file mode 100644 index 000000000..d3a846354 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTEventBuilder.h @@ -0,0 +1,45 @@ +#import +#import "CleverTap.h" + +@class CTValidationResult; +@class CTInAppNotification; +@class CleverTapInboxMessage; +@class CleverTapDisplayUnit; + +@interface CTEventBuilder : NSObject + ++ (void)build:(NSString * _Nonnull)eventName completionHandler:(void(^ _Nonnull )(NSDictionary* _Nullable event, NSArray* _Nullable errors))completion; + ++ (void)build:(NSString * _Nonnull)eventName withEventActions:(NSDictionary * _Nullable)eventActions completionHandler:(void(^ _Nonnull )(NSDictionary* _Nullable event, NSArray* _Nullable errors))completion; + ++ (void)buildChargedEventWithDetails:(NSDictionary * _Nonnull)chargeDetails + andItems:(NSArray * _Nullable)items completionHandler:(void(^ _Nonnull )(NSDictionary* _Nullable event, NSArray * _Nullable errors))completion; + ++ (void)buildPushNotificationEvent:(BOOL)clicked + forNotification:(NSDictionary * _Nonnull)notification + completionHandler:(void(^ _Nonnull )(NSDictionary* _Nullable event, NSArray* _Nullable errors))completion; + ++ (void)buildInAppNotificationStateEvent:(BOOL)clicked + forNotification:(CTInAppNotification * _Nonnull)notification + andQueryParameters:(NSDictionary * _Nullable)params + completionHandler:(void(^ _Nonnull)(NSDictionary* _Nullable event, NSArray* _Nullable errors))completion; + ++ (void)buildInboxMessageStateEvent:(BOOL)clicked + forMessage:(CleverTapInboxMessage * _Nonnull)message + andQueryParameters:(NSDictionary * _Nullable)params + completionHandler:(void(^ _Nonnull)(NSDictionary * _Nullable event, NSArray * _Nullable errors))completion; + ++ (void)buildDisplayViewStateEvent:(BOOL)clicked + forDisplayUnit:(CleverTapDisplayUnit * _Nonnull)displayUnit + andQueryParameters:(NSDictionary * _Nullable)params + completionHandler:(void(^ _Nonnull)(NSDictionary * _Nullable event, NSArray * _Nullable errors))completion; + ++ (void)buildGeofenceStateEvent:(BOOL)entered + forGeofenceDetails:(NSDictionary * _Nonnull)geofenceDetails + completionHandler:(void(^ _Nonnull)(NSDictionary * _Nullable event, NSArray * _Nullable errors))completion; + ++ (void)buildSignedCallEvent:(int)eventRawValue + forCallDetails:(NSDictionary * _Nonnull)callDetails + completionHandler:(void(^ _Nonnull)(NSDictionary * _Nullable event, NSArray * _Nullable errors))completion; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTFeatureFlagsController.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTFeatureFlagsController.h new file mode 100644 index 000000000..37aed36a3 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTFeatureFlagsController.h @@ -0,0 +1,25 @@ +#import + +@protocol CTFeatureFlagsDelegate +@required +- (void)featureFlagsDidUpdate; +@end + +@class CleverTapInstanceConfig; + +@interface CTFeatureFlagsController : NSObject + +@property (nonatomic, assign, readonly) BOOL isInitialized; + +- (instancetype _Nullable ) init __unavailable; + +// blocking, call off main thread +- (instancetype _Nullable)initWithConfig:(CleverTapInstanceConfig *_Nonnull)config + guid:(NSString *_Nonnull)guid + delegate:(id_Nonnull)delegate; + +- (void)updateFeatureFlags:(NSArray *_Nullable)featureFlags; + +- (BOOL)get:(NSString* _Nonnull)key withDefaultValue:(BOOL)defaultValue; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTFooterViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTFooterViewController.h new file mode 100644 index 000000000..62a515964 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTFooterViewController.h @@ -0,0 +1,6 @@ + +#import "CTBaseHeaderFooterViewController.h" + +@interface CTFooterViewController : CTBaseHeaderFooterViewController + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTHalfInterstitialImageViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTHalfInterstitialImageViewController.h new file mode 100644 index 000000000..25438e66b --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTHalfInterstitialImageViewController.h @@ -0,0 +1,6 @@ +#import "CTImageInAppViewController.h" + +@interface CTHalfInterstitialImageViewController : CTImageInAppViewController + +@end + diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTHalfInterstitialViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTHalfInterstitialViewController.h new file mode 100644 index 000000000..bfabc2939 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTHalfInterstitialViewController.h @@ -0,0 +1,5 @@ +#import "CTInAppDisplayViewController.h" + +@interface CTHalfInterstitialViewController : CTInAppDisplayViewController + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTHeaderViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTHeaderViewController.h new file mode 100644 index 000000000..e4569b567 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTHeaderViewController.h @@ -0,0 +1,5 @@ +#import "CTBaseHeaderFooterViewController.h" + +@interface CTHeaderViewController : CTBaseHeaderFooterViewController + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppDisplayViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppDisplayViewController.h new file mode 100644 index 000000000..e86833b28 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppDisplayViewController.h @@ -0,0 +1,24 @@ +#import +#import "CTInAppNotification.h" +#import "CTInAppNotificationDisplayDelegate.h" +#if !(TARGET_OS_TV) +#import "CleverTapJSInterface.h" +#endif + +@interface CTInAppDisplayViewController : UIViewController + +@property (nonatomic, weak) id delegate; +@property (nonatomic, strong, readonly) CTInAppNotification *notification; + +- (instancetype)init __unavailable; +- (instancetype)initWithNotification:(CTInAppNotification*)notification; + +- (void)initializeWindowOfClass:(Class)windowClass animated:(BOOL)animated; + +- (void)show:(BOOL)animated; +- (void)hide:(BOOL)animated; +- (BOOL)deviceOrientationIsLandscape; + +- (void)triggerInAppAction:(CTNotificationAction *)action callToAction:(NSString *)callToAction buttonId:(NSString *)buttonId; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppDisplayViewControllerPrivate.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppDisplayViewControllerPrivate.h new file mode 100644 index 000000000..6cb54f76f --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppDisplayViewControllerPrivate.h @@ -0,0 +1,32 @@ +#import +#import "CTConstants.h" + +@interface CTInAppPassThroughWindow : UIWindow +@end + +@protocol CTInAppPassThroughViewDelegate +@required +- (void)viewWillPassThroughTouch; +@end + +@interface CTInAppPassThroughView : UIView +@property (nonatomic, weak) id delegate; +@end + +@interface CTInAppDisplayViewController () { +} + +@property (nonatomic, strong) UIWindow *window; +@property (nonatomic, strong, readwrite) CTInAppNotification *notification; +@property (nonatomic, assign) BOOL shouldPassThroughTouches; + +- (void)showFromWindow:(BOOL)animated; +- (void)hideFromWindow:(BOOL)animated; + +- (void)tappedDismiss; +- (void)buttonTapped:(UIButton*)button; +- (void)handleButtonClickFromIndex:(int)index; +- (void)handleImageTapGesture; +- (UIButton*)setupViewForButton:(UIButton *)buttonView withData:(CTNotificationButton *)button withIndex:(NSInteger)index; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppFCManager.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppFCManager.h new file mode 100644 index 000000000..e9dda9a73 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppFCManager.h @@ -0,0 +1,36 @@ +#import +#import "CTAttachToBatchHeaderDelegate.h" +#import "CTSwitchUserDelegate.h" + +@class CleverTap; +@class CleverTapInstanceConfig; +@class CTInAppNotification; +@class CTInAppEvaluationManager; +@class CTImpressionManager; +@class CTMultiDelegateManager; +@class CTInAppTriggerManager; + +@interface CTInAppFCManager : NSObject + +@property (nonatomic, strong, readonly) CleverTapInstanceConfig *config; +@property (atomic, copy, readonly) NSString *deviceId; +@property (assign, readonly) int localInAppCount; + +- (instancetype)init NS_UNAVAILABLE; +- (instancetype)initWithConfig:(CleverTapInstanceConfig *)config + delegateManager:(CTMultiDelegateManager *)delegateManager + deviceId:(NSString *)deviceId + impressionManager:(CTImpressionManager *)impressionManager + inAppTriggerManager:(CTInAppTriggerManager *)inAppTriggerManager; + +- (NSString *)storageKeyWithSuffix: (NSString *)suffix; +- (void)checkUpdateDailyLimits; +- (BOOL)canShow:(CTInAppNotification *)inapp; +- (void)didShow:(CTInAppNotification *)inapp; +- (void)updateGlobalLimitsPerDay:(int)perDay andPerSession:(int)perSession; +- (void)removeStaleInAppCounts:(NSArray *)staleInApps; +- (BOOL)hasLifetimeCapacityMaxedOut:(CTInAppNotification *)dictionary; +- (BOOL)hasDailyCapacityMaxedOut:(CTInAppNotification *)dictionary; +- (int)getLocalInAppCount; +- (void)incrementLocalInAppCount; +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppHTMLViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppHTMLViewController.h new file mode 100644 index 000000000..e1f29ff84 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppHTMLViewController.h @@ -0,0 +1,7 @@ +#import "CTInAppDisplayViewController.h" + +@interface CTInAppHTMLViewController : CTInAppDisplayViewController + +- (instancetype)initWithNotification:(CTInAppNotification *)notification config:(CleverTapInstanceConfig *)config; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppNotification.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppNotification.h new file mode 100644 index 000000000..92c55d69f --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppNotification.h @@ -0,0 +1,83 @@ +#import +#import +#import "CTInAppUtils.h" +#import "CTNotificationButton.h" +#if !CLEVERTAP_NO_INAPP_SUPPORT +#import "CTCustomTemplateInAppData.h" +#endif + +@interface CTInAppNotification : NSObject + +@property (nonatomic, readonly) NSString *Id; +@property (nonatomic, readonly) NSString *campaignId; +@property (nonatomic, readonly) CTInAppType inAppType; + +@property (nonatomic, copy, readonly) NSString *html; +@property (nonatomic, copy, readonly) NSString *url; +@property (nonatomic, readonly) BOOL excludeFromCaps; +@property (nonatomic, readonly) BOOL showClose; +@property (nonatomic, readonly) BOOL darkenScreen; +@property (nonatomic, readonly) int maxPerSession; +@property (nonatomic, readonly) int totalLifetimeCount; +@property (nonatomic, readonly) int totalDailyCount; +@property (nonatomic, readonly) NSInteger timeToLive; +@property (nonatomic, assign, readonly) char position; +@property (nonatomic, assign, readonly) float height; +@property (nonatomic, assign, readonly) float heightPercent; +@property (nonatomic, assign, readonly) float width; +@property (nonatomic, assign, readonly) float widthPercent; + +@property (nonatomic, copy, readonly) NSString *landscapeContentType; +@property (nonatomic, readonly) UIImage *inAppImage; +@property (nonatomic, readonly) UIImage *inAppImageLandscape; +@property (nonatomic, readonly) NSData *imageData; +@property (nonatomic, strong, readonly) NSURL *imageURL; +@property (nonatomic, readonly) NSData *imageLandscapeData; +@property (nonatomic, strong, readonly) NSURL *imageUrlLandscape; +@property (nonatomic, copy, readonly) NSString *contentType; +@property (nonatomic, copy, readonly) NSString *mediaUrl; +@property (nonatomic, readonly, assign) BOOL mediaIsVideo; +@property (nonatomic, readonly, assign) BOOL mediaIsAudio; +@property (nonatomic, readonly, assign) BOOL mediaIsImage; +@property (nonatomic, readonly, assign) BOOL mediaIsGif; + +@property (nonatomic, copy, readonly) NSString *title; +@property (nonatomic, copy, readonly) NSString *titleColor; +@property (nonatomic, copy, readonly) NSString *message; +@property (nonatomic, copy, readonly) NSString *messageColor; +@property (nonatomic, copy, readonly) NSString *backgroundColor; + +@property (nonatomic, readonly, assign) BOOL showCloseButton; +@property (nonatomic, readonly, assign) BOOL tablet; +@property (nonatomic, readonly, assign) BOOL hasLandscape; +@property (nonatomic, readonly, assign) BOOL hasPortrait; + +@property (nonatomic, readonly) NSArray *buttons; + +@property (nonatomic, copy, readonly) NSDictionary *jsonDescription; +@property (nonatomic) NSString *error; + +@property (nonatomic, copy, readonly) NSDictionary *customExtras; +@property (nonatomic, copy, readwrite) NSDictionary *actionExtras; + +@property (nonatomic, readonly) BOOL isLocalInApp; +@property (nonatomic, readonly) BOOL isPushSettingsSoftAlert; +@property (nonatomic, readonly) BOOL fallBackToNotificationSettings; +@property (nonatomic, readonly) BOOL skipSettingsAlert; + +@property (nonatomic, readonly) CTCustomTemplateInAppData *customTemplateInAppData; + +- (instancetype)init __unavailable; +#if !CLEVERTAP_NO_INAPP_SUPPORT +- (instancetype)initWithJSON:(NSDictionary*)json; +#endif + ++ (NSString * _Nullable)inAppId:(NSDictionary * _Nullable)inApp; + +- (void)setPreparedInAppImage:(UIImage * _Nullable)inAppImage + inAppImageData:(NSData * _Nullable)inAppImageData error:(NSString * _Nullable)error; + +- (void)setPreparedInAppImageLandscape:(UIImage * _Nullable)inAppImageLandscape + inAppImageLandscapeData:(NSData * _Nullable)inAppImageLandscapeData error:(NSString * _Nullable)error; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppNotificationDisplayDelegate.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppNotificationDisplayDelegate.h new file mode 100644 index 000000000..04c079d42 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppNotificationDisplayDelegate.h @@ -0,0 +1,38 @@ +// +// CTInAppNotificationDisplayDelegate.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 21.05.24. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#ifndef CTInAppNotificationDisplayDelegate_h +#define CTInAppNotificationDisplayDelegate_h + +@class CTInAppDisplayViewController; +@class CTInAppNotification; +@class CTNotificationAction; + +@protocol CTInAppNotificationDisplayDelegate + +- (void)notificationDidShow:(CTInAppNotification *)notification; + +- (void)handleNotificationAction:(CTNotificationAction *)action forNotification:(CTInAppNotification *)notification withExtras:(NSDictionary *)extras; + +- (void)notificationDidDismiss:(CTInAppNotification *)notification fromViewController:(CTInAppDisplayViewController *)controller; + +/** + Called when in-app button is tapped for requesting push permission. + */ +- (void)handleInAppPushPrimer:(CTInAppNotification *)notification + fromViewController:(CTInAppDisplayViewController *)controller + withFallbackToSettings:(BOOL)isFallbackToSettings; + +/** + Called to notify that local in-app push primer is dismissed. + */ +- (void)inAppPushPrimerDidDismissed; + +@end + +#endif /* Header_h */ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppUtils.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppUtils.h new file mode 100644 index 000000000..6c67df355 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInAppUtils.h @@ -0,0 +1,37 @@ + +#import + +typedef NS_ENUM(NSUInteger, CTInAppType){ + CTInAppTypeUnknown, + CTInAppTypeHTML, + CTInAppTypeInterstitial, + CTInAppTypeHalfInterstitial, + CTInAppTypeCover, + CTInAppTypeHeader, + CTInAppTypeFooter, + CTInAppTypeAlert, + CTInAppTypeInterstitialImage, + CTInAppTypeHalfInterstitialImage, + CTInAppTypeCoverImage, + CTInAppTypeCustom +}; + +typedef NS_ENUM(NSUInteger, CTInAppActionType){ + CTInAppActionTypeUnknown, + CTInAppActionTypeClose, + CTInAppActionTypeOpenURL, + CTInAppActionTypeKeyValues, + CTInAppActionTypeCustom, + CTInAppActionTypeRequestForPermission +}; + +@interface CTInAppUtils : NSObject + ++ (CTInAppType)inAppTypeFromString:(NSString *_Nonnull)type; ++ (NSString * _Nonnull)inAppTypeString:(CTInAppType)type; ++ (CTInAppActionType)inAppActionTypeFromString:(NSString *_Nonnull)type; ++ (NSString * _Nonnull)inAppActionTypeString:(CTInAppActionType)type; ++ (NSBundle *_Nullable)bundle; ++ (NSString *_Nullable)getXibNameForControllerName:(NSString *_Nonnull)controllerName; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInboxBaseMessageCell.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInboxBaseMessageCell.h new file mode 100644 index 000000000..a3bde1bc1 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInboxBaseMessageCell.h @@ -0,0 +1,89 @@ +#import +#import +#import +#import +#import +#import +#import "CleverTap+Inbox.h" +#import "CTInboxMessageActionView.h" +#import "CTConstants.h" +#import "CTInboxUtils.h" +#import "CTUIUtils.h" +#import "CTVideoThumbnailGenerator.h" + +@class SDAnimatedImageView; + +typedef NS_OPTIONS(NSUInteger , CTMediaPlayerCellType) { + CTMediaPlayerCellTypeNone, + CTMediaPlayerCellTypeTopLandscape, + CTMediaPlayerCellTypeTopPortrait, + CTMediaPlayerCellTypeMiddleLandscape, + CTMediaPlayerCellTypeMiddlePortrait, + CTMediaPlayerCellTypeBottomLandscape, + CTMediaPlayerCellTypeBottomPortrait +}; + +@interface CTInboxBaseMessageCell : UITableViewCell + +@property (strong, nonatomic) IBOutlet UIView *containerView; +@property (strong, nonatomic) IBOutlet SDAnimatedImageView *cellImageView; +@property (strong, nonatomic) IBOutlet UILabel *titleLabel; +@property (strong, nonatomic) IBOutlet UILabel *bodyLabel; +@property (strong, nonatomic) IBOutlet UILabel *dateLabel; +@property (strong, nonatomic) IBOutlet UIView *readView; +@property (strong, nonatomic) IBOutlet CTInboxMessageActionView *actionView; +@property (strong, nonatomic) IBOutlet UIView *avPlayerContainerView; +@property (strong, nonatomic) IBOutlet UIView *avPlayerControlsView; +@property (strong, nonatomic) IBOutlet UIView *mediaContainerView; + +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *imageViewWidthConstraint; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *imageViewHeightConstraint; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *imageViewLRatioConstraint; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *imageViewPRatioConstraint; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *actionViewHeightConstraint; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *readViewWidthConstraint; + +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *dividerCenterXConstraint; + +// video controls +@property (nonatomic, strong) UIButton *volumeButton; +@property (nonatomic, strong) IBOutlet UIButton *playButton; +@property (nonatomic, strong, readwrite) AVPlayer *avPlayer; +@property (nonatomic, strong) AVPlayerLayer *avPlayerLayer; +@property (nonatomic, weak) NSTimer *controllersTimer; +@property (nonatomic, assign) NSInteger controllersTimeoutPeriod; +@property (nonatomic, assign) BOOL isAVMuted; +@property (nonatomic, assign) BOOL isControlsHidden; +@property (atomic, assign) BOOL hasVideoPoster; +@property (nonatomic, strong) CTVideoThumbnailGenerator *thumbnailGenerator; +@property (nonatomic, strong) CleverTapInboxMessage *message; +@property (atomic, assign) CTMediaPlayerCellType mediaPlayerCellType; +@property (atomic, assign) CTInboxMessageType messageType; +@property (nonatomic, strong) IBOutlet UIActivityIndicatorView *activityIndicator; + + +@property (nonatomic, assign) SDWebImageOptions sdWebImageOptions; +@property (nonatomic, strong) SDWebImageContext *sdWebImageContext; + +- (void)volumeButtonTapped:(UIButton *)sender; + +- (void)configureForMessage:(CleverTapInboxMessage *)message; +- (void)configureActionView:(BOOL)hide; +- (BOOL)mediaIsEmpty; +- (BOOL)orientationIsPortrait; +- (BOOL)deviceOrientationIsLandscape; +- (UIImage *)getPortraitPlaceHolderImage; +- (UIImage *)getLandscapePlaceHolderImage; + +- (BOOL)hasAudio; +- (BOOL)hasVideo; +- (void)setupMediaPlayer; +- (void)pause; +- (void)play; +- (void)mute:(BOOL)mute; +- (CGRect)videoRect; + +- (void)setupInboxMessageActions:(CleverTapInboxMessageContent *)content; +- (void)handleOnMessageTapGesture:(UITapGestureRecognizer *)sender; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInboxController.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInboxController.h new file mode 100755 index 000000000..c4d8a8327 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInboxController.h @@ -0,0 +1,36 @@ +#import + +@protocol CTInboxDelegate +@required +- (void)inboxMessagesDidUpdate; +@end + +NS_ASSUME_NONNULL_BEGIN + +@interface CTInboxController : NSObject + +@property (nonatomic, assign, readonly) BOOL isInitialized; +@property (nonatomic, assign, readonly) NSInteger count; +@property (nonatomic, assign, readonly) NSInteger unreadCount; +@property (nonatomic, assign, readonly, nullable) NSArray *messages; +@property (nonatomic, assign, readonly, nullable) NSArray *unreadMessages; + +@property (nonatomic, weak) id delegate; + + +- (instancetype) init __unavailable; + +// blocking, call off main thread +- (instancetype _Nullable)initWithAccountId:(NSString *)accountId + guid:(NSString *)guid; + +- (void)updateMessages:(NSArray *)messages; +- (NSDictionary * _Nullable )messageForId:(NSString *)messageId; +- (void)deleteMessageWithId:(NSString *)messageId; +- (void)deleteMessagesWithId:(NSArray *_Nonnull)messageIds; +- (void)markReadMessageWithId:(NSString *)messageId; +- (void)markReadMessagesWithId:(NSArray *_Nonnull)messageIds; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInboxIconMessageCell.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInboxIconMessageCell.h new file mode 100644 index 000000000..bd38ff588 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInboxIconMessageCell.h @@ -0,0 +1,10 @@ +#import "CTInboxBaseMessageCell.h" + +@interface CTInboxIconMessageCell : CTInboxBaseMessageCell + +@property (strong, nonatomic) IBOutlet UIImageView *cellIcon; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *cellIconWidthContraint; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *cellIconRatioContraint; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *cellIconHeightContraint; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInboxMessageActionView.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInboxMessageActionView.h new file mode 100644 index 000000000..d3eb69e0c --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInboxMessageActionView.h @@ -0,0 +1,23 @@ +#import + +@protocol CTInboxActionViewDelegate +@required +- (void)handleInboxMessageTappedAtIndex:(int)index; +@end + +NS_ASSUME_NONNULL_BEGIN + +@interface CTInboxMessageActionView : UIView + +@property (strong, nonatomic) IBOutlet UIButton *firstButton; +@property (strong, nonatomic) IBOutlet UIButton *secondButton; +@property (strong, nonatomic) IBOutlet UIButton *thirdButton; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *secondButtonWidthConstraint; +@property (strong, nonatomic) IBOutlet NSLayoutConstraint *thirdButtonWidthConstraint; +@property (nonatomic, weak) id delegate; + +- (UIButton*)setupViewForButton:(UIButton *)buttonView forText:(NSDictionary *)messageButton withIndex:(int)index; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInboxSimpleMessageCell.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInboxSimpleMessageCell.h new file mode 100755 index 000000000..2be401b56 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInboxSimpleMessageCell.h @@ -0,0 +1,7 @@ +#import "CTInboxBaseMessageCell.h" + +@class SDAnimatedImageView; + +@interface CTInboxSimpleMessageCell : CTInboxBaseMessageCell + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInboxUtils.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInboxUtils.h new file mode 100644 index 000000000..0bf6514bd --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInboxUtils.h @@ -0,0 +1,18 @@ + +#import + +typedef NS_ENUM(NSUInteger, CTInboxMessageType){ + CTInboxMessageTypeUnknown, + CTInboxMessageTypeSimple, + CTInboxMessageTypeMessageIcon, + CTInboxMessageTypeCarousel, + CTInboxMessageTypeCarouselImage, +}; + +@interface CTInboxUtils : NSObject + ++ (CTInboxMessageType)inboxMessageTypeFromString:(NSString *_Nonnull)type; ++ (NSString *_Nullable)getXibNameForControllerName:(NSString *_Nonnull)controllerName; ++ (NSBundle *_Nullable)bundle:(Class _Nonnull)bundleClass; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInterstitialImageViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInterstitialImageViewController.h new file mode 100644 index 000000000..e2300179e --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInterstitialImageViewController.h @@ -0,0 +1,6 @@ + +#import "CTImageInAppViewController.h" + +@interface CTInterstitialImageViewController : CTImageInAppViewController + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInterstitialViewController.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInterstitialViewController.h new file mode 100644 index 000000000..ee212b28e --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTInterstitialViewController.h @@ -0,0 +1,6 @@ + +#import "CTInAppDisplayViewController.h" + +@interface CTInterstitialViewController : CTInAppDisplayViewController + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTKnownProfileFields.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTKnownProfileFields.h new file mode 100644 index 000000000..a85e730eb --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTKnownProfileFields.h @@ -0,0 +1,12 @@ +#import + +// Needs to start from 100 +typedef enum { + Name = 100, Email, Education, Married, DOB, Birthday, Employed, Gender, Phone, Age, UNKNOWN +} KnownField; + +@interface CTKnownProfileFields : NSObject + ++ (KnownField)getKnownFieldIfPossibleForKey:(NSString *)key; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTLocalDataStore.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTLocalDataStore.h new file mode 100644 index 000000000..2bbd9c02b --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTLocalDataStore.h @@ -0,0 +1,47 @@ +#import +#import "CTDeviceInfo.h" +#import "CTDispatchQueueManager.h" + +@class CleverTapInstanceConfig; +@class CleverTapEventDetail; + +@interface CTLocalDataStore : NSObject + + +- (instancetype)initWithConfig:(CleverTapInstanceConfig *)config profileValues:(NSDictionary*)profileValues andDeviceInfo:(CTDeviceInfo*)deviceInfo dispatchQueueManager:(CTDispatchQueueManager*)dispatchQueueManager; + +- (void)persistEvent:(NSDictionary *)event; + +- (void)addDataSyncFlag:(NSMutableDictionary *)event; + +- (NSDictionary*)syncWithRemoteData:(NSDictionary *)responseData; + +- (NSTimeInterval)getFirstTimeForEvent:(NSString *)event; + +- (NSTimeInterval)getLastTimeForEvent:(NSString *)event; + +- (int)getOccurrencesForEvent:(NSString *)event; + +- (NSDictionary *)getEventHistory; + +- (CleverTapEventDetail *)getEventDetail:(NSString *)event; + +- (void)setProfileFields:(NSDictionary *)fields; + +- (void)setProfileFieldWithKey:(NSString *)key andValue:(id)value; + +- (void)removeProfileFieldsWithKeys:(NSArray *)keys; + +- (void)removeProfileFieldForKey:(NSString *)key; + +- (id)getProfileFieldForKey:(NSString *)key; + +- (NSDictionary *> *)getUserAttributeChangeProperties:(NSDictionary *)event; + +- (void)persistLocalProfileIfRequired; + +- (NSDictionary*)generateBaseProfile; + +- (void)changeUser; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTLogger.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTLogger.h new file mode 100644 index 000000000..b8a8160b1 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTLogger.h @@ -0,0 +1,8 @@ +#import + +@interface CTLogger : NSObject + ++ (void)setDebugLevel:(int)level; ++ (int)getDebugLevel; ++ (void)logInternalError:(NSException *)e; +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTNotificationButton.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTNotificationButton.h new file mode 100644 index 000000000..20af03e5f --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTNotificationButton.h @@ -0,0 +1,28 @@ +#import +#import "CTInAppUtils.h" +#import "CTNotificationAction.h" + +@interface CTNotificationButton : NSObject + +@property (nonatomic, copy, readonly) NSString *text; +@property (nonatomic, copy, readonly) NSString *textColor; +@property (nonatomic, copy, readonly) NSString *borderRadius; +@property (nonatomic, copy, readonly) NSString *borderColor; +@property (nonatomic, copy, readonly) NSDictionary *customExtras; +@property (nonatomic, readonly) CTInAppActionType type; +@property (nonatomic, readonly) BOOL fallbackToSettings; + +@property (nonatomic, strong, readonly) CTNotificationAction *action; + +@property (nonatomic, copy, readonly) NSString *backgroundColor; +@property (nonatomic, readonly) NSURL *actionURL; + +@property (nonatomic, copy, readonly) NSDictionary *jsonDescription; + +@property (nonatomic, readonly) NSString *error; + +- (instancetype)init __unavailable; + +- (instancetype)initWithJSON:(NSDictionary *)json; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTPinnedNSURLSessionDelegate.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTPinnedNSURLSessionDelegate.h new file mode 100644 index 000000000..3ab32b1ff --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTPinnedNSURLSessionDelegate.h @@ -0,0 +1,15 @@ +#if CLEVERTAP_SSL_PINNING +@import Foundation; + +@class CleverTapInstanceConfig; + +@interface CTPinnedNSURLSessionDelegate : NSObject + +- (instancetype)initWithConfig:(CleverTapInstanceConfig *)config; + +- (void)pinSSLCerts:(NSArray *)filenames forDomains:(NSArray *)domains; + +- (void)URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential))completionHandler; + +@end +#endif diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTPlistInfo.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTPlistInfo.h new file mode 100644 index 000000000..3c2b322e2 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTPlistInfo.h @@ -0,0 +1,25 @@ +#import +#import "CleverTap.h" + +@interface CTPlistInfo : NSObject + +@property (nonatomic, strong, readonly, nullable) NSString *accountId; +@property (nonatomic, strong, readonly, nullable) NSString *accountToken; +@property (nonatomic, strong, readonly, nullable) NSString *accountRegion; +@property (nonatomic, strong, readonly, nullable) NSString *proxyDomain; +@property (nonatomic, strong, readonly, nullable) NSString *spikyProxyDomain; +@property (nonatomic, strong, readonly, nullable) NSArray* registeredUrlSchemes; +@property (nonatomic, assign, readonly) BOOL disableAppLaunchedEvent; +@property (nonatomic, assign, readonly) BOOL useCustomCleverTapId; +@property (nonatomic, assign, readonly) BOOL beta; +@property (nonatomic, assign, readonly) BOOL disableIDFV; +@property (nonatomic, assign) BOOL enableFileProtection; +@property (nonatomic, strong, readonly, nullable) NSString *handshakeDomain; +@property (nonatomic, readonly) CleverTapEncryptionLevel encryptionLevel; + ++ (instancetype _Nullable)sharedInstance; +- (void)setCredentialsWithAccountID:(NSString * _Nonnull)accountID token:(NSString * _Nonnull)token region:(NSString * _Nullable)region; +- (void)setCredentialsWithAccountID:(NSString * _Nonnull)accountID token:(NSString * _Nonnull)token proxyDomain:(NSString * _Nonnull)proxyDomain; +- (void)setCredentialsWithAccountID:(NSString * _Nonnull)accountID token:(NSString * _Nonnull)token proxyDomain:(NSString * _Nonnull)proxyDomain spikyProxyDomain:(NSString * _Nullable)spikyProxyDomain; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTPreferences.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTPreferences.h new file mode 100644 index 000000000..cab14306b --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTPreferences.h @@ -0,0 +1,30 @@ +#import +#import "CleverTapInstanceConfig.h" + +@interface CTPreferences : NSObject + ++ (long)getIntForKey:(NSString *_Nonnull)key withResetValue:(long)resetValue; + ++ (void)putInt:(long)resetValue forKey:(NSString *_Nonnull)key; + ++ (NSString *_Nullable)getStringForKey:(NSString *_Nonnull)key withResetValue:(NSString *_Nullable)resetValue; + ++ (void)putString:(NSString *_Nonnull)resetValue forKey:(NSString *_Nonnull)key; + ++ (id _Nonnull)getObjectForKey:(NSString *_Nonnull)key; + ++ (void)putObject:(id _Nonnull)object forKey:(NSString *_Nonnull)key; + ++ (void)removeObjectForKey:(NSString *_Nonnull)key; + ++ (id _Nullable)unarchiveFromFile:(NSString *_Nonnull)filename ofType:(Class _Nonnull)cls removeFile:(BOOL)remove; + ++ (id _Nullable)unarchiveFromFile:(NSString *_Nonnull)filename ofTypes:(nonnull NSSet *)classes removeFile:(BOOL)remove; + ++ (BOOL)archiveObject:(id _Nonnull)object forFileName:(NSString *_Nonnull)fileName config: (CleverTapInstanceConfig *_Nonnull)config; + ++ (NSString *_Nonnull)storageKeyWithSuffix: (NSString *_Nonnull)suffix config: (CleverTapInstanceConfig *_Nonnull)config; + ++ (NSString *_Nonnull)filePathfromFileName:(NSString *_Nonnull)filename; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTProductConfigController.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTProductConfigController.h new file mode 100644 index 000000000..f66ab221d --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTProductConfigController.h @@ -0,0 +1,38 @@ +#import +#import "CleverTap+ProductConfig.h" + +@protocol CTProductConfigDelegate +@required +- (void)productConfigDidFetch; +- (void)productConfigDidActivate; +- (void)productConfigDidInitialize; +@end + +@class CleverTapInstanceConfig; + +@interface CTProductConfigController : NSObject + +@property (nonatomic, assign, readonly) BOOL isInitialized; + +- (instancetype _Nullable ) init __unavailable; + +// blocking, call off main thread +- (instancetype _Nullable)initWithConfig:(CleverTapInstanceConfig *_Nonnull)config + guid:(NSString *_Nonnull)guid + delegate:(id_Nonnull)delegate; + +- (void)updateProductConfig:(NSArray *_Nullable)productConfig; + +- (void)activate; + +- (void)fetchAndActivate; + +- (void)reset; + +- (void)setDefaults:(NSDictionary *_Nullable)defaults; + +- (void)setDefaultsFromPlistFileName:(NSString *_Nullable)fileName; + +- (CleverTapConfigValue *_Nullable)get:(NSString* _Nonnull)key; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTProfileBuilder.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTProfileBuilder.h new file mode 100644 index 000000000..308939df9 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTProfileBuilder.h @@ -0,0 +1,30 @@ +#import + +@class CTValidationResult; +@class CTLocalDataStore; + +@interface CTProfileBuilder : NSObject + ++ (void)build:(NSDictionary *_Nonnull)profile completionHandler:(void(^ _Nonnull )(NSDictionary* _Nullable customFields, NSDictionary* _Nullable systemFields, NSArray* _Nullable errors))completion; + ++ (void)buildRemoveValueForKey:(NSString *_Nonnull)key completionHandler:(void(^ _Nonnull )(NSDictionary *_Nullable customFields, NSDictionary *_Nullable systemFields, NSArray *_Nullable errors))completion; + ++ (void)buildSetMultiValues:(NSArray *_Nonnull)values forKey:(NSString *_Nullable)key localDataStore:(CTLocalDataStore*_Nullable)dataStore completionHandler:(void(^ _Nonnull )(NSDictionary *_Nullable customFields, NSArray* _Nullable updatedMultiValue, NSArray *_Nullable errors))completion; + ++ (void)buildAddMultiValue:(NSString *_Nonnull)value forKey:(NSString *_Nullable)key localDataStore:(CTLocalDataStore*_Nullable)dataStore completionHandler:(void(^ _Nonnull )(NSDictionary *_Nullable customFields, NSArray* _Nullable updatedMultiValue, NSArray* _Nullable errors))completion; + ++ (void)buildAddMultiValues:(NSArray *_Nonnull)values forKey:(NSString *_Nullable)key localDataStore:(CTLocalDataStore*_Nullable)dataStore completionHandler:(void(^ _Nonnull )(NSDictionary *_Nullable customFields, NSArray* _Nullable updatedMultiValue, NSArray *_Nullable errors))completion; + ++ (void)buildRemoveMultiValue:(NSString *_Nonnull)value forKey:(NSString *_Nullable)key localDataStore:(CTLocalDataStore*_Nullable)dataStore completionHandler:(void(^ _Nonnull )(NSDictionary *_Nullable customFields, NSArray* _Nullable updatedMultiValue, NSArray *_Nullable errors))completion; + ++ (void)buildRemoveMultiValues:(NSArray *_Nonnull)values forKey:(NSString *_Nullable)key localDataStore:(CTLocalDataStore*_Nullable)dataStore completionHandler:(void(^ _Nonnull )(NSDictionary *_Nullable customFields, NSArray* _Nullable updatedMultiValue, NSArray *_Nullable errors))completion; + ++ (void)buildIncrementValueBy:(NSNumber *_Nonnull)value forKey: (NSString *_Nonnull)key localDataStore:(CTLocalDataStore* _Nonnull)dataStore completionHandler:(void(^ _Nonnull )(NSDictionary *_Nullable operatorDict, NSNumber *_Nullable updatedValue, NSArray *_Nullable errors))completion; + ++ (void)buildDecrementValueBy:(NSNumber *_Nonnull)value forKey: (NSString *_Nonnull)key localDataStore:(CTLocalDataStore* _Nonnull)dataStore completionHandler:(void(^ _Nonnull )(NSDictionary *_Nullable operatorDict, NSNumber *_Nullable updatedValue, NSArray *_Nullable errors))completion; + ++ (NSNumber *_Nullable)_getUpdatedValue:(NSNumber *_Nonnull)value forKey:(NSString *_Nonnull)key withCommand:(NSString *_Nonnull)command cachedValue:(id _Nullable)cachedValue; + ++ (NSArray *_Nullable) _constructLocalMultiValueWithOriginalValues:(NSArray * _Nonnull)values forKey:(NSString * _Nonnull)key usingCommand:(NSString * _Nonnull)command localDataStore:(CTLocalDataStore* _Nonnull)dataStore; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTRequest.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTRequest.h new file mode 100644 index 000000000..c61cae568 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTRequest.h @@ -0,0 +1,27 @@ +// +// CTRequest.h +// CleverTapSDK +// +// Created by Akash Malhotra on 09/01/23. +// Copyright © 2023 CleverTap. All rights reserved. +// + +#import +#import + +typedef void (^CTNetworkResponseBlock)(NSData * _Nullable data, NSURLResponse *_Nullable response); +typedef void (^CTNetworkResponseErrorBlock)(NSError * _Nullable error); + +@interface CTRequest : NSObject + +- (CTRequest *_Nonnull)initWithHttpMethod:(NSString *_Nonnull)httpMethod config:(CleverTapInstanceConfig *_Nonnull)config params:(id _Nullable)params url:(NSString *_Nonnull)url; + +- (void)onResponse:(CTNetworkResponseBlock _Nonnull)responseBlock; +- (void)onError:(CTNetworkResponseErrorBlock _Nonnull)errorBlock; + +@property (nonatomic, strong, nonnull) NSMutableURLRequest *urlRequest; +@property (nonatomic, strong, nonnull) CTNetworkResponseBlock responseBlock; +@property (nonatomic, strong, nullable) CTNetworkResponseErrorBlock errorBlock; + +@end + diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTRequestFactory.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTRequestFactory.h new file mode 100644 index 000000000..175a98de4 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTRequestFactory.h @@ -0,0 +1,22 @@ +// +// CTRequestFactory.h +// CleverTapSDK +// +// Created by Akash Malhotra on 09/01/23. +// Copyright © 2024 CleverTap. All rights reserved. +// + +#import +#import "CTRequest.h" +#import + +@interface CTRequestFactory : NSObject + ++ (CTRequest *_Nonnull)helloRequestWithConfig:(CleverTapInstanceConfig *_Nonnull)config; ++ (CTRequest *_Nonnull)eventRequestWithConfig:(CleverTapInstanceConfig *_Nonnull)config params:(id _Nullable)params url:(NSString *_Nonnull)url; ++ (CTRequest *_Nonnull)syncVarsRequestWithConfig:(CleverTapInstanceConfig *_Nonnull)config params:(id _Nullable)params domain:(NSString *_Nonnull)domain; ++ (CTRequest *_Nonnull)syncTemplatesRequestWithConfig:(CleverTapInstanceConfig *_Nonnull)config params:(id _Nullable)params domain:(NSString *_Nonnull)domain; + +@end + + diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTSwipeView.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTSwipeView.h new file mode 100755 index 000000000..57b0f9321 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTSwipeView.h @@ -0,0 +1,129 @@ +// +// SwipeView.h +// +// Version 1.3.2 +// +// Created by Nick Lockwood on 03/09/2010. +// Copyright 2010 Charcoal Design +// +// Distributed under the permissive zlib License +// Get the latest version of SwipeView from here: +// +// https://github.com/nicklockwood/SwipeView +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would be +// appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not be +// misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source distribution. +// + + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wauto-import" +#pragma GCC diagnostic ignored "-Wobjc-missing-property-synthesis" + + +#import +#undef weak_delegate +#if __has_feature(objc_arc) && __has_feature(objc_arc_weak) +#define weak_delegate weak +#else +#define weak_delegate unsafe_unretained +#endif + + +#import + + +typedef NS_ENUM(NSUInteger, CTSwipeViewAlignment) +{ + CTSwipeViewAlignmentEdge = 0, + CTSwipeViewAlignmentCenter +}; + + +@protocol CTSwipeViewDataSource, CTSwipeViewDelegate; + +@interface CTSwipeView : UIView + +@property (nonatomic, weak_delegate) IBOutlet id dataSource; +@property (nonatomic, weak_delegate) IBOutlet id delegate; +@property (nonatomic, readonly) NSInteger numberOfItems; +@property (nonatomic, readonly) NSInteger numberOfPages; +@property (nonatomic, readonly) CGSize itemSize; +@property (nonatomic, assign) NSInteger itemsPerPage; +@property (nonatomic, assign) BOOL truncateFinalPage; +@property (nonatomic, strong, readonly) NSArray *indexesForVisibleItems; +@property (nonatomic, strong, readonly) NSArray *visibleItemViews; +@property (nonatomic, strong, readonly) UIView *currentItemView; +@property (nonatomic, assign) NSInteger currentItemIndex; +@property (nonatomic, assign) NSInteger currentPage; +@property (nonatomic, assign) CTSwipeViewAlignment alignment; +@property (nonatomic, assign) CGFloat scrollOffset; +@property (nonatomic, assign, getter = isPagingEnabled) BOOL pagingEnabled; +@property (nonatomic, assign, getter = isScrollEnabled) BOOL scrollEnabled; +@property (nonatomic, assign, getter = isWrapEnabled) BOOL wrapEnabled; +@property (nonatomic, assign) BOOL delaysContentTouches; +@property (nonatomic, assign) BOOL bounces; +@property (nonatomic, assign) float decelerationRate; +@property (nonatomic, assign) CGFloat autoscroll; +@property (nonatomic, readonly, getter = isDragging) BOOL dragging; +@property (nonatomic, readonly, getter = isDecelerating) BOOL decelerating; +@property (nonatomic, readonly, getter = isScrolling) BOOL scrolling; +@property (nonatomic, assign) BOOL defersItemViewLoading; +@property (nonatomic, assign, getter = isVertical) BOOL vertical; + +- (void)reloadData; +- (void)reloadItemAtIndex:(NSInteger)index; +- (void)scrollByOffset:(CGFloat)offset duration:(NSTimeInterval)duration; +- (void)scrollToOffset:(CGFloat)offset duration:(NSTimeInterval)duration; +- (void)scrollByNumberOfItems:(NSInteger)itemCount duration:(NSTimeInterval)duration; +- (void)scrollToItemAtIndex:(NSInteger)index duration:(NSTimeInterval)duration; +- (void)scrollToPage:(NSInteger)page duration:(NSTimeInterval)duration; +- (UIView *)itemViewAtIndex:(NSInteger)index; +- (NSInteger)indexOfItemView:(UIView *)view; +- (NSInteger)indexOfItemViewOrSubview:(UIView *)view; + +@end + + +@protocol CTSwipeViewDataSource + +- (NSInteger)numberOfItemsInSwipeView:(CTSwipeView *)swipeView; +- (UIView *)swipeView:(CTSwipeView *)swipeView viewForItemAtIndex:(NSInteger)index reusingView:(UIView *)view; + +@end + + +@protocol CTSwipeViewDelegate +@optional + +- (CGSize)swipeViewItemSize:(CTSwipeView *)swipeView; +- (void)swipeViewDidScroll:(CTSwipeView *)swipeView; +- (void)swipeViewCurrentItemIndexDidChange:(CTSwipeView *)swipeView; +- (void)swipeViewWillBeginDragging:(CTSwipeView *)swipeView; +- (void)swipeViewDidEndDragging:(CTSwipeView *)swipeView willDecelerate:(BOOL)decelerate; +- (void)swipeViewWillBeginDecelerating:(CTSwipeView *)swipeView; +- (void)swipeViewDidEndDecelerating:(CTSwipeView *)swipeView; +- (void)swipeViewDidEndScrollingAnimation:(CTSwipeView *)swipeView; +- (BOOL)swipeView:(CTSwipeView *)swipeView shouldSelectItemAtIndex:(NSInteger)index; +- (void)swipeView:(CTSwipeView *)swipeView didSelectItemAtIndex:(NSInteger)index; + +@end + + +#pragma GCC diagnostic pop + diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTSwizzle.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTSwizzle.h new file mode 100644 index 000000000..e0f467656 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTSwizzle.h @@ -0,0 +1,51 @@ + +// JRSwizzle.h semver:1.1.0 +// Copyright (c) 2007-2016 Jonathan 'Wolf' Rentzsch: http://rentzsch.com +// Some rights reserved: http://opensource.org/licenses/mit +// https://github.com/rentzsch/jrswizzle + +// renamed methods to conform to CleverTap prefixing + +#import + +@interface NSObject (CTSwizzle) + ++ (BOOL)ct_swizzleMethod:(SEL)origSel_ withMethod:(SEL)altSel_ error:(NSError**)error_; ++ (BOOL)ct_swizzleClassMethod:(SEL)origSel_ withClassMethod:(SEL)altSel_ error:(NSError**)error_; + + +/** + ``` + __block NSInvocation *invocation = nil; + invocation = [self jr_swizzleMethod:@selector(initWithCoder:) withBlock:^(id obj, NSCoder *coder) { + NSLog(@"before %@, coder %@", obj, coder); + + [invocation setArgument:&coder atIndex:2]; + [invocation invokeWithTarget:obj]; + + id ret = nil; + [invocation getReturnValue:&ret]; + + NSLog(@"after %@, coder %@", obj, coder); + + return ret; + } error:nil]; + ``` + */ ++ (NSInvocation*)ct_swizzleMethod:(SEL)origSel withBlock:(id)block error:(NSError**)error; + +/** + ``` + __block NSInvocation *classInvocation = nil; + classInvocation = [self jr_swizzleClassMethod:@selector(test) withBlock:^() { + NSLog(@"before"); + + [classInvocation invoke]; + + NSLog(@"after"); + } error:nil]; + ``` + */ ++ (NSInvocation*)ct_swizzleClassMethod:(SEL)origSel withBlock:(id)block error:(NSError**)error; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTUIUtils.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTUIUtils.h new file mode 100644 index 000000000..936a8cbcc --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTUIUtils.h @@ -0,0 +1,29 @@ + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface CTUIUtils : NSObject + ++ (NSBundle *)bundle; ++ (NSBundle *)bundle:(Class)bundleClass; ++ (UIApplication * _Nullable)getSharedApplication; ++ (UIWindow * _Nullable)getKeyWindow; +#if !(TARGET_OS_TV) ++ (BOOL)isDeviceOrientationLandscape; +#endif ++ (BOOL)isUserInterfaceIdiomPad; ++ (CGFloat)getLeftMargin; + ++ (UIImage *)getImageForName:(NSString *)name; + ++ (UIColor *)ct_colorWithHexString:(NSString *)string; ++ (UIColor *)ct_colorWithHexString:(NSString *)string withAlpha:(CGFloat)alpha; + ++ (BOOL)runningInsideAppExtension; ++ (void)openURL:(NSURL *)ctaURL forModule:(NSString *)ctModule; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTUriHelper.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTUriHelper.h new file mode 100644 index 000000000..6b494063e --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTUriHelper.h @@ -0,0 +1,8 @@ +#import + +@interface CTUriHelper : NSObject + ++ (NSDictionary *)getUrchinFromUri:(NSString *)uri withSourceApp:(NSString *)sourceApp; ++ (NSDictionary *)getQueryParameters:(NSURL *)url andDecode:(BOOL)decode; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTUserInfoMigrator.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTUserInfoMigrator.h new file mode 100644 index 000000000..4483b7f34 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTUserInfoMigrator.h @@ -0,0 +1,15 @@ +// +// CTUserInfoMigrator.h +// Pods +// +// Created by Kushagra Mishra on 29/05/24. +// + +#import +#import "CleverTapInstanceConfig.h" + +@interface CTUserInfoMigrator : NSObject + ++ (void)migrateUserInfoFileForDeviceID:(NSString *)device_id config:(CleverTapInstanceConfig *) config; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTUserMO+CoreDataProperties.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTUserMO+CoreDataProperties.h new file mode 100755 index 000000000..b97b1a6a7 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTUserMO+CoreDataProperties.h @@ -0,0 +1,23 @@ +#import "CTUserMO.h" + +@class CTMessageMO; + +NS_ASSUME_NONNULL_BEGIN + +@interface CTUserMO (CoreDataProperties) + ++ (instancetype _Nullable)fetchOrCreateFromJSON:(NSDictionary *)json forContext:(NSManagedObjectContext *)context; +- (BOOL)updateMessages:(NSArray *)messages forContext:(NSManagedObjectContext *)context; + +@property (nullable, nonatomic, copy) NSString *accountId; +@property (nullable, nonatomic, copy) NSString *guid; +@property (nullable, nonatomic, copy) NSString *identifier; +@property (nullable, nonatomic, retain) NSOrderedSet *messages; + +@end + +@interface CTUserMO (CoreDataGeneratedAccessors) + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTUserMO.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTUserMO.h new file mode 100755 index 000000000..fd98fc866 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTUserMO.h @@ -0,0 +1,8 @@ +#import +#import + +@interface CTUserMO : NSManagedObject + +@end + +#import "CTUserMO+CoreDataProperties.h" diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTUtils.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTUtils.h new file mode 100644 index 000000000..26a1b247e --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTUtils.h @@ -0,0 +1,18 @@ +#import +#import + +@interface CTUtils : NSObject + ++ (NSString *)urlEncodeString:(NSString*)s; ++ (BOOL)doesString:(NSString *)s startWith:(NSString *)prefix; ++ (NSString *)deviceTokenStringFromData:(NSData *)tokenData; ++ (double)toTwoPlaces:(double)x; ++ (BOOL)isNullOrEmpty:(id)obj; ++ (NSString *)jsonObjectToString:(id)object; ++ (NSString *)getKeyWithSuffix:(NSString *)suffix accountID:(NSString *)accountID; ++ (void)runSyncMainQueue:(void (^)(void))block; ++ (double)haversineDistance:(CLLocationCoordinate2D)coordinateA coordinateB:(CLLocationCoordinate2D)coordinateB; ++ (NSNumber * _Nullable)numberFromString:(NSString * _Nullable)string; ++ (NSNumber * _Nullable)numberFromString:(NSString * _Nullable)string withLocale:(NSLocale * _Nullable)locale; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTValidationResult.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTValidationResult.h new file mode 100644 index 000000000..3bf9f446e --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTValidationResult.h @@ -0,0 +1,19 @@ +#import + +@interface CTValidationResult : NSObject + +- (NSString *)errorDesc; + +- (NSObject *)object; + +- (int)errorCode; + +- (void)setErrorDesc:(NSString *)errorDsc; + +- (void)setObject:(NSObject *)obj; + +- (void)setErrorCode:(int)errorCod; + ++ (CTValidationResult *) resultWithErrorCode:(int) code andMessage:(NSString*) message; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTValidator.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTValidator.h new file mode 100644 index 000000000..da307440d --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTValidator.h @@ -0,0 +1,33 @@ +#import + +typedef NS_ENUM(int, CTValidatorContext) { + CTValidatorContextEvent, + CTValidatorContextProfile, + CTValidatorContextOther +}; + +@class CTValidationResult; + +@interface CTValidator : NSObject + ++ (CTValidationResult *)cleanEventName:(NSString *)name; + ++ (CTValidationResult *)cleanObjectKey:(NSString *)name; + ++ (CTValidationResult *)cleanMultiValuePropertyKey:(NSString *)name; + ++ (CTValidationResult *)cleanMultiValuePropertyValue:(NSString *)value; + ++ (CTValidationResult *)cleanMultiValuePropertyArray:(NSArray *)multi forKey:(NSString*)key; + ++ (CTValidationResult *)cleanObjectValue:(NSObject *)o context:(CTValidatorContext)context; + ++ (BOOL)isRestrictedEventName:(NSString *)name; + ++ (BOOL)isDiscaredEventName:(NSString *)name; + ++ (void)setDiscardedEvents:(NSArray *)events; + ++ (BOOL)isValidCleverTapId:(NSString *)cleverTapID; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTVar-Internal.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTVar-Internal.h new file mode 100644 index 000000000..b061e66e4 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTVar-Internal.h @@ -0,0 +1,35 @@ +#import "CTVar.h" +@class CTVarCache; + +NS_ASSUME_NONNULL_BEGIN + +@interface CTVar () + +- (instancetype)initWithName:(NSString *)name + withDefaultValue:(NSObject *)defaultValue + withKind:(NSString *)kind + varCache:(CTVarCache *)cache; + +@property (readonly, strong) CTVarCache *varCache; +@property (readonly, strong) NSString *name; +@property (readonly, strong) NSArray *nameComponents; +@property (readonly) BOOL hadStarted; +@property (readonly, strong) NSString *kind; +@property (readonly, strong) NSMutableArray *valueChangedBlocks; +@property (readonly, strong) NSMutableArray *fileReadyBlocks; +@property (nonatomic, unsafe_unretained, nullable) id delegate; +@property (readonly) BOOL hasChanged; +@property (readonly) BOOL shouldDownloadFile; +@property (readonly, strong, nullable) NSString *fileURL; + +- (BOOL)update; +- (void)cacheComputedValues; +- (void)triggerValueChanged; +- (void)triggerFileIsReady; + ++ (BOOL)printedCallbackWarning; ++ (void)setPrintedCallbackWarning:(BOOL)newPrintedCallbackWarning; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTVarCache.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTVarCache.h new file mode 100644 index 000000000..81ca14ab2 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTVarCache.h @@ -0,0 +1,49 @@ +#import +#import "CTVar-Internal.h" +#import "CleverTapInstanceConfig.h" +#import "CTDeviceInfo.h" +#import "CTFileDownloader.h" + +@protocol CTFileVarDelegate +@required +- (void)triggerNoDownloadsPending; +@end + +NS_ASSUME_NONNULL_BEGIN + +typedef void (^CacheUpdateBlock)(void); + +NS_SWIFT_NAME(VarCache) +@interface CTVarCache : NSObject + +- (instancetype)init NS_UNAVAILABLE; + +- (instancetype)initWithConfig:(CleverTapInstanceConfig *)config + deviceInfo:(CTDeviceInfo*)deviceInfo + fileDownloader:(CTFileDownloader *)fileDownloader; + +@property (nonatomic, strong, readonly) CleverTapInstanceConfig *config; +@property (strong, nonatomic) NSMutableDictionary *vars; +@property (assign, nonatomic) BOOL hasVarsRequestCompleted; +@property (assign, nonatomic) BOOL hasPendingDownloads; +@property (nonatomic, weak) id delegate; + +- (nullable NSDictionary *)diffs; +- (void)loadDiffs; +- (void)applyVariableDiffs:(nullable NSDictionary *)diffs_; + +- (void)registerVariable:(CTVar *)var; +- (nullable CTVar *)getVariable:(NSString *)name; +- (id)getMergedValue:(NSString *)name; + +- (NSArray *)getNameComponents:(NSString *)name; +- (nullable id)getMergedValueFromComponentArray:(NSArray *) components; +- (void)clearUserContent; + +- (nullable NSString *)fileDownloadPath:(NSString *)fileURL; +- (BOOL)isFileAlreadyPresent:(NSString *)fileURL; +- (void)fileVarUpdated:(CTVar *)fileVar; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTVariables.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTVariables.h new file mode 100644 index 000000000..8ea4cb64d --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTVariables.h @@ -0,0 +1,45 @@ +// +// CTVariables.h +// CleverTapSDK +// +// Created by Nikola Zagorchev on 12.03.23. +// Copyright © 2023 CleverTap. All rights reserved. +// + +#import +#import "CTVarCache.h" +#import "CleverTapInstanceConfig.h" +#import "CTDeviceInfo.h" +#import "CTFileDownloader.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface CTVariables : NSObject + +@property(strong, nonatomic) CTVarCache *varCache; +@property(strong, nonatomic, nullable) CleverTapFetchVariablesBlock fetchVariablesBlock; + +- (instancetype)initWithConfig:(CleverTapInstanceConfig *)config + deviceInfo:(CTDeviceInfo *)deviceInfo + fileDownloader:(CTFileDownloader *)fileDownloader; + +- (CTVar * _Nullable)define:(NSString *)name + with:(nullable NSObject *)defaultValue + kind:(nullable NSString *)kind +NS_SWIFT_NAME(define(name:value:kind:)); + +- (void)handleVariablesResponse:(NSDictionary *)varsResponse; +- (void)handleVariablesError; +- (void)triggerFetchVariables:(BOOL)success; +- (void)onVariablesChanged:(CleverTapVariablesChangedBlock _Nonnull)block; +- (void)onceVariablesChanged:(CleverTapVariablesChangedBlock _Nonnull)block; +- (void)onVariablesChangedAndNoDownloadsPending:(CleverTapVariablesChangedBlock _Nonnull)block; +- (void)onceVariablesChangedAndNoDownloadsPending:(CleverTapVariablesChangedBlock _Nonnull)block; +- (NSDictionary*)flatten:(NSDictionary*)map varName:(NSString*)varName; +- (NSDictionary*)varsPayload; +- (NSDictionary*)unflatten:(NSDictionary*)result; +- (void)clearUserContent; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTVideoThumbnailGenerator.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTVideoThumbnailGenerator.h new file mode 100755 index 000000000..b9bfb587b --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CTVideoThumbnailGenerator.h @@ -0,0 +1,10 @@ + +#import +#import + +@interface CTVideoThumbnailGenerator : NSObject + +- (void)generateImageFromUrl:(NSString *)videoURL withCompletionBlock:(void (^)(UIImage *image, NSString *sourceUrl))completion; +- (void)cleanup; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CleverTapFeatureFlagsPrivate.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CleverTapFeatureFlagsPrivate.h new file mode 100644 index 000000000..98a63a4f1 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CleverTapFeatureFlagsPrivate.h @@ -0,0 +1,24 @@ +#import +#import "CleverTap+FeatureFlags.h" + +@protocol CleverTapPrivateFeatureFlagsDelegate +@required + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +@property (atomic, weak) id _Nullable featureFlagsDelegate; +#pragma clang diagnostic pop + +- (BOOL)getFeatureFlag:(NSString* _Nonnull)key withDefaultValue:(BOOL)defaultValue; + +@end + +@interface CleverTapFeatureFlags () {} + +@property (nonatomic, weak) id _Nullable privateDelegate; + +- (instancetype _Nullable)init __unavailable; + +- (instancetype _Nonnull)initWithPrivateDelegate:(id _Nonnull)delegate; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CleverTapInboxViewControllerPrivate.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CleverTapInboxViewControllerPrivate.h new file mode 100755 index 000000000..a64a2fcd5 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CleverTapInboxViewControllerPrivate.h @@ -0,0 +1,25 @@ +#import + +@protocol CleverTapInboxViewControllerDelegate; +@class CleverTapInboxStyleConfig; + +@protocol CleverTapInboxViewControllerAnalyticsDelegate +@required +- (void)messageDidShow:(CleverTapInboxMessage * _Nonnull)message; +- (void)messageDidSelect:(CleverTapInboxMessage * _Nonnull)message atIndex:(int)index withButtonIndex:(int)buttonIndex; +/** + Called when app inbox link is tapped for requesting push permission. + */ +- (void)messageDidSelectForPushPermission:(BOOL)fallbackToSettings; +@end + +@interface CleverTapInboxViewController () + +- (instancetype _Nonnull)init __unavailable; + +- (instancetype _Nonnull)initWithMessages:(NSArray * _Nonnull)messages + config:(CleverTapInboxStyleConfig * _Nonnull)config + delegate:(id _Nullable)delegate + analyticsDelegate:(id _Nullable)analyticsDelegate; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CleverTapInstanceConfigPrivate.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CleverTapInstanceConfigPrivate.h new file mode 100644 index 000000000..4d60db85b --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CleverTapInstanceConfigPrivate.h @@ -0,0 +1,30 @@ +#import + +@interface CleverTapInstanceConfig () {} + +@property (nonatomic, assign, readonly) BOOL isDefaultInstance; +@property (nonatomic, strong, readonly, nonnull) NSString *queueLabel; +@property (nonatomic, assign) BOOL isCreatedPostAppLaunched; +@property (nonatomic, assign) BOOL beta; + +// SET ONLY WHEN THE USER INITIALISES A WEBVIEW WITH CT JS INTERFACE +@property (nonatomic, assign) BOOL wv_init; + +- (instancetype _Nonnull)initWithAccountId:(NSString * _Nonnull)accountId + accountToken:(NSString * _Nonnull)accountToken + accountRegion:(NSString * _Nullable)accountRegion + isDefaultInstance:(BOOL)isDefault; + +- (instancetype _Nonnull)initWithAccountId:(NSString * _Nonnull)accountId + accountToken:(NSString * _Nonnull)accountToken + proxyDomain:(NSString * _Nonnull)proxyDomain + isDefaultInstance:(BOOL)isDefault; + +- (instancetype _Nonnull)initWithAccountId:(NSString* _Nonnull)accountId + accountToken:(NSString* _Nonnull)accountToken + proxyDomain:(NSString* _Nonnull)proxyDomain + spikyProxyDomain:(NSString* _Nonnull)spikyProxyDomain + isDefaultInstance:(BOOL)isDefault; + ++ (NSString* _Nonnull)dataArchiveFileNameWithAccountId:(NSString* _Nonnull)accountId; +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CleverTapProductConfigPrivate.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CleverTapProductConfigPrivate.h new file mode 100644 index 000000000..277856ac5 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/CleverTapProductConfigPrivate.h @@ -0,0 +1,54 @@ +#import +#import "CleverTap+ProductConfig.h" + +@protocol CleverTapPrivateProductConfigDelegate +@required + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +@property (atomic, weak) id _Nullable productConfigDelegate; +#pragma clang diagnostic pop + +- (void)fetchProductConfig; + +- (void)activateProductConfig; + +- (void)fetchAndActivateProductConfig; + +- (void)resetProductConfig; + +- (void)setDefaultsProductConfig:(NSDictionary *_Nullable)defaults; + +- (void)setDefaultsFromPlistFileNameProductConfig:(NSString *_Nullable)fileName; + +- (CleverTapConfigValue *_Nullable)getProductConfig:(NSString* _Nonnull)key; + +@end + +@interface CleverTapConfigValue() {} + +- (instancetype _Nullable )initWithData:(NSData *_Nullable)data; + +@end + + +@interface CleverTapProductConfig () {} + +@property(nonatomic, assign) NSInteger fetchConfigCalls; +@property(nonatomic, assign) NSInteger fetchConfigWindowLength; +@property(nonatomic, assign) NSTimeInterval minimumFetchConfigInterval; +@property(nonatomic, assign) NSTimeInterval lastFetchTs; + +@property (nonatomic, weak) id _Nullable privateDelegate; + +- (instancetype _Nullable)init __unavailable; + +- (instancetype _Nonnull)initWithConfig:(CleverTapInstanceConfig *_Nonnull)config + privateDelegate:(id_Nonnull)delegate; + +- (void)updateProductConfigWithOptions:(NSDictionary *_Nullable)options; + +- (void)updateProductConfigWithLastFetchTs:(NSTimeInterval)lastFetchTs; + +- (void)resetProductConfigSettings; +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/ContentMerger.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/ContentMerger.h new file mode 100644 index 000000000..92077a76c --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/ContentMerger.h @@ -0,0 +1,13 @@ +// +// ContentMerger.h +// CleverTapSDK +// +// Created by Akash Malhotra on 17/02/23. +// Copyright © 2023 CleverTap. All rights reserved. +// + +#import + +@interface ContentMerger : NSObject ++ (id)mergeWithVars:(id)vars diff:(id)diff; +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/UIView+CTToast.h b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/UIView+CTToast.h new file mode 100755 index 000000000..a3f6cba5c --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/PrivateHeaders/UIView+CTToast.h @@ -0,0 +1,446 @@ +// +// UIView+Toast.h +// Toast +// +// Copyright (c) 2011-2017 Charles Scalesse. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +extern const NSString * CTToastPositionTop; +extern const NSString * CTToastPositionCenter; +extern const NSString * CTToastPositionBottom; + +@class CTToastStyle; + +/** + Toast is an Objective-C category that adds toast notifications to the UIView + object class. It is intended to be simple, lightweight, and easy to use. Most + toast notifications can be triggered with a single line of code. + + The `makeToast:` methods create a new view and then display it as toast. + + The `showToast:` methods display any view as toast. + + */ +@interface UIView (CTToast) + +/** + Creates and presents a new toast view with a message and displays it with the + default duration and position. Styled using the shared style. + + @param message The message to be displayed + */ +- (void)ct_makeToast:(NSString *)message; + +/** + Creates and presents a new toast view with a message. Duration and position + can be set explicitly. Styled using the shared style. + + @param message The message to be displayed + @param duration The toast duration + @param position The toast's center point. Can be one of the predefined CSToastPosition + constants or a `CGPoint` wrapped in an `NSValue` object. + */ +- (void)ct_makeToast:(NSString *)message + duration:(NSTimeInterval)duration + position:(id)position; + +/** + Creates and presents a new toast view with a message. Duration, position, and + style can be set explicitly. + + @param message The message to be displayed + @param duration The toast duration + @param position The toast's center point. Can be one of the predefined CSToastPosition + constants or a `CGPoint` wrapped in an `NSValue` object. + @param style The style. The shared style will be used when nil + */ +- (void)ct_makeToast:(NSString *)message + duration:(NSTimeInterval)duration + position:(id)position + style:(CTToastStyle *)style; + +/** + Creates and presents a new toast view with a message, title, and image. Duration, + position, and style can be set explicitly. The completion block executes when the + toast view completes. `didTap` will be `YES` if the toast view was dismissed from + a tap. + + @param message The message to be displayed + @param duration The toast duration + @param position The toast's center point. Can be one of the predefined CSToastPosition + constants or a `CGPoint` wrapped in an `NSValue` object. + @param title The title + @param image The image + @param style The style. The shared style will be used when nil + @param completion The completion block, executed after the toast view disappears. + didTap will be `YES` if the toast view was dismissed from a tap. + */ +- (void)ct_makeToast:(NSString *)message + duration:(NSTimeInterval)duration + position:(id)position + title:(NSString *)title + image:(UIImage *)image + style:(CTToastStyle *)style + completion:(void(^)(BOOL didTap))completion; + +/** + Creates a new toast view with any combination of message, title, and image. + The look and feel is configured via the style. Unlike the `makeToast:` methods, + this method does not present the toast view automatically. One of the showToast: + methods must be used to present the resulting view. + + @warning if message, title, and image are all nil, this method will return nil. + + @param message The message to be displayed + @param title The title + @param image The image + @param style The style. The shared style will be used when nil + @return The newly created toast view + */ +- (UIView *)ct_toastViewForMessage:(NSString *)message + title:(NSString *)title + image:(UIImage *)image + style:(CTToastStyle *)style; + +/** + Hides the active toast. If there are multiple toasts active in a view, this method + hides the oldest toast (the first of the toasts to have been presented). + + @see `hideAllToasts` to remove all active toasts from a view. + + @warning This method has no effect on activity toasts. Use `hideToastActivity` to + hide activity toasts. + */ +- (void)ct_hideToast; + +/** + Hides an active toast. + + @param toast The active toast view to dismiss. Any toast that is currently being displayed + on the screen is considered active. + + @warning this does not clear a toast view that is currently waiting in the queue. + */ +- (void)ct_hideToast:(UIView *)toast; + +/** + Hides all active toast views and clears the queue. + */ +- (void)ct_hideAllToasts; + +/** + Hides all active toast views, with options to hide activity and clear the queue. + + @param includeActivity If `true`, toast activity will also be hidden. Default is `false`. + @param clearQueue If `true`, removes all toast views from the queue. Default is `true`. + */ +- (void)ct_hideAllToasts:(BOOL)includeActivity clearQueue:(BOOL)clearQueue; + +/** + Removes all toast views from the queue. This has no effect on toast views that are + active. Use `hideAllToasts` to hide the active toasts views and clear the queue. + */ +- (void)ct_clearToastQueue; + +/** + Creates and displays a new toast activity indicator view at a specified position. + + @warning Only one toast activity indicator view can be presented per superview. Subsequent + calls to `makeToastActivity:` will be ignored until hideToastActivity is called. + + @warning `makeToastActivity:` works independently of the showToast: methods. Toast activity + views can be presented and dismissed while toast views are being displayed. `makeToastActivity:` + has no effect on the queueing behavior of the showToast: methods. + + @param position The toast's center point. Can be one of the predefined CSToastPosition + constants or a `CGPoint` wrapped in an `NSValue` object. + */ +- (void)ct_makeToastActivity:(id)position; + +/** + Dismisses the active toast activity indicator view. + */ +- (void)ct_hideToastActivity; + +/** + Displays any view as toast using the default duration and position. + + @param toast The view to be displayed as toast + */ +- (void)ct_showToast:(UIView *)toast; + +/** + Displays any view as toast at a provided position and duration. The completion block + executes when the toast view completes. `didTap` will be `YES` if the toast view was + dismissed from a tap. + + @param toast The view to be displayed as toast + @param duration The notification duration + @param position The toast's center point. Can be one of the predefined CSToastPosition + constants or a `CGPoint` wrapped in an `NSValue` object. + @param completion The completion block, executed after the toast view disappears. + didTap will be `YES` if the toast view was dismissed from a tap. + */ +- (void)ct_showToast:(UIView *)toast + duration:(NSTimeInterval)duration + position:(id)position + completion:(void(^)(BOOL didTap))completion; + +@end + +/** + `CTToastStyle` instances define the look and feel for toast views created via the + `makeToast:` methods as well for toast views created directly with + `toastViewForMessage:title:image:style:`. + + @warning `CTToastStyle` offers relatively simple styling options for the default + toast view. If you require a toast view with more complex UI, it probably makes more + sense to create your own custom UIView subclass and present it with the `showToast:` + methods. + */ +@interface CTToastStyle : NSObject + +/** + The background color. Default is `[UIColor blackColor]` at 80% opacity. + */ +@property (strong, nonatomic) UIColor *backgroundColor; + +/** + The title color. Default is `[UIColor whiteColor]`. + */ +@property (strong, nonatomic) UIColor *titleColor; + +/** + The message color. Default is `[UIColor whiteColor]`. + */ +@property (strong, nonatomic) UIColor *messageColor; + +/** + A percentage value from 0.0 to 1.0, representing the maximum width of the toast + view relative to it's superview. Default is 0.8 (80% of the superview's width). + */ +@property (assign, nonatomic) CGFloat maxWidthPercentage; + +/** + A percentage value from 0.0 to 1.0, representing the maximum height of the toast + view relative to it's superview. Default is 0.8 (80% of the superview's height). + */ +@property (assign, nonatomic) CGFloat maxHeightPercentage; + +/** + The spacing from the horizontal edge of the toast view to the content. When an image + is present, this is also used as the padding between the image and the text. + Default is 10.0. + */ +@property (assign, nonatomic) CGFloat horizontalPadding; + +/** + The spacing from the vertical edge of the toast view to the content. When a title + is present, this is also used as the padding between the title and the message. + Default is 10.0. + */ +@property (assign, nonatomic) CGFloat verticalPadding; + +/** + The corner radius. Default is 10.0. + */ +@property (assign, nonatomic) CGFloat cornerRadius; + +/** + The title font. Default is `[UIFont boldSystemFontOfSize:16.0]`. + */ +@property (strong, nonatomic) UIFont *titleFont; + +/** + The message font. Default is `[UIFont systemFontOfSize:16.0]`. + */ +@property (strong, nonatomic) UIFont *messageFont; + +/** + The title text alignment. Default is `NSTextAlignmentLeft`. + */ +@property (assign, nonatomic) NSTextAlignment titleAlignment; + +/** + The message text alignment. Default is `NSTextAlignmentLeft`. + */ +@property (assign, nonatomic) NSTextAlignment messageAlignment; + +/** + The maximum number of lines for the title. The default is 0 (no limit). + */ +@property (assign, nonatomic) NSInteger titleNumberOfLines; + +/** + The maximum number of lines for the message. The default is 0 (no limit). + */ +@property (assign, nonatomic) NSInteger messageNumberOfLines; + +/** + Enable or disable a shadow on the toast view. Default is `NO`. + */ +@property (assign, nonatomic) BOOL displayShadow; + +/** + The shadow color. Default is `[UIColor blackColor]`. + */ +@property (strong, nonatomic) UIColor *shadowColor; + +/** + A value from 0.0 to 1.0, representing the opacity of the shadow. + Default is 0.8 (80% opacity). + */ +@property (assign, nonatomic) CGFloat shadowOpacity; + +/** + The shadow radius. Default is 6.0. + */ +@property (assign, nonatomic) CGFloat shadowRadius; + +/** + The shadow offset. The default is `CGSizeMake(4.0, 4.0)`. + */ +@property (assign, nonatomic) CGSize shadowOffset; + +/** + The image size. The default is `CGSizeMake(80.0, 80.0)`. + */ +@property (assign, nonatomic) CGSize imageSize; + +/** + The size of the toast activity view when `makeToastActivity:` is called. + Default is `CGSizeMake(100.0, 100.0)`. + */ +@property (assign, nonatomic) CGSize activitySize; + +/** + The fade in/out animation duration. Default is 0.2. + */ +@property (assign, nonatomic) NSTimeInterval fadeDuration; + +/** + Creates a new instance of `CTToastStyle` with all the default values set. + */ +- (instancetype)initWithDefaultStyle NS_DESIGNATED_INITIALIZER; + +/** + @warning Only the designated initializer should be used to create + an instance of `CTToastStyle`. + */ +- (instancetype)init NS_UNAVAILABLE; + +@end + +/** + `CTToastManager` provides general configuration options for all toast + notifications. Backed by a singleton instance. + */ +@interface CTToastManager : NSObject + +/** + Sets the shared style on the singleton. The shared style is used whenever + a `makeToast:` method (or `toastViewForMessage:title:image:style:`) is called + with with a nil style. By default, this is set to `CTToastStyle`'s default + style. + + @param sharedStyle the shared style + */ ++ (void)setSharedStyle:(CTToastStyle *)sharedStyle; + +/** + Gets the shared style from the singlton. By default, this is + `CTToastStyle`'s default style. + + @return the shared style + */ ++ (CTToastStyle *)sharedStyle; + +/** + Enables or disables tap to dismiss on toast views. Default is `YES`. + + @param tapToDismissEnabled YES or NO + */ ++ (void)setTapToDismissEnabled:(BOOL)tapToDismissEnabled; + +/** + Returns `YES` if tap to dismiss is enabled, otherwise `NO`. + Default is `YES`. + + @return BOOL YES or NO + */ ++ (BOOL)isTapToDismissEnabled; + +/** + Enables or disables queueing behavior for toast views. When `YES`, + toast views will appear one after the other. When `NO`, multiple Toast + views will appear at the same time (potentially overlapping depending + on their positions). This has no effect on the toast activity view, + which operates independently of normal toast views. Default is `NO`. + + @param queueEnabled YES or NO + */ ++ (void)setQueueEnabled:(BOOL)queueEnabled; + +/** + Returns `YES` if the queue is enabled, otherwise `NO`. + Default is `NO`. + + @return BOOL + */ ++ (BOOL)isQueueEnabled; + +/** + Sets the default duration. Used for the `makeToast:` and + `showToast:` methods that don't require an explicit duration. + Default is 3.0. + + @param duration The toast duration + */ ++ (void)setDefaultDuration:(NSTimeInterval)duration; + +/** + Returns the default duration. Default is 3.0. + + @return duration The toast duration + */ ++ (NSTimeInterval)defaultDuration; + +/** + Sets the default position. Used for the `makeToast:` and + `showToast:` methods that don't require an explicit position. + Default is `CTToastPositionBottom`. + + @param position The default center point. Can be one of the predefined + CSToastPosition constants or a `CGPoint` wrapped in an `NSValue` object. + */ ++ (void)setDefaultPosition:(id)position; + +/** + Returns the default toast position. Default is `CTToastPositionBottom`. + + @return position The default center point. Will be one of the predefined + CSToastPosition constants or a `CGPoint` wrapped in an `NSValue` object. + */ ++ (id)defaultPosition; + +@end diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/_CodeSignature/CodeResources b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/_CodeSignature/CodeResources new file mode 100644 index 000000000..c6ee9e9cb --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/_CodeSignature/CodeResources @@ -0,0 +1,2652 @@ + + + + + files + + AmazonRootCA1.cer + + jaf5Zexe/DeRDxxuWf3BzGpu3hY= + + CTCarouselImageMessageCell~land.nib + + 7T2hh6rRPICT+MmjlUGoq1AYIiw= + + CTCarouselImageMessageCell~port.nib + + j6FAq4HAzfgIa7nuYWmDNgyHUaw= + + CTCarouselImageView.nib + + 7pxEr2yb+b4ChdHPPjt8tYF6hZs= + + CTCarouselMessageCell~land.nib + + a8IqzoJl/SLqmjrkZ+W8KRZQtvU= + + CTCarouselMessageCell~port.nib + + Gl+avY+PRLCLXrIkIyD9Cu8uuGM= + + CTCoverImageViewController~ipad.nib + + CfXvMMSizXY5hYbpucX9m1+djKk= + + CTCoverImageViewController~ipadland.nib + + JTgdlIypLR9QGGHkCZ+z45y690k= + + CTCoverImageViewController~iphoneland.nib + + +kuOTU3A63tyiE2GJubnGXv3mSk= + + CTCoverImageViewController~iphoneport.nib + + VBpG2owMKAJe6S5FWqiWWz3Keoc= + + CTCoverViewController~ipad.nib + + 4rUdH7qg7H2wBcJDp2ETQ0DZ3T4= + + CTCoverViewController~ipadland.nib + + Bk1g7x8hA5tYpP+GoZJtvs2I/gU= + + CTCoverViewController~iphoneland.nib + + X8qkP3nJLq1nTSnk5upKI6jgXts= + + CTCoverViewController~iphoneport.nib + + tH2P922Ye/B2fX3Paeugq6XEu5M= + + CTFooterViewController~ipad.nib + + xX1JsbHcI7WMNb3eKI0K7goJg8Y= + + CTFooterViewController~ipadland.nib + + B67U44PxvRMRlO4dwuX6+hkD1GI= + + CTFooterViewController~iphoneland.nib + + vKkUmmzjFVrXR7EOeRxbUaNAaCw= + + CTFooterViewController~iphoneport.nib + + 8+nJRTfrEwBILV1S0QBnzucsx+o= + + CTHalfInterstitialImageViewController~ipad.nib + + diUg+h7eh296Phsolyg7nbWVGZE= + + CTHalfInterstitialImageViewController~ipadland.nib + + 2ifMbThwgHZ3aCewZIN/Kdg2ZMw= + + CTHalfInterstitialImageViewController~iphoneland.nib + + q/OgQtWc3tgxtUKKktNBScULLxc= + + CTHalfInterstitialImageViewController~iphoneport.nib + + n2poVAv13c4BgS9iPxU5qCOdnpw= + + CTHalfInterstitialViewController~ipad.nib + + 1ZoL9F66BN0iFhNKh9yL8LY7dF8= + + CTHalfInterstitialViewController~ipadland.nib + + cgzMBaMcHrVCeIg3lVSA8ttie4E= + + CTHalfInterstitialViewController~iphoneland.nib + + k56enB8Vqwp8mYNSkR+IWkmMNvA= + + CTHalfInterstitialViewController~iphoneport.nib + + q4lUtg79sAk5Z/OsB5s0nUGYgac= + + CTHeaderViewController~ipad.nib + + yCUjT7KgcmYN/5H8qJP0Ut/9RWQ= + + CTHeaderViewController~ipadland.nib + + +yfUucZLG+gBR/O6vx+5vQC5edg= + + CTHeaderViewController~iphoneland.nib + + FbtPgcdehJOakwc8EHu6FWNihZk= + + CTHeaderViewController~iphoneport.nib + + 5I3kaULEUwoI7qqe0pBfSPQ+wXI= + + CTInboxIconMessageCell~land.nib + + rhEV+sKcYxW6EPadXdyXs09aN4w= + + CTInboxIconMessageCell~port.nib + + QIHxpDi4H/ABRPEaIOFfEoEiTcM= + + CTInboxSimpleMessageCell~land.nib + + ocoO8o8L9j2hxpq1XAT1YYpr3vM= + + CTInboxSimpleMessageCell~port.nib + + itKnV84O0lEanfzKj9DmiWyz5ZA= + + CTInterstitialImageViewController~ipad.nib + + FQDy0DOIFiRJh6zCNqopZne0NVY= + + CTInterstitialImageViewController~ipadland.nib + + qovrv6zGdX/bk6SYZBe2lmxb5Yg= + + CTInterstitialImageViewController~iphoneland.nib + + RSZK5tF6l08/abdb7fky8z+ZePw= + + CTInterstitialImageViewController~iphoneport.nib + + R4AvhLxuerxcsVZrvQnCNYd1Ufc= + + CTInterstitialViewController~ipad.nib + + dxmfyU29ZFqcrZECraliReB/GiY= + + CTInterstitialViewController~ipadland.nib + + lOcT21hye0Emu3b0cCVoA6fK5Qk= + + CTInterstitialViewController~iphoneland.nib + + htNQAA2lDj4XN7rIvtH0+N05K70= + + CTInterstitialViewController~iphoneport.nib + + u591vVAvsLrqBGJPPy8a1QaJwkg= + + CleverTapInboxViewController.nib/objects-11.0+.nib + + WN2J6brWqOZkptlfZSkg4vEt9bE= + + CleverTapInboxViewController.nib/runtime.nib + + IpoShY2IwB7gGizkzfz7xb/373M= + + Headers/CTAppFunctionBuilder.h + + MygQxzyD8XZ1xk4WZk5/SWN1G7Q= + + Headers/CTCustomTemplate.h + + PGSKkxO2TJBgommMa9IYcv3h3Qc= + + Headers/CTCustomTemplateBuilder.h + + qOz99xZjo733uNJjzCuPt3x6SMo= + + Headers/CTCustomTemplatesManager.h + + Vlkt5cItrA4vVGjcXLWKE2l20Bc= + + Headers/CTInAppTemplateBuilder.h + + v15S+5joAEnnjqASH52YfVdUuzo= + + Headers/CTJsonTemplateProducer.h + + yOm/UDsjax7YahjwfNqePB1QXuo= + + Headers/CTLocalInApp.h + + 8CBlKxsofG00EqMi+toWvh4Zgu8= + + Headers/CTTemplateContext.h + + MD/HVXzVCT7oDcguz2QIp65IcZg= + + Headers/CTTemplatePresenter.h + + FKq0HKkt4CvoyA1EUdBwfw0bTzo= + + Headers/CTTemplateProducer.h + + MqMVUOtA4Sr3sKIfv6g1la9obD0= + + Headers/CTVar.h + + GldzMPoR/Lc723QXjOx2SydQkQg= + + Headers/CleverTap+CTVar.h + + IbNBQsBulAQWWdyEzIimw7RrANY= + + Headers/CleverTap+DisplayUnit.h + + +vPaZrOfjdz7vF/WRVFq+6Z1Lc0= + + Headers/CleverTap+FeatureFlags.h + + 95ZGX0u+evbvDNIcnpQ0iS/7TQY= + + Headers/CleverTap+InAppNotifications.h + + bs/3ZtaJruSJXoxODf4IDuHvbEw= + + Headers/CleverTap+Inbox.h + + U9G/Y0Xa4iPpzFkpReoozgU3v0A= + + Headers/CleverTap+ProductConfig.h + + M3YN6IZbxdBi2oa3i5YrCzu7HK4= + + Headers/CleverTap+PushPermission.h + + zrEJoW1xer3vFqAWL9ivtSiThKw= + + Headers/CleverTap+SCDomain.h + + VwWCTyx7/Ln7RQRNDGERuSBk6TU= + + Headers/CleverTap+SSLPinning.h + + lVZlJVo1gLkOHdhRP0GGPPTQzzE= + + Headers/CleverTap.h + + CrrBIlHcOXBrKSCM68n8mjW+ptA= + + Headers/CleverTapBuildInfo.h + + M9ZV6ij3vjp522OE7ZWjKt+81jE= + + Headers/CleverTapEventDetail.h + + 9S9vMYq4mGFte/rjL9quana39BQ= + + Headers/CleverTapInAppNotificationDelegate.h + + bEO6DvTXSDTz0J4XpTRKgzGa2Cs= + + Headers/CleverTapInstanceConfig.h + + qxPsKUbkderI12Z0G9fJ5VOHMPs= + + Headers/CleverTapJSInterface.h + + 0VOaS7NWxLTWLIJRGjtMQVWHlpE= + + Headers/CleverTapPushNotificationDelegate.h + + JjWpQ8tQPBdrzgc5p6rSXH8A134= + + Headers/CleverTapSDK-Swift.h + + AnbEMRKdZocmyxqKt851q2rwPCM= + + Headers/CleverTapSDK.h + + vur+4F2luOM6sS/2ZvMBZKL3uZ4= + + Headers/CleverTapSyncDelegate.h + + cn46wue5ptHsy7CnVBGwrsaarnE= + + Headers/CleverTapTrackedViewController.h + + UOrTBIZqEpV+lE6joVzqU5FHf9U= + + Headers/CleverTapURLDelegate.h + + 6kGk9eHUujoi1d+mwwfEwrRG+n4= + + Headers/CleverTapUTMDetail.h + + d1F5L5lvx8k4cxM0TjzjI39BiXw= + + Headers/LeanplumCT.h + + trke21AvYWQSCuqwbP9pgU1moKE= + + Inbox.momd/Inbox.mom + + eLR3RyPWnkP4SMD22j5On6wCoFY= + + Inbox.momd/VersionInfo.plist + + Jb3j9EgqhSX/tCZo8p4BLCZOiO8= + + Info.plist + + 0CNJ/WeceffJR+3Uw0Nbx/XUXAk= + + Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.abi.json + + 15ytox/OLCufBYEio2y16lIA/Bk= + + Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface + + 8jeBJCtb+GqN7J7ZLUWrM1oeHdw= + + Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc + + 6HPgI6yBMcgLI4NE9UPrArosJKo= + + Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface + + 8jeBJCtb+GqN7J7ZLUWrM1oeHdw= + + Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule + + YG+toMeeczpkij/iDIsdwBAEmPM= + + Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json + + 15ytox/OLCufBYEio2y16lIA/Bk= + + Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface + + HgDUu/32AxJhcuNDQbRWkmiSnG0= + + Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc + + RjhZT+lS+jyPO+e7r4MExrMCzzk= + + Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface + + HgDUu/32AxJhcuNDQbRWkmiSnG0= + + Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule + + OjjL5hAUqu3N0gKoieXb2w9WscE= + + Modules/module.modulemap + + m4ynDLQVcp3dXupq0PgUoeidHVw= + + PrivacyInfo.xcprivacy + + DUQmONQygS2hf4Qge17UAhsfqfk= + + PrivateHeaders/CTAVPlayerViewController.h + + htRCpGXWS4omSFDqcNQHbWKm3Fg= + + PrivateHeaders/CTAlertViewController.h + + XrI2tsNMikkyuuboanwLUjZE3Vw= + + PrivateHeaders/CTBaseHeaderFooterViewController.h + + fWbkqwfSNTlTgKueM7lv6IpiOGc= + + PrivateHeaders/CTBaseHeaderFooterViewControllerPrivate.h + + +iTwV4g11B4YWH72ezJwFNpbaZg= + + PrivateHeaders/CTCarouselImageMessageCell.h + + 4S40sDr8ZlKIPfLLKhTRlAZRHfA= + + PrivateHeaders/CTCarouselImageView.h + + aJ/ysapq2lcAojDs4G9PtCAbWns= + + PrivateHeaders/CTCarouselMessageCell.h + + hDilu04mtGKIh9b+ufMOVHZoC2o= + + PrivateHeaders/CTCertificatePinning.h + + mU+m4+uUznZNIO5KRGvBrwtKN2I= + + PrivateHeaders/CTConstants.h + + pUqrXPlKCj0FZ19J+ORRQgV0aYI= + + PrivateHeaders/CTCoverImageViewController.h + + rm4zcT14KxG5mzx153Ewbpn401M= + + PrivateHeaders/CTCoverViewController.h + + FKfSno0Gyj2gviaAOJrO/jhfVZc= + + PrivateHeaders/CTDeviceInfo.h + + 9CLqlDUse4Btr3ugUXOPAD84mk0= + + PrivateHeaders/CTDismissButton.h + + VmvD5NbER9eyb4qtstYIQENWJOQ= + + PrivateHeaders/CTEventBuilder.h + + YUMuiPg2YTmMTHDUF8QWwOLRm4Q= + + PrivateHeaders/CTFeatureFlagsController.h + + XXDiHOxVB3K/9Wlx6k5qIqm3/Ec= + + PrivateHeaders/CTFooterViewController.h + + k9nqZgE2bjTrFSrihxvSF9QTH9c= + + PrivateHeaders/CTHalfInterstitialImageViewController.h + + dblCbmqo7wgOC7UzBNeDUe6loKI= + + PrivateHeaders/CTHalfInterstitialViewController.h + + 0PahN3k/mTAqfWPS2YCajOA3JRw= + + PrivateHeaders/CTHeaderViewController.h + + Usb460CupgQmVSwmOEaCzipsW9M= + + PrivateHeaders/CTInAppDisplayViewController.h + + VcT3LqoG/1boHbsxJV4APRfJUtw= + + PrivateHeaders/CTInAppDisplayViewControllerPrivate.h + + Ujl2MOMLWs4Q49K6Pdo8naX4ta0= + + PrivateHeaders/CTInAppFCManager.h + + eDNMweoS7yRbCmzKKlingSk+KqQ= + + PrivateHeaders/CTInAppHTMLViewController.h + + GXG3VDgk6JQY1/rEl3PTiuiMn7w= + + PrivateHeaders/CTInAppNotification.h + + 3aDfqPdd2ImWzvKACs4DwehRTfw= + + PrivateHeaders/CTInAppNotificationDisplayDelegate.h + + R+I1VyYllLLjb1T0y9TyUeGa5xw= + + PrivateHeaders/CTInAppUtils.h + + WNEufyiUG2nWpJ7y09/CvPoEtuw= + + PrivateHeaders/CTInboxBaseMessageCell.h + + pAajz+v6c8Ei0jeFLuBCmhcWZzo= + + PrivateHeaders/CTInboxController.h + + L07v0FVNq8X1+OjiM0WdLLFNIyY= + + PrivateHeaders/CTInboxIconMessageCell.h + + VMdd7YUB8U9myrnOfHbpqqIjKTo= + + PrivateHeaders/CTInboxMessageActionView.h + + O0CNSaCXrOCdybXvfDE5NkWR/70= + + PrivateHeaders/CTInboxSimpleMessageCell.h + + 848XiWug6bWpf7RR+mn9rTtcxoo= + + PrivateHeaders/CTInboxUtils.h + + Ma0FqNanPCjuLR+OBMuVwzb5Dt8= + + PrivateHeaders/CTInterstitialImageViewController.h + + huBFsCmzLxUHJfBKYTXsJfRbdzI= + + PrivateHeaders/CTInterstitialViewController.h + + 4jBqOQsappx7B4Yjmz3AFJsUBN0= + + PrivateHeaders/CTKnownProfileFields.h + + DLrOKCnS306fv+HFmOCHxOR2teI= + + PrivateHeaders/CTLocalDataStore.h + + jp390Aj+4RJg/t5naORfbm9HCwI= + + PrivateHeaders/CTLogger.h + + g/2uKbTAP7/N6irshHf56GHSdOU= + + PrivateHeaders/CTNotificationButton.h + + 3oRjchU39peflCRJPIUOdPASKh8= + + PrivateHeaders/CTPinnedNSURLSessionDelegate.h + + FYpZKhztmNDYfLF5EnqjtIKsKu8= + + PrivateHeaders/CTPlistInfo.h + + sIoepqwxk62xfI7OI31g0uIh5S0= + + PrivateHeaders/CTPreferences.h + + K3TfQBJ+k1hKloxP0CmBFnfvx14= + + PrivateHeaders/CTProductConfigController.h + + Kx/gC1zPwq/j9Xm6QJxhCspBsgY= + + PrivateHeaders/CTProfileBuilder.h + + Km/QRU/FTZATTLDE86zLFK/X57Q= + + PrivateHeaders/CTRequest.h + + ymhRHkL4HByADyi4IPKKxJqjkq0= + + PrivateHeaders/CTRequestFactory.h + + G2D4cHjddzjqBV/eHjiddkjaiBI= + + PrivateHeaders/CTSwipeView.h + + d52SWkZ7Zj1P8WepHCcEIDZyFos= + + PrivateHeaders/CTSwizzle.h + + tfzmkeK5JBLGsGJNTMv28jwWFqA= + + PrivateHeaders/CTUIUtils.h + + LEe4UaqFfWgMHb1Z4oCcoH01pyU= + + PrivateHeaders/CTUriHelper.h + + 3IWmQhqpbFgIrO97xF6U4LWDuwE= + + PrivateHeaders/CTUserInfoMigrator.h + + 4XbCX3rWIfF85Q7SucIPUiXhnoQ= + + PrivateHeaders/CTUserMO+CoreDataProperties.h + + XN+Iei6eDyFF2QilveeYCNcXm1E= + + PrivateHeaders/CTUserMO.h + + /wK74z/80IomeqG/o+DC95A5slQ= + + PrivateHeaders/CTUtils.h + + C1GnJap5983KZ/6sfd0lH8hJuqU= + + PrivateHeaders/CTValidationResult.h + + 0gp6IPpmH2tu45igtzECvH3Cgzo= + + PrivateHeaders/CTValidator.h + + mhZ4pe/WVnCA/fVYaGAt4r5E2zk= + + PrivateHeaders/CTVar-Internal.h + + AX2MTM34TPs81vQE9oYxGWYG7Jc= + + PrivateHeaders/CTVarCache.h + + 3EjpKokZgZNPRT8li5LCVwsGEw4= + + PrivateHeaders/CTVariables.h + + SrL3657lEbnSG5o+7E/jMrxuuT4= + + PrivateHeaders/CTVideoThumbnailGenerator.h + + i4Qjo5Q8DkBP7D/i/aBaUniWd0U= + + PrivateHeaders/CleverTapFeatureFlagsPrivate.h + + OxyoCVWa/ABUVBJ3InxUtBZBISE= + + PrivateHeaders/CleverTapInboxViewControllerPrivate.h + + a06HKPCa/ubhp17wtoBQaKOQz7I= + + PrivateHeaders/CleverTapInstanceConfigPrivate.h + + 25fJsV4P4mSpObKedUvy2y2bp7E= + + PrivateHeaders/CleverTapProductConfigPrivate.h + + X8tOdVVFLKoyiTQIcHyllB/WXcM= + + PrivateHeaders/ContentMerger.h + + YCO5kM8GQKOCXsQLcBOJUaU2a04= + + PrivateHeaders/UIView+CTToast.h + + JL7lqg/vEKQ36Chz+aIiVy1QN2c= + + ct_default_audio.png + + UgAHbT3dtcivgMoMOP2i8u87ITQ= + + ct_default_landscape_image.png + + nOUFYptjTrHzWYeNCGSO7w6qzxQ= + + ct_default_portrait_image.png + + aDY3941ESLRkdntO/a7ipvJHIa4= + + ct_default_video.png + + KEcU3QF3mGyZR3aVpFehET6kmXk= + + ct_volume_off.png + + sUA3XvLUvGVyYbGo55Y6jBxiMw8= + + ct_volume_on.png + + 5wfuz92Ym4ZM1xb5z7r3BAmgHVI= + + ic_pause@1x.png + + ToaSB+Z50EYXaqnRK5yY2+LkAbk= + + ic_pause@2x.png + + 8V8iUGljwg6AVOXzrWNq0ALMErs= + + ic_pause@3x.png + + lJdXh19J0d697H8CtyxJ8jTMmiE= + + ic_play@1x.png + + 0/sNzn37/TmZwsMopCkbSbl05AI= + + ic_play@2x.png + + sTboLJqbTweGIz0Lr4yx4sdJc9E= + + ic_play@3x.png + + tpRHZUBMlMGmL/1iVy2ku0a1RyQ= + + image_interstitial.html + + smxINbW2WpxWuqY3aEwCKgxksLI= + + + files2 + + AmazonRootCA1.cer + + hash + + jaf5Zexe/DeRDxxuWf3BzGpu3hY= + + hash2 + + js3miE89h7ESW6Maw/yxPXAW3n9XzJBP4cuXxq6YGW4= + + + CTCarouselImageMessageCell~land.nib + + hash + + 7T2hh6rRPICT+MmjlUGoq1AYIiw= + + hash2 + + wQKBvwDYk/J04yVBdPhmP4pt7WDLyjtWusJnHyF+UN8= + + + CTCarouselImageMessageCell~port.nib + + hash + + j6FAq4HAzfgIa7nuYWmDNgyHUaw= + + hash2 + + lnPANGfvI3siyCDYF9axVnPYSPWLQX/mAdw5eJySeG4= + + + CTCarouselImageView.nib + + hash + + 7pxEr2yb+b4ChdHPPjt8tYF6hZs= + + hash2 + + F0WBJIlpemR9XsJ7ochUwmzXVUc2Qjtop9sHnidedso= + + + CTCarouselMessageCell~land.nib + + hash + + a8IqzoJl/SLqmjrkZ+W8KRZQtvU= + + hash2 + + bBGqWnwSVz2WLgV+62WRI8v9sR/0tBQWB64TUlrrnG4= + + + CTCarouselMessageCell~port.nib + + hash + + Gl+avY+PRLCLXrIkIyD9Cu8uuGM= + + hash2 + + HIb5e2cEHbJsUEbT8svSkBh4/48M5YgFbrYH1kWdjz8= + + + CTCoverImageViewController~ipad.nib + + hash + + CfXvMMSizXY5hYbpucX9m1+djKk= + + hash2 + + JTbWu6IUEiwoncr1Maoa/2hqB4AWEcYbvgb7SGX9vW8= + + + CTCoverImageViewController~ipadland.nib + + hash + + JTgdlIypLR9QGGHkCZ+z45y690k= + + hash2 + + 0NLpetUa8B2D9KTlarVtE/YqJiL+xOAnTnHu/R83JpU= + + + CTCoverImageViewController~iphoneland.nib + + hash + + +kuOTU3A63tyiE2GJubnGXv3mSk= + + hash2 + + Bk7dxm3MqhCqskb2uxcnWUlatbnGtdvFuySO8DS9GKM= + + + CTCoverImageViewController~iphoneport.nib + + hash + + VBpG2owMKAJe6S5FWqiWWz3Keoc= + + hash2 + + xqg1a5cOXv7cA1xAmJlmSpNR5zpxOFhCGrUWRBO5aNs= + + + CTCoverViewController~ipad.nib + + hash + + 4rUdH7qg7H2wBcJDp2ETQ0DZ3T4= + + hash2 + + 3CJfZIedo0RUM2f2HN4o62UsBjPEc9rxdmA2Im0Fdls= + + + CTCoverViewController~ipadland.nib + + hash + + Bk1g7x8hA5tYpP+GoZJtvs2I/gU= + + hash2 + + NhmUwBsmOLwG2rKHH+6FflbXKXlGz4K5itGL7i6AD00= + + + CTCoverViewController~iphoneland.nib + + hash + + X8qkP3nJLq1nTSnk5upKI6jgXts= + + hash2 + + jSe+KLzAVs62Kt/aanfiGGCVdIKGcqrr8b4L/NfHWr8= + + + CTCoverViewController~iphoneport.nib + + hash + + tH2P922Ye/B2fX3Paeugq6XEu5M= + + hash2 + + NoKP0vZ8ytB83tbbAmiwwhg+OwY+WtNrI2bCD+xo72A= + + + CTFooterViewController~ipad.nib + + hash + + xX1JsbHcI7WMNb3eKI0K7goJg8Y= + + hash2 + + AUs1tX+hUrSICXK3eO3x0+QCEnObn/snAXgDg6FKYbM= + + + CTFooterViewController~ipadland.nib + + hash + + B67U44PxvRMRlO4dwuX6+hkD1GI= + + hash2 + + 2YEvYZ+JTRz1KTxwhboH8R/H94H4jOWGaU2qh5iK898= + + + CTFooterViewController~iphoneland.nib + + hash + + vKkUmmzjFVrXR7EOeRxbUaNAaCw= + + hash2 + + FX2cflt+PUufs3N82HGZ70GXCv71LfyjUlrHyfFHSgc= + + + CTFooterViewController~iphoneport.nib + + hash + + 8+nJRTfrEwBILV1S0QBnzucsx+o= + + hash2 + + fDJkDqS4Lz0OuGiZ9k7W2FU9P5MzicqktcmFhnlgdIY= + + + CTHalfInterstitialImageViewController~ipad.nib + + hash + + diUg+h7eh296Phsolyg7nbWVGZE= + + hash2 + + sjg66AzWpPpfdn/o+B5Qc/JFUf9GkIov67PGTfWUYqI= + + + CTHalfInterstitialImageViewController~ipadland.nib + + hash + + 2ifMbThwgHZ3aCewZIN/Kdg2ZMw= + + hash2 + + GPlaE/kw5k8h7U5r2DguHIs4RafRx9VpsGmpglU28R0= + + + CTHalfInterstitialImageViewController~iphoneland.nib + + hash + + q/OgQtWc3tgxtUKKktNBScULLxc= + + hash2 + + b6z/Y6/zg5JoPoDIoC3TKZs6s9F3HSIfeTDni3/aYMo= + + + CTHalfInterstitialImageViewController~iphoneport.nib + + hash + + n2poVAv13c4BgS9iPxU5qCOdnpw= + + hash2 + + 2E8J6PoqbD6v7Sr2FMD7f9La2f0GNAR8C8WBah4cXOU= + + + CTHalfInterstitialViewController~ipad.nib + + hash + + 1ZoL9F66BN0iFhNKh9yL8LY7dF8= + + hash2 + + 5Gnf4RVqrkMHrkHmIv+8hT0NUvgE3WXGPSX1WZgwS1Q= + + + CTHalfInterstitialViewController~ipadland.nib + + hash + + cgzMBaMcHrVCeIg3lVSA8ttie4E= + + hash2 + + wxQrFUw/ZBEEzG68YpVV23Ff+OuyC24xsvaLLa5/HIo= + + + CTHalfInterstitialViewController~iphoneland.nib + + hash + + k56enB8Vqwp8mYNSkR+IWkmMNvA= + + hash2 + + BcwPg+2+CV5z2euJFsbQ9RqDIHPW1+q5n/gvENTQCbw= + + + CTHalfInterstitialViewController~iphoneport.nib + + hash + + q4lUtg79sAk5Z/OsB5s0nUGYgac= + + hash2 + + CmytLHHiRfbHduufiT6JWUbYeNU9jHynsjm1Gh5fdcA= + + + CTHeaderViewController~ipad.nib + + hash + + yCUjT7KgcmYN/5H8qJP0Ut/9RWQ= + + hash2 + + wxmHD3AUe9efkRId2J7l0WtJNrXBbV/r5mSf9quvY7Q= + + + CTHeaderViewController~ipadland.nib + + hash + + +yfUucZLG+gBR/O6vx+5vQC5edg= + + hash2 + + V/lZnWOM5hfhkED0WIgHCTskujxyWHCxEk6rElFitYg= + + + CTHeaderViewController~iphoneland.nib + + hash + + FbtPgcdehJOakwc8EHu6FWNihZk= + + hash2 + + rtwLw+LdYQGHkGFZdzP9qwDYkFIIRGPU+dKF4mbUXNE= + + + CTHeaderViewController~iphoneport.nib + + hash + + 5I3kaULEUwoI7qqe0pBfSPQ+wXI= + + hash2 + + +XWaMaC9thaaYmjpwtINJMZ1FMKFEzWKoCrbqU+75Ug= + + + CTInboxIconMessageCell~land.nib + + hash + + rhEV+sKcYxW6EPadXdyXs09aN4w= + + hash2 + + paP9idDctr4ufXFKdaMPSsv+gDt/329LEEwxQw8BdgU= + + + CTInboxIconMessageCell~port.nib + + hash + + QIHxpDi4H/ABRPEaIOFfEoEiTcM= + + hash2 + + EDpc9aWUvIcywHskZe3KInoMjzAnS+82wWQfSQYadbI= + + + CTInboxSimpleMessageCell~land.nib + + hash + + ocoO8o8L9j2hxpq1XAT1YYpr3vM= + + hash2 + + eZaB+Md0pvnXbVo0UOXmHePc69nIn7oIzoFUBO2ho50= + + + CTInboxSimpleMessageCell~port.nib + + hash + + itKnV84O0lEanfzKj9DmiWyz5ZA= + + hash2 + + NaGHMArvYFuRj0T59zaEF2B0H/jgYJT4ZNddtoBZ1rI= + + + CTInterstitialImageViewController~ipad.nib + + hash + + FQDy0DOIFiRJh6zCNqopZne0NVY= + + hash2 + + /shTyrvkZKHqSb47MQ/7kLoiOsyolX+vF2gPleDiYKk= + + + CTInterstitialImageViewController~ipadland.nib + + hash + + qovrv6zGdX/bk6SYZBe2lmxb5Yg= + + hash2 + + boRBz6K9cb8H7m8qtNWO8SRD18Y/VzzJkPKz5/Fs/gU= + + + CTInterstitialImageViewController~iphoneland.nib + + hash + + RSZK5tF6l08/abdb7fky8z+ZePw= + + hash2 + + AJ4K0iU9Fh8zyx5YVWt2xj/m3+cq3SgSYvkHE1mYUiU= + + + CTInterstitialImageViewController~iphoneport.nib + + hash + + R4AvhLxuerxcsVZrvQnCNYd1Ufc= + + hash2 + + 26bfOlIObzpBOr7mOxkTwRUjJaJkvUG4BVKO2x1d4Es= + + + CTInterstitialViewController~ipad.nib + + hash + + dxmfyU29ZFqcrZECraliReB/GiY= + + hash2 + + LOcPgosD8nclft/PGzlSyRdOv/EnmTxnbM9oRYICYyA= + + + CTInterstitialViewController~ipadland.nib + + hash + + lOcT21hye0Emu3b0cCVoA6fK5Qk= + + hash2 + + lNE0VkedgClXssvrciDvV+49UlVNomsG55Ndj3WUJcs= + + + CTInterstitialViewController~iphoneland.nib + + hash + + htNQAA2lDj4XN7rIvtH0+N05K70= + + hash2 + + ysV1CbMEkGxAG78CkY4PHbA85HAv7K5d73tWQiFkl3E= + + + CTInterstitialViewController~iphoneport.nib + + hash + + u591vVAvsLrqBGJPPy8a1QaJwkg= + + hash2 + + gaXlSr9afO4d6xKoduakhyKcfm5mxGXs0eZoqOCsKlA= + + + CleverTapInboxViewController.nib/objects-11.0+.nib + + hash + + WN2J6brWqOZkptlfZSkg4vEt9bE= + + hash2 + + mSpsij+7wc40sG87i5FIKVCad+5USVx9rvm6qMqOUjI= + + + CleverTapInboxViewController.nib/runtime.nib + + hash + + IpoShY2IwB7gGizkzfz7xb/373M= + + hash2 + + DuMrXeLY+su11fpOmKeh7M2p/ooRlwOCgEFeP6wGuRA= + + + Headers/CTAppFunctionBuilder.h + + hash + + MygQxzyD8XZ1xk4WZk5/SWN1G7Q= + + hash2 + + 44hWrIr0k3ZqjacPh39nHuywWRPDp9Kdw5Ss602FMl0= + + + Headers/CTCustomTemplate.h + + hash + + PGSKkxO2TJBgommMa9IYcv3h3Qc= + + hash2 + + 3FZ6l5WxNAh/OWIxrwHGN08FD22DTXjjc5nOjk2K4hA= + + + Headers/CTCustomTemplateBuilder.h + + hash + + qOz99xZjo733uNJjzCuPt3x6SMo= + + hash2 + + 4zdjIphCq1UPa24c1dPSmVd/tE9UD0SzpVseyJ1MV0Q= + + + Headers/CTCustomTemplatesManager.h + + hash + + Vlkt5cItrA4vVGjcXLWKE2l20Bc= + + hash2 + + zNcYjuKrYdRjpPR9O5oE7eweQAvbD5ABYV4GyVIhYsc= + + + Headers/CTInAppTemplateBuilder.h + + hash + + v15S+5joAEnnjqASH52YfVdUuzo= + + hash2 + + ROAAGrsV5cVbEHrPIYNFNWxIlFoPnvBRcB7KtzUh5+E= + + + Headers/CTJsonTemplateProducer.h + + hash + + yOm/UDsjax7YahjwfNqePB1QXuo= + + hash2 + + nIY4KUNeFHz1Gc2ECSzEXcd/9ZUhYfoqOok7G5Yn3IA= + + + Headers/CTLocalInApp.h + + hash + + 8CBlKxsofG00EqMi+toWvh4Zgu8= + + hash2 + + kTcnZvmxV3vZXaIFhB0CoMWT//tMvmoJ5nG/jEKHKsE= + + + Headers/CTTemplateContext.h + + hash + + MD/HVXzVCT7oDcguz2QIp65IcZg= + + hash2 + + Lh0+bO2nESG039s84OldJop3H4GcRFr9iWY+x683hwo= + + + Headers/CTTemplatePresenter.h + + hash + + FKq0HKkt4CvoyA1EUdBwfw0bTzo= + + hash2 + + zUKMekvUeyHgSUOPganse/u/yKehUaOb/CDphXhWMlY= + + + Headers/CTTemplateProducer.h + + hash + + MqMVUOtA4Sr3sKIfv6g1la9obD0= + + hash2 + + KFvSoUhPDQxj20tjWGh0bN8/5tdXqXVOFEhgNpd/t/w= + + + Headers/CTVar.h + + hash + + GldzMPoR/Lc723QXjOx2SydQkQg= + + hash2 + + IYmFJRGubD4SvA1QExxqr/ugz2zil/UGoimOM7sH3OI= + + + Headers/CleverTap+CTVar.h + + hash + + IbNBQsBulAQWWdyEzIimw7RrANY= + + hash2 + + QMpvKC71gsKns2D92U3NViBKg/6ALclaB4iO1OhduP0= + + + Headers/CleverTap+DisplayUnit.h + + hash + + +vPaZrOfjdz7vF/WRVFq+6Z1Lc0= + + hash2 + + cfOP4+n6n8aT7I4Dydfw8tx7ZXdZ5T5CSzzRHSTUgoU= + + + Headers/CleverTap+FeatureFlags.h + + hash + + 95ZGX0u+evbvDNIcnpQ0iS/7TQY= + + hash2 + + DQZHmbPiLg8FgEhPkzfdCEci+fTM7twxWnKZTiKoYLM= + + + Headers/CleverTap+InAppNotifications.h + + hash + + bs/3ZtaJruSJXoxODf4IDuHvbEw= + + hash2 + + C/W9ITGrQAR8E5fqOLYWP//I6xPstZY61Op5p3+gBoo= + + + Headers/CleverTap+Inbox.h + + hash + + U9G/Y0Xa4iPpzFkpReoozgU3v0A= + + hash2 + + j72Nf/7zEG2WbEbbInodCxX8DA2wocv74GLOMTeHdTw= + + + Headers/CleverTap+ProductConfig.h + + hash + + M3YN6IZbxdBi2oa3i5YrCzu7HK4= + + hash2 + + GI3Ixz0FL68Gtu77h1Gp75wAZxNADtjOrOvwGUuna1I= + + + Headers/CleverTap+PushPermission.h + + hash + + zrEJoW1xer3vFqAWL9ivtSiThKw= + + hash2 + + ALMbJz39Z75Qu4qGt9ZItvNZFYaOANqMUFITikmzy9w= + + + Headers/CleverTap+SCDomain.h + + hash + + VwWCTyx7/Ln7RQRNDGERuSBk6TU= + + hash2 + + kJSUY+5viHAIJU2uiAnPKxtgsD7Gyopi6h/drDj7lZc= + + + Headers/CleverTap+SSLPinning.h + + hash + + lVZlJVo1gLkOHdhRP0GGPPTQzzE= + + hash2 + + 9FVK88g5hXi0WzbEq8y8CArK1tPCcppaNuzw8rxSYpk= + + + Headers/CleverTap.h + + hash + + CrrBIlHcOXBrKSCM68n8mjW+ptA= + + hash2 + + 3tIU8zSCFQKGQc/C7cHJqiKCDNcQ/R3KXYD7/TzHtZs= + + + Headers/CleverTapBuildInfo.h + + hash + + M9ZV6ij3vjp522OE7ZWjKt+81jE= + + hash2 + + N4jK5KIwRDrIWAwYgIU9g97bcTnWqavpvDSwhEQ/cpc= + + + Headers/CleverTapEventDetail.h + + hash + + 9S9vMYq4mGFte/rjL9quana39BQ= + + hash2 + + bE4hC5+fiZnSZR6kWCY+bTc3rjBPfjNUEfo4ITLPatQ= + + + Headers/CleverTapInAppNotificationDelegate.h + + hash + + bEO6DvTXSDTz0J4XpTRKgzGa2Cs= + + hash2 + + 79f8rTg2iHlj58dCQRLcnR3gAN+u8YEiggIVOwVQHnc= + + + Headers/CleverTapInstanceConfig.h + + hash + + qxPsKUbkderI12Z0G9fJ5VOHMPs= + + hash2 + + +BIF01a5q1ZNcc/uhNwN/ARSB3afG7YeQpdSo/F4jFA= + + + Headers/CleverTapJSInterface.h + + hash + + 0VOaS7NWxLTWLIJRGjtMQVWHlpE= + + hash2 + + 31MxWq9yuRGqgioJyiz+XVnUUopy8uVddVxgCmNY1CQ= + + + Headers/CleverTapPushNotificationDelegate.h + + hash + + JjWpQ8tQPBdrzgc5p6rSXH8A134= + + hash2 + + xHqUpKTbUMfAGcQbuhE1BUpl7AMetGeKuho7mTXeUSo= + + + Headers/CleverTapSDK-Swift.h + + hash + + AnbEMRKdZocmyxqKt851q2rwPCM= + + hash2 + + e0nmjBW5zYLKI+rK0ZOoDLcdMNNHAEyjf2J5hUJ1xYE= + + + Headers/CleverTapSDK.h + + hash + + vur+4F2luOM6sS/2ZvMBZKL3uZ4= + + hash2 + + bPXesPGgAzHnV/qjK5cPEAoWH1pOP0mHBa4lWx+S1uw= + + + Headers/CleverTapSyncDelegate.h + + hash + + cn46wue5ptHsy7CnVBGwrsaarnE= + + hash2 + + APzMnA4DuhfNvkQPZBoOl4XMJmyWJStD+ByoN6CFCiw= + + + Headers/CleverTapTrackedViewController.h + + hash + + UOrTBIZqEpV+lE6joVzqU5FHf9U= + + hash2 + + Id02Wxlw4iQq1I4kJPIyBIxyy/sB6uvsh1SF4B2HKGU= + + + Headers/CleverTapURLDelegate.h + + hash + + 6kGk9eHUujoi1d+mwwfEwrRG+n4= + + hash2 + + 4QVmqQ/i/bJPcFLrJWHsvvmzj91RRjhmjtUcci+SERk= + + + Headers/CleverTapUTMDetail.h + + hash + + d1F5L5lvx8k4cxM0TjzjI39BiXw= + + hash2 + + hIYPq/QPgLFUAHR5CRAhp3KVLbCkKNVvPBf0aSrkkrA= + + + Headers/LeanplumCT.h + + hash + + trke21AvYWQSCuqwbP9pgU1moKE= + + hash2 + + tQ+NuhbtsU+tx5gaJjZAavggGZYbc69k6lpvPDU0zEQ= + + + Inbox.momd/Inbox.mom + + hash + + eLR3RyPWnkP4SMD22j5On6wCoFY= + + hash2 + + LiikeTGkMuv9bOZKJCv6zo+fpTxzPHMvwT57F40mnbM= + + + Inbox.momd/VersionInfo.plist + + hash + + Jb3j9EgqhSX/tCZo8p4BLCZOiO8= + + hash2 + + tTPcZE1VtjL/8l/o2KBMtcU2bAtugSVbUnwu1mkHE1k= + + + Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.abi.json + + hash + + 15ytox/OLCufBYEio2y16lIA/Bk= + + hash2 + + 9dvGyboVht3lfjueQiIeSpyZbAn/31H1fMus6KmZkb8= + + + Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface + + hash + + 8jeBJCtb+GqN7J7ZLUWrM1oeHdw= + + hash2 + + mZEGQMrNel8cG5jktFPViC0wQ4kNNEHKTnoe5G1pOMs= + + + Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc + + hash + + 6HPgI6yBMcgLI4NE9UPrArosJKo= + + hash2 + + ytzlF7sgWS2xLIGDJjneCRf4F4VX4U79MsLn0bwXbwo= + + + Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface + + hash + + 8jeBJCtb+GqN7J7ZLUWrM1oeHdw= + + hash2 + + mZEGQMrNel8cG5jktFPViC0wQ4kNNEHKTnoe5G1pOMs= + + + Modules/CleverTapSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule + + hash + + YG+toMeeczpkij/iDIsdwBAEmPM= + + hash2 + + xSlsWhgaTrxW5uCe6Z6yyveh2lBh1PNXJGqR93+4Mfg= + + + Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json + + hash + + 15ytox/OLCufBYEio2y16lIA/Bk= + + hash2 + + 9dvGyboVht3lfjueQiIeSpyZbAn/31H1fMus6KmZkb8= + + + Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface + + hash + + HgDUu/32AxJhcuNDQbRWkmiSnG0= + + hash2 + + D62ujChwzEx3tsVB3zDlyWmb/Sz2eB9Ho+UVC9iSIX8= + + + Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc + + hash + + RjhZT+lS+jyPO+e7r4MExrMCzzk= + + hash2 + + bok89oGIt7estuRKP0dUKdZRJN3gZBJ4gwl9mwMWpAw= + + + Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface + + hash + + HgDUu/32AxJhcuNDQbRWkmiSnG0= + + hash2 + + D62ujChwzEx3tsVB3zDlyWmb/Sz2eB9Ho+UVC9iSIX8= + + + Modules/CleverTapSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule + + hash + + OjjL5hAUqu3N0gKoieXb2w9WscE= + + hash2 + + 6Ctw15UnymxMeouXVSoXtmQq8ycCffVu5iKFSP1Mstg= + + + Modules/module.modulemap + + hash + + m4ynDLQVcp3dXupq0PgUoeidHVw= + + hash2 + + EP7l7Zx7GhKr2iW2jV8mRSlVRseM8ZQONehoNv5cnMs= + + + PrivacyInfo.xcprivacy + + hash + + DUQmONQygS2hf4Qge17UAhsfqfk= + + hash2 + + np5qWpVbX4RCPQi1vNSGwenBQ+lKtdrAqguleTieyjk= + + + PrivateHeaders/CTAVPlayerViewController.h + + hash + + htRCpGXWS4omSFDqcNQHbWKm3Fg= + + hash2 + + lR/SN0tupr9kcg4TRgVUSzpYZt9K5T/CXN5efV+IsYQ= + + + PrivateHeaders/CTAlertViewController.h + + hash + + XrI2tsNMikkyuuboanwLUjZE3Vw= + + hash2 + + JFui5JxtGvqUGl04f18Q9IZOUwuJnhoFfZQFQZ/kFMg= + + + PrivateHeaders/CTBaseHeaderFooterViewController.h + + hash + + fWbkqwfSNTlTgKueM7lv6IpiOGc= + + hash2 + + U4TEpKZpfqScZvn1hQziN/Gw8WQRxoceHPWRmDCN1gA= + + + PrivateHeaders/CTBaseHeaderFooterViewControllerPrivate.h + + hash + + +iTwV4g11B4YWH72ezJwFNpbaZg= + + hash2 + + w7H+Xa90HAabv2WwM7L4RqVljoea28GEdoueORS9FXk= + + + PrivateHeaders/CTCarouselImageMessageCell.h + + hash + + 4S40sDr8ZlKIPfLLKhTRlAZRHfA= + + hash2 + + NmZz9g/bZdxCOVZZBQis2Lk0HJBAJ/oGwLNIXAqwpJA= + + + PrivateHeaders/CTCarouselImageView.h + + hash + + aJ/ysapq2lcAojDs4G9PtCAbWns= + + hash2 + + 0+gXw5S9W+0gkfchxm1NNhqqtr7x6/+KsGZO2ySycBE= + + + PrivateHeaders/CTCarouselMessageCell.h + + hash + + hDilu04mtGKIh9b+ufMOVHZoC2o= + + hash2 + + jQbIWjM6mx/4zdPVCDV2G44ZfGeoShVO1DcBFUHp/S4= + + + PrivateHeaders/CTCertificatePinning.h + + hash + + mU+m4+uUznZNIO5KRGvBrwtKN2I= + + hash2 + + 5aLegI3a8CydFuFmq4zPiVw4HQoGhFDhXHZTrwWrgl0= + + + PrivateHeaders/CTConstants.h + + hash + + pUqrXPlKCj0FZ19J+ORRQgV0aYI= + + hash2 + + QN+Gk4M8swegQSCqXVhG2wzzifo75003Rt6VK4v2nds= + + + PrivateHeaders/CTCoverImageViewController.h + + hash + + rm4zcT14KxG5mzx153Ewbpn401M= + + hash2 + + gu5ivvosRVCppL8KKik9cvw9JJdTEsdUSDfcpioe4yc= + + + PrivateHeaders/CTCoverViewController.h + + hash + + FKfSno0Gyj2gviaAOJrO/jhfVZc= + + hash2 + + 4iCLHfk+YMYOWWcQLBGN2A01FCUyM/OyMJajJ3/bJqA= + + + PrivateHeaders/CTDeviceInfo.h + + hash + + 9CLqlDUse4Btr3ugUXOPAD84mk0= + + hash2 + + Ss17zxO09IkP3wLqeolX8Z1hHnqwkryt1krnMyxahS8= + + + PrivateHeaders/CTDismissButton.h + + hash + + VmvD5NbER9eyb4qtstYIQENWJOQ= + + hash2 + + 0H+oQyB/ip3c+3ECDlua+5qk7W4+eEeOzPeL3WGRtzQ= + + + PrivateHeaders/CTEventBuilder.h + + hash + + YUMuiPg2YTmMTHDUF8QWwOLRm4Q= + + hash2 + + e5IqnUUZ53kTvGBYaDruNgNvQdI+VkeVUxISIo4BXSk= + + + PrivateHeaders/CTFeatureFlagsController.h + + hash + + XXDiHOxVB3K/9Wlx6k5qIqm3/Ec= + + hash2 + + bvKVUI5HcYW4+5DSBZ+8lZN8Kps++EmQ+fXU+F/RtIs= + + + PrivateHeaders/CTFooterViewController.h + + hash + + k9nqZgE2bjTrFSrihxvSF9QTH9c= + + hash2 + + Ezjx55GRJyta9lCYbkSMwTwL5qyQZYvU7nce+WYZPdY= + + + PrivateHeaders/CTHalfInterstitialImageViewController.h + + hash + + dblCbmqo7wgOC7UzBNeDUe6loKI= + + hash2 + + JYoxBgbMrPeJBefx/LSJL0X0hSyxtbcWE0xd/Q7Tlks= + + + PrivateHeaders/CTHalfInterstitialViewController.h + + hash + + 0PahN3k/mTAqfWPS2YCajOA3JRw= + + hash2 + + iKQIzM6I12HufJhBm76Txy6cHVb80pPmdVxe+3Ny87s= + + + PrivateHeaders/CTHeaderViewController.h + + hash + + Usb460CupgQmVSwmOEaCzipsW9M= + + hash2 + + lKN72lBLXYvy/W3ddkf3jUr8PmO5eyRI/KBD36IHQl4= + + + PrivateHeaders/CTInAppDisplayViewController.h + + hash + + VcT3LqoG/1boHbsxJV4APRfJUtw= + + hash2 + + FQtImseQWS7GrVU9BIH8p2soMOAfDqJUV3HspIpSJzE= + + + PrivateHeaders/CTInAppDisplayViewControllerPrivate.h + + hash + + Ujl2MOMLWs4Q49K6Pdo8naX4ta0= + + hash2 + + AHmZJfgViJpa0+Bt0Sv37Wy8EvECJf1kpBqp05/DBnw= + + + PrivateHeaders/CTInAppFCManager.h + + hash + + eDNMweoS7yRbCmzKKlingSk+KqQ= + + hash2 + + sqFA/Y0R4enSyoK/FVgHXB0Gd8rsLgRr9PgKynCVvj4= + + + PrivateHeaders/CTInAppHTMLViewController.h + + hash + + GXG3VDgk6JQY1/rEl3PTiuiMn7w= + + hash2 + + 049Vzevb+AQq/WBtV6Wcaal5R0fyted0lwrRJHTAwKI= + + + PrivateHeaders/CTInAppNotification.h + + hash + + 3aDfqPdd2ImWzvKACs4DwehRTfw= + + hash2 + + tnfUCM2x2fdQg1SaxokOeXZ0e8m6AB9haGNeS6N6Tbc= + + + PrivateHeaders/CTInAppNotificationDisplayDelegate.h + + hash + + R+I1VyYllLLjb1T0y9TyUeGa5xw= + + hash2 + + WNky5FzFOK19Bcgp9pzx0izH6s11rXyn0CJMZ+kphFU= + + + PrivateHeaders/CTInAppUtils.h + + hash + + WNEufyiUG2nWpJ7y09/CvPoEtuw= + + hash2 + + Y48rJ4Kwf1ENue1yC0lHnVMKcJxuuvK+FVw4IEzlCJ4= + + + PrivateHeaders/CTInboxBaseMessageCell.h + + hash + + pAajz+v6c8Ei0jeFLuBCmhcWZzo= + + hash2 + + uJliwOu4VCBOTOlnYPAZ43kQ0mAp/+dcov/XrnaM5jE= + + + PrivateHeaders/CTInboxController.h + + hash + + L07v0FVNq8X1+OjiM0WdLLFNIyY= + + hash2 + + Sr6UT5tS+liQpn8OI0FLgP4XE5blCDE1KMpEnpKLC+I= + + + PrivateHeaders/CTInboxIconMessageCell.h + + hash + + VMdd7YUB8U9myrnOfHbpqqIjKTo= + + hash2 + + m03ZnziEcF5l+AwEcysZFHvBLRQTFoqvqAxUaMxcx2Q= + + + PrivateHeaders/CTInboxMessageActionView.h + + hash + + O0CNSaCXrOCdybXvfDE5NkWR/70= + + hash2 + + wmLkC9bBc6v27JbliT8pn34v1hhQnl/NbeO86hgOS3k= + + + PrivateHeaders/CTInboxSimpleMessageCell.h + + hash + + 848XiWug6bWpf7RR+mn9rTtcxoo= + + hash2 + + 73sBw+W76bqCQbPoBdPDu46F3X4K868xr2JOuGS0PZ4= + + + PrivateHeaders/CTInboxUtils.h + + hash + + Ma0FqNanPCjuLR+OBMuVwzb5Dt8= + + hash2 + + wl8ms9hfaLmZJIlew1YD8b72BiPvPCMsPNXrNy6sTvY= + + + PrivateHeaders/CTInterstitialImageViewController.h + + hash + + huBFsCmzLxUHJfBKYTXsJfRbdzI= + + hash2 + + BLcFQ874Ky+UZmNX5S1D10meBZUOpP8Q83AbVr6eMto= + + + PrivateHeaders/CTInterstitialViewController.h + + hash + + 4jBqOQsappx7B4Yjmz3AFJsUBN0= + + hash2 + + VgyZ8mrA/t7j0i8uOg1meSbQd7WxTRekQ5FpScL1tMY= + + + PrivateHeaders/CTKnownProfileFields.h + + hash + + DLrOKCnS306fv+HFmOCHxOR2teI= + + hash2 + + la+d26X1P4nbze+TzSncMaIGJeJB0VcrGqbEzM4OYZI= + + + PrivateHeaders/CTLocalDataStore.h + + hash + + jp390Aj+4RJg/t5naORfbm9HCwI= + + hash2 + + qnnMkqkUKcAAtDxnwvPkf6xp/EUaGGFtQho9EBgAspY= + + + PrivateHeaders/CTLogger.h + + hash + + g/2uKbTAP7/N6irshHf56GHSdOU= + + hash2 + + kU9LvLoqdzTC0z2+c4FaUdrsWxwMjnh2ylU/+XEUDT8= + + + PrivateHeaders/CTNotificationButton.h + + hash + + 3oRjchU39peflCRJPIUOdPASKh8= + + hash2 + + yNEd7RK+kgiOuJCs+U7Q8GBr6eckWwZhLeacQ046JtA= + + + PrivateHeaders/CTPinnedNSURLSessionDelegate.h + + hash + + FYpZKhztmNDYfLF5EnqjtIKsKu8= + + hash2 + + z0oXU0YsNYHLjQOqWRnULFW8yGAv1zc+cLSliB+Pa6Y= + + + PrivateHeaders/CTPlistInfo.h + + hash + + sIoepqwxk62xfI7OI31g0uIh5S0= + + hash2 + + +H5IJWEtZApyv1upRp4GD4PmJgGu59OsnGjLf0vOumU= + + + PrivateHeaders/CTPreferences.h + + hash + + K3TfQBJ+k1hKloxP0CmBFnfvx14= + + hash2 + + d+tKlLqSCZQ1dNdyn93v8yXphS3zyThgNg6tTNaJaow= + + + PrivateHeaders/CTProductConfigController.h + + hash + + Kx/gC1zPwq/j9Xm6QJxhCspBsgY= + + hash2 + + FLVLWJEnweVvSqUqXjRG+vXMxkSn3TsLvCSogE9PG3w= + + + PrivateHeaders/CTProfileBuilder.h + + hash + + Km/QRU/FTZATTLDE86zLFK/X57Q= + + hash2 + + n9Wr4RCnOFbaxW+MFyD5cAQVJDhBZsYVFeiQhXsbdvE= + + + PrivateHeaders/CTRequest.h + + hash + + ymhRHkL4HByADyi4IPKKxJqjkq0= + + hash2 + + 55kx1Gdiqt8OkVqQUJbGHBDquB4U+DbO9ldA+997Jm4= + + + PrivateHeaders/CTRequestFactory.h + + hash + + G2D4cHjddzjqBV/eHjiddkjaiBI= + + hash2 + + c9ItEw/5cS2wAue26NF51WukTQTUQYd7uSFocObdByo= + + + PrivateHeaders/CTSwipeView.h + + hash + + d52SWkZ7Zj1P8WepHCcEIDZyFos= + + hash2 + + cy2BDC/4DdNe8BmEPKLjL9gbbaBq0gahzeBp5nXKse8= + + + PrivateHeaders/CTSwizzle.h + + hash + + tfzmkeK5JBLGsGJNTMv28jwWFqA= + + hash2 + + dG2mc7HlvUOCB+GVx0HHqbHxNeetgm3UfQLPypQARZ8= + + + PrivateHeaders/CTUIUtils.h + + hash + + LEe4UaqFfWgMHb1Z4oCcoH01pyU= + + hash2 + + wyCXeUYDT6GbR6tv/pFbbM73cz+5L79esoftJkG5k4Y= + + + PrivateHeaders/CTUriHelper.h + + hash + + 3IWmQhqpbFgIrO97xF6U4LWDuwE= + + hash2 + + OVHtJkpgyaDc9MPv/bONPfyE5IWi6AD/qO5KmzDeXRQ= + + + PrivateHeaders/CTUserInfoMigrator.h + + hash + + 4XbCX3rWIfF85Q7SucIPUiXhnoQ= + + hash2 + + xR5dPIl8ATs0AoySpMi735IOj4zhxJVPGsrV6E3DOzU= + + + PrivateHeaders/CTUserMO+CoreDataProperties.h + + hash + + XN+Iei6eDyFF2QilveeYCNcXm1E= + + hash2 + + YEpDBXDXp0CP9Hle/khhdyAbefjDyC/0JlzqRun3nwo= + + + PrivateHeaders/CTUserMO.h + + hash + + /wK74z/80IomeqG/o+DC95A5slQ= + + hash2 + + dAUzyHjkgrBKt21C2tZOGesUa4CxuRtY2neCcJ30qL0= + + + PrivateHeaders/CTUtils.h + + hash + + C1GnJap5983KZ/6sfd0lH8hJuqU= + + hash2 + + XxFgR2MepCpS7EI7psTLHt7sN+LXbh6Ncv8/jgitpB8= + + + PrivateHeaders/CTValidationResult.h + + hash + + 0gp6IPpmH2tu45igtzECvH3Cgzo= + + hash2 + + PUECgo0msQ4CqUaLGxKif4h14Afpyzv9ngKjSurBgCg= + + + PrivateHeaders/CTValidator.h + + hash + + mhZ4pe/WVnCA/fVYaGAt4r5E2zk= + + hash2 + + sLiJtfohgU/v2DxQ816wKvZYv7ZhxgZ7sC1C6ZMm9t4= + + + PrivateHeaders/CTVar-Internal.h + + hash + + AX2MTM34TPs81vQE9oYxGWYG7Jc= + + hash2 + + +8PAMgIyOzjvbHLg4w3KDwhI2aaVqcf29v3V90lRcaE= + + + PrivateHeaders/CTVarCache.h + + hash + + 3EjpKokZgZNPRT8li5LCVwsGEw4= + + hash2 + + k6r1ws1Zg0pM5OY+W0FDgxeaHM/rNxUqpXgP3DoPaTg= + + + PrivateHeaders/CTVariables.h + + hash + + SrL3657lEbnSG5o+7E/jMrxuuT4= + + hash2 + + y3KRBLrdTy76KiRGuK4KgmrNE3Jw1UqrOWIn80VfVfs= + + + PrivateHeaders/CTVideoThumbnailGenerator.h + + hash + + i4Qjo5Q8DkBP7D/i/aBaUniWd0U= + + hash2 + + OJujNdzrUanaWiUBLINsj+x8UhpIJSLxN/yG6iMMDxY= + + + PrivateHeaders/CleverTapFeatureFlagsPrivate.h + + hash + + OxyoCVWa/ABUVBJ3InxUtBZBISE= + + hash2 + + brREMqkjPtQ6MU3uJ0eDhmlq3uFgir4owxnkrwEL8AY= + + + PrivateHeaders/CleverTapInboxViewControllerPrivate.h + + hash + + a06HKPCa/ubhp17wtoBQaKOQz7I= + + hash2 + + gNaSZiM82yRpx7+30iaoVwA7ByNO30JjjFoO4FlxGVk= + + + PrivateHeaders/CleverTapInstanceConfigPrivate.h + + hash + + 25fJsV4P4mSpObKedUvy2y2bp7E= + + hash2 + + RWT9sd0I/P0IsY/IM0qVq8U228crz66PJ5ELLW2QdZ8= + + + PrivateHeaders/CleverTapProductConfigPrivate.h + + hash + + X8tOdVVFLKoyiTQIcHyllB/WXcM= + + hash2 + + f6KsnDlg1XfNvMyu+f/61WNqvj9wEOLsoIqSUjDhzE8= + + + PrivateHeaders/ContentMerger.h + + hash + + YCO5kM8GQKOCXsQLcBOJUaU2a04= + + hash2 + + tjz84WnSohCmIw/qpHLxg66zysn0U3Ew3lOck6yVcw0= + + + PrivateHeaders/UIView+CTToast.h + + hash + + JL7lqg/vEKQ36Chz+aIiVy1QN2c= + + hash2 + + 3z8VNWPmcfmSs7Skc9vxlKXf7GHRVxszQg2Js2zbDxA= + + + ct_default_audio.png + + hash + + UgAHbT3dtcivgMoMOP2i8u87ITQ= + + hash2 + + ksa3IKwLY1DZONN06dRzcMObyUxaW88WcPJXnFRI3CM= + + + ct_default_landscape_image.png + + hash + + nOUFYptjTrHzWYeNCGSO7w6qzxQ= + + hash2 + + o2acnF0P+Tb0fH9w8NyVTjvCKO0nuv6OxJiVrTj9I3E= + + + ct_default_portrait_image.png + + hash + + aDY3941ESLRkdntO/a7ipvJHIa4= + + hash2 + + IFBB5ndAGHQakEnY3PdpnU2wtEn1hE5qoNsvyiBQPsw= + + + ct_default_video.png + + hash + + KEcU3QF3mGyZR3aVpFehET6kmXk= + + hash2 + + RtkZloyQ8hHw+0hvWs4AQbg5EVkcMXUh2sy2QBRjveA= + + + ct_volume_off.png + + hash + + sUA3XvLUvGVyYbGo55Y6jBxiMw8= + + hash2 + + G+OMGdKjEHVDZ1wBAzZlC8WSvrWfacJ1E9e28WJ2B6E= + + + ct_volume_on.png + + hash + + 5wfuz92Ym4ZM1xb5z7r3BAmgHVI= + + hash2 + + 5kSwj80RWIy9C24ov+b/WckHSa57h7qPB616LwXh0Rc= + + + ic_pause@1x.png + + hash + + ToaSB+Z50EYXaqnRK5yY2+LkAbk= + + hash2 + + dOvNFx6qq2tyt/2xMF8Z8+0EowHoJV5Aa69wfrWVnsA= + + + ic_pause@2x.png + + hash + + 8V8iUGljwg6AVOXzrWNq0ALMErs= + + hash2 + + X7V8/Ur6ib5P+aL913R2HmzWay3aqgDl8IwlmX6qgi4= + + + ic_pause@3x.png + + hash + + lJdXh19J0d697H8CtyxJ8jTMmiE= + + hash2 + + HHvxKnDcuqIZNdPp3PFf1SaBsm0+BU+We5iSwqkxSLY= + + + ic_play@1x.png + + hash + + 0/sNzn37/TmZwsMopCkbSbl05AI= + + hash2 + + z12/RjnIXc+0d82wxed3L0854Keq4Ns+T60Iir9x628= + + + ic_play@2x.png + + hash + + sTboLJqbTweGIz0Lr4yx4sdJc9E= + + hash2 + + B9parE/n+BjtwGSpLT17ajeAEmmAlXIOHu4Q6Opg+Hk= + + + ic_play@3x.png + + hash + + tpRHZUBMlMGmL/1iVy2ku0a1RyQ= + + hash2 + + IJIpx4IFpQyiw/IDGbmnB92CQVWGp3favkmZMU+JLFQ= + + + image_interstitial.html + + hash + + smxINbW2WpxWuqY3aEwCKgxksLI= + + hash2 + + dBk9zOr2gw+3e4twrVyGIkhWWaDzEZI7qcq8fu4V658= + + + + rules + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ct_default_audio.png b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ct_default_audio.png new file mode 100644 index 000000000..95a4cfe1a Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ct_default_audio.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ct_default_landscape_image.png b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ct_default_landscape_image.png new file mode 100644 index 000000000..77a74905e Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ct_default_landscape_image.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ct_default_portrait_image.png b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ct_default_portrait_image.png new file mode 100644 index 000000000..a791730d8 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ct_default_portrait_image.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ct_default_video.png b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ct_default_video.png new file mode 100644 index 000000000..b66fd3992 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ct_default_video.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ct_volume_off.png b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ct_volume_off.png new file mode 100644 index 000000000..7f22fae65 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ct_volume_off.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ct_volume_on.png b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ct_volume_on.png new file mode 100644 index 000000000..b13222bbe Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ct_volume_on.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ic_pause@1x.png b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ic_pause@1x.png new file mode 100644 index 000000000..797bb037f Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ic_pause@1x.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ic_pause@2x.png b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ic_pause@2x.png new file mode 100644 index 000000000..4cdbd0375 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ic_pause@2x.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ic_pause@3x.png b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ic_pause@3x.png new file mode 100644 index 000000000..890cdbc4c Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ic_pause@3x.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ic_play@1x.png b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ic_play@1x.png new file mode 100644 index 000000000..b9991b630 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ic_play@1x.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ic_play@2x.png b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ic_play@2x.png new file mode 100644 index 000000000..f11b7a27f Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ic_play@2x.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ic_play@3x.png b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ic_play@3x.png new file mode 100644 index 000000000..e613203d1 Binary files /dev/null and b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/ic_play@3x.png differ diff --git a/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/image_interstitial.html b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/image_interstitial.html new file mode 100644 index 000000000..3b2d49c82 --- /dev/null +++ b/Framework/CleverTapSDK.xcframework/ios-arm64_x86_64-simulator/CleverTapSDK.framework/image_interstitial.html @@ -0,0 +1 @@ +
diff --git a/Package.swift b/Package.swift index 67bf684ce..8d7c739e1 100644 --- a/Package.swift +++ b/Package.swift @@ -10,70 +10,23 @@ let package = Package( products: [ .library( name: "CleverTapSDK", - targets: ["CleverTapSDK"]), + targets: ["CleverTapSDKWrapper"]), .library( name: "CleverTapLocation", targets: ["CleverTapLocation"] ) ], - dependencies: [ - .package(url: "https://github.com/SDWebImage/SDWebImage.git", from: "5.11.1") - ], + dependencies: [], targets: [ - .target( + .binaryTarget( + name: "SDWebImage", + url: "https://github.com/SDWebImage/SDWebImage/releases/download/5.21.0/SDWebImage-dynamic.xcframework.zip", + checksum: "e034ea04f5e86866bc3081d009941bd5b2a2ed705b3a06336656484514116638" + ), + .binaryTarget( name: "CleverTapSDK", - dependencies: ["SDWebImage"], - path: "CleverTapSDK", - exclude: [ - "Info.plist", - "tvOS-Info.plist" - ], - resources: [ - .copy("AmazonRootCA1.cer"), - .copy("PrivacyInfo.xcprivacy"), - .process("InApps/resources"), - .process("Inbox/resources") - ], - publicHeadersPath: "include", - cSettings: [ - .headerSearchPath("./"), - .headerSearchPath("DisplayUnit/"), - .headerSearchPath("DisplayUnit/models"), - .headerSearchPath("DisplayUnit/controllers"), - .headerSearchPath("FeatureFlags/"), - .headerSearchPath("FeatureFlags/models"), - .headerSearchPath("FeatureFlags/controllers"), - .headerSearchPath("ProductConfig/"), - .headerSearchPath("ProductConfig/models"), - .headerSearchPath("ProductConfig/controllers"), - .headerSearchPath("InApps/"), - .headerSearchPath("InApps/Matchers/"), - .headerSearchPath("InApps/CustomTemplates/"), - .headerSearchPath("Inbox/"), - .headerSearchPath("Inbox/cells"), - .headerSearchPath("Inbox/config"), - .headerSearchPath("Inbox/controllers"), - .headerSearchPath("Inbox/models"), - .headerSearchPath("Inbox/views"), - .headerSearchPath("ProductExperiences/"), - .headerSearchPath("Session/"), - .headerSearchPath("Swizzling/"), - .headerSearchPath("FileDownload/"), - .headerSearchPath("EventDatabase/") - ], - linkerSettings: [ - .linkedFramework("AVFoundation"), - .linkedFramework("AVKit"), - .linkedFramework("CoreData"), - .linkedFramework("CoreServices"), - .linkedFramework("CoreTelephony", .when(platforms: [.iOS])), - .linkedFramework("ImageIO"), - .linkedFramework("QuartzCore"), - .linkedFramework("Security"), - .linkedFramework("SystemConfiguration"), - .linkedFramework("UserNotifications"), - .linkedFramework("WebKit") - ] + url: "https://d1new0xr8otir0.cloudfront.net/CleverTapSDK-7.2.4.xcframework.zip", + checksum: "74e2448587c4402f4d240ad425760d876c59ac5a15f967a2237bf0bb9babb1c6" ), .target( name: "CleverTapLocation", @@ -87,7 +40,19 @@ let package = Package( ], linkerSettings: [ .linkedFramework("CoreLocation") - ] + ] + ), + .target( + name: "CleverTapSDKWrapper", + dependencies: [ + "CleverTapSDK", + "SDWebImage" + ], + path: "CleverTapSDKWrapper", + linkerSettings: [ + .linkedLibrary("sqlite3"), + .linkedFramework("SDWebImage", .when(platforms: [.iOS])) + ] ) ] ) diff --git a/Podfile b/Podfile index 19fd96062..8abe69644 100644 --- a/Podfile +++ b/Podfile @@ -1,4 +1,5 @@ project 'CleverTapSDK' +use_frameworks! abstract_target 'shared' do @@ -20,5 +21,8 @@ end post_install do |installer| installer.pods_project.targets.each do |target| puts target.name + target.build_configurations.each do |config| + config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = "11.0" + end end end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/NSButton+WebCache.h b/Vendors/simulator/SDWebImage.framework/Headers/NSButton+WebCache.h new file mode 100644 index 000000000..5b8035b7d --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/NSButton+WebCache.h @@ -0,0 +1,340 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +#if SD_MAC + +#import "SDWebImageManager.h" + +/** + * Integrates SDWebImage async downloading and caching of remote images with NSButton. + */ +@interface NSButton (WebCache) + +#pragma mark - Image + +/** + * Get the current image URL. + */ +@property (nonatomic, strong, readonly, nullable) NSURL *sd_currentImageURL; + +/** + * Set the button `image` with an `url`. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url NS_REFINED_FOR_SWIFT; + +/** + * Set the button `image` with an `url` and a placeholder. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @see sd_setImageWithURL:placeholderImage:options: + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder NS_REFINED_FOR_SWIFT; + +/** + * Set the button `image` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options NS_REFINED_FOR_SWIFT; + +/** + * Set the button `image` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context; + +/** + * Set the button `image` with an `url`. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the button `image` with an `url`, placeholder. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + completed:(nullable SDExternalCompletionBlock)completedBlock NS_REFINED_FOR_SWIFT; + +/** + * Set the button `image` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the button `image` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param progressBlock A block called while image is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + progress:(nullable SDImageLoaderProgressBlock)progressBlock + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the button `image` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + * @param progressBlock A block called while image is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context + progress:(nullable SDImageLoaderProgressBlock)progressBlock + completed:(nullable SDExternalCompletionBlock)completedBlock; + +#pragma mark - Alternate Image + +/** + * Get the current alternateImage URL. + */ +@property (nonatomic, strong, readonly, nullable) NSURL *sd_currentAlternateImageURL; + +/** + * Set the button `alternateImage` with an `url`. + * + * The download is asynchronous and cached. + * + * @param url The url for the alternateImage. + */ +- (void)sd_setAlternateImageWithURL:(nullable NSURL *)url NS_REFINED_FOR_SWIFT; + +/** + * Set the button `alternateImage` with an `url` and a placeholder. + * + * The download is asynchronous and cached. + * + * @param url The url for the alternateImage. + * @param placeholder The alternateImage to be set initially, until the alternateImage request finishes. + * @see sd_setAlternateImageWithURL:placeholderImage:options: + */ +- (void)sd_setAlternateImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder NS_REFINED_FOR_SWIFT; + +/** + * Set the button `alternateImage` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the alternateImage. + * @param placeholder The alternateImage to be set initially, until the alternateImage request finishes. + * @param options The options to use when downloading the alternateImage. @see SDWebImageOptions for the possible values. + */ +- (void)sd_setAlternateImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options NS_REFINED_FOR_SWIFT; + +/** + * Set the button `alternateImage` with an `url`, placeholder, custom options and context. + * + * The download is asynchronous and cached. + * + * @param url The url for the alternateImage. + * @param placeholder The alternateImage to be set initially, until the alternateImage request finishes. + * @param options The options to use when downloading the alternateImage. @see SDWebImageOptions for the possible values. + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + */ +- (void)sd_setAlternateImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context; + +/** + * Set the button `alternateImage` with an `url`. + * + * The download is asynchronous and cached. + * + * @param url The url for the alternateImage. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the alternateImage parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the alternateImage was retrieved from the local cache or from the network. + * The fourth parameter is the original alternateImage url. + */ +- (void)sd_setAlternateImageWithURL:(nullable NSURL *)url + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the button `alternateImage` with an `url`, placeholder. + * + * The download is asynchronous and cached. + * + * @param url The url for the alternateImage. + * @param placeholder The alternateImage to be set initially, until the alternateImage request finishes. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the alternateImage parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the alternateImage was retrieved from the local cache or from the network. + * The fourth parameter is the original alternateImage url. + */ +- (void)sd_setAlternateImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + completed:(nullable SDExternalCompletionBlock)completedBlock NS_REFINED_FOR_SWIFT; + +/** + * Set the button `alternateImage` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the alternateImage. + * @param placeholder The alternateImage to be set initially, until the alternateImage request finishes. + * @param options The options to use when downloading the alternateImage. @see SDWebImageOptions for the possible values. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the alternateImage parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the alternateImage was retrieved from the local cache or from the network. + * The fourth parameter is the original alternateImage url. + */ +- (void)sd_setAlternateImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the button `alternateImage` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the alternateImage. + * @param placeholder The alternateImage to be set initially, until the alternateImage request finishes. + * @param options The options to use when downloading the alternateImage. @see SDWebImageOptions for the possible values. + * @param progressBlock A block called while alternateImage is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the alternateImage parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the alternateImage was retrieved from the local cache or from the network. + * The fourth parameter is the original alternateImage url. + */ +- (void)sd_setAlternateImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + progress:(nullable SDImageLoaderProgressBlock)progressBlock + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the button `alternateImage` with an `url`, placeholder, custom options and context. + * + * The download is asynchronous and cached. + * + * @param url The url for the alternateImage. + * @param placeholder The alternateImage to be set initially, until the alternateImage request finishes. + * @param options The options to use when downloading the alternateImage. @see SDWebImageOptions for the possible values. + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + * @param progressBlock A block called while alternateImage is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the alternateImage parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the alternateImage was retrieved from the local cache or from the network. + * The fourth parameter is the original alternateImage url. + */ +- (void)sd_setAlternateImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context + progress:(nullable SDImageLoaderProgressBlock)progressBlock + completed:(nullable SDExternalCompletionBlock)completedBlock; + +#pragma mark - Cancel + +/** + * Cancel the current image download + */ +- (void)sd_cancelCurrentImageLoad; + +/** + * Cancel the current alternateImage download + */ +- (void)sd_cancelCurrentAlternateImageLoad; + +@end + +#endif diff --git a/Vendors/simulator/SDWebImage.framework/Headers/NSData+ImageContentType.h b/Vendors/simulator/SDWebImage.framework/Headers/NSData+ImageContentType.h new file mode 100644 index 000000000..b9a6aa381 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/NSData+ImageContentType.h @@ -0,0 +1,63 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * (c) Fabrice Aneche + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageCompat.h" + +/** + You can use switch case like normal enum. It's also recommended to add a default case. You should not assume anything about the raw value. + For custom coder plugin, it can also extern the enum for supported format. See `SDImageCoder` for more detailed information. + */ +typedef NSInteger SDImageFormat NS_TYPED_EXTENSIBLE_ENUM; +static const SDImageFormat SDImageFormatUndefined = -1; +static const SDImageFormat SDImageFormatJPEG = 0; +static const SDImageFormat SDImageFormatPNG = 1; +static const SDImageFormat SDImageFormatGIF = 2; +static const SDImageFormat SDImageFormatTIFF = 3; +static const SDImageFormat SDImageFormatWebP = 4; +static const SDImageFormat SDImageFormatHEIC = 5; +static const SDImageFormat SDImageFormatHEIF = 6; +static const SDImageFormat SDImageFormatPDF = 7; +static const SDImageFormat SDImageFormatSVG = 8; +static const SDImageFormat SDImageFormatBMP = 9; +static const SDImageFormat SDImageFormatRAW = 10; + +/** + NSData category about the image content type and UTI. + */ +@interface NSData (ImageContentType) + +/** + * Return image format + * + * @param data the input image data + * + * @return the image format as `SDImageFormat` (enum) + */ ++ (SDImageFormat)sd_imageFormatForImageData:(nullable NSData *)data; + +/** + * Convert SDImageFormat to UTType + * + * @param format Format as SDImageFormat + * @return The UTType as CFStringRef + * @note For unknown format, `kSDUTTypeImage` abstract type will return + */ ++ (nonnull CFStringRef)sd_UTTypeFromImageFormat:(SDImageFormat)format CF_RETURNS_NOT_RETAINED NS_SWIFT_NAME(sd_UTType(from:)); + +/** + * Convert UTType to SDImageFormat + * + * @param uttype The UTType as CFStringRef + * @return The Format as SDImageFormat + * @note For unknown type, `SDImageFormatUndefined` will return + */ ++ (SDImageFormat)sd_imageFormatFromUTType:(nonnull CFStringRef)uttype; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/NSImage+Compatibility.h b/Vendors/simulator/SDWebImage.framework/Headers/NSImage+Compatibility.h new file mode 100644 index 000000000..0a562cc43 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/NSImage+Compatibility.h @@ -0,0 +1,67 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +#if SD_MAC + +/** + This category is provided to easily write cross-platform(AppKit/UIKit) code. For common usage, see `UIImage+Metadata.h`. + */ +@interface NSImage (Compatibility) + +/** +The underlying Core Graphics image object. This will actually use `CGImageForProposedRect` with the image size. + */ +@property (nonatomic, readonly, nullable) CGImageRef CGImage; +/** + The underlying Core Image data. This will actually use `bestRepresentationForRect` with the image size to find the `NSCIImageRep`. + */ +@property (nonatomic, readonly, nullable) CIImage *CIImage; +/** + The scale factor of the image. This wil actually use `bestRepresentationForRect` with image size and pixel size to calculate the scale factor. If failed, use the default value 1.0. Should be greater than or equal to 1.0. + */ +@property (nonatomic, readonly) CGFloat scale; + +// These are convenience methods to make AppKit's `NSImage` match UIKit's `UIImage` behavior. The scale factor should be greater than or equal to 1.0. + +/** + Returns an image object with the scale factor and orientation. The representation is created from the Core Graphics image object. + @note The difference between this and `initWithCGImage:size` is that `initWithCGImage:size` will actually create a `NSCGImageSnapshotRep` representation and always use `backingScaleFactor` as scale factor. So we should avoid it and use `NSBitmapImageRep` with `initWithCGImage:` instead. + @note The difference between this and UIKit's `UIImage` equivalent method is the way to process orientation. If the provided image orientation is not equal to Up orientation, this method will firstly rotate the CGImage to the correct orientation to work compatible with `NSImageView`. However, UIKit will not actually rotate CGImage and just store it as `imageOrientation` property. + + @param cgImage A Core Graphics image object + @param scale The image scale factor + @param orientation The orientation of the image data + @return The image object + */ +- (nonnull instancetype)initWithCGImage:(nonnull CGImageRef)cgImage scale:(CGFloat)scale orientation:(CGImagePropertyOrientation)orientation; + +/** + Initializes and returns an image object with the specified Core Image object. The representation is `NSCIImageRep`. + + @param ciImage A Core Image image object + @param scale The image scale factor + @param orientation The orientation of the image data + @return The image object + */ +- (nonnull instancetype)initWithCIImage:(nonnull CIImage *)ciImage scale:(CGFloat)scale orientation:(CGImagePropertyOrientation)orientation; + +/** + Returns an image object with the scale factor. The representation is created from the image data. + @note The difference between these this and `initWithData:` is that `initWithData:` will always use `backingScaleFactor` as scale factor. + + @param data The image data + @param scale The image scale factor + @return The image object + */ +- (nullable instancetype)initWithData:(nonnull NSData *)data scale:(CGFloat)scale; + +@end + +#endif diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDAnimatedImage.h b/Vendors/simulator/SDWebImage.framework/Headers/SDAnimatedImage.h new file mode 100644 index 000000000..f10a82805 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDAnimatedImage.h @@ -0,0 +1,136 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" +#import "SDImageCoder.h" + + +/** + This is the protocol for SDAnimatedImage class only but not for SDAnimatedImageCoder. If you want to provide a custom animated image class with full advanced function, you can conform to this instead of the base protocol. + */ +@protocol SDAnimatedImage + +@required +/** + Initializes and returns the image object with the specified data, scale factor and possible animation decoding options. + @note We use this to create animated image instance for normal animation decoding. + + @param data The data object containing the image data. + @param scale The scale factor to assume when interpreting the image data. Applying a scale factor of 1.0 results in an image whose size matches the pixel-based dimensions of the image. Applying a different scale factor changes the size of the image as reported by the `size` property. + @param options A dictionary containing any animation decoding options. + @return An initialized object + */ +- (nullable instancetype)initWithData:(nonnull NSData *)data scale:(CGFloat)scale options:(nullable SDImageCoderOptions *)options; + +/** + Initializes the image with an animated coder. You can use the coder to decode the image frame later. + @note We use this with animated coder which conforms to `SDProgressiveImageCoder` for progressive animation decoding. + + @param animatedCoder An animated coder which conform `SDAnimatedImageCoder` protocol + @param scale The scale factor to assume when interpreting the image data. Applying a scale factor of 1.0 results in an image whose size matches the pixel-based dimensions of the image. Applying a different scale factor changes the size of the image as reported by the `size` property. + @return An initialized object + */ +- (nullable instancetype)initWithAnimatedCoder:(nonnull id)animatedCoder scale:(CGFloat)scale; + +@optional +// These methods are used for optional advanced feature, like image frame preloading. +/** + Pre-load all animated image frame into memory. Then later frame image request can directly return the frame for index without decoding. + This method may be called on background thread. + + @note If one image instance is shared by lots of imageViews, the CPU performance for large animated image will drop down because the request frame index will be random (not in order) and the decoder should take extra effort to keep it re-entrant. You can use this to reduce CPU usage if need. Attention this will consume more memory usage. + */ +- (void)preloadAllFrames; + +/** + Unload all animated image frame from memory if are already pre-loaded. Then later frame image request need decoding. You can use this to free up the memory usage if need. + */ +- (void)unloadAllFrames; + +/** + Returns a Boolean value indicating whether all animated image frames are already pre-loaded into memory. + */ +@property (nonatomic, assign, readonly, getter=isAllFramesLoaded) BOOL allFramesLoaded; + +/** + Return the animated image coder if the image is created with `initWithAnimatedCoder:scale:` method. + @note We use this with animated coder which conforms to `SDProgressiveImageCoder` for progressive animation decoding. + */ +@property (nonatomic, strong, readonly, nullable) id animatedCoder; + +@end + +/** + The image class which supports animating on `SDAnimatedImageView`. You can also use it on normal UIImageView/NSImageView. + */ +NS_SWIFT_NONISOLATED +@interface SDAnimatedImage : UIImage + +// This class override these methods from UIImage(NSImage), and it supports NSSecureCoding. +// You should use these methods to create a new animated image. Use other methods just call super instead. +// @note Before 5.19, these initializer will return nil for static image (when all candidate SDAnimatedImageCoder returns nil instance), like JPEG data. After 5.19, these initializer will retry for static image as well, so JPEG data will return non-nil instance. For vector image(PDF/SVG), always return nil. +// @note When the animated image frame count <= 1, all the `SDAnimatedImageProvider` protocol methods will return nil or 0 value, you'd better check the frame count before usage and keep fallback. ++ (nullable instancetype)imageNamed:(nonnull NSString *)name; // Cache in memory, no Asset Catalog support +#if __has_include() ++ (nullable instancetype)imageNamed:(nonnull NSString *)name inBundle:(nullable NSBundle *)bundle compatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection; // Cache in memory, no Asset Catalog support +#else ++ (nullable instancetype)imageNamed:(nonnull NSString *)name inBundle:(nullable NSBundle *)bundle; // Cache in memory, no Asset Catalog support +#endif ++ (nullable instancetype)imageWithContentsOfFile:(nonnull NSString *)path; ++ (nullable instancetype)imageWithData:(nonnull NSData *)data; ++ (nullable instancetype)imageWithData:(nonnull NSData *)data scale:(CGFloat)scale; +- (nullable instancetype)initWithContentsOfFile:(nonnull NSString *)path; +- (nullable instancetype)initWithData:(nonnull NSData *)data; +- (nullable instancetype)initWithData:(nonnull NSData *)data scale:(CGFloat)scale; + +/** + Current animated image format. + @note This format is only valid when `animatedImageData` not nil. + @note This actually just call `[NSData sd_imageFormatForImageData:self.animatedImageData]` + */ +@property (nonatomic, assign, readonly) SDImageFormat animatedImageFormat; + +/** + Current animated image data, you can use this to grab the compressed format data and create another animated image instance. + If this image instance is an animated image created by using animated image coder (which means using the API listed above or using `initWithAnimatedCoder:scale:`), this property is non-nil. + */ +@property (nonatomic, copy, readonly, nullable) NSData *animatedImageData; + +/** + The scale factor of the image. + + @note For UIKit, this just call super instead. + @note For AppKit, `NSImage` can contains multiple image representations with different scales. However, this class does not do that from the design. We process the scale like UIKit. This will actually be calculated from image size and pixel size. + */ +@property (nonatomic, readonly) CGFloat scale; + +// By default, animated image frames are returned by decoding just in time without keeping into memory. But you can choose to preload them into memory as well, See the description in `SDAnimatedImage` protocol. +// After preloaded, there is no huge difference on performance between this and UIImage's `animatedImageWithImages:duration:`. But UIImage's animation have some issues such like blanking and pausing during segue when using in `UIImageView`. It's recommend to use only if need. +/** + Pre-load all animated image frame into memory. Then later frame image request can directly return the frame for index without decoding. + This method may be called on background thread. + + @note If one image instance is shared by lots of imageViews, the CPU performance for large animated image will drop down because the request frame index will be random (not in order) and the decoder should take extra effort to keep it re-entrant. You can use this to reduce CPU usage if need. Attention this will consume more memory usage. + */ +- (void)preloadAllFrames; + +/** + Unload all animated image frame from memory if are already pre-loaded. Then later frame image request need decoding. You can use this to free up the memory usage if need. + */ +- (void)unloadAllFrames; +/** + Returns a Boolean value indicating whether all animated image frames are already pre-loaded into memory. + */ +@property (nonatomic, assign, readonly, getter=isAllFramesLoaded) BOOL allFramesLoaded; +/** + Return the animated image coder if the image is created with `initWithAnimatedCoder:scale:` method. + @note We use this with animated coder which conforms to `SDProgressiveImageCoder` for progressive animation decoding. + */ +@property (nonatomic, strong, readonly, nullable) id animatedCoder; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDAnimatedImagePlayer.h b/Vendors/simulator/SDWebImage.framework/Headers/SDAnimatedImagePlayer.h new file mode 100644 index 000000000..77e041ac2 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDAnimatedImagePlayer.h @@ -0,0 +1,113 @@ +/* +* This file is part of the SDWebImage package. +* (c) Olivier Poitrey +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + +#import +#import "SDWebImageCompat.h" +#import "SDImageCoder.h" + +/// Animated image playback mode +typedef NS_ENUM(NSUInteger, SDAnimatedImagePlaybackMode) { + /** + * From first to last frame and stop or next loop. + */ + SDAnimatedImagePlaybackModeNormal = 0, + /** + * From last frame to first frame and stop or next loop. + */ + SDAnimatedImagePlaybackModeReverse, + /** + * From first frame to last frame and reverse again, like reciprocating. + */ + SDAnimatedImagePlaybackModeBounce, + /** + * From last frame to first frame and reverse again, like reversed reciprocating. + */ + SDAnimatedImagePlaybackModeReversedBounce, +}; + +/// A player to control the playback of animated image, which can be used to drive Animated ImageView or any rendering usage, like CALayer/WatchKit/SwiftUI rendering. +@interface SDAnimatedImagePlayer : NSObject + +/// Current playing frame image. This value is KVO Compliance. +@property (nonatomic, readonly, nullable) UIImage *currentFrame; + +/// Current frame index, zero based. This value is KVO Compliance. +@property (nonatomic, readonly) NSUInteger currentFrameIndex; + +/// Current loop count since its latest animating. This value is KVO Compliance. +@property (nonatomic, readonly) NSUInteger currentLoopCount; + +/// Total frame count for animated image rendering. Defaults is animated image's frame count. +/// @note For progressive animation, you can update this value when your provider receive more frames. +@property (nonatomic, assign) NSUInteger totalFrameCount; + +/// Total loop count for animated image rendering. Default is animated image's loop count. +@property (nonatomic, assign) NSUInteger totalLoopCount; + +/// The animation playback rate. Default is 1.0 +/// `1.0` means the normal speed. +/// `0.0` means stopping the animation. +/// `0.0-1.0` means the slow speed. +/// `> 1.0` means the fast speed. +/// `< 0.0` is not supported currently and stop animation. (may support reverse playback in the future) +@property (nonatomic, assign) double playbackRate; + +/// Asynchronous setup animation playback mode. Default mode is SDAnimatedImagePlaybackModeNormal. +@property (nonatomic, assign) SDAnimatedImagePlaybackMode playbackMode; + +/// Provide a max buffer size by bytes. This is used to adjust frame buffer count and can be useful when the decoding cost is expensive (such as Animated WebP software decoding). Default is 0. +/// `0` means automatically adjust by calculating current memory usage. +/// `1` means without any buffer cache, each of frames will be decoded and then be freed after rendering. (Lowest Memory and Highest CPU) +/// `NSUIntegerMax` means cache all the buffer. (Lowest CPU and Highest Memory) +@property (nonatomic, assign) NSUInteger maxBufferSize; + +/// You can specify a runloop mode to let it rendering. +/// Default is NSRunLoopCommonModes on multi-core device, NSDefaultRunLoopMode on single-core device +@property (nonatomic, copy, nonnull) NSRunLoopMode runLoopMode; + +/// Create a player with animated image provider. If the provider's `animatedImageFrameCount` is less than 1, returns nil. +/// The provider can be any protocol implementation, like `SDAnimatedImage`, `SDImageGIFCoder`, etc. +/// @note This provider can represent mutable content, like progressive animated loading. But you need to update the frame count by yourself +/// @param provider The animated provider +- (nullable instancetype)initWithProvider:(nonnull id)provider; + +/// Create a player with animated image provider. If the provider's `animatedImageFrameCount` is less than 1, returns nil. +/// The provider can be any protocol implementation, like `SDAnimatedImage` or `SDImageGIFCoder`, etc. +/// @note This provider can represent mutable content, like progressive animated loading. But you need to update the frame count by yourself +/// @param provider The animated provider ++ (nullable instancetype)playerWithProvider:(nonnull id)provider; + +/// The handler block when current frame and index changed. +@property (nonatomic, copy, nullable) void (^animationFrameHandler)(NSUInteger index, UIImage * _Nonnull frame); + +/// The handler block when one loop count finished. +@property (nonatomic, copy, nullable) void (^animationLoopHandler)(NSUInteger loopCount); + +/// Return the status whether animation is playing. +@property (nonatomic, readonly) BOOL isPlaying; + +/// Start the animation. Or resume the previously paused animation. +- (void)startPlaying; + +/// Pause the animation. Keep the current frame index and loop count. +- (void)pausePlaying; + +/// Stop the animation. Reset the current frame index and loop count. +- (void)stopPlaying; + +/// Seek to the desired frame index and loop count. +/// @note This can be used for advanced control like progressive loading, or skipping specify frames. +/// @param index The frame index +/// @param loopCount The loop count +- (void)seekToFrameAtIndex:(NSUInteger)index loopCount:(NSUInteger)loopCount; + +/// Clear the frame cache buffer. The frame cache buffer size can be controlled by `maxBufferSize`. +/// By default, when stop or pause the animation, the frame buffer is still kept to ready for the next restart +- (void)clearFrameBuffer; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDAnimatedImageRep.h b/Vendors/simulator/SDWebImage.framework/Headers/SDAnimatedImageRep.h new file mode 100644 index 000000000..dec2fbd57 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDAnimatedImageRep.h @@ -0,0 +1,33 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +#if SD_MAC + +#import "NSData+ImageContentType.h" + +/** + A subclass of `NSBitmapImageRep` to fix that GIF duration issue because `NSBitmapImageRep` will reset `NSImageCurrentFrameDuration` by using `kCGImagePropertyGIFDelayTime` but not `kCGImagePropertyGIFUnclampedDelayTime`. + This also fix the GIF loop count issue, which will use the Netscape standard (See http://www6.uniovi.es/gifanim/gifabout.htm) to only place once when the `kCGImagePropertyGIFLoopCount` is nil. This is what modern browser's behavior. + Built in GIF coder use this instead of `NSBitmapImageRep` for better GIF rendering. If you do not want this, only enable `SDImageIOCoder`, which just call `NSImage` API and actually use `NSBitmapImageRep` for GIF image. + This also support APNG format using `SDImageAPNGCoder`. Which provide full alpha-channel support and the correct duration match the `kCGImagePropertyAPNGUnclampedDelayTime`. + */ +@interface SDAnimatedImageRep : NSBitmapImageRep + +/// Current animated image format. +/// @note This format is only valid when `animatedImageData` not nil +@property (nonatomic, assign, readonly) SDImageFormat animatedImageFormat; + +/// This allows to retrive the compressed data like GIF using `sd_imageData` on parent `NSImage`, without re-encoding (waste CPU and RAM) +/// @note This is typically nonnull when you create with `initWithData:`, even it's marked as weak, because ImageIO retain it +@property (nonatomic, readonly, nullable, weak) NSData *animatedImageData; + +@end + +#endif diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDAnimatedImageView+WebCache.h b/Vendors/simulator/SDWebImage.framework/Headers/SDAnimatedImageView+WebCache.h new file mode 100644 index 000000000..af4647648 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDAnimatedImageView+WebCache.h @@ -0,0 +1,168 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDAnimatedImageView.h" + +#if SD_UIKIT || SD_MAC + +#import "SDWebImageManager.h" + +/** + Integrates SDWebImage async downloading and caching of remote images with SDAnimatedImageView. + */ +@interface SDAnimatedImageView (WebCache) + +/** + * Set the imageView `image` with an `url`. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url NS_REFINED_FOR_SWIFT; + +/** + * Set the imageView `image` with an `url` and a placeholder. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @see sd_setImageWithURL:placeholderImage:options: + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder NS_REFINED_FOR_SWIFT; + +/** + * Set the imageView `image` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options NS_REFINED_FOR_SWIFT; + +/** + * Set the imageView `image` with an `url`, placeholder, custom options and context. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context; + +/** + * Set the imageView `image` with an `url`. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the imageView `image` with an `url`, placeholder. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + completed:(nullable SDExternalCompletionBlock)completedBlock NS_REFINED_FOR_SWIFT; + +/** + * Set the imageView `image` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the imageView `image` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param progressBlock A block called while image is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + progress:(nullable SDImageLoaderProgressBlock)progressBlock + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the imageView `image` with an `url`, placeholder, custom options and context. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + * @param progressBlock A block called while image is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context + progress:(nullable SDImageLoaderProgressBlock)progressBlock + completed:(nullable SDExternalCompletionBlock)completedBlock; + +@end + +#endif diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDAnimatedImageView.h b/Vendors/simulator/SDWebImage.framework/Headers/SDAnimatedImageView.h new file mode 100644 index 000000000..431be9214 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDAnimatedImageView.h @@ -0,0 +1,111 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +#if SD_UIKIT || SD_MAC + +#import "SDAnimatedImage.h" +#import "SDAnimatedImagePlayer.h" + +/** + A drop-in replacement for UIImageView/NSImageView, you can use this for animated image rendering. + Call `setImage:` with `UIImage(NSImage)` which conforms to `SDAnimatedImage` protocol will start animated image rendering. Call with normal UIImage(NSImage) will back to normal UIImageView(NSImageView) rendering + For UIKit: use `-startAnimating`, `-stopAnimating` to control animating. `isAnimating` to check animation state. + For AppKit: use `-setAnimates:` to control animating, `animates` to check animation state. This view is layer-backed. + */ +NS_SWIFT_UI_ACTOR +@interface SDAnimatedImageView : UIImageView +/** + The internal animation player. + This property is only used for advanced usage, like inspecting/debugging animation status, control progressive loading, complicated animation frame index control, etc. + @warning Pay attention if you directly update the player's property like `totalFrameCount`, `totalLoopCount`, the same property on `SDAnimatedImageView` may not get synced. + */ +@property (nonatomic, strong, readonly, nullable) SDAnimatedImagePlayer *player; + +/** + Current display frame image. This value is KVO Compliance. + */ +@property (nonatomic, strong, readonly, nullable) UIImage *currentFrame; +/** + Current frame index, zero based. This value is KVO Compliance. + */ +@property (nonatomic, assign, readonly) NSUInteger currentFrameIndex; +/** + Current loop count since its latest animating. This value is KVO Compliance. + */ +@property (nonatomic, assign, readonly) NSUInteger currentLoopCount; +/** + YES to choose `animationRepeatCount` property for animation loop count. No to use animated image's `animatedImageLoopCount` instead. + Default is NO. + */ +@property (nonatomic, assign) BOOL shouldCustomLoopCount; +/** + Total loop count for animated image rendering. Default is animated image's loop count. + If you need to set custom loop count, set `shouldCustomLoopCount` to YES and change this value. + This class override UIImageView's `animationRepeatCount` property on iOS, use this property as well. + */ +@property (nonatomic, assign) NSInteger animationRepeatCount; +/** + The animation playback rate. Default is 1.0. + `1.0` means the normal speed. + `0.0` means stopping the animation. + `0.0-1.0` means the slow speed. + `> 1.0` means the fast speed. + `< 0.0` is not supported currently and stop animation. (may support reverse playback in the future) + */ +@property (nonatomic, assign) double playbackRate; + +/// Asynchronous setup animation playback mode. Default mode is SDAnimatedImagePlaybackModeNormal. +@property (nonatomic, assign) SDAnimatedImagePlaybackMode playbackMode; + +/** + Provide a max buffer size by bytes. This is used to adjust frame buffer count and can be useful when the decoding cost is expensive (such as Animated WebP software decoding). Default is 0. + `0` means automatically adjust by calculating current memory usage. + `1` means without any buffer cache, each of frames will be decoded and then be freed after rendering. (Lowest Memory and Highest CPU) + `NSUIntegerMax` means cache all the buffer. (Lowest CPU and Highest Memory) + */ +@property (nonatomic, assign) NSUInteger maxBufferSize; +/** + Whehter or not to enable incremental image load for animated image. This is for the animated image which `sd_isIncremental` is YES (See `UIImage+Metadata.h`). If enable, animated image rendering will stop at the last frame available currently, and continue when another `setImage:` trigger, where the new animated image's `animatedImageData` should be updated from the previous one. If the `sd_isIncremental` is NO. The incremental image load stop. + @note If you are confused about this description, open Chrome browser to view some large GIF images with low network speed to see the animation behavior. + @note The best practice to use incremental load is using `initWithAnimatedCoder:scale:` in `SDAnimatedImage` with animated coder which conform to `SDProgressiveImageCoder` as well. Then call incremental update and incremental decode method to produce the image. + Default is YES. Set to NO to only render the static poster for incremental animated image. + */ +@property (nonatomic, assign) BOOL shouldIncrementalLoad; + +/** + Whether or not to clear the frame buffer cache when animation stopped. See `maxBufferSize` + This is useful when you want to limit the memory usage during frequently visibility changes (such as image view inside a list view, then push and pop) + Default is NO. + */ +@property (nonatomic, assign) BOOL clearBufferWhenStopped; + +/** + Whether or not to reset the current frame index when animation stopped. + For some of use case, you may want to reset the frame index to 0 when stop, but some other want to keep the current frame index. + Default is NO. + */ +@property (nonatomic, assign) BOOL resetFrameIndexWhenStopped; + +/** + If the image which conforms to `SDAnimatedImage` protocol has more than one frame, set this value to `YES` will automatically + play/stop the animation when the view become visible/invisible. + Default is YES. + */ +@property (nonatomic, assign) BOOL autoPlayAnimatedImage; + +/** + You can specify a runloop mode to let it rendering. + Default is NSRunLoopCommonModes on multi-core device, NSDefaultRunLoopMode on single-core device + @note This is useful for some cases, for example, always specify NSDefaultRunLoopMode, if you want to pause the animation when user scroll (for Mac user, drag the mouse or touchpad) + */ +@property (nonatomic, copy, nonnull) NSRunLoopMode runLoopMode; +@end + +#endif diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDCallbackQueue.h b/Vendors/simulator/SDWebImage.framework/Headers/SDCallbackQueue.h new file mode 100644 index 000000000..faa74eab5 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDCallbackQueue.h @@ -0,0 +1,54 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + + +#import "SDWebImageCompat.h" + +/// SDCallbackPolicy controls how we execute the block on the queue, like whether to use `dispatch_async/dispatch_sync`, check if current queue match target queue, or just invoke without any context. +typedef NS_ENUM(NSUInteger, SDCallbackPolicy) { + /// When the current queue is equal to callback queue, sync/async will just invoke `block` directly without dispatch. Else it use `dispatch_async`/`dispatch_sync` to dispatch block on queue. This is useful for UIKit rendering to ensure all blocks executed in the same runloop + SDCallbackPolicySafeExecute = 0, + /// Follow async/sync using the correspond `dispatch_async`/`dispatch_sync` to dispatch block on queue + SDCallbackPolicyDispatch = 1, + /// Ignore any async/sync and just directly invoke `block` in current queue (without `dispatch_async`/`dispatch_sync`) + SDCallbackPolicyInvoke = 2 +}; + +/// SDCallbackQueue is a wrapper used to control how the completionBlock should perform on queues, used by our `Cache`/`Manager`/`Loader`. +/// Useful when you call SDWebImage in non-main queue and want to avoid it callback into main queue, which may cause issue. +@interface SDCallbackQueue : NSObject + +/// The shared main queue. This is the default value, has the same effect when passing `nil` to `SDWebImageContextCallbackQueue` +@property (nonnull, class, readonly) SDCallbackQueue *mainQueue; + +/// The caller current queue. Using `dispatch_get_current_queue`. This is not a dynamic value and only keep the first call time queue. +@property (nonnull, class, readonly) SDCallbackQueue *currentQueue; + +/// The global concurrent queue (user-initiated QoS). Using `dispatch_get_global_queue`. +@property (nonnull, class, readonly) SDCallbackQueue *globalQueue; + +/// The current queue's callback policy, defaults to `SDCallbackPolicySafeExecute`, which behaves like the old macro `dispatch_main_async_safe` +@property (assign, readwrite) SDCallbackPolicy policy; + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; +/// Create the callback queue with a GCD queue +/// - Parameter queue: The GCD queue, should not be NULL +- (nonnull instancetype)initWithDispatchQueue:(nonnull dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER; + +#pragma mark - Execution Entry + +/// Submits a block for execution and returns after that block finishes executing. +/// - Parameter block: The block that contains the work to perform. +- (void)sync:(nonnull dispatch_block_t)block; + +/// Schedules a block asynchronously for execution. +/// - Parameter block: The block that contains the work to perform. +- (void)async:(nonnull dispatch_block_t)block; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDDiskCache.h b/Vendors/simulator/SDWebImage.framework/Headers/SDDiskCache.h new file mode 100644 index 000000000..fbfd4a93a --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDDiskCache.h @@ -0,0 +1,146 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +@class SDImageCacheConfig; +/** + A protocol to allow custom disk cache used in SDImageCache. + */ +@protocol SDDiskCache + +// All of these method are called from the same global queue to avoid blocking on main queue and thread-safe problem. But it's also recommend to ensure thread-safe yourself using lock or other ways. +@required +/** + Create a new disk cache based on the specified path. You can check `maxDiskSize` and `maxDiskAge` used for disk cache. + + @param cachePath Full path of a directory in which the cache will write data. + Once initialized you should not read and write to this directory. + @param config The cache config to be used to create the cache. + + @return A new cache object, or nil if an error occurs. + */ +- (nullable instancetype)initWithCachePath:(nonnull NSString *)cachePath config:(nonnull SDImageCacheConfig *)config; + +/** + Returns a boolean value that indicates whether a given key is in cache. + This method may blocks the calling thread until file read finished. + + @param key A string identifying the data. If nil, just return NO. + @return Whether the key is in cache. + */ +- (BOOL)containsDataForKey:(nonnull NSString *)key; + +/** + Returns the data associated with a given key. + This method may blocks the calling thread until file read finished. + + @param key A string identifying the data. If nil, just return nil. + @return The value associated with key, or nil if no value is associated with key. + */ +- (nullable NSData *)dataForKey:(nonnull NSString *)key; + +/** + Sets the value of the specified key in the cache. + This method may blocks the calling thread until file write finished. + + @param data The data to be stored in the cache. + @param key The key with which to associate the value. If nil, this method has no effect. + */ +- (void)setData:(nullable NSData *)data forKey:(nonnull NSString *)key; + +/** + Returns the extended data associated with a given key. + This method may blocks the calling thread until file read finished. + + @param key A string identifying the data. If nil, just return nil. + @return The value associated with key, or nil if no value is associated with key. + */ +- (nullable NSData *)extendedDataForKey:(nonnull NSString *)key; + +/** + Set extended data with a given key. + + @discussion You can set any extended data to exist cache key. Without override the exist disk file data. + on UNIX, the common way for this is to use the Extended file attributes (xattr) + + @param extendedData The extended data (pass nil to remove). + @param key The key with which to associate the value. If nil, this method has no effect. +*/ +- (void)setExtendedData:(nullable NSData *)extendedData forKey:(nonnull NSString *)key; + +/** + Removes the value of the specified key in the cache. + This method may blocks the calling thread until file delete finished. + + @param key The key identifying the value to be removed. If nil, this method has no effect. + */ +- (void)removeDataForKey:(nonnull NSString *)key; + +/** + Empties the cache. + This method may blocks the calling thread until file delete finished. + */ +- (void)removeAllData; + +/** + Removes the expired data from the cache. You can choose the data to remove base on `ageLimit`, `countLimit` and `sizeLimit` options. + */ +- (void)removeExpiredData; + +/** + The cache path for key + + @param key A string identifying the value + @return The cache path for key. Or nil if the key can not associate to a path + */ +- (nullable NSString *)cachePathForKey:(nonnull NSString *)key; + +/** + Returns the number of data in this cache. + This method may blocks the calling thread until file read finished. + + @return The total data count. + */ +- (NSUInteger)totalCount; + +/** + Returns the total size (in bytes) of data in this cache. + This method may blocks the calling thread until file read finished. + + @return The total data size in bytes. + */ +- (NSUInteger)totalSize; + +@end + +/** + The built-in disk cache. + */ +@interface SDDiskCache : NSObject +/** + Cache Config object - storing all kind of settings. + */ +@property (nonatomic, strong, readonly, nonnull) SDImageCacheConfig *config; + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; + +/** + Move the cache directory from old location to new location, the old location will be removed after finish. + If the old location does not exist, does nothing. + If the new location does not exist, only do a movement of directory. + If the new location does exist, will move and merge the files from old location. + If the new location does exist, but is not a directory, will remove it and do a movement of directory. + + @param srcPath old location of cache directory + @param dstPath new location of cache directory + */ +- (void)moveCacheDirectoryFromPath:(nonnull NSString *)srcPath toPath:(nonnull NSString *)dstPath; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDGraphicsImageRenderer.h b/Vendors/simulator/SDWebImage.framework/Headers/SDGraphicsImageRenderer.h new file mode 100644 index 000000000..7b185fef5 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDGraphicsImageRenderer.h @@ -0,0 +1,79 @@ +/* +* This file is part of the SDWebImage package. +* (c) Olivier Poitrey +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + +#import "SDWebImageCompat.h" + +/** + These following class are provided to use `UIGraphicsImageRenderer` with polyfill, which allows write cross-platform(AppKit/UIKit) code and avoid runtime version check. + Compared to `UIGraphicsBeginImageContext`, `UIGraphicsImageRenderer` use dynamic bitmap from your draw code to generate CGContext, not always use ARGB8888, which is more performant on RAM usage. + Which means, if you draw CGImage/CIImage which contains grayscale only, the underlaying bitmap context use grayscale, it's managed by system and not a fixed type. (actually, the `kCGContextTypeAutomatic`) + For usage, See more in Apple's documentation: https://developer.apple.com/documentation/uikit/uigraphicsimagerenderer + For UIKit on iOS/tvOS 10+, these method just use the same `UIGraphicsImageRenderer` API. + For others (macOS/watchOS or iOS/tvOS 10-), these method use the `SDImageGraphics.h` to implements the same behavior (but without dynamic bitmap support) +*/ + +/// A closure for drawing an image. +typedef void (^SDGraphicsImageDrawingActions)(CGContextRef _Nonnull context); +/// Constants that specify the color range of the image renderer context. +typedef NS_ENUM(NSInteger, SDGraphicsImageRendererFormatRange) { + /// The image renderer context doesn’t specify a color range. + SDGraphicsImageRendererFormatRangeUnspecified = -1, + /// The system automatically chooses the image renderer context’s pixel format according to the color range of its content. + SDGraphicsImageRendererFormatRangeAutomatic = 0, + /// The image renderer context supports wide color. + SDGraphicsImageRendererFormatRangeExtended, + /// The image renderer context doesn’t support extended colors. + SDGraphicsImageRendererFormatRangeStandard +}; + +/// A set of drawing attributes that represent the configuration of an image renderer context. +@interface SDGraphicsImageRendererFormat : NSObject + +/// The display scale of the image renderer context. +/// The default value is equal to the scale of the main screen. +@property (nonatomic) CGFloat scale; + +/// A Boolean value indicating whether the underlying Core Graphics context has an alpha channel. +/// The default value is NO. +@property (nonatomic) BOOL opaque; + +/// Specifying whether the bitmap context should use extended color. +/// For iOS 12+, the value is from system `preferredRange` property +/// For iOS 10-11, the value is from system `prefersExtendedRange` property +/// For iOS 9-, the value is `.standard` +@property (nonatomic) SDGraphicsImageRendererFormatRange preferredRange; + +/// Init the default format. See each properties's default value. +- (nonnull instancetype)init; + +/// Returns a new format best suited for the main screen’s current configuration. ++ (nonnull instancetype)preferredFormat; + +@end + +/// A graphics renderer for creating Core Graphics-backed images. +@interface SDGraphicsImageRenderer : NSObject + +/// Creates an image renderer for drawing images of a given size. +/// @param size The size of images output from the renderer, specified in points. +/// @return An initialized image renderer. +- (nonnull instancetype)initWithSize:(CGSize)size; + +/// Creates a new image renderer with a given size and format. +/// @param size The size of images output from the renderer, specified in points. +/// @param format A SDGraphicsImageRendererFormat object that encapsulates the format used to create the renderer context. +/// @return An initialized image renderer. +- (nonnull instancetype)initWithSize:(CGSize)size format:(nonnull SDGraphicsImageRendererFormat *)format; + +/// Creates an image by following a set of drawing instructions. +/// @param actions A SDGraphicsImageDrawingActions block that, when invoked by the renderer, executes a set of drawing instructions to create the output image. +/// @note You should not retain or use the context outside the block, it's non-escaping. +/// @return A UIImage object created by the supplied drawing actions. +- (nonnull UIImage *)imageWithActions:(nonnull NS_NOESCAPE SDGraphicsImageDrawingActions)actions; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDImageAPNGCoder.h b/Vendors/simulator/SDWebImage.framework/Headers/SDImageAPNGCoder.h new file mode 100644 index 000000000..f73742cbf --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDImageAPNGCoder.h @@ -0,0 +1,19 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDImageIOAnimatedCoder.h" + +/** + Built in coder using ImageIO that supports APNG encoding/decoding + */ +@interface SDImageAPNGCoder : SDImageIOAnimatedCoder + +@property (nonatomic, class, readonly, nonnull) SDImageAPNGCoder *sharedCoder; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDImageAWebPCoder.h b/Vendors/simulator/SDWebImage.framework/Headers/SDImageAWebPCoder.h new file mode 100644 index 000000000..4b585a992 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDImageAWebPCoder.h @@ -0,0 +1,23 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDImageIOAnimatedCoder.h" + +/** + This coder is used for Google WebP and Animated WebP(AWebP) image format. + Image/IO provide the WebP decoding support in iOS 14/macOS 11/tvOS 14/watchOS 7+. + @note Currently Image/IO seems does not supports WebP encoding, if you need WebP encoding, use the custom codec below. + @note If you need to support lower firmware version for WebP, you can have a try at https://github.com/SDWebImage/SDWebImageWebPCoder + */ +API_AVAILABLE(ios(14.0), tvos(14.0), macos(11.0), watchos(7.0)) +@interface SDImageAWebPCoder : SDImageIOAnimatedCoder + +@property (nonatomic, class, readonly, nonnull) SDImageAWebPCoder *sharedCoder; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDImageCache.h b/Vendors/simulator/SDWebImage.framework/Headers/SDImageCache.h new file mode 100644 index 000000000..d576f43f3 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDImageCache.h @@ -0,0 +1,477 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageCompat.h" +#import "SDWebImageDefine.h" +#import "SDImageCacheConfig.h" +#import "SDImageCacheDefine.h" +#import "SDMemoryCache.h" +#import "SDDiskCache.h" + +/// Image Cache Options +typedef NS_OPTIONS(NSUInteger, SDImageCacheOptions) { + /** + * By default, we do not query image data when the image is already cached in memory. This mask can force to query image data at the same time. However, this query is asynchronously unless you specify `SDImageCacheQueryMemoryDataSync` + */ + SDImageCacheQueryMemoryData = 1 << 0, + /** + * By default, when you only specify `SDImageCacheQueryMemoryData`, we query the memory image data asynchronously. Combined this mask as well to query the memory image data synchronously. + */ + SDImageCacheQueryMemoryDataSync = 1 << 1, + /** + * By default, when the memory cache miss, we query the disk cache asynchronously. This mask can force to query disk cache (when memory cache miss) synchronously. + @note These 3 query options can be combined together. For the full list about these masks combination, see wiki page. + */ + SDImageCacheQueryDiskDataSync = 1 << 2, + /** + * By default, images are decoded respecting their original size. On iOS, this flag will scale down the + * images to a size compatible with the constrained memory of devices. + */ + SDImageCacheScaleDownLargeImages = 1 << 3, + /** + * By default, we will decode the image in the background during cache query and download from the network. This can help to improve performance because when rendering image on the screen, it need to be firstly decoded. But this happen on the main queue by Core Animation. + * However, this process may increase the memory usage as well. If you are experiencing a issue due to excessive memory consumption, This flag can prevent decode the image. + * @note 5.14.0 introduce `SDImageCoderDecodeUseLazyDecoding`, use that for better control from codec, instead of post-processing. Which acts the similar like this option but works for SDAnimatedImage as well (this one does not) + * @deprecated Deprecated in v5.17.0, if you don't want force-decode, pass [.imageForceDecodePolicy] = SDImageForceDecodePolicy.never.rawValue in context option + */ + SDImageCacheAvoidDecodeImage API_DEPRECATED("Use SDWebImageContextImageForceDecodePolicy instead", macos(10.10, 10.10), ios(8.0, 8.0), tvos(9.0, 9.0), watchos(2.0, 2.0)) = 1 << 4, + /** + * By default, we decode the animated image. This flag can force decode the first frame only and produce the static image. + */ + SDImageCacheDecodeFirstFrameOnly = 1 << 5, + /** + * By default, for `SDAnimatedImage`, we decode the animated image frame during rendering to reduce memory usage. This flag actually trigger `preloadAllAnimatedImageFrames = YES` after image load from disk cache + */ + SDImageCachePreloadAllFrames = 1 << 6, + /** + * By default, when you use `SDWebImageContextAnimatedImageClass` context option (like using `SDAnimatedImageView` which designed to use `SDAnimatedImage`), we may still use `UIImage` when the memory cache hit, or image decoder is not available, to behave as a fallback solution. + * Using this option, can ensure we always produce image with your provided class. If failed, an error with code `SDWebImageErrorBadImageData` will be used. + * Note this options is not compatible with `SDImageCacheDecodeFirstFrameOnly`, which always produce a UIImage/NSImage. + */ + SDImageCacheMatchAnimatedImageClass = 1 << 7, +}; + +/** + * A token associated with each cache query. Can be used to cancel a cache query + */ +@interface SDImageCacheToken : NSObject + +/** + Cancel the current cache query. + */ +- (void)cancel; + +/** + The query's cache key. + */ +@property (nonatomic, strong, nullable, readonly) NSString *key; + +@end + +/** + * SDImageCache maintains a memory cache and a disk cache. Disk cache write operations are performed + * asynchronous so it doesn’t add unnecessary latency to the UI. + */ +@interface SDImageCache : NSObject + +#pragma mark - Properties + +/** + * Cache Config object - storing all kind of settings. + * The property is copy so change of current config will not accidentally affect other cache's config. + */ +@property (nonatomic, copy, nonnull, readonly) SDImageCacheConfig *config; + +/** + * The memory cache implementation object used for current image cache. + * By default we use `SDMemoryCache` class, you can also use this to call your own implementation class method. + * @note To customize this class, check `SDImageCacheConfig.memoryCacheClass` property. + */ +@property (nonatomic, strong, readonly, nonnull) id memoryCache; + +/** + * The disk cache implementation object used for current image cache. + * By default we use `SDMemoryCache` class, you can also use this to call your own implementation class method. + * @note To customize this class, check `SDImageCacheConfig.diskCacheClass` property. + * @warning When calling method about read/write in disk cache, be sure to either make your disk cache implementation IO-safe or using the same access queue to avoid issues. + */ +@property (nonatomic, strong, readonly, nonnull) id diskCache; + +/** + * The disk cache's root path + */ +@property (nonatomic, copy, nonnull, readonly) NSString *diskCachePath; + +/** + * The additional disk cache path to check if the query from disk cache not exist; + * The `key` param is the image cache key. The returned file path will be used to load the disk cache. If return nil, ignore it. + * Useful if you want to bundle pre-loaded images with your app + */ +@property (nonatomic, copy, nullable) SDImageCacheAdditionalCachePathBlock additionalCachePathBlock; + +#pragma mark - Singleton and initialization + +/** + * Returns global shared cache instance + */ +@property (nonatomic, class, readonly, nonnull) SDImageCache *sharedImageCache; + +/** + * Control the default disk cache directory. This will effect all the SDImageCache instance created after modification, even for shared image cache. + * This can be used to share the same disk cache with the App and App Extension (Today/Notification Widget) using `- [NSFileManager.containerURLForSecurityApplicationGroupIdentifier:]`. + * @note If you pass nil, the value will be reset to `~/Library/Caches/com.hackemist.SDImageCache`. + * @note We still preserve the `namespace` arg, which means, if you change this property into `/path/to/use`, the `SDImageCache.sharedImageCache.diskCachePath` should be `/path/to/use/default` because shared image cache use `default` as namespace. + * Defaults to nil. + */ +@property (nonatomic, class, readwrite, null_resettable) NSString *defaultDiskCacheDirectory; + +/** + * Init a new cache store with a specific namespace + * The final disk cache directory should looks like ($directory/$namespace). And the default config of shared cache, should result in (~/Library/Caches/com.hackemist.SDImageCache/default/) + * + * @param ns The namespace to use for this cache store + */ +- (nonnull instancetype)initWithNamespace:(nonnull NSString *)ns; + +/** + * Init a new cache store with a specific namespace and directory. + * The final disk cache directory should looks like ($directory/$namespace). And the default config of shared cache, should result in (~/Library/Caches/com.hackemist.SDImageCache/default/) + * + * @param ns The namespace to use for this cache store + * @param directory Directory to cache disk images in + */ +- (nonnull instancetype)initWithNamespace:(nonnull NSString *)ns + diskCacheDirectory:(nullable NSString *)directory; + +/** + * Init a new cache store with a specific namespace, directory and config. + * The final disk cache directory should looks like ($directory/$namespace). And the default config of shared cache, should result in (~/Library/Caches/com.hackemist.SDImageCache/default/) + * + * @param ns The namespace to use for this cache store + * @param directory Directory to cache disk images in + * @param config The cache config to be used to create the cache. You can provide custom memory cache or disk cache class in the cache config + */ +- (nonnull instancetype)initWithNamespace:(nonnull NSString *)ns + diskCacheDirectory:(nullable NSString *)directory + config:(nullable SDImageCacheConfig *)config NS_DESIGNATED_INITIALIZER; + +#pragma mark - Cache paths + +/** + Get the cache path for a certain key + + @param key The unique image cache key + @return The cache path. You can check `lastPathComponent` to grab the file name. + */ +- (nullable NSString *)cachePathForKey:(nullable NSString *)key; + +#pragma mark - Store Ops + +/** + * Asynchronously store an image into memory and disk cache at the given key. + * + * @param image The image to store + * @param key The unique image cache key, usually it's image absolute URL + * @param completionBlock A block executed after the operation is finished + */ +- (void)storeImage:(nullable UIImage *)image + forKey:(nullable NSString *)key + completion:(nullable SDWebImageNoParamsBlock)completionBlock; + +/** + * Asynchronously store an image into memory and disk cache at the given key. + * + * @param image The image to store + * @param key The unique image cache key, usually it's image absolute URL + * @param toDisk Store the image to disk cache if YES. If NO, the completion block is called synchronously + * @param completionBlock A block executed after the operation is finished + * @note If no image data is provided and encode to disk, we will try to detect the image format (using either `sd_imageFormat` or `SDAnimatedImage` protocol method) and animation status, to choose the best matched format, including GIF, JPEG or PNG. + */ +- (void)storeImage:(nullable UIImage *)image + forKey:(nullable NSString *)key + toDisk:(BOOL)toDisk + completion:(nullable SDWebImageNoParamsBlock)completionBlock; + +/** + * Asynchronously store an image data into disk cache at the given key. + * + * @param imageData The image data to store + * @param key The unique image cache key, usually it's image absolute URL + * @param completionBlock A block executed after the operation is finished + */ +- (void)storeImageData:(nullable NSData *)imageData + forKey:(nullable NSString *)key + completion:(nullable SDWebImageNoParamsBlock)completionBlock; + +/** + * Asynchronously store an image into memory and disk cache at the given key. + * + * @param image The image to store + * @param imageData The image data as returned by the server, this representation will be used for disk storage + * instead of converting the given image object into a storable/compressed image format in order + * to save quality and CPU + * @param key The unique image cache key, usually it's image absolute URL + * @param toDisk Store the image to disk cache if YES. If NO, the completion block is called synchronously + * @param completionBlock A block executed after the operation is finished + * @note If no image data is provided and encode to disk, we will try to detect the image format (using either `sd_imageFormat` or `SDAnimatedImage` protocol method) and animation status, to choose the best matched format, including GIF, JPEG or PNG. + */ +- (void)storeImage:(nullable UIImage *)image + imageData:(nullable NSData *)imageData + forKey:(nullable NSString *)key + toDisk:(BOOL)toDisk + completion:(nullable SDWebImageNoParamsBlock)completionBlock; + +/** + * Asynchronously store an image into memory and disk cache at the given key. + * + * @param image The image to store + * @param imageData The image data as returned by the server, this representation will be used for disk storage + * instead of converting the given image object into a storable/compressed image format in order + * to save quality and CPU + * @param key The unique image cache key, usually it's image absolute URL + * @param options A mask to specify options to use for this store + * @param context The context options to use. Pass `.callbackQueue` to control callback queue + * @param cacheType The image store op cache type + * @param completionBlock A block executed after the operation is finished + * @note If no image data is provided and encode to disk, we will try to detect the image format (using either `sd_imageFormat` or `SDAnimatedImage` protocol method) and animation status, to choose the best matched format, including GIF, JPEG or PNG. + */ +- (void)storeImage:(nullable UIImage *)image + imageData:(nullable NSData *)imageData + forKey:(nullable NSString *)key + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context + cacheType:(SDImageCacheType)cacheType + completion:(nullable SDWebImageNoParamsBlock)completionBlock; + +/** + * Synchronously store an image into memory cache at the given key. + * + * @param image The image to store + * @param key The unique image cache key, usually it's image absolute URL + */ +- (void)storeImageToMemory:(nullable UIImage*)image + forKey:(nullable NSString *)key; + +/** + * Synchronously store an image data into disk cache at the given key. + * + * @param imageData The image data to store + * @param key The unique image cache key, usually it's image absolute URL + */ +- (void)storeImageDataToDisk:(nullable NSData *)imageData + forKey:(nullable NSString *)key; + + +#pragma mark - Contains and Check Ops + +/** + * Asynchronously check if image exists in disk cache already (does not load the image) + * + * @param key the key describing the url + * @param completionBlock the block to be executed when the check is done. + * @note the completion block will be always executed on the main queue + */ +- (void)diskImageExistsWithKey:(nullable NSString *)key completion:(nullable SDImageCacheCheckCompletionBlock)completionBlock; + +/** + * Synchronously check if image data exists in disk cache already (does not load the image) + * + * @param key the key describing the url + */ +- (BOOL)diskImageDataExistsWithKey:(nullable NSString *)key; + +#pragma mark - Query and Retrieve Ops + +/** + * Synchronously query the image data for the given key in disk cache. You can decode the image data to image after loaded. + * + * @param key The unique key used to store the wanted image + * @return The image data for the given key, or nil if not found. + */ +- (nullable NSData *)diskImageDataForKey:(nullable NSString *)key; + +/** + * Asynchronously query the image data for the given key in disk cache. You can decode the image data to image after loaded. + * + * @param key The unique key used to store the wanted image + * @param completionBlock the block to be executed when the query is done. + * @note the completion block will be always executed on the main queue + */ +- (void)diskImageDataQueryForKey:(nullable NSString *)key completion:(nullable SDImageCacheQueryDataCompletionBlock)completionBlock; + +/** + * Asynchronously queries the cache with operation and call the completion when done. + * + * @param key The unique key used to store the wanted image. If you want transformed or thumbnail image, calculate the key with `SDTransformedKeyForKey`, `SDThumbnailedKeyForKey`, or generate the cache key from url with `cacheKeyForURL:context:`. + * @param doneBlock The completion block. Will not get called if the operation is cancelled + * + * @return a SDImageCacheToken instance containing the cache operation, will callback immediately when cancelled + */ +- (nullable SDImageCacheToken *)queryCacheOperationForKey:(nullable NSString *)key done:(nullable SDImageCacheQueryCompletionBlock)doneBlock; + +/** + * Asynchronously queries the cache with operation and call the completion when done. + * + * @param key The unique key used to store the wanted image. If you want transformed or thumbnail image, calculate the key with `SDTransformedKeyForKey`, `SDThumbnailedKeyForKey`, or generate the cache key from url with `cacheKeyForURL:context:`. + * @param options A mask to specify options to use for this cache query + * @param doneBlock The completion block. Will not get called if the operation is cancelled + * + * @return a SDImageCacheToken instance containing the cache operation, will callback immediately when cancelled + * @warning If you query with thumbnail cache key, you'd better not pass the thumbnail pixel size context, which is undefined behavior. + */ +- (nullable SDImageCacheToken *)queryCacheOperationForKey:(nullable NSString *)key options:(SDImageCacheOptions)options done:(nullable SDImageCacheQueryCompletionBlock)doneBlock; + +/** + * Asynchronously queries the cache with operation and call the completion when done. + * + * @param key The unique key used to store the wanted image. If you want transformed or thumbnail image, calculate the key with `SDTransformedKeyForKey`, `SDThumbnailedKeyForKey`, or generate the cache key from url with `cacheKeyForURL:context:`. + * @param options A mask to specify options to use for this cache query + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + * @param doneBlock The completion block. Will not get called if the operation is cancelled + * + * @return a SDImageCacheToken instance containing the cache operation, will callback immediately when cancellederation, will callback immediately when cancelled + * @warning If you query with thumbnail cache key, you'd better not pass the thumbnail pixel size context, which is undefined behavior. + */ +- (nullable SDImageCacheToken *)queryCacheOperationForKey:(nullable NSString *)key options:(SDImageCacheOptions)options context:(nullable SDWebImageContext *)context done:(nullable SDImageCacheQueryCompletionBlock)doneBlock; + +/** + * Asynchronously queries the cache with operation and call the completion when done. + * + * @param key The unique key used to store the wanted image. If you want transformed or thumbnail image, calculate the key with `SDTransformedKeyForKey`, `SDThumbnailedKeyForKey`, or generate the cache key from url with `cacheKeyForURL:context:`. + * @param options A mask to specify options to use for this cache query + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + * @param queryCacheType Specify where to query the cache from. By default we use `.all`, which means both memory cache and disk cache. You can choose to query memory only or disk only as well. Pass `.none` is invalid and callback with nil immediately. + * @param doneBlock The completion block. Will not get called if the operation is cancelled + * + * @return a SDImageCacheToken instance containing the cache operation, will callback immediately when cancelled + * @warning If you query with thumbnail cache key, you'd better not pass the thumbnail pixel size context, which is undefined behavior. + */ +- (nullable SDImageCacheToken *)queryCacheOperationForKey:(nullable NSString *)key options:(SDImageCacheOptions)options context:(nullable SDWebImageContext *)context cacheType:(SDImageCacheType)queryCacheType done:(nullable SDImageCacheQueryCompletionBlock)doneBlock; + +/** + * Synchronously query the memory cache. + * + * @param key The unique key used to store the image + * @return The image for the given key, or nil if not found. + */ +- (nullable UIImage *)imageFromMemoryCacheForKey:(nullable NSString *)key; + +/** + * Synchronously query the disk cache. + * + * @param key The unique key used to store the image + * @return The image for the given key, or nil if not found. + */ +- (nullable UIImage *)imageFromDiskCacheForKey:(nullable NSString *)key; + +/** + * Synchronously query the disk cache. With the options and context which may effect the image generation. (Such as transformer, animated image, thumbnail, etc) + * + * @param key The unique key used to store the image + * @param options A mask to specify options to use for this cache query + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + * @return The image for the given key, or nil if not found. + */ +- (nullable UIImage *)imageFromDiskCacheForKey:(nullable NSString *)key options:(SDImageCacheOptions)options context:(nullable SDWebImageContext *)context; + +/** + * Synchronously query the cache (memory and or disk) after checking the memory cache. + * + * @param key The unique key used to store the image + * @return The image for the given key, or nil if not found. + */ +- (nullable UIImage *)imageFromCacheForKey:(nullable NSString *)key; + +/** + * Synchronously query the cache (memory and or disk) after checking the memory cache. With the options and context which may effect the image generation. (Such as transformer, animated image, thumbnail, etc) + * + * @param key The unique key used to store the image + * @param options A mask to specify options to use for this cache query + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + * @return The image for the given key, or nil if not found. + */ +- (nullable UIImage *)imageFromCacheForKey:(nullable NSString *)key options:(SDImageCacheOptions)options context:(nullable SDWebImageContext *)context; + +#pragma mark - Remove Ops + +/** + * Asynchronously remove the image from memory and disk cache + * + * @param key The unique image cache key + * @param completion A block that should be executed after the image has been removed (optional) + */ +- (void)removeImageForKey:(nullable NSString *)key withCompletion:(nullable SDWebImageNoParamsBlock)completion; + +/** + * Asynchronously remove the image from memory and optionally disk cache + * + * @param key The unique image cache key + * @param fromDisk Also remove cache entry from disk if YES. If NO, the completion block is called synchronously + * @param completion A block that should be executed after the image has been removed (optional) + */ +- (void)removeImageForKey:(nullable NSString *)key fromDisk:(BOOL)fromDisk withCompletion:(nullable SDWebImageNoParamsBlock)completion; + +/** + Synchronously remove the image from memory cache. + + @param key The unique image cache key + */ +- (void)removeImageFromMemoryForKey:(nullable NSString *)key; + +/** + Synchronously remove the image from disk cache. + + @param key The unique image cache key + */ +- (void)removeImageFromDiskForKey:(nullable NSString *)key; + +#pragma mark - Cache clean Ops + +/** + * Synchronously Clear all memory cached images + */ +- (void)clearMemory; + +/** + * Asynchronously clear all disk cached images. Non-blocking method - returns immediately. + * @param completion A block that should be executed after cache expiration completes (optional) + */ +- (void)clearDiskOnCompletion:(nullable SDWebImageNoParamsBlock)completion; + +/** + * Asynchronously remove all expired cached image from disk. Non-blocking method - returns immediately. + * @param completionBlock A block that should be executed after cache expiration completes (optional) + */ +- (void)deleteOldFilesWithCompletionBlock:(nullable SDWebImageNoParamsBlock)completionBlock; + +#pragma mark - Cache Info + +/** + * Get the total bytes size of images in the disk cache + */ +- (NSUInteger)totalDiskSize; + +/** + * Get the number of images in the disk cache + */ +- (NSUInteger)totalDiskCount; + +/** + * Asynchronously calculate the disk cache's size. + */ +- (void)calculateSizeWithCompletionBlock:(nullable SDImageCacheCalculateSizeBlock)completionBlock; + +@end + +/** + * SDImageCache is the built-in image cache implementation for web image manager. It adopts `SDImageCache` protocol to provide the function for web image manager to use for image loading process. + */ +@interface SDImageCache (SDImageCache) + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDImageCacheConfig.h b/Vendors/simulator/SDWebImage.framework/Headers/SDImageCacheConfig.h new file mode 100644 index 000000000..91889158d --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDImageCacheConfig.h @@ -0,0 +1,153 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageCompat.h" + +/// Image Cache Expire Type +typedef NS_ENUM(NSUInteger, SDImageCacheConfigExpireType) { + /** + * When the image cache is accessed it will update this value + */ + SDImageCacheConfigExpireTypeAccessDate, + /** + * When the image cache is created or modified it will update this value (Default) + */ + SDImageCacheConfigExpireTypeModificationDate, + /** + * When the image cache is created it will update this value + */ + SDImageCacheConfigExpireTypeCreationDate, + /** + * When the image cache is created, modified, renamed, file attribute updated (like permission, xattr) it will update this value + */ + SDImageCacheConfigExpireTypeChangeDate, +}; + +/** + The class contains all the config for image cache + @note This class conform to NSCopying, make sure to add the property in `copyWithZone:` as well. + */ +@interface SDImageCacheConfig : NSObject + +/** + Gets the default cache config used for shared instance or initialization when it does not provide any cache config. Such as `SDImageCache.sharedImageCache`. + @note You can modify the property on default cache config, which can be used for later created cache instance. The already created cache instance does not get affected. + */ +@property (nonatomic, class, readonly, nonnull) SDImageCacheConfig *defaultCacheConfig; + +/** + * Whether or not to disable iCloud backup + * Defaults to YES. + */ +@property (assign, nonatomic) BOOL shouldDisableiCloud; + +/** + * Whether or not to use memory cache + * @note When the memory cache is disabled, the weak memory cache will also be disabled. + * Defaults to YES. + */ +@property (assign, nonatomic) BOOL shouldCacheImagesInMemory; + +/* + * The option to control weak memory cache for images. When enable, `SDImageCache`'s memory cache will use a weak maptable to store the image at the same time when it stored to memory, and get removed at the same time. + * However when memory warning is triggered, since the weak maptable does not hold a strong reference to image instance, even when the memory cache itself is purged, some images which are held strongly by UIImageViews or other live instances can be recovered again, to avoid later re-query from disk cache or network. This may be helpful for the case, for example, when app enter background and memory is purged, cause cell flashing after re-enter foreground. + * When enabling this option, we will sync back the image from weak maptable to strong cache during next time top level `sd_setImage` function call. + * Defaults to NO (YES before 5.12.0 version). You can change this option dynamically. + */ +@property (assign, nonatomic) BOOL shouldUseWeakMemoryCache; + +/** + * Whether or not to remove the expired disk data when application entering the background. (Not works for macOS) + * Defaults to YES. + */ +@property (assign, nonatomic) BOOL shouldRemoveExpiredDataWhenEnterBackground; + +/** + * Whether or not to remove the expired disk data when application been terminated. This operation is processed in sync to ensure clean up. + * Defaults to YES. + */ +@property (assign, nonatomic) BOOL shouldRemoveExpiredDataWhenTerminate; + +/** + * The reading options while reading cache from disk. + * Defaults to 0. You can set this to `NSDataReadingMappedIfSafe` to improve performance. + */ +@property (assign, nonatomic) NSDataReadingOptions diskCacheReadingOptions; + +/** + * The writing options while writing cache to disk. + * Defaults to `NSDataWritingAtomic`. You can set this to `NSDataWritingWithoutOverwriting` to prevent overwriting an existing file. + */ +@property (assign, nonatomic) NSDataWritingOptions diskCacheWritingOptions; + +/** + * The maximum length of time to keep an image in the disk cache, in seconds. + * Setting this to a negative value means no expiring. + * Setting this to zero means that all cached files would be removed when do expiration check. + * Defaults to 1 week. + */ +@property (assign, nonatomic) NSTimeInterval maxDiskAge; + +/** + * The maximum size of the disk cache, in bytes. + * Defaults to 0. Which means there is no cache size limit. + */ +@property (assign, nonatomic) NSUInteger maxDiskSize; + +/** + * The maximum "total cost" of the in-memory image cache. The cost function is the bytes size held in memory. + * @note The memory cost is bytes size in memory, but not simple pixels count. For common ARGB8888 image, one pixel is 4 bytes (32 bits). + * Defaults to 0. Which means there is no memory cost limit. + */ +@property (assign, nonatomic) NSUInteger maxMemoryCost; + +/** + * The maximum number of objects in-memory image cache should hold. + * Defaults to 0. Which means there is no memory count limit. + */ +@property (assign, nonatomic) NSUInteger maxMemoryCount; + +/* + * The attribute which the clear cache will be checked against when clearing the disk cache + * Default is Modified Date + */ +@property (assign, nonatomic) SDImageCacheConfigExpireType diskCacheExpireType; + +/** + * The custom file manager for disk cache. Pass nil to let disk cache choose the proper file manager. + * Defaults to nil. + * @note This value does not support dynamic changes. Which means further modification on this value after cache initialized has no effect. + * @note Since `NSFileManager` does not support `NSCopying`. We just pass this by reference during copying. So it's not recommend to set this value on `defaultCacheConfig`. + */ +@property (strong, nonatomic, nullable) NSFileManager *fileManager; + +/** + * The dispatch queue attr for ioQueue. You can config the QoS and concurrent/serial to internal IO queue. The ioQueue is used by SDImageCache to access read/write for disk data. + * Defaults we use `DISPATCH_QUEUE_SERIAL`(NULL) under iOS 10, `DISPATCH_QUEUE_SERIAL_WITH_AUTORELEASE_POOL` above and equal iOS 10, using serial dispatch queue is to ensure single access for disk data. It's safe but may be slow. + * @note You can override this to use `DISPATCH_QUEUE_CONCURRENT`, use concurrent queue. + * @warning **MAKE SURE** to keep `diskCacheWritingOptions` to use `NSDataWritingAtomic`, or concurrent queue may cause corrupted disk data (because multiple threads read/write same file without atomic is not IO-safe). + * @note This value does not support dynamic changes. Which means further modification on this value after cache initialized has no effect. + */ +@property (strong, nonatomic, nullable) dispatch_queue_attr_t ioQueueAttributes; + +/** + * The custom memory cache class. Provided class instance must conform to `SDMemoryCache` protocol to allow usage. + * Defaults to built-in `SDMemoryCache` class. + * @note This value does not support dynamic changes. Which means further modification on this value after cache initialized has no effect. + */ +@property (assign, nonatomic, nonnull) Class memoryCacheClass; + +/** + * The custom disk cache class. Provided class instance must conform to `SDDiskCache` protocol to allow usage. + * Defaults to built-in `SDDiskCache` class. + * @note This value does not support dynamic changes. Which means further modification on this value after cache initialized has no effect. + */ +@property (assign ,nonatomic, nonnull) Class diskCacheClass; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDImageCacheDefine.h b/Vendors/simulator/SDWebImage.framework/Headers/SDImageCacheDefine.h new file mode 100644 index 000000000..b33badaff --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDImageCacheDefine.h @@ -0,0 +1,179 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageCompat.h" +#import "SDWebImageOperation.h" +#import "SDWebImageDefine.h" +#import "SDImageCoder.h" + +/// Image Cache Type +typedef NS_ENUM(NSInteger, SDImageCacheType) { + /** + * For query and contains op in response, means the image isn't available in the image cache + * For op in request, this type is not available and take no effect. + */ + SDImageCacheTypeNone, + /** + * For query and contains op in response, means the image was obtained from the disk cache. + * For op in request, means process only disk cache. + */ + SDImageCacheTypeDisk, + /** + * For query and contains op in response, means the image was obtained from the memory cache. + * For op in request, means process only memory cache. + */ + SDImageCacheTypeMemory, + /** + * For query and contains op in response, this type is not available and take no effect. + * For op in request, means process both memory cache and disk cache. + */ + SDImageCacheTypeAll +}; + +typedef void(^SDImageCacheCheckCompletionBlock)(BOOL isInCache); +typedef void(^SDImageCacheQueryDataCompletionBlock)(NSData * _Nullable data); +typedef void(^SDImageCacheCalculateSizeBlock)(NSUInteger fileCount, NSUInteger totalSize); +typedef NSString * _Nullable (^SDImageCacheAdditionalCachePathBlock)(NSString * _Nonnull key); +typedef void(^SDImageCacheQueryCompletionBlock)(UIImage * _Nullable image, NSData * _Nullable data, SDImageCacheType cacheType); +typedef void(^SDImageCacheContainsCompletionBlock)(SDImageCacheType containsCacheType); + +/** + This is the built-in decoding process for image query from cache. + @note If you want to implement your custom loader with `queryImageForKey:options:context:completion:` API, but also want to keep compatible with SDWebImage's behavior, you'd better use this to produce image. + + @param imageData The image data from the cache. Should not be nil + @param cacheKey The image cache key from the input. Should not be nil + @param options The options arg from the input + @param context The context arg from the input + @return The decoded image for current image data query from cache + */ +FOUNDATION_EXPORT UIImage * _Nullable SDImageCacheDecodeImageData(NSData * _Nonnull imageData, NSString * _Nonnull cacheKey, SDWebImageOptions options, SDWebImageContext * _Nullable context); + +/// Get the decode options from the loading context options and cache key. This is the built-in translate between the web loading part to the decoding part (which does not depends on). +/// @param context The context arg from the input +/// @param options The options arg from the input +/// @param cacheKey The image cache key from the input. Should not be nil +FOUNDATION_EXPORT SDImageCoderOptions * _Nonnull SDGetDecodeOptionsFromContext(SDWebImageContext * _Nullable context, SDWebImageOptions options, NSString * _Nonnull cacheKey); + +/// Set the decode options to the loading context options. This is the built-in translate between the web loading part from the decoding part (which does not depends on). +/// @param mutableContext The context arg to override +/// @param mutableOptions The options arg to override +/// @param decodeOptions The image decoding options +FOUNDATION_EXPORT void SDSetDecodeOptionsToContext(SDWebImageMutableContext * _Nonnull mutableContext, SDWebImageOptions * _Nonnull mutableOptions, SDImageCoderOptions * _Nonnull decodeOptions); + +/** + This is the image cache protocol to provide custom image cache for `SDWebImageManager`. + Though the best practice to custom image cache, is to write your own class which conform `SDMemoryCache` or `SDDiskCache` protocol for `SDImageCache` class (See more on `SDImageCacheConfig.memoryCacheClass & SDImageCacheConfig.diskCacheClass`). + However, if your own cache implementation contains more advanced feature beyond `SDImageCache` itself, you can consider to provide this instead. For example, you can even use a cache manager like `SDImageCachesManager` to register multiple caches. + */ +@protocol SDImageCache + +@required +/** + Query the cached image from image cache for given key. The operation can be used to cancel the query. + If image is cached in memory, completion is called synchronously, else asynchronously and depends on the options arg (See `SDWebImageQueryDiskSync`) + + @param key The image cache key + @param options A mask to specify options to use for this query + @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. Pass `.callbackQueue` to control callback queue + @param completionBlock The completion block. Will not get called if the operation is cancelled + @return The operation for this query + */ +- (nullable id)queryImageForKey:(nullable NSString *)key + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context + completion:(nullable SDImageCacheQueryCompletionBlock)completionBlock API_DEPRECATED_WITH_REPLACEMENT("queryImageForKey:options:context:cacheType:completion:", macos(10.10, API_TO_BE_DEPRECATED), ios(8.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED)); + +@optional +/** + Query the cached image from image cache for given key. The operation can be used to cancel the query. + If image is cached in memory, completion is called synchronously, else asynchronously and depends on the options arg (See `SDWebImageQueryDiskSync`) + + @param key The image cache key + @param options A mask to specify options to use for this query + @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. Pass `.callbackQueue` to control callback queue + @param cacheType Specify where to query the cache from. By default we use `.all`, which means both memory cache and disk cache. You can choose to query memory only or disk only as well. Pass `.none` is invalid and callback with nil immediately. + @param completionBlock The completion block. Will not get called if the operation is cancelled + @return The operation for this query + */ +- (nullable id)queryImageForKey:(nullable NSString *)key + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context + cacheType:(SDImageCacheType)cacheType + completion:(nullable SDImageCacheQueryCompletionBlock)completionBlock; + +@required +/** + Store the image into image cache for the given key. If cache type is memory only, completion is called synchronously, else asynchronously. + + @param image The image to store + @param imageData The image data to be used for disk storage + @param key The image cache key + @param cacheType The image store op cache type + @param completionBlock A block executed after the operation is finished + */ +- (void)storeImage:(nullable UIImage *)image + imageData:(nullable NSData *)imageData + forKey:(nullable NSString *)key + cacheType:(SDImageCacheType)cacheType + completion:(nullable SDWebImageNoParamsBlock)completionBlock API_DEPRECATED_WITH_REPLACEMENT("storeImage:imageData:forKey:options:context:cacheType:completion:", macos(10.10, API_TO_BE_DEPRECATED), ios(8.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED)); + +@optional +/** + Store the image into image cache for the given key. If cache type is memory only, completion is called synchronously, else asynchronously. + + @param image The image to store + @param imageData The image data to be used for disk storage + @param key The image cache key + @param options A mask to specify options to use for this store + @param context The context options to use. Pass `.callbackQueue` to control callback queue + @param cacheType The image store op cache type + @param completionBlock A block executed after the operation is finished + */ +- (void)storeImage:(nullable UIImage *)image + imageData:(nullable NSData *)imageData + forKey:(nullable NSString *)key + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context + cacheType:(SDImageCacheType)cacheType + completion:(nullable SDWebImageNoParamsBlock)completionBlock; + +#pragma mark - Deprecated because SDWebImageManager does not use these APIs +/** + Remove the image from image cache for the given key. If cache type is memory only, completion is called synchronously, else asynchronously. + + @param key The image cache key + @param cacheType The image remove op cache type + @param completionBlock A block executed after the operation is finished + */ +- (void)removeImageForKey:(nullable NSString *)key + cacheType:(SDImageCacheType)cacheType + completion:(nullable SDWebImageNoParamsBlock)completionBlock API_DEPRECATED("No longer use. Cast to cache instance and call its API", macos(10.10, API_TO_BE_DEPRECATED), ios(8.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED)); + +/** + Check if image cache contains the image for the given key (does not load the image). If image is cached in memory, completion is called synchronously, else asynchronously. + + @param key The image cache key + @param cacheType The image contains op cache type + @param completionBlock A block executed after the operation is finished. + */ +- (void)containsImageForKey:(nullable NSString *)key + cacheType:(SDImageCacheType)cacheType + completion:(nullable SDImageCacheContainsCompletionBlock)completionBlock API_DEPRECATED("No longer use. Cast to cache instance and call its API", macos(10.10, API_TO_BE_DEPRECATED), ios(8.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED)); + +/** + Clear all the cached images for image cache. If cache type is memory only, completion is called synchronously, else asynchronously. + + @param cacheType The image clear op cache type + @param completionBlock A block executed after the operation is finished + */ +- (void)clearWithCacheType:(SDImageCacheType)cacheType + completion:(nullable SDWebImageNoParamsBlock)completionBlock API_DEPRECATED("No longer use. Cast to cache instance and call its API", macos(10.10, API_TO_BE_DEPRECATED), ios(8.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED)); + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDImageCachesManager.h b/Vendors/simulator/SDWebImage.framework/Headers/SDImageCachesManager.h new file mode 100644 index 000000000..ad85db882 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDImageCachesManager.h @@ -0,0 +1,81 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDImageCacheDefine.h" + +/// Policy for cache operation +typedef NS_ENUM(NSUInteger, SDImageCachesManagerOperationPolicy) { + SDImageCachesManagerOperationPolicySerial, // process all caches serially (from the highest priority to the lowest priority cache by order) + SDImageCachesManagerOperationPolicyConcurrent, // process all caches concurrently + SDImageCachesManagerOperationPolicyHighestOnly, // process the highest priority cache only + SDImageCachesManagerOperationPolicyLowestOnly // process the lowest priority cache only +}; + +/** + A caches manager to manage multiple caches. + */ +@interface SDImageCachesManager : NSObject + +/** + Returns the global shared caches manager instance. By default we will set [`SDImageCache.sharedImageCache`] into the caches array. + */ +@property (nonatomic, class, readonly, nonnull) SDImageCachesManager *sharedManager; + +// These are op policy for cache manager. + +/** + Operation policy for query op. + Defaults to `Serial`, means query all caches serially (one completion called then next begin) until one cache query success (`image` != nil). + */ +@property (nonatomic, assign) SDImageCachesManagerOperationPolicy queryOperationPolicy; + +/** + Operation policy for store op. + Defaults to `HighestOnly`, means store to the highest priority cache only. + */ +@property (nonatomic, assign) SDImageCachesManagerOperationPolicy storeOperationPolicy; + +/** + Operation policy for remove op. + Defaults to `Concurrent`, means remove all caches concurrently. + */ +@property (nonatomic, assign) SDImageCachesManagerOperationPolicy removeOperationPolicy; + +/** + Operation policy for contains op. + Defaults to `Serial`, means check all caches serially (one completion called then next begin) until one cache check success (`containsCacheType` != None). + */ +@property (nonatomic, assign) SDImageCachesManagerOperationPolicy containsOperationPolicy; + +/** + Operation policy for clear op. + Defaults to `Concurrent`, means clear all caches concurrently. + */ +@property (nonatomic, assign) SDImageCachesManagerOperationPolicy clearOperationPolicy; + +/** + All caches in caches manager. The caches array is a priority queue, which means the later added cache will have the highest priority + */ +@property (nonatomic, copy, nullable) NSArray> *caches; + +/** + Add a new cache to the end of caches array. Which has the highest priority. + + @param cache cache + */ +- (void)addCache:(nonnull id)cache; + +/** + Remove a cache in the caches array. + + @param cache cache + */ +- (void)removeCache:(nonnull id)cache; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDImageCoder.h b/Vendors/simulator/SDWebImage.framework/Headers/SDImageCoder.h new file mode 100644 index 000000000..c6501eaeb --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDImageCoder.h @@ -0,0 +1,327 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageCompat.h" +#import "NSData+ImageContentType.h" +#import "SDImageFrame.h" + +typedef NSString * SDImageCoderOption NS_STRING_ENUM; +typedef NSDictionary SDImageCoderOptions; +typedef NSMutableDictionary SDImageCoderMutableOptions; + +#pragma mark - Coder Options +// These options are for image decoding +/** + A Boolean value indicating whether to decode the first frame only for animated image during decoding. (NSNumber). If not provide, decode animated image if need. + @note works for `SDImageCoder`. + */ +FOUNDATION_EXPORT SDImageCoderOption _Nonnull const SDImageCoderDecodeFirstFrameOnly; + +/** + A CGFloat value which is greater than or equal to 1.0. This value specify the image scale factor for decoding. If not provide, use 1.0. (NSNumber) + @note works for `SDImageCoder`, `SDProgressiveImageCoder`, `SDAnimatedImageCoder`. + */ +FOUNDATION_EXPORT SDImageCoderOption _Nonnull const SDImageCoderDecodeScaleFactor; + +/** + A Boolean value indicating whether to keep the original aspect ratio when generating thumbnail images (or bitmap images from vector format). + Defaults to YES. + @note works for `SDImageCoder`, `SDProgressiveImageCoder`, `SDAnimatedImageCoder`. + */ +FOUNDATION_EXPORT SDImageCoderOption _Nonnull const SDImageCoderDecodePreserveAspectRatio; + +/** + A CGSize value indicating whether or not to generate the thumbnail images (or bitmap images from vector format). When this value is provided, the decoder will generate a thumbnail image which pixel size is smaller than or equal to (depends the `.preserveAspectRatio`) the value size. + Defaults to CGSizeZero, which means no thumbnail generation at all. + @note Supports for animated image as well. + @note When you pass `.preserveAspectRatio == NO`, the thumbnail image is stretched to match each dimension. When `.preserveAspectRatio == YES`, the thumbnail image's width is limited to pixel size's width, the thumbnail image's height is limited to pixel size's height. For common cases, you can just pass a square size to limit both. + @note works for `SDImageCoder`, `SDProgressiveImageCoder`, `SDAnimatedImageCoder`. + */ +FOUNDATION_EXPORT SDImageCoderOption _Nonnull const SDImageCoderDecodeThumbnailPixelSize; + +/** + A NSString value indicating the source image's file extension. Example: "jpg", "nef", "tif", don't prefix the dot + Some image file format share the same data structure but has different tag explanation, like TIFF and NEF/SRW, see https://en.wikipedia.org/wiki/TIFF + Changing the file extension cause the different image result. The coder (like ImageIO) may use file extension to choose the correct parser + @note However, different UTType may share the same file extension, like `public.jpeg` and `public.jpeg-2000` both use `.jpg`. If you want detail control, use `TypeIdentifierHint` below + */ +FOUNDATION_EXPORT SDImageCoderOption _Nonnull const SDImageCoderDecodeFileExtensionHint; + +/** + A NSString value (UTI) indicating the source image's file extension. Example: "public.jpeg-2000", "com.nikon.raw-image", "public.tiff" + Some image file format share the same data structure but has different tag explanation, like TIFF and NEF/SRW, see https://en.wikipedia.org/wiki/TIFF + Changing the file extension cause the different image result. The coder (like ImageIO) may use file extension to choose the correct parser + @note If you provide `TypeIdentifierHint`, the `FileExtensionHint` option above will be ignored (because UTType has high priority) + @note If you really don't want any hint which effect the image result, pass `NSNull.null` instead + */ +FOUNDATION_EXPORT SDImageCoderOption _Nonnull const SDImageCoderDecodeTypeIdentifierHint; + +/** + A BOOL value indicating whether to use lazy-decoding. Defaults to NO on animated image coder, but defaults to YES on static image coder. + CGImageRef, this image object typically support lazy-decoding, via the `CGDataProviderCreateDirectAccess` or `CGDataProviderCreateSequential` + Which allows you to provide a lazy-called callback to access bitmap buffer, so that you can achieve lazy-decoding when consumer actually need bitmap buffer + UIKit on iOS use heavy on this and ImageIO codec prefers to lazy-decoding for common Hardware-Accelerate format like JPEG/PNG/HEIC + But however, the consumer may access bitmap buffer when running on main queue, like CoreAnimation layer render image. So this is a trade-off + You can force us to disable the lazy-decoding and always allocate bitmap buffer on RAM, but this may have higher ratio of OOM (out of memory) + @note The default value is NO for animated image coder (means `animatedImageFrameAtIndex:`) + @note The default value is YES for static image coder (means `decodedImageWithData:`) + @note works for `SDImageCoder`, `SDProgressiveImageCoder`, `SDAnimatedImageCoder`. + */ +FOUNDATION_EXPORT SDImageCoderOption _Nonnull const SDImageCoderDecodeUseLazyDecoding; + +/** + A NSUInteger value to provide the limit bytes during decoding. This can help to avoid OOM on large frame count animated image or large pixel static image when you don't know how much RAM it occupied before decoding + The decoder will do these logic based on limit bytes: + 1. Get the total frame count (static image means 1) + 2. Calculate the `framePixelSize` width/height to `sqrt(limitBytes / frameCount / bytesPerPixel)`, keeping aspect ratio (at least 1x1) + 3. If the `framePixelSize < originalImagePixelSize`, then do thumbnail decoding (see `SDImageCoderDecodeThumbnailPixelSize`) use the `framePixelSize` and `preseveAspectRatio = YES` + 4. Else, use the full pixel decoding (small than limit bytes) + 5. Whatever result, this does not effect the animated/static behavior of image. So even if you set `limitBytes = 1 && frameCount = 100`, we will stll create animated image with each frame `1x1` pixel size. + @note You can use the logic from `+[SDImageCoder scaledSizeWithImageSize:limitBytes:bytesPerPixel:frameCount:]` + @note This option has higher priority than `.decodeThumbnailPixelSize` + */ +FOUNDATION_EXPORT SDImageCoderOption _Nonnull const SDImageCoderDecodeScaleDownLimitBytes; + +// These options are for image encoding +/** + A Boolean value indicating whether to encode the first frame only for animated image during encoding. (NSNumber). If not provide, encode animated image if need. + @note works for `SDImageCoder`. + */ +FOUNDATION_EXPORT SDImageCoderOption _Nonnull const SDImageCoderEncodeFirstFrameOnly; +/** + A double value between 0.0-1.0 indicating the encode compression quality to produce the image data. 1.0 resulting in no compression and 0.0 resulting in the maximum compression possible. If not provide, use 1.0. (NSNumber) + @note works for `SDImageCoder` + */ +FOUNDATION_EXPORT SDImageCoderOption _Nonnull const SDImageCoderEncodeCompressionQuality; + +/** + A UIColor(NSColor) value to used for non-alpha image encoding when the input image has alpha channel, the background color will be used to compose the alpha one. If not provide, use white color. + @note works for `SDImageCoder` + */ +FOUNDATION_EXPORT SDImageCoderOption _Nonnull const SDImageCoderEncodeBackgroundColor; + +/** + A CGSize value indicating the max image resolution in pixels during encoding. For vector image, this also effect the output vector data information about width and height. The encoder will not generate the encoded image larger than this limit. Note it always use the aspect ratio of input image.. + Defaults to CGSizeZero, which means no max size limit at all. + @note Supports for animated image as well. + @note The output image's width is limited to pixel size's width, the output image's height is limited to pixel size's height. For common cases, you can just pass a square size to limit both. + @note works for `SDImageCoder` + */ +FOUNDATION_EXPORT SDImageCoderOption _Nonnull const SDImageCoderEncodeMaxPixelSize; + +/** + A NSUInteger value specify the max output data bytes size after encoding. Some lossy format like JPEG/HEIF supports the hint for codec to automatically reduce the quality and match the file size you want. Note this option will override the `SDImageCoderEncodeCompressionQuality`, because now the quality is decided by the encoder. (NSNumber) + @note This is a hint, no guarantee for output size because of compression algorithm limit. And this options does not works for vector images. + @note works for `SDImageCoder` + */ +FOUNDATION_EXPORT SDImageCoderOption _Nonnull const SDImageCoderEncodeMaxFileSize; + +/** + A Boolean value indicating the encoding format should contains a thumbnail image into the output data. Only some of image format (like JPEG/HEIF/AVIF) support this behavior. The embed thumbnail will be used during next time thumbnail decoding (provided `.thumbnailPixelSize`), which is faster than full image thumbnail decoding. (NSNumber) + Defaults to NO, which does not embed any thumbnail. + @note The thumbnail image's pixel size is not defined, the encoder can choose the proper pixel size which is suitable for encoding quality. + @note works for `SDImageCoder` + */ +FOUNDATION_EXPORT SDImageCoderOption _Nonnull const SDImageCoderEncodeEmbedThumbnail; + +/** + A SDWebImageContext object which hold the original context options from top-level API. (SDWebImageContext) + This option is ignored for all built-in coders and take no effect. + But this may be useful for some custom coders, because some business logic may dependent on things other than image or image data information only. + Only the unknown context from top-level API (See SDWebImageDefine.h) may be passed in during image loading. + See `SDWebImageContext` for more detailed information. + @warning Deprecated. This does nothing from 5.14.0. Use `SDWebImageContextImageDecodeOptions` to pass additional information in top-level API, and use `SDImageCoderOptions` to retrieve options from coder. + */ +FOUNDATION_EXPORT SDImageCoderOption _Nonnull const SDImageCoderWebImageContext API_DEPRECATED("No longer supported. Use SDWebImageContextDecodeOptions in loader API to provide options. Use SDImageCoderOptions in coder API to retrieve options.", macos(10.10, 10.10), ios(8.0, 8.0), tvos(9.0, 9.0), watchos(2.0, 2.0)); + +#pragma mark - Coder +/** + This is the image coder protocol to provide custom image decoding/encoding. + These methods are all required to implement. + @note Pay attention that these methods are not called from main queue. + */ +@protocol SDImageCoder + +@required +#pragma mark - Decoding +/** + Returns YES if this coder can decode some data. Otherwise, the data should be passed to another coder. + + @param data The image data so we can look at it + @return YES if this coder can decode the data, NO otherwise + */ +- (BOOL)canDecodeFromData:(nullable NSData *)data; + +/** + Decode the image data to image. + @note This protocol may supports decode animated image frames. You can use `+[SDImageCoderHelper animatedImageWithFrames:]` to produce an animated image with frames. + + @param data The image data to be decoded + @param options A dictionary containing any decoding options. Pass @{SDImageCoderDecodeScaleFactor: @(1.0)} to specify scale factor for image. Pass @{SDImageCoderDecodeFirstFrameOnly: @(YES)} to decode the first frame only. + @return The decoded image from data + */ +- (nullable UIImage *)decodedImageWithData:(nullable NSData *)data + options:(nullable SDImageCoderOptions *)options; + +#pragma mark - Encoding + +/** + Returns YES if this coder can encode some image. Otherwise, it should be passed to another coder. + For custom coder which introduce new image format, you'd better define a new `SDImageFormat` using like this. If you're creating public coder plugin for new image format, also update `https://github.com/rs/SDWebImage/wiki/Coder-Plugin-List` to avoid same value been defined twice. + * @code + static const SDImageFormat SDImageFormatHEIF = 10; + * @endcode + + @param format The image format + @return YES if this coder can encode the image, NO otherwise + */ +- (BOOL)canEncodeToFormat:(SDImageFormat)format NS_SWIFT_NAME(canEncode(to:)); + +/** + Encode the image to image data. + @note This protocol may supports encode animated image frames. You can use `+[SDImageCoderHelper framesFromAnimatedImage:]` to assemble an animated image with frames. But this consume time is not always reversible. In 5.15.0, we introduce `encodedDataWithFrames` API for better animated image encoding. Use that instead. + @note Which means, this just forward to `encodedDataWithFrames([SDImageFrame(image: image, duration: 0], image.sd_imageLoopCount))` + + @param image The image to be encoded + @param format The image format to encode, you should note `SDImageFormatUndefined` format is also possible + @param options A dictionary containing any encoding options. Pass @{SDImageCoderEncodeCompressionQuality: @(1)} to specify compression quality. + @return The encoded image data + */ +- (nullable NSData *)encodedDataWithImage:(nullable UIImage *)image + format:(SDImageFormat)format + options:(nullable SDImageCoderOptions *)options; + +#pragma mark - Animated Encoding +@optional +/** + Encode the animated image frames to image data. + + @param frames The animated image frames to be encoded, should be at least 1 element, or it will fallback to static image encode. + @param loopCount The final animated image loop count. 0 means infinity loop. This config ignore each frame's `sd_imageLoopCount` + @param format The image format to encode, you should note `SDImageFormatUndefined` format is also possible + @param options A dictionary containing any encoding options. Pass @{SDImageCoderEncodeCompressionQuality: @(1)} to specify compression quality. + @return The encoded image data + */ +- (nullable NSData *)encodedDataWithFrames:(nonnull NSArray*)frames + loopCount:(NSUInteger)loopCount + format:(SDImageFormat)format + options:(nullable SDImageCoderOptions *)options; +@end + +#pragma mark - Progressive Coder +/** + This is the image coder protocol to provide custom progressive image decoding. + These methods are all required to implement. + @note Pay attention that these methods are not called from main queue. + */ +@protocol SDProgressiveImageCoder + +@required +/** + Returns YES if this coder can incremental decode some data. Otherwise, it should be passed to another coder. + + @param data The image data so we can look at it + @return YES if this coder can decode the data, NO otherwise + */ +- (BOOL)canIncrementalDecodeFromData:(nullable NSData *)data; + +/** + Because incremental decoding need to keep the decoded context, we will alloc a new instance with the same class for each download operation to avoid conflicts + This init method should not return nil + + @param options A dictionary containing any progressive decoding options (instance-level). Pass @{SDImageCoderDecodeScaleFactor: @(1.0)} to specify scale factor for progressive animated image (each frames should use the same scale). + @return A new instance to do incremental decoding for the specify image format + */ +- (nonnull instancetype)initIncrementalWithOptions:(nullable SDImageCoderOptions *)options; + +/** + Update the incremental decoding when new image data available + + @param data The image data has been downloaded so far + @param finished Whether the download has finished + */ +- (void)updateIncrementalData:(nullable NSData *)data finished:(BOOL)finished; + +/** + Incremental decode the current image data to image. + @note Due to the performance issue for progressive decoding and the integration for image view. This method may only return the first frame image even if the image data is animated image. If you want progressive animated image decoding, conform to `SDAnimatedImageCoder` protocol as well and use `animatedImageFrameAtIndex:` instead. + + @param options A dictionary containing any progressive decoding options. Pass @{SDImageCoderDecodeScaleFactor: @(1.0)} to specify scale factor for progressive image + @return The decoded image from current data + */ +- (nullable UIImage *)incrementalDecodedImageWithOptions:(nullable SDImageCoderOptions *)options; + +@end + +#pragma mark - Animated Image Provider +/** + This is the animated image protocol to provide the basic function for animated image rendering. It's adopted by `SDAnimatedImage` and `SDAnimatedImageCoder` + */ +@protocol SDAnimatedImageProvider + +@required +/** + The original animated image data for current image. If current image is not an animated format, return nil. + We may use this method to grab back the original image data if need, such as NSCoding or compare. + + @return The animated image data + */ +@property (nonatomic, copy, readonly, nullable) NSData *animatedImageData; + +/** + Total animated frame count. + If the frame count is less than 1, then the methods below will be ignored. + + @return Total animated frame count. + */ +@property (nonatomic, assign, readonly) NSUInteger animatedImageFrameCount; +/** + Animation loop count, 0 means infinite looping. + + @return Animation loop count + */ +@property (nonatomic, assign, readonly) NSUInteger animatedImageLoopCount; +/** + Returns the frame image from a specified index. + @note The index maybe randomly if one image was set to different imageViews, keep it re-entrant. (It's not recommend to store the images into array because it's memory consuming) + + @param index Frame index (zero based). + @return Frame's image + */ +- (nullable UIImage *)animatedImageFrameAtIndex:(NSUInteger)index; +/** + Returns the frames's duration from a specified index. + @note The index maybe randomly if one image was set to different imageViews, keep it re-entrant. (It's recommend to store the durations into array because it's not memory-consuming) + + @param index Frame index (zero based). + @return Frame's duration + */ +- (NSTimeInterval)animatedImageDurationAtIndex:(NSUInteger)index; + +@end + +#pragma mark - Animated Coder +/** + This is the animated image coder protocol for custom animated image class like `SDAnimatedImage`. Through it inherit from `SDImageCoder`. We currentlly only use the method `canDecodeFromData:` to detect the proper coder for specify animated image format. + */ +@protocol SDAnimatedImageCoder + +@required +/** + Because animated image coder should keep the original data, we will alloc a new instance with the same class for the specify animated image data + The init method should return nil if it can't decode the specify animated image data to produce any frame. + After the instance created, we may call methods in `SDAnimatedImageProvider` to produce animated image frame. + + @param data The animated image data to be decode + @param options A dictionary containing any animated decoding options (instance-level). Pass @{SDImageCoderDecodeScaleFactor: @(1.0)} to specify scale factor for animated image (each frames should use the same scale). + @return A new instance to do animated decoding for specify image data + */ +- (nullable instancetype)initWithAnimatedImageData:(nullable NSData *)data options:(nullable SDImageCoderOptions *)options; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDImageCoderHelper.h b/Vendors/simulator/SDWebImage.framework/Headers/SDImageCoderHelper.h new file mode 100644 index 000000000..fe51c4f5c --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDImageCoderHelper.h @@ -0,0 +1,233 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageCompat.h" +#import "SDImageFrame.h" + +/// The options controls how we force pre-draw the image (to avoid lazy-decoding). Which need OS's framework compatibility +typedef NS_ENUM(NSUInteger, SDImageCoderDecodeSolution) { + /// automatically choose the solution based on image format, hardware, OS version. This keep balance for compatibility and performance. Default after SDWebImage 5.13.0 + SDImageCoderDecodeSolutionAutomatic, + /// always use CoreGraphics to draw on bitmap context and trigger decode. Best compatibility. Default before SDWebImage 5.13.0 + SDImageCoderDecodeSolutionCoreGraphics, + /// available on iOS/tvOS 15+, use UIKit's new CGImageDecompressor/CMPhoto to decode. Best performance. If failed, will fallback to CoreGraphics as well + SDImageCoderDecodeSolutionUIKit +}; + +/// The policy to force-decode the origin CGImage (produced by Image Coder Plugin) +/// Some CGImage may be lazy, or not lazy, but need extra copy to render on screen +/// The force-decode step help to `pre-process` to get the best suitable CGImage to render, which can increase frame rate +/// The downside is that force-decode may consume RAM and CPU, and may loss the `lazy` support (lazy CGImage can be purged when memory warning, and re-created if need), see more: `SDImageCoderDecodeUseLazyDecoding` +typedef NS_ENUM(NSUInteger, SDImageForceDecodePolicy) { + /// Based on input CGImage's colorspace, alignment, bitmapinfo, if it may trigger `CA::copy_image` extra copy, we will force-decode, else don't + SDImageForceDecodePolicyAutomatic, + /// Never force decode input CGImage + SDImageForceDecodePolicyNever, + /// Always force decode input CGImage (only once) + SDImageForceDecodePolicyAlways +}; + +/// Byte alignment the bytes size with alignment +/// - Parameters: +/// - size: The bytes size +/// - alignment: The alignment, in bytes +static inline size_t SDByteAlign(size_t size, size_t alignment) { + return ((size + (alignment - 1)) / alignment) * alignment; +} + +/// The pixel format about the information to call `CGImageCreate` suitable for current hardware rendering +typedef struct SDImagePixelFormat { + /// Typically is pre-multiplied RGBA8888 for alpha image, RGBX8888 for non-alpha image. + CGBitmapInfo bitmapInfo; + /// Typically is 32, the 8 pixels bytesPerRow. + size_t alignment; +} SDImagePixelFormat; + +/** + Provide some common helper methods for building the image decoder/encoder. + */ +@interface SDImageCoderHelper : NSObject + +/** + Return an animated image with frames array. + For UIKit, this will apply the patch and then create animated UIImage. The patch is because that `+[UIImage animatedImageWithImages:duration:]` just use the average of duration for each image. So it will not work if different frame has different duration. Therefore we repeat the specify frame for specify times to let it work. + For AppKit, NSImage does not support animates other than GIF. This will try to encode the frames to GIF format and then create an animated NSImage for rendering. Attention the animated image may loss some detail if the input frames contain full alpha channel because GIF only supports 1 bit alpha channel. (For 1 pixel, either transparent or not) + + @param frames The frames array. If no frames or frames is empty, return nil + @return A animated image for rendering on UIImageView(UIKit) or NSImageView(AppKit) + */ ++ (UIImage * _Nullable)animatedImageWithFrames:(NSArray * _Nullable)frames; + +/** + Return frames array from an animated image. + For UIKit, this will unapply the patch for the description above and then create frames array. This will also work for normal animated UIImage. + For AppKit, NSImage does not support animates other than GIF. This will try to decode the GIF imageRep and then create frames array. + + @param animatedImage A animated image. If it's not animated, return nil + @return The frames array + */ ++ (NSArray * _Nullable)framesFromAnimatedImage:(UIImage * _Nullable)animatedImage NS_SWIFT_NAME(frames(from:)); + +#pragma mark - Preferred Rendering Format +/// For coders who use `CGImageCreate`, use the information below to create an effient CGImage which can be render on GPU without Core Animation's extra copy (`CA::Render::copy_image`), which can be debugged using `Color Copied Image` in Xcode Instruments +/// `CGImageCreate`'s `bytesPerRow`, `space`, `bitmapInfo` params should use the information below. +/** + Return the shared device-dependent RGB color space. This follows The Get Rule. + Because it's shared, you should not retain or release this object. + Typically is sRGB for iOS, screen color space (like Color LCD) for macOS. + + @return The device-dependent RGB color space + */ ++ (CGColorSpaceRef _Nonnull)colorSpaceGetDeviceRGB CF_RETURNS_NOT_RETAINED; + +/** + Tthis returns the pixel format **Preferred from current hardward && OS using runtime detection** + @param containsAlpha Whether the image to render contains alpha channel + */ ++ (SDImagePixelFormat)preferredPixelFormat:(BOOL)containsAlpha; + +/** + Check whether CGImage is hardware supported to rendering on screen, without the trigger of `CA::Render::copy_image` + You can debug the copied image by using Xcode's `Color Copied Image`, the copied image will turn Cyan and occupy double RAM for bitmap buffer. + Typically, when the CGImage's using the method above (`colorspace` / `alignment` / `bitmapInfo`) can render withtout the copy. + */ ++ (BOOL)CGImageIsHardwareSupported:(_Nonnull CGImageRef)cgImage; + +/** + Check whether CGImage contains alpha channel. + + @param cgImage The CGImage + @return Return YES if CGImage contains alpha channel, otherwise return NO + */ ++ (BOOL)CGImageContainsAlpha:(_Nonnull CGImageRef)cgImage; + +/** + Detect whether the CGImage is lazy and not-yet decoded. (lazy means, only when the caller access the underlying bitmap buffer via provider like `CGDataProviderCopyData` or `CGDataProviderRetainBytePtr`, the decoder will allocate memory, it's a lazy allocation) + The implementation use the Core Graphics internal to check whether the CGImage is `CGImageProvider` based, or `CGDataProvider` based. The `CGDataProvider` based is treated as non-lazy. + */ ++ (BOOL)CGImageIsLazy:(_Nonnull CGImageRef)cgImage; + +/** + Create a decoded CGImage by the provided CGImage. This follows The Create Rule and you are response to call release after usage. + It will detect whether image contains alpha channel, then create a new bitmap context with the same size of image, and draw it. This can ensure that the image do not need extra decoding after been set to the imageView. + @note This actually call `CGImageCreateDecoded:orientation:` with the Up orientation. + + @param cgImage The CGImage + @return A new created decoded image + */ ++ (CGImageRef _Nullable)CGImageCreateDecoded:(_Nonnull CGImageRef)cgImage CF_RETURNS_RETAINED; + +/** + Create a decoded CGImage by the provided CGImage and orientation. This follows The Create Rule and you are response to call release after usage. + It will detect whether image contains alpha channel, then create a new bitmap context with the same size of image, and draw it. This can ensure that the image do not need extra decoding after been set to the imageView. + + @param cgImage The CGImage + @param orientation The EXIF image orientation. + @return A new created decoded image + */ ++ (CGImageRef _Nullable)CGImageCreateDecoded:(_Nonnull CGImageRef)cgImage orientation:(CGImagePropertyOrientation)orientation CF_RETURNS_RETAINED; + +/** + Create a scaled CGImage by the provided CGImage and size. This follows The Create Rule and you are response to call release after usage. + It will detect whether the image size matching the scale size, if not, stretch the image to the target size. + @note If you need to keep aspect ratio, you can calculate the scale size by using `scaledSizeWithImageSize` first. + @note This scale does not change bits per components (which means RGB888 in, RGB888 out), supports 8/16/32(float) bpc. But the method in UIImage+Transform does not gurantee this. + @note All supported CGImage pixel format: https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_context/dq_context.html#//apple_ref/doc/uid/TP30001066-CH203-BCIBHHBB + + @param cgImage The CGImage + @param size The scale size in pixel. + @return A new created scaled image + */ ++ (CGImageRef _Nullable)CGImageCreateScaled:(_Nonnull CGImageRef)cgImage size:(CGSize)size CF_RETURNS_RETAINED; + +/** Scale the image size based on provided scale size, whether or not to preserve aspect ratio, whether or not to scale up. + @note For example, if you implements thumnail decoding, pass `shouldScaleUp` to NO to avoid the calculated size larger than image size. + + @param imageSize The image size (in pixel or point defined by caller) + @param scaleSize The scale size (in pixel or point defined by caller) + @param preserveAspectRatio Whether or not to preserve aspect ratio + @param shouldScaleUp Whether or not to scale up (or scale down only) + */ ++ (CGSize)scaledSizeWithImageSize:(CGSize)imageSize scaleSize:(CGSize)scaleSize preserveAspectRatio:(BOOL)preserveAspectRatio shouldScaleUp:(BOOL)shouldScaleUp; + +/// Calculate the limited image size with the bytes, when using `SDImageCoderDecodeScaleDownLimitBytes`. This preserve aspect ratio and never scale up +/// @param imageSize The image size (in pixel or point defined by caller) +/// @param limitBytes The limit bytes +/// @param bytesPerPixel The bytes per pixel +/// @param frameCount The image frame count, 0 means 1 frame as well ++ (CGSize)scaledSizeWithImageSize:(CGSize)imageSize limitBytes:(NSUInteger)limitBytes bytesPerPixel:(NSUInteger)bytesPerPixel frameCount:(NSUInteger)frameCount; +/** + Return the decoded image by the provided image. This one unlike `CGImageCreateDecoded:`, will not decode the image which contains alpha channel or animated image. On iOS 15+, this may use `UIImage.preparingForDisplay()` to use CMPhoto for better performance than the old solution. + @param image The image to be decoded + @note This translate to `decodedImageWithImage:policy:` with automatic policy + @return The decoded image + */ ++ (UIImage * _Nullable)decodedImageWithImage:(UIImage * _Nullable)image; + +/** + Return the decoded image by the provided image. This one unlike `CGImageCreateDecoded:`, will not decode the image which contains alpha channel or animated image. On iOS 15+, this may use `UIImage.preparingForDisplay()` to use CMPhoto for better performance than the old solution. + @param image The image to be decoded + @param policy The force decode policy to decode image, will effect the check whether input image need decode + @return The decoded image + */ ++ (UIImage * _Nullable)decodedImageWithImage:(UIImage * _Nullable)image policy:(SDImageForceDecodePolicy)policy; + +/** + Return the decoded and probably scaled down image by the provided image. If the image pixels bytes size large than the limit bytes, will try to scale down. Or just works as `decodedImageWithImage:`, never scale up. + @warning You should not pass too small bytes, the suggestion value should be larger than 1MB. Even we use Tile Decoding to avoid OOM, however, small bytes will consume much more CPU time because we need to iterate more times to draw each tile. + + @param image The image to be decoded and scaled down + @param bytes The limit bytes size. Provide 0 to use the build-in limit. + @note This translate to `decodedAndScaledDownImageWithImage:limitBytes:policy:` with automatic policy + @return The decoded and probably scaled down image + */ ++ (UIImage * _Nullable)decodedAndScaledDownImageWithImage:(UIImage * _Nullable)image limitBytes:(NSUInteger)bytes; + +/** + Return the decoded and probably scaled down image by the provided image. If the image pixels bytes size large than the limit bytes, will try to scale down. Or just works as `decodedImageWithImage:`, never scale up. + @warning You should not pass too small bytes, the suggestion value should be larger than 1MB. Even we use Tile Decoding to avoid OOM, however, small bytes will consume much more CPU time because we need to iterate more times to draw each tile. + + @param image The image to be decoded and scaled down + @param bytes The limit bytes size. Provide 0 to use the build-in limit. + @param policy The force decode policy to decode image, will effect the check whether input image need decode + @return The decoded and probably scaled down image + */ ++ (UIImage * _Nullable)decodedAndScaledDownImageWithImage:(UIImage * _Nullable)image limitBytes:(NSUInteger)bytes policy:(SDImageForceDecodePolicy)policy; + +/** + Control the default force decode solution. Available solutions in `SDImageCoderDecodeSolution`. + @note Defaults to `SDImageCoderDecodeSolutionAutomatic`, which prefers to use UIKit for JPEG/HEIF, and fallback on CoreGraphics. If you want control on your hand, set the other solution. + */ +@property (class, readwrite) SDImageCoderDecodeSolution defaultDecodeSolution; + +/** + Control the default limit bytes to scale down largest images. + This value must be larger than 4 Bytes (at least 1x1 pixel). Defaults to 60MB on iOS/tvOS, 90MB on macOS, 30MB on watchOS. + */ +@property (class, readwrite) NSUInteger defaultScaleDownLimitBytes; + +#if SD_UIKIT || SD_WATCH +/** + Convert an EXIF image orientation to an iOS one. + + @param exifOrientation EXIF orientation + @return iOS orientation + */ ++ (UIImageOrientation)imageOrientationFromEXIFOrientation:(CGImagePropertyOrientation)exifOrientation NS_SWIFT_NAME(imageOrientation(from:)); + +/** + Convert an iOS orientation to an EXIF image orientation. + + @param imageOrientation iOS orientation + @return EXIF orientation + */ ++ (CGImagePropertyOrientation)exifOrientationFromImageOrientation:(UIImageOrientation)imageOrientation; +#endif + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDImageCodersManager.h b/Vendors/simulator/SDWebImage.framework/Headers/SDImageCodersManager.h new file mode 100644 index 000000000..14b655da8 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDImageCodersManager.h @@ -0,0 +1,58 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDImageCoder.h" + +/** + Global object holding the array of coders, so that we avoid passing them from object to object. + Uses a priority queue behind scenes, which means the latest added coders have the highest priority. + This is done so when encoding/decoding something, we go through the list and ask each coder if they can handle the current data. + That way, users can add their custom coders while preserving our existing prebuilt ones + + Note: the `coders` getter will return the coders in their reversed order + Example: + - by default we internally set coders = `IOCoder`, `GIFCoder`, `APNGCoder` + - calling `coders` will return `@[IOCoder, GIFCoder, APNGCoder]` + - call `[addCoder:[MyCrazyCoder new]]` + - calling `coders` now returns `@[IOCoder, GIFCoder, APNGCoder, MyCrazyCoder]` + + Coders + ------ + A coder must conform to the `SDImageCoder` protocol or even to `SDProgressiveImageCoder` if it supports progressive decoding + Conformance is important because that way, they will implement `canDecodeFromData` or `canEncodeToFormat` + Those methods are called on each coder in the array (using the priority order) until one of them returns YES. + That means that coder can decode that data / encode to that format + */ +@interface SDImageCodersManager : NSObject + +/** + Returns the global shared coders manager instance. + */ +@property (nonatomic, class, readonly, nonnull) SDImageCodersManager *sharedManager; + +/** + All coders in coders manager. The coders array is a priority queue, which means the later added coder will have the highest priority + */ +@property (nonatomic, copy, nullable) NSArray> *coders; + +/** + Add a new coder to the end of coders array. Which has the highest priority. + + @param coder coder + */ +- (void)addCoder:(nonnull id)coder; + +/** + Remove a coder in the coders array. + + @param coder coder + */ +- (void)removeCoder:(nonnull id)coder; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDImageFrame.h b/Vendors/simulator/SDWebImage.framework/Headers/SDImageFrame.h new file mode 100644 index 000000000..41f396552 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDImageFrame.h @@ -0,0 +1,44 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageCompat.h" + +/** + This class is used for creating animated images via `animatedImageWithFrames` in `SDImageCoderHelper`. + @note If you need to specify animated images loop count, use `sd_imageLoopCount` property in `UIImage+Metadata.h`. + */ +@interface SDImageFrame : NSObject + +/** + The image of current frame. You should not set an animated image. + */ +@property (nonatomic, strong, readonly, nonnull) UIImage *image; +/** + The duration of current frame to be displayed. The number is seconds but not milliseconds. You should not set this to zero. + */ +@property (nonatomic, readonly, assign) NSTimeInterval duration; + +/// Create a frame instance with specify image and duration +/// @param image current frame's image +/// @param duration current frame's duration +- (nonnull instancetype)initWithImage:(nonnull UIImage *)image duration:(NSTimeInterval)duration; + +/** + Create a frame instance with specify image and duration + + @param image current frame's image + @param duration current frame's duration + @return frame instance + */ ++ (nonnull instancetype)frameWithImage:(nonnull UIImage *)image duration:(NSTimeInterval)duration; + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDImageGIFCoder.h b/Vendors/simulator/SDWebImage.framework/Headers/SDImageGIFCoder.h new file mode 100644 index 000000000..5ef67acda --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDImageGIFCoder.h @@ -0,0 +1,22 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDImageIOAnimatedCoder.h" + +/** + Built in coder using ImageIO that supports animated GIF encoding/decoding + @note `SDImageIOCoder` supports GIF but only as static (will use the 1st frame). + @note Use `SDImageGIFCoder` for fully animated GIFs. For `UIImageView`, it will produce animated `UIImage`(`NSImage` on macOS) for rendering. For `SDAnimatedImageView`, it will use `SDAnimatedImage` for rendering. + @note The recommended approach for animated GIFs is using `SDAnimatedImage` with `SDAnimatedImageView`. It's more performant than `UIImageView` for GIF displaying(especially on memory usage) + */ +@interface SDImageGIFCoder : SDImageIOAnimatedCoder + +@property (nonatomic, class, readonly, nonnull) SDImageGIFCoder *sharedCoder; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDImageGraphics.h b/Vendors/simulator/SDWebImage.framework/Headers/SDImageGraphics.h new file mode 100644 index 000000000..131d68508 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDImageGraphics.h @@ -0,0 +1,28 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" +#import + +/** + These following graphics context method are provided to easily write cross-platform(AppKit/UIKit) code. + For UIKit, these methods just call the same method in `UIGraphics.h`. See the documentation for usage. + For AppKit, these methods use `NSGraphicsContext` to create image context and match the behavior like UIKit. + @note If you don't care bitmap format (ARGB8888) and just draw image, use `SDGraphicsImageRenderer` instead. It's more performant on RAM usage.` + */ + +/// Returns the current graphics context. +FOUNDATION_EXPORT CGContextRef __nullable SDGraphicsGetCurrentContext(void) CF_RETURNS_NOT_RETAINED; +/// Creates a bitmap-based graphics context and makes it the current context. +FOUNDATION_EXPORT void SDGraphicsBeginImageContext(CGSize size); +/// Creates a bitmap-based graphics context with the specified options. +FOUNDATION_EXPORT void SDGraphicsBeginImageContextWithOptions(CGSize size, BOOL opaque, CGFloat scale); +/// Removes the current bitmap-based graphics context from the top of the stack. +FOUNDATION_EXPORT void SDGraphicsEndImageContext(void); +/// Returns an image based on the contents of the current bitmap-based graphics context. +FOUNDATION_EXPORT UIImage * __nullable SDGraphicsGetImageFromCurrentImageContext(void); diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDImageHEICCoder.h b/Vendors/simulator/SDWebImage.framework/Headers/SDImageHEICCoder.h new file mode 100644 index 000000000..f7dd6612f --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDImageHEICCoder.h @@ -0,0 +1,25 @@ +/* +* This file is part of the SDWebImage package. +* (c) Olivier Poitrey +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + +#import +#import "SDImageIOAnimatedCoder.h" + +/** + This coder is used for HEIC (HEIF with HEVC container codec) image format. + Image/IO provide the static HEIC (.heic) support in iOS 11/macOS 10.13/tvOS 11/watchOS 4+. + Image/IO provide the animated HEIC (.heics) support in iOS 13/macOS 10.15/tvOS 13/watchOS 6+. + See https://nokiatech.github.io/heif/technical.html for the standard. + @note This coder is not in the default coder list for now, since HEIC animated image is really rare, and Apple's implementation still contains performance issues. You can enable if you need this. + @note If you need to support lower firmware version for HEIF, you can have a try at https://github.com/SDWebImage/SDWebImageHEIFCoder + */ +API_AVAILABLE(ios(13.0), tvos(13.0), macos(10.15), watchos(6.0)) +@interface SDImageHEICCoder : SDImageIOAnimatedCoder + +@property (nonatomic, class, readonly, nonnull) SDImageHEICCoder *sharedCoder; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDImageIOAnimatedCoder.h b/Vendors/simulator/SDWebImage.framework/Headers/SDImageIOAnimatedCoder.h new file mode 100644 index 000000000..67016c462 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDImageIOAnimatedCoder.h @@ -0,0 +1,58 @@ +/* +* This file is part of the SDWebImage package. +* (c) Olivier Poitrey +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + +#import +#import "SDImageCoder.h" + +/** + This is the abstract class for all animated coder, which use the Image/IO API. You can not use this directly as real coders. A exception will be raised if you use this class. + All of the properties need the subclass to implement and works as expected. + For Image/IO, See Apple's documentation: https://developer.apple.com/documentation/imageio + */ +@interface SDImageIOAnimatedCoder : NSObject + +#pragma mark - Subclass Override +/** + The supported animated image format. Such as `SDImageFormatGIF`. + @note Subclass override. + */ +@property (class, readonly) SDImageFormat imageFormat; +/** + The supported image format UTI Type. Such as `kSDUTTypeGIF`. + This can be used for cases when we can not detect `SDImageFormat. Such as progressive decoding's hint format `kCGImageSourceTypeIdentifierHint`. + @note Subclass override. + */ +@property (class, readonly, nonnull) NSString *imageUTType; +/** + The image container property key used in Image/IO API. Such as `kCGImagePropertyGIFDictionary`. + @note Subclass override. + */ +@property (class, readonly, nonnull) NSString *dictionaryProperty; +/** + The image unclamped delay time property key used in Image/IO API. Such as `kCGImagePropertyGIFUnclampedDelayTime` + @note Subclass override. + */ +@property (class, readonly, nonnull) NSString *unclampedDelayTimeProperty; +/** + The image delay time property key used in Image/IO API. Such as `kCGImagePropertyGIFDelayTime`. + @note Subclass override. + */ +@property (class, readonly, nonnull) NSString *delayTimeProperty; +/** + The image loop count property key used in Image/IO API. Such as `kCGImagePropertyGIFLoopCount`. + @note Subclass override. + */ +@property (class, readonly, nonnull) NSString *loopCountProperty; +/** + The default loop count when there are no any loop count information inside image container metadata. + For example, for GIF format, the standard use 1 (play once). For APNG format, the standard use 0 (infinity loop). + @note Subclass override. + */ +@property (class, readonly) NSUInteger defaultLoopCount; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDImageIOCoder.h b/Vendors/simulator/SDWebImage.framework/Headers/SDImageIOCoder.h new file mode 100644 index 000000000..98682ed68 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDImageIOCoder.h @@ -0,0 +1,30 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDImageCoder.h" + +/** + Built in coder that supports PNG, JPEG, TIFF, includes support for progressive decoding. + + GIF + Also supports static GIF (meaning will only handle the 1st frame). + For a full GIF support, we recommend `SDAnimatedImageView` to keep both CPU and memory balanced. + + HEIC + This coder also supports HEIC format because ImageIO supports it natively. But it depends on the system capabilities, so it won't work on all devices, see: https://devstreaming-cdn.apple.com/videos/wwdc/2017/511tj33587vdhds/511/511_working_with_heif_and_hevc.pdf + Decode(Software): !Simulator && (iOS 11 || tvOS 11 || macOS 10.13) + Decode(Hardware): !Simulator && ((iOS 11 && A9Chip) || (macOS 10.13 && 6thGenerationIntelCPU)) + Encode(Software): macOS 10.13 + Encode(Hardware): !Simulator && ((iOS 11 && A10FusionChip) || (macOS 10.13 && 6thGenerationIntelCPU)) + */ +@interface SDImageIOCoder : NSObject + +@property (nonatomic, class, readonly, nonnull) SDImageIOCoder *sharedCoder; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDImageLoader.h b/Vendors/simulator/SDWebImage.framework/Headers/SDImageLoader.h new file mode 100644 index 000000000..5ecec5d69 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDImageLoader.h @@ -0,0 +1,146 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" +#import "SDWebImageDefine.h" +#import "SDWebImageOperation.h" +#import "SDImageCoder.h" + +typedef void(^SDImageLoaderProgressBlock)(NSInteger receivedSize, NSInteger expectedSize, NSURL * _Nullable targetURL); +typedef void(^SDImageLoaderCompletedBlock)(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, BOOL finished); + +#pragma mark - Context Options + +/** + A `UIImage` instance from `SDWebImageManager` when you specify `SDWebImageRefreshCached` and image cache hit. + This can be a hint for image loader to load the image from network and refresh the image from remote location if needed. If the image from remote location does not change, you should call the completion with `SDWebImageErrorCacheNotModified` error. (UIImage) + @note If you don't implement `SDWebImageRefreshCached` support, you do not need to care about this context option. + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextLoaderCachedImage; + +#pragma mark - Helper method + +/** + This is the built-in decoding process for image download from network or local file. + @note If you want to implement your custom loader with `requestImageWithURL:options:context:progress:completed:` API, but also want to keep compatible with SDWebImage's behavior, you'd better use this to produce image. + + @param imageData The image data from the network. Should not be nil + @param imageURL The image URL from the input. Should not be nil + @param options The options arg from the input + @param context The context arg from the input + @return The decoded image for current image data load from the network + */ +FOUNDATION_EXPORT UIImage * _Nullable SDImageLoaderDecodeImageData(NSData * _Nonnull imageData, NSURL * _Nonnull imageURL, SDWebImageOptions options, SDWebImageContext * _Nullable context); + +/** + This is the built-in decoding process for image progressive download from network. It's used when `SDWebImageProgressiveLoad` option is set. (It's not required when your loader does not support progressive image loading) + @note If you want to implement your custom loader with `requestImageWithURL:options:context:progress:completed:` API, but also want to keep compatible with SDWebImage's behavior, you'd better use this to produce image. + + @param imageData The image data from the network so far. Should not be nil + @param imageURL The image URL from the input. Should not be nil + @param finished Pass NO to specify the download process has not finished. Pass YES when all image data has finished. + @param operation The loader operation associated with current progressive download. Why to provide this is because progressive decoding need to store the partial decoded context for each operation to avoid conflict. You should provide the operation from `loadImageWithURL:` method return value. + @param options The options arg from the input + @param context The context arg from the input + @return The decoded progressive image for current image data load from the network + */ +FOUNDATION_EXPORT UIImage * _Nullable SDImageLoaderDecodeProgressiveImageData(NSData * _Nonnull imageData, NSURL * _Nonnull imageURL, BOOL finished, id _Nonnull operation, SDWebImageOptions options, SDWebImageContext * _Nullable context); + +/** + This function get the progressive decoder for current loading operation. If no progressive decoding is happended or decoder is not able to construct, return nil. + @return The progressive decoder associated with the loading operation. + */ +FOUNDATION_EXPORT id _Nullable SDImageLoaderGetProgressiveCoder(id _Nonnull operation); + +/** + This function set the progressive decoder for current loading operation. If no progressive decoding is happended, pass nil. + @param operation The loading operation to associate the progerssive decoder. + */ +FOUNDATION_EXPORT void SDImageLoaderSetProgressiveCoder(id _Nonnull operation, id _Nullable progressiveCoder); + +#pragma mark - SDImageLoader + +/** + This is the protocol to specify custom image load process. You can create your own class to conform this protocol and use as a image loader to load image from network or any available remote resources defined by yourself. + If you want to implement custom loader for image download from network or local file, you just need to concentrate on image data download only. After the download finish, call `SDImageLoaderDecodeImageData` or `SDImageLoaderDecodeProgressiveImageData` to use the built-in decoding process and produce image (Remember to call in the global queue). And finally callback the completion block. + If you directly get the image instance using some third-party SDKs, such as image directly from Photos framework. You can process the image data and image instance by yourself without that built-in decoding process. And finally callback the completion block. + @note It's your responsibility to load the image in the desired global queue(to avoid block main queue). We do not dispatch these method call in a global queue but just from the call queue (For `SDWebImageManager`, it typically call from the main queue). +*/ +@protocol SDImageLoader + +@required +/** + Whether current image loader supports to load the provide image URL. + This will be checked every time a new image request come for loader. If this return NO, we will mark this image load as failed. If return YES, we will start to call `requestImageWithURL:options:context:progress:completed:`. + + @param url The image URL to be loaded. + @return YES to continue download, NO to stop download. + */ +- (BOOL)canRequestImageForURL:(nullable NSURL *)url API_DEPRECATED_WITH_REPLACEMENT("canRequestImageForURL:options:context:", macos(10.10, API_TO_BE_DEPRECATED), ios(8.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED)); + +@optional +/** + Whether current image loader supports to load the provide image URL, with associated options and context. + This will be checked every time a new image request come for loader. If this return NO, we will mark this image load as failed. If return YES, we will start to call `requestImageWithURL:options:context:progress:completed:`. + + @param url The image URL to be loaded. + @param options A mask to specify options to use for this request + @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + @return YES to continue download, NO to stop download. + */ +- (BOOL)canRequestImageForURL:(nullable NSURL *)url + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context; + +@required +/** + Load the image and image data with the given URL and return the image data. You're responsible for producing the image instance. + + @param url The URL represent the image. Note this may not be a HTTP URL + @param options A mask to specify options to use for this request + @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + @param progressBlock A block called while image is downloading + * @note the progress block is executed on a background queue + @param completedBlock A block called when operation has been completed. + @return An operation which allow the user to cancel the current request. + */ +- (nullable id)requestImageWithURL:(nullable NSURL *)url + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context + progress:(nullable SDImageLoaderProgressBlock)progressBlock + completed:(nullable SDImageLoaderCompletedBlock)completedBlock; + + +/** + Whether the error from image loader should be marked indeed un-recoverable or not. + If this return YES, failed URL which does not using `SDWebImageRetryFailed` will be blocked into black list. Else not. + + @param url The URL represent the image. Note this may not be a HTTP URL + @param error The URL's loading error, from previous `requestImageWithURL:options:context:progress:completed:` completedBlock's error. + @return Whether to block this url or not. Return YES to mark this URL as failed. + */ +- (BOOL)shouldBlockFailedURLWithURL:(nonnull NSURL *)url + error:(nonnull NSError *)error API_DEPRECATED_WITH_REPLACEMENT("shouldBlockFailedURLWithURL:error:options:context:", macos(10.10, API_TO_BE_DEPRECATED), ios(8.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED)); + +@optional +/** + Whether the error from image loader should be marked indeed un-recoverable or not, with associated options and context. + If this return YES, failed URL which does not using `SDWebImageRetryFailed` will be blocked into black list. Else not. + + @param url The URL represent the image. Note this may not be a HTTP URL + @param error The URL's loading error, from previous `requestImageWithURL:options:context:progress:completed:` completedBlock's error. + @param options A mask to specify options to use for this request + @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + @return Whether to block this url or not. Return YES to mark this URL as failed. + */ +- (BOOL)shouldBlockFailedURLWithURL:(nonnull NSURL *)url + error:(nonnull NSError *)error + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDImageLoadersManager.h b/Vendors/simulator/SDWebImage.framework/Headers/SDImageLoadersManager.h new file mode 100644 index 000000000..9886f459f --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDImageLoadersManager.h @@ -0,0 +1,40 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDImageLoader.h" + +/** + A loaders manager to manage multiple loaders + */ +@interface SDImageLoadersManager : NSObject + +/** + Returns the global shared loaders manager instance. By default we will set [`SDWebImageDownloader.sharedDownloader`] into the loaders array. + */ +@property (nonatomic, class, readonly, nonnull) SDImageLoadersManager *sharedManager; + +/** + All image loaders in manager. The loaders array is a priority queue, which means the later added loader will have the highest priority + */ +@property (nonatomic, copy, nullable) NSArray>* loaders; + +/** + Add a new image loader to the end of loaders array. Which has the highest priority. + + @param loader loader + */ +- (void)addLoader:(nonnull id)loader; + +/** + Remove an image loader in the loaders array. + + @param loader loader + */ +- (void)removeLoader:(nonnull id)loader; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDImageTransformer.h b/Vendors/simulator/SDWebImage.framework/Headers/SDImageTransformer.h new file mode 100644 index 000000000..31b4370e0 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDImageTransformer.h @@ -0,0 +1,270 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" +#import "UIImage+Transform.h" + +/** + Return the transformed cache key which applied with specify transformerKey. + + @param key The original cache key + @param transformerKey The transformer key from the transformer + @return The transformed cache key + */ +FOUNDATION_EXPORT NSString * _Nullable SDTransformedKeyForKey(NSString * _Nullable key, NSString * _Nonnull transformerKey); + +/** + Return the thumbnailed cache key which applied with specify thumbnailSize and preserveAspectRatio control. + @param key The original cache key + @param thumbnailPixelSize The thumbnail pixel size + @param preserveAspectRatio The preserve aspect ratio option + @return The thumbnailed cache key + @note If you have both transformer and thumbnail applied for image, call `SDThumbnailedKeyForKey` firstly and then with `SDTransformedKeyForKey`.` + */ +FOUNDATION_EXPORT NSString * _Nullable SDThumbnailedKeyForKey(NSString * _Nullable key, CGSize thumbnailPixelSize, BOOL preserveAspectRatio); + +/** + A transformer protocol to transform the image load from cache or from download. + You can provide transformer to cache and manager (Through the `transformer` property or context option `SDWebImageContextImageTransformer`). + + @note The transform process is called from a global queue in order to not to block the main queue. + */ +@protocol SDImageTransformer + +@optional + +/** + Defaults to YES. + We keep some metadata like Image Format (`sd_imageFormat`)/ Animated Loop Count (`sd_imageLoopCount`) via associated object on UIImage instance. + When transformer generate a new UIImage instance, in most cases you still want to keep these information. So this is what for during the image loading pipeline. + If the value is YES, we will keep and override the metadata **After you generate the UIImage** + If the value is NO, we will not touch the UIImage metadata and it's controlled by you during the generation. Read `UIImage+Medata.h` and pick the metadata you want for the new generated UIImage. + */ +@property (nonatomic, assign, readonly) BOOL preserveImageMetadata; + +@required +/** + For each transformer, it must contains its cache key to used to store the image cache or query from the cache. This key will be appened after the original cache key generated by URL or from user. + + @return The cache key to appended after the original cache key. Should not be nil. + */ +@property (nonatomic, copy, readonly, nonnull) NSString *transformerKey; + +/** + Transform the image to another image. + + @param image The image to be transformed + @param key The cache key associated to the image. This arg is a hint for image source, not always useful and should be nullable. In the future we will remove this arg. + @return The transformed image, or nil if transform failed + */ +- (nullable UIImage *)transformedImageWithImage:(nonnull UIImage *)image forKey:(nonnull NSString *)key API_DEPRECATED("The key arg will be removed in the future. Update your code and don't rely on that.", macos(10.10, API_TO_BE_DEPRECATED), ios(8.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED)); + +@end + +#pragma mark - Pipeline + +/** + Pipeline transformer. Which you can bind multiple transformers together to let the image to be transformed one by one in order and generate the final image. + @note Because transformers are lightweight, if you want to append or arrange transformers, create another pipeline transformer instead. This class is considered as immutable. + */ +@interface SDImagePipelineTransformer : NSObject + +/** + All transformers in pipeline + */ +@property (nonatomic, copy, readonly, nonnull) NSArray> *transformers; + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; + ++ (nonnull instancetype)transformerWithTransformers:(nonnull NSArray> *)transformers; + +@end + +// There are some built-in transformers based on the `UIImage+Transformer` category to provide the common image geometry, image blending and image effect process. Those transform are useful for static image only but you can create your own to support animated image as well. +// Because transformers are lightweight, these class are considered as immutable. +#pragma mark - Image Geometry + +/** + Image round corner transformer + */ +@interface SDImageRoundCornerTransformer: NSObject + +/** + The radius of each corner oval. Values larger than half the + rectangle's width or height are clamped appropriately to + half the width or height. + */ +@property (nonatomic, assign, readonly) CGFloat cornerRadius; + +/** + A bitmask value that identifies the corners that you want + rounded. You can use this parameter to round only a subset + of the corners of the rectangle. + */ +@property (nonatomic, assign, readonly) SDRectCorner corners; + +/** + The inset border line width. Values larger than half the rectangle's + width or height are clamped appropriately to half the width + or height. + */ +@property (nonatomic, assign, readonly) CGFloat borderWidth; + +/** + The border stroke color. nil means clear color. + */ +@property (nonatomic, strong, readonly, nullable) UIColor *borderColor; + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; + ++ (nonnull instancetype)transformerWithRadius:(CGFloat)cornerRadius corners:(SDRectCorner)corners borderWidth:(CGFloat)borderWidth borderColor:(nullable UIColor *)borderColor; + +@end + +/** + Image resizing transformer + */ +@interface SDImageResizingTransformer : NSObject + +/** + The new size to be resized, values should be positive. + */ +@property (nonatomic, assign, readonly) CGSize size; + +/** + The scale mode for image content. + */ +@property (nonatomic, assign, readonly) SDImageScaleMode scaleMode; + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; + ++ (nonnull instancetype)transformerWithSize:(CGSize)size scaleMode:(SDImageScaleMode)scaleMode; + +@end + +/** + Image cropping transformer + */ +@interface SDImageCroppingTransformer : NSObject + +/** + Image's inner rect. + */ +@property (nonatomic, assign, readonly) CGRect rect; + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; + ++ (nonnull instancetype)transformerWithRect:(CGRect)rect; + +@end + +/** + Image flipping transformer + */ +@interface SDImageFlippingTransformer : NSObject + +/** + YES to flip the image horizontally. ⇋ + */ +@property (nonatomic, assign, readonly) BOOL horizontal; + +/** + YES to flip the image vertically. ⥯ + */ +@property (nonatomic, assign, readonly) BOOL vertical; + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; + ++ (nonnull instancetype)transformerWithHorizontal:(BOOL)horizontal vertical:(BOOL)vertical; + +@end + +/** + Image rotation transformer + */ +@interface SDImageRotationTransformer : NSObject + +/** + Rotated radians in counterclockwise.⟲ + */ +@property (nonatomic, assign, readonly) CGFloat angle; + +/** + YES: new image's size is extend to fit all content. + NO: image's size will not change, content may be clipped. + */ +@property (nonatomic, assign, readonly) BOOL fitSize; + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; + ++ (nonnull instancetype)transformerWithAngle:(CGFloat)angle fitSize:(BOOL)fitSize; + +@end + +#pragma mark - Image Blending + +/** + Image tint color transformer + */ +@interface SDImageTintTransformer : NSObject + +/** + The tint color. + */ +@property (nonatomic, strong, readonly, nonnull) UIColor *tintColor; + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; + ++ (nonnull instancetype)transformerWithColor:(nonnull UIColor *)tintColor; + +@end + +#pragma mark - Image Effect + +/** + Image blur effect transformer + */ +@interface SDImageBlurTransformer : NSObject + +/** + The radius of the blur in points, 0 means no blur effect. + */ +@property (nonatomic, assign, readonly) CGFloat blurRadius; + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; + ++ (nonnull instancetype)transformerWithRadius:(CGFloat)blurRadius; + +@end + +#if SD_UIKIT || SD_MAC +/** + Core Image filter transformer + */ +@interface SDImageFilterTransformer: NSObject + +/** + The CIFilter to be applied to the image. + */ +@property (nonatomic, strong, readonly, nonnull) CIFilter *filter; + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; + ++ (nonnull instancetype)transformerWithFilter:(nonnull CIFilter *)filter; + +@end +#endif diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDMemoryCache.h b/Vendors/simulator/SDWebImage.framework/Headers/SDMemoryCache.h new file mode 100644 index 000000000..43c39e843 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDMemoryCache.h @@ -0,0 +1,78 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +@class SDImageCacheConfig; +/** + A protocol to allow custom memory cache used in SDImageCache. + */ +@protocol SDMemoryCache + +@required + +/** + Create a new memory cache instance with the specify cache config. You can check `maxMemoryCost` and `maxMemoryCount` used for memory cache. + + @param config The cache config to be used to create the cache. + @return The new memory cache instance. + */ +- (nonnull instancetype)initWithConfig:(nonnull SDImageCacheConfig *)config; + +/** + Returns the value associated with a given key. + + @param key An object identifying the value. If nil, just return nil. + @return The value associated with key, or nil if no value is associated with key. + */ +- (nullable id)objectForKey:(nonnull id)key; + +/** + Sets the value of the specified key in the cache (0 cost). + + @param object The object to be stored in the cache. If nil, it calls `removeObjectForKey:`. + @param key The key with which to associate the value. If nil, this method has no effect. + @discussion Unlike an NSMutableDictionary object, a cache does not copy the key + objects that are put into it. + */ +- (void)setObject:(nullable id)object forKey:(nonnull id)key; + +/** + Sets the value of the specified key in the cache, and associates the key-value + pair with the specified cost. + + @param object The object to store in the cache. If nil, it calls `removeObjectForKey`. + @param key The key with which to associate the value. If nil, this method has no effect. + @param cost The cost with which to associate the key-value pair. + @discussion Unlike an NSMutableDictionary object, a cache does not copy the key + objects that are put into it. + */ +- (void)setObject:(nullable id)object forKey:(nonnull id)key cost:(NSUInteger)cost; + +/** + Removes the value of the specified key in the cache. + + @param key The key identifying the value to be removed. If nil, this method has no effect. + */ +- (void)removeObjectForKey:(nonnull id)key; + +/** + Empties the cache immediately. + */ +- (void)removeAllObjects; + +@end + +/** + A memory cache which auto purge the cache on memory warning and support weak cache. + */ +@interface SDMemoryCache : NSCache + +@property (nonatomic, strong, nonnull, readonly) SDImageCacheConfig *config; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDWebImage.h b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImage.h new file mode 100644 index 000000000..6bc9de802 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImage.h @@ -0,0 +1,91 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * (c) Florent Vilmart + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import + +//! Project version number for SDWebImage. +FOUNDATION_EXPORT double SDWebImageVersionNumber; + +//! Project version string for SDWebImage. +FOUNDATION_EXPORT const unsigned char SDWebImageVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import + +// Mac +#if __has_include() +#import +#endif +#if __has_include() +#import +#endif +#if __has_include() +#import +#endif + +// MapKit +#if __has_include() +#import +#endif diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageCacheKeyFilter.h b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageCacheKeyFilter.h new file mode 100644 index 000000000..7c569f341 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageCacheKeyFilter.h @@ -0,0 +1,35 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageCompat.h" + +typedef NSString * _Nullable(^SDWebImageCacheKeyFilterBlock)(NSURL * _Nonnull url); + +/** + This is the protocol for cache key filter. + We can use a block to specify the cache key filter. But Using protocol can make this extensible, and allow Swift user to use it easily instead of using `@convention(block)` to store a block into context options. + */ +@protocol SDWebImageCacheKeyFilter + +- (nullable NSString *)cacheKeyForURL:(nonnull NSURL *)url; + +@end + +/** + A cache key filter class with block. + */ +@interface SDWebImageCacheKeyFilter : NSObject + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; + +- (nonnull instancetype)initWithBlock:(nonnull SDWebImageCacheKeyFilterBlock)block; ++ (nonnull instancetype)cacheKeyFilterWithBlock:(nonnull SDWebImageCacheKeyFilterBlock)block; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageCacheSerializer.h b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageCacheSerializer.h new file mode 100644 index 000000000..071931a72 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageCacheSerializer.h @@ -0,0 +1,39 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageCompat.h" + +typedef NSData * _Nullable(^SDWebImageCacheSerializerBlock)(UIImage * _Nonnull image, NSData * _Nullable data, NSURL * _Nullable imageURL); + +/** + This is the protocol for cache serializer. + We can use a block to specify the cache serializer. But Using protocol can make this extensible, and allow Swift user to use it easily instead of using `@convention(block)` to store a block into context options. + */ +@protocol SDWebImageCacheSerializer + +/// Provide the image data associated to the image and store to disk cache +/// @param image The loaded image +/// @param data The original loaded image data. May be nil when image is transformed (UIImage.sd_isTransformed = YES) +/// @param imageURL The image URL +- (nullable NSData *)cacheDataWithImage:(nonnull UIImage *)image originalData:(nullable NSData *)data imageURL:(nullable NSURL *)imageURL; + +@end + +/** + A cache serializer class with block. + */ +@interface SDWebImageCacheSerializer : NSObject + +- (nonnull instancetype)initWithBlock:(nonnull SDWebImageCacheSerializerBlock)block; ++ (nonnull instancetype)cacheSerializerWithBlock:(nonnull SDWebImageCacheSerializerBlock)block; + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageCompat.h b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageCompat.h new file mode 100644 index 000000000..530b1476b --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageCompat.h @@ -0,0 +1,101 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * (c) Jamie Pinkham + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import + +#ifdef __OBJC_GC__ + #error SDWebImage does not support Objective-C Garbage Collection +#endif + +// Seems like TARGET_OS_MAC is always defined (on all platforms). +// To determine if we are running on macOS, use TARGET_OS_OSX in Xcode 8 +#if TARGET_OS_OSX + #define SD_MAC 1 +#else + #define SD_MAC 0 +#endif + +#if TARGET_OS_IOS + #define SD_IOS 1 +#else + #define SD_IOS 0 +#endif + +#if TARGET_OS_TV + #define SD_TV 1 +#else + #define SD_TV 0 +#endif + +#if TARGET_OS_WATCH + #define SD_WATCH 1 +#else + #define SD_WATCH 0 +#endif + +// Supports Xcode 14 to suppress warning +#ifdef TARGET_OS_VISION +#if TARGET_OS_VISION + #define SD_VISION 1 +#endif +#endif + +// iOS/tvOS/visionOS are very similar, UIKit exists on both platforms +// Note: watchOS also has UIKit, but it's very limited +#if SD_IOS || SD_TV || SD_VISION + #define SD_UIKIT 1 +#else + #define SD_UIKIT 0 +#endif + +#if SD_MAC + #import + #ifndef UIImage + #define UIImage NSImage + #endif + #ifndef UIImageView + #define UIImageView NSImageView + #endif + #ifndef UIView + #define UIView NSView + #endif + #ifndef UIColor + #define UIColor NSColor + #endif +#else + #if SD_UIKIT + #import + #endif + #if SD_WATCH + #import + #ifndef UIView + #define UIView WKInterfaceObject + #endif + #ifndef UIImageView + #define UIImageView WKInterfaceImage + #endif + #endif +#endif + +#ifndef NS_ENUM +#define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type +#endif + +#ifndef NS_OPTIONS +#define NS_OPTIONS(_type, _name) enum _name : _type _name; enum _name : _type +#endif + +#ifndef dispatch_main_async_safe +#define dispatch_main_async_safe(block)\ + if (dispatch_queue_get_label(DISPATCH_CURRENT_QUEUE_LABEL) == dispatch_queue_get_label(dispatch_get_main_queue())) {\ + block();\ + } else {\ + dispatch_async(dispatch_get_main_queue(), block);\ + } +#endif diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDefine.h b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDefine.h new file mode 100644 index 000000000..449494bc3 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDefine.h @@ -0,0 +1,412 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +typedef void(^SDWebImageNoParamsBlock)(void); +typedef NSString * SDWebImageContextOption NS_EXTENSIBLE_STRING_ENUM; +typedef NSDictionary SDWebImageContext; +typedef NSMutableDictionary SDWebImageMutableContext; + +#pragma mark - Image scale + +/** + Return the image scale factor for the specify key, supports file name and url key. + This is the built-in way to check the scale factor when we have no context about it. Because scale factor is not stored in image data (It's typically from filename). + However, you can also provide custom scale factor as well, see `SDWebImageContextImageScaleFactor`. + + @param key The image cache key + @return The scale factor for image + */ +FOUNDATION_EXPORT CGFloat SDImageScaleFactorForKey(NSString * _Nullable key); + +/** + Scale the image with the scale factor for the specify key. If no need to scale, return the original image. + This works for `UIImage`(UIKit) or `NSImage`(AppKit). And this function also preserve the associated value in `UIImage+Metadata.h`. + @note This is actually a convenience function, which firstly call `SDImageScaleFactorForKey` and then call `SDScaledImageForScaleFactor`, kept for backward compatibility. + + @param key The image cache key + @param image The image + @return The scaled image + */ +FOUNDATION_EXPORT UIImage * _Nullable SDScaledImageForKey(NSString * _Nullable key, UIImage * _Nullable image); + +/** + Scale the image with the scale factor. If no need to scale, return the original image. + This works for `UIImage`(UIKit) or `NSImage`(AppKit). And this function also preserve the associated value in `UIImage+Metadata.h`. + + @param scale The image scale factor + @param image The image + @return The scaled image + */ +FOUNDATION_EXPORT UIImage * _Nullable SDScaledImageForScaleFactor(CGFloat scale, UIImage * _Nullable image); + +#pragma mark - WebCache Options + +/// WebCache options +typedef NS_OPTIONS(NSUInteger, SDWebImageOptions) { + /** + * By default, when a URL fail to be downloaded, the URL is blacklisted so the library won't keep trying. + * This flag disable this blacklisting. + */ + SDWebImageRetryFailed = 1 << 0, + + /** + * By default, image downloads are started during UI interactions, this flags disable this feature, + * leading to delayed download on UIScrollView deceleration for instance. + */ + SDWebImageLowPriority = 1 << 1, + + /** + * This flag enables progressive download, the image is displayed progressively during download as a browser would do. + * By default, the image is only displayed once completely downloaded. + */ + SDWebImageProgressiveLoad = 1 << 2, + + /** + * Even if the image is cached, respect the HTTP response cache control, and refresh the image from remote location if needed. + * The disk caching will be handled by NSURLCache instead of SDWebImage leading to slight performance degradation. + * This option helps deal with images changing behind the same request URL, e.g. Facebook graph api profile pics. + * If a cached image is refreshed, the completion block is called once with the cached image and again with the final image. + * + * Use this flag only if you can't make your URLs static with embedded cache busting parameter. + */ + SDWebImageRefreshCached = 1 << 3, + + /** + * In iOS 4+, continue the download of the image if the app goes to background. This is achieved by asking the system for + * extra time in background to let the request finish. If the background task expires the operation will be cancelled. + */ + SDWebImageContinueInBackground = 1 << 4, + + /** + * Handles cookies stored in NSHTTPCookieStore by setting + * NSMutableURLRequest.HTTPShouldHandleCookies = YES; + */ + SDWebImageHandleCookies = 1 << 5, + + /** + * Enable to allow untrusted SSL certificates. + * Useful for testing purposes. Use with caution in production. + */ + SDWebImageAllowInvalidSSLCertificates = 1 << 6, + + /** + * By default, images are loaded in the order in which they were queued. This flag moves them to + * the front of the queue. + */ + SDWebImageHighPriority = 1 << 7, + + /** + * By default, placeholder images are loaded while the image is loading. This flag will delay the loading + * of the placeholder image until after the image has finished loading. + * @note This is used to treate placeholder as an **Error Placeholder** but not **Loading Placeholder** by defaults. if the image loading is cancelled or error, the placeholder will be always set. + * @note Therefore, if you want both **Error Placeholder** and **Loading Placeholder** exist, use `SDWebImageAvoidAutoSetImage` to manually set the two placeholders and final loaded image by your hand depends on loading result. + * @note This options is UI level options, has no usage on ImageManager or other components. + */ + SDWebImageDelayPlaceholder = 1 << 8, + + /** + * We usually don't apply transform on animated images as most transformers could not manage animated images. + * Use this flag to transform them anyway. + */ + SDWebImageTransformAnimatedImage = 1 << 9, + + /** + * By default, image is added to the imageView after download. But in some cases, we want to + * have the hand before setting the image (apply a filter or add it with cross-fade animation for instance) + * Use this flag if you want to manually set the image in the completion when success + * @note This options is UI level options, has no usage on ImageManager or other components. + */ + SDWebImageAvoidAutoSetImage = 1 << 10, + + /** + * By default, images are decoded respecting their original size. + * This flag will scale down the images to a size compatible with the constrained memory of devices. + * To control the limit memory bytes, check `SDImageCoderHelper.defaultScaleDownLimitBytes` (Defaults to 60MB on iOS) + * (from 5.16.0) This will actually translate to use context option `SDWebImageContextImageScaleDownLimitBytes`, which check and calculate the thumbnail pixel size occupied small than limit bytes (including animated image) + * (from 5.5.0) This flags effect the progressive and animated images as well + * @note If you need detail controls, it's better to use context option `imageScaleDownBytes` instead. + * @warning This does not effect the cache key. So which means, this will effect the global cache even next time you query without this option. Pay attention when you use this on global options (It's always recommended to use request-level option for different pipeline) + */ + SDWebImageScaleDownLargeImages = 1 << 11, + + /** + * By default, we do not query image data when the image is already cached in memory. This mask can force to query image data at the same time. However, this query is asynchronously unless you specify `SDWebImageQueryMemoryDataSync` + */ + SDWebImageQueryMemoryData = 1 << 12, + + /** + * By default, when you only specify `SDWebImageQueryMemoryData`, we query the memory image data asynchronously. Combined this mask as well to query the memory image data synchronously. + * @note Query data synchronously is not recommend, unless you want to ensure the image is loaded in the same runloop to avoid flashing during cell reusing. + */ + SDWebImageQueryMemoryDataSync = 1 << 13, + + /** + * By default, when the memory cache miss, we query the disk cache asynchronously. This mask can force to query disk cache (when memory cache miss) synchronously. + * @note These 3 query options can be combined together. For the full list about these masks combination, see wiki page. + * @note Query data synchronously is not recommend, unless you want to ensure the image is loaded in the same runloop to avoid flashing during cell reusing. + */ + SDWebImageQueryDiskDataSync = 1 << 14, + + /** + * By default, when the cache missed, the image is load from the loader. This flag can prevent this to load from cache only. + */ + SDWebImageFromCacheOnly = 1 << 15, + + /** + * By default, we query the cache before the image is load from the loader. This flag can prevent this to load from loader only. + */ + SDWebImageFromLoaderOnly = 1 << 16, + + /** + * By default, when you use `SDWebImageTransition` to do some view transition after the image load finished, this transition is only applied for image when the callback from manager is asynchronous (from network, or disk cache query) + * This mask can force to apply view transition for any cases, like memory cache query, or sync disk cache query. + * @note This options is UI level options, has no usage on ImageManager or other components. + */ + SDWebImageForceTransition = 1 << 17, + + /** + * By default, we will decode the image in the background during cache query and download from the network. This can help to improve performance because when rendering image on the screen, it need to be firstly decoded. But this happen on the main queue by Core Animation. + * However, this process may increase the memory usage as well. If you are experiencing an issue due to excessive memory consumption, This flag can prevent decode the image. + * @note 5.14.0 introduce `SDImageCoderDecodeUseLazyDecoding`, use that for better control from codec, instead of post-processing. Which acts the similar like this option but works for SDAnimatedImage as well (this one does not) + * @deprecated Deprecated in v5.17.0, if you don't want force-decode, pass [.imageForceDecodePolicy] = SDImageForceDecodePolicy.never.rawValue in context option + */ + SDWebImageAvoidDecodeImage API_DEPRECATED("Use SDWebImageContextImageForceDecodePolicy instead", macos(10.10, 10.10), ios(8.0, 8.0), tvos(9.0, 9.0), watchos(2.0, 2.0)) = 1 << 18, + + /** + * By default, we decode the animated image. This flag can force decode the first frame only and produce the static image. + */ + SDWebImageDecodeFirstFrameOnly = 1 << 19, + + /** + * By default, for `SDAnimatedImage`, we decode the animated image frame during rendering to reduce memory usage. However, you can specify to preload all frames into memory to reduce CPU usage when the animated image is shared by lots of imageViews. + * This will actually trigger `preloadAllAnimatedImageFrames` in the background queue(Disk Cache & Download only). + */ + SDWebImagePreloadAllFrames = 1 << 20, + + /** + * By default, when you use `SDWebImageContextAnimatedImageClass` context option (like using `SDAnimatedImageView` which designed to use `SDAnimatedImage`), we may still use `UIImage` when the memory cache hit, or image decoder is not available to produce one exactlly matching your custom class as a fallback solution. + * Using this option, can ensure we always callback image with your provided class. If failed to produce one, a error with code `SDWebImageErrorBadImageData` will been used. + * Note this options is not compatible with `SDWebImageDecodeFirstFrameOnly`, which always produce a UIImage/NSImage. + */ + SDWebImageMatchAnimatedImageClass = 1 << 21, + + /** + * By default, when we load the image from network, the image will be written to the cache (memory and disk, controlled by your `storeCacheType` context option) + * This maybe an asynchronously operation and the final `SDInternalCompletionBlock` callback does not guarantee the disk cache written is finished and may cause logic error. (For example, you modify the disk data just in completion block, however, the disk cache is not ready) + * If you need to process with the disk cache in the completion block, you should use this option to ensure the disk cache already been written when callback. + * Note if you use this when using the custom cache serializer, or using the transformer, we will also wait until the output image data written is finished. + */ + SDWebImageWaitStoreCache = 1 << 22, + + /** + * We usually don't apply transform on vector images, because vector images supports dynamically changing to any size, rasterize to a fixed size will loss details. To modify vector images, you can process the vector data at runtime (such as modifying PDF tag / SVG element). + * Use this flag to transform them anyway. + */ + SDWebImageTransformVectorImage = 1 << 23, + + /** + * By defaults, when you use UI-level category like `sd_setImageWithURL:` on UIImageView, it will cancel the loading image requests. + * However, some users may choose to not cancel the loading image requests and always start new pipeline. + * Use this flag to disable automatic cancel behavior. + * @note This options is UI level options, has no usage on ImageManager or other components. + */ + SDWebImageAvoidAutoCancelImage = 1 << 24, + + /** + * By defaults, for `SDWebImageTransition`, we just submit to UI transition and inmeediatelly callback the final `completedBlock` (`SDExternalCompletionBlock/SDInternalCompletionBlock`). + * This may cause un-wanted behavior if you do another transition inside `completedBlock`, because the previous transition is still runnning and un-cancellable, which mass-up the UI status. + * For this case, you can pass this option, we will delay the final callback, until your transition end. So when you inside `completedBlock`, no any transition is running on image view and safe to submit new transition. + * @note Currently we do not support `pausable/cancellable` transition. But possible in the future by using the https://developer.apple.com/documentation/uikit/uiviewpropertyanimator. + * @note If you have complicated transition animation, just use `SDWebImageManager` and do UI state management by yourself, do not use the top-level API (`sd_setImageWithURL:`) + */ + SDWebImageWaitTransition = 1 << 25, +}; + + +#pragma mark - Manager Context Options + +/** + A String to be used as the operation key for view category to store the image load operation. This is used for view instance which supports different image loading process. If nil, will use the class name as operation key. (NSString *) + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextSetImageOperationKey; + +/** + A SDWebImageManager instance to control the image download and cache process using in UIImageView+WebCache category and likes. If not provided, use the shared manager (SDWebImageManager *) + @deprecated Deprecated in the future. This context options can be replaced by other context option control like `.imageCache`, `.imageLoader`, `.imageTransformer` (See below), which already matches all the properties in SDWebImageManager. + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextCustomManager API_DEPRECATED("Use individual context option like .imageCache, .imageLoader and .imageTransformer instead", macos(10.10, API_TO_BE_DEPRECATED), ios(8.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED)); + +/** + A `SDCallbackQueue` instance which controls the `Cache`/`Manager`/`Loader`'s callback queue for their completionBlock. + This is useful for user who call these 3 components in non-main queue and want to avoid callback in main queue. + @note For UI callback (`sd_setImageWithURL`), we will still use main queue to dispatch, means if you specify a global queue, it will enqueue from the global queue to main queue. + @note This does not effect the components' working queue (for example, `Cache` still query disk on internal ioQueue, `Loader` still do network on URLSessionConfiguration.delegateQueue), change those config if you need. + Defaults to nil. Which means main queue. + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextCallbackQueue; + +/** + A id instance which conforms to `SDImageCache` protocol. It's used to override the image manager's cache during the image loading pipeline. + In other word, if you just want to specify a custom cache during image loading, you don't need to re-create a dummy SDWebImageManager instance with the cache. If not provided, use the image manager's cache (id) + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextImageCache; + +/** + A id instance which conforms to `SDImageLoader` protocol. It's used to override the image manager's loader during the image loading pipeline. + In other word, if you just want to specify a custom loader during image loading, you don't need to re-create a dummy SDWebImageManager instance with the loader. If not provided, use the image manager's cache (id) +*/ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextImageLoader; + +/** + A id instance which conforms to `SDImageCoder` protocol. It's used to override the default image coder for image decoding(including progressive) and encoding during the image loading process. + If you use this context option, we will not always use `SDImageCodersManager.shared` to loop through all registered coders and find the suitable one. Instead, we will arbitrarily use the exact provided coder without extra checking (We may not call `canDecodeFromData:`). + @note This is only useful for cases which you can ensure the loading url matches your coder, or you find it's too hard to write a common coder which can used for generic usage. This will bind the loading url with the coder logic, which is not always a good design, but possible. (id) +*/ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextImageCoder; + +/** + A id instance which conforms `SDImageTransformer` protocol. It's used for image transform after the image load finished and store the transformed image to cache. If you provide one, it will ignore the `transformer` in manager and use provided one instead. If you pass NSNull, the transformer feature will be disabled. (id) + @note When this value is used, we will trigger image transform after downloaded, and the callback's data **will be nil** (because this time the data saved to disk does not match the image return to you. If you need full size data, query the cache with full size url key) + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextImageTransformer; + +#pragma mark - Force Decode Options + +/** + A NSNumber instance which store the`SDImageForceDecodePolicy` enum. This is used to control how current image loading should force-decode the decoded image (CGImage, typically). See more what's force-decode means in `SDImageForceDecodePolicy` comment. + Defaults to `SDImageForceDecodePolicyAutomatic`, which will detect the input CGImage's metadata, and only force-decode if the input CGImage can not directly render on screen (need extra CoreAnimation Copied Image and increase RAM usage). + @note If you want to always the force-decode for this image request, pass `SDImageForceDecodePolicyAlways`, for example, some WebP images which does not created by ImageIO. + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextImageForceDecodePolicy; + +#pragma mark - Image Decoder Context Options + +/** + A Dictionary (SDImageCoderOptions) value, which pass the extra decoding options to the SDImageCoder. Introduced in SDWebImage 5.14.0 + You can pass additional decoding related options to the decoder, extensible and control by you. And pay attention this dictionary may be retained by decoded image via `UIImage.sd_decodeOptions` + This context option replace the deprecated `SDImageCoderWebImageContext`, which may cause retain cycle (cache -> image -> options -> context -> cache) + @note There are already individual options below like `.imageScaleFactor`, `.imagePreserveAspectRatio`, each of individual options will override the same filed for this dictionary. + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextImageDecodeOptions; + +/** + A CGFloat raw value which specify the image scale factor. The number should be greater than or equal to 1.0. If not provide or the number is invalid, we will use the cache key to specify the scale factor. (NSNumber) + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextImageScaleFactor; + +/** + A Boolean value indicating whether to keep the original aspect ratio when generating thumbnail images (or bitmap images from vector format). + Defaults to YES. (NSNumber) + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextImagePreserveAspectRatio; + +/** + A CGSize raw value indicating whether or not to generate the thumbnail images (or bitmap images from vector format). When this value is provided, the decoder will generate a thumbnail image which pixel size is smaller than or equal to (depends the `.imagePreserveAspectRatio`) the value size. + @note When you pass `.preserveAspectRatio == NO`, the thumbnail image is stretched to match each dimension. When `.preserveAspectRatio == YES`, the thumbnail image's width is limited to pixel size's width, the thumbnail image's height is limited to pixel size's height. For common cases, you can just pass a square size to limit both. + Defaults to CGSizeZero, which means no thumbnail generation at all. (NSValue) + @note When this value is used, we will trigger thumbnail decoding for url, and the callback's data **will be nil** (because this time the data saved to disk does not match the image return to you. If you need full size data, query the cache with full size url key) + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextImageThumbnailPixelSize; + +/** + A NSString value (UTI) indicating the source image's file extension. Example: "public.jpeg-2000", "com.nikon.raw-image", "public.tiff" + Some image file format share the same data structure but has different tag explanation, like TIFF and NEF/SRW, see https://en.wikipedia.org/wiki/TIFF + Changing the file extension cause the different image result. The coder (like ImageIO) may use file extension to choose the correct parser + @note If you don't provide this option, we will use the `URL.path` as file extension to calculate the UTI hint + @note If you really don't want any hint which effect the image result, pass `NSNull.null` instead + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextImageTypeIdentifierHint; + +/** + A NSUInteger value to provide the limit bytes during decoding. This can help to avoid OOM on large frame count animated image or large pixel static image when you don't know how much RAM it occupied before decoding + The decoder will do these logic based on limit bytes: + 1. Get the total frame count (static image means 1) + 2. Calculate the `framePixelSize` width/height to `sqrt(limitBytes / frameCount / bytesPerPixel)`, keeping aspect ratio (at least 1x1) + 3. If the `framePixelSize < originalImagePixelSize`, then do thumbnail decoding (see `SDImageCoderDecodeThumbnailPixelSize`) use the `framePixelSize` and `preseveAspectRatio = YES` + 4. Else, use the full pixel decoding (small than limit bytes) + 5. Whatever result, this does not effect the animated/static behavior of image. So even if you set `limitBytes = 1 && frameCount = 100`, we will stll create animated image with each frame `1x1` pixel size. + @note This option has higher priority than `.imageThumbnailPixelSize` + @warning This does not effect the cache key. So which means, this will effect the global cache even next time you query without this option. Pay attention when you use this on global options (It's always recommended to use request-level option for different pipeline) + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextImageScaleDownLimitBytes; + +#pragma mark - Cache Context Options + +/** + A Dictionary (SDImageCoderOptions) value, which pass the extra encode options to the SDImageCoder. Introduced in SDWebImage 5.15.0 + You can pass encode options like `compressionQuality`, `maxFileSize`, `maxPixelSize` to control the encoding related thing, this is used inside `SDImageCache` during store logic. + @note For developer who use custom cache protocol (not SDImageCache instance), they need to upgrade and use these options for encoding. + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextImageEncodeOptions; + +/** + A SDImageCacheType raw value which specify the source of cache to query. Specify `SDImageCacheTypeDisk` to query from disk cache only; `SDImageCacheTypeMemory` to query from memory only. And `SDImageCacheTypeAll` to query from both memory cache and disk cache. Specify `SDImageCacheTypeNone` is invalid and totally ignore the cache query. + If not provide or the value is invalid, we will use `SDImageCacheTypeAll`. (NSNumber) + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextQueryCacheType; + +/** + A SDImageCacheType raw value which specify the store cache type when the image has just been downloaded and will be stored to the cache. Specify `SDImageCacheTypeNone` to disable cache storage; `SDImageCacheTypeDisk` to store in disk cache only; `SDImageCacheTypeMemory` to store in memory only. And `SDImageCacheTypeAll` to store in both memory cache and disk cache. + If you use image transformer feature, this actually apply for the transformed image, but not the original image itself. Use `SDWebImageContextOriginalStoreCacheType` if you want to control the original image's store cache type at the same time. + If not provide or the value is invalid, we will use `SDImageCacheTypeAll`. (NSNumber) + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextStoreCacheType; + +/** + The same behavior like `SDWebImageContextQueryCacheType`, but control the query cache type for the original image when you use image transformer feature. This allows the detail control of cache query for these two images. For example, if you want to query the transformed image from both memory/disk cache, query the original image from disk cache only, use `[.queryCacheType : .all, .originalQueryCacheType : .disk]` + If not provide or the value is invalid, we will use `SDImageCacheTypeDisk`, which query the original full image data from disk cache after transformed image cache miss. This is suitable for most common cases to avoid re-downloading the full data for different transform variants. (NSNumber) + @note Which means, if you set this value to not be `.none`, we will query the original image from cache, then do transform with transformer, instead of actual downloading, which can save bandwidth usage. + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextOriginalQueryCacheType; + +/** + The same behavior like `SDWebImageContextStoreCacheType`, but control the store cache type for the original image when you use image transformer feature. This allows the detail control of cache storage for these two images. For example, if you want to store the transformed image into both memory/disk cache, store the original image into disk cache only, use `[.storeCacheType : .all, .originalStoreCacheType : .disk]` + If not provide or the value is invalid, we will use `SDImageCacheTypeDisk`, which store the original full image data into disk cache after storing the transformed image. This is suitable for most common cases to avoid re-downloading the full data for different transform variants. (NSNumber) + @note This only store the original image, if you want to use the original image without downloading in next query, specify `SDWebImageContextOriginalQueryCacheType` as well. + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextOriginalStoreCacheType; + +/** + A id instance which conforms to `SDImageCache` protocol. It's used to control the cache for original image when using the transformer. If you provide one, the original image (full size image) will query and write from that cache instance instead, the transformed image will query and write from the default `SDWebImageContextImageCache` instead. (id) + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextOriginalImageCache; + +/** + A Class object which the instance is a `UIImage/NSImage` subclass and adopt `SDAnimatedImage` protocol. We will call `initWithData:scale:options:` to create the instance (or `initWithAnimatedCoder:scale:` when using progressive download) . If the instance create failed, fallback to normal `UIImage/NSImage`. + This can be used to improve animated images rendering performance (especially memory usage on big animated images) with `SDAnimatedImageView` (Class). + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextAnimatedImageClass; + +#pragma mark - Download Context Options + +/** + A id instance to modify the image download request. It's used for downloader to modify the original request from URL and options. If you provide one, it will ignore the `requestModifier` in downloader and use provided one instead. (id) + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextDownloadRequestModifier; + +/** + A id instance to modify the image download response. It's used for downloader to modify the original response from URL and options. If you provide one, it will ignore the `responseModifier` in downloader and use provided one instead. (id) + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextDownloadResponseModifier; + +/** + A id instance to decrypt the image download data. This can be used for image data decryption, such as Base64 encoded image. If you provide one, it will ignore the `decryptor` in downloader and use provided one instead. (id) + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextDownloadDecryptor; + +/** + A id instance to convert an URL into a cache key. It's used when manager need cache key to use image cache. If you provide one, it will ignore the `cacheKeyFilter` in manager and use provided one instead. (id) + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextCacheKeyFilter; + +/** + A id instance to convert the decoded image, the source downloaded data, to the actual data. It's used for manager to store image to the disk cache. If you provide one, it will ignore the `cacheSerializer` in manager and use provided one instead. (id) + */ +FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextCacheSerializer; diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDownloader.h b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDownloader.h new file mode 100644 index 000000000..eec3fc181 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDownloader.h @@ -0,0 +1,320 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageCompat.h" +#import "SDWebImageDefine.h" +#import "SDWebImageOperation.h" +#import "SDWebImageDownloaderConfig.h" +#import "SDWebImageDownloaderRequestModifier.h" +#import "SDWebImageDownloaderResponseModifier.h" +#import "SDWebImageDownloaderDecryptor.h" +#import "SDImageLoader.h" + +/// Downloader options +typedef NS_OPTIONS(NSUInteger, SDWebImageDownloaderOptions) { + /** + * Put the download in the low queue priority and task priority. + */ + SDWebImageDownloaderLowPriority = 1 << 0, + + /** + * This flag enables progressive download, the image is displayed progressively during download as a browser would do. + */ + SDWebImageDownloaderProgressiveLoad = 1 << 1, + + /** + * By default, request prevent the use of NSURLCache. With this flag, NSURLCache + * is used with default policies. + */ + SDWebImageDownloaderUseNSURLCache = 1 << 2, + + /** + * Call completion block with nil image/imageData if the image was read from NSURLCache + * And the error code is `SDWebImageErrorCacheNotModified` + * This flag should be combined with `SDWebImageDownloaderUseNSURLCache`. + */ + SDWebImageDownloaderIgnoreCachedResponse = 1 << 3, + + /** + * In iOS 4+, continue the download of the image if the app goes to background. This is achieved by asking the system for + * extra time in background to let the request finish. If the background task expires the operation will be cancelled. + */ + SDWebImageDownloaderContinueInBackground = 1 << 4, + + /** + * Handles cookies stored in NSHTTPCookieStore by setting + * NSMutableURLRequest.HTTPShouldHandleCookies = YES; + */ + SDWebImageDownloaderHandleCookies = 1 << 5, + + /** + * Enable to allow untrusted SSL certificates. + * Useful for testing purposes. Use with caution in production. + */ + SDWebImageDownloaderAllowInvalidSSLCertificates = 1 << 6, + + /** + * Put the download in the high queue priority and task priority. + */ + SDWebImageDownloaderHighPriority = 1 << 7, + + /** + * By default, images are decoded respecting their original size. On iOS, this flag will scale down the + * images to a size compatible with the constrained memory of devices. + * This flag take no effect if `SDWebImageDownloaderAvoidDecodeImage` is set. And it will be ignored if `SDWebImageDownloaderProgressiveLoad` is set. + */ + SDWebImageDownloaderScaleDownLargeImages = 1 << 8, + + /** + * By default, we will decode the image in the background during cache query and download from the network. This can help to improve performance because when rendering image on the screen, it need to be firstly decoded. But this happen on the main queue by Core Animation. + * However, this process may increase the memory usage as well. If you are experiencing a issue due to excessive memory consumption, This flag can prevent decode the image. + * @note 5.14.0 introduce `SDImageCoderDecodeUseLazyDecoding`, use that for better control from codec, instead of post-processing. Which acts the similar like this option but works for SDAnimatedImage as well (this one does not) + * @deprecated Deprecated in v5.17.0, if you don't want force-decode, pass [.imageForceDecodePolicy] = SDImageForceDecodePolicy.never.rawValue in context option + */ + SDWebImageDownloaderAvoidDecodeImage API_DEPRECATED("Use SDWebImageContextImageForceDecodePolicy instead", macos(10.10, 10.10), ios(8.0, 8.0), tvos(9.0, 9.0), watchos(2.0, 2.0)) = 1 << 9, + + /** + * By default, we decode the animated image. This flag can force decode the first frame only and produce the static image. + */ + SDWebImageDownloaderDecodeFirstFrameOnly = 1 << 10, + + /** + * By default, for `SDAnimatedImage`, we decode the animated image frame during rendering to reduce memory usage. This flag actually trigger `preloadAllAnimatedImageFrames = YES` after image load from network + */ + SDWebImageDownloaderPreloadAllFrames = 1 << 11, + + /** + * By default, when you use `SDWebImageContextAnimatedImageClass` context option (like using `SDAnimatedImageView` which designed to use `SDAnimatedImage`), we may still use `UIImage` when the memory cache hit, or image decoder is not available, to behave as a fallback solution. + * Using this option, can ensure we always produce image with your provided class. If failed, a error with code `SDWebImageErrorBadImageData` will been used. + * Note this options is not compatible with `SDWebImageDownloaderDecodeFirstFrameOnly`, which always produce a UIImage/NSImage. + */ + SDWebImageDownloaderMatchAnimatedImageClass = 1 << 12, +}; + +/// Posed when URLSessionTask started (`resume` called)) +FOUNDATION_EXPORT NSNotificationName _Nonnull const SDWebImageDownloadStartNotification; +/// Posed when URLSessionTask get HTTP response (`didReceiveResponse:completionHandler:` called) +FOUNDATION_EXPORT NSNotificationName _Nonnull const SDWebImageDownloadReceiveResponseNotification; +/// Posed when URLSessionTask stoped (`didCompleteWithError:` with error or `cancel` called) +FOUNDATION_EXPORT NSNotificationName _Nonnull const SDWebImageDownloadStopNotification; +/// Posed when URLSessionTask finished with success (`didCompleteWithError:` without error) +FOUNDATION_EXPORT NSNotificationName _Nonnull const SDWebImageDownloadFinishNotification; + +typedef SDImageLoaderProgressBlock SDWebImageDownloaderProgressBlock; +typedef SDImageLoaderCompletedBlock SDWebImageDownloaderCompletedBlock; + +/** + * A token associated with each download. Can be used to cancel a download + */ +@interface SDWebImageDownloadToken : NSObject + +/** + Cancel the current download. + */ +- (void)cancel; + +/** + The download's URL. + */ +@property (nonatomic, strong, nullable, readonly) NSURL *url; + +/** + The download's request. + */ +@property (nonatomic, strong, nullable, readonly) NSURLRequest *request; + +/** + The download's response. + */ +@property (nonatomic, strong, nullable, readonly) NSURLResponse *response; + +/** + The download's metrics. This will be nil if download operation does not support metrics. + */ +@property (nonatomic, strong, nullable, readonly) NSURLSessionTaskMetrics *metrics API_AVAILABLE(macos(10.12), ios(10.0), watchos(3.0), tvos(10.0)); + +@end + + +/** + * Asynchronous downloader dedicated and optimized for image loading. + */ +@interface SDWebImageDownloader : NSObject + +/** + * Downloader Config object - storing all kind of settings. + * Most config properties support dynamic changes during download, except something like `sessionConfiguration`, see `SDWebImageDownloaderConfig` for more detail. + */ +@property (nonatomic, copy, readonly, nonnull) SDWebImageDownloaderConfig *config; + +/** + * Set the request modifier to modify the original download request before image load. + * This request modifier method will be called for each downloading image request. Return the original request means no modification. Return nil will cancel the download request. + * Defaults to nil, means does not modify the original download request. + * @note If you want to modify single request, consider using `SDWebImageContextDownloadRequestModifier` context option. + */ +@property (nonatomic, strong, nullable) id requestModifier; + +/** + * Set the response modifier to modify the original download response during image load. + * This response modifier method will be called for each downloading image response. Return the original response means no modification. Return nil will mark current download as cancelled. + * Defaults to nil, means does not modify the original download response. + * @note If you want to modify single response, consider using `SDWebImageContextDownloadResponseModifier` context option. + */ +@property (nonatomic, strong, nullable) id responseModifier; + +/** + * Set the decryptor to decrypt the original download data before image decoding. This can be used for encrypted image data, like Base64. + * This decryptor method will be called for each downloading image data. Return the original data means no modification. Return nil will mark this download failed. + * Defaults to nil, means does not modify the original download data. + * @note When using decryptor, progressive decoding will be disabled, to avoid data corrupt issue. + * @note If you want to decrypt single download data, consider using `SDWebImageContextDownloadDecryptor` context option. + */ +@property (nonatomic, strong, nullable) id decryptor; + +/** + * The configuration in use by the internal NSURLSession. If you want to provide a custom sessionConfiguration, use `SDWebImageDownloaderConfig.sessionConfiguration` and create a new downloader instance. + @note This is immutable according to NSURLSession's documentation. Mutating this object directly has no effect. + */ +@property (nonatomic, readonly, nonnull) NSURLSessionConfiguration *sessionConfiguration; + +/** + * Gets/Sets the download queue suspension state. + */ +@property (nonatomic, assign, getter=isSuspended) BOOL suspended; + +/** + * Shows the current amount of downloads that still need to be downloaded + */ +@property (nonatomic, assign, readonly) NSUInteger currentDownloadCount; + +/** + * Returns the global shared downloader instance. Which use the `SDWebImageDownloaderConfig.defaultDownloaderConfig` config. + */ +@property (nonatomic, class, readonly, nonnull) SDWebImageDownloader *sharedDownloader; + +/** + Creates an instance of a downloader with specified downloader config. + You can specify session configuration, timeout or operation class through downloader config. + + @param config The downloader config. If you specify nil, the `defaultDownloaderConfig` will be used. + @return new instance of downloader class + */ +- (nonnull instancetype)initWithConfig:(nullable SDWebImageDownloaderConfig *)config NS_DESIGNATED_INITIALIZER; + +/** + * Set a value for a HTTP header to be appended to each download HTTP request. + * + * @param value The value for the header field. Use `nil` value to remove the header field. + * @param field The name of the header field to set. + */ +- (void)setValue:(nullable NSString *)value forHTTPHeaderField:(nullable NSString *)field; + +/** + * Returns the value of the specified HTTP header field. + * + * @return The value associated with the header field field, or `nil` if there is no corresponding header field. + */ +- (nullable NSString *)valueForHTTPHeaderField:(nullable NSString *)field; + +/** + * Creates a SDWebImageDownloader async downloader instance with a given URL + * + * The delegate will be informed when the image is finish downloaded or an error has happen. + * + * @see SDWebImageDownloaderDelegate + * + * @param url The URL to the image to download + * @param completedBlock A block called once the download is completed. + * If the download succeeded, the image parameter is set, in case of error, + * error parameter is set with the error. The last parameter is always YES + * if SDWebImageDownloaderProgressiveDownload isn't use. With the + * SDWebImageDownloaderProgressiveDownload option, this block is called + * repeatedly with the partial image object and the finished argument set to NO + * before to be called a last time with the full image and finished argument + * set to YES. In case of error, the finished argument is always YES. + * + * @return A token (SDWebImageDownloadToken) that can be used to cancel this operation + */ +- (nullable SDWebImageDownloadToken *)downloadImageWithURL:(nullable NSURL *)url + completed:(nullable SDWebImageDownloaderCompletedBlock)completedBlock; + +/** + * Creates a SDWebImageDownloader async downloader instance with a given URL + * + * The delegate will be informed when the image is finish downloaded or an error has happen. + * + * @see SDWebImageDownloaderDelegate + * + * @param url The URL to the image to download + * @param options The options to be used for this download + * @param progressBlock A block called repeatedly while the image is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called once the download is completed. + * If the download succeeded, the image parameter is set, in case of error, + * error parameter is set with the error. The last parameter is always YES + * if SDWebImageDownloaderProgressiveLoad isn't use. With the + * SDWebImageDownloaderProgressiveLoad option, this block is called + * repeatedly with the partial image object and the finished argument set to NO + * before to be called a last time with the full image and finished argument + * set to YES. In case of error, the finished argument is always YES. + * + * @return A token (SDWebImageDownloadToken) that can be used to cancel this operation + */ +- (nullable SDWebImageDownloadToken *)downloadImageWithURL:(nullable NSURL *)url + options:(SDWebImageDownloaderOptions)options + progress:(nullable SDWebImageDownloaderProgressBlock)progressBlock + completed:(nullable SDWebImageDownloaderCompletedBlock)completedBlock; + +/** + * Creates a SDWebImageDownloader async downloader instance with a given URL + * + * The delegate will be informed when the image is finish downloaded or an error has happen. + * + * @see SDWebImageDownloaderDelegate + * + * @param url The URL to the image to download + * @param options The options to be used for this download + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + * @param progressBlock A block called repeatedly while the image is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called once the download is completed. + * + * @return A token (SDWebImageDownloadToken) that can be used to cancel this operation + */ +- (nullable SDWebImageDownloadToken *)downloadImageWithURL:(nullable NSURL *)url + options:(SDWebImageDownloaderOptions)options + context:(nullable SDWebImageContext *)context + progress:(nullable SDWebImageDownloaderProgressBlock)progressBlock + completed:(nullable SDWebImageDownloaderCompletedBlock)completedBlock; + +/** + * Cancels all download operations in the queue + */ +- (void)cancelAllDownloads; + +/** + * Invalidates the managed session, optionally canceling pending operations. + * @note If you use custom downloader instead of the shared downloader, you need call this method when you do not use it to avoid memory leak + * @param cancelPendingOperations Whether or not to cancel pending operations. + * @note Calling this method on the shared downloader has no effect. + */ +- (void)invalidateSessionAndCancel:(BOOL)cancelPendingOperations; + +@end + + +/** + SDWebImageDownloader is the built-in image loader conform to `SDImageLoader`. Which provide the HTTP/HTTPS/FTP download, or local file URL using NSURLSession. + However, this downloader class itself also support customization for advanced users. You can specify `operationClass` in download config to custom download operation, See `SDWebImageDownloaderOperation`. + If you want to provide some image loader which beyond network or local file, consider to create your own custom class conform to `SDImageLoader`. + */ +@interface SDWebImageDownloader (SDImageLoader) + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDownloaderConfig.h b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDownloaderConfig.h new file mode 100644 index 000000000..9d5e67bf7 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDownloaderConfig.h @@ -0,0 +1,113 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageCompat.h" + +/// Operation execution order +typedef NS_ENUM(NSInteger, SDWebImageDownloaderExecutionOrder) { + /** + * Default value. All download operations will execute in queue style (first-in-first-out). + */ + SDWebImageDownloaderFIFOExecutionOrder, + + /** + * All download operations will execute in stack style (last-in-first-out). + */ + SDWebImageDownloaderLIFOExecutionOrder +}; + +/** + The class contains all the config for image downloader + @note This class conform to NSCopying, make sure to add the property in `copyWithZone:` as well. + */ +@interface SDWebImageDownloaderConfig : NSObject + +/** + Gets the default downloader config used for shared instance or initialization when it does not provide any downloader config. Such as `SDWebImageDownloader.sharedDownloader`. + @note You can modify the property on default downloader config, which can be used for later created downloader instance. The already created downloader instance does not get affected. + */ +@property (nonatomic, class, readonly, nonnull) SDWebImageDownloaderConfig *defaultDownloaderConfig; + +/** + * The maximum number of concurrent downloads. + * Defaults to 6. + */ +@property (nonatomic, assign) NSInteger maxConcurrentDownloads; + +/** + * The timeout value (in seconds) for each download operation. + * Defaults to 15.0. + */ +@property (nonatomic, assign) NSTimeInterval downloadTimeout; + +/** + * The minimum interval about progress percent during network downloading. Which means the next progress callback and current progress callback's progress percent difference should be larger or equal to this value. However, the final finish download progress callback does not get effected. + * The value should be 0.0-1.0. + * @note If you're using progressive decoding feature, this will also effect the image refresh rate. + * @note This value may enhance the performance if you don't want progress callback too frequently. + * Defaults to 0, which means each time we receive the new data from URLSession, we callback the progressBlock immediately. + */ +@property (nonatomic, assign) double minimumProgressInterval; + +/** + * The custom session configuration in use by NSURLSession. If you don't provide one, we will use `defaultSessionConfiguration` instead. + * Defatuls to nil. + * @note This property does not support dynamic changes, means it's immutable after the downloader instance initialized. + */ +@property (nonatomic, strong, nullable) NSURLSessionConfiguration *sessionConfiguration; + +/** + * Gets/Sets a subclass of `SDWebImageDownloaderOperation` as the default + * `NSOperation` to be used each time SDWebImage constructs a request + * operation to download an image. + * Defaults to nil. + * @note Passing `NSOperation` to set as default. Passing `nil` will revert to `SDWebImageDownloaderOperation`. + */ +@property (nonatomic, assign, nullable) Class operationClass; + +/** + * Changes download operations execution order. + * Defaults to `SDWebImageDownloaderFIFOExecutionOrder`. + */ +@property (nonatomic, assign) SDWebImageDownloaderExecutionOrder executionOrder; + +/** + * Set the default URL credential to be set for request operations. + * Defaults to nil. + */ +@property (nonatomic, copy, nullable) NSURLCredential *urlCredential; + +/** + * Set username using for HTTP Basic authentication. + * Defaults to nil. + */ +@property (nonatomic, copy, nullable) NSString *username; + +/** + * Set password using for HTTP Basic authentication. + * Defaults to nil. + */ +@property (nonatomic, copy, nullable) NSString *password; + +/** + * Set the acceptable HTTP Response status code. The status code which beyond the range will mark the download operation failed. + * For example, if we config [200, 400) but server response is 503, the download will fail with error code `SDWebImageErrorInvalidDownloadStatusCode`. + * Defaults to [200,400). Nil means no validation at all. + */ +@property (nonatomic, copy, nullable) NSIndexSet *acceptableStatusCodes; + +/** + * Set the acceptable HTTP Response content type. The content type beyond the set will mark the download operation failed. + * For example, if we config ["image/png"] but server response is "application/json", the download will fail with error code `SDWebImageErrorInvalidDownloadContentType`. + * Normally you don't need this for image format detection because we use image's data file signature magic bytes: https://en.wikipedia.org/wiki/List_of_file_signatures + * Defaults to nil. Nil means no validation at all. + */ +@property (nonatomic, copy, nullable) NSSet *acceptableContentTypes; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDownloaderDecryptor.h b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDownloaderDecryptor.h new file mode 100644 index 000000000..69eee7a42 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDownloaderDecryptor.h @@ -0,0 +1,52 @@ +/* +* This file is part of the SDWebImage package. +* (c) Olivier Poitrey +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + +#import +#import "SDWebImageCompat.h" + +typedef NSData * _Nullable (^SDWebImageDownloaderDecryptorBlock)(NSData * _Nonnull data, NSURLResponse * _Nullable response); + +/** +This is the protocol for downloader decryptor. Which decrypt the original encrypted data before decoding. Note progressive decoding is not compatible for decryptor. +We can use a block to specify the downloader decryptor. But Using protocol can make this extensible, and allow Swift user to use it easily instead of using `@convention(block)` to store a block into context options. +*/ +@protocol SDWebImageDownloaderDecryptor + +/// Decrypt the original download data and return a new data. You can use this to decrypt the data using your preferred algorithm. +/// @param data The original download data +/// @param response The URL response for data. If you modify the original URL response via response modifier, the modified version will be here. This arg is nullable. +/// @note If nil is returned, the image download will be marked as failed with error `SDWebImageErrorBadImageData` +- (nullable NSData *)decryptedDataWithData:(nonnull NSData *)data response:(nullable NSURLResponse *)response; + +@end + +/** +A downloader response modifier class with block. +*/ +@interface SDWebImageDownloaderDecryptor : NSObject + +/// Create the data decryptor with block +/// @param block A block to control decrypt logic +- (nonnull instancetype)initWithBlock:(nonnull SDWebImageDownloaderDecryptorBlock)block; + +/// Create the data decryptor with block +/// @param block A block to control decrypt logic ++ (nonnull instancetype)decryptorWithBlock:(nonnull SDWebImageDownloaderDecryptorBlock)block; + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; + +@end + +/// Convenience way to create decryptor for common data encryption. +@interface SDWebImageDownloaderDecryptor (Conveniences) + +/// Base64 Encoded image data decryptor +@property (class, readonly, nonnull) SDWebImageDownloaderDecryptor *base64Decryptor; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDownloaderOperation.h b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDownloaderOperation.h new file mode 100644 index 000000000..aec9c93d7 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDownloaderOperation.h @@ -0,0 +1,191 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageDownloader.h" +#import "SDWebImageOperation.h" + +/** + Describes a downloader operation. If one wants to use a custom downloader op, it needs to inherit from `NSOperation` and conform to this protocol + For the description about these methods, see `SDWebImageDownloaderOperation` + @note If your custom operation class does not use `NSURLSession` at all, do not implement the optional methods and session delegate methods. + */ +@protocol SDWebImageDownloaderOperation +@required +- (nonnull instancetype)initWithRequest:(nullable NSURLRequest *)request + inSession:(nullable NSURLSession *)session + options:(SDWebImageDownloaderOptions)options; + +- (nonnull instancetype)initWithRequest:(nullable NSURLRequest *)request + inSession:(nullable NSURLSession *)session + options:(SDWebImageDownloaderOptions)options + context:(nullable SDWebImageContext *)context; + +- (nullable id)addHandlersForProgress:(nullable SDWebImageDownloaderProgressBlock)progressBlock + completed:(nullable SDWebImageDownloaderCompletedBlock)completedBlock; + +- (nullable id)addHandlersForProgress:(nullable SDWebImageDownloaderProgressBlock)progressBlock + completed:(nullable SDWebImageDownloaderCompletedBlock)completedBlock + decodeOptions:(nullable SDImageCoderOptions *)decodeOptions; + +- (BOOL)cancel:(nullable id)token; + +@property (strong, nonatomic, readonly, nullable) NSURLRequest *request; +@property (strong, nonatomic, readonly, nullable) NSURLResponse *response; + +@optional +@property (strong, nonatomic, readonly, nullable) NSURLSessionTask *dataTask; +@property (strong, nonatomic, readonly, nullable) NSURLSessionTaskMetrics *metrics API_AVAILABLE(macos(10.12), ios(10.0), watchos(3.0), tvos(10.0)); + +// These operation-level config was inherited from downloader. See `SDWebImageDownloaderConfig` for documentation. +@property (strong, nonatomic, nullable) NSURLCredential *credential; +@property (assign, nonatomic) double minimumProgressInterval; +@property (copy, nonatomic, nullable) NSIndexSet *acceptableStatusCodes; +@property (copy, nonatomic, nullable) NSSet *acceptableContentTypes; + +@end + + +/** + The download operation class for SDWebImageDownloader. + */ +@interface SDWebImageDownloaderOperation : NSOperation + +/** + * The request used by the operation's task. + */ +@property (strong, nonatomic, readonly, nullable) NSURLRequest *request; + +/** + * The response returned by the operation's task. + */ +@property (strong, nonatomic, readonly, nullable) NSURLResponse *response; + +/** + * The operation's task + */ +@property (strong, nonatomic, readonly, nullable) NSURLSessionTask *dataTask; + +/** + * The collected metrics from `-URLSession:task:didFinishCollectingMetrics:`. + * This can be used to collect the network metrics like download duration, DNS lookup duration, SSL handshake duration, etc. See Apple's documentation: https://developer.apple.com/documentation/foundation/urlsessiontaskmetrics + */ +@property (strong, nonatomic, readonly, nullable) NSURLSessionTaskMetrics *metrics API_AVAILABLE(macos(10.12), ios(10.0), watchos(3.0), tvos(10.0)); + +/** + * The credential used for authentication challenges in `-URLSession:task:didReceiveChallenge:completionHandler:`. + * + * This will be overridden by any shared credentials that exist for the username or password of the request URL, if present. + */ +@property (strong, nonatomic, nullable) NSURLCredential *credential; + +/** + * The minimum interval about progress percent during network downloading. Which means the next progress callback and current progress callback's progress percent difference should be larger or equal to this value. However, the final finish download progress callback does not get effected. + * The value should be 0.0-1.0. + * @note If you're using progressive decoding feature, this will also effect the image refresh rate. + * @note This value may enhance the performance if you don't want progress callback too frequently. + * Defaults to 0, which means each time we receive the new data from URLSession, we callback the progressBlock immediately. + */ +@property (assign, nonatomic) double minimumProgressInterval; + +/** + * Set the acceptable HTTP Response status code. The status code which beyond the range will mark the download operation failed. + * For example, if we config [200, 400) but server response is 503, the download will fail with error code `SDWebImageErrorInvalidDownloadStatusCode`. + * Defaults to [200,400). Nil means no validation at all. + */ +@property (copy, nonatomic, nullable) NSIndexSet *acceptableStatusCodes; + +/** + * Set the acceptable HTTP Response content type. The content type beyond the set will mark the download operation failed. + * For example, if we config ["image/png"] but server response is "application/json", the download will fail with error code `SDWebImageErrorInvalidDownloadContentType`. + * Normally you don't need this for image format detection because we use image's data file signature magic bytes: https://en.wikipedia.org/wiki/List_of_file_signatures + * Defaults to nil. Nil means no validation at all. + */ +@property (copy, nonatomic, nullable) NSSet *acceptableContentTypes; + +/** + * The options for the receiver. + */ +@property (assign, nonatomic, readonly) SDWebImageDownloaderOptions options; + +/** + * The context for the receiver. + */ +@property (copy, nonatomic, readonly, nullable) SDWebImageContext *context; + +/** + * Initializes a `SDWebImageDownloaderOperation` object + * + * @see SDWebImageDownloaderOperation + * + * @param request the URL request + * @param session the URL session in which this operation will run + * @param options downloader options + * + * @return the initialized instance + */ +- (nonnull instancetype)initWithRequest:(nullable NSURLRequest *)request + inSession:(nullable NSURLSession *)session + options:(SDWebImageDownloaderOptions)options; + +/** + * Initializes a `SDWebImageDownloaderOperation` object + * + * @see SDWebImageDownloaderOperation + * + * @param request the URL request + * @param session the URL session in which this operation will run + * @param options downloader options + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + * + * @return the initialized instance + */ +- (nonnull instancetype)initWithRequest:(nullable NSURLRequest *)request + inSession:(nullable NSURLSession *)session + options:(SDWebImageDownloaderOptions)options + context:(nullable SDWebImageContext *)context NS_DESIGNATED_INITIALIZER; + +/** + * Adds handlers for progress and completion. Returns a token that can be passed to -cancel: to cancel this set of + * callbacks. + * + * @param progressBlock the block executed when a new chunk of data arrives. + * @note the progress block is executed on a background queue + * @param completedBlock the block executed when the download is done. + * @note the completed block is executed on the main queue for success. If errors are found, there is a chance the block will be executed on a background queue + * + * @return the token to use to cancel this set of handlers + */ +- (nullable id)addHandlersForProgress:(nullable SDWebImageDownloaderProgressBlock)progressBlock + completed:(nullable SDWebImageDownloaderCompletedBlock)completedBlock; + +/** + * Adds handlers for progress and completion, and optional decode options (which need another image other than the initial one). Returns a token that can be passed to -cancel: to cancel this set of + * callbacks. + * + * @param progressBlock the block executed when a new chunk of data arrives. + * @note the progress block is executed on a background queue + * @param completedBlock the block executed when the download is done. + * @note the completed block is executed on the main queue for success. If errors are found, there is a chance the block will be executed on a background queue + * @param decodeOptions The optional decode options, used when in thumbnail decoding for current completion block callback. For example, request and then , we may callback these two completion block with different size. + * @return the token to use to cancel this set of handlers + */ +- (nullable id)addHandlersForProgress:(nullable SDWebImageDownloaderProgressBlock)progressBlock + completed:(nullable SDWebImageDownloaderCompletedBlock)completedBlock + decodeOptions:(nullable SDImageCoderOptions *)decodeOptions; + +/** + * Cancels a set of callbacks. Once all callbacks are canceled, the operation is cancelled. + * + * @param token the token representing a set of callbacks to cancel + * + * @return YES if the operation was stopped because this was the last token to be canceled. NO otherwise. + */ +- (BOOL)cancel:(nullable id)token; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDownloaderRequestModifier.h b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDownloaderRequestModifier.h new file mode 100644 index 000000000..94009977a --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDownloaderRequestModifier.h @@ -0,0 +1,72 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageCompat.h" + +typedef NSURLRequest * _Nullable (^SDWebImageDownloaderRequestModifierBlock)(NSURLRequest * _Nonnull request); + +/** + This is the protocol for downloader request modifier. + We can use a block to specify the downloader request modifier. But Using protocol can make this extensible, and allow Swift user to use it easily instead of using `@convention(block)` to store a block into context options. + */ +@protocol SDWebImageDownloaderRequestModifier + +/// Modify the original URL request and return a new one instead. You can modify the HTTP header, cachePolicy, etc for this URL. +/// @param request The original URL request for image loading +/// @note If return nil, the URL request will be cancelled. +- (nullable NSURLRequest *)modifiedRequestWithRequest:(nonnull NSURLRequest *)request; + +@end + +/** + A downloader request modifier class with block. + */ +@interface SDWebImageDownloaderRequestModifier : NSObject + +/// Create the request modifier with block +/// @param block A block to control modifier logic +- (nonnull instancetype)initWithBlock:(nonnull SDWebImageDownloaderRequestModifierBlock)block; + +/// Create the request modifier with block +/// @param block A block to control modifier logic ++ (nonnull instancetype)requestModifierWithBlock:(nonnull SDWebImageDownloaderRequestModifierBlock)block; + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; + +@end + +/** +A convenient request modifier to provide the HTTP request including HTTP Method, Headers and Body. +*/ +@interface SDWebImageDownloaderRequestModifier (Conveniences) + +/// Create the request modifier with HTTP Method. +/// @param method HTTP Method, nil means to GET. +/// @note This is for convenience, if you need code to control the logic, use block API instead. +- (nonnull instancetype)initWithMethod:(nullable NSString *)method; + +/// Create the request modifier with HTTP Headers. +/// @param headers HTTP Headers. Case insensitive according to HTTP/1.1(HTTP/2) standard. The headers will override the same fields from original request. +/// @note This is for convenience, if you need code to control the logic, use block API instead. +- (nonnull instancetype)initWithHeaders:(nullable NSDictionary *)headers; + +/// Create the request modifier with HTTP Body. +/// @param body HTTP Body. +/// @note This is for convenience, if you need code to control the logic, use block API instead. +- (nonnull instancetype)initWithBody:(nullable NSData *)body; + +/// Create the request modifier with HTTP Method, Headers and Body. +/// @param method HTTP Method, nil means to GET. +/// @param headers HTTP Headers. Case insensitive according to HTTP/1.1(HTTP/2) standard. The headers will override the same fields from original request. +/// @param body HTTP Body. +/// @note This is for convenience, if you need code to control the logic, use block API instead. +- (nonnull instancetype)initWithMethod:(nullable NSString *)method headers:(nullable NSDictionary *)headers body:(nullable NSData *)body; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDownloaderResponseModifier.h b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDownloaderResponseModifier.h new file mode 100644 index 000000000..009e6a181 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageDownloaderResponseModifier.h @@ -0,0 +1,72 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageCompat.h" + +typedef NSURLResponse * _Nullable (^SDWebImageDownloaderResponseModifierBlock)(NSURLResponse * _Nonnull response); + +/** + This is the protocol for downloader response modifier. + We can use a block to specify the downloader response modifier. But Using protocol can make this extensible, and allow Swift user to use it easily instead of using `@convention(block)` to store a block into context options. + */ +@protocol SDWebImageDownloaderResponseModifier + +/// Modify the original URL response and return a new response. You can use this to check MIME-Type, mock server response, etc. +/// @param response The original URL response, note for HTTP request it's actually a `NSHTTPURLResponse` instance +/// @note If nil is returned, the image download will marked as cancelled with error `SDWebImageErrorInvalidDownloadResponse` +- (nullable NSURLResponse *)modifiedResponseWithResponse:(nonnull NSURLResponse *)response; + +@end + +/** + A downloader response modifier class with block. + */ +@interface SDWebImageDownloaderResponseModifier : NSObject + +/// Create the response modifier with block +/// @param block A block to control modifier logic +- (nonnull instancetype)initWithBlock:(nonnull SDWebImageDownloaderResponseModifierBlock)block; + +/// Create the response modifier with block +/// @param block A block to control modifier logic ++ (nonnull instancetype)responseModifierWithBlock:(nonnull SDWebImageDownloaderResponseModifierBlock)block; + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; + +@end + +/** +A convenient response modifier to provide the HTTP response including HTTP Status Code, Version and Headers. +*/ +@interface SDWebImageDownloaderResponseModifier (Conveniences) + +/// Create the response modifier with HTTP Status code. +/// @param statusCode HTTP Status Code. +/// @note This is for convenience, if you need code to control the logic, use block API instead. +- (nonnull instancetype)initWithStatusCode:(NSInteger)statusCode; + +/// Create the response modifier with HTTP Version. Status code defaults to 200. +/// @param version HTTP Version, nil means "HTTP/1.1". +/// @note This is for convenience, if you need code to control the logic, use block API instead. +- (nonnull instancetype)initWithVersion:(nullable NSString *)version; + +/// Create the response modifier with HTTP Headers. Status code defaults to 200. +/// @param headers HTTP Headers. Case insensitive according to HTTP/1.1(HTTP/2) standard. The headers will override the same fields from original response. +/// @note This is for convenience, if you need code to control the logic, use block API instead. +- (nonnull instancetype)initWithHeaders:(nullable NSDictionary *)headers; + +/// Create the response modifier with HTTP Status Code, Version and Headers. +/// @param statusCode HTTP Status Code. +/// @param version HTTP Version, nil means "HTTP/1.1". +/// @param headers HTTP Headers. Case insensitive according to HTTP/1.1(HTTP/2) standard. The headers will override the same fields from original response. +/// @note This is for convenience, if you need code to control the logic, use block API instead. +- (nonnull instancetype)initWithStatusCode:(NSInteger)statusCode version:(nullable NSString *)version headers:(nullable NSDictionary *)headers; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageError.h b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageError.h new file mode 100644 index 000000000..652b0d773 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageError.h @@ -0,0 +1,33 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * (c) Jamie Pinkham + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +/// An error domain represent SDWebImage loading system with custom codes +FOUNDATION_EXPORT NSErrorDomain const _Nonnull SDWebImageErrorDomain; + +/// The response instance for invalid download response (NSURLResponse *) +FOUNDATION_EXPORT NSErrorUserInfoKey const _Nonnull SDWebImageErrorDownloadResponseKey; +/// The HTTP status code for invalid download response (NSNumber *) +FOUNDATION_EXPORT NSErrorUserInfoKey const _Nonnull SDWebImageErrorDownloadStatusCodeKey; +/// The HTTP MIME content type for invalid download response (NSString *) +FOUNDATION_EXPORT NSErrorUserInfoKey const _Nonnull SDWebImageErrorDownloadContentTypeKey; + +/// SDWebImage error domain and codes +typedef NS_ERROR_ENUM(SDWebImageErrorDomain, SDWebImageError) { + SDWebImageErrorInvalidURL = 1000, // The URL is invalid, such as nil URL or corrupted URL + SDWebImageErrorBadImageData = 1001, // The image data can not be decoded to image, or the image data is empty + SDWebImageErrorCacheNotModified = 1002, // The remote location specify that the cached image is not modified, such as the HTTP response 304 code. It's useful for `SDWebImageRefreshCached` + SDWebImageErrorBlackListed = 1003, // The URL is blacklisted because of unrecoverable failure marked by downloader (such as 404), you can use `.retryFailed` option to avoid this + SDWebImageErrorInvalidDownloadOperation = 2000, // The image download operation is invalid, such as nil operation or unexpected error occur when operation initialized + SDWebImageErrorInvalidDownloadStatusCode = 2001, // The image download response a invalid status code. You can check the status code in error's userInfo under `SDWebImageErrorDownloadStatusCodeKey` + SDWebImageErrorCancelled = 2002, // The image loading operation is cancelled before finished, during either async disk cache query, or waiting before actual network request. For actual network request error, check `NSURLErrorDomain` error domain and code. + SDWebImageErrorInvalidDownloadResponse = 2003, // When using response modifier, the modified download response is nil and marked as failed. + SDWebImageErrorInvalidDownloadContentType = 2004, // The image download response a invalid content type. You can check the MIME content type in error's userInfo under `SDWebImageErrorDownloadContentTypeKey` +}; diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageIndicator.h b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageIndicator.h new file mode 100644 index 000000000..522dc4740 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageIndicator.h @@ -0,0 +1,119 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +#if SD_UIKIT || SD_MAC + +/** + A protocol to custom the indicator during the image loading. + All of these methods are called from main queue. + */ +@protocol SDWebImageIndicator + +@required +/** + The view associate to the indicator. + + @return The indicator view + */ +@property (nonatomic, strong, readonly, nonnull) UIView *indicatorView; + +/** + Start the animating for indicator. + */ +- (void)startAnimatingIndicator; + +/** + Stop the animating for indicator. + */ +- (void)stopAnimatingIndicator; + +@optional +/** + Update the loading progress (0-1.0) for indicator. Optional + + @param progress The progress, value between 0 and 1.0 + */ +- (void)updateIndicatorProgress:(double)progress; + +@end + +#pragma mark - Activity Indicator + +/** + Activity indicator class. + for UIKit(macOS), it use a `UIActivityIndicatorView`. + for AppKit(macOS), it use a `NSProgressIndicator` with the spinning style. + */ +@interface SDWebImageActivityIndicator : NSObject + +#if SD_UIKIT +@property (nonatomic, strong, readonly, nonnull) UIActivityIndicatorView *indicatorView; +#else +@property (nonatomic, strong, readonly, nonnull) NSProgressIndicator *indicatorView; +#endif + +@end + +/** + Convenience way to use activity indicator. + */ +@interface SDWebImageActivityIndicator (Conveniences) + +#if !SD_VISION +/// These indicator use the fixed color without dark mode support +/// gray-style activity indicator +@property (nonatomic, class, nonnull, readonly) SDWebImageActivityIndicator *grayIndicator; +/// large gray-style activity indicator +@property (nonatomic, class, nonnull, readonly) SDWebImageActivityIndicator *grayLargeIndicator; +/// white-style activity indicator +@property (nonatomic, class, nonnull, readonly) SDWebImageActivityIndicator *whiteIndicator; +/// large white-style activity indicator +@property (nonatomic, class, nonnull, readonly) SDWebImageActivityIndicator *whiteLargeIndicator; +#endif +/// These indicator use the system style, supports dark mode if available (iOS 13+/macOS 10.14+) +/// large activity indicator +@property (nonatomic, class, nonnull, readonly) SDWebImageActivityIndicator *largeIndicator; +/// medium activity indicator +@property (nonatomic, class, nonnull, readonly) SDWebImageActivityIndicator *mediumIndicator; + +@end + +#pragma mark - Progress Indicator + +/** + Progress indicator class. + for UIKit(macOS), it use a `UIProgressView`. + for AppKit(macOS), it use a `NSProgressIndicator` with the bar style. + */ +@interface SDWebImageProgressIndicator : NSObject + +#if SD_UIKIT +@property (nonatomic, strong, readonly, nonnull) UIProgressView *indicatorView; +#else +@property (nonatomic, strong, readonly, nonnull) NSProgressIndicator *indicatorView; +#endif + +@end + +/** + Convenience way to create progress indicator. Remember to specify the indicator width or use layout constraint if need. + */ +@interface SDWebImageProgressIndicator (Conveniences) + +/// default-style progress indicator +@property (nonatomic, class, nonnull, readonly) SDWebImageProgressIndicator *defaultIndicator; +#if SD_UIKIT +/// bar-style progress indicator +@property (nonatomic, class, nonnull, readonly) SDWebImageProgressIndicator *barIndicator API_UNAVAILABLE(tvos); +#endif + +@end + +#endif diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageManager.h b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageManager.h new file mode 100644 index 000000000..fcac52ea2 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageManager.h @@ -0,0 +1,290 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" +#import "SDWebImageOperation.h" +#import "SDImageCacheDefine.h" +#import "SDImageLoader.h" +#import "SDImageTransformer.h" +#import "SDWebImageCacheKeyFilter.h" +#import "SDWebImageCacheSerializer.h" +#import "SDWebImageOptionsProcessor.h" + +typedef void(^SDExternalCompletionBlock)(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL); + +typedef void(^SDInternalCompletionBlock)(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL); + +/** + A combined operation representing the cache and loader operation. You can use it to cancel the load process. + */ +@interface SDWebImageCombinedOperation : NSObject + +/** + Cancel the current operation, including cache and loader process + */ +- (void)cancel; + +/// Whether the operation has been cancelled. +@property (nonatomic, assign, readonly, getter=isCancelled) BOOL cancelled; + +/** + The cache operation from the image cache query + */ +@property (strong, nonatomic, nullable, readonly) id cacheOperation; + +/** + The loader operation from the image loader (such as download operation) + */ +@property (strong, nonatomic, nullable, readonly) id loaderOperation; + +@end + + +@class SDWebImageManager; + +/** + The manager delegate protocol. + */ +@protocol SDWebImageManagerDelegate + +@optional + +/** + * Controls which image should be downloaded when the image is not found in the cache. + * + * @param imageManager The current `SDWebImageManager` + * @param imageURL The url of the image to be downloaded + * + * @return Return NO to prevent the downloading of the image on cache misses. If not implemented, YES is implied. + */ +- (BOOL)imageManager:(nonnull SDWebImageManager *)imageManager shouldDownloadImageForURL:(nonnull NSURL *)imageURL; + +/** + * Controls the complicated logic to mark as failed URLs when download error occur. + * If the delegate implement this method, we will not use the built-in way to mark URL as failed based on error code; + @param imageManager The current `SDWebImageManager` + @param imageURL The url of the image + @param error The download error for the url + @return Whether to block this url or not. Return YES to mark this URL as failed. + */ +- (BOOL)imageManager:(nonnull SDWebImageManager *)imageManager shouldBlockFailedURL:(nonnull NSURL *)imageURL withError:(nonnull NSError *)error; + +@end + +/** + * The SDWebImageManager is the class behind the UIImageView+WebCache category and likes. + * It ties the asynchronous downloader (SDWebImageDownloader) with the image cache store (SDImageCache). + * You can use this class directly to benefit from web image downloading with caching in another context than + * a UIView. + * + * Here is a simple example of how to use SDWebImageManager: + * + * @code + +SDWebImageManager *manager = [SDWebImageManager sharedManager]; +[manager loadImageWithURL:imageURL + options:0 + progress:nil + completed:^(UIImage *image, NSData *data, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) { + if (image) { + // do something with image + } + }]; + + * @endcode + */ +@interface SDWebImageManager : NSObject + +/** + * The delegate for manager. Defaults to nil. + */ +@property (weak, nonatomic, nullable) id delegate; + +/** + * The image cache used by manager to query image cache. + */ +@property (strong, nonatomic, readonly, nonnull) id imageCache; + +/** + * The image loader used by manager to load image. + */ +@property (strong, nonatomic, readonly, nonnull) id imageLoader; + +/** + The image transformer for manager. It's used for image transform after the image load finished and store the transformed image to cache, see `SDImageTransformer`. + Defaults to nil, which means no transform is applied. + @note This will affect all the load requests for this manager if you provide. However, you can pass `SDWebImageContextImageTransformer` in context arg to explicitly use that transformer instead. + */ +@property (strong, nonatomic, nullable) id transformer; + +/** + * The cache filter is used to convert an URL into a cache key each time SDWebImageManager need cache key to use image cache. + * + * The following example sets a filter in the application delegate that will remove any query-string from the + * URL before to use it as a cache key: + * + * @code + SDWebImageManager.sharedManager.cacheKeyFilter =[SDWebImageCacheKeyFilter cacheKeyFilterWithBlock:^NSString * _Nullable(NSURL * _Nonnull url) { + url = [[NSURL alloc] initWithScheme:url.scheme host:url.host path:url.path]; + return [url absoluteString]; + }]; + * @endcode + */ +@property (nonatomic, strong, nullable) id cacheKeyFilter; + +/** + * The cache serializer is used to convert the decoded image, the source downloaded data, to the actual data used for storing to the disk cache. If you return nil, means to generate the data from the image instance, see `SDImageCache`. + * For example, if you are using WebP images and facing the slow decoding time issue when later retrieving from disk cache again. You can try to encode the decoded image to JPEG/PNG format to disk cache instead of source downloaded data. + * @note The `image` arg is nonnull, but when you also provide an image transformer and the image is transformed, the `data` arg may be nil, take attention to this case. + * @note This method is called from a global queue in order to not to block the main thread. + * @code + SDWebImageManager.sharedManager.cacheSerializer = [SDWebImageCacheSerializer cacheSerializerWithBlock:^NSData * _Nullable(UIImage * _Nonnull image, NSData * _Nullable data, NSURL * _Nullable imageURL) { + SDImageFormat format = [NSData sd_imageFormatForImageData:data]; + switch (format) { + case SDImageFormatWebP: + return image.images ? data : nil; + default: + return data; + } +}]; + * @endcode + * The default value is nil. Means we just store the source downloaded data to disk cache. + */ +@property (nonatomic, strong, nullable) id cacheSerializer; + +/** + The options processor is used, to have a global control for all the image request options and context option for current manager. + @note If you use `transformer`, `cacheKeyFilter` or `cacheSerializer` property of manager, the input context option already apply those properties before passed. This options processor is a better replacement for those property in common usage. + For example, you can control the global options, based on the URL or original context option like the below code. + + @code + SDWebImageManager.sharedManager.optionsProcessor = [SDWebImageOptionsProcessor optionsProcessorWithBlock:^SDWebImageOptionsResult * _Nullable(NSURL * _Nullable url, SDWebImageOptions options, SDWebImageContext * _Nullable context) { + // Only do animation on `SDAnimatedImageView` + if (!context[SDWebImageContextAnimatedImageClass]) { + options |= SDWebImageDecodeFirstFrameOnly; + } + // Do not force decode for png url + if ([url.lastPathComponent isEqualToString:@"png"]) { + options |= SDWebImageAvoidDecodeImage; + } + // Always use screen scale factor + SDWebImageMutableContext *mutableContext = [NSDictionary dictionaryWithDictionary:context]; + mutableContext[SDWebImageContextImageScaleFactor] = @(UIScreen.mainScreen.scale); + context = [mutableContext copy]; + + return [[SDWebImageOptionsResult alloc] initWithOptions:options context:context]; + }]; + @endcode + */ +@property (nonatomic, strong, nullable) id optionsProcessor; + +/** + * Check one or more operations running + */ +@property (nonatomic, assign, readonly, getter=isRunning) BOOL running; + +/** + The default image cache when the manager which is created with no arguments. Such as shared manager or init. + Defaults to nil. Means using `SDImageCache.sharedImageCache` + */ +@property (nonatomic, class, nullable) id defaultImageCache; + +/** + The default image loader for manager which is created with no arguments. Such as shared manager or init. + Defaults to nil. Means using `SDWebImageDownloader.sharedDownloader` + */ +@property (nonatomic, class, nullable) id defaultImageLoader; + +/** + * Returns global shared manager instance. + */ +@property (nonatomic, class, readonly, nonnull) SDWebImageManager *sharedManager; + +/** + * Allows to specify instance of cache and image loader used with image manager. + * @return new instance of `SDWebImageManager` with specified cache and loader. + */ +- (nonnull instancetype)initWithCache:(nonnull id)cache loader:(nonnull id)loader NS_DESIGNATED_INITIALIZER; + +/** + * Downloads the image at the given URL if not present in cache or return the cached version otherwise. + * + * @param url The URL to the image + * @param options A mask to specify options to use for this request + * @param progressBlock A block called while image is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called when operation has been completed. + * + * This parameter is required. + * + * This block has no return value and takes the requested UIImage as first parameter and the NSData representation as second parameter. + * In case of error the image parameter is nil and the third parameter may contain an NSError. + * + * The forth parameter is an `SDImageCacheType` enum indicating if the image was retrieved from the local cache + * or from the memory cache or from the network. + * + * The fifth parameter is set to NO when the SDWebImageProgressiveLoad option is used and the image is + * downloading. This block is thus called repeatedly with a partial image. When image is fully downloaded, the + * block is called a last time with the full image and the last parameter set to YES. + * + * The last parameter is the original image URL + * + * @return Returns an instance of SDWebImageCombinedOperation, which you can cancel the loading process. + */ +- (nullable SDWebImageCombinedOperation *)loadImageWithURL:(nullable NSURL *)url + options:(SDWebImageOptions)options + progress:(nullable SDImageLoaderProgressBlock)progressBlock + completed:(nonnull SDInternalCompletionBlock)completedBlock; + +/** + * Downloads the image at the given URL if not present in cache or return the cached version otherwise. + * + * @param url The URL to the image + * @param options A mask to specify options to use for this request + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + * @param progressBlock A block called while image is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called when operation has been completed. + * + * @return Returns an instance of SDWebImageCombinedOperation, which you can cancel the loading process. + */ +- (nullable SDWebImageCombinedOperation *)loadImageWithURL:(nullable NSURL *)url + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context + progress:(nullable SDImageLoaderProgressBlock)progressBlock + completed:(nonnull SDInternalCompletionBlock)completedBlock; + +/** + * Cancel all current operations + */ +- (void)cancelAll; + +/** + * Remove the specify URL from failed black list. + * @param url The failed URL. + */ +- (void)removeFailedURL:(nonnull NSURL *)url; + +/** + * Remove all the URL from failed black list. + */ +- (void)removeAllFailedURLs; + +/** + * Return the cache key for a given URL, does not considerate transformer or thumbnail. + * @note This method does not have context option, only use the url and manager level cacheKeyFilter to generate the cache key. + */ +- (nullable NSString *)cacheKeyForURL:(nullable NSURL *)url; + +/** + * Return the cache key for a given URL and context option. + * @note The context option like `.thumbnailPixelSize` and `.imageTransformer` will effect the generated cache key, using this if you have those context associated. +*/ +- (nullable NSString *)cacheKeyForURL:(nullable NSURL *)url context:(nullable SDWebImageContext *)context; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageOperation.h b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageOperation.h new file mode 100644 index 000000000..bc4224f4b --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageOperation.h @@ -0,0 +1,27 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import + +/// A protocol represents cancelable operation. +@protocol SDWebImageOperation + +/// Cancel the operation +- (void)cancel; + +@optional + +/// Whether the operation has been cancelled. +@property (nonatomic, assign, readonly, getter=isCancelled) BOOL cancelled; + +@end + +/// NSOperation conform to `SDWebImageOperation`. +@interface NSOperation (SDWebImageOperation) + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageOptionsProcessor.h b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageOptionsProcessor.h new file mode 100644 index 000000000..361dfed87 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageOptionsProcessor.h @@ -0,0 +1,78 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageCompat.h" +#import "SDWebImageDefine.h" + +@class SDWebImageOptionsResult; + +typedef SDWebImageOptionsResult * _Nullable(^SDWebImageOptionsProcessorBlock)(NSURL * _Nullable url, SDWebImageOptions options, SDWebImageContext * _Nullable context); + +/** + The options result contains both options and context. + */ +@interface SDWebImageOptionsResult : NSObject + +/** + WebCache options. + */ +@property (nonatomic, assign, readonly) SDWebImageOptions options; + +/** + Context options. + */ +@property (nonatomic, copy, readonly, nullable) SDWebImageContext *context; + +/** + Create a new options result. + + @param options options + @param context context + @return The options result contains both options and context. + */ +- (nonnull instancetype)initWithOptions:(SDWebImageOptions)options context:(nullable SDWebImageContext *)context; + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; + +@end + +/** + This is the protocol for options processor. + Options processor can be used, to control the final result for individual image request's `SDWebImageOptions` and `SDWebImageContext` + Implements the protocol to have a global control for each indivadual image request's option. + */ +@protocol SDWebImageOptionsProcessor + +/** + Return the processed options result for specify image URL, with its options and context + + @param url The URL to the image + @param options A mask to specify options to use for this request + @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + @return The processed result, contains both options and context + */ +- (nullable SDWebImageOptionsResult *)processedResultForURL:(nullable NSURL *)url + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context; + +@end + +/** + A options processor class with block. + */ +@interface SDWebImageOptionsProcessor : NSObject + +- (nonnull instancetype)initWithBlock:(nonnull SDWebImageOptionsProcessorBlock)block; ++ (nonnull instancetype)optionsProcessorWithBlock:(nonnull SDWebImageOptionsProcessorBlock)block; + +- (nonnull instancetype)init NS_UNAVAILABLE; ++ (nonnull instancetype)new NS_UNAVAILABLE; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDWebImagePrefetcher.h b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImagePrefetcher.h new file mode 100644 index 000000000..2256cc0c6 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImagePrefetcher.h @@ -0,0 +1,168 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageManager.h" + +@class SDWebImagePrefetcher; + +/** + A token represents a list of URLs, can be used to cancel the download. + */ +@interface SDWebImagePrefetchToken : NSObject + +/** + * Cancel the current prefetching. + */ +- (void)cancel; + +/** + list of URLs of current prefetching. + */ +@property (nonatomic, copy, readonly, nullable) NSArray *urls; + +@end + +/** + The prefetcher delegate protocol + */ +@protocol SDWebImagePrefetcherDelegate + +@optional + +/** + * Called when an image was prefetched. Which means it's called when one URL from any of prefetching finished. + * + * @param imagePrefetcher The current image prefetcher + * @param imageURL The image url that was prefetched + * @param finishedCount The total number of images that were prefetched (successful or not) + * @param totalCount The total number of images that were to be prefetched + */ +- (void)imagePrefetcher:(nonnull SDWebImagePrefetcher *)imagePrefetcher didPrefetchURL:(nullable NSURL *)imageURL finishedCount:(NSUInteger)finishedCount totalCount:(NSUInteger)totalCount; + +/** + * Called when all images are prefetched. Which means it's called when all URLs from all of prefetching finished. + * @param imagePrefetcher The current image prefetcher + * @param totalCount The total number of images that were prefetched (whether successful or not) + * @param skippedCount The total number of images that were skipped + */ +- (void)imagePrefetcher:(nonnull SDWebImagePrefetcher *)imagePrefetcher didFinishWithTotalCount:(NSUInteger)totalCount skippedCount:(NSUInteger)skippedCount; + +@end + +typedef void(^SDWebImagePrefetcherProgressBlock)(NSUInteger noOfFinishedUrls, NSUInteger noOfTotalUrls); +typedef void(^SDWebImagePrefetcherCompletionBlock)(NSUInteger noOfFinishedUrls, NSUInteger noOfSkippedUrls); + +/** + * Prefetch some URLs in the cache for future use. Images are downloaded in low priority. + */ +@interface SDWebImagePrefetcher : NSObject + +/** + * The web image manager used by prefetcher to prefetch images. + * @note You can specify a standalone manager and downloader with custom configuration suitable for image prefetching. Such as `currentDownloadCount` or `downloadTimeout`. + */ +@property (strong, nonatomic, readonly, nonnull) SDWebImageManager *manager; + +/** + * Maximum number of URLs to prefetch at the same time. Defaults to 3. + */ +@property (nonatomic, assign) NSUInteger maxConcurrentPrefetchCount; + +/** + * The options for prefetcher. Defaults to SDWebImageLowPriority. + * @deprecated Prefetcher is designed to be used shared and should not effect others. So in 5.15.0 we added API `prefetchURLs:options:context:`. If you want global control, try to use `SDWebImageOptionsProcessor` in manager level. + */ +@property (nonatomic, assign) SDWebImageOptions options API_DEPRECATED("Use individual prefetch options param instead", macos(10.10, API_TO_BE_DEPRECATED), ios(8.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED)); + +/** + * The context for prefetcher. Defaults to nil. + * @deprecated Prefetcher is designed to be used shared and should not effect others. So in 5.15.0 we added API `prefetchURLs:options:context:`. If you want global control, try to use `SDWebImageOptionsProcessor` in `SDWebImageManager.optionsProcessor`. + */ +@property (nonatomic, copy, nullable) SDWebImageContext *context API_DEPRECATED("Use individual prefetch context param instead", macos(10.10, API_TO_BE_DEPRECATED), ios(8.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED)); + +/** + * Queue options for prefetcher when call the progressBlock, completionBlock and delegate methods. Defaults to Main Queue. + * @deprecated 5.15.0 introduce SDCallbackQueue, use that is preferred and has higher priority. The set/get to this property will translate to that instead. + * @note The call is asynchronously to avoid blocking target queue. (see SDCallbackPolicyDispatch) + * @note The delegate queue should be set before any prefetching start and may not be changed during prefetching to avoid thread-safe problem. + */ +@property (strong, nonatomic, nonnull) dispatch_queue_t delegateQueue API_DEPRECATED("Use SDWebImageContextCallbackQueue context param instead, see SDCallbackQueue", macos(10.10, 10.10), ios(8.0, 8.0), tvos(9.0, 9.0), watchos(2.0, 2.0)); + +/** + * The delegate for the prefetcher. Defaults to nil. + */ +@property (weak, nonatomic, nullable) id delegate; + +/** + * Returns the global shared image prefetcher instance. It use a standalone manager which is different from shared manager. + */ +@property (nonatomic, class, readonly, nonnull) SDWebImagePrefetcher *sharedImagePrefetcher; + +/** + * Allows you to instantiate a prefetcher with any arbitrary image manager. + */ +- (nonnull instancetype)initWithImageManager:(nonnull SDWebImageManager *)manager NS_DESIGNATED_INITIALIZER; + +/** + * Assign list of URLs to let SDWebImagePrefetcher to queue the prefetching. It based on the image manager so the image may from the cache and network according to the `options` property. + * Prefetching is separate to each other, which means the progressBlock and completionBlock you provide is bind to the prefetching for the list of urls. + * Attention that call this will not cancel previous fetched urls. You should keep the token return by this to cancel or cancel all the prefetch. + * + * @param urls list of URLs to prefetch + * @return the token to cancel the current prefetching. + */ +- (nullable SDWebImagePrefetchToken *)prefetchURLs:(nullable NSArray *)urls; + +/** + * Assign list of URLs to let SDWebImagePrefetcher to queue the prefetching. It based on the image manager so the image may from the cache and network according to the `options` property. + * Prefetching is separate to each other, which means the progressBlock and completionBlock you provide is bind to the prefetching for the list of urls. + * Attention that call this will not cancel previous fetched urls. You should keep the token return by this to cancel or cancel all the prefetch. + * + * @param urls list of URLs to prefetch + * @param progressBlock block to be called when progress updates; + * first parameter is the number of completed (successful or not) requests, + * second parameter is the total number of images originally requested to be prefetched + * @param completionBlock block to be called when the current prefetching is completed + * first param is the number of completed (successful or not) requests, + * second parameter is the number of skipped requests + * @return the token to cancel the current prefetching. + */ +- (nullable SDWebImagePrefetchToken *)prefetchURLs:(nullable NSArray *)urls + progress:(nullable SDWebImagePrefetcherProgressBlock)progressBlock + completed:(nullable SDWebImagePrefetcherCompletionBlock)completionBlock; + +/** + * Assign list of URLs to let SDWebImagePrefetcher to queue the prefetching. It based on the image manager so the image may from the cache and network according to the `options` property. + * Prefetching is separate to each other, which means the progressBlock and completionBlock you provide is bind to the prefetching for the list of urls. + * Attention that call this will not cancel previous fetched urls. You should keep the token return by this to cancel or cancel all the prefetch. + * + * @param urls list of URLs to prefetch + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + * @param progressBlock block to be called when progress updates; + * first parameter is the number of completed (successful or not) requests, + * second parameter is the total number of images originally requested to be prefetched + * @param completionBlock block to be called when the current prefetching is completed + * first param is the number of completed (successful or not) requests, + * second parameter is the number of skipped requests + * @return the token to cancel the current prefetching. + */ +- (nullable SDWebImagePrefetchToken *)prefetchURLs:(nullable NSArray *)urls + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context + progress:(nullable SDWebImagePrefetcherProgressBlock)progressBlock + completed:(nullable SDWebImagePrefetcherCompletionBlock)completionBlock; + +/** + * Remove and cancel all the prefeching for the prefetcher. + */ +- (void)cancelPrefetching; + + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageTransition.h b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageTransition.h new file mode 100644 index 000000000..889372e49 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/SDWebImageTransition.h @@ -0,0 +1,131 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +#if SD_UIKIT || SD_MAC +#import "SDImageCache.h" + +#if SD_UIKIT +typedef UIViewAnimationOptions SDWebImageAnimationOptions; +#else +typedef NS_OPTIONS(NSUInteger, SDWebImageAnimationOptions) { + SDWebImageAnimationOptionAllowsImplicitAnimation = 1 << 0, // specify `allowsImplicitAnimation` for the `NSAnimationContext` + + SDWebImageAnimationOptionCurveEaseInOut = 0 << 16, // default + SDWebImageAnimationOptionCurveEaseIn = 1 << 16, + SDWebImageAnimationOptionCurveEaseOut = 2 << 16, + SDWebImageAnimationOptionCurveLinear = 3 << 16, + + SDWebImageAnimationOptionTransitionNone = 0 << 20, // default + SDWebImageAnimationOptionTransitionFlipFromLeft = 1 << 20, + SDWebImageAnimationOptionTransitionFlipFromRight = 2 << 20, + SDWebImageAnimationOptionTransitionCurlUp = 3 << 20, + SDWebImageAnimationOptionTransitionCurlDown = 4 << 20, + SDWebImageAnimationOptionTransitionCrossDissolve = 5 << 20, + SDWebImageAnimationOptionTransitionFlipFromTop = 6 << 20, + SDWebImageAnimationOptionTransitionFlipFromBottom = 7 << 20, +}; +#endif + +typedef void (^SDWebImageTransitionPreparesBlock)(__kindof UIView * _Nonnull view, UIImage * _Nullable image, NSData * _Nullable imageData, SDImageCacheType cacheType, NSURL * _Nullable imageURL); +typedef void (^SDWebImageTransitionAnimationsBlock)(__kindof UIView * _Nonnull view, UIImage * _Nullable image); +typedef void (^SDWebImageTransitionCompletionBlock)(BOOL finished); + +/** + This class is used to provide a transition animation after the view category load image finished. Use this on `sd_imageTransition` in UIView+WebCache.h + for UIKit(iOS & tvOS), we use `+[UIView transitionWithView:duration:options:animations:completion]` for transition animation. + for AppKit(macOS), we use `+[NSAnimationContext runAnimationGroup:completionHandler:]` for transition animation. You can call `+[NSAnimationContext currentContext]` to grab the context during animations block. + @note These transition are provided for basic usage. If you need complicated animation, consider to directly use Core Animation or use `SDWebImageAvoidAutoSetImage` and implement your own after image load finished. + */ +@interface SDWebImageTransition : NSObject + +/** + By default, we set the image to the view at the beginning of the animations. You can disable this and provide custom set image process + */ +@property (nonatomic, assign) BOOL avoidAutoSetImage; +/** + The duration of the transition animation, measured in seconds. Defaults to 0.5. + */ +@property (nonatomic, assign) NSTimeInterval duration; +/** + The timing function used for all animations within this transition animation (macOS). + */ +@property (nonatomic, strong, nullable) CAMediaTimingFunction *timingFunction API_UNAVAILABLE(ios, tvos, watchos) API_DEPRECATED("Use SDWebImageAnimationOptions instead, or grab NSAnimationContext.currentContext and modify the timingFunction", macos(10.10, 10.10)); +/** + A mask of options indicating how you want to perform the animations. + */ +@property (nonatomic, assign) SDWebImageAnimationOptions animationOptions; +/** + A block object to be executed before the animation sequence starts. + */ +@property (nonatomic, copy, nullable) SDWebImageTransitionPreparesBlock prepares; +/** + A block object that contains the changes you want to make to the specified view. + */ +@property (nonatomic, copy, nullable) SDWebImageTransitionAnimationsBlock animations; +/** + A block object to be executed when the animation sequence ends. + */ +@property (nonatomic, copy, nullable) SDWebImageTransitionCompletionBlock completion; + +@end + +/** + Convenience way to create transition. Remember to specify the duration if needed. + for UIKit, these transition just use the correspond `animationOptions`. By default we enable `UIViewAnimationOptionAllowUserInteraction` to allow user interaction during transition. + for AppKit, these transition use Core Animation in `animations`. So your view must be layer-backed. Set `wantsLayer = YES` before you apply it. + */ +@interface SDWebImageTransition (Conveniences) + +/// Fade-in transition. +@property (nonatomic, class, nonnull, readonly) SDWebImageTransition *fadeTransition; +/// Flip from left transition. +@property (nonatomic, class, nonnull, readonly) SDWebImageTransition *flipFromLeftTransition; +/// Flip from right transition. +@property (nonatomic, class, nonnull, readonly) SDWebImageTransition *flipFromRightTransition; +/// Flip from top transition. +@property (nonatomic, class, nonnull, readonly) SDWebImageTransition *flipFromTopTransition; +/// Flip from bottom transition. +@property (nonatomic, class, nonnull, readonly) SDWebImageTransition *flipFromBottomTransition; +/// Curl up transition. +@property (nonatomic, class, nonnull, readonly) SDWebImageTransition *curlUpTransition; +/// Curl down transition. +@property (nonatomic, class, nonnull, readonly) SDWebImageTransition *curlDownTransition; + +/// Fade-in transition with duration. +/// @param duration transition duration, use ease-in-out ++ (nonnull instancetype)fadeTransitionWithDuration:(NSTimeInterval)duration NS_SWIFT_NAME(fade(duration:)); + +/// Flip from left transition with duration. +/// @param duration transition duration, use ease-in-out ++ (nonnull instancetype)flipFromLeftTransitionWithDuration:(NSTimeInterval)duration NS_SWIFT_NAME(flipFromLeft(duration:)); + +/// Flip from right transition with duration. +/// @param duration transition duration, use ease-in-out ++ (nonnull instancetype)flipFromRightTransitionWithDuration:(NSTimeInterval)duration NS_SWIFT_NAME(flipFromRight(duration:)); + +/// Flip from top transition with duration. +/// @param duration transition duration, use ease-in-out ++ (nonnull instancetype)flipFromTopTransitionWithDuration:(NSTimeInterval)duration NS_SWIFT_NAME(flipFromTop(duration:)); + +/// Flip from bottom transition with duration. +/// @param duration transition duration, use ease-in-out ++ (nonnull instancetype)flipFromBottomTransitionWithDuration:(NSTimeInterval)duration NS_SWIFT_NAME(flipFromBottom(duration:)); + +/// Curl up transition with duration. +/// @param duration transition duration, use ease-in-out ++ (nonnull instancetype)curlUpTransitionWithDuration:(NSTimeInterval)duration NS_SWIFT_NAME(curlUp(duration:)); + +/// Curl down transition with duration. +/// @param duration transition duration, use ease-in-out ++ (nonnull instancetype)curlDownTransitionWithDuration:(NSTimeInterval)duration NS_SWIFT_NAME(curlDown(duration:)); + +@end + +#endif diff --git a/Vendors/simulator/SDWebImage.framework/Headers/UIButton+WebCache.h b/Vendors/simulator/SDWebImage.framework/Headers/UIButton+WebCache.h new file mode 100644 index 000000000..8a898c734 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/UIButton+WebCache.h @@ -0,0 +1,402 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +#if SD_UIKIT + +#import "SDWebImageManager.h" + +/** + * Integrates SDWebImage async downloading and caching of remote images with UIButton. + */ +@interface UIButton (WebCache) + +#pragma mark - Image + +/** + * Get the current image URL. + * This simply translate to `[self sd_imageURLForState:self.state]` from v5.18.0 + */ +@property (nonatomic, strong, readonly, nullable) NSURL *sd_currentImageURL; + +/** + * Get the image URL for a control state. + * + * @param state Which state you want to know the URL for. The values are described in UIControlState. + */ +- (nullable NSURL *)sd_imageURLForState:(UIControlState)state; + +/** + * Get the image operation key for a control state. + * + * @param state Which state you want to know the URL for. The values are described in UIControlState. + */ +- (nonnull NSString *)sd_imageOperationKeyForState:(UIControlState)state; + +/** + * Set the button `image` with an `url`. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param state The state that uses the specified title. The values are described in UIControlState. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + forState:(UIControlState)state NS_REFINED_FOR_SWIFT; + +/** + * Set the button `image` with an `url` and a placeholder. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param state The state that uses the specified title. The values are described in UIControlState. + * @param placeholder The image to be set initially, until the image request finishes. + * @see sd_setImageWithURL:placeholderImage:options: + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + forState:(UIControlState)state + placeholderImage:(nullable UIImage *)placeholder NS_REFINED_FOR_SWIFT; + +/** + * Set the button `image` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param state The state that uses the specified title. The values are described in UIControlState. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + forState:(UIControlState)state + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options NS_REFINED_FOR_SWIFT; + +/** + * Set the button `image` with an `url`, placeholder, custom options and context. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param state The state that uses the specified title. The values are described in UIControlState. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + forState:(UIControlState)state + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context; + +/** + * Set the button `image` with an `url`. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param state The state that uses the specified title. The values are described in UIControlState. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + forState:(UIControlState)state + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the button `image` with an `url`, placeholder. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param state The state that uses the specified title. The values are described in UIControlState. + * @param placeholder The image to be set initially, until the image request finishes. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + forState:(UIControlState)state + placeholderImage:(nullable UIImage *)placeholder + completed:(nullable SDExternalCompletionBlock)completedBlock NS_REFINED_FOR_SWIFT; + +/** + * Set the button `image` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param state The state that uses the specified title. The values are described in UIControlState. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + forState:(UIControlState)state + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the button `image` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param state The state that uses the specified title. The values are described in UIControlState. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param progressBlock A block called while image is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + forState:(UIControlState)state + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + progress:(nullable SDImageLoaderProgressBlock)progressBlock + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the button `image` with an `url`, placeholder, custom options and context. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param state The state that uses the specified title. The values are described in UIControlState. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + * @param progressBlock A block called while image is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + forState:(UIControlState)state + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context + progress:(nullable SDImageLoaderProgressBlock)progressBlock + completed:(nullable SDExternalCompletionBlock)completedBlock; + +#pragma mark - Background Image + +/** + * Get the current background image URL. + */ +@property (nonatomic, strong, readonly, nullable) NSURL *sd_currentBackgroundImageURL; + +/** + * Get the background image operation key for a control state. + * + * @param state Which state you want to know the URL for. The values are described in UIControlState. + */ +- (nonnull NSString *)sd_backgroundImageOperationKeyForState:(UIControlState)state; + +/** + * Get the background image URL for a control state. + * + * @param state Which state you want to know the URL for. The values are described in UIControlState. + */ +- (nullable NSURL *)sd_backgroundImageURLForState:(UIControlState)state; + +/** + * Set the button `backgroundImage` with an `url`. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param state The state that uses the specified title. The values are described in UIControlState. + */ +- (void)sd_setBackgroundImageWithURL:(nullable NSURL *)url + forState:(UIControlState)state NS_REFINED_FOR_SWIFT; + +/** + * Set the button `backgroundImage` with an `url` and a placeholder. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param state The state that uses the specified title. The values are described in UIControlState. + * @param placeholder The image to be set initially, until the image request finishes. + * @see sd_setImageWithURL:placeholderImage:options: + */ +- (void)sd_setBackgroundImageWithURL:(nullable NSURL *)url + forState:(UIControlState)state + placeholderImage:(nullable UIImage *)placeholder NS_REFINED_FOR_SWIFT; + +/** + * Set the button `backgroundImage` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param state The state that uses the specified title. The values are described in UIControlState. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + */ +- (void)sd_setBackgroundImageWithURL:(nullable NSURL *)url + forState:(UIControlState)state + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options NS_REFINED_FOR_SWIFT; + +/** + * Set the button `backgroundImage` with an `url`, placeholder, custom options and context. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param state The state that uses the specified title. The values are described in UIControlState. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + */ +- (void)sd_setBackgroundImageWithURL:(nullable NSURL *)url + forState:(UIControlState)state + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context; + +/** + * Set the button `backgroundImage` with an `url`. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param state The state that uses the specified title. The values are described in UIControlState. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setBackgroundImageWithURL:(nullable NSURL *)url + forState:(UIControlState)state + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the button `backgroundImage` with an `url`, placeholder. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param state The state that uses the specified title. The values are described in UIControlState. + * @param placeholder The image to be set initially, until the image request finishes. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setBackgroundImageWithURL:(nullable NSURL *)url + forState:(UIControlState)state + placeholderImage:(nullable UIImage *)placeholder + completed:(nullable SDExternalCompletionBlock)completedBlock NS_REFINED_FOR_SWIFT; + +/** + * Set the button `backgroundImage` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setBackgroundImageWithURL:(nullable NSURL *)url + forState:(UIControlState)state + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the button `backgroundImage` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param progressBlock A block called while image is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setBackgroundImageWithURL:(nullable NSURL *)url + forState:(UIControlState)state + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + progress:(nullable SDImageLoaderProgressBlock)progressBlock + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the button `backgroundImage` with an `url`, placeholder, custom options and context. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + * @param progressBlock A block called while image is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setBackgroundImageWithURL:(nullable NSURL *)url + forState:(UIControlState)state + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context + progress:(nullable SDImageLoaderProgressBlock)progressBlock + completed:(nullable SDExternalCompletionBlock)completedBlock; + +#pragma mark - Cancel + +/** + * Cancel the current image download + */ +- (void)sd_cancelImageLoadForState:(UIControlState)state; + +/** + * Cancel the current backgroundImage download + */ +- (void)sd_cancelBackgroundImageLoadForState:(UIControlState)state; + +@end + +#endif diff --git a/Vendors/simulator/SDWebImage.framework/Headers/UIImage+ExtendedCacheData.h b/Vendors/simulator/SDWebImage.framework/Headers/UIImage+ExtendedCacheData.h new file mode 100644 index 000000000..482c8c40a --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/UIImage+ExtendedCacheData.h @@ -0,0 +1,24 @@ +/* +* This file is part of the SDWebImage package. +* (c) Olivier Poitrey +* (c) Fabrice Aneche +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + +#import +#import "SDWebImageCompat.h" + +@interface UIImage (ExtendedCacheData) + +/** + Read and Write the extended object and bind it to the image. Which can hold some extra metadata like Image's scale factor, URL rich link, date, etc. + The extended object should conforms to NSCoding, which we use `NSKeyedArchiver` and `NSKeyedUnarchiver` to archive it to data, and write to disk cache. + @note The disk cache preserve both of the data and extended data with the same cache key. For manual query, use the `SDDiskCache` protocol method `extendedDataForKey:` instead. + @note You can specify arbitrary object conforms to NSCoding (NSObject protocol here is used to support object using `NS_ROOT_CLASS`, which is not NSObject subclass). If you load image from disk cache, you should check the extended object class to avoid corrupted data. + @warning This object don't need to implements NSSecureCoding (but it's recommended), because we allows arbitrary class. + */ +@property (nonatomic, strong, nullable) id sd_extendedObject; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/UIImage+ForceDecode.h b/Vendors/simulator/SDWebImage.framework/Headers/UIImage+ForceDecode.h new file mode 100644 index 000000000..658659ad0 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/UIImage+ForceDecode.h @@ -0,0 +1,52 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +/** + UIImage category about force decode feature (avoid Image/IO's lazy decoding during rendering behavior). + */ +@interface UIImage (ForceDecode) + +/** + A bool value indicating whether the image has already been decoded. This can help to avoid extra force decode. + Force decode is used for 2 cases: + -- 1. for ImageIO created image (via `CGImageCreateWithImageSource` SPI), it's lazy and we trigger the decode before rendering + -- 2. for non-ImageIO created image (via `CGImageCreate` API), we can ensure it's alignment is suitable to render on screen without copy by CoreAnimation + @note For coder plugin developer, always use the SDImageCoderHelper's `colorSpaceGetDeviceRGB`/`preferredPixelFormat` to create CGImage. + @note For more information why force decode, see: https://github.com/path/FastImageCache#byte-alignment + @note From v5.17.0, the default value is always NO. Use `SDImageForceDecodePolicy` to control complicated policy. + */ +@property (nonatomic, assign) BOOL sd_isDecoded; + +/** + Decode the provided image. This is useful if you want to force decode the image before rendering to improve performance. + + @param image The image to be decoded + @return The decoded image + */ ++ (nullable UIImage *)sd_decodedImageWithImage:(nullable UIImage *)image; + +/** + Decode and scale down the provided image + + @param image The image to be decoded + @return The decoded and scaled down image + */ ++ (nullable UIImage *)sd_decodedAndScaledDownImageWithImage:(nullable UIImage *)image; + +/** + Decode and scale down the provided image with limit bytes + + @param image The image to be decoded + @param bytes The limit bytes size. Provide 0 to use the build-in limit. + @return The decoded and scaled down image + */ ++ (nullable UIImage *)sd_decodedAndScaledDownImageWithImage:(nullable UIImage *)image limitBytes:(NSUInteger)bytes; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/UIImage+GIF.h b/Vendors/simulator/SDWebImage.framework/Headers/UIImage+GIF.h new file mode 100644 index 000000000..5da8e197c --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/UIImage+GIF.h @@ -0,0 +1,26 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * (c) Laurin Brandner + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +/** + This category is just use as a convenience method. For more detail control, use methods in `UIImage+MultiFormat.h` or directly use `SDImageCoder`. + */ +@interface UIImage (GIF) + +/** + Creates an animated UIImage from an NSData. + This will create animated image if the data is Animated GIF. And will create a static image is the data is Static GIF. + + @param data The GIF data + @return The created image + */ ++ (nullable UIImage *)sd_imageWithGIFData:(nullable NSData *)data; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/UIImage+MemoryCacheCost.h b/Vendors/simulator/SDWebImage.framework/Headers/UIImage+MemoryCacheCost.h new file mode 100644 index 000000000..0ff2f2fdb --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/UIImage+MemoryCacheCost.h @@ -0,0 +1,27 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +/** + UIImage category for memory cache cost. + */ +@interface UIImage (MemoryCacheCost) + +/** + The memory cache cost for specify image used by image cache. The cost function is the bytes size held in memory. + If you set some associated object to `UIImage`, you can set the custom value to indicate the memory cost. + + For `UIImage`, this method return the single frame bytes size when `image.images` is nil for static image. Return full frame bytes size when `image.images` is not nil for animated image. + For `NSImage`, this method return the single frame bytes size because `NSImage` does not store all frames in memory. + @note Note that because of the limitations of category this property can get out of sync if you create another instance with CGImage or other methods. + @note For custom animated class conforms to `SDAnimatedImage`, you can override this getter method in your subclass to return a more proper value instead, which representing the current frame's total bytes. + */ +@property (assign, nonatomic) NSUInteger sd_memoryCost; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/UIImage+Metadata.h b/Vendors/simulator/SDWebImage.framework/Headers/UIImage+Metadata.h new file mode 100644 index 000000000..c79a94bcb --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/UIImage+Metadata.h @@ -0,0 +1,98 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" +#import "NSData+ImageContentType.h" +#import "SDImageCoder.h" + +/** + UIImage category for image metadata, including animation, loop count, format, incremental, etc. + */ +@interface UIImage (Metadata) + +/** + * UIKit: + * For static image format, this value is always 0. + * For animated image format, 0 means infinite looping. + * Note that because of the limitations of categories this property can get out of sync if you create another instance with CGImage or other methods. + * AppKit: + * NSImage currently only support animated via `NSBitmapImageRep`(GIF) or `SDAnimatedImageRep`(APNG/GIF/WebP) unlike UIImage. + * The getter of this property will get the loop count from animated imageRep + * The setter of this property will set the loop count from animated imageRep + * SDAnimatedImage: + * Returns `animatedImageLoopCount` + */ +@property (nonatomic, assign) NSUInteger sd_imageLoopCount; + +/** + * UIKit: + * Returns the `images`'s count by unapply the patch for the different frame durations. Which matches the real visible frame count when displaying on UIImageView. + * See more in `SDImageCoderHelper.animatedImageWithFrames`. + * Returns 1 for static image. + * AppKit: + * Returns the underlaying `NSBitmapImageRep` or `SDAnimatedImageRep` frame count. + * Returns 1 for static image. + * SDAnimatedImage: + * Returns `animatedImageFrameCount` for animated image, 1 for static image. + */ +@property (nonatomic, assign, readonly) NSUInteger sd_imageFrameCount; + +/** + * UIKit: + * Check the `images` array property. + * AppKit: + * NSImage currently only support animated via GIF imageRep unlike UIImage. It will check the imageRep's frame count > 1. + * SDAnimatedImage: + * Check `animatedImageFrameCount` > 1 + */ +@property (nonatomic, assign, readonly) BOOL sd_isAnimated; + +/** + * UIKit: + * Check the `isSymbolImage` property. Also check the system PDF(iOS 11+) && SVG(iOS 13+) support. + * AppKit: + * NSImage supports PDF && SVG && EPS imageRep, check the imageRep class. + * SDAnimatedImage: + * Returns `NO` + */ +@property (nonatomic, assign, readonly) BOOL sd_isVector; + +/** + * The image format represent the original compressed image data format. + * If you don't manually specify a format, this information is retrieve from CGImage using `CGImageGetUTType`, which may return nil for non-CG based image. At this time it will return `SDImageFormatUndefined` as default value. + * @note Note that because of the limitations of categories this property can get out of sync if you create another instance with CGImage or other methods. + * @note For `SDAnimatedImage`, returns `animatedImageFormat` when animated, or fallback when static. + */ +@property (nonatomic, assign) SDImageFormat sd_imageFormat; + +/** + A bool value indicating whether the image is during incremental decoding and may not contains full pixels. + */ +@property (nonatomic, assign) BOOL sd_isIncremental; + +/** + A bool value indicating that the image is transformed from original image, so the image data may not always match original download one. + */ +@property (nonatomic, assign) BOOL sd_isTransformed; + +/** + A bool value indicating that the image is using thumbnail decode with smaller size, so the image data may not always match original download one. + @note This just check `sd_decodeOptions[.decodeThumbnailPixelSize] > CGSize.zero` + */ +@property (nonatomic, assign, readonly) BOOL sd_isThumbnail; + +/** + A dictionary value contains the decode options when decoded from SDWebImage loading system (say, `SDImageCacheDecodeImageData/SDImageLoaderDecode[Progressive]ImageData`) + It may not always available and only image decoding related options will be saved. (including [.decodeScaleFactor, .decodeThumbnailPixelSize, .decodePreserveAspectRatio, .decodeFirstFrameOnly]) + @note This is used to identify and check the image is from thumbnail decoding, and the callback's data **will be nil** (because this time the data saved to disk does not match the image return to you. If you need full size data, query the cache with full size url key) + @warning You should not store object inside which keep strong reference to image itself, which will cause retain cycle. + @warning This API exist only because of current SDWebImageDownloader bad design which does not callback the context we call it. There will be refactor in future (API break), use with caution. + */ +@property (nonatomic, copy) SDImageCoderOptions *sd_decodeOptions; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/UIImage+MultiFormat.h b/Vendors/simulator/SDWebImage.framework/Headers/UIImage+MultiFormat.h new file mode 100644 index 000000000..e495c747b --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/UIImage+MultiFormat.h @@ -0,0 +1,81 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" +#import "NSData+ImageContentType.h" + +/** + UIImage category for convenient image format decoding/encoding. + */ +@interface UIImage (MultiFormat) +#pragma mark - Decode +/** + Create and decode a image with the specify image data + + @param data The image data + @return The created image + */ ++ (nullable UIImage *)sd_imageWithData:(nullable NSData *)data; + +/** + Create and decode a image with the specify image data and scale + + @param data The image data + @param scale The image scale factor. Should be greater than or equal to 1.0. + @return The created image + */ ++ (nullable UIImage *)sd_imageWithData:(nullable NSData *)data scale:(CGFloat)scale; + +/** + Create and decode a image with the specify image data and scale, allow specify animate/static control + + @param data The image data + @param scale The image scale factor. Should be greater than or equal to 1.0. + @param firstFrameOnly Even if the image data is animated image format, decode the first frame only as static image. + @return The created image + */ ++ (nullable UIImage *)sd_imageWithData:(nullable NSData *)data scale:(CGFloat)scale firstFrameOnly:(BOOL)firstFrameOnly; + +#pragma mark - Encode +/** + Encode the current image to the data, the image format is unspecified + + @note If the receiver is `SDAnimatedImage`, this will return the animated image data if available. No more extra encoding process. + @note For macOS, if the receiver contains only `SDAnimatedImageRep`, this will return the animated image data if available. No more extra encoding process. + @return The encoded data. If can't encode, return nil + */ +- (nullable NSData *)sd_imageData; + +/** + Encode the current image to data with the specify image format + + @param imageFormat The specify image format + @return The encoded data. If can't encode, return nil + */ +- (nullable NSData *)sd_imageDataAsFormat:(SDImageFormat)imageFormat NS_SWIFT_NAME(sd_imageData(as:)); + +/** + Encode the current image to data with the specify image format and compression quality + + @param imageFormat The specify image format + @param compressionQuality The quality of the resulting image data. Value between 0.0-1.0. Some coders may not support compression quality. + @return The encoded data. If can't encode, return nil + */ +- (nullable NSData *)sd_imageDataAsFormat:(SDImageFormat)imageFormat compressionQuality:(double)compressionQuality NS_SWIFT_NAME(sd_imageData(as:compressionQuality:)); + +/** + Encode the current image to data with the specify image format and compression quality, allow specify animate/static control + + @param imageFormat The specify image format + @param compressionQuality The quality of the resulting image data. Value between 0.0-1.0. Some coders may not support compression quality. + @param firstFrameOnly Even if the image is animated image, encode the first frame only as static image. + @return The encoded data. If can't encode, return nil + */ +- (nullable NSData *)sd_imageDataAsFormat:(SDImageFormat)imageFormat compressionQuality:(double)compressionQuality firstFrameOnly:(BOOL)firstFrameOnly NS_SWIFT_NAME(sd_imageData(as:compressionQuality:firstFrameOnly:)); + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/UIImage+Transform.h b/Vendors/simulator/SDWebImage.framework/Headers/UIImage+Transform.h new file mode 100644 index 000000000..60b488ae9 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/UIImage+Transform.h @@ -0,0 +1,152 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +/// The scale mode to apply when image drawing on a container with different sizes. +typedef NS_ENUM(NSUInteger, SDImageScaleMode) { + /// The option to scale the content to fit the size of itself by changing the aspect ratio of the content if necessary. + SDImageScaleModeFill = 0, + /// The option to scale the content to fit the size of the view by maintaining the aspect ratio. Any remaining area of the view’s bounds is transparent. + SDImageScaleModeAspectFit = 1, + /// The option to scale the content to fill the size of the view. Some portion of the content may be clipped to fill the view’s bounds. + SDImageScaleModeAspectFill = 2 +}; + +#if SD_UIKIT || SD_WATCH +typedef UIRectCorner SDRectCorner; +#else +typedef NS_OPTIONS(NSUInteger, SDRectCorner) { + SDRectCornerTopLeft = 1 << 0, + SDRectCornerTopRight = 1 << 1, + SDRectCornerBottomLeft = 1 << 2, + SDRectCornerBottomRight = 1 << 3, + SDRectCornerAllCorners = ~0UL +}; +#endif + +/** + Provide some common method for `UIImage`. + Image process is based on Core Graphics and vImage. + */ +@interface UIImage (Transform) + +#pragma mark - Image Geometry + +/** + Returns a new image which is resized from this image. + You can specify a larger or smaller size than the image size. The image content will be changed with the scale mode. + + @param size The new size to be resized, values should be positive. + @param scaleMode The scale mode for image content. + @return The new image with the given size. + */ +- (nullable UIImage *)sd_resizedImageWithSize:(CGSize)size scaleMode:(SDImageScaleMode)scaleMode; + +/** + Returns a new image which is cropped from this image. + + @param rect Image's inner rect. + @return The new image with the cropping rect. + */ +- (nullable UIImage *)sd_croppedImageWithRect:(CGRect)rect; + +/** + Rounds a new image with a given corner radius and corners. + + @param cornerRadius The radius of each corner oval. Values larger than half the + rectangle's width or height are clamped appropriately to + half the width or height. + @param corners A bitmask value that identifies the corners that you want + rounded. You can use this parameter to round only a subset + of the corners of the rectangle. + @param borderWidth The inset border line width. Values larger than half the rectangle's + width or height are clamped appropriately to half the width + or height. + @param borderColor The border stroke color. nil means clear color. + @return The new image with the round corner. + */ +- (nullable UIImage *)sd_roundedCornerImageWithRadius:(CGFloat)cornerRadius + corners:(SDRectCorner)corners + borderWidth:(CGFloat)borderWidth + borderColor:(nullable UIColor *)borderColor; + +/** + Returns a new rotated image (relative to the center). + + @param angle Rotated radians in counterclockwise.⟲ + @param fitSize YES: new image's size is extend to fit all content. + NO: image's size will not change, content may be clipped. + @return The new image with the rotation. + */ +- (nullable UIImage *)sd_rotatedImageWithAngle:(CGFloat)angle fitSize:(BOOL)fitSize; + +/** + Returns a new horizontally(vertically) flipped image. + + @param horizontal YES to flip the image horizontally. ⇋ + @param vertical YES to flip the image vertically. ⥯ + @return The new image with the flipping. + */ +- (nullable UIImage *)sd_flippedImageWithHorizontal:(BOOL)horizontal vertical:(BOOL)vertical; + +#pragma mark - Image Blending + +/** + Return a tinted image with the given color. This actually use alpha blending of current image and the tint color. + + @param tintColor The tint color. + @return The new image with the tint color. + */ +- (nullable UIImage *)sd_tintedImageWithColor:(nonnull UIColor *)tintColor; + +/** + Return the pixel color at specify position. The point is from the top-left to the bottom-right and 0-based. The returned the color is always be RGBA format. The image must be CG-based. + @note The point's x/y will be converted into integer. + @note The point's x/y should not be smaller than 0, or greater than or equal to width/height. + @note The overhead of object creation means this method is best suited for infrequent color sampling. For heavy image processing, grab the raw bitmap data and process yourself. + + @param point The position of pixel + @return The color for specify pixel, or nil if any error occur + */ +- (nullable UIColor *)sd_colorAtPoint:(CGPoint)point; + +/** + Return the pixel color array with specify rectangle. The rect is from the top-left to the bottom-right and 0-based. The returned the color is always be RGBA format. The image must be CG-based. + @note The rect's origin and size will be converted into integer. + @note The rect's width/height should not be smaller than or equal to 0. The minX/minY should not be smaller than 0. The maxX/maxY should not be greater than width/height. Attention this limit is different from `sd_colorAtPoint:` (point: (0, 0) like rect: (0, 0, 1, 1)) + @note The overhead of object creation means this method is best suited for infrequent color sampling. For heavy image processing, grab the raw bitmap data and process yourself. + + @param rect The rectangle of pixels + @return The color array for specify pixels, or nil if any error occur + */ +- (nullable NSArray *)sd_colorsWithRect:(CGRect)rect; + +#pragma mark - Image Effect + +/** + Return a new image applied a blur effect. + + @param blurRadius The radius of the blur in points, 0 means no blur effect. + + @return The new image with blur effect, or nil if an error occurs (e.g. no enough memory). + */ +- (nullable UIImage *)sd_blurredImageWithRadius:(CGFloat)blurRadius; + +#if SD_UIKIT || SD_MAC +/** + Return a new image applied a CIFilter. + + @param filter The CIFilter to be applied to the image. + @return The new image with the CIFilter, or nil if an error occurs (e.g. no + enough memory). + */ +- (nullable UIImage *)sd_filteredImageWithFilter:(nonnull CIFilter *)filter; +#endif + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/UIImageView+HighlightedWebCache.h b/Vendors/simulator/SDWebImage.framework/Headers/UIImageView+HighlightedWebCache.h new file mode 100644 index 000000000..80fabc6d6 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/UIImageView+HighlightedWebCache.h @@ -0,0 +1,142 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +#if SD_UIKIT + +#import "SDWebImageManager.h" + +/** + * Integrates SDWebImage async downloading and caching of remote images with UIImageView for highlighted state. + */ +@interface UIImageView (HighlightedWebCache) + +#pragma mark - Highlighted Image + +/** + * Get the current highlighted image URL. + */ +@property (nonatomic, strong, readonly, nullable) NSURL *sd_currentHighlightedImageURL; + +/** + * Set the imageView `highlightedImage` with an `url`. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + */ +- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url NS_REFINED_FOR_SWIFT; + +/** + * Set the imageView `highlightedImage` with an `url` and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + */ +- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url + options:(SDWebImageOptions)options NS_REFINED_FOR_SWIFT; + +/** + * Set the imageView `highlightedImage` with an `url`, custom options and context. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + */ +- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context; + +/** + * Set the imageView `highlightedImage` with an `url`. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url + completed:(nullable SDExternalCompletionBlock)completedBlock NS_REFINED_FOR_SWIFT; + +/** + * Set the imageView `highlightedImage` with an `url` and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url + options:(SDWebImageOptions)options + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the imageView `highlightedImage` with an `url` and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param progressBlock A block called while image is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url + options:(SDWebImageOptions)options + progress:(nullable SDImageLoaderProgressBlock)progressBlock + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the imageView `highlightedImage` with an `url`, custom options and context. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + * @param progressBlock A block called while image is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context + progress:(nullable SDImageLoaderProgressBlock)progressBlock + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Cancel the current highlighted image load (for `UIImageView.highlighted`) + * @note For normal image, use `sd_cancelCurrentImageLoad` + */ +- (void)sd_cancelCurrentHighlightedImageLoad; + +@end + +#endif diff --git a/Vendors/simulator/SDWebImage.framework/Headers/UIImageView+WebCache.h b/Vendors/simulator/SDWebImage.framework/Headers/UIImageView+WebCache.h new file mode 100644 index 000000000..46b5a707d --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/UIImageView+WebCache.h @@ -0,0 +1,209 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" +#import "SDWebImageManager.h" + +/** + * Usage with a UITableViewCell sub-class: + * + * @code + +#import + +... + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath +{ + static NSString *MyIdentifier = @"MyIdentifier"; + + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier]; + + if (cell == nil) { + cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:MyIdentifier]; + } + + // Here we use the provided sd_setImageWithURL:placeholderImage: method to load the web image + // Ensure you use a placeholder image otherwise cells will be initialized with no image + [cell.imageView sd_setImageWithURL:[NSURL URLWithString:@"http://example.com/image.jpg"] + placeholderImage:[UIImage imageNamed:@"placeholder"]]; + + cell.textLabel.text = @"My Text"; + return cell; +} + + * @endcode + */ + +/** + * Integrates SDWebImage async downloading and caching of remote images with UIImageView. + */ +@interface UIImageView (WebCache) + +#pragma mark - Image State + +/** + * Get the current image URL. + */ +@property (nonatomic, strong, readonly, nullable) NSURL *sd_currentImageURL; + +#pragma mark - Image Loading + +/** + * Set the imageView `image` with an `url`. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url NS_REFINED_FOR_SWIFT; + +/** + * Set the imageView `image` with an `url` and a placeholder. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @see sd_setImageWithURL:placeholderImage:options: + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder NS_REFINED_FOR_SWIFT; + +/** + * Set the imageView `image` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options NS_REFINED_FOR_SWIFT; + +/** + * Set the imageView `image` with an `url`, placeholder, custom options and context. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context; + +/** + * Set the imageView `image` with an `url`. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the imageView `image` with an `url`, placeholder. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + completed:(nullable SDExternalCompletionBlock)completedBlock NS_REFINED_FOR_SWIFT; + +/** + * Set the imageView `image` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the imageView `image` with an `url`, placeholder and custom options. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param progressBlock A block called while image is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + progress:(nullable SDImageLoaderProgressBlock)progressBlock + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Set the imageView `image` with an `url`, placeholder, custom options and context. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + * @param progressBlock A block called while image is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called when operation has been completed. This block has no return value + * and takes the requested UIImage as first parameter. In case of error the image parameter + * is nil and the second parameter may contain an NSError. The third parameter is a Boolean + * indicating if the image was retrieved from the local cache or from the network. + * The fourth parameter is the original image url. + */ +- (void)sd_setImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context + progress:(nullable SDImageLoaderProgressBlock)progressBlock + completed:(nullable SDExternalCompletionBlock)completedBlock; + +/** + * Cancel the current normal image load (for `UIImageView.image`) + * @note For highlighted image, use `sd_cancelCurrentHighlightedImageLoad` + */ +- (void)sd_cancelCurrentImageLoad; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/UIView+WebCache.h b/Vendors/simulator/SDWebImage.framework/Headers/UIView+WebCache.h new file mode 100644 index 000000000..2223f9d95 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/UIView+WebCache.h @@ -0,0 +1,131 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" +#import "SDWebImageDefine.h" +#import "SDWebImageManager.h" +#import "SDWebImageTransition.h" +#import "SDWebImageIndicator.h" +#import "UIView+WebCacheOperation.h" +#import "UIView+WebCacheState.h" + +/** + The value specify that the image progress unit count cannot be determined because the progressBlock is not been called. + */ +FOUNDATION_EXPORT const int64_t SDWebImageProgressUnitCountUnknown; /* 1LL */ + +typedef void(^SDSetImageBlock)(UIImage * _Nullable image, NSData * _Nullable imageData, SDImageCacheType cacheType, NSURL * _Nullable imageURL); + +/** + Integrates SDWebImage async downloading and caching of remote images with UIView subclass. + */ +@interface UIView (WebCache) + +/** + * Get the current image operation key. Operation key is used to identify the different queries for one view instance (like UIButton). + * See more about this in `SDWebImageContextSetImageOperationKey`. + * + * @note You can use method `UIView+WebCacheOperation` to investigate different queries' operation. + * @note For the history version compatible, when current UIView has property exactly called `image`, the operation key will use `NSStringFromClass(self.class)`. Include `UIImageView.image/NSImageView.image/NSButton.image` (without `UIButton`) + * @warning This property should be only used for single state view, like `UIImageView` without highlighted state. For stateful view like `UIBUtton` (one view can have multiple images loading), check their header to call correct API, like `-[UIButton sd_imageOperationKeyForState:]` + */ +@property (nonatomic, strong, readonly, nullable) NSString *sd_latestOperationKey; + +#pragma mark - State + +/** + * Get the current image URL. + * This simply translate to `[self sd_imageLoadStateForKey:self.sd_latestOperationKey].url` from v5.18.0 + * + * @note Note that because of the limitations of categories this property can get out of sync if you use setImage: directly. + * @warning This property should be only used for single state view, like `UIImageView` without highlighted state. For stateful view like `UIBUtton` (one view can have multiple images loading), use `sd_imageLoadStateForKey:` instead. See `UIView+WebCacheState.h` for more information. + */ +@property (nonatomic, strong, readonly, nullable) NSURL *sd_imageURL; + +/** + * The current image loading progress associated to the view. The unit count is the received size and excepted size of download. + * The `totalUnitCount` and `completedUnitCount` will be reset to 0 after a new image loading start (change from current queue). And they will be set to `SDWebImageProgressUnitCountUnknown` if the progressBlock not been called but the image loading success to mark the progress finished (change from main queue). + * @note You can use Key-Value Observing on the progress, but you should take care that the change to progress is from a background queue during download(the same as progressBlock). If you want to using KVO and update the UI, make sure to dispatch on the main queue. And it's recommend to use some KVO libs like KVOController because it's more safe and easy to use. + * @note The getter will create a progress instance if the value is nil. But by default, we don't create one. If you need to use Key-Value Observing, you must trigger the getter or set a custom progress instance before the loading start. The default value is nil. + * @note Note that because of the limitations of categories this property can get out of sync if you update the progress directly. + * @warning This property should be only used for single state view, like `UIImageView` without highlighted state. For stateful view like `UIBUtton` (one view can have multiple images loading), use `sd_imageLoadStateForKey:` instead. See `UIView+WebCacheState.h` for more information. + */ +@property (nonatomic, strong, null_resettable) NSProgress *sd_imageProgress; + +/** + * Set the imageView `image` with an `url` and optionally a placeholder image. + * + * The download is asynchronous and cached. + * + * @param url The url for the image. + * @param placeholder The image to be set initially, until the image request finishes. + * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values. + * @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold. + * @param setImageBlock Block used for custom set image code. If not provide, use the built-in set image code (supports `UIImageView/NSImageView` and `UIButton/NSButton` currently) + * @param progressBlock A block called while image is downloading + * @note the progress block is executed on a background queue + * @param completedBlock A block called when operation has been completed. + * This block has no return value and takes the requested UIImage as first parameter and the NSData representation as second parameter. + * In case of error the image parameter is nil and the third parameter may contain an NSError. + * + * The forth parameter is an `SDImageCacheType` enum indicating if the image was retrieved from the local cache + * or from the memory cache or from the network. + * + * The fifth parameter normally is always YES. However, if you provide SDWebImageAvoidAutoSetImage with SDWebImageProgressiveLoad options to enable progressive downloading and set the image yourself. This block is thus called repeatedly with a partial image. When image is fully downloaded, the + * block is called a last time with the full image and the last parameter set to YES. + * + * The last parameter is the original image URL + * @return The returned operation for cancelling cache and download operation, typically type is `SDWebImageCombinedOperation` + */ +- (nullable id)sd_internalSetImageWithURL:(nullable NSURL *)url + placeholderImage:(nullable UIImage *)placeholder + options:(SDWebImageOptions)options + context:(nullable SDWebImageContext *)context + setImageBlock:(nullable SDSetImageBlock)setImageBlock + progress:(nullable SDImageLoaderProgressBlock)progressBlock + completed:(nullable SDInternalCompletionBlock)completedBlock; + +/** + * Cancel the latest image load, using the `sd_latestOperationKey` as operation key + * This simply translate to `[self sd_cancelImageLoadOperationWithKey:self.sd_latestOperationKey]` + */ +- (void)sd_cancelLatestImageLoad; + +/** + * Cancel the current image load, for single state view. + * This actually does not cancel current loading, because stateful view can load multiple images at the same time (like UIButton, each state can load different images). Just behave the same as `sd_cancelLatestImageLoad` + * + * @warning This method should be only used for single state view, like `UIImageView` without highlighted state. For stateful view like `UIBUtton` (one view can have multiple images loading), use `sd_cancelImageLoadOperationWithKey:` instead. See `UIView+WebCacheOperation.h` for more information. + * @deprecated Use `sd_cancelLatestImageLoad` instead. Which don't cause overload method misunderstanding (`UIImageView+WebCache` provide the same API as this one, but does not do the same thing). This API will be totally removed in v6.0 due to this. + */ +- (void)sd_cancelCurrentImageLoad API_DEPRECATED_WITH_REPLACEMENT("sd_cancelLatestImageLoad", macos(10.10, 10.10), ios(8.0, 8.0), tvos(9.0, 9.0), watchos(2.0, 2.0)); + +#if SD_UIKIT || SD_MAC + +#pragma mark - Image Transition + +/** + The image transition when image load finished. See `SDWebImageTransition`. + If you specify nil, do not do transition. Defaults to nil. + @warning This property should be only used for single state view, like `UIImageView` without highlighted state. For stateful view like `UIBUtton` (one view can have multiple images loading), write your own implementation in `setImageBlock:`, and check current stateful view's state to render the UI. + */ +@property (nonatomic, strong, nullable) SDWebImageTransition *sd_imageTransition; + +#pragma mark - Image Indicator + +/** + The image indicator during the image loading. If you do not need indicator, specify nil. Defaults to nil + The setter will remove the old indicator view and add new indicator view to current view's subview. + @note Because this is UI related, you should access only from the main queue. + @warning This property should be only used for single state view, like `UIImageView` without highlighted state. For stateful view like `UIBUtton` (one view can have multiple images loading), write your own implementation in `setImageBlock:`, and check current stateful view's state to render the UI. + */ +@property (nonatomic, strong, nullable) id sd_imageIndicator; + +#endif + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/UIView+WebCacheOperation.h b/Vendors/simulator/SDWebImage.framework/Headers/UIView+WebCacheOperation.h new file mode 100644 index 000000000..0bc12caff --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/UIView+WebCacheOperation.h @@ -0,0 +1,52 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" +#import "SDWebImageOperation.h" + +/** + These methods are used to support canceling for UIView image loading, it's designed to be used internal but not external. + All the stored operations are weak, so it will be dealloced after image loading finished. If you need to store operations, use your own class to keep a strong reference for them. + */ +@interface UIView (WebCacheOperation) + +/** + * Get the image load operation for key + * + * @param key key for identifying the operations + * @return the image load operation + * @note If key is nil, means using the NSStringFromClass(self.class) instead, match the behavior of `operation key` + */ +- (nullable id)sd_imageLoadOperationForKey:(nullable NSString *)key; + +/** + * Set the image load operation (storage in a UIView based weak map table) + * + * @param operation the operation, should not be nil or no-op will perform + * @param key key for storing the operation + * @note If key is nil, means using the NSStringFromClass(self.class) instead, match the behavior of `operation key` + */ +- (void)sd_setImageLoadOperation:(nullable id)operation forKey:(nullable NSString *)key; + +/** + * Cancel the operation for the current UIView and key + * + * @param key key for identifying the operations + * @note If key is nil, means using the NSStringFromClass(self.class) instead, match the behavior of `operation key` + */ +- (void)sd_cancelImageLoadOperationWithKey:(nullable NSString *)key; + +/** + * Just remove the operation corresponding to the current UIView and key without cancelling them + * + * @param key key for identifying the operations. + * @note If key is nil, means using the NSStringFromClass(self.class) instead, match the behavior of `operation key` + */ +- (void)sd_removeImageLoadOperationWithKey:(nullable NSString *)key; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Headers/UIView+WebCacheState.h b/Vendors/simulator/SDWebImage.framework/Headers/UIView+WebCacheState.h new file mode 100644 index 000000000..f3801c283 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Headers/UIView+WebCacheState.h @@ -0,0 +1,62 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageCompat.h" + +/** + A loading state to manage View Category which contains multiple states. Like UIImgeView.image && UIImageView.highlightedImage + @code + SDWebImageLoadState *loadState = [self sd_imageLoadStateForKey:@keypath(self, highlitedImage)]; + NSProgress *highlitedImageProgress = loadState.progress; + @endcode + */ +@interface SDWebImageLoadState : NSObject + +/** + Image loading URL + */ +@property (nonatomic, strong, nullable) NSURL *url; +/** + Image loading progress. The unit count is the received size and excepted size of download. + */ +@property (nonatomic, strong, nullable) NSProgress *progress; + +@end + +/** + These methods are used for WebCache view which have multiple states for image loading, for example, `UIButton` or `UIImageView.highlightedImage` + It maitain the state container for per-operation, make it possible for control and check each image loading operation's state. + @note For developer who want to add SDWebImage View Category support for their own stateful class, learn more on Wiki. + */ +@interface UIView (WebCacheState) + +/** + Get the image loading state container for specify operation key + + @param key key for identifying the operations + @return The image loading state container + */ +- (nullable SDWebImageLoadState *)sd_imageLoadStateForKey:(nullable NSString *)key; + +/** + Set the image loading state container for specify operation key + + @param state The image loading state container + @param key key for identifying the operations + */ +- (void)sd_setImageLoadState:(nullable SDWebImageLoadState *)state forKey:(nullable NSString *)key; + +/** + Rmove the image loading state container for specify operation key + + @param key key for identifying the operations + */ +- (void)sd_removeImageLoadStateForKey:(nullable NSString *)key; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/Info.plist b/Vendors/simulator/SDWebImage.framework/Info.plist new file mode 100644 index 000000000..48f11f39e Binary files /dev/null and b/Vendors/simulator/SDWebImage.framework/Info.plist differ diff --git a/Vendors/simulator/SDWebImage.framework/Modules/module.modulemap b/Vendors/simulator/SDWebImage.framework/Modules/module.modulemap new file mode 100644 index 000000000..3eaba7dc5 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module SDWebImage { + umbrella header "SDWebImage.h" + export * + + module * { export * } +} diff --git a/Vendors/simulator/SDWebImage.framework/PrivacyInfo.xcprivacy b/Vendors/simulator/SDWebImage.framework/PrivacyInfo.xcprivacy new file mode 100644 index 000000000..276f7610d --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/PrivacyInfo.xcprivacy @@ -0,0 +1,23 @@ + + + + + NSPrivacyTracking + + NSPrivacyCollectedDataTypes + + NSPrivacyTrackingDomains + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + NSPrivacyAccessedAPITypeReasons + + C617.1 + + + + + diff --git a/Vendors/simulator/SDWebImage.framework/PrivateHeaders/NSBezierPath+SDRoundedCorners.h b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/NSBezierPath+SDRoundedCorners.h new file mode 100644 index 000000000..dfec18b79 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/NSBezierPath+SDRoundedCorners.h @@ -0,0 +1,24 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +#if SD_MAC + +#import "UIImage+Transform.h" + +@interface NSBezierPath (SDRoundedCorners) + +/** + Convenience way to create a bezier path with the specify rounding corners on macOS. Same as the one on `UIBezierPath`. + */ ++ (nonnull instancetype)sd_bezierPathWithRoundedRect:(NSRect)rect byRoundingCorners:(SDRectCorner)corners cornerRadius:(CGFloat)cornerRadius; + +@end + +#endif diff --git a/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDAssociatedObject.h b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDAssociatedObject.h new file mode 100644 index 000000000..199cf4fce --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDAssociatedObject.h @@ -0,0 +1,14 @@ +/* +* This file is part of the SDWebImage package. +* (c) Olivier Poitrey +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + +#import "SDWebImageCompat.h" + +/// Copy the associated object from source image to target image. The associated object including all the category read/write properties. +/// @param source source +/// @param target target +FOUNDATION_EXPORT void SDImageCopyAssociatedObject(UIImage * _Nullable source, UIImage * _Nullable target); diff --git a/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDAsyncBlockOperation.h b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDAsyncBlockOperation.h new file mode 100644 index 000000000..a3480deba --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDAsyncBlockOperation.h @@ -0,0 +1,21 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +@class SDAsyncBlockOperation; +typedef void (^SDAsyncBlock)(SDAsyncBlockOperation * __nonnull asyncOperation); + +/// A async block operation, success after you call `completer` (not like `NSBlockOperation` which is for sync block, success on return) +@interface SDAsyncBlockOperation : NSOperation + +- (nonnull instancetype)initWithBlock:(nonnull SDAsyncBlock)block; ++ (nonnull instancetype)blockOperationWithBlock:(nonnull SDAsyncBlock)block; +- (void)complete; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDDeviceHelper.h b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDDeviceHelper.h new file mode 100644 index 000000000..5d5676b1b --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDDeviceHelper.h @@ -0,0 +1,18 @@ +/* +* This file is part of the SDWebImage package. +* (c) Olivier Poitrey +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + +#import +#import "SDWebImageCompat.h" + +/// Device information helper methods +@interface SDDeviceHelper : NSObject + ++ (NSUInteger)totalMemory; ++ (NSUInteger)freeMemory; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDDisplayLink.h b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDDisplayLink.h new file mode 100644 index 000000000..6582ccbf4 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDDisplayLink.h @@ -0,0 +1,29 @@ +/* +* This file is part of the SDWebImage package. +* (c) Olivier Poitrey +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + +#import +#import "SDWebImageCompat.h" + +/// Cross-platform display link wrapper. Do not retain the target +/// Use `CADisplayLink` on iOS/tvOS, `CVDisplayLink` on macOS, `NSTimer` on watchOS +@interface SDDisplayLink : NSObject + +@property (readonly, nonatomic, weak, nullable) id target; +@property (readonly, nonatomic, assign, nonnull) SEL selector; +@property (readonly, nonatomic) NSTimeInterval duration; // elapsed time in seconds of previous callback. (or it's first callback, use the time between `start` and callback). Always zero when display link not running +@property (readonly, nonatomic) BOOL isRunning; + ++ (nonnull instancetype)displayLinkWithTarget:(nonnull id)target selector:(nonnull SEL)sel; + +- (void)addToRunLoop:(nonnull NSRunLoop *)runloop forMode:(nonnull NSRunLoopMode)mode; +- (void)removeFromRunLoop:(nonnull NSRunLoop *)runloop forMode:(nonnull NSRunLoopMode)mode; + +- (void)start; +- (void)stop; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDFileAttributeHelper.h b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDFileAttributeHelper.h new file mode 100644 index 000000000..3ce6badec --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDFileAttributeHelper.h @@ -0,0 +1,19 @@ +// +// This file is from https://gist.github.com/zydeco/6292773 +// +// Created by Jesús A. Álvarez on 2008-12-17. +// Copyright 2008-2009 namedfork.net. All rights reserved. +// + +#import + +/// File Extended Attribute (xattr) helper methods +@interface SDFileAttributeHelper : NSObject + ++ (nullable NSArray *)extendedAttributeNamesAtPath:(nonnull NSString *)path traverseLink:(BOOL)follow error:(NSError * _Nullable * _Nullable)err; ++ (BOOL)hasExtendedAttribute:(nonnull NSString *)name atPath:(nonnull NSString *)path traverseLink:(BOOL)follow error:(NSError * _Nullable * _Nullable)err; ++ (nullable NSData *)extendedAttribute:(nonnull NSString *)name atPath:(nonnull NSString *)path traverseLink:(BOOL)follow error:(NSError * _Nullable * _Nullable)err; ++ (BOOL)setExtendedAttribute:(nonnull NSString *)name value:(nonnull NSData *)value atPath:(nonnull NSString *)path traverseLink:(BOOL)follow overwrite:(BOOL)overwrite error:(NSError * _Nullable * _Nullable)err; ++ (BOOL)removeExtendedAttribute:(nonnull NSString *)name atPath:(nonnull NSString *)path traverseLink:(BOOL)follow error:(NSError * _Nullable * _Nullable)err; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDImageAssetManager.h b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDImageAssetManager.h new file mode 100644 index 000000000..88dee4895 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDImageAssetManager.h @@ -0,0 +1,23 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageCompat.h" + +/// A Image-Asset manager to work like UIKit/AppKit's image cache behavior +/// Apple parse the Asset Catalog compiled file(`Assets.car`) by CoreUI.framework, however it's a private framework and there are no other ways to directly get the data. So we just process the normal bundle files :) +@interface SDImageAssetManager : NSObject + +@property (nonatomic, strong, nonnull) NSMapTable *imageTable; + ++ (nonnull instancetype)sharedAssetManager; +- (nullable NSString *)getPathForName:(nonnull NSString *)name bundle:(nonnull NSBundle *)bundle preferredScale:(nonnull CGFloat *)scale; +- (nullable UIImage *)imageForName:(nonnull NSString *)name; +- (void)storeImage:(nonnull UIImage *)image forName:(nonnull NSString *)name; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDImageCachesManagerOperation.h b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDImageCachesManagerOperation.h new file mode 100644 index 000000000..0debe6cac --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDImageCachesManagerOperation.h @@ -0,0 +1,21 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageCompat.h" + +/// This is used for operation management, but not for operation queue execute +@interface SDImageCachesManagerOperation : NSOperation + +@property (nonatomic, assign, readonly) NSUInteger pendingCount; + +- (void)beginWithTotalCount:(NSUInteger)totalCount; +- (void)completeOne; +- (void)done; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDImageFramePool.h b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDImageFramePool.h new file mode 100644 index 000000000..6fedc83fc --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDImageFramePool.h @@ -0,0 +1,40 @@ +/* +* This file is part of the SDWebImage package. +* (c) Olivier Poitrey +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + +#import +#import "SDWebImageCompat.h" +#import "SDImageCoder.h" + +NS_ASSUME_NONNULL_BEGIN + +/// A per-provider (provider means, AnimatedImage object) based frame pool, each player who use the same provider share the same frame buffer +@interface SDImageFramePool : NSObject + +/// Register and return back a frame pool, also increase reference count ++ (instancetype)registerProvider:(id)provider; +/// Unregister a frame pool, also decrease reference count, if zero dealloc the frame pool ++ (void)unregisterProvider:(id)provider; + +/// Prefetch the current frame, query using `frameAtIndex:` by caller to check whether finished. +- (void)prefetchFrameAtIndex:(NSUInteger)index; + +/// Control the max buffer count for current frame pool, used for RAM/CPU balance, default unlimited +@property (nonatomic, assign) NSUInteger maxBufferCount; +/// Control the max concurrent fetch queue operation count, used for CPU balance, default 1 +@property (nonatomic, assign) NSUInteger maxConcurrentCount; + +// Frame Operations +@property (nonatomic, readonly) NSUInteger currentFrameCount; +- (nullable UIImage *)frameAtIndex:(NSUInteger)index; +- (void)setFrame:(nullable UIImage *)frame atIndex:(NSUInteger)index; +- (void)removeFrameAtIndex:(NSUInteger)index; +- (void)removeAllFrames; + +NS_ASSUME_NONNULL_END + +@end diff --git a/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDImageIOAnimatedCoderInternal.h b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDImageIOAnimatedCoderInternal.h new file mode 100644 index 000000000..5a61d5dd8 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDImageIOAnimatedCoderInternal.h @@ -0,0 +1,39 @@ +/* +* This file is part of the SDWebImage package. +* (c) Olivier Poitrey +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + +#import +#import +#import "SDImageIOAnimatedCoder.h" + +// AVFileTypeHEIC/AVFileTypeHEIF is defined in AVFoundation via iOS 11, we use this without import AVFoundation +#define kSDUTTypeHEIC ((__bridge CFStringRef)@"public.heic") +#define kSDUTTypeHEIF ((__bridge CFStringRef)@"public.heif") +// HEIC Sequence (Animated Image) +#define kSDUTTypeHEICS ((__bridge CFStringRef)@"public.heics") +// kSDUTTypeWebP seems not defined in public UTI framework, Apple use the hardcode string, we define them :) +#define kSDUTTypeWebP ((__bridge CFStringRef)@"org.webmproject.webp") + +#define kSDUTTypeImage ((__bridge CFStringRef)@"public.image") +#define kSDUTTypeJPEG ((__bridge CFStringRef)@"public.jpeg") +#define kSDUTTypePNG ((__bridge CFStringRef)@"public.png") +#define kSDUTTypeTIFF ((__bridge CFStringRef)@"public.tiff") +#define kSDUTTypeSVG ((__bridge CFStringRef)@"public.svg-image") +#define kSDUTTypeGIF ((__bridge CFStringRef)@"com.compuserve.gif") +#define kSDUTTypePDF ((__bridge CFStringRef)@"com.adobe.pdf") +#define kSDUTTypeBMP ((__bridge CFStringRef)@"com.microsoft.bmp") +#define kSDUTTypeRAW ((__bridge CFStringRef)@"public.camera-raw-image") + +@interface SDImageIOAnimatedCoder () + ++ (NSTimeInterval)frameDurationAtIndex:(NSUInteger)index source:(nonnull CGImageSourceRef)source; ++ (NSUInteger)imageLoopCountWithSource:(nonnull CGImageSourceRef)source; ++ (nullable UIImage *)createFrameAtIndex:(NSUInteger)index source:(nonnull CGImageSourceRef)source scale:(CGFloat)scale preserveAspectRatio:(BOOL)preserveAspectRatio thumbnailSize:(CGSize)thumbnailSize lazyDecode:(BOOL)lazyDecode animatedImage:(BOOL)animatedImage; ++ (BOOL)canEncodeToFormat:(SDImageFormat)format; ++ (BOOL)canDecodeFromFormat:(SDImageFormat)format; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDInternalMacros.h b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDInternalMacros.h new file mode 100644 index 000000000..c324cccf1 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDInternalMacros.h @@ -0,0 +1,195 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import +#import +#import +#import "SDmetamacros.h" + +#define SD_USE_OS_UNFAIR_LOCK TARGET_OS_MACCATALYST ||\ + (__IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_10_0) ||\ + (__MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_10_12) ||\ + (__TV_OS_VERSION_MIN_REQUIRED >= __TVOS_10_0) ||\ + (__WATCH_OS_VERSION_MIN_REQUIRED >= __WATCHOS_3_0) + +#ifndef SD_LOCK_DECLARE +#if SD_USE_OS_UNFAIR_LOCK +#define SD_LOCK_DECLARE(lock) os_unfair_lock lock +#else +#define SD_LOCK_DECLARE(lock) os_unfair_lock lock API_AVAILABLE(ios(10.0), tvos(10), watchos(3), macos(10.12)); \ +OSSpinLock lock##_deprecated; +#endif +#endif + +#ifndef SD_LOCK_DECLARE_STATIC +#if SD_USE_OS_UNFAIR_LOCK +#define SD_LOCK_DECLARE_STATIC(lock) static os_unfair_lock lock +#else +#define SD_LOCK_DECLARE_STATIC(lock) static os_unfair_lock lock API_AVAILABLE(ios(10.0), tvos(10), watchos(3), macos(10.12)); \ +static OSSpinLock lock##_deprecated; +#endif +#endif + +#ifndef SD_LOCK_INIT +#if SD_USE_OS_UNFAIR_LOCK +#define SD_LOCK_INIT(lock) lock = OS_UNFAIR_LOCK_INIT +#else +#define SD_LOCK_INIT(lock) if (@available(iOS 10, tvOS 10, watchOS 3, macOS 10.12, *)) lock = OS_UNFAIR_LOCK_INIT; \ +else lock##_deprecated = OS_SPINLOCK_INIT; +#endif +#endif + +#ifndef SD_LOCK +#if SD_USE_OS_UNFAIR_LOCK +#define SD_LOCK(lock) os_unfair_lock_lock(&lock) +#else +#define SD_LOCK(lock) if (@available(iOS 10, tvOS 10, watchOS 3, macOS 10.12, *)) os_unfair_lock_lock(&lock); \ +else OSSpinLockLock(&lock##_deprecated); +#endif +#endif + +#ifndef SD_UNLOCK +#if SD_USE_OS_UNFAIR_LOCK +#define SD_UNLOCK(lock) os_unfair_lock_unlock(&lock) +#else +#define SD_UNLOCK(lock) if (@available(iOS 10, tvOS 10, watchOS 3, macOS 10.12, *)) os_unfair_lock_unlock(&lock); \ +else OSSpinLockUnlock(&lock##_deprecated); +#endif +#endif + +#ifndef SD_OPTIONS_CONTAINS +#define SD_OPTIONS_CONTAINS(options, value) (((options) & (value)) == (value)) +#endif + +#ifndef SD_CSTRING +#define SD_CSTRING(str) #str +#endif + +#ifndef SD_NSSTRING +#define SD_NSSTRING(str) @(SD_CSTRING(str)) +#endif + +#ifndef SD_SEL_SPI +#define SD_SEL_SPI(name) NSSelectorFromString([NSString stringWithFormat:@"_%@", SD_NSSTRING(name)]) +#endif + +FOUNDATION_EXPORT os_log_t sd_getDefaultLog(void); + +#ifndef SD_LOG +#define SD_LOG(_log, ...) if (@available(iOS 10.0, tvOS 10.0, macOS 10.12, watchOS 3.0, *)) os_log(sd_getDefaultLog(), _log, ##__VA_ARGS__); \ +else NSLog(@(_log), ##__VA_ARGS__); +#endif + +#ifndef weakify +#define weakify(...) \ +sd_keywordify \ +metamacro_foreach_cxt(sd_weakify_,, __weak, __VA_ARGS__) +#endif + +#ifndef strongify +#define strongify(...) \ +sd_keywordify \ +_Pragma("clang diagnostic push") \ +_Pragma("clang diagnostic ignored \"-Wshadow\"") \ +metamacro_foreach(sd_strongify_,, __VA_ARGS__) \ +_Pragma("clang diagnostic pop") +#endif + +#define sd_weakify_(INDEX, CONTEXT, VAR) \ +CONTEXT __typeof__(VAR) metamacro_concat(VAR, _weak_) = (VAR); + +#define sd_strongify_(INDEX, VAR) \ +__strong __typeof__(VAR) VAR = metamacro_concat(VAR, _weak_); + +#if DEBUG +#define sd_keywordify autoreleasepool {} +#else +#define sd_keywordify try {} @catch (...) {} +#endif + +#ifndef onExit +#define onExit \ +sd_keywordify \ +__strong sd_cleanupBlock_t metamacro_concat(sd_exitBlock_, __LINE__) __attribute__((cleanup(sd_executeCleanupBlock), unused)) = ^ +#endif + +typedef void (^sd_cleanupBlock_t)(void); + +#if defined(__cplusplus) +extern "C" { +#endif + void sd_executeCleanupBlock (__strong sd_cleanupBlock_t *block); +#if defined(__cplusplus) +} +#endif + +/** + * \@keypath allows compile-time verification of key paths. Given a real object + * receiver and key path: + * + * @code + +NSString *UTF8StringPath = @keypath(str.lowercaseString.UTF8String); +// => @"lowercaseString.UTF8String" + +NSString *versionPath = @keypath(NSObject, version); +// => @"version" + +NSString *lowercaseStringPath = @keypath(NSString.new, lowercaseString); +// => @"lowercaseString" + + * @endcode + * + * ... the macro returns an \c NSString containing all but the first path + * component or argument (e.g., @"lowercaseString.UTF8String", @"version"). + * + * In addition to simply creating a key path, this macro ensures that the key + * path is valid at compile-time (causing a syntax error if not), and supports + * refactoring, such that changing the name of the property will also update any + * uses of \@keypath. + */ +#define keypath(...) \ + _Pragma("clang diagnostic push") \ + _Pragma("clang diagnostic ignored \"-Warc-repeated-use-of-weak\"") \ + (NO).boolValue ? ((NSString * _Nonnull)nil) : ((NSString * _Nonnull)@(cStringKeypath(__VA_ARGS__))) \ + _Pragma("clang diagnostic pop") \ + +#define cStringKeypath(...) \ + metamacro_if_eq(1, metamacro_argcount(__VA_ARGS__))(keypath1(__VA_ARGS__))(keypath2(__VA_ARGS__)) + +#define keypath1(PATH) \ + (((void)(NO && ((void)PATH, NO)), \ + ({ char *__extobjckeypath__ = strchr(# PATH, '.'); NSCAssert(__extobjckeypath__, @"Provided key path is invalid."); __extobjckeypath__ + 1; }))) + +#define keypath2(OBJ, PATH) \ + (((void)(NO && ((void)OBJ.PATH, NO)), # PATH)) + +/** + * \@collectionKeypath allows compile-time verification of key paths across collections NSArray/NSSet etc. Given a real object + * receiver, collection object receiver and related keypaths: + * + * @code + + NSString *employeesFirstNamePath = @collectionKeypath(department.employees, Employee.new, firstName) + // => @"employees.firstName" + + NSString *employeesFirstNamePath = @collectionKeypath(Department.new, employees, Employee.new, firstName) + // => @"employees.firstName" + + * @endcode + * + */ +#define collectionKeypath(...) \ + metamacro_if_eq(3, metamacro_argcount(__VA_ARGS__))(collectionKeypath3(__VA_ARGS__))(collectionKeypath4(__VA_ARGS__)) + +#define collectionKeypath3(PATH, COLLECTION_OBJECT, COLLECTION_PATH) \ + (YES).boolValue ? (NSString * _Nonnull)@((const char * _Nonnull)[[NSString stringWithFormat:@"%s.%s", cStringKeypath(PATH), cStringKeypath(COLLECTION_OBJECT, COLLECTION_PATH)] UTF8String]) : (NSString * _Nonnull)nil + +#define collectionKeypath4(OBJ, PATH, COLLECTION_OBJECT, COLLECTION_PATH) \ + (YES).boolValue ? (NSString * _Nonnull)@((const char * _Nonnull)[[NSString stringWithFormat:@"%s.%s", cStringKeypath(OBJ, PATH), cStringKeypath(COLLECTION_OBJECT, COLLECTION_PATH)] UTF8String]) : (NSString * _Nonnull)nil diff --git a/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDWeakProxy.h b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDWeakProxy.h new file mode 100644 index 000000000..d92c682be --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDWeakProxy.h @@ -0,0 +1,20 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import +#import "SDWebImageCompat.h" + +/// A weak proxy which forward all the message to the target +@interface SDWeakProxy : NSProxy + +@property (nonatomic, weak, readonly, nullable) id target; + +- (nonnull instancetype)initWithTarget:(nonnull id)target; ++ (nonnull instancetype)proxyWithTarget:(nonnull id)target; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDWebImageTransitionInternal.h b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDWebImageTransitionInternal.h new file mode 100644 index 000000000..1b70649a4 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDWebImageTransitionInternal.h @@ -0,0 +1,19 @@ +/* +* This file is part of the SDWebImage package. +* (c) Olivier Poitrey +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + +#import "SDWebImageCompat.h" + +#if SD_MAC + +#import + +/// Helper method for Core Animation transition +FOUNDATION_EXPORT CAMediaTimingFunction * _Nullable SDTimingFunctionFromAnimationOptions(SDWebImageAnimationOptions options); +FOUNDATION_EXPORT CATransition * _Nullable SDTransitionFromAnimationOptions(SDWebImageAnimationOptions options); + +#endif diff --git a/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDmetamacros.h b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDmetamacros.h new file mode 100644 index 000000000..dd90d99bb --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/SDmetamacros.h @@ -0,0 +1,667 @@ +/** + * Macros for metaprogramming + * ExtendedC + * + * Copyright (C) 2012 Justin Spahr-Summers + * Released under the MIT license + */ + +#ifndef EXTC_METAMACROS_H +#define EXTC_METAMACROS_H + + +/** + * Executes one or more expressions (which may have a void type, such as a call + * to a function that returns no value) and always returns true. + */ +#define metamacro_exprify(...) \ + ((__VA_ARGS__), true) + +/** + * Returns a string representation of VALUE after full macro expansion. + */ +#define metamacro_stringify(VALUE) \ + metamacro_stringify_(VALUE) + +/** + * Returns A and B concatenated after full macro expansion. + */ +#define metamacro_concat(A, B) \ + metamacro_concat_(A, B) + +/** + * Returns the Nth variadic argument (starting from zero). At least + * N + 1 variadic arguments must be given. N must be between zero and twenty, + * inclusive. + */ +#define metamacro_at(N, ...) \ + metamacro_concat(metamacro_at, N)(__VA_ARGS__) + +/** + * Returns the number of arguments (up to twenty) provided to the macro. At + * least one argument must be provided. + * + * Inspired by P99: http://p99.gforge.inria.fr + */ +#define metamacro_argcount(...) \ + metamacro_at(20, __VA_ARGS__, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1) + +/** + * Identical to #metamacro_foreach_cxt, except that no CONTEXT argument is + * given. Only the index and current argument will thus be passed to MACRO. + */ +#define metamacro_foreach(MACRO, SEP, ...) \ + metamacro_foreach_cxt(metamacro_foreach_iter, SEP, MACRO, __VA_ARGS__) + +/** + * For each consecutive variadic argument (up to twenty), MACRO is passed the + * zero-based index of the current argument, CONTEXT, and then the argument + * itself. The results of adjoining invocations of MACRO are then separated by + * SEP. + * + * Inspired by P99: http://p99.gforge.inria.fr + */ +#define metamacro_foreach_cxt(MACRO, SEP, CONTEXT, ...) \ + metamacro_concat(metamacro_foreach_cxt, metamacro_argcount(__VA_ARGS__))(MACRO, SEP, CONTEXT, __VA_ARGS__) + +/** + * Identical to #metamacro_foreach_cxt. This can be used when the former would + * fail due to recursive macro expansion. + */ +#define metamacro_foreach_cxt_recursive(MACRO, SEP, CONTEXT, ...) \ + metamacro_concat(metamacro_foreach_cxt_recursive, metamacro_argcount(__VA_ARGS__))(MACRO, SEP, CONTEXT, __VA_ARGS__) + +/** + * In consecutive order, appends each variadic argument (up to twenty) onto + * BASE. The resulting concatenations are then separated by SEP. + * + * This is primarily useful to manipulate a list of macro invocations into instead + * invoking a different, possibly related macro. + */ +#define metamacro_foreach_concat(BASE, SEP, ...) \ + metamacro_foreach_cxt(metamacro_foreach_concat_iter, SEP, BASE, __VA_ARGS__) + +/** + * Iterates COUNT times, each time invoking MACRO with the current index + * (starting at zero) and CONTEXT. The results of adjoining invocations of MACRO + * are then separated by SEP. + * + * COUNT must be an integer between zero and twenty, inclusive. + */ +#define metamacro_for_cxt(COUNT, MACRO, SEP, CONTEXT) \ + metamacro_concat(metamacro_for_cxt, COUNT)(MACRO, SEP, CONTEXT) + +/** + * Returns the first argument given. At least one argument must be provided. + * + * This is useful when implementing a variadic macro, where you may have only + * one variadic argument, but no way to retrieve it (for example, because \c ... + * always needs to match at least one argument). + * + * @code + +#define varmacro(...) \ + metamacro_head(__VA_ARGS__) + + * @endcode + */ +#define metamacro_head(...) \ + metamacro_head_(__VA_ARGS__, 0) + +/** + * Returns every argument except the first. At least two arguments must be + * provided. + */ +#define metamacro_tail(...) \ + metamacro_tail_(__VA_ARGS__) + +/** + * Returns the first N (up to twenty) variadic arguments as a new argument list. + * At least N variadic arguments must be provided. + */ +#define metamacro_take(N, ...) \ + metamacro_concat(metamacro_take, N)(__VA_ARGS__) + +/** + * Removes the first N (up to twenty) variadic arguments from the given argument + * list. At least N variadic arguments must be provided. + */ +#define metamacro_drop(N, ...) \ + metamacro_concat(metamacro_drop, N)(__VA_ARGS__) + +/** + * Decrements VAL, which must be a number between zero and twenty, inclusive. + * + * This is primarily useful when dealing with indexes and counts in + * metaprogramming. + */ +#define metamacro_dec(VAL) \ + metamacro_at(VAL, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19) + +/** + * Increments VAL, which must be a number between zero and twenty, inclusive. + * + * This is primarily useful when dealing with indexes and counts in + * metaprogramming. + */ +#define metamacro_inc(VAL) \ + metamacro_at(VAL, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21) + +/** + * If A is equal to B, the next argument list is expanded; otherwise, the + * argument list after that is expanded. A and B must be numbers between zero + * and twenty, inclusive. Additionally, B must be greater than or equal to A. + * + * @code + +// expands to true +metamacro_if_eq(0, 0)(true)(false) + +// expands to false +metamacro_if_eq(0, 1)(true)(false) + + * @endcode + * + * This is primarily useful when dealing with indexes and counts in + * metaprogramming. + */ +#define metamacro_if_eq(A, B) \ + metamacro_concat(metamacro_if_eq, A)(B) + +/** + * Identical to #metamacro_if_eq. This can be used when the former would fail + * due to recursive macro expansion. + */ +#define metamacro_if_eq_recursive(A, B) \ + metamacro_concat(metamacro_if_eq_recursive, A)(B) + +/** + * Returns 1 if N is an even number, or 0 otherwise. N must be between zero and + * twenty, inclusive. + * + * For the purposes of this test, zero is considered even. + */ +#define metamacro_is_even(N) \ + metamacro_at(N, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1) + +/** + * Returns the logical NOT of B, which must be the number zero or one. + */ +#define metamacro_not(B) \ + metamacro_at(B, 1, 0) + +// IMPLEMENTATION DETAILS FOLLOW! +// Do not write code that depends on anything below this line. +#define metamacro_stringify_(VALUE) # VALUE +#define metamacro_concat_(A, B) A ## B +#define metamacro_foreach_iter(INDEX, MACRO, ARG) MACRO(INDEX, ARG) +#define metamacro_head_(FIRST, ...) FIRST +#define metamacro_tail_(FIRST, ...) __VA_ARGS__ +#define metamacro_consume_(...) +#define metamacro_expand_(...) __VA_ARGS__ + +// implemented from scratch so that metamacro_concat() doesn't end up nesting +#define metamacro_foreach_concat_iter(INDEX, BASE, ARG) metamacro_foreach_concat_iter_(BASE, ARG) +#define metamacro_foreach_concat_iter_(BASE, ARG) BASE ## ARG + +// metamacro_at expansions +#define metamacro_at0(...) metamacro_head(__VA_ARGS__) +#define metamacro_at1(_0, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at2(_0, _1, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at3(_0, _1, _2, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at4(_0, _1, _2, _3, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at5(_0, _1, _2, _3, _4, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at6(_0, _1, _2, _3, _4, _5, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at7(_0, _1, _2, _3, _4, _5, _6, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at8(_0, _1, _2, _3, _4, _5, _6, _7, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at9(_0, _1, _2, _3, _4, _5, _6, _7, _8, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at10(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at11(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at12(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at13(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at14(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at15(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at16(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at17(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at18(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at19(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, ...) metamacro_head(__VA_ARGS__) +#define metamacro_at20(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, ...) metamacro_head(__VA_ARGS__) + +// metamacro_foreach_cxt expansions +#define metamacro_foreach_cxt0(MACRO, SEP, CONTEXT) +#define metamacro_foreach_cxt1(MACRO, SEP, CONTEXT, _0) MACRO(0, CONTEXT, _0) + +#define metamacro_foreach_cxt2(MACRO, SEP, CONTEXT, _0, _1) \ + metamacro_foreach_cxt1(MACRO, SEP, CONTEXT, _0) \ + SEP \ + MACRO(1, CONTEXT, _1) + +#define metamacro_foreach_cxt3(MACRO, SEP, CONTEXT, _0, _1, _2) \ + metamacro_foreach_cxt2(MACRO, SEP, CONTEXT, _0, _1) \ + SEP \ + MACRO(2, CONTEXT, _2) + +#define metamacro_foreach_cxt4(MACRO, SEP, CONTEXT, _0, _1, _2, _3) \ + metamacro_foreach_cxt3(MACRO, SEP, CONTEXT, _0, _1, _2) \ + SEP \ + MACRO(3, CONTEXT, _3) + +#define metamacro_foreach_cxt5(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4) \ + metamacro_foreach_cxt4(MACRO, SEP, CONTEXT, _0, _1, _2, _3) \ + SEP \ + MACRO(4, CONTEXT, _4) + +#define metamacro_foreach_cxt6(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5) \ + metamacro_foreach_cxt5(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4) \ + SEP \ + MACRO(5, CONTEXT, _5) + +#define metamacro_foreach_cxt7(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6) \ + metamacro_foreach_cxt6(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5) \ + SEP \ + MACRO(6, CONTEXT, _6) + +#define metamacro_foreach_cxt8(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7) \ + metamacro_foreach_cxt7(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6) \ + SEP \ + MACRO(7, CONTEXT, _7) + +#define metamacro_foreach_cxt9(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8) \ + metamacro_foreach_cxt8(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7) \ + SEP \ + MACRO(8, CONTEXT, _8) + +#define metamacro_foreach_cxt10(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9) \ + metamacro_foreach_cxt9(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8) \ + SEP \ + MACRO(9, CONTEXT, _9) + +#define metamacro_foreach_cxt11(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10) \ + metamacro_foreach_cxt10(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9) \ + SEP \ + MACRO(10, CONTEXT, _10) + +#define metamacro_foreach_cxt12(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11) \ + metamacro_foreach_cxt11(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10) \ + SEP \ + MACRO(11, CONTEXT, _11) + +#define metamacro_foreach_cxt13(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12) \ + metamacro_foreach_cxt12(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11) \ + SEP \ + MACRO(12, CONTEXT, _12) + +#define metamacro_foreach_cxt14(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13) \ + metamacro_foreach_cxt13(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12) \ + SEP \ + MACRO(13, CONTEXT, _13) + +#define metamacro_foreach_cxt15(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14) \ + metamacro_foreach_cxt14(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13) \ + SEP \ + MACRO(14, CONTEXT, _14) + +#define metamacro_foreach_cxt16(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15) \ + metamacro_foreach_cxt15(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14) \ + SEP \ + MACRO(15, CONTEXT, _15) + +#define metamacro_foreach_cxt17(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16) \ + metamacro_foreach_cxt16(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15) \ + SEP \ + MACRO(16, CONTEXT, _16) + +#define metamacro_foreach_cxt18(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17) \ + metamacro_foreach_cxt17(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16) \ + SEP \ + MACRO(17, CONTEXT, _17) + +#define metamacro_foreach_cxt19(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18) \ + metamacro_foreach_cxt18(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17) \ + SEP \ + MACRO(18, CONTEXT, _18) + +#define metamacro_foreach_cxt20(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19) \ + metamacro_foreach_cxt19(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18) \ + SEP \ + MACRO(19, CONTEXT, _19) + +// metamacro_foreach_cxt_recursive expansions +#define metamacro_foreach_cxt_recursive0(MACRO, SEP, CONTEXT) +#define metamacro_foreach_cxt_recursive1(MACRO, SEP, CONTEXT, _0) MACRO(0, CONTEXT, _0) + +#define metamacro_foreach_cxt_recursive2(MACRO, SEP, CONTEXT, _0, _1) \ + metamacro_foreach_cxt_recursive1(MACRO, SEP, CONTEXT, _0) \ + SEP \ + MACRO(1, CONTEXT, _1) + +#define metamacro_foreach_cxt_recursive3(MACRO, SEP, CONTEXT, _0, _1, _2) \ + metamacro_foreach_cxt_recursive2(MACRO, SEP, CONTEXT, _0, _1) \ + SEP \ + MACRO(2, CONTEXT, _2) + +#define metamacro_foreach_cxt_recursive4(MACRO, SEP, CONTEXT, _0, _1, _2, _3) \ + metamacro_foreach_cxt_recursive3(MACRO, SEP, CONTEXT, _0, _1, _2) \ + SEP \ + MACRO(3, CONTEXT, _3) + +#define metamacro_foreach_cxt_recursive5(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4) \ + metamacro_foreach_cxt_recursive4(MACRO, SEP, CONTEXT, _0, _1, _2, _3) \ + SEP \ + MACRO(4, CONTEXT, _4) + +#define metamacro_foreach_cxt_recursive6(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5) \ + metamacro_foreach_cxt_recursive5(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4) \ + SEP \ + MACRO(5, CONTEXT, _5) + +#define metamacro_foreach_cxt_recursive7(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6) \ + metamacro_foreach_cxt_recursive6(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5) \ + SEP \ + MACRO(6, CONTEXT, _6) + +#define metamacro_foreach_cxt_recursive8(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7) \ + metamacro_foreach_cxt_recursive7(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6) \ + SEP \ + MACRO(7, CONTEXT, _7) + +#define metamacro_foreach_cxt_recursive9(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8) \ + metamacro_foreach_cxt_recursive8(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7) \ + SEP \ + MACRO(8, CONTEXT, _8) + +#define metamacro_foreach_cxt_recursive10(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9) \ + metamacro_foreach_cxt_recursive9(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8) \ + SEP \ + MACRO(9, CONTEXT, _9) + +#define metamacro_foreach_cxt_recursive11(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10) \ + metamacro_foreach_cxt_recursive10(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9) \ + SEP \ + MACRO(10, CONTEXT, _10) + +#define metamacro_foreach_cxt_recursive12(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11) \ + metamacro_foreach_cxt_recursive11(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10) \ + SEP \ + MACRO(11, CONTEXT, _11) + +#define metamacro_foreach_cxt_recursive13(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12) \ + metamacro_foreach_cxt_recursive12(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11) \ + SEP \ + MACRO(12, CONTEXT, _12) + +#define metamacro_foreach_cxt_recursive14(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13) \ + metamacro_foreach_cxt_recursive13(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12) \ + SEP \ + MACRO(13, CONTEXT, _13) + +#define metamacro_foreach_cxt_recursive15(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14) \ + metamacro_foreach_cxt_recursive14(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13) \ + SEP \ + MACRO(14, CONTEXT, _14) + +#define metamacro_foreach_cxt_recursive16(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15) \ + metamacro_foreach_cxt_recursive15(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14) \ + SEP \ + MACRO(15, CONTEXT, _15) + +#define metamacro_foreach_cxt_recursive17(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16) \ + metamacro_foreach_cxt_recursive16(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15) \ + SEP \ + MACRO(16, CONTEXT, _16) + +#define metamacro_foreach_cxt_recursive18(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17) \ + metamacro_foreach_cxt_recursive17(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16) \ + SEP \ + MACRO(17, CONTEXT, _17) + +#define metamacro_foreach_cxt_recursive19(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18) \ + metamacro_foreach_cxt_recursive18(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17) \ + SEP \ + MACRO(18, CONTEXT, _18) + +#define metamacro_foreach_cxt_recursive20(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19) \ + metamacro_foreach_cxt_recursive19(MACRO, SEP, CONTEXT, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18) \ + SEP \ + MACRO(19, CONTEXT, _19) + +// metamacro_for_cxt expansions +#define metamacro_for_cxt0(MACRO, SEP, CONTEXT) +#define metamacro_for_cxt1(MACRO, SEP, CONTEXT) MACRO(0, CONTEXT) + +#define metamacro_for_cxt2(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt1(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(1, CONTEXT) + +#define metamacro_for_cxt3(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt2(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(2, CONTEXT) + +#define metamacro_for_cxt4(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt3(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(3, CONTEXT) + +#define metamacro_for_cxt5(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt4(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(4, CONTEXT) + +#define metamacro_for_cxt6(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt5(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(5, CONTEXT) + +#define metamacro_for_cxt7(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt6(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(6, CONTEXT) + +#define metamacro_for_cxt8(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt7(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(7, CONTEXT) + +#define metamacro_for_cxt9(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt8(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(8, CONTEXT) + +#define metamacro_for_cxt10(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt9(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(9, CONTEXT) + +#define metamacro_for_cxt11(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt10(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(10, CONTEXT) + +#define metamacro_for_cxt12(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt11(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(11, CONTEXT) + +#define metamacro_for_cxt13(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt12(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(12, CONTEXT) + +#define metamacro_for_cxt14(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt13(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(13, CONTEXT) + +#define metamacro_for_cxt15(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt14(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(14, CONTEXT) + +#define metamacro_for_cxt16(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt15(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(15, CONTEXT) + +#define metamacro_for_cxt17(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt16(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(16, CONTEXT) + +#define metamacro_for_cxt18(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt17(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(17, CONTEXT) + +#define metamacro_for_cxt19(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt18(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(18, CONTEXT) + +#define metamacro_for_cxt20(MACRO, SEP, CONTEXT) \ + metamacro_for_cxt19(MACRO, SEP, CONTEXT) \ + SEP \ + MACRO(19, CONTEXT) + +// metamacro_if_eq expansions +#define metamacro_if_eq0(VALUE) \ + metamacro_concat(metamacro_if_eq0_, VALUE) + +#define metamacro_if_eq0_0(...) __VA_ARGS__ metamacro_consume_ +#define metamacro_if_eq0_1(...) metamacro_expand_ +#define metamacro_if_eq0_2(...) metamacro_expand_ +#define metamacro_if_eq0_3(...) metamacro_expand_ +#define metamacro_if_eq0_4(...) metamacro_expand_ +#define metamacro_if_eq0_5(...) metamacro_expand_ +#define metamacro_if_eq0_6(...) metamacro_expand_ +#define metamacro_if_eq0_7(...) metamacro_expand_ +#define metamacro_if_eq0_8(...) metamacro_expand_ +#define metamacro_if_eq0_9(...) metamacro_expand_ +#define metamacro_if_eq0_10(...) metamacro_expand_ +#define metamacro_if_eq0_11(...) metamacro_expand_ +#define metamacro_if_eq0_12(...) metamacro_expand_ +#define metamacro_if_eq0_13(...) metamacro_expand_ +#define metamacro_if_eq0_14(...) metamacro_expand_ +#define metamacro_if_eq0_15(...) metamacro_expand_ +#define metamacro_if_eq0_16(...) metamacro_expand_ +#define metamacro_if_eq0_17(...) metamacro_expand_ +#define metamacro_if_eq0_18(...) metamacro_expand_ +#define metamacro_if_eq0_19(...) metamacro_expand_ +#define metamacro_if_eq0_20(...) metamacro_expand_ + +#define metamacro_if_eq1(VALUE) metamacro_if_eq0(metamacro_dec(VALUE)) +#define metamacro_if_eq2(VALUE) metamacro_if_eq1(metamacro_dec(VALUE)) +#define metamacro_if_eq3(VALUE) metamacro_if_eq2(metamacro_dec(VALUE)) +#define metamacro_if_eq4(VALUE) metamacro_if_eq3(metamacro_dec(VALUE)) +#define metamacro_if_eq5(VALUE) metamacro_if_eq4(metamacro_dec(VALUE)) +#define metamacro_if_eq6(VALUE) metamacro_if_eq5(metamacro_dec(VALUE)) +#define metamacro_if_eq7(VALUE) metamacro_if_eq6(metamacro_dec(VALUE)) +#define metamacro_if_eq8(VALUE) metamacro_if_eq7(metamacro_dec(VALUE)) +#define metamacro_if_eq9(VALUE) metamacro_if_eq8(metamacro_dec(VALUE)) +#define metamacro_if_eq10(VALUE) metamacro_if_eq9(metamacro_dec(VALUE)) +#define metamacro_if_eq11(VALUE) metamacro_if_eq10(metamacro_dec(VALUE)) +#define metamacro_if_eq12(VALUE) metamacro_if_eq11(metamacro_dec(VALUE)) +#define metamacro_if_eq13(VALUE) metamacro_if_eq12(metamacro_dec(VALUE)) +#define metamacro_if_eq14(VALUE) metamacro_if_eq13(metamacro_dec(VALUE)) +#define metamacro_if_eq15(VALUE) metamacro_if_eq14(metamacro_dec(VALUE)) +#define metamacro_if_eq16(VALUE) metamacro_if_eq15(metamacro_dec(VALUE)) +#define metamacro_if_eq17(VALUE) metamacro_if_eq16(metamacro_dec(VALUE)) +#define metamacro_if_eq18(VALUE) metamacro_if_eq17(metamacro_dec(VALUE)) +#define metamacro_if_eq19(VALUE) metamacro_if_eq18(metamacro_dec(VALUE)) +#define metamacro_if_eq20(VALUE) metamacro_if_eq19(metamacro_dec(VALUE)) + +// metamacro_if_eq_recursive expansions +#define metamacro_if_eq_recursive0(VALUE) \ + metamacro_concat(metamacro_if_eq_recursive0_, VALUE) + +#define metamacro_if_eq_recursive0_0(...) __VA_ARGS__ metamacro_consume_ +#define metamacro_if_eq_recursive0_1(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_2(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_3(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_4(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_5(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_6(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_7(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_8(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_9(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_10(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_11(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_12(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_13(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_14(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_15(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_16(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_17(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_18(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_19(...) metamacro_expand_ +#define metamacro_if_eq_recursive0_20(...) metamacro_expand_ + +#define metamacro_if_eq_recursive1(VALUE) metamacro_if_eq_recursive0(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive2(VALUE) metamacro_if_eq_recursive1(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive3(VALUE) metamacro_if_eq_recursive2(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive4(VALUE) metamacro_if_eq_recursive3(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive5(VALUE) metamacro_if_eq_recursive4(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive6(VALUE) metamacro_if_eq_recursive5(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive7(VALUE) metamacro_if_eq_recursive6(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive8(VALUE) metamacro_if_eq_recursive7(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive9(VALUE) metamacro_if_eq_recursive8(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive10(VALUE) metamacro_if_eq_recursive9(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive11(VALUE) metamacro_if_eq_recursive10(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive12(VALUE) metamacro_if_eq_recursive11(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive13(VALUE) metamacro_if_eq_recursive12(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive14(VALUE) metamacro_if_eq_recursive13(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive15(VALUE) metamacro_if_eq_recursive14(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive16(VALUE) metamacro_if_eq_recursive15(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive17(VALUE) metamacro_if_eq_recursive16(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive18(VALUE) metamacro_if_eq_recursive17(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive19(VALUE) metamacro_if_eq_recursive18(metamacro_dec(VALUE)) +#define metamacro_if_eq_recursive20(VALUE) metamacro_if_eq_recursive19(metamacro_dec(VALUE)) + +// metamacro_take expansions +#define metamacro_take0(...) +#define metamacro_take1(...) metamacro_head(__VA_ARGS__) +#define metamacro_take2(...) metamacro_head(__VA_ARGS__), metamacro_take1(metamacro_tail(__VA_ARGS__)) +#define metamacro_take3(...) metamacro_head(__VA_ARGS__), metamacro_take2(metamacro_tail(__VA_ARGS__)) +#define metamacro_take4(...) metamacro_head(__VA_ARGS__), metamacro_take3(metamacro_tail(__VA_ARGS__)) +#define metamacro_take5(...) metamacro_head(__VA_ARGS__), metamacro_take4(metamacro_tail(__VA_ARGS__)) +#define metamacro_take6(...) metamacro_head(__VA_ARGS__), metamacro_take5(metamacro_tail(__VA_ARGS__)) +#define metamacro_take7(...) metamacro_head(__VA_ARGS__), metamacro_take6(metamacro_tail(__VA_ARGS__)) +#define metamacro_take8(...) metamacro_head(__VA_ARGS__), metamacro_take7(metamacro_tail(__VA_ARGS__)) +#define metamacro_take9(...) metamacro_head(__VA_ARGS__), metamacro_take8(metamacro_tail(__VA_ARGS__)) +#define metamacro_take10(...) metamacro_head(__VA_ARGS__), metamacro_take9(metamacro_tail(__VA_ARGS__)) +#define metamacro_take11(...) metamacro_head(__VA_ARGS__), metamacro_take10(metamacro_tail(__VA_ARGS__)) +#define metamacro_take12(...) metamacro_head(__VA_ARGS__), metamacro_take11(metamacro_tail(__VA_ARGS__)) +#define metamacro_take13(...) metamacro_head(__VA_ARGS__), metamacro_take12(metamacro_tail(__VA_ARGS__)) +#define metamacro_take14(...) metamacro_head(__VA_ARGS__), metamacro_take13(metamacro_tail(__VA_ARGS__)) +#define metamacro_take15(...) metamacro_head(__VA_ARGS__), metamacro_take14(metamacro_tail(__VA_ARGS__)) +#define metamacro_take16(...) metamacro_head(__VA_ARGS__), metamacro_take15(metamacro_tail(__VA_ARGS__)) +#define metamacro_take17(...) metamacro_head(__VA_ARGS__), metamacro_take16(metamacro_tail(__VA_ARGS__)) +#define metamacro_take18(...) metamacro_head(__VA_ARGS__), metamacro_take17(metamacro_tail(__VA_ARGS__)) +#define metamacro_take19(...) metamacro_head(__VA_ARGS__), metamacro_take18(metamacro_tail(__VA_ARGS__)) +#define metamacro_take20(...) metamacro_head(__VA_ARGS__), metamacro_take19(metamacro_tail(__VA_ARGS__)) + +// metamacro_drop expansions +#define metamacro_drop0(...) __VA_ARGS__ +#define metamacro_drop1(...) metamacro_tail(__VA_ARGS__) +#define metamacro_drop2(...) metamacro_drop1(metamacro_tail(__VA_ARGS__)) +#define metamacro_drop3(...) metamacro_drop2(metamacro_tail(__VA_ARGS__)) +#define metamacro_drop4(...) metamacro_drop3(metamacro_tail(__VA_ARGS__)) +#define metamacro_drop5(...) metamacro_drop4(metamacro_tail(__VA_ARGS__)) +#define metamacro_drop6(...) metamacro_drop5(metamacro_tail(__VA_ARGS__)) +#define metamacro_drop7(...) metamacro_drop6(metamacro_tail(__VA_ARGS__)) +#define metamacro_drop8(...) metamacro_drop7(metamacro_tail(__VA_ARGS__)) +#define metamacro_drop9(...) metamacro_drop8(metamacro_tail(__VA_ARGS__)) +#define metamacro_drop10(...) metamacro_drop9(metamacro_tail(__VA_ARGS__)) +#define metamacro_drop11(...) metamacro_drop10(metamacro_tail(__VA_ARGS__)) +#define metamacro_drop12(...) metamacro_drop11(metamacro_tail(__VA_ARGS__)) +#define metamacro_drop13(...) metamacro_drop12(metamacro_tail(__VA_ARGS__)) +#define metamacro_drop14(...) metamacro_drop13(metamacro_tail(__VA_ARGS__)) +#define metamacro_drop15(...) metamacro_drop14(metamacro_tail(__VA_ARGS__)) +#define metamacro_drop16(...) metamacro_drop15(metamacro_tail(__VA_ARGS__)) +#define metamacro_drop17(...) metamacro_drop16(metamacro_tail(__VA_ARGS__)) +#define metamacro_drop18(...) metamacro_drop17(metamacro_tail(__VA_ARGS__)) +#define metamacro_drop19(...) metamacro_drop18(metamacro_tail(__VA_ARGS__)) +#define metamacro_drop20(...) metamacro_drop19(metamacro_tail(__VA_ARGS__)) + +#endif diff --git a/Vendors/simulator/SDWebImage.framework/PrivateHeaders/UIColor+SDHexString.h b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/UIColor+SDHexString.h new file mode 100644 index 000000000..cf67186fc --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/PrivateHeaders/UIColor+SDHexString.h @@ -0,0 +1,18 @@ +/* + * This file is part of the SDWebImage package. + * (c) Olivier Poitrey + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +#import "SDWebImageCompat.h" + +@interface UIColor (SDHexString) + +/** + Convenience way to get hex string from color. The output should always be 32-bit RGBA hex string like `#00000000`. + */ +@property (nonatomic, copy, readonly, nonnull) NSString *sd_hexString; + +@end diff --git a/Vendors/simulator/SDWebImage.framework/SDWebImage b/Vendors/simulator/SDWebImage.framework/SDWebImage new file mode 100755 index 000000000..956d951ee Binary files /dev/null and b/Vendors/simulator/SDWebImage.framework/SDWebImage differ diff --git a/Vendors/simulator/SDWebImage.framework/_CodeSignature/CodeResources b/Vendors/simulator/SDWebImage.framework/_CodeSignature/CodeResources new file mode 100644 index 000000000..1bc1ac986 --- /dev/null +++ b/Vendors/simulator/SDWebImage.framework/_CodeSignature/CodeResources @@ -0,0 +1,1272 @@ + + + + + files + + Headers/NSButton+WebCache.h + + kerzpTzut4Y9DK30kKBUAjFRcpU= + + Headers/NSData+ImageContentType.h + + 4Oy+WYBUGO9Wg9M02ey0X0PZNeE= + + Headers/NSImage+Compatibility.h + + IgoqKBotwi7ajNcN7zWtIVYlWkU= + + Headers/SDAnimatedImage.h + + wEwGKw7o6Y+8IgW5NGlNq1ui0pY= + + Headers/SDAnimatedImagePlayer.h + + umuBgniyctLvENMsQ/M26tordQ8= + + Headers/SDAnimatedImageRep.h + + Yt8eKC+fpPiSOgGyGc6xQqnu3KM= + + Headers/SDAnimatedImageView+WebCache.h + + 489fmmZp9/CPyPoO2w6Oo2wI2ZA= + + Headers/SDAnimatedImageView.h + + uOxAU6TgbL6/wOsIwesz95xjJ94= + + Headers/SDCallbackQueue.h + + ZJo6Sa5JwSHFftUrot6e7AqEPQ4= + + Headers/SDDiskCache.h + + +Stln0lIE7wnn6SMSVFIVZXHJN0= + + Headers/SDGraphicsImageRenderer.h + + WxIcdQdoEjM/hX0EarbegAppBek= + + Headers/SDImageAPNGCoder.h + + QoaVXPzM3Wqh4fJ5zyVSURhUvuo= + + Headers/SDImageAWebPCoder.h + + z2cOz0U8ke7rzwQS0qqlUA9WNIo= + + Headers/SDImageCache.h + + GfuoxnwQZTveUzO0wpQmQWnI4ok= + + Headers/SDImageCacheConfig.h + + ZQKLlzdcML6fzbkiXxBpjynvlqw= + + Headers/SDImageCacheDefine.h + + JGUeQAVQAzsI5AM0JZDIgYUQJg0= + + Headers/SDImageCachesManager.h + + EEi3XPzSfUrV7t4eX5+nGYb78qA= + + Headers/SDImageCoder.h + + pIV1EiWRxQJGthu51MKJ2lV23fM= + + Headers/SDImageCoderHelper.h + + osEjlgZTv/0LSDjuOzLOhDU4gSw= + + Headers/SDImageCodersManager.h + + kWuSCn1JQwFRndhsWspbX8YcS04= + + Headers/SDImageFrame.h + + OMHYfH8iLCcQLgZ4YyiDJ9W9S7c= + + Headers/SDImageGIFCoder.h + + gic8eBd8dd3Ycum3hGKDe2YhdA0= + + Headers/SDImageGraphics.h + + W2mWg+eO1NNZoHIb3Z22AyTfuuc= + + Headers/SDImageHEICCoder.h + + kQrjSojz9EH8bowedd6T1E7tlMI= + + Headers/SDImageIOAnimatedCoder.h + + kSMd72JHTHZh0obDPV997cmV1Hw= + + Headers/SDImageIOCoder.h + + 1Vlc9rQwx9IqgFQpVEy50XaLxCM= + + Headers/SDImageLoader.h + + 5BXL40fPBJ5oGsP1iM0QnGdbcPs= + + Headers/SDImageLoadersManager.h + + m3fBhKWZNfRLURmQZcaWZATlRBQ= + + Headers/SDImageTransformer.h + + ub5rvDWk3oIaMpDleW6iTvP4b0E= + + Headers/SDMemoryCache.h + + Kk9HCkkkruGk5kLZSlD0/0rK6po= + + Headers/SDWebImage.h + + HCkBNG4f+fSdK4HG8fGozZdNiL0= + + Headers/SDWebImageCacheKeyFilter.h + + aYH0yhjC5zF2QCLSj2O+NMz0WQg= + + Headers/SDWebImageCacheSerializer.h + + 3Z+TBpDAz0HbWFqUjv/rMeJeB8Q= + + Headers/SDWebImageCompat.h + + AEa8pdBFXYJRKh92y2N/4tJEeo8= + + Headers/SDWebImageDefine.h + + G73w1iM1xpbq8/hu0xrVDleIVpA= + + Headers/SDWebImageDownloader.h + + 6ubrD4w9QVuJfHVkUzUJTCcgn2w= + + Headers/SDWebImageDownloaderConfig.h + + dn8/qqvBQLDAhdDT8drLkiHywII= + + Headers/SDWebImageDownloaderDecryptor.h + + +wmSvaiWPMkVMzkNlMQDpWa6kUY= + + Headers/SDWebImageDownloaderOperation.h + + UJpmtCm9LOMFsGbPOVhSbh8/vLs= + + Headers/SDWebImageDownloaderRequestModifier.h + + Qy4yjYxFiQYtKZSnS84bT4Z7G1c= + + Headers/SDWebImageDownloaderResponseModifier.h + + c6I+X9Wwmw8vcx6ZHlDckWOzI+4= + + Headers/SDWebImageError.h + + FC3IAo7pR4h93t6QeXlmtOHdZvI= + + Headers/SDWebImageIndicator.h + + d4goT+IzohYDq38BvPeR7BTc5iw= + + Headers/SDWebImageManager.h + + xiHH/HCr0tx9VoY3F1eceSzc0rA= + + Headers/SDWebImageOperation.h + + Hitkjp5wpW1nlkxBEFxklBLznXY= + + Headers/SDWebImageOptionsProcessor.h + + +tN4ufzzcshfZfddoW2fki5pPcY= + + Headers/SDWebImagePrefetcher.h + + xMh1Gu+HBzvb1MOuMY5Vt7zYm0M= + + Headers/SDWebImageTransition.h + + T/5y2vKBxqAbm7KWUccowjKnp6Y= + + Headers/UIButton+WebCache.h + + CQ/r9KIZ4rC9OLCgZ8IlI6yO1C0= + + Headers/UIImage+ExtendedCacheData.h + + fCfC7/RKNYGmDHfXG9+Qg8uB5i4= + + Headers/UIImage+ForceDecode.h + + U2UQq4eLIdNIW/q4Txp2/bD4Now= + + Headers/UIImage+GIF.h + + YQ1NHxHIECTuq127MqEt8ssMl2E= + + Headers/UIImage+MemoryCacheCost.h + + LzgPQ2O81SwnuvHsClmNlVmadtw= + + Headers/UIImage+Metadata.h + + lpaPBCiL3qpH1ViGukklKlXkFBw= + + Headers/UIImage+MultiFormat.h + + tJOSxpAbfgpEkLSjOKDTQBvpAGI= + + Headers/UIImage+Transform.h + + a5vrPV939HvOTGW2feEDV92Hypg= + + Headers/UIImageView+HighlightedWebCache.h + + V4leacX4kIZjjFmKNWTOcxEWbRI= + + Headers/UIImageView+WebCache.h + + kJScMN4XyKqi6oIV8vdvgX9QKs0= + + Headers/UIView+WebCache.h + + 6s86639L67mb1Y1aTunR3oS9C+U= + + Headers/UIView+WebCacheOperation.h + + gWoTb4BsM6UfrNyXSanUM+AQLbU= + + Headers/UIView+WebCacheState.h + + 771hZgr2q0NJeFs0oox1EMSX4mM= + + Info.plist + + vhYIpgKgnn2TnmVk8+UlFBxKy2M= + + Modules/module.modulemap + + DCDzAF1C1qsuicpmkZhe6IrGwkA= + + PrivacyInfo.xcprivacy + + PFHYbs0V3eUFDWQyYQcwEetuqEk= + + PrivateHeaders/NSBezierPath+SDRoundedCorners.h + + hVf10BOSXAmUGUC+yd0ztOAH4BY= + + PrivateHeaders/SDAssociatedObject.h + + vGTBkYhQJTlD6ZChh2vQXaWhC0U= + + PrivateHeaders/SDAsyncBlockOperation.h + + snzjaBGyE/z0cdUS9+aJRKrxDnI= + + PrivateHeaders/SDDeviceHelper.h + + /JSjyySMNJYdu/u8oS3wwS+0FCQ= + + PrivateHeaders/SDDisplayLink.h + + ylFFSzJbR+eq7L+qXMeezb4OXSs= + + PrivateHeaders/SDFileAttributeHelper.h + + sb2CUGqQfxIv2pbTDH1eH9Tx/lc= + + PrivateHeaders/SDImageAssetManager.h + + 8EwarZm30x7czN6Nn9NHYxVbepY= + + PrivateHeaders/SDImageCachesManagerOperation.h + + FO5aLhjBQ2flj+39N/ihTId+Yx4= + + PrivateHeaders/SDImageFramePool.h + + p4Uj8gNLlVyG4aMmYvdqi2/YJHI= + + PrivateHeaders/SDImageIOAnimatedCoderInternal.h + + yRyBajzOGKtZVLxl+zfgBTI0FnA= + + PrivateHeaders/SDInternalMacros.h + + Lns/aWnsokOaPUSXXvUqGIetRr4= + + PrivateHeaders/SDWeakProxy.h + + sDlUvBrJYVMQKR39qPnbjcghuhk= + + PrivateHeaders/SDWebImageTransitionInternal.h + + IofQDwABOOMR5dycmLjaLz5cOnU= + + PrivateHeaders/SDmetamacros.h + + /UCzmRZdtlxqZdIiubMLZeAL5oo= + + PrivateHeaders/UIColor+SDHexString.h + + bvb2vO3YtXbNaIvieoIZQFZg/Vs= + + + files2 + + Headers/NSButton+WebCache.h + + hash + + kerzpTzut4Y9DK30kKBUAjFRcpU= + + hash2 + + yU2vQj+20+pAJWBFNDuTfYWPe8OCkUpiuWgKxhh7rjI= + + + Headers/NSData+ImageContentType.h + + hash + + 4Oy+WYBUGO9Wg9M02ey0X0PZNeE= + + hash2 + + FlEndsFPP+RVrg+p7+A61uIZwgNx2LotYz+nxrSUxA8= + + + Headers/NSImage+Compatibility.h + + hash + + IgoqKBotwi7ajNcN7zWtIVYlWkU= + + hash2 + + GRpU4OYeo/l4z55bHC3/Tm5xcKdOHksEymmz+v9i68k= + + + Headers/SDAnimatedImage.h + + hash + + wEwGKw7o6Y+8IgW5NGlNq1ui0pY= + + hash2 + + mEWk4+7FtipDtSAX9CdMwmNJZtSbdKG6GUvzybUrxSY= + + + Headers/SDAnimatedImagePlayer.h + + hash + + umuBgniyctLvENMsQ/M26tordQ8= + + hash2 + + 7SD/R/rOdLs8EBPo0GzFBDVndbMTDD4KBvlIa8hx3j4= + + + Headers/SDAnimatedImageRep.h + + hash + + Yt8eKC+fpPiSOgGyGc6xQqnu3KM= + + hash2 + + rXU1YmGNqrf7EJd5bPGvA+zM9K0tcThTsVuSPob0hdU= + + + Headers/SDAnimatedImageView+WebCache.h + + hash + + 489fmmZp9/CPyPoO2w6Oo2wI2ZA= + + hash2 + + c4F0igYmbpW8pKWYoSurnGBCipQHW7+Zk7PhRfRmzEI= + + + Headers/SDAnimatedImageView.h + + hash + + uOxAU6TgbL6/wOsIwesz95xjJ94= + + hash2 + + UZ+4Unwfz84nP+XpEaU58xqefnS73IrYcw4VGiwSzEQ= + + + Headers/SDCallbackQueue.h + + hash + + ZJo6Sa5JwSHFftUrot6e7AqEPQ4= + + hash2 + + +uUJ5lhcN6LJArk11wb8jXWrxoonLilauKr0jN2cHz0= + + + Headers/SDDiskCache.h + + hash + + +Stln0lIE7wnn6SMSVFIVZXHJN0= + + hash2 + + mVkH0pCyG12ArH9oUmS0+yx4+UTvHhHCEn3NRoNxs0w= + + + Headers/SDGraphicsImageRenderer.h + + hash + + WxIcdQdoEjM/hX0EarbegAppBek= + + hash2 + + AHMv5IVi08vkKDNKtz7n7er1fURexQKAfW8TGofit+I= + + + Headers/SDImageAPNGCoder.h + + hash + + QoaVXPzM3Wqh4fJ5zyVSURhUvuo= + + hash2 + + BmW8I1K0wbkaUU5qUxht8LFF0rMHB80qravT/B2y7wQ= + + + Headers/SDImageAWebPCoder.h + + hash + + z2cOz0U8ke7rzwQS0qqlUA9WNIo= + + hash2 + + qNekBkSJ1CJcnSEWcr9hU2plkh9J+8YcCds/1Vw0IHQ= + + + Headers/SDImageCache.h + + hash + + GfuoxnwQZTveUzO0wpQmQWnI4ok= + + hash2 + + T7WTmmq84N41e7wAdyf2S2ClNKghMkfukyLhA57mmmo= + + + Headers/SDImageCacheConfig.h + + hash + + ZQKLlzdcML6fzbkiXxBpjynvlqw= + + hash2 + + KXcPQelBhicoOVr+07WLwTaO9S6uGj9MW5irIucJO6o= + + + Headers/SDImageCacheDefine.h + + hash + + JGUeQAVQAzsI5AM0JZDIgYUQJg0= + + hash2 + + Wi1D/1DYt5p7FAdtmQg44ZTZyyGPZMYkbKKpooE4bZE= + + + Headers/SDImageCachesManager.h + + hash + + EEi3XPzSfUrV7t4eX5+nGYb78qA= + + hash2 + + igzO9GqQ6yyT4LjTjlmsP+X6wy87ckegAwVi+0jCEQ4= + + + Headers/SDImageCoder.h + + hash + + pIV1EiWRxQJGthu51MKJ2lV23fM= + + hash2 + + 8W+yN3a28biW91X18DWE7LNOWWFRkzWM2LEV6sMQuC4= + + + Headers/SDImageCoderHelper.h + + hash + + osEjlgZTv/0LSDjuOzLOhDU4gSw= + + hash2 + + Ofg0MEDWYFwoc9pNQAby89cWC8qpL5L9HLiZ0R7IEZQ= + + + Headers/SDImageCodersManager.h + + hash + + kWuSCn1JQwFRndhsWspbX8YcS04= + + hash2 + + MpSFV9SfX6arHPiClt+/gNjg1IFhSrGQAXRztUCuZHM= + + + Headers/SDImageFrame.h + + hash + + OMHYfH8iLCcQLgZ4YyiDJ9W9S7c= + + hash2 + + 6q5axlkCIoLdNPTgEtPNPyw1DF+5l8zfFPUqljPimsk= + + + Headers/SDImageGIFCoder.h + + hash + + gic8eBd8dd3Ycum3hGKDe2YhdA0= + + hash2 + + Rl5ROAfuQFIllM3APjTC4ScpBB3LzNX+3VSSu100ss0= + + + Headers/SDImageGraphics.h + + hash + + W2mWg+eO1NNZoHIb3Z22AyTfuuc= + + hash2 + + pM0fpHGZ+kPKKcerF6edVEiWftOGR5l5p1lUKUnxutk= + + + Headers/SDImageHEICCoder.h + + hash + + kQrjSojz9EH8bowedd6T1E7tlMI= + + hash2 + + WeEw9x868k0NoVrEPsNaFVZNnRWK4wYEv7Oqf0x//j0= + + + Headers/SDImageIOAnimatedCoder.h + + hash + + kSMd72JHTHZh0obDPV997cmV1Hw= + + hash2 + + XN5nQ+S7fJ7Sv8yQiwWb+l5YvNaOuF/J5kyOMbwL4Yk= + + + Headers/SDImageIOCoder.h + + hash + + 1Vlc9rQwx9IqgFQpVEy50XaLxCM= + + hash2 + + Ygs8T/H3FS87kxd2O3G/4WcOxXi/jzuXo7D9GakQp/s= + + + Headers/SDImageLoader.h + + hash + + 5BXL40fPBJ5oGsP1iM0QnGdbcPs= + + hash2 + + k5s0BDpNxMcrxoMLndIa1xMYjYlsMPJXhI0DyN3DAvM= + + + Headers/SDImageLoadersManager.h + + hash + + m3fBhKWZNfRLURmQZcaWZATlRBQ= + + hash2 + + pi+kOUzH/FizlRV0/Uv15k2jJuRoHkURndQyyP66U8c= + + + Headers/SDImageTransformer.h + + hash + + ub5rvDWk3oIaMpDleW6iTvP4b0E= + + hash2 + + BzjfnFk3ByWFzI/t2yVsL4ff4p/twCRCAxnNkEr8v8M= + + + Headers/SDMemoryCache.h + + hash + + Kk9HCkkkruGk5kLZSlD0/0rK6po= + + hash2 + + kETUHE9yf4Vaxm133lqriAzmP3oLT/v4PWBLZm45Wac= + + + Headers/SDWebImage.h + + hash + + HCkBNG4f+fSdK4HG8fGozZdNiL0= + + hash2 + + RzW3faycWKnFoi8a02SG2OFaUS3A1bYy4WPXRdprCKA= + + + Headers/SDWebImageCacheKeyFilter.h + + hash + + aYH0yhjC5zF2QCLSj2O+NMz0WQg= + + hash2 + + XbPrloD/gfU7g5lRm91x2vMzVvpglaaL7a2WAnW+cNg= + + + Headers/SDWebImageCacheSerializer.h + + hash + + 3Z+TBpDAz0HbWFqUjv/rMeJeB8Q= + + hash2 + + VMTn0QvKDVDRkKdFHwbcrjvicIwKj0MKorGrJcQlFaE= + + + Headers/SDWebImageCompat.h + + hash + + AEa8pdBFXYJRKh92y2N/4tJEeo8= + + hash2 + + +jMrw1mIVyVZYOm/Cx/Em4elpiJxcBqFi68x9ummGhw= + + + Headers/SDWebImageDefine.h + + hash + + G73w1iM1xpbq8/hu0xrVDleIVpA= + + hash2 + + G22kYuU8I///FW3RanrZit1duLPzVek1FDDjYVrMmOA= + + + Headers/SDWebImageDownloader.h + + hash + + 6ubrD4w9QVuJfHVkUzUJTCcgn2w= + + hash2 + + YtMMZzUjWHilaNYwxcjHrNBVsHTM+TpCZRogGYXlQ5k= + + + Headers/SDWebImageDownloaderConfig.h + + hash + + dn8/qqvBQLDAhdDT8drLkiHywII= + + hash2 + + cx9xDgDgcwrzA7WZzodGHISNOlinC52JA8UlxyiZcKI= + + + Headers/SDWebImageDownloaderDecryptor.h + + hash + + +wmSvaiWPMkVMzkNlMQDpWa6kUY= + + hash2 + + FKBGaywdBkdBkbqEAH8tEty7WspySouebsR8EWFh1tw= + + + Headers/SDWebImageDownloaderOperation.h + + hash + + UJpmtCm9LOMFsGbPOVhSbh8/vLs= + + hash2 + + wCcSP4ADZQp7SG2nO3pESqKyjfn25kObeEFJKihWD6c= + + + Headers/SDWebImageDownloaderRequestModifier.h + + hash + + Qy4yjYxFiQYtKZSnS84bT4Z7G1c= + + hash2 + + ely2wwcrB0UgYuT8cK7UkrjFFeB6qEKdg7Mcas1xvkg= + + + Headers/SDWebImageDownloaderResponseModifier.h + + hash + + c6I+X9Wwmw8vcx6ZHlDckWOzI+4= + + hash2 + + DmKV+NTcDNFkjZOGQ5h44vwDWCRZeul2vzc+SHcQUQs= + + + Headers/SDWebImageError.h + + hash + + FC3IAo7pR4h93t6QeXlmtOHdZvI= + + hash2 + + v000vZmWuZTD6mW0rNs0pqbTyKzZryRFBzb9H0sEzS4= + + + Headers/SDWebImageIndicator.h + + hash + + d4goT+IzohYDq38BvPeR7BTc5iw= + + hash2 + + MDKI/ZSjy+r9C2ncvk/1ZwGZ+c5AK5eakmNXS/wWA8Y= + + + Headers/SDWebImageManager.h + + hash + + xiHH/HCr0tx9VoY3F1eceSzc0rA= + + hash2 + + R6U+hFzGejL1cDxtTSrd1ap+R9YOQGp6sDSSA5Dk0B8= + + + Headers/SDWebImageOperation.h + + hash + + Hitkjp5wpW1nlkxBEFxklBLznXY= + + hash2 + + stSfyXNeoUfeIWpAmkzq1RYWGKFDDtXw8xz9XrTDlXg= + + + Headers/SDWebImageOptionsProcessor.h + + hash + + +tN4ufzzcshfZfddoW2fki5pPcY= + + hash2 + + MLr4/XYAKsIVDSMb+mfG7w3K+liH8qTe4lBcHnSHU4U= + + + Headers/SDWebImagePrefetcher.h + + hash + + xMh1Gu+HBzvb1MOuMY5Vt7zYm0M= + + hash2 + + brr5Y7kpCqKbUrsltKgIobZ4Xankz12/Op9BRFEWtzo= + + + Headers/SDWebImageTransition.h + + hash + + T/5y2vKBxqAbm7KWUccowjKnp6Y= + + hash2 + + HJe8qOqRy61joWehD1GFu4GPbrJUkHlzm+A9buZqHG0= + + + Headers/UIButton+WebCache.h + + hash + + CQ/r9KIZ4rC9OLCgZ8IlI6yO1C0= + + hash2 + + C1ctCpMMEySE7HPIZFSv6EPFGboSKWUTJn6yiQqTxBc= + + + Headers/UIImage+ExtendedCacheData.h + + hash + + fCfC7/RKNYGmDHfXG9+Qg8uB5i4= + + hash2 + + /40DnZqAsRHzfcMXHjG2eMa8E22wUQwcZ95V9HZh688= + + + Headers/UIImage+ForceDecode.h + + hash + + U2UQq4eLIdNIW/q4Txp2/bD4Now= + + hash2 + + Z8wk8GiXpqzZl1iobdbm5nIgRZAbn/ZWxUHM7wMYRBQ= + + + Headers/UIImage+GIF.h + + hash + + YQ1NHxHIECTuq127MqEt8ssMl2E= + + hash2 + + NNm7KhFvpIhffaqvzJaIc7ws39cuvtBXZCzzGCyoVsw= + + + Headers/UIImage+MemoryCacheCost.h + + hash + + LzgPQ2O81SwnuvHsClmNlVmadtw= + + hash2 + + ikCrUNKr+vC/RPm2HC4Dl7IOgrCExPpBVz7A8mQ8erI= + + + Headers/UIImage+Metadata.h + + hash + + lpaPBCiL3qpH1ViGukklKlXkFBw= + + hash2 + + 9LL2gDQNa+Qk1JQ4R26bo6cFUi3jOQiJKWJ9AIZXR28= + + + Headers/UIImage+MultiFormat.h + + hash + + tJOSxpAbfgpEkLSjOKDTQBvpAGI= + + hash2 + + MmLcD/FrFSkkfHdDcztp8LrJWG5U3pfcp7ny41PxeLk= + + + Headers/UIImage+Transform.h + + hash + + a5vrPV939HvOTGW2feEDV92Hypg= + + hash2 + + yKpUIJIQv6hO1fio77hVZkYnLROQHvtQOKUriliR+7o= + + + Headers/UIImageView+HighlightedWebCache.h + + hash + + V4leacX4kIZjjFmKNWTOcxEWbRI= + + hash2 + + EPJRLMV/bmuW4OGFh41msEopuK9PgANZXKVZNFosf40= + + + Headers/UIImageView+WebCache.h + + hash + + kJScMN4XyKqi6oIV8vdvgX9QKs0= + + hash2 + + a1RXtDV4geqEDqM64e29H8eliaeTMJHQouZTzmt3f0Q= + + + Headers/UIView+WebCache.h + + hash + + 6s86639L67mb1Y1aTunR3oS9C+U= + + hash2 + + yXMbWvtPWEfJjMeh+3ChnyVhz1HrUNZLwGolR15Dbws= + + + Headers/UIView+WebCacheOperation.h + + hash + + gWoTb4BsM6UfrNyXSanUM+AQLbU= + + hash2 + + meaO3k2BE7QmtJ0v6cEEmGv76UODAt0bbR3Irp23TxI= + + + Headers/UIView+WebCacheState.h + + hash + + 771hZgr2q0NJeFs0oox1EMSX4mM= + + hash2 + + hDI+hQNqT+BmJWioRTwhS7xCtZFxHSy4PwALr4slTeE= + + + Modules/module.modulemap + + hash + + DCDzAF1C1qsuicpmkZhe6IrGwkA= + + hash2 + + VHLkXAEViq4tW4o3AM/NplEzMQMKoe4D5BqNuKnnq5M= + + + PrivacyInfo.xcprivacy + + hash + + PFHYbs0V3eUFDWQyYQcwEetuqEk= + + hash2 + + A7LHCDOjMaKx79Ef8WjtAqjq39Xn0fvzDuzHUJpK6kc= + + + PrivateHeaders/NSBezierPath+SDRoundedCorners.h + + hash + + hVf10BOSXAmUGUC+yd0ztOAH4BY= + + hash2 + + 125iXezXazuk0bBlzjX97k56M5HND0POvD1P26UXQvQ= + + + PrivateHeaders/SDAssociatedObject.h + + hash + + vGTBkYhQJTlD6ZChh2vQXaWhC0U= + + hash2 + + SxKYYCAzWltASk9/E4T+WJihZuqMEf6TbrBis4zVZEE= + + + PrivateHeaders/SDAsyncBlockOperation.h + + hash + + snzjaBGyE/z0cdUS9+aJRKrxDnI= + + hash2 + + HPaaPMjj0fdrwSzEf++FQXpOIK7j880TYegbK3JnETo= + + + PrivateHeaders/SDDeviceHelper.h + + hash + + /JSjyySMNJYdu/u8oS3wwS+0FCQ= + + hash2 + + 41xMJVcy5UekYPA2oE1z1w2kkt7DHSJ7LUSsQJPMBKM= + + + PrivateHeaders/SDDisplayLink.h + + hash + + ylFFSzJbR+eq7L+qXMeezb4OXSs= + + hash2 + + ck/YSP9JmZtonYX1YfoXENrBGq3YSnTL7L/2ZZn98d0= + + + PrivateHeaders/SDFileAttributeHelper.h + + hash + + sb2CUGqQfxIv2pbTDH1eH9Tx/lc= + + hash2 + + zB3IKhQyk1zD3DyxhRPeN6d64/vK8mZe0PddbeHnzsE= + + + PrivateHeaders/SDImageAssetManager.h + + hash + + 8EwarZm30x7czN6Nn9NHYxVbepY= + + hash2 + + 9y6khxuRX1WIQMj6J8AJ/2tByFNlAqTDD/hhD5qBoUE= + + + PrivateHeaders/SDImageCachesManagerOperation.h + + hash + + FO5aLhjBQ2flj+39N/ihTId+Yx4= + + hash2 + + AEyIv1rLeiXGp4mxbe8dolUaev33aJwaA6/pvRLy244= + + + PrivateHeaders/SDImageFramePool.h + + hash + + p4Uj8gNLlVyG4aMmYvdqi2/YJHI= + + hash2 + + d0xW0Xh/bXttI34nV1E8wZ4dTeSr8WmCLzItU5jo3Ng= + + + PrivateHeaders/SDImageIOAnimatedCoderInternal.h + + hash + + yRyBajzOGKtZVLxl+zfgBTI0FnA= + + hash2 + + 7TVc0l/vY0GUH88kK/o1Ta2L2tE3E3okbQ7aLvUC01Q= + + + PrivateHeaders/SDInternalMacros.h + + hash + + Lns/aWnsokOaPUSXXvUqGIetRr4= + + hash2 + + CcLqNsDNmKb4N09owp1EFqkqzeMHeb8Q3v92YNX4hDA= + + + PrivateHeaders/SDWeakProxy.h + + hash + + sDlUvBrJYVMQKR39qPnbjcghuhk= + + hash2 + + sOFO2j8398Rj63PfofP+WM3UpONhTV+g8dtNiB7OlGk= + + + PrivateHeaders/SDWebImageTransitionInternal.h + + hash + + IofQDwABOOMR5dycmLjaLz5cOnU= + + hash2 + + typy3BLrrUyGQLZ0rgfRtqOXQsJbVQp1VyqAZuAN+9M= + + + PrivateHeaders/SDmetamacros.h + + hash + + /UCzmRZdtlxqZdIiubMLZeAL5oo= + + hash2 + + woZuhByGlpU1DSRGoXvfFNTGkSSvobL7ky23jPzEDxY= + + + PrivateHeaders/UIColor+SDHexString.h + + hash + + bvb2vO3YtXbNaIvieoIZQFZg/Vs= + + hash2 + + +mdUXWt+Qmy2a2ZiqxrK4pGY+Abw0T8/u8uTluVAKpA= + + + + rules + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/sdk-version.txt b/sdk-version.txt index 3769235d3..26a96787d 100644 --- a/sdk-version.txt +++ b/sdk-version.txt @@ -1 +1 @@ -7.1.0 \ No newline at end of file +7.2.4 \ No newline at end of file