From fe5c79206c2e4523e0846e8f6c325c14d82e782f Mon Sep 17 00:00:00 2001 From: Thibault Gauche Date: Fri, 26 Jan 2024 14:49:15 +0100 Subject: [PATCH 01/24] add SPM support --- .../contents.xcworkspacedata | 7 +++++++ Package.swift | 18 ++++++++++++++++ Sources/Internal/ATTNInfoEvent.h | 2 +- Sources/include/ATTNSDKFramework.h | 21 +++++++++++++++++++ 4 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata create mode 100644 Package.swift create mode 100644 Sources/include/ATTNSDKFramework.h diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..a4692a3 --- /dev/null +++ b/Package.swift @@ -0,0 +1,18 @@ +// swift-tools-version:5.9 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "Attentive", + platforms: [.iOS(.v12), .macOS(.v10_15), .tvOS(.v13)], + products: [ + .library(name: "Attentive", targets: ["attentive-ios-sdk"]) + ], + targets: [ + .target( + name: "attentive-ios-sdk", + path: "Sources/" + ) + ] +) diff --git a/Sources/Internal/ATTNInfoEvent.h b/Sources/Internal/ATTNInfoEvent.h index 02cd5d3..5d14514 100644 --- a/Sources/Internal/ATTNInfoEvent.h +++ b/Sources/Internal/ATTNInfoEvent.h @@ -8,7 +8,7 @@ #ifndef ATTNInfoEvent_h #define ATTNInfoEvent_h -#import "ATTNEvent.h" +#import "../ATTNEvent.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Sources/include/ATTNSDKFramework.h b/Sources/include/ATTNSDKFramework.h new file mode 100644 index 0000000..010ee38 --- /dev/null +++ b/Sources/include/ATTNSDKFramework.h @@ -0,0 +1,21 @@ +#import + +FOUNDATION_EXPORT double ATTNSDKFrameworkVersionNumber; + +FOUNDATION_EXPORT const unsigned char ATTNSDKFrameworkVersionString[]; + +// 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 From a79516fc148f96541a6c117b1ca71fee77681a59 Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Fri, 2 Feb 2024 11:30:11 -0500 Subject: [PATCH 02/24] Update package to only build ios --- Package.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Package.swift b/Package.swift index a4692a3..92fdb0d 100644 --- a/Package.swift +++ b/Package.swift @@ -4,10 +4,10 @@ import PackageDescription let package = Package( - name: "Attentive", - platforms: [.iOS(.v12), .macOS(.v10_15), .tvOS(.v13)], + name: "attentive-ios-sdk", + platforms: [.iOS(.v12)], products: [ - .library(name: "Attentive", targets: ["attentive-ios-sdk"]) + .library(name: "attentive-ios-sdk", targets: ["attentive-ios-sdk"]) ], targets: [ .target( From 9bf9513b01ba82aba19f5c9388abda19d778ee33 Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Fri, 2 Feb 2024 11:38:11 -0500 Subject: [PATCH 03/24] changes to swift package --- Package.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Package.swift b/Package.swift index 92fdb0d..838d142 100644 --- a/Package.swift +++ b/Package.swift @@ -8,6 +8,7 @@ let package = Package( platforms: [.iOS(.v12)], products: [ .library(name: "attentive-ios-sdk", targets: ["attentive-ios-sdk"]) + ], targets: [ .target( From e77c1f2e80559466b753040f5c765f330a231652 Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Fri, 2 Feb 2024 11:54:08 -0500 Subject: [PATCH 04/24] Update build to only run ios --- ExampleSwift/Package.swift | 8 ++++++++ ExampleSwift/Podfile | 10 ---------- ExampleSwift/Podfile.lock | 16 ---------------- attentive-ios-sdk.xcodeproj/project.pbxproj | 5 ++++- 4 files changed, 12 insertions(+), 27 deletions(-) create mode 100644 ExampleSwift/Package.swift delete mode 100644 ExampleSwift/Podfile delete mode 100644 ExampleSwift/Podfile.lock diff --git a/ExampleSwift/Package.swift b/ExampleSwift/Package.swift new file mode 100644 index 0000000..c23194d --- /dev/null +++ b/ExampleSwift/Package.swift @@ -0,0 +1,8 @@ +// +// File.swift +// +// +// Created by Reagan Smith on 2/2/24. +// + +import Foundation diff --git a/ExampleSwift/Podfile b/ExampleSwift/Podfile deleted file mode 100644 index 0f4c63b..0000000 --- a/ExampleSwift/Podfile +++ /dev/null @@ -1,10 +0,0 @@ -platform :ios, '10.0' - -target 'ExampleSwift - Pod' do - # The 'use_frameworks!' option builds the pods as dynamic frameworks instead of static libs. - use_frameworks! - - # Pods for Example - pod 'attentive-ios-sdk' - -end diff --git a/ExampleSwift/Podfile.lock b/ExampleSwift/Podfile.lock deleted file mode 100644 index 08dea6f..0000000 --- a/ExampleSwift/Podfile.lock +++ /dev/null @@ -1,16 +0,0 @@ -PODS: - - attentive-ios-sdk (0.3.2) - -DEPENDENCIES: - - attentive-ios-sdk - -SPEC REPOS: - trunk: - - attentive-ios-sdk - -SPEC CHECKSUMS: - attentive-ios-sdk: a57deefc671e36886ce90da369db9ce8505bf0a1 - -PODFILE CHECKSUM: f10aeee61e5d03d783da7f32dae98581d4e7f101 - -COCOAPODS: 1.11.3 diff --git a/attentive-ios-sdk.xcodeproj/project.pbxproj b/attentive-ios-sdk.xcodeproj/project.pbxproj index f19e39d..f0d2c8d 100644 --- a/attentive-ios-sdk.xcodeproj/project.pbxproj +++ b/attentive-ios-sdk.xcodeproj/project.pbxproj @@ -569,7 +569,7 @@ CURRENT_PROJECT_VERSION = 1; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; + ENABLE_TESTABILITY = NO; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; @@ -587,6 +587,7 @@ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; VERSIONING_SYSTEM = "apple-generic"; @@ -631,6 +632,7 @@ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; @@ -641,6 +643,7 @@ GCC_WARN_UNUSED_VARIABLE = YES; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; + SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_OPTIMIZATION_LEVEL = "-O"; VERSIONING_SYSTEM = "apple-generic"; From c28fd6c9e1182ca50ef5bfb73b7cc95861acc5c2 Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Fri, 2 Feb 2024 11:58:44 -0500 Subject: [PATCH 05/24] Furthering specifying ios --- .../ExampleSwift.xcodeproj/project.pbxproj | 74 +++---------------- 1 file changed, 12 insertions(+), 62 deletions(-) diff --git a/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj b/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj index 2733691..0c93e25 100644 --- a/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj +++ b/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj @@ -7,7 +7,6 @@ objects = { /* Begin PBXBuildFile section */ - 0FCA287A57FA7E931DD97683 /* Pods_ExampleSwift___Pod.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ECCE8A4C3DF5E1DC2D9DBC3D /* Pods_ExampleSwift___Pod.framework */; }; 58389AB62987647B00A31A35 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 58389AB52987647B00A31A35 /* Preview Assets.xcassets */; }; 587DC5BF299550DA0082F8D0 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 587DC5BE299550DA0082F8D0 /* AppDelegate.swift */; }; 587DC5C4299554B00082F8D0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 587DC5C3299554B00082F8D0 /* Assets.xcassets */; }; @@ -41,7 +40,6 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 0BC1FCC82562655752224489 /* Pods-ExampleSwift - Pod.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ExampleSwift - Pod.debug.xcconfig"; path = "Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod.debug.xcconfig"; sourceTree = ""; }; 58389AAA2987647900A31A35 /* ExampleSwift - Local.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ExampleSwift - Local.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 58389AB32987647B00A31A35 /* ExampleSwift.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ExampleSwift.entitlements; sourceTree = ""; }; 58389AB52987647B00A31A35 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; @@ -57,8 +55,6 @@ 588EB72E2995BE2E00C0163A /* attentive-ios-sdk-bridging-header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "attentive-ios-sdk-bridging-header.h"; sourceTree = ""; }; 58ADF92E2988738D002EA268 /* attentive_ios_sdk.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = attentive_ios_sdk.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 58ADF9322988746D002EA268 /* attentive-ios-sdk-local-bridging-header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "attentive-ios-sdk-local-bridging-header.h"; sourceTree = ""; }; - 859F6AE5F75849A800B53A78 /* Pods-ExampleSwift - Pod.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ExampleSwift - Pod.release.xcconfig"; path = "Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod.release.xcconfig"; sourceTree = ""; }; - ECCE8A4C3DF5E1DC2D9DBC3D /* Pods_ExampleSwift___Pod.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ExampleSwift___Pod.framework; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -74,7 +70,6 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 0FCA287A57FA7E931DD97683 /* Pods_ExampleSwift___Pod.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -140,7 +135,6 @@ children = ( 588B597729B94AC200E3BA33 /* attentive_ios_sdk_framework.framework */, 58ADF92E2988738D002EA268 /* attentive_ios_sdk.framework */, - ECCE8A4C3DF5E1DC2D9DBC3D /* Pods_ExampleSwift___Pod.framework */, ); name = Frameworks; sourceTree = ""; @@ -148,8 +142,6 @@ 8DDF698A66FE410250C43DCE /* Pods */ = { isa = PBXGroup; children = ( - 0BC1FCC82562655752224489 /* Pods-ExampleSwift - Pod.debug.xcconfig */, - 859F6AE5F75849A800B53A78 /* Pods-ExampleSwift - Pod.release.xcconfig */, ); path = Pods; sourceTree = ""; @@ -179,11 +171,9 @@ isa = PBXNativeTarget; buildConfigurationList = 588EB7292995BC3A00C0163A /* Build configuration list for PBXNativeTarget "ExampleSwift - Pod" */; buildPhases = ( - 91D7BFB881B221C30507B74F /* [CP] Check Pods Manifest.lock */, 588EB71C2995BC3A00C0163A /* Sources */, 588EB7202995BC3A00C0163A /* Frameworks */, 588EB7222995BC3A00C0163A /* Resources */, - 2DDBEEF11B26F3D0A486B571 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -253,48 +243,6 @@ }; /* End PBXResourcesBuildPhase section */ -/* Begin PBXShellScriptBuildPhase section */ - 2DDBEEF11B26F3D0A486B571 /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - 91D7BFB881B221C30507B74F /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-ExampleSwift - Pod-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; - }; -/* End PBXShellScriptBuildPhase section */ - /* Begin PBXSourcesBuildPhase section */ 58389AA62987647900A31A35 /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -481,8 +429,9 @@ MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.attentive.ExampleSwift; PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = auto; - SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OBJC_BRIDGING_HEADER = "ExampleSwift/attentive-ios-sdk-local-bridging-header.h"; SWIFT_VERSION = 5.0; @@ -522,8 +471,9 @@ MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.attentive.ExampleSwift; PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = auto; - SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OBJC_BRIDGING_HEADER = "ExampleSwift/attentive-ios-sdk-local-bridging-header.h"; SWIFT_VERSION = 5.0; @@ -533,7 +483,6 @@ }; 588EB72A2995BC3A00C0163A /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 0BC1FCC82562655752224489 /* Pods-ExampleSwift - Pod.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -564,8 +513,9 @@ MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.attentive.ExampleSwift; PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = auto; - SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OBJC_BRIDGING_HEADER = "ExampleSwift/attentive-ios-sdk-bridging-header.h"; SWIFT_VERSION = 5.0; @@ -575,7 +525,6 @@ }; 588EB72B2995BC3A00C0163A /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 859F6AE5F75849A800B53A78 /* Pods-ExampleSwift - Pod.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -606,8 +555,9 @@ MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.attentive.ExampleSwift; PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = auto; - SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OBJC_BRIDGING_HEADER = "ExampleSwift/attentive-ios-sdk-bridging-header.h"; SWIFT_VERSION = 5.0; From 0fa5c476a41c5fd071a7500a42d6fb8b079c1246 Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Fri, 2 Feb 2024 12:19:04 -0500 Subject: [PATCH 06/24] Add resiliency to building for diff platforms --- Sources/Internal/ATTNAppInfo.m | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Sources/Internal/ATTNAppInfo.m b/Sources/Internal/ATTNAppInfo.m index 6384e9f..1f61384 100644 --- a/Sources/Internal/ATTNAppInfo.m +++ b/Sources/Internal/ATTNAppInfo.m @@ -6,7 +6,9 @@ // #import +#if TARGET_OS_IOS #import +#endif #import "ATTNAppInfo.h" #import "ATTNVersion.h" @@ -27,11 +29,19 @@ + (NSString *)getAppId { } + (NSString *)getDeviceModelName { - return [[UIDevice currentDevice] model]; + #if TARGET_OS_IOS + return [[UIDevice currentDevice] model]; + #else + return @"Not iOS device, not supported"; + #endif } + (NSString *)getDevicePlatform { - return [[UIDevice currentDevice] systemName]; + #if TARGET_OS_IOS + return [[UIDevice currentDevice] systemName]; + #else + return @"Not iOS device, not supported"; + #endif } + (NSString *)getDeviceOsVersion { From 906c99881d8a7995d636baa41af0d6921da63af6 Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Fri, 2 Feb 2024 12:29:29 -0500 Subject: [PATCH 07/24] removing more ununused versions of uikit --- Sources/ATTNAPI.m | 1 - 1 file changed, 1 deletion(-) diff --git a/Sources/ATTNAPI.m b/Sources/ATTNAPI.m index 0af94ee..e342635 100644 --- a/Sources/ATTNAPI.m +++ b/Sources/ATTNAPI.m @@ -6,7 +6,6 @@ // #import -#import #import "ATTNParameterValidation.h" #import "ATTNUserIdentity.h" From c6d0abefb6370441f1cdbbc3264b351a32f17c3e Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Thu, 8 Feb 2024 13:06:10 -0500 Subject: [PATCH 08/24] remove pods --- .gitignore | 4 + ExampleSwift/Package.resolved | 16 + ExampleSwift/Package.swift | 31 +- ExampleSwift/Pods/Manifest.lock | 16 - .../Pods/Pods.xcodeproj/project.pbxproj | 719 ------------------ .../Pods-ExampleSwift - Pod-Info.plist | 26 - ...ampleSwift - Pod-acknowledgements.markdown | 26 - ...-ExampleSwift - Pod-acknowledgements.plist | 58 -- .../Pods-ExampleSwift - Pod-dummy.m | 5 - ...od-frameworks-Debug-input-files.xcfilelist | 2 - ...d-frameworks-Debug-output-files.xcfilelist | 1 - ...-frameworks-Release-input-files.xcfilelist | 2 - ...frameworks-Release-output-files.xcfilelist | 1 - .../Pods-ExampleSwift - Pod-frameworks.sh | 186 ----- .../Pods-ExampleSwift - Pod-umbrella.h | 16 - .../Pods-ExampleSwift - Pod.debug.xcconfig | 12 - .../Pods-ExampleSwift - Pod.modulemap | 6 - .../Pods-ExampleSwift - Pod.release.xcconfig | 12 - .../attentive-ios-sdk-Info.plist | 26 - .../attentive-ios-sdk-dummy.m | 5 - .../attentive-ios-sdk-prefix.pch | 12 - .../attentive-ios-sdk-umbrella.h | 31 - .../attentive-ios-sdk.debug.xcconfig | 11 - .../attentive-ios-sdk.modulemap | 6 - .../attentive-ios-sdk.release.xcconfig | 11 - ExampleSwift/Pods/attentive-ios-sdk/LICENSE | 19 - ExampleSwift/Pods/attentive-ios-sdk/README.md | 91 --- .../Pods/attentive-ios-sdk/Sources/ATTNAPI.h | 32 - .../Pods/attentive-ios-sdk/Sources/ATTNAPI.m | 487 ------------ .../Sources/ATTNAddToCartEvent.h | 25 - .../Sources/ATTNAddToCartEvent.m | 25 - .../Pods/attentive-ios-sdk/Sources/ATTNCart.h | 19 - .../Pods/attentive-ios-sdk/Sources/ATTNCart.m | 12 - .../attentive-ios-sdk/Sources/ATTNEvent.h | 16 - .../Sources/ATTNEventTracker.h | 25 - .../Sources/ATTNEventTracker.m | 50 -- .../Pods/attentive-ios-sdk/Sources/ATTNItem.h | 30 - .../Pods/attentive-ios-sdk/Sources/ATTNItem.m | 27 - .../attentive-ios-sdk/Sources/ATTNOrder.h | 22 - .../attentive-ios-sdk/Sources/ATTNOrder.m | 24 - .../Sources/ATTNParameterValidation.h | 27 - .../Sources/ATTNParameterValidation.m | 42 - .../Sources/ATTNPersistentStorage.h | 32 - .../Sources/ATTNPersistentStorage.m | 42 - .../attentive-ios-sdk/Sources/ATTNPrice.h | 24 - .../attentive-ios-sdk/Sources/ATTNPrice.m | 25 - .../Sources/ATTNProductViewEvent.h | 25 - .../Sources/ATTNProductViewEvent.m | 25 - .../Sources/ATTNPurchaseEvent.h | 29 - .../Sources/ATTNPurchaseEvent.m | 26 - .../Pods/attentive-ios-sdk/Sources/ATTNSDK.h | 34 - .../Pods/attentive-ios-sdk/Sources/ATTNSDK.m | 231 ------ .../Sources/ATTNUserIdentity.h | 41 - .../Sources/ATTNUserIdentity.m | 70 -- .../Sources/ATTNVisitorService.h | 36 - .../Sources/ATTNVisitorService.m | 48 -- Sources/ATTNAPI.m | 1 + Sources/ATTNSDK.m | 1 + 58 files changed, 46 insertions(+), 2858 deletions(-) create mode 100644 ExampleSwift/Package.resolved delete mode 100644 ExampleSwift/Pods/Manifest.lock delete mode 100644 ExampleSwift/Pods/Pods.xcodeproj/project.pbxproj delete mode 100644 ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-Info.plist delete mode 100644 ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-acknowledgements.markdown delete mode 100644 ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-acknowledgements.plist delete mode 100644 ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-dummy.m delete mode 100644 ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks-Debug-input-files.xcfilelist delete mode 100644 ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks-Debug-output-files.xcfilelist delete mode 100644 ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks-Release-input-files.xcfilelist delete mode 100644 ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks-Release-output-files.xcfilelist delete mode 100755 ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks.sh delete mode 100644 ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-umbrella.h delete mode 100644 ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod.debug.xcconfig delete mode 100644 ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod.modulemap delete mode 100644 ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod.release.xcconfig delete mode 100644 ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk-Info.plist delete mode 100644 ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk-dummy.m delete mode 100644 ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk-prefix.pch delete mode 100644 ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk-umbrella.h delete mode 100644 ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk.debug.xcconfig delete mode 100644 ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk.modulemap delete mode 100644 ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk.release.xcconfig delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/LICENSE delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/README.md delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNAPI.h delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNAPI.m delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNAddToCartEvent.h delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNAddToCartEvent.m delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNCart.h delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNCart.m delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNEvent.h delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNEventTracker.h delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNEventTracker.m delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNItem.h delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNItem.m delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNOrder.h delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNOrder.m delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNParameterValidation.h delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNParameterValidation.m delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPersistentStorage.h delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPersistentStorage.m delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPrice.h delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPrice.m delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNProductViewEvent.h delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNProductViewEvent.m delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPurchaseEvent.h delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPurchaseEvent.m delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNSDK.h delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNSDK.m delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNUserIdentity.h delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNUserIdentity.m delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNVisitorService.h delete mode 100644 ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNVisitorService.m diff --git a/.gitignore b/.gitignore index 5c6719c..dd20062 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,10 @@ Carthage/Build Example/Podfile.lock Example/Pods +# swift builds +.build/* +ExampleSwift/.build/* + # Vim # Swap [._]*.s[a-v][a-z] diff --git a/ExampleSwift/Package.resolved b/ExampleSwift/Package.resolved new file mode 100644 index 0000000..a008fb9 --- /dev/null +++ b/ExampleSwift/Package.resolved @@ -0,0 +1,16 @@ +{ + "object": { + "pins": [ + { + "package": "attentive-ios-sdk", + "repositoryURL": "https://github.com/attentive-mobile/attentive-ios-sdk", + "state": { + "branch": "rsmith/support-swift", + "revision": "906c99881d8a7995d636baa41af0d6921da63af6", + "version": null + } + } + ] + }, + "version": 1 +} diff --git a/ExampleSwift/Package.swift b/ExampleSwift/Package.swift index c23194d..c745e27 100644 --- a/ExampleSwift/Package.swift +++ b/ExampleSwift/Package.swift @@ -1,8 +1,25 @@ -// -// File.swift -// -// -// Created by Reagan Smith on 2/2/24. -// +// swift-tools-version:5.3 +import PackageDescription -import Foundation +let package = Package( + name: "ExampleSwift", + platforms: [ + .iOS(.v12) + ], + products: [ + .library( + name: "ExampleSwift", + targets: ["ExampleSwift"]), + ], + dependencies: [ + .package(url: "https://github.com/attentive-mobile/attentive-ios-sdk", .branch("rsmith/support-swift")) + ], + targets: [ + .target( + name: "ExampleSwift", + dependencies: [ + .product(name: "attentive-ios-sdk", package: "attentive-ios-sdk")], + path: "ExampleSwift" // Ensure this path exists and is correct + ), + ] +) diff --git a/ExampleSwift/Pods/Manifest.lock b/ExampleSwift/Pods/Manifest.lock deleted file mode 100644 index 08dea6f..0000000 --- a/ExampleSwift/Pods/Manifest.lock +++ /dev/null @@ -1,16 +0,0 @@ -PODS: - - attentive-ios-sdk (0.3.2) - -DEPENDENCIES: - - attentive-ios-sdk - -SPEC REPOS: - trunk: - - attentive-ios-sdk - -SPEC CHECKSUMS: - attentive-ios-sdk: a57deefc671e36886ce90da369db9ce8505bf0a1 - -PODFILE CHECKSUM: f10aeee61e5d03d783da7f32dae98581d4e7f101 - -COCOAPODS: 1.11.3 diff --git a/ExampleSwift/Pods/Pods.xcodeproj/project.pbxproj b/ExampleSwift/Pods/Pods.xcodeproj/project.pbxproj deleted file mode 100644 index 0f2325d..0000000 --- a/ExampleSwift/Pods/Pods.xcodeproj/project.pbxproj +++ /dev/null @@ -1,719 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 56; - objects = { - -/* Begin PBXBuildFile section */ - 06C184881460A706AA92FBAEB0A6799B /* ATTNPurchaseEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = CFA5754E72C32987925F886DBB2CA924 /* ATTNPurchaseEvent.m */; }; - 0B61E3DFBE46D1B6B9658367A848B360 /* ATTNSDK.m in Sources */ = {isa = PBXBuildFile; fileRef = 142A7947D42D9FF41B355EFED088F9D0 /* ATTNSDK.m */; }; - 0DE454F4749CE0ED36F23996935408E9 /* ATTNAPI.h in Headers */ = {isa = PBXBuildFile; fileRef = EC5CCC9A561605E24D5B5D1F837653B2 /* ATTNAPI.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 149E185A2EE77A2B3930948A259618A8 /* ATTNOrder.h in Headers */ = {isa = PBXBuildFile; fileRef = BF5C6773258EBE0260EA20E9D21C7BED /* ATTNOrder.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 1875A1D91C3FA4EEACC61D434E2EF39A /* ATTNPurchaseEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 3C1EB2892FFAFD229A68C37DE788D9E1 /* ATTNPurchaseEvent.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 192760789DB032B7DDE31180A4730CEF /* ATTNVisitorService.m in Sources */ = {isa = PBXBuildFile; fileRef = 70BF147FA3D3F79B392731FB4A85B642 /* ATTNVisitorService.m */; }; - 1A5AAAC5A395FEB7BEC99F655904C5A0 /* ATTNCart.m in Sources */ = {isa = PBXBuildFile; fileRef = 69C6FD1F5B8E14F628ED6C8F140B2A4A /* ATTNCart.m */; }; - 1F776803BE442607F0EA6E1E6BF0D7D8 /* ATTNEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 8D1BFE662F601B758E17B1990414499C /* ATTNEvent.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 314EC18F52317B145D8A94552FF792CE /* attentive-ios-sdk-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1797A78CC182DA76ECE790801A3422BC /* attentive-ios-sdk-dummy.m */; }; - 362BDA692A73F2059A58276D5D69E892 /* ATTNPrice.h in Headers */ = {isa = PBXBuildFile; fileRef = 7964D3886258DBD9738518174B323129 /* ATTNPrice.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 472FC37267AB81380685B75C8D680D91 /* ATTNEventTracker.h in Headers */ = {isa = PBXBuildFile; fileRef = DC10795C4062D2FC2C622081CE7C384F /* ATTNEventTracker.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 4D26D94FA8C030849D645D0D09AFDCDA /* ATTNUserIdentity.h in Headers */ = {isa = PBXBuildFile; fileRef = 4AFAFF8274B7B69AA45FB9138D19AD42 /* ATTNUserIdentity.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 52A1C1CC4487C07EC1BDB8C2354A942D /* ATTNProductViewEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 2185553AA325DD5320950112375060F3 /* ATTNProductViewEvent.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 6423942643341C48041C4C7D8DA7C17F /* ATTNPersistentStorage.h in Headers */ = {isa = PBXBuildFile; fileRef = 87F66EC853475D40D76051D8DA8C4B5C /* ATTNPersistentStorage.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 65F3A60ED89B6390F873B00B571B6F85 /* ATTNSDK.h in Headers */ = {isa = PBXBuildFile; fileRef = 10B65A9BDF004C1423F5EDA9F0AA30CE /* ATTNSDK.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 6A6AE0E343B7CEB357703271C54AB1AB /* ATTNAddToCartEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B371F75731C46112E736B2D614209D7 /* ATTNAddToCartEvent.m */; }; - 7AB7021C7513D53F6C2E54449A796616 /* ATTNAPI.m in Sources */ = {isa = PBXBuildFile; fileRef = EFB49FF7204930A8C7086F5ED7B7589C /* ATTNAPI.m */; }; - 83011CEDADD012EF16BEEDA96709CF3E /* ATTNPrice.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B8D5633A53A3C358398EB4CD391B31B /* ATTNPrice.m */; }; - 8995A7B83BB73F3850C44E170703E504 /* ATTNItem.m in Sources */ = {isa = PBXBuildFile; fileRef = DDC7CA37166ADB0FE3A8AC2A96D7B622 /* ATTNItem.m */; }; - 8DC5C3D75EA420270EE8225BEDE3B8E1 /* ATTNPersistentStorage.m in Sources */ = {isa = PBXBuildFile; fileRef = 30727D8687A367085709C8064012958A /* ATTNPersistentStorage.m */; }; - A3E5A9D3BB8933ABFCA2260299A41E69 /* ATTNItem.h in Headers */ = {isa = PBXBuildFile; fileRef = BA6F92E19D46CF7C5C46294D868C8854 /* ATTNItem.h */; settings = {ATTRIBUTES = (Public, ); }; }; - A5912C5E62E4245F1420245381765F24 /* ATTNUserIdentity.m in Sources */ = {isa = PBXBuildFile; fileRef = 39CDCEB9B16927D85CF840D441AFF261 /* ATTNUserIdentity.m */; }; - AC6A49202E9C3738282CC9758AF87B61 /* Pods-ExampleSwift - Pod-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 274282767151B078D4E66BBEE8BD58F0 /* Pods-ExampleSwift - Pod-dummy.m */; }; - AF09B5E095977F8FAFD25CDCFAC2B7A3 /* ATTNProductViewEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 57024B51B6A0184EE167DEAB22E90167 /* ATTNProductViewEvent.m */; }; - B5023345A1ADD82F80D9320D67EC1B15 /* ATTNParameterValidation.h in Headers */ = {isa = PBXBuildFile; fileRef = 371B344482747864C5B7EF0FBA24301C /* ATTNParameterValidation.h */; settings = {ATTRIBUTES = (Public, ); }; }; - BC50BFA2AA290C873F247315DB44656B /* ATTNAddToCartEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = DBE51CC8A5A9CFCAAD143B3AADD9CB33 /* ATTNAddToCartEvent.h */; settings = {ATTRIBUTES = (Public, ); }; }; - BCF199AA96216187F95D80E19860D745 /* ATTNVisitorService.h in Headers */ = {isa = PBXBuildFile; fileRef = 85F4EB4FBABEA3ED784D5B8DAE77BB76 /* ATTNVisitorService.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C67012B46478D4F686DE9FCF7A530ABA /* ATTNCart.h in Headers */ = {isa = PBXBuildFile; fileRef = D1023E1E66C70B5891CEBC18D3C33AE7 /* ATTNCart.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C7836AC8D1D56AE5EE542804636E0825 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; - C97984DDEFAF5F15011A24CCFE4D834F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; - D2607D7E558365C11A66DD3CA79E87BD /* Pods-ExampleSwift - Pod-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 8A751582F25C45F082535E727D12112B /* Pods-ExampleSwift - Pod-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - DAB85F28DC5543B33C37EEBC1D481747 /* ATTNParameterValidation.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A415B904C82D6E41B4A6962141E7A17 /* ATTNParameterValidation.m */; }; - DC31868FEC123E8EC368B896517BE648 /* ATTNOrder.m in Sources */ = {isa = PBXBuildFile; fileRef = 6DF9988288D50CA6C22CC51DDE1333C2 /* ATTNOrder.m */; }; - EBD4418332E21CE47000C603AACFE33F /* attentive-ios-sdk-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = DF108ADD176B0CEEA8E9EC22E053BA93 /* attentive-ios-sdk-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - F8AC59AC2E1E40EB45DA88F71EE39516 /* ATTNEventTracker.m in Sources */ = {isa = PBXBuildFile; fileRef = A2F5A38C462710C4B351C45064DCD7B3 /* ATTNEventTracker.m */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - B525B6948A7BFD0571088E4BAA5D2CB3 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 39D9018AF20A48CFB8676A8086F9FB8A; - remoteInfo = "attentive-ios-sdk"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 0B371F75731C46112E736B2D614209D7 /* ATTNAddToCartEvent.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ATTNAddToCartEvent.m; path = Sources/ATTNAddToCartEvent.m; sourceTree = ""; }; - 0B8D5633A53A3C358398EB4CD391B31B /* ATTNPrice.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ATTNPrice.m; path = Sources/ATTNPrice.m; sourceTree = ""; }; - 10B65A9BDF004C1423F5EDA9F0AA30CE /* ATTNSDK.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ATTNSDK.h; path = Sources/ATTNSDK.h; sourceTree = ""; }; - 142A7947D42D9FF41B355EFED088F9D0 /* ATTNSDK.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ATTNSDK.m; path = Sources/ATTNSDK.m; sourceTree = ""; }; - 1797A78CC182DA76ECE790801A3422BC /* attentive-ios-sdk-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "attentive-ios-sdk-dummy.m"; sourceTree = ""; }; - 2185553AA325DD5320950112375060F3 /* ATTNProductViewEvent.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ATTNProductViewEvent.h; path = Sources/ATTNProductViewEvent.h; sourceTree = ""; }; - 237A26DF5C7EC4EA8A8F18278FDE1301 /* Pods-ExampleSwift - Pod.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-ExampleSwift - Pod.modulemap"; sourceTree = ""; }; - 274282767151B078D4E66BBEE8BD58F0 /* Pods-ExampleSwift - Pod-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-ExampleSwift - Pod-dummy.m"; sourceTree = ""; }; - 30727D8687A367085709C8064012958A /* ATTNPersistentStorage.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ATTNPersistentStorage.m; path = Sources/ATTNPersistentStorage.m; sourceTree = ""; }; - 371B344482747864C5B7EF0FBA24301C /* ATTNParameterValidation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ATTNParameterValidation.h; path = Sources/ATTNParameterValidation.h; sourceTree = ""; }; - 39CDCEB9B16927D85CF840D441AFF261 /* ATTNUserIdentity.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ATTNUserIdentity.m; path = Sources/ATTNUserIdentity.m; sourceTree = ""; }; - 3C1EB2892FFAFD229A68C37DE788D9E1 /* ATTNPurchaseEvent.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ATTNPurchaseEvent.h; path = Sources/ATTNPurchaseEvent.h; sourceTree = ""; }; - 4AFAFF8274B7B69AA45FB9138D19AD42 /* ATTNUserIdentity.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ATTNUserIdentity.h; path = Sources/ATTNUserIdentity.h; sourceTree = ""; }; - 5499D6822406E789075F01017A7F7BB9 /* Pods-ExampleSwift - Pod.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ExampleSwift - Pod.release.xcconfig"; sourceTree = ""; }; - 57024B51B6A0184EE167DEAB22E90167 /* ATTNProductViewEvent.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ATTNProductViewEvent.m; path = Sources/ATTNProductViewEvent.m; sourceTree = ""; }; - 5A415B904C82D6E41B4A6962141E7A17 /* ATTNParameterValidation.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ATTNParameterValidation.m; path = Sources/ATTNParameterValidation.m; sourceTree = ""; }; - 661DC5D68AA883324A264CD325A0FFDC /* attentive-ios-sdk.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "attentive-ios-sdk.debug.xcconfig"; sourceTree = ""; }; - 69C6FD1F5B8E14F628ED6C8F140B2A4A /* ATTNCart.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ATTNCart.m; path = Sources/ATTNCart.m; sourceTree = ""; }; - 6DF9988288D50CA6C22CC51DDE1333C2 /* ATTNOrder.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ATTNOrder.m; path = Sources/ATTNOrder.m; sourceTree = ""; }; - 6EDA20EE75AEB36FDD3D1DA3AAC55853 /* Pods-ExampleSwift - Pod-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-ExampleSwift - Pod-frameworks.sh"; sourceTree = ""; }; - 70BF147FA3D3F79B392731FB4A85B642 /* ATTNVisitorService.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ATTNVisitorService.m; path = Sources/ATTNVisitorService.m; sourceTree = ""; }; - 712C15B352B4E647CB02A13F14C1462B /* Pods-ExampleSwift - Pod.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ExampleSwift - Pod.debug.xcconfig"; sourceTree = ""; }; - 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; - 7964D3886258DBD9738518174B323129 /* ATTNPrice.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ATTNPrice.h; path = Sources/ATTNPrice.h; sourceTree = ""; }; - 815BB1760E91926DD71B5407E5967094 /* attentive-ios-sdk.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "attentive-ios-sdk.modulemap"; sourceTree = ""; }; - 81BD8E9BA24B4F19E82A01B31DFA6E81 /* attentive-ios-sdk.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "attentive-ios-sdk.release.xcconfig"; sourceTree = ""; }; - 85F4EB4FBABEA3ED784D5B8DAE77BB76 /* ATTNVisitorService.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ATTNVisitorService.h; path = Sources/ATTNVisitorService.h; sourceTree = ""; }; - 87F66EC853475D40D76051D8DA8C4B5C /* ATTNPersistentStorage.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ATTNPersistentStorage.h; path = Sources/ATTNPersistentStorage.h; sourceTree = ""; }; - 8A751582F25C45F082535E727D12112B /* Pods-ExampleSwift - Pod-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-ExampleSwift - Pod-umbrella.h"; sourceTree = ""; }; - 8D1BFE662F601B758E17B1990414499C /* ATTNEvent.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ATTNEvent.h; path = Sources/ATTNEvent.h; sourceTree = ""; }; - 948015156DD1B18F03DD9BFDB8E346BD /* Pods-ExampleSwift - Pod-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ExampleSwift - Pod-Info.plist"; sourceTree = ""; }; - 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; - A2F5A38C462710C4B351C45064DCD7B3 /* ATTNEventTracker.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ATTNEventTracker.m; path = Sources/ATTNEventTracker.m; sourceTree = ""; }; - BA6F92E19D46CF7C5C46294D868C8854 /* ATTNItem.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ATTNItem.h; path = Sources/ATTNItem.h; sourceTree = ""; }; - BF5C6773258EBE0260EA20E9D21C7BED /* ATTNOrder.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ATTNOrder.h; path = Sources/ATTNOrder.h; sourceTree = ""; }; - C4C618F80F021D72835A9C84DCEB7575 /* attentive-ios-sdk-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "attentive-ios-sdk-Info.plist"; sourceTree = ""; }; - C9BFCB8433C9711E9DF8DE19B102443A /* Pods-ExampleSwift - Pod-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-ExampleSwift - Pod-acknowledgements.markdown"; sourceTree = ""; }; - CFA5754E72C32987925F886DBB2CA924 /* ATTNPurchaseEvent.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ATTNPurchaseEvent.m; path = Sources/ATTNPurchaseEvent.m; sourceTree = ""; }; - D1023E1E66C70B5891CEBC18D3C33AE7 /* ATTNCart.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ATTNCart.h; path = Sources/ATTNCart.h; sourceTree = ""; }; - D399DC301E89ECADBB58FEB9AACDB91C /* attentive_ios_sdk.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = attentive_ios_sdk.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - DBE51CC8A5A9CFCAAD143B3AADD9CB33 /* ATTNAddToCartEvent.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ATTNAddToCartEvent.h; path = Sources/ATTNAddToCartEvent.h; sourceTree = ""; }; - DC10795C4062D2FC2C622081CE7C384F /* ATTNEventTracker.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ATTNEventTracker.h; path = Sources/ATTNEventTracker.h; sourceTree = ""; }; - DDC7CA37166ADB0FE3A8AC2A96D7B622 /* ATTNItem.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ATTNItem.m; path = Sources/ATTNItem.m; sourceTree = ""; }; - DF108ADD176B0CEEA8E9EC22E053BA93 /* attentive-ios-sdk-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "attentive-ios-sdk-umbrella.h"; sourceTree = ""; }; - E2B376B2F82C729D44D12C5022FD1C87 /* Pods_ExampleSwift___Pod.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = "Pods_ExampleSwift___Pod.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; - E71FD87CEA555DA1CA17DD652DBA7037 /* Pods-ExampleSwift - Pod-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ExampleSwift - Pod-acknowledgements.plist"; sourceTree = ""; }; - EC5CCC9A561605E24D5B5D1F837653B2 /* ATTNAPI.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ATTNAPI.h; path = Sources/ATTNAPI.h; sourceTree = ""; }; - EC6C31E60E3B7C44E736D989D1D48BB6 /* attentive-ios-sdk-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "attentive-ios-sdk-prefix.pch"; sourceTree = ""; }; - EFB49FF7204930A8C7086F5ED7B7589C /* ATTNAPI.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ATTNAPI.m; path = Sources/ATTNAPI.m; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 419344D79967ADD3D85A6077146E692F /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - C7836AC8D1D56AE5EE542804636E0825 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - BB76651BE97A6F93459734EB83AA2BE9 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - C97984DDEFAF5F15011A24CCFE4D834F /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 3A6EDCC9A264A801B2535CE8B0EF8EC4 /* attentive-ios-sdk */ = { - isa = PBXGroup; - children = ( - DBE51CC8A5A9CFCAAD143B3AADD9CB33 /* ATTNAddToCartEvent.h */, - 0B371F75731C46112E736B2D614209D7 /* ATTNAddToCartEvent.m */, - EC5CCC9A561605E24D5B5D1F837653B2 /* ATTNAPI.h */, - EFB49FF7204930A8C7086F5ED7B7589C /* ATTNAPI.m */, - D1023E1E66C70B5891CEBC18D3C33AE7 /* ATTNCart.h */, - 69C6FD1F5B8E14F628ED6C8F140B2A4A /* ATTNCart.m */, - 8D1BFE662F601B758E17B1990414499C /* ATTNEvent.h */, - DC10795C4062D2FC2C622081CE7C384F /* ATTNEventTracker.h */, - A2F5A38C462710C4B351C45064DCD7B3 /* ATTNEventTracker.m */, - BA6F92E19D46CF7C5C46294D868C8854 /* ATTNItem.h */, - DDC7CA37166ADB0FE3A8AC2A96D7B622 /* ATTNItem.m */, - BF5C6773258EBE0260EA20E9D21C7BED /* ATTNOrder.h */, - 6DF9988288D50CA6C22CC51DDE1333C2 /* ATTNOrder.m */, - 371B344482747864C5B7EF0FBA24301C /* ATTNParameterValidation.h */, - 5A415B904C82D6E41B4A6962141E7A17 /* ATTNParameterValidation.m */, - 87F66EC853475D40D76051D8DA8C4B5C /* ATTNPersistentStorage.h */, - 30727D8687A367085709C8064012958A /* ATTNPersistentStorage.m */, - 7964D3886258DBD9738518174B323129 /* ATTNPrice.h */, - 0B8D5633A53A3C358398EB4CD391B31B /* ATTNPrice.m */, - 2185553AA325DD5320950112375060F3 /* ATTNProductViewEvent.h */, - 57024B51B6A0184EE167DEAB22E90167 /* ATTNProductViewEvent.m */, - 3C1EB2892FFAFD229A68C37DE788D9E1 /* ATTNPurchaseEvent.h */, - CFA5754E72C32987925F886DBB2CA924 /* ATTNPurchaseEvent.m */, - 10B65A9BDF004C1423F5EDA9F0AA30CE /* ATTNSDK.h */, - 142A7947D42D9FF41B355EFED088F9D0 /* ATTNSDK.m */, - 4AFAFF8274B7B69AA45FB9138D19AD42 /* ATTNUserIdentity.h */, - 39CDCEB9B16927D85CF840D441AFF261 /* ATTNUserIdentity.m */, - 85F4EB4FBABEA3ED784D5B8DAE77BB76 /* ATTNVisitorService.h */, - 70BF147FA3D3F79B392731FB4A85B642 /* ATTNVisitorService.m */, - 6A890F7E801CA6D651878128F1A99070 /* Support Files */, - ); - path = "attentive-ios-sdk"; - sourceTree = ""; - }; - 578452D2E740E91742655AC8F1636D1F /* iOS */ = { - isa = PBXGroup; - children = ( - 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */, - ); - name = iOS; - sourceTree = ""; - }; - 6A890F7E801CA6D651878128F1A99070 /* Support Files */ = { - isa = PBXGroup; - children = ( - 815BB1760E91926DD71B5407E5967094 /* attentive-ios-sdk.modulemap */, - 1797A78CC182DA76ECE790801A3422BC /* attentive-ios-sdk-dummy.m */, - C4C618F80F021D72835A9C84DCEB7575 /* attentive-ios-sdk-Info.plist */, - EC6C31E60E3B7C44E736D989D1D48BB6 /* attentive-ios-sdk-prefix.pch */, - DF108ADD176B0CEEA8E9EC22E053BA93 /* attentive-ios-sdk-umbrella.h */, - 661DC5D68AA883324A264CD325A0FFDC /* attentive-ios-sdk.debug.xcconfig */, - 81BD8E9BA24B4F19E82A01B31DFA6E81 /* attentive-ios-sdk.release.xcconfig */, - ); - name = "Support Files"; - path = "../Target Support Files/attentive-ios-sdk"; - sourceTree = ""; - }; - 6BF858843A5E3AE86FD2B30CEA5CD1DB /* Targets Support Files */ = { - isa = PBXGroup; - children = ( - CD8693FD6745F587767122855803D5E8 /* Pods-ExampleSwift - Pod */, - ); - name = "Targets Support Files"; - sourceTree = ""; - }; - AB3A8F2B1028A70E3578A3BE20BCD6C6 /* Pods */ = { - isa = PBXGroup; - children = ( - 3A6EDCC9A264A801B2535CE8B0EF8EC4 /* attentive-ios-sdk */, - ); - name = Pods; - sourceTree = ""; - }; - CD8693FD6745F587767122855803D5E8 /* Pods-ExampleSwift - Pod */ = { - isa = PBXGroup; - children = ( - 237A26DF5C7EC4EA8A8F18278FDE1301 /* Pods-ExampleSwift - Pod.modulemap */, - C9BFCB8433C9711E9DF8DE19B102443A /* Pods-ExampleSwift - Pod-acknowledgements.markdown */, - E71FD87CEA555DA1CA17DD652DBA7037 /* Pods-ExampleSwift - Pod-acknowledgements.plist */, - 274282767151B078D4E66BBEE8BD58F0 /* Pods-ExampleSwift - Pod-dummy.m */, - 6EDA20EE75AEB36FDD3D1DA3AAC55853 /* Pods-ExampleSwift - Pod-frameworks.sh */, - 948015156DD1B18F03DD9BFDB8E346BD /* Pods-ExampleSwift - Pod-Info.plist */, - 8A751582F25C45F082535E727D12112B /* Pods-ExampleSwift - Pod-umbrella.h */, - 712C15B352B4E647CB02A13F14C1462B /* Pods-ExampleSwift - Pod.debug.xcconfig */, - 5499D6822406E789075F01017A7F7BB9 /* Pods-ExampleSwift - Pod.release.xcconfig */, - ); - name = "Pods-ExampleSwift - Pod"; - path = "Target Support Files/Pods-ExampleSwift - Pod"; - sourceTree = ""; - }; - CF1408CF629C7361332E53B88F7BD30C = { - isa = PBXGroup; - children = ( - 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, - D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, - AB3A8F2B1028A70E3578A3BE20BCD6C6 /* Pods */, - E11B95D2837B4063B068390E8A2EE430 /* Products */, - 6BF858843A5E3AE86FD2B30CEA5CD1DB /* Targets Support Files */, - ); - sourceTree = ""; - }; - D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 578452D2E740E91742655AC8F1636D1F /* iOS */, - ); - name = Frameworks; - sourceTree = ""; - }; - E11B95D2837B4063B068390E8A2EE430 /* Products */ = { - isa = PBXGroup; - children = ( - D399DC301E89ECADBB58FEB9AACDB91C /* attentive_ios_sdk.framework */, - E2B376B2F82C729D44D12C5022FD1C87 /* Pods_ExampleSwift___Pod.framework */, - ); - name = Products; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - C1633D064F5C4A7F97F8633E642F32BB /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - D2607D7E558365C11A66DD3CA79E87BD /* Pods-ExampleSwift - Pod-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - EEDE7E33878935E76D6BD52936B72033 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - EBD4418332E21CE47000C603AACFE33F /* attentive-ios-sdk-umbrella.h in Headers */, - BC50BFA2AA290C873F247315DB44656B /* ATTNAddToCartEvent.h in Headers */, - 0DE454F4749CE0ED36F23996935408E9 /* ATTNAPI.h in Headers */, - C67012B46478D4F686DE9FCF7A530ABA /* ATTNCart.h in Headers */, - 1F776803BE442607F0EA6E1E6BF0D7D8 /* ATTNEvent.h in Headers */, - 472FC37267AB81380685B75C8D680D91 /* ATTNEventTracker.h in Headers */, - A3E5A9D3BB8933ABFCA2260299A41E69 /* ATTNItem.h in Headers */, - 149E185A2EE77A2B3930948A259618A8 /* ATTNOrder.h in Headers */, - B5023345A1ADD82F80D9320D67EC1B15 /* ATTNParameterValidation.h in Headers */, - 6423942643341C48041C4C7D8DA7C17F /* ATTNPersistentStorage.h in Headers */, - 362BDA692A73F2059A58276D5D69E892 /* ATTNPrice.h in Headers */, - 52A1C1CC4487C07EC1BDB8C2354A942D /* ATTNProductViewEvent.h in Headers */, - 1875A1D91C3FA4EEACC61D434E2EF39A /* ATTNPurchaseEvent.h in Headers */, - 65F3A60ED89B6390F873B00B571B6F85 /* ATTNSDK.h in Headers */, - 4D26D94FA8C030849D645D0D09AFDCDA /* ATTNUserIdentity.h in Headers */, - BCF199AA96216187F95D80E19860D745 /* ATTNVisitorService.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 39D9018AF20A48CFB8676A8086F9FB8A /* attentive-ios-sdk */ = { - isa = PBXNativeTarget; - buildConfigurationList = 82226D745FEC7E42C3577FA5F1BE719A /* Build configuration list for PBXNativeTarget "attentive-ios-sdk" */; - buildPhases = ( - EEDE7E33878935E76D6BD52936B72033 /* Headers */, - 5B88FBA83D179C15C0B908E373567688 /* Sources */, - 419344D79967ADD3D85A6077146E692F /* Frameworks */, - BE3AA80D16CBDA5BC1780142FEE6CB0A /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "attentive-ios-sdk"; - productName = attentive_ios_sdk; - productReference = D399DC301E89ECADBB58FEB9AACDB91C /* attentive_ios_sdk.framework */; - productType = "com.apple.product-type.framework"; - }; - EE4643341FE5017D3D6F395C0C822C49 /* Pods-ExampleSwift - Pod */ = { - isa = PBXNativeTarget; - buildConfigurationList = 1F2D66ECDB73BA4BFB6640B5AD5B6C6B /* Build configuration list for PBXNativeTarget "Pods-ExampleSwift - Pod" */; - buildPhases = ( - C1633D064F5C4A7F97F8633E642F32BB /* Headers */, - A6D329D5B09EF1C25960E172C2F07A6F /* Sources */, - BB76651BE97A6F93459734EB83AA2BE9 /* Frameworks */, - F7D5037D1F0CC5BFCB193A66A212318F /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 8C68C25E6C68BB301122F728EB33F49A /* PBXTargetDependency */, - ); - name = "Pods-ExampleSwift - Pod"; - productName = "Pods_ExampleSwift___Pod"; - productReference = E2B376B2F82C729D44D12C5022FD1C87 /* Pods_ExampleSwift___Pod.framework */; - productType = "com.apple.product-type.framework"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - BFDFE7DC352907FC980B868725387E98 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 1300; - LastUpgradeCheck = 1300; - }; - buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; - compatibilityVersion = "Xcode 14.0"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - Base, - en, - ); - mainGroup = CF1408CF629C7361332E53B88F7BD30C; - productRefGroup = E11B95D2837B4063B068390E8A2EE430 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 39D9018AF20A48CFB8676A8086F9FB8A /* attentive-ios-sdk */, - EE4643341FE5017D3D6F395C0C822C49 /* Pods-ExampleSwift - Pod */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - BE3AA80D16CBDA5BC1780142FEE6CB0A /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - F7D5037D1F0CC5BFCB193A66A212318F /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 5B88FBA83D179C15C0B908E373567688 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 314EC18F52317B145D8A94552FF792CE /* attentive-ios-sdk-dummy.m in Sources */, - 6A6AE0E343B7CEB357703271C54AB1AB /* ATTNAddToCartEvent.m in Sources */, - 7AB7021C7513D53F6C2E54449A796616 /* ATTNAPI.m in Sources */, - 1A5AAAC5A395FEB7BEC99F655904C5A0 /* ATTNCart.m in Sources */, - F8AC59AC2E1E40EB45DA88F71EE39516 /* ATTNEventTracker.m in Sources */, - 8995A7B83BB73F3850C44E170703E504 /* ATTNItem.m in Sources */, - DC31868FEC123E8EC368B896517BE648 /* ATTNOrder.m in Sources */, - DAB85F28DC5543B33C37EEBC1D481747 /* ATTNParameterValidation.m in Sources */, - 8DC5C3D75EA420270EE8225BEDE3B8E1 /* ATTNPersistentStorage.m in Sources */, - 83011CEDADD012EF16BEEDA96709CF3E /* ATTNPrice.m in Sources */, - AF09B5E095977F8FAFD25CDCFAC2B7A3 /* ATTNProductViewEvent.m in Sources */, - 06C184881460A706AA92FBAEB0A6799B /* ATTNPurchaseEvent.m in Sources */, - 0B61E3DFBE46D1B6B9658367A848B360 /* ATTNSDK.m in Sources */, - A5912C5E62E4245F1420245381765F24 /* ATTNUserIdentity.m in Sources */, - 192760789DB032B7DDE31180A4730CEF /* ATTNVisitorService.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - A6D329D5B09EF1C25960E172C2F07A6F /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - AC6A49202E9C3738282CC9758AF87B61 /* Pods-ExampleSwift - Pod-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 8C68C25E6C68BB301122F728EB33F49A /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "attentive-ios-sdk"; - target = 39D9018AF20A48CFB8676A8086F9FB8A /* attentive-ios-sdk */; - targetProxy = B525B6948A7BFD0571088E4BAA5D2CB3 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 6DC15606A8E5E823E552F88770465F46 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 5499D6822406E789075F01017A7F7BB9 /* Pods-ExampleSwift - Pod.release.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; - CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = "Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MACH_O_TYPE = staticlib; - MODULEMAP_FILE = "Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod.modulemap"; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 7093A2FA2D50FEEB33FEAE72483FCABB /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 712C15B352B4E647CB02A13F14C1462B /* Pods-ExampleSwift - Pod.debug.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; - CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = "Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MACH_O_TYPE = staticlib; - MODULEMAP_FILE = "Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod.modulemap"; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 7EE7A78859F657F6BEFC651185B43192 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_PREPROCESSOR_DEFINITIONS = ( - "POD_CONFIGURATION_RELEASE=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - STRIP_INSTALLED_PRODUCT = NO; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - SWIFT_VERSION = 5.0; - SYMROOT = "${SRCROOT}/../build"; - }; - name = Release; - }; - 7F0198BD93B5943E3C0F4E07F35BAE9A /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 661DC5D68AA883324A264CD325A0FFDC /* attentive-ios-sdk.debug.xcconfig */; - buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - GCC_PREFIX_HEADER = "Target Support Files/attentive-ios-sdk/attentive-ios-sdk-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/attentive-ios-sdk/attentive-ios-sdk-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MODULEMAP_FILE = "Target Support Files/attentive-ios-sdk/attentive-ios-sdk.modulemap"; - PRODUCT_MODULE_NAME = attentive_ios_sdk; - PRODUCT_NAME = attentive_ios_sdk; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 8D9BE1DDEAD409C17EF2BFA53F69EC39 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 81BD8E9BA24B4F19E82A01B31DFA6E81 /* attentive-ios-sdk.release.xcconfig */; - buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - GCC_PREFIX_HEADER = "Target Support Files/attentive-ios-sdk/attentive-ios-sdk-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/attentive-ios-sdk/attentive-ios-sdk-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MODULEMAP_FILE = "Target Support Files/attentive-ios-sdk/attentive-ios-sdk.modulemap"; - PRODUCT_MODULE_NAME = attentive_ios_sdk; - PRODUCT_NAME = attentive_ios_sdk; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - D299434AB35E7FD6F7921C8EF24742FF /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "POD_CONFIGURATION_DEBUG=1", - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - STRIP_INSTALLED_PRODUCT = NO; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - SYMROOT = "${SRCROOT}/../build"; - }; - name = Debug; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 1F2D66ECDB73BA4BFB6640B5AD5B6C6B /* Build configuration list for PBXNativeTarget "Pods-ExampleSwift - Pod" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7093A2FA2D50FEEB33FEAE72483FCABB /* Debug */, - 6DC15606A8E5E823E552F88770465F46 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - D299434AB35E7FD6F7921C8EF24742FF /* Debug */, - 7EE7A78859F657F6BEFC651185B43192 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 82226D745FEC7E42C3577FA5F1BE719A /* Build configuration list for PBXNativeTarget "attentive-ios-sdk" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7F0198BD93B5943E3C0F4E07F35BAE9A /* Debug */, - 8D9BE1DDEAD409C17EF2BFA53F69EC39 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; -} diff --git a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-Info.plist b/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-Info.plist deleted file mode 100644 index 2243fe6..0000000 --- a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - ${PRODUCT_BUNDLE_IDENTIFIER} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0.0 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-acknowledgements.markdown b/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-acknowledgements.markdown deleted file mode 100644 index 918ce5e..0000000 --- a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-acknowledgements.markdown +++ /dev/null @@ -1,26 +0,0 @@ -# Acknowledgements -This application makes use of the following third party libraries: - -## attentive-ios-sdk - -Copyright (c) 2022 Ivan Loughman-Pawelko - -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. - -Generated by CocoaPods - https://cocoapods.org diff --git a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-acknowledgements.plist b/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-acknowledgements.plist deleted file mode 100644 index bdda712..0000000 --- a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-acknowledgements.plist +++ /dev/null @@ -1,58 +0,0 @@ - - - - - PreferenceSpecifiers - - - FooterText - This application makes use of the following third party libraries: - Title - Acknowledgements - Type - PSGroupSpecifier - - - FooterText - Copyright (c) 2022 Ivan Loughman-Pawelko <iloughman@attentivemobile.com> - -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. - - License - MIT - Title - attentive-ios-sdk - Type - PSGroupSpecifier - - - FooterText - Generated by CocoaPods - https://cocoapods.org - Title - - Type - PSGroupSpecifier - - - StringsTable - Acknowledgements - Title - Acknowledgements - - diff --git a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-dummy.m b/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-dummy.m deleted file mode 100644 index d507d42..0000000 --- a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_Pods_ExampleSwift___Pod : NSObject -@end -@implementation PodsDummy_Pods_ExampleSwift___Pod -@end diff --git a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks-Debug-input-files.xcfilelist b/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks-Debug-input-files.xcfilelist deleted file mode 100644 index b2f0352..0000000 --- a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks-Debug-input-files.xcfilelist +++ /dev/null @@ -1,2 +0,0 @@ -${PODS_ROOT}/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks.sh -${BUILT_PRODUCTS_DIR}/attentive-ios-sdk/attentive_ios_sdk.framework \ No newline at end of file diff --git a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks-Debug-output-files.xcfilelist b/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks-Debug-output-files.xcfilelist deleted file mode 100644 index fc3f0e0..0000000 --- a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks-Debug-output-files.xcfilelist +++ /dev/null @@ -1 +0,0 @@ -${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/attentive_ios_sdk.framework \ No newline at end of file diff --git a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks-Release-input-files.xcfilelist b/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks-Release-input-files.xcfilelist deleted file mode 100644 index b2f0352..0000000 --- a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks-Release-input-files.xcfilelist +++ /dev/null @@ -1,2 +0,0 @@ -${PODS_ROOT}/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks.sh -${BUILT_PRODUCTS_DIR}/attentive-ios-sdk/attentive_ios_sdk.framework \ No newline at end of file diff --git a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks-Release-output-files.xcfilelist b/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks-Release-output-files.xcfilelist deleted file mode 100644 index fc3f0e0..0000000 --- a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks-Release-output-files.xcfilelist +++ /dev/null @@ -1 +0,0 @@ -${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/attentive_ios_sdk.framework \ No newline at end of file diff --git a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks.sh b/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks.sh deleted file mode 100755 index d62aa99..0000000 --- a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-frameworks.sh +++ /dev/null @@ -1,186 +0,0 @@ -#!/bin/sh -set -e -set -u -set -o pipefail - -function on_error { - echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" -} -trap 'on_error $LINENO' ERR - -if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then - # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy - # frameworks to, so exit 0 (signalling the script phase was successful). - exit 0 -fi - -echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" -mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - -COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" -SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" -BCSYMBOLMAP_DIR="BCSymbolMaps" - - -# This protects against multiple targets copying the same framework dependency at the same time. The solution -# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html -RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") - -# Copies and strips a vendored framework -install_framework() -{ - if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then - local source="${BUILT_PRODUCTS_DIR}/$1" - elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then - local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" - elif [ -r "$1" ]; then - local source="$1" - fi - - local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - - if [ -L "${source}" ]; then - echo "Symlinked..." - source="$(readlink "${source}")" - fi - - if [ -d "${source}/${BCSYMBOLMAP_DIR}" ]; then - # Locate and install any .bcsymbolmaps if present, and remove them from the .framework before the framework is copied - find "${source}/${BCSYMBOLMAP_DIR}" -name "*.bcsymbolmap"|while read f; do - echo "Installing $f" - install_bcsymbolmap "$f" "$destination" - rm "$f" - done - rmdir "${source}/${BCSYMBOLMAP_DIR}" - fi - - # Use filter instead of exclude so missing patterns don't throw errors. - echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" - rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" - - local basename - basename="$(basename -s .framework "$1")" - binary="${destination}/${basename}.framework/${basename}" - - if ! [ -r "$binary" ]; then - binary="${destination}/${basename}" - elif [ -L "${binary}" ]; then - echo "Destination binary is symlinked..." - dirname="$(dirname "${binary}")" - binary="${dirname}/$(readlink "${binary}")" - fi - - # Strip invalid architectures so "fat" simulator / device frameworks work on device - if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then - strip_invalid_archs "$binary" - fi - - # Resign the code if required by the build settings to avoid unstable apps - code_sign_if_enabled "${destination}/$(basename "$1")" - - # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. - if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then - local swift_runtime_libs - swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) - for lib in $swift_runtime_libs; do - echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" - rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" - code_sign_if_enabled "${destination}/${lib}" - done - fi -} -# Copies and strips a vendored dSYM -install_dsym() { - local source="$1" - warn_missing_arch=${2:-true} - if [ -r "$source" ]; then - # Copy the dSYM into the targets temp dir. - echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" - rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" - - local basename - basename="$(basename -s .dSYM "$source")" - binary_name="$(ls "$source/Contents/Resources/DWARF")" - binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}" - - # Strip invalid architectures from the dSYM. - if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then - strip_invalid_archs "$binary" "$warn_missing_arch" - fi - if [[ $STRIP_BINARY_RETVAL == 0 ]]; then - # Move the stripped file into its final destination. - echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" - rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.dSYM" "${DWARF_DSYM_FOLDER_PATH}" - else - # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. - mkdir -p "${DWARF_DSYM_FOLDER_PATH}" - touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM" - fi - fi -} - -# Used as a return value for each invocation of `strip_invalid_archs` function. -STRIP_BINARY_RETVAL=0 - -# Strip invalid architectures -strip_invalid_archs() { - binary="$1" - warn_missing_arch=${2:-true} - # Get architectures for current target binary - binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" - # Intersect them with the architectures we are building for - intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" - # If there are no archs supported by this binary then warn the user - if [[ -z "$intersected_archs" ]]; then - if [[ "$warn_missing_arch" == "true" ]]; then - echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." - fi - STRIP_BINARY_RETVAL=1 - return - fi - stripped="" - for arch in $binary_archs; do - if ! [[ "${ARCHS}" == *"$arch"* ]]; then - # Strip non-valid architectures in-place - lipo -remove "$arch" -output "$binary" "$binary" - stripped="$stripped $arch" - fi - done - if [[ "$stripped" ]]; then - echo "Stripped $binary of architectures:$stripped" - fi - STRIP_BINARY_RETVAL=0 -} - -# Copies the bcsymbolmap files of a vendored framework -install_bcsymbolmap() { - local bcsymbolmap_path="$1" - local destination="${BUILT_PRODUCTS_DIR}" - echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" - rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" -} - -# Signs a framework with the provided identity -code_sign_if_enabled() { - if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then - # Use the current code_sign_identity - echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" - local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" - - if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then - code_sign_cmd="$code_sign_cmd &" - fi - echo "$code_sign_cmd" - eval "$code_sign_cmd" - fi -} - -if [[ "$CONFIGURATION" == "Debug" ]]; then - install_framework "${BUILT_PRODUCTS_DIR}/attentive-ios-sdk/attentive_ios_sdk.framework" -fi -if [[ "$CONFIGURATION" == "Release" ]]; then - install_framework "${BUILT_PRODUCTS_DIR}/attentive-ios-sdk/attentive_ios_sdk.framework" -fi -if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then - wait -fi diff --git a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-umbrella.h b/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-umbrella.h deleted file mode 100644 index 30cbd70..0000000 --- a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod-umbrella.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifdef __OBJC__ -#import -#else -#ifndef FOUNDATION_EXPORT -#if defined(__cplusplus) -#define FOUNDATION_EXPORT extern "C" -#else -#define FOUNDATION_EXPORT extern -#endif -#endif -#endif - - -FOUNDATION_EXPORT double Pods_ExampleSwift___PodVersionNumber; -FOUNDATION_EXPORT const unsigned char Pods_ExampleSwift___PodVersionString[]; - diff --git a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod.debug.xcconfig b/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod.debug.xcconfig deleted file mode 100644 index e11919d..0000000 --- a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod.debug.xcconfig +++ /dev/null @@ -1,12 +0,0 @@ -CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO -FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/attentive-ios-sdk" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/attentive-ios-sdk/attentive_ios_sdk.framework/Headers" -LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' -OTHER_LDFLAGS = $(inherited) -framework "attentive_ios_sdk" -PODS_BUILD_DIR = ${BUILD_DIR} -PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) -PODS_PODFILE_DIR_PATH = ${SRCROOT}/. -PODS_ROOT = ${SRCROOT}/Pods -PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates -USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod.modulemap b/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod.modulemap deleted file mode 100644 index 6fab04c..0000000 --- a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module Pods_ExampleSwift___Pod { - umbrella header "Pods-ExampleSwift - Pod-umbrella.h" - - export * - module * { export * } -} diff --git a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod.release.xcconfig b/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod.release.xcconfig deleted file mode 100644 index e11919d..0000000 --- a/ExampleSwift/Pods/Target Support Files/Pods-ExampleSwift - Pod/Pods-ExampleSwift - Pod.release.xcconfig +++ /dev/null @@ -1,12 +0,0 @@ -CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO -FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/attentive-ios-sdk" -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/attentive-ios-sdk/attentive_ios_sdk.framework/Headers" -LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' -OTHER_LDFLAGS = $(inherited) -framework "attentive_ios_sdk" -PODS_BUILD_DIR = ${BUILD_DIR} -PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) -PODS_PODFILE_DIR_PATH = ${SRCROOT}/. -PODS_ROOT = ${SRCROOT}/Pods -PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates -USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk-Info.plist b/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk-Info.plist deleted file mode 100644 index 03a923c..0000000 --- a/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk-Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - ${PRODUCT_BUNDLE_IDENTIFIER} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 0.3.2 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk-dummy.m b/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk-dummy.m deleted file mode 100644 index 07d6ff5..0000000 --- a/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import -@interface PodsDummy_attentive_ios_sdk : NSObject -@end -@implementation PodsDummy_attentive_ios_sdk -@end diff --git a/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk-prefix.pch b/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk-prefix.pch deleted file mode 100644 index beb2a24..0000000 --- a/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk-prefix.pch +++ /dev/null @@ -1,12 +0,0 @@ -#ifdef __OBJC__ -#import -#else -#ifndef FOUNDATION_EXPORT -#if defined(__cplusplus) -#define FOUNDATION_EXPORT extern "C" -#else -#define FOUNDATION_EXPORT extern -#endif -#endif -#endif - diff --git a/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk-umbrella.h b/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk-umbrella.h deleted file mode 100644 index 9eeb257..0000000 --- a/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk-umbrella.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifdef __OBJC__ -#import -#else -#ifndef FOUNDATION_EXPORT -#if defined(__cplusplus) -#define FOUNDATION_EXPORT extern "C" -#else -#define FOUNDATION_EXPORT extern -#endif -#endif -#endif - -#import "ATTNAddToCartEvent.h" -#import "ATTNAPI.h" -#import "ATTNCart.h" -#import "ATTNEvent.h" -#import "ATTNEventTracker.h" -#import "ATTNItem.h" -#import "ATTNOrder.h" -#import "ATTNParameterValidation.h" -#import "ATTNPersistentStorage.h" -#import "ATTNPrice.h" -#import "ATTNProductViewEvent.h" -#import "ATTNPurchaseEvent.h" -#import "ATTNSDK.h" -#import "ATTNUserIdentity.h" -#import "ATTNVisitorService.h" - -FOUNDATION_EXPORT double attentive_ios_sdkVersionNumber; -FOUNDATION_EXPORT const unsigned char attentive_ios_sdkVersionString[]; - diff --git a/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk.debug.xcconfig b/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk.debug.xcconfig deleted file mode 100644 index a1f8dc2..0000000 --- a/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk.debug.xcconfig +++ /dev/null @@ -1,11 +0,0 @@ -CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO -CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/attentive-ios-sdk -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -PODS_BUILD_DIR = ${BUILD_DIR} -PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) -PODS_ROOT = ${SRCROOT} -PODS_TARGET_SRCROOT = ${PODS_ROOT}/attentive-ios-sdk -PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates -PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} -SKIP_INSTALL = YES -USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk.modulemap b/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk.modulemap deleted file mode 100644 index 7f34fc6..0000000 --- a/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module attentive_ios_sdk { - umbrella header "attentive-ios-sdk-umbrella.h" - - export * - module * { export * } -} diff --git a/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk.release.xcconfig b/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk.release.xcconfig deleted file mode 100644 index a1f8dc2..0000000 --- a/ExampleSwift/Pods/Target Support Files/attentive-ios-sdk/attentive-ios-sdk.release.xcconfig +++ /dev/null @@ -1,11 +0,0 @@ -CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO -CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/attentive-ios-sdk -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -PODS_BUILD_DIR = ${BUILD_DIR} -PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) -PODS_ROOT = ${SRCROOT} -PODS_TARGET_SRCROOT = ${PODS_ROOT}/attentive-ios-sdk -PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates -PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} -SKIP_INSTALL = YES -USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/ExampleSwift/Pods/attentive-ios-sdk/LICENSE b/ExampleSwift/Pods/attentive-ios-sdk/LICENSE deleted file mode 100644 index a873b24..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2022 Ivan Loughman-Pawelko - -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. diff --git a/ExampleSwift/Pods/attentive-ios-sdk/README.md b/ExampleSwift/Pods/attentive-ios-sdk/README.md deleted file mode 100644 index a32ee0a..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/README.md +++ /dev/null @@ -1,91 +0,0 @@ -# Attentive IOS SDK - -The Attentive IOS SDK provides the functionality to render Attentive creative units in IOS mobile applications. - - -## Installation - -The attentive-ios-sdk is available through [CocoaPods](https://cocoapods.org). To install the SDK in a separate project using Cocoapods, include the pod in your application’s Podfile: - -``` -target ‘MyApp’ do - pod ‘attentive-ios-sdk’ -end -``` - -And then make sure to run: - -``` -pod install -``` - -Additionally, if a new version of the SDK is available, it can be updated using: -``` -pod update attentive-ios-sdk -``` - -## Usage -See the [Example Project](https://github.com/attentive-mobile/attentive-ios-sdk/tree/main/Example) for a sample of how the Attentive -IOS SDK is used. - - -### Initialize the SDK - -The code snippets and examples below assume you are working in Objective C. To make the SDK available, you need to import the header -file after installing the SDK: -```objectiveC -#import "attentive_ios_sdk/attentive-ios-sdk-umbrella.h" -``` - -```objectiveC -// Initialize the SDK with your attentive domain, in production mode -ATTNSDK *sdk = [[ATTNSDK alloc] initWithDomain:@"myCompanyDomain"]; - -// Alternatively, initialize the SDK in debug mode for more information about your creative and filtering rules -ATTNSDK *sdk = [[ATTNSDK alloc] initWithDomain:@"myCompanyDomain" mode:@"debug"]; - -// Initialize the AttentiveEventTracker. The AttentiveEventTracker is used to send user events (e.g. a Purchase) to Attentive. It must be set up before it can be used to send events. -[ATTNEventTracker setupWithSDk:sdk]; -``` - -### Identify information about the current user - -Register any identifying information you have about the user with the Attentive SDK. The more identifiers you provide, the better the -SDK will function. This method can be called any time you have new information to attribute to the user. - -```objectiveC -[sdk identify:@{ IDENTIFIER_TYPE_CLIENT_USER_ID: @"myAppUserId", IDENTIFIER_TYPE_PHONE: @"+15556667777"}]; -``` - -See the [`ATTNUserIdentity`](Creative/ATTNUserIdentity.m) file for all possible identifier types. - - -### Load and render the creative - -```objectiveC -[sdk trigger:self.view]; -``` - -### Record user events - -```objectiveC -// Create the Item(s) that was/were purchased -ATTNItem* item = [[ATTNItem alloc] initWithProductId:@"222" productVariantId:@"55555" price:[[ATTNPrice alloc] initWithPrice:[[NSDecimalNumber alloc] initWithString:@"15.99"] currency:@"USD"]]; -// Create the Order -ATTNOrder* order = [[ATTNOrder alloc] initWithOrderId:@"778899"]; -// Create PurchaseEvent -ATTNPurchaseEvent* purchase = [[ATTNPurchaseEvent alloc] initWithItems:@[item] order:order]; - -// Finally, record the event! -[[ATTNEventTracker sharedInstance] recordEvent:purchase]; -``` - -### Clear the current user - -If the user logs out then the current user identifiers should be deleted: - -```objectiveC -[sdk clearUser]; -``` - -When/if the user logs back in, `identify` should be called again with the user's identfiers diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNAPI.h b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNAPI.h deleted file mode 100644 index c4bdc16..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNAPI.h +++ /dev/null @@ -1,32 +0,0 @@ -// -// ATTNAPI.h -// attentive-ios-sdk -// -// Created by Wyatt Davis on 11/28/22. -// - -#ifndef ATTNAPI_h -#define ATTNAPI_h - -#import - -@class ATTNUserIdentity; -@protocol ATTNEvent; - -NS_ASSUME_NONNULL_BEGIN - -@interface ATTNAPI : NSObject - -- (instancetype)init NS_UNAVAILABLE; - -- (instancetype)initWithDomain:(NSString*)domain; - -- (void)sendUserIdentity:(ATTNUserIdentity *) userIdentity; - -- (void)sendEvent:(id)event userIdentity:(ATTNUserIdentity*)userIdentity; - -@end - -NS_ASSUME_NONNULL_END - -#endif /* ATTNAPI_h */ diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNAPI.m b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNAPI.m deleted file mode 100644 index 3d62356..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNAPI.m +++ /dev/null @@ -1,487 +0,0 @@ -// -// ATTNAPI.m -// attentive-ios-sdk -// -// Created by Wyatt Davis on 11/28/22. -// - -#import - -#import "ATTNParameterValidation.h" -#import "ATTNUserIdentity.h" -#import "ATTNAPI.h" -#import "ATTNEvent.h" -#import "ATTNItem.h" -#import "ATTNPrice.h" -#import "ATTNOrder.h" -#import "ATTNCart.h" -#import "ATTNPurchaseEvent.h" -#import "ATTNAddToCartEvent.h" -#import "ATTNProductViewEvent.h" - -// A single event can create multiple requests. The EventRequest class represents a single request. -@interface EventRequest : NSObject - -@property (readonly) NSMutableDictionary* metadata; -@property (readonly) NSString* eventNameAbbreviation; - --(instancetype)initWithMetadata:(NSMutableDictionary*)metadata eventNameAbbreviation:(NSString*)abbreviation; - -@end - -@implementation EventRequest - --(instancetype)initWithMetadata:(NSMutableDictionary*)metadata eventNameAbbreviation:(NSString*)abbreviation { - if (self = [super init]) { - self->_metadata = metadata; - self->_eventNameAbbreviation = abbreviation; - } - - return self; -} - -@end - -@interface NSMutableDictionary (Custom) - -- (void)addEntryIfNotNil:(NSString*)key value:(NSObject * _Nullable )value; - -@end - -@implementation NSMutableDictionary (Custom) - -- (void)addEntryIfNotNil:(NSString*)key value:(NSObject * _Nullable )value { - if (value != nil) { - self[key] = value; - } -} - -@end - -static NSString* const DTAG_URL_FORMAT = @"https://cdn.attn.tv/%@/dtag.js"; -static NSString* const EXTERNAL_VENDOR_TYPE_SHOPIFY = @"0"; -static NSString* const EXTERNAL_VENDOR_TYPE_KLAVIYO = @"1"; -static NSString* const EXTERNAL_VENDOR_TYPE_CLIENT_USER = @"2"; -static NSString* const EXTERNAL_VENDOR_TYPE_CUSTOM_USER = @"6"; - -static NSString* const EVENT_TYPE_PURCHASE = @"p"; -static NSString* const EVENT_TYPE_ADD_TO_CART = @"c"; -static NSString* const EVENT_TYPE_PRODUCT_VIEW = @"d"; -static NSString* const EVENT_TYPE_ORDER_CONFIRMED = @"oc"; -static NSString* const EVENT_TYPE_USER_IDENTIFIER_COLLECTED = @"idn"; - -@implementation ATTNAPI { - NSURLSession* _Nonnull _urlSession; - NSNumberFormatter* _Nonnull _priceFormatter; - NSString* _Nonnull _domain; - NSString* _Nullable _cachedGeoAdjustedDomain; -} - -- (instancetype)initWithDomain:(NSString*)domain { - return [self initWithDomain:domain urlSession:[NSURLSession sharedSession]]; -} - -// Private constructor that makes testing easier -- (instancetype)initWithDomain:domain urlSession:(NSURLSession*)urlSession { - if (self = [super init]) { - _urlSession = urlSession; - _domain = domain; - _priceFormatter = [NSNumberFormatter new]; - [_priceFormatter setMinimumFractionDigits:2]; - _cachedGeoAdjustedDomain = nil; - } - - return [super init]; -} - -// TODO: When we add the other events, the USER_IDENTIFIER_COLLECTED event code will be wrapped into the generic event code -- (void)sendUserIdentity:(ATTNUserIdentity *)userIdentity { - // TODO we should add retries for transient errors - [self getGeoAdjustedDomain:_domain completionHandler:^(NSString* geoAdjustedDomain, NSError* error) { - if (error) { - NSLog(@"Error sending user identity: '%@'", error); - return; - } - - [self sendUserIdentityInternal:userIdentity domain:geoAdjustedDomain]; - }]; -} - -- (void)sendEvent:(id)event userIdentity:(ATTNUserIdentity*)userIdentity { - [self getGeoAdjustedDomain:_domain completionHandler:^(NSString* geoAdjustedDomain, NSError* error) { - if (error) { - NSLog(@"Error sending event: '%@'.", error); - - } - - [self sendEventInternal:event userIdentity:userIdentity domain:geoAdjustedDomain]; - }]; -} - -- (void)sendEventInternal:(id)event userIdentity:(ATTNUserIdentity*)userIdentity domain:(NSString*) domain { - // slice up the Event into individual EventRequests - NSArray* requests = [self convertEventToRequests:event]; - - for (EventRequest* request in requests) { - [self sendEventInternalForRequest:request userIdentity:userIdentity domain:domain]; - } -} - -- (void)sendEventInternalForRequest:(EventRequest*)request userIdentity: (ATTNUserIdentity*)userIdentity domain:(NSString*) domain { - NSURL* url = [self constructEventUrlComponentsForEventRequest:request userIdentity:userIdentity domain:domain].URL; - - NSURLSessionDataTask* task = [_urlSession dataTaskWithURL:url completionHandler:^ void (NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) { - if (error) { - NSLog(@"Error sending for event '%@'. Error: '%@'", request.eventNameAbbreviation, [error description]); - return; - } - - // The response is an HTTP response because the URL had an HTTPS scheme - NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*) response; - if ([httpResponse statusCode] != 200) { - NSLog(@"Error sending the event '%@'. Incorrect status code: '%ld'", request.eventNameAbbreviation, (long)[httpResponse statusCode]); - return; - } - - NSLog(@"%@", [NSString stringWithFormat:@"Successfully sent event of type '%@'", request.eventNameAbbreviation]); - }]; - - [task resume]; -} - -// A single event can create multiple requests to our servers. This method converts an event to multiple request objects. -- (NSArray*)convertEventToRequests:(id)event { - NSMutableArray* eventRequests = [[NSMutableArray alloc] init]; - - if ([event isKindOfClass:[ATTNPurchaseEvent class]]) { - ATTNPurchaseEvent* purchase = (ATTNPurchaseEvent*)event; - - if ([purchase.items count] == 0) { - NSLog(@"No items found in the purchase event."); - return @[]; - } - - // Create EventRequests for each of the items in the PurchaseEvent - NSDecimalNumber* cartTotal = [NSDecimalNumber zero]; - for (ATTNItem* item in purchase.items) { - NSMutableDictionary* metadata = [[NSMutableDictionary alloc] init]; - [self addProductDataToDictionary:item dictionary:metadata]; - - metadata[@"orderId"] = purchase.order.orderId; - - if (purchase.cart != nil) { - [metadata addEntryIfNotNil:@"cartId" value:purchase.cart.cartId]; - [metadata addEntryIfNotNil:@"cartCoupon" value:purchase.cart.cartCoupon]; - } - - [eventRequests addObject:[[EventRequest alloc] initWithMetadata:metadata eventNameAbbreviation:EVENT_TYPE_PURCHASE]]; - - cartTotal = [cartTotal decimalNumberByAdding:item.price.price]; - } - - // Add cart total to each Purchase metadata - NSString* cartTotalString = [_priceFormatter stringFromNumber:cartTotal]; - for (EventRequest* eventRequest in eventRequests) { - eventRequest.metadata[@"cartTotal"] = cartTotalString; - } - - // create another EventRequest for an OrderConfirmed - NSMutableDictionary* orderConfirmedMetadata = [[NSMutableDictionary alloc] init]; - orderConfirmedMetadata[@"orderId"] = purchase.order.orderId; - orderConfirmedMetadata[@"cartTotal"] = cartTotalString; - orderConfirmedMetadata[@"currency"] = purchase.items[0].price.currency; - - NSMutableArray* products = [[NSMutableArray alloc] init]; - for (ATTNItem* item in purchase.items) { - NSMutableDictionary* product = [[NSMutableDictionary alloc] init]; - [self addProductDataToDictionary:item dictionary:product]; - [products addObject:product]; - } - orderConfirmedMetadata[@"products"] = [self convertObjectToJson:products defaultValue:@"[]"]; - [eventRequests addObject:[[EventRequest alloc] initWithMetadata:orderConfirmedMetadata eventNameAbbreviation:EVENT_TYPE_ORDER_CONFIRMED]]; - - return eventRequests; - } else if ([event isKindOfClass:[ATTNAddToCartEvent class]]) { - ATTNAddToCartEvent* addToCart = (ATTNAddToCartEvent*)event; - - if ([addToCart.items count] == 0) { - NSLog(@"No items found in the AddToCart event."); - return @[]; - } - - for (ATTNItem* item in addToCart.items) { - NSMutableDictionary* metadata = [[NSMutableDictionary alloc] init]; - [self addProductDataToDictionary:item dictionary:metadata]; - - [eventRequests addObject:[[EventRequest alloc] initWithMetadata:metadata eventNameAbbreviation:EVENT_TYPE_ADD_TO_CART]]; - } - - return eventRequests; - } else if ([event isKindOfClass:[ATTNProductViewEvent class]]) { - ATTNProductViewEvent* productView = (ATTNProductViewEvent*)event; - - if ([productView.items count] == 0) { - NSLog(@"No items found in the ProductView event."); - return @[]; - } - - for (ATTNItem* item in productView.items) { - NSMutableDictionary* metadata = [[NSMutableDictionary alloc] init]; - [self addProductDataToDictionary:item dictionary:metadata]; - - [eventRequests addObject:[[EventRequest alloc] initWithMetadata:metadata eventNameAbbreviation:EVENT_TYPE_PRODUCT_VIEW]]; - } - - return eventRequests; - } else { - NSException *e = [NSException - exceptionWithName:@"UnknownEventException" - reason:[NSString stringWithFormat:@"Unknown Event type: %@", [event class]] - userInfo:nil]; - @throw e; - } -} - -- (void)addProductDataToDictionary:(ATTNItem*)item dictionary:(NSMutableDictionary*)dictionary { - dictionary[@"productId"] = item.productId; - dictionary[@"subProductId"] = item.productVariantId; - dictionary[@"price"] = [_priceFormatter stringFromNumber:item.price.price]; - dictionary[@"currency"] = item.price.currency; - dictionary[@"quantity"] = [NSString stringWithFormat:@"%d", item.quantity]; - [dictionary addEntryIfNotNil:@"category" value:item.category]; - [dictionary addEntryIfNotNil:@"image" value:item.productImage]; - [dictionary addEntryIfNotNil:@"name" value:item.name]; -} - -- (void)getGeoAdjustedDomain:(NSString *)domain completionHandler:(void (^)(NSString* _Nullable, NSError* _Nullable)) completionHandler { - if (_cachedGeoAdjustedDomain != nil) { - completionHandler(_cachedGeoAdjustedDomain, nil); - return; - } - - NSLog(@"%@", [NSString stringWithFormat:@"Getting the geoAdjustedDomain for domain '%@'...", domain]); - - NSString* urlString = [NSString stringWithFormat:DTAG_URL_FORMAT, domain]; - - NSURL* url = [NSURL URLWithString:urlString]; - NSURLSessionDataTask* task = [_urlSession dataTaskWithURL:url completionHandler:^ void (NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) { - if (error) { - NSLog(@"Error getting the geo-adjusted domain. Error: '%@'", [error description]); - completionHandler(nil, error); - return; - } - - // The response is an HTTP response because the URL had an HTTPS scheme - NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*) response; - // The body/data only contains the tag data if the endpoint returns a 200 - if ([httpResponse statusCode] != 200) { - NSLog(@"Error getting the geo-adjusted domain. Incorrect status code: '%ld'", (long)[httpResponse statusCode]); - completionHandler(nil, [NSError errorWithDomain:@"com.attentive.API" code:NSURLErrorBadServerResponse userInfo:nil]); - return; - } - - NSString* dataString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; - - NSString* geoAdjustedDomain = [ATTNAPI extractDomainFromTag:dataString]; - - if (!geoAdjustedDomain) { - NSError* error = [NSError errorWithDomain:@"com.attentive.API" code:NSURLErrorBadServerResponse userInfo:nil]; - completionHandler(nil, error); - return; - } - - _cachedGeoAdjustedDomain = geoAdjustedDomain; - completionHandler(geoAdjustedDomain, nil); - }]; - - [task resume]; -} - -- (void)sendUserIdentityInternal:(ATTNUserIdentity *)userIdentity domain:(NSString *)domain { - NSURL* url = [self constructUserIdentityUrl:userIdentity domain:domain].URL; - NSURLSessionDataTask* task = [_urlSession dataTaskWithURL:url completionHandler:^ void (NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) { - if (error) { - NSLog(@"Error sending user identity. Error: '%@'", [error description]); - return; - } - - // The response is an HTTP response because the URL had an HTTPS scheme - NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*) response; - if ([httpResponse statusCode] != 200) { - NSLog(@"Error sending the event. Incorrect status code: '%ld'", (long)[httpResponse statusCode]); - return; - } - - NSLog(@"Successfully sent user identity event"); - }]; - - [task resume]; -} - -- (NSURLComponents*)constructEventUrlComponentsForEventRequest:(EventRequest*)eventRequest userIdentity:(ATTNUserIdentity *)userIdentity domain:(NSString *)domain { - NSURLComponents* urlComponents = [[NSURLComponents alloc] initWithString:@"https://events.attentivemobile.com/e"]; - - NSMutableDictionary* queryParams = [self constructBaseQueryParams:userIdentity domain:domain]; - NSMutableDictionary* combinedMetadata = [self buildBaseMetadata:userIdentity]; - [combinedMetadata addEntriesFromDictionary:eventRequest.metadata]; - queryParams[@"m"] = [self convertObjectToJson:combinedMetadata defaultValue:@"{}"]; - queryParams[@"t"] = eventRequest.eventNameAbbreviation; - - NSMutableArray *queryItems = [NSMutableArray array]; - for (NSString *key in queryParams) { - [queryItems addObject:[NSURLQueryItem queryItemWithName:key value:queryParams[key]]]; - } - - urlComponents.queryItems = queryItems; - - return urlComponents; -} - -- (NSMutableDictionary*)constructBaseQueryParams:(ATTNUserIdentity*)userIdentity domain:(NSString*)domain { - NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init]; - queryParams[@"v"] = @"mobile-app"; - queryParams[@"c"] = domain; - queryParams[@"lt"] = @"0"; - queryParams[@"evs"] = [self buildExternalVendorIdsJson:userIdentity]; - queryParams[@"u"] = userIdentity.visitorId; - return queryParams; -} - -- (NSURLComponents*)constructUserIdentityUrl:(ATTNUserIdentity *)userIdentity domain:(NSString *)domain { - NSURLComponents* urlComponents = [[NSURLComponents alloc] initWithString:@"https://events.attentivemobile.com/e"]; - - NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init]; - queryParams[@"v"] = @"mobile-app"; - queryParams[@"c"] = domain; - queryParams[@"t"] = EVENT_TYPE_USER_IDENTIFIER_COLLECTED; - queryParams[@"lt"] = @"0"; - queryParams[@"evs"] = [self buildExternalVendorIdsJson:userIdentity]; - queryParams[@"m"] = [self buildMetadataJson:userIdentity]; - queryParams[@"u"] = userIdentity.visitorId; - - // create query "items" for each query param - NSMutableArray *queryItems = [NSMutableArray array]; - for (NSString *key in queryParams) { - [queryItems addObject:[NSURLQueryItem queryItemWithName:key value:queryParams[key]]]; - } - - urlComponents.queryItems = queryItems; - - return urlComponents; -} - -- (NSString*)buildExternalVendorIdsJson:(ATTNUserIdentity*)userIdentity { - NSMutableArray* ids = [[NSMutableArray alloc] init]; - if (userIdentity.identifiers[IDENTIFIER_TYPE_CLIENT_USER_ID]) { - [ids addObject:@{@"vendor": EXTERNAL_VENDOR_TYPE_CLIENT_USER, @"id": userIdentity.identifiers[IDENTIFIER_TYPE_CLIENT_USER_ID]}]; - } - if (userIdentity.identifiers[IDENTIFIER_TYPE_KLAVIYO_ID]) { - [ids addObject:@{@"vendor": EXTERNAL_VENDOR_TYPE_KLAVIYO, @"id": userIdentity.identifiers[IDENTIFIER_TYPE_KLAVIYO_ID]}]; - } - if (userIdentity.identifiers[IDENTIFIER_TYPE_SHOPIFY_ID]) { - [ids addObject:@{@"vendor": EXTERNAL_VENDOR_TYPE_SHOPIFY, @"id": userIdentity.identifiers[IDENTIFIER_TYPE_SHOPIFY_ID]}]; - } - if (userIdentity.identifiers[IDENTIFIER_TYPE_CUSTOM_IDENTIFIERS]) { - NSDictionary* customIdentifiers = userIdentity.identifiers[IDENTIFIER_TYPE_CUSTOM_IDENTIFIERS]; - for (id key in customIdentifiers) { - [ids addObject:@{@"vendor": EXTERNAL_VENDOR_TYPE_CUSTOM_USER, @"id": customIdentifiers[key], @"name": key}]; - } - } - - NSError* error = nil; - NSData* array = [NSJSONSerialization dataWithJSONObject:ids options:0 error:&error]; - - if (error) { - NSLog(@"Could not serialize the external vendor ids. Returning an empty array. Error: '%@'", [error description]); - return @"[]"; - } - - return [[NSString alloc] initWithData:array encoding:NSUTF8StringEncoding]; -} - -- (NSString*)buildMetadataJson:(ATTNUserIdentity*)userIdentity { - NSMutableDictionary* metadata = [self buildBaseMetadata:userIdentity]; - - NSError* error = nil; - NSData* json = [NSJSONSerialization dataWithJSONObject:metadata options:0 error:&error]; - - if (error) { - NSLog(@"Could not serialize the external vendor ids. Returning an empty blob. Error: '%@'", [error description]); - return @"{}"; - } - - return [[NSString alloc] initWithData:json encoding:NSUTF8StringEncoding]; -} - -- (NSString*)convertObjectToJson:(id)object defaultValue:(NSString*)defaultValue { - NSError* error = nil; - NSData* json = [NSJSONSerialization dataWithJSONObject:object options:0 error:&error]; - - if (error) { - NSLog(@"Could not serialize the object to JSON. Error: '%@'", [error description]); - return defaultValue; - } - - return [[NSString alloc] initWithData:json encoding:NSUTF8StringEncoding]; -} - -- (NSMutableDictionary*)buildBaseMetadata:(ATTNUserIdentity*)userIdentity { - NSMutableDictionary* metadata = [[NSMutableDictionary alloc] init]; - metadata[@"source"] = @"msdk"; - if (userIdentity.identifiers[IDENTIFIER_TYPE_PHONE]) { - metadata[@"phone"] = userIdentity.identifiers[IDENTIFIER_TYPE_PHONE]; - } - if (userIdentity.identifiers[IDENTIFIER_TYPE_EMAIL]) { - metadata[@"email"] = userIdentity.identifiers[IDENTIFIER_TYPE_EMAIL]; - } - return metadata; -} - -+ (NSString* _Nullable)extractDomainFromTag:(NSString *)tag { - NSError *error = nil; - NSRegularExpression* regex = [NSRegularExpression regularExpressionWithPattern:@"window.__attentive_domain='(.*?).attn.tv'" options:0 error:&error]; - - if (error) { - NSLog(@"Error building the domain regex. Error: '%@'", [error description]); - return nil; - } - - NSInteger matchesCount = [regex numberOfMatchesInString:tag options:0 range:NSMakeRange(0, [tag length])]; - if (matchesCount < 1) { - NSLog(@"No Attentive domain found in the tag"); - return nil; - } else if (matchesCount > 1) { - NSLog(@"More than one match found for the Attentive domain regex. Continuing with the first one..."); - } - - NSTextCheckingResult* regexResult = [regex firstMatchInString:tag options:0 range:NSMakeRange(0, [tag length])]; - if (!regexResult) { - NSLog(@"No Attentive domain regex match object returned."); - return nil; - } - - NSRange domainRange = [regexResult rangeAtIndex:1]; - if (NSEqualRanges(domainRange, NSMakeRange(NSNotFound, 0))) { - NSLog(@"No match found for Attentive domain in the tag."); - return nil; - } - - return [tag substringWithRange:domainRange]; -} - -// For testing only -- (NSURLSession*)session { - return _urlSession; -} - -// For testing only -- (void)setSession:(NSURLSession*)session { - _urlSession = session; -} - -// For testing only -- (NSString* _Nullable)getCachedGeoAdjustedDomain { - return _cachedGeoAdjustedDomain; -} - -@end diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNAddToCartEvent.h b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNAddToCartEvent.h deleted file mode 100644 index 51aba48..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNAddToCartEvent.h +++ /dev/null @@ -1,25 +0,0 @@ -// -// ATTNAddToCartEvent.h -// attentive-ios-sdk -// -// Created by Wyatt Davis on 1/17/23. -// - -#import -#import "ATTNEvent.h" - -NS_ASSUME_NONNULL_BEGIN - -@class ATTNItem; - -@interface ATTNAddToCartEvent : NSObject - -@property (readonly) NSArray* items; - -- (instancetype)init NS_UNAVAILABLE; - -- (instancetype)initWithItems:(NSArray*)items; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNAddToCartEvent.m b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNAddToCartEvent.m deleted file mode 100644 index 79c41ce..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNAddToCartEvent.m +++ /dev/null @@ -1,25 +0,0 @@ -// -// ATTNAddToCartEvent.m -// attentive-ios-sdk -// -// Created by Wyatt Davis on 1/17/23. -// - -#import "ATTNEvent.h" -#import "ATTNAddToCartEvent.h" - -NS_ASSUME_NONNULL_BEGIN - -@implementation ATTNAddToCartEvent - -- (instancetype)initWithItems:(NSArray *)items { - if (self = [super init]) { - self->_items = items; - } - - return self; -} - -@end - -NS_ASSUME_NONNULL_END diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNCart.h b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNCart.h deleted file mode 100644 index b2dc38a..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNCart.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// ATTNCart.h -// attentive-ios-sdk -// -// Created by Wyatt Davis on 12/16/22. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface ATTNCart : NSObject - -@property (nullable) NSString* cartId; -@property (nullable) NSString* cartCoupon; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNCart.m b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNCart.m deleted file mode 100644 index 4557ea8..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNCart.m +++ /dev/null @@ -1,12 +0,0 @@ -// -// ATTNCart.m -// attentive-ios-sdk -// -// Created by Wyatt Davis on 12/16/22. -// - -#import "ATTNCart.h" - -@implementation ATTNCart - -@end diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNEvent.h b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNEvent.h deleted file mode 100644 index e1b3087..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNEvent.h +++ /dev/null @@ -1,16 +0,0 @@ -// -// ATTNEvent.h -// attentive-ios-sdk -// -// Created by Wyatt Davis on 12/16/22. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@protocol ATTNEvent - -@end - -NS_ASSUME_NONNULL_END diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNEventTracker.h b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNEventTracker.h deleted file mode 100644 index 1722f0b..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNEventTracker.h +++ /dev/null @@ -1,25 +0,0 @@ -// -// ATTNEventTracker.h -// attentive-ios-sdk -// -// Created by Wyatt Davis on 12/6/22. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@protocol ATTNEvent; -@class ATTNSDK; - -@interface ATTNEventTracker : NSObject - -+ (void)setupWithSdk:(ATTNSDK*)sdk; - -+ (instancetype)sharedInstance; - -- (void)recordEvent:(id)event; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNEventTracker.m b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNEventTracker.m deleted file mode 100644 index 453680e..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNEventTracker.m +++ /dev/null @@ -1,50 +0,0 @@ -// -// ATTNEventTracker.m -// attentive-ios-sdk -// -// Created by Wyatt Davis on 12/7/22. -// - -#import "ATTNEventTracker.h" -#import "ATTNSDK.h" -#import "ATTNAPI.h" - -static ATTNEventTracker* __sharedInstance = nil; - -@interface ATTNSDK (Internal) - -- (ATTNAPI*)getApi; -- (ATTNUserIdentity*)getUserIdentity; - -@end - -@implementation ATTNEventTracker { - ATTNSDK* _sdk; -} - -+ (void)setupWithSdk:(ATTNSDK*)sdk { - static dispatch_once_t ensureOnlyOnceToken; - dispatch_once(&ensureOnlyOnceToken, ^{ - __sharedInstance = [[self alloc] initWithSdk:sdk]; - }); -} - -- (id)initWithSdk:(ATTNSDK*)sdk { - if (self = [super init]) { - _sdk = sdk; - } - - return self; -} - -- (void)recordEvent:(id)event { - // TODO: Would be good to clone the UserIdentity so any changes to UserIdentity from another thread don't interfere with the API code - [[_sdk getApi] sendEvent:event userIdentity:[_sdk getUserIdentity]]; -} - -+ (instancetype)sharedInstance { - NSAssert(__sharedInstance != nil, @"ATTNEventTracker must be setup before being used"); - return __sharedInstance; -} - -@end diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNItem.h b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNItem.h deleted file mode 100644 index d298a9a..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNItem.h +++ /dev/null @@ -1,30 +0,0 @@ -// -// ATTNItem.h -// attentive-ios-sdk -// -// Created by Wyatt Davis on 12/16/22. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@class ATTNPrice; - -@interface ATTNItem : NSObject - -@property (readonly) NSString* productId; -@property (readonly) NSString* productVariantId; -@property (readonly) ATTNPrice* price; -@property int quantity; -@property (nullable) NSString* productImage; -@property (nullable) NSString* name; -@property (nullable) NSString* category; - -- (instancetype)init NS_UNAVAILABLE; - -- (instancetype)initWithProductId:(NSString*) productId productVariantId:(NSString*) productVariantId price:(ATTNPrice*)price; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNItem.m b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNItem.m deleted file mode 100644 index 0142b83..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNItem.m +++ /dev/null @@ -1,27 +0,0 @@ -// -// ATTNItem.m -// attentive-ios-sdk -// -// Created by Wyatt Davis on 12/16/22. -// - -#import "ATTNItem.h" - -NS_ASSUME_NONNULL_BEGIN - -@implementation ATTNItem - -- (instancetype)initWithProductId:(NSString*) productId productVariantId:(NSString*) productVariantId price:(ATTNPrice*)price { - if (self = [super init]) { - self->_productId = productId; - self->_productVariantId = productVariantId; - self->_price = price; - self->_quantity = 1; - } - - return self; -} - -@end - -NS_ASSUME_NONNULL_END diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNOrder.h b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNOrder.h deleted file mode 100644 index cb31ade..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNOrder.h +++ /dev/null @@ -1,22 +0,0 @@ -// -// ATTNOrder.h -// attentive-ios-sdk -// -// Created by Wyatt Davis on 12/16/22. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface ATTNOrder : NSObject - -@property NSString* orderId; - -- (instancetype)init NS_UNAVAILABLE; - -- (instancetype)initWithOrderId:(NSString*)orderId; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNOrder.m b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNOrder.m deleted file mode 100644 index e90a025..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNOrder.m +++ /dev/null @@ -1,24 +0,0 @@ -// -// ATTNOrder.m -// attentive-ios-sdk -// -// Created by Wyatt Davis on 12/16/22. -// - -#import "ATTNOrder.h" - -NS_ASSUME_NONNULL_BEGIN - -@implementation ATTNOrder - -- (instancetype)initWithOrderId:(NSString*)orderId { - if (self = [super init]) { - self->_orderId = orderId; - } - - return self; -} - -@end - -NS_ASSUME_NONNULL_END diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNParameterValidation.h b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNParameterValidation.h deleted file mode 100644 index abebaca..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNParameterValidation.h +++ /dev/null @@ -1,27 +0,0 @@ -// -// ATTNParameterValidation.h -// Example -// -// Created by Olivia Kim on 11/22/22. -// - -#ifndef ATTNParameterValidation_h -#define ATTNParameterValidation_h - -#import - -@interface ATTNParameterValidation : NSObject - - -+ (bool)isNotNil:(nullable NSObject *) inputValue; - -+ (bool)isStringAndNotEmpty:(nullable NSObject *) inputValue; - -+ (void)verifyStringOrNil:(nullable NSString *) inputValue inputName:(nonnull const NSString *) inputName; - -+ (void)verify1DStringDictionaryOrNil:(nullable NSDictionary *) inputValue inputName:(nonnull const NSString *) inputName; - - -@end - -#endif /* ATTNParameterValidation_h */ diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNParameterValidation.m b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNParameterValidation.m deleted file mode 100644 index ab24563..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNParameterValidation.m +++ /dev/null @@ -1,42 +0,0 @@ -// -// ATTNParameterValidation.m -// Example -// -// Created by Olivia Kim on 11/22/22. -// - -#import -#import "ATTNParameterValidation.h" - - -@implementation ATTNParameterValidation - - -+ (bool)isNotNil:(nullable NSObject *) inputValue { - return (inputValue != nil && ![inputValue isKindOfClass:[NSNull class]]); -} - -+ (bool)isStringAndNotEmpty:(nullable NSObject *) inputValue { - return ([inputValue isKindOfClass:[NSString class]] && [(NSData *)inputValue length] > 0); -} - -+ (void)verifyStringOrNil:(nullable NSString *) inputValue inputName:(nonnull const NSString *) inputName { - if([ATTNParameterValidation isNotNil:inputValue] && ![ATTNParameterValidation isStringAndNotEmpty:inputValue]) { - [NSException raise:@"Bad Identifier" format:@"%@ should be a non-empty NSString", inputName]; - } -} - -+ (void)verify1DStringDictionaryOrNil:(nullable NSDictionary *) inputValue inputName:(nonnull const NSString *) inputName { - if(![ATTNParameterValidation isNotNil:inputValue]) return; - - if(![inputValue isKindOfClass:[NSDictionary class]]) { - [NSException raise:@"Bad Identifier" format:@"%@ should be of form NSDictionary *", inputName]; - } - - for(id key in inputValue) { - [ATTNParameterValidation verifyStringOrNil:[inputValue objectForKey:key] inputName:[NSString stringWithFormat:@"%@[%@]", inputName, key]]; - } -} - - -@end diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPersistentStorage.h b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPersistentStorage.h deleted file mode 100644 index 6709dd9..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPersistentStorage.h +++ /dev/null @@ -1,32 +0,0 @@ -// -// ATTNPersistentStorage.h -// Example -// -// Created by Olivia Kim on 11/23/22. -// - -#ifndef ATTNPersistentStorage_h -#define ATTNPersistentStorage_h - - -NS_ASSUME_NONNULL_BEGIN - -@interface ATTNPersistentStorage : NSObject - - -@property(readonly) NSUserDefaults * userDefaults; - - -- (void)saveObject: (NSObject *) value forKey:(NSString *) key; - -- (nullable NSString *)readStringForKey: (NSString *) key; - -- (void)deleteObjectForKey: (NSString *) key; - - -@end - -NS_ASSUME_NONNULL_END - - -#endif /* ATTNPersistentStorage_h */ diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPersistentStorage.m b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPersistentStorage.m deleted file mode 100644 index 5da6c3c..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPersistentStorage.m +++ /dev/null @@ -1,42 +0,0 @@ -// -// ATTNPersistentStorage.m -// Example -// -// Created by Olivia Kim on 11/23/22. -// - -#import -#import "ATTNPersistentStorage.h" - - -static NSString *const ATTN_PERSISTENT_STORAGE_PREFIX = @"com.attentive.iossdk.PERSISTENT_STORAGE"; - - -@implementation ATTNPersistentStorage - - -- (id)init { - if (self = [super init]) { - _userDefaults = [NSUserDefaults standardUserDefaults]; - } - return self; -} - -- (NSString *)getPrefixedKey: (NSString * ) key { - return [NSString stringWithFormat:@"%@:%@", ATTN_PERSISTENT_STORAGE_PREFIX, key]; -} - -- (void)saveObject: (NSObject *) value forKey:(NSString *) key { - [_userDefaults setObject:value forKey:[self getPrefixedKey:key]]; -} - -- (NSString *)readStringForKey: (NSString *) key { - return [_userDefaults stringForKey:[self getPrefixedKey:key]]; -} - -- (void)deleteObjectForKey: (NSString *) key { - [_userDefaults removeObjectForKey:[self getPrefixedKey:key]]; -} - - -@end diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPrice.h b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPrice.h deleted file mode 100644 index 4b1d8ae..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPrice.h +++ /dev/null @@ -1,24 +0,0 @@ -// -// ATTNPrice.h -// attentive-ios-sdk -// -// Created by Wyatt Davis on 12/16/22. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface ATTNPrice : NSObject - -@property (readonly) NSDecimalNumber* price; -// the currency code, example "USD" -@property (readonly) NSString* currency; - -- (instancetype)init NS_UNAVAILABLE; - -- (instancetype)initWithPrice:(NSDecimalNumber*)price currency:(NSString*)currency; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPrice.m b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPrice.m deleted file mode 100644 index 58a5b22..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPrice.m +++ /dev/null @@ -1,25 +0,0 @@ -// -// ATTNPrice.m -// attentive-ios-sdk -// -// Created by Wyatt Davis on 12/16/22. -// - -#import "ATTNPrice.h" - -NS_ASSUME_NONNULL_BEGIN - -@implementation ATTNPrice - -- (instancetype)initWithPrice:(NSDecimalNumber*)price currency:(NSString*)currency { - if (self = [super init]) { - self->_price = price; - self->_currency = currency; - } - - return self; -} - -@end - -NS_ASSUME_NONNULL_END diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNProductViewEvent.h b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNProductViewEvent.h deleted file mode 100644 index 04bcb1c..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNProductViewEvent.h +++ /dev/null @@ -1,25 +0,0 @@ -// -// ATTNProductViewEvent.h -// attentive-ios-sdk -// -// Created by Wyatt Davis on 1/17/23. -// - -#import -#import "ATTNEvent.h" - -NS_ASSUME_NONNULL_BEGIN - -@class ATTNItem; - -@interface ATTNProductViewEvent : NSObject - -@property (readonly) NSArray* items; - -- (instancetype)init NS_UNAVAILABLE; - -- (instancetype)initWithItems:(NSArray*)items; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNProductViewEvent.m b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNProductViewEvent.m deleted file mode 100644 index a2bbf42..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNProductViewEvent.m +++ /dev/null @@ -1,25 +0,0 @@ -// -// ATTNProductViewEvent.m -// attentive-ios-sdk -// -// Created by Wyatt Davis on 1/17/23. -// - -#import "ATTNEvent.h" -#import "ATTNProductViewEvent.h" - -NS_ASSUME_NONNULL_BEGIN - -@implementation ATTNProductViewEvent - -- (instancetype)initWithItems:(NSArray *)items { - if (self = [super init]) { - self->_items = items; - } - - return self; -} - -@end - -NS_ASSUME_NONNULL_END diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPurchaseEvent.h b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPurchaseEvent.h deleted file mode 100644 index 890386c..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPurchaseEvent.h +++ /dev/null @@ -1,29 +0,0 @@ -// -// ATTNPurchaseEvent.h -// attentive-ios-sdk -// -// Created by Wyatt Davis on 12/7/22. -// - -#import -#import "ATTNEvent.h" - -NS_ASSUME_NONNULL_BEGIN - -@class ATTNOrder; -@class ATTNItem; -@class ATTNCart; - -@interface ATTNPurchaseEvent : NSObject - -@property (readonly) NSArray* items; -@property (readonly) ATTNOrder* order; -@property (nullable) ATTNCart* cart; - -- (instancetype)init NS_UNAVAILABLE; - -- (instancetype)initWithItems:(NSArray*)items order:(ATTNOrder*)order; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPurchaseEvent.m b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPurchaseEvent.m deleted file mode 100644 index b8f4d11..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNPurchaseEvent.m +++ /dev/null @@ -1,26 +0,0 @@ -// -// ATTNPurchaseEvent.m -// attentive-ios-sdk -// -// Created by Wyatt Davis on 12/7/22. -// - -#import "ATTNEvent.h" -#import "ATTNPurchaseEvent.h" - -NS_ASSUME_NONNULL_BEGIN - -@implementation ATTNPurchaseEvent - -- (instancetype)initWithItems:(NSArray*)items order:(ATTNOrder*)order { - if (self = [super init]) { - self->_items = items; - self->_order = order; - } - - return self; -} - -@end - -NS_ASSUME_NONNULL_END diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNSDK.h b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNSDK.h deleted file mode 100644 index 531183a..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNSDK.h +++ /dev/null @@ -1,34 +0,0 @@ -// -// SDK.h -// test -// -// Created by Ivan Loughman-Pawelko on 7/19/22. -// -#import -#import - - -@class ATTNUserIdentity; - - -@interface ATTNSDK : NSObject - -NS_ASSUME_NONNULL_BEGIN - -@property (readonly) NSString* domain; - -- (id)init NS_UNAVAILABLE; - -- (id)initWithDomain:(NSString *)domain; - -- (id)initWithDomain:(NSString *)domain mode:(NSString *)mode; - -- (void)identify:(NSDictionary *)userIdentifiers; - -- (void)trigger:(UIView *)theView; - -- (void)clearUser; - -NS_ASSUME_NONNULL_END - -@end diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNSDK.m b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNSDK.m deleted file mode 100644 index d78f67e..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNSDK.m +++ /dev/null @@ -1,231 +0,0 @@ -// -// CreativeSDK.m -// test -// -// Created by Ivan Loughman-Pawelko on 7/19/22. -// - -#import -#import "ATTNAPI.h" -#import "ATTNSDK.h" -#import "ATTNUserIdentity.h" - -@implementation ATTNSDK { - UIView *_parentView; - WKWebView *_webView; - NSString *_mode; - ATTNUserIdentity *_userIdentity; - ATTNAPI *_api; -} - -- (id)initWithDomain:(NSString *)domain { - return [self initWithDomain:domain mode:@"production"]; -} - -- (id)initWithDomain:(NSString *)domain mode:(NSString *)mode { - if (self = [super init]) { - self->_domain = domain; - _mode = mode; - _userIdentity = [[ATTNUserIdentity alloc] init]; - _api = [[ATTNAPI alloc] initWithDomain:domain]; - } - return self; -} - -- (void)identify:(NSDictionary *)userIdentifiers { - if([userIdentifiers isKindOfClass:[NSString class]]) { - // accept NSString for backward compatibility - NSLog(@"WARNING: This way of calling identify is deprecated. Please pass in userIdentifiers as an . See SDK README for details."); - [_userIdentity mergeIdentifiers:@{IDENTIFIER_TYPE_CLIENT_USER_ID: (NSString *)userIdentifiers}]; - } else if([userIdentifiers isKindOfClass:[NSDictionary class]]) { - [_userIdentity mergeIdentifiers:(NSDictionary *)userIdentifiers]; - } else { - [NSException raise:@"Incorrect type for userIdentifiers" format:@"userIdentifiers should be of type "]; - } - - [_api sendUserIdentity:_userIdentity]; -} - -- (void)trigger:(UIView *)theView { - _parentView = theView; - NSLog(@"Called showWebView in creativeSDK with domain: %@", _domain); - if (@available(iOS 14, *)) { - NSLog(@"The iOS version is new enough, continuing to show the Attentive creative."); - } else { - NSLog(@"Not showing the Attentive creative because the iOS version is too old."); - return; - } - NSString* creativePageUrl = [self buildCompanyCreativeUrl]; - - NSLog(@"Requesting creative page url: %@", creativePageUrl); - - NSURL *url = [NSURL URLWithString:creativePageUrl]; - NSURLRequest *request = [NSURLRequest requestWithURL:url]; - - WKWebViewConfiguration *wkWebViewConfiguration = [[WKWebViewConfiguration alloc] init]; - - [[wkWebViewConfiguration userContentController] addScriptMessageHandler:self name:@"log"]; - - NSString *userScriptWithEventListener = @"window.addEventListener('message', (event) => {if (event.data && event.data.__attentive && event.data.__attentive.action === 'CLOSE') {window.webkit.messageHandlers.log.postMessage(event.data.__attentive.action);}}, false);"; - - WKUserScript *wkUserScript = [[WKUserScript alloc] initWithSource:userScriptWithEventListener injectionTime:WKUserScriptInjectionTimeAtDocumentStart forMainFrameOnly:FALSE]; - [[wkWebViewConfiguration userContentController] addUserScript:wkUserScript]; - - _webView = [[WKWebView alloc] initWithFrame:theView.frame configuration:wkWebViewConfiguration]; - _webView.navigationDelegate = self; - - [_webView loadRequest:request ]; - - if ([_mode isEqualToString:@"debug"]) { - [_parentView addSubview:_webView]; - } - else { - _webView.opaque = NO; - _webView.backgroundColor = [UIColor clearColor]; - } -} - -- (void)clearUser{ - [_userIdentity clearUser]; -} - -- (nonnull NSString *)buildCompanyCreativeUrl { - - NSURLComponents *components = [[NSURLComponents alloc] initWithString:@"https://creatives.attn.tv/mobile-apps/index.html"]; - - // Add query parameters - NSMutableArray * queryItems = [[NSMutableArray alloc] initWithObjects: - [[NSURLQueryItem alloc] initWithName:@"domain" value:_domain], - nil]; - - if ([_mode isEqualToString:@"debug"]) { - [queryItems addObject:[[NSURLQueryItem alloc] initWithName:_mode value:@"matter-trip-grass-symbol"]]; - } - - if (_userIdentity.visitorId != nil) { - [queryItems addObject:[[NSURLQueryItem alloc] initWithName:@"vid" value:_userIdentity.visitorId]]; - } - else { - NSLog(@"ERROR: No Visitor ID Found. This should not happen."); - } - - if (_userIdentity.identifiers[IDENTIFIER_TYPE_CLIENT_USER_ID] != nil) { - [queryItems addObject:[[NSURLQueryItem alloc] initWithName:@"cuid" value:_userIdentity.identifiers[IDENTIFIER_TYPE_CLIENT_USER_ID]]]; - } - - if (_userIdentity.identifiers[IDENTIFIER_TYPE_PHONE] != nil) { - [queryItems addObject:[[NSURLQueryItem alloc] initWithName:@"p" value:_userIdentity.identifiers[IDENTIFIER_TYPE_PHONE]]]; - } - - if (_userIdentity.identifiers[IDENTIFIER_TYPE_EMAIL] != nil) { - [queryItems addObject:[[NSURLQueryItem alloc] initWithName:@"e" value:_userIdentity.identifiers[IDENTIFIER_TYPE_EMAIL]]]; - } - - if (_userIdentity.identifiers[IDENTIFIER_TYPE_KLAVIYO_ID] != nil) { - [queryItems addObject:[[NSURLQueryItem alloc] initWithName:@"kid" value:_userIdentity.identifiers[IDENTIFIER_TYPE_KLAVIYO_ID]]]; - } - - if (_userIdentity.identifiers[IDENTIFIER_TYPE_SHOPIFY_ID] != nil) { - [queryItems addObject:[[NSURLQueryItem alloc] initWithName:@"sid" value:_userIdentity.identifiers[IDENTIFIER_TYPE_KLAVIYO_ID]]]; - } - - if (_userIdentity.identifiers[IDENTIFIER_TYPE_CUSTOM_IDENTIFIERS] != nil) { - [queryItems addObject:[[NSURLQueryItem alloc] initWithName:@"cstm" value:[self getCustomIdentifiersJson]]]; - } - - [components setQueryItems:queryItems]; - - return [components string]; -} - -- (nonnull NSString *)getCustomIdentifiersJson { - @try { - NSError * error; - NSData *jsonData = [NSJSONSerialization dataWithJSONObject:_userIdentity.identifiers[IDENTIFIER_TYPE_CUSTOM_IDENTIFIERS] - options:0 // Do not pretty print the json string - error:&error]; - return [[NSString alloc]initWithData:jsonData encoding:NSUTF8StringEncoding]; - } @catch (NSException *exception) { - NSLog(@"ERROR: Could not parse custom identifiers to json %@", exception); - } - - return @"{}"; -} - -- (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation { - - NSString *asyncJs = @"var p = new Promise(resolve => { " - " var timeoutHandle = null;" - " const interval = setInterval(function() {" - " e = document.querySelector('iframe');" - " if(e && e.id === 'attentive_creative') {" - " clearInterval(interval);" - " resolve('SUCCESS');" - " if (timeoutHandle != null) {" - " clearTimeout(timeoutHandle);" - " }" - " }" - " }, 100);" - " timeoutHandle = setTimeout(function() {" - " clearInterval(interval);" - " resolve('TIMED OUT');" - " }, 5000);" - "}); " - "var status = await p; " - "return status;"; - - [webView callAsyncJavaScript:asyncJs arguments:nil inFrame:nil inContentWorld:WKContentWorld.defaultClientWorld completionHandler:^(NSString *status, NSError *error) { - if (!status) { - NSLog(@"No status returned from JS. Not showing WebView."); - return; - } else if ([status isEqualToString:@"SUCCESS"]) { - NSLog(@"Found creative iframe, showing WebView."); - if(![self->_mode isEqualToString:@"debug"]) { - [self->_parentView addSubview:webView]; - } - } else if ([status isEqualToString:@"TIMED OUT"]) { - NSLog(@"Creative timed out. Not showing WebView."); - } else { - NSLog(@"Received unknown status: %@. Not showing WebView", status); - } - }]; -} - - -- (void)userContentController:(WKUserContentController *)userContentController - didReceiveScriptMessage:(WKScriptMessage *)message { - if ([message.body isEqualToString:@"CLOSE"]) { - [_webView removeFromSuperview]; - } -} - - -- (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler { - NSURL *url = navigationAction.request.URL; - if ([url.scheme isEqualToString:@"sms"]) { - [UIApplication.sharedApplication openURL:url]; - decisionHandler(WKNavigationActionPolicyCancel); - return; - } else if ([[url.scheme lowercaseString] isEqualToString:@"http"] || [[url.scheme lowercaseString] isEqualToString:@"https"]) { - // If the targetFrame is nil then the link was defined to open in a new tab (two examples of this are the Privacy and Terms links). In this case, open the url in the phone's web browser instead of the webview. - if ([navigationAction targetFrame] == nil) { - [UIApplication.sharedApplication openURL:url]; - decisionHandler(WKNavigationActionPolicyCancel); - return; - } else { - decisionHandler(WKNavigationActionPolicyAllow); - } - } else { - decisionHandler(WKNavigationActionPolicyAllow); - } -} - -- (ATTNAPI*)getApi { - return _api; -} - -- (ATTNUserIdentity*)getUserIdentity { - return _userIdentity; -} - -@end diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNUserIdentity.h b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNUserIdentity.h deleted file mode 100644 index 92cb3b5..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNUserIdentity.h +++ /dev/null @@ -1,41 +0,0 @@ -// -// ATTNUserIdentifiers.h -// Example -// -// Created by Wyatt Davis on 11/9/22. -// - -#import - -@class ATTNVisitorService; - - -NS_ASSUME_NONNULL_BEGIN - -extern NSString * const IDENTIFIER_TYPE_CLIENT_USER_ID; -extern NSString * const IDENTIFIER_TYPE_PHONE; -extern NSString * const IDENTIFIER_TYPE_EMAIL; -extern NSString * const IDENTIFIER_TYPE_SHOPIFY_ID; -extern NSString * const IDENTIFIER_TYPE_KLAVIYO_ID; -extern NSString * const IDENTIFIER_TYPE_CUSTOM_IDENTIFIERS; - - -@interface ATTNUserIdentity : NSObject - -@property NSDictionary * identifiers; - -@property NSString * visitorId; - - -- (id)init; - -- (id)initWithIdentifiers:(NSDictionary *) identifiers; - -- (void)mergeIdentifiers:(NSDictionary *) newIdentifiers; - -- (void)clearUser; - -@end - - -NS_ASSUME_NONNULL_END diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNUserIdentity.m b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNUserIdentity.m deleted file mode 100644 index d7cbdb1..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNUserIdentity.m +++ /dev/null @@ -1,70 +0,0 @@ -// -// ATTNUserIdentifiers.h -// Example -// -// Created by Wyatt Davis on 11/9/22. -// - -#import - -#import "ATTNParameterValidation.h" -#import "ATTNUserIdentity.h" -#import "ATTNVisitorService.h" - - -// Your unique identifier for the user - this should be consistent across the user's lifetime, for example a database id -NSString * const IDENTIFIER_TYPE_CLIENT_USER_ID = @"clientUserId"; -// The user's phone number in E.164 format -NSString * const IDENTIFIER_TYPE_PHONE = @"phone"; -// The user's email -NSString * const IDENTIFIER_TYPE_EMAIL = @"email"; -// The user's Shopify Customer ID -NSString * const IDENTIFIER_TYPE_SHOPIFY_ID = @"shopifyId"; -// The user's Klaviyo ID -NSString * const IDENTIFIER_TYPE_KLAVIYO_ID = @"klaviyoId"; -// Key-value pairs of custom identifier names and values (both NSStrings) to associate with this user -NSString * const IDENTIFIER_TYPE_CUSTOM_IDENTIFIERS = @"customIdentifiers"; - - -@implementation ATTNUserIdentity { - ATTNVisitorService * _visitorService; -} - -- (id)init { - return [self initWithIdentifiers:@{}]; -} - -- (id)initWithIdentifiers:(nonnull NSDictionary *) identifiers { - if (self = [super init]) { - [self validateIdentifiers:identifiers]; - _identifiers = identifiers; - _visitorService = [[ATTNVisitorService alloc] init]; - _visitorId = [_visitorService getVisitorId]; - } - return self; -} - -- (void)mergeIdentifiers:(nonnull NSDictionary *) newIdentifiers { - [self validateIdentifiers:newIdentifiers]; - - NSMutableDictionary *currentIdentifiersCopy = [_identifiers mutableCopy]; - [currentIdentifiersCopy addEntriesFromDictionary:newIdentifiers]; - _identifiers = currentIdentifiersCopy; -} - -- (void)validateIdentifiers:(nonnull NSDictionary *) identifiers { - [ATTNParameterValidation verifyStringOrNil:identifiers[IDENTIFIER_TYPE_CLIENT_USER_ID] inputName:IDENTIFIER_TYPE_CLIENT_USER_ID]; - [ATTNParameterValidation verifyStringOrNil:identifiers[IDENTIFIER_TYPE_PHONE] inputName:IDENTIFIER_TYPE_PHONE]; - [ATTNParameterValidation verifyStringOrNil:identifiers[IDENTIFIER_TYPE_EMAIL] inputName:IDENTIFIER_TYPE_EMAIL]; - [ATTNParameterValidation verifyStringOrNil:identifiers[IDENTIFIER_TYPE_SHOPIFY_ID] inputName:IDENTIFIER_TYPE_SHOPIFY_ID]; - [ATTNParameterValidation verifyStringOrNil:identifiers[IDENTIFIER_TYPE_KLAVIYO_ID] inputName:IDENTIFIER_TYPE_KLAVIYO_ID]; - [ATTNParameterValidation verify1DStringDictionaryOrNil:identifiers[IDENTIFIER_TYPE_CUSTOM_IDENTIFIERS] inputName:IDENTIFIER_TYPE_CUSTOM_IDENTIFIERS]; -} - -- (void)clearUser { - _identifiers = @{}; - _visitorId = [_visitorService createNewVisitorId]; -} - - -@end diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNVisitorService.h b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNVisitorService.h deleted file mode 100644 index ebb345d..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNVisitorService.h +++ /dev/null @@ -1,36 +0,0 @@ -// -// ATTNVisitorService.h -// Example -// -// Created by Olivia Kim on 11/23/22. -// - -@class ATTNPersistentStorage; - - -#ifndef ATTNVisitorService_h -#define ATTNVisitorService_h - - -NS_ASSUME_NONNULL_BEGIN - - -@interface ATTNVisitorService : NSObject - - -@property(readonly) ATTNPersistentStorage * persistentStorage; - - -- (id)init; - -- (NSString *)getVisitorId; - -- (NSString *)createNewVisitorId; - - -@end - -NS_ASSUME_NONNULL_END - - -#endif /* ATTNVisitorService_h */ diff --git a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNVisitorService.m b/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNVisitorService.m deleted file mode 100644 index 01b204a..0000000 --- a/ExampleSwift/Pods/attentive-ios-sdk/Sources/ATTNVisitorService.m +++ /dev/null @@ -1,48 +0,0 @@ -// -// ATTNVisitorService.m -// Example -// -// Created by Olivia Kim on 11/23/22. -// - - -#import -#import "ATTNVisitorService.h" -#import "ATTNPersistentStorage.h" - - -static NSString *const VISITOR_ID_KEY = @"visitorId"; - - -@implementation ATTNVisitorService - -- (id)init { - if (self = [super init]) { - _persistentStorage = [[ATTNPersistentStorage alloc] init]; - } - return self; -} - -- (NSString *)getVisitorId { - NSString * existingVisitorId = [_persistentStorage readStringForKey:VISITOR_ID_KEY]; - if(existingVisitorId != nil) { - return existingVisitorId; - } else { - return [self createNewVisitorId]; - } -} - -- (NSString *)createNewVisitorId { - NSString * newVisitorId = [self generateVisitorId]; - [_persistentStorage saveObject:newVisitorId forKey:VISITOR_ID_KEY]; - return newVisitorId; -} - -- (NSString *)generateVisitorId { - NSUUID * uuid = [NSUUID UUID]; - NSString * uuidString = [[uuid UUIDString] stringByReplacingOccurrencesOfString:@"-" withString:@""]; - return [uuidString lowercaseString]; -} - - -@end diff --git a/Sources/ATTNAPI.m b/Sources/ATTNAPI.m index e342635..dc0fb8e 100644 --- a/Sources/ATTNAPI.m +++ b/Sources/ATTNAPI.m @@ -6,6 +6,7 @@ // #import +#import #import "ATTNParameterValidation.h" #import "ATTNUserIdentity.h" diff --git a/Sources/ATTNSDK.m b/Sources/ATTNSDK.m index 8e34c56..d37b0cc 100644 --- a/Sources/ATTNSDK.m +++ b/Sources/ATTNSDK.m @@ -6,6 +6,7 @@ // #import +#import #import "ATTNAPI.h" #import "ATTNSDK.h" #import "ATTNUserIdentity.h" From 25807a556872d723d30848082c2b08cb4f34c4a3 Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Thu, 8 Feb 2024 13:06:37 -0500 Subject: [PATCH 09/24] update gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index dd20062..5620537 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,8 @@ Carthage/Build # cocoapods Example/Podfile.lock Example/Pods +ExampleSwift/Podfile.lock +ExampleSwift/Pods # swift builds .build/* From 1ecb50287234ba6caf48a87170f214b394aee08a Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Tue, 13 Feb 2024 14:34:13 -0500 Subject: [PATCH 10/24] update package name --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 838d142..a389bff 100644 --- a/Package.swift +++ b/Package.swift @@ -4,7 +4,7 @@ import PackageDescription let package = Package( - name: "attentive-ios-sdk", + name: "AttentiveSdk", platforms: [.iOS(.v12)], products: [ .library(name: "attentive-ios-sdk", targets: ["attentive-ios-sdk"]) From 407c7b377117ae72f2e6d9f5cd486525249639a1 Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Tue, 13 Feb 2024 14:41:49 -0500 Subject: [PATCH 11/24] Renaming package to be consistent with umbrella header --- Package.swift | 6 +++--- Sources/ATTNAPI.m | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Package.swift b/Package.swift index a389bff..d583008 100644 --- a/Package.swift +++ b/Package.swift @@ -4,15 +4,15 @@ import PackageDescription let package = Package( - name: "AttentiveSdk", + name: "ATTNSDKFramework", platforms: [.iOS(.v12)], products: [ - .library(name: "attentive-ios-sdk", targets: ["attentive-ios-sdk"]) + .library(name: "ATTNSDKFramework", targets: ["ATTNSDKFramework"]) ], targets: [ .target( - name: "attentive-ios-sdk", + name: "ATTNSDKFramework", path: "Sources/" ) ] diff --git a/Sources/ATTNAPI.m b/Sources/ATTNAPI.m index dc0fb8e..0af94ee 100644 --- a/Sources/ATTNAPI.m +++ b/Sources/ATTNAPI.m @@ -6,7 +6,7 @@ // #import -#import +#import #import "ATTNParameterValidation.h" #import "ATTNUserIdentity.h" From dff4951b76543c14958ee6f29e830c327043077c Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Tue, 13 Feb 2024 14:58:08 -0500 Subject: [PATCH 12/24] Testing framework import path --- ExampleSwift/Package.resolved | 4 ++-- ExampleSwift/Package.swift | 2 +- Sources/include/ATTNSDKFramework.h | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/ExampleSwift/Package.resolved b/ExampleSwift/Package.resolved index a008fb9..26c3249 100644 --- a/ExampleSwift/Package.resolved +++ b/ExampleSwift/Package.resolved @@ -2,11 +2,11 @@ "object": { "pins": [ { - "package": "attentive-ios-sdk", + "package": "ATTNSDKFramework", "repositoryURL": "https://github.com/attentive-mobile/attentive-ios-sdk", "state": { "branch": "rsmith/support-swift", - "revision": "906c99881d8a7995d636baa41af0d6921da63af6", + "revision": "407c7b377117ae72f2e6d9f5cd486525249639a1", "version": null } } diff --git a/ExampleSwift/Package.swift b/ExampleSwift/Package.swift index c745e27..1eb0ab2 100644 --- a/ExampleSwift/Package.swift +++ b/ExampleSwift/Package.swift @@ -18,7 +18,7 @@ let package = Package( .target( name: "ExampleSwift", dependencies: [ - .product(name: "attentive-ios-sdk", package: "attentive-ios-sdk")], + .product(name: "ATTNSDKFramework", package: "attentive-ios-sdk")], path: "ExampleSwift" // Ensure this path exists and is correct ), ] diff --git a/Sources/include/ATTNSDKFramework.h b/Sources/include/ATTNSDKFramework.h index 010ee38..98530d5 100644 --- a/Sources/include/ATTNSDKFramework.h +++ b/Sources/include/ATTNSDKFramework.h @@ -4,12 +4,9 @@ FOUNDATION_EXPORT double ATTNSDKFrameworkVersionNumber; FOUNDATION_EXPORT const unsigned char ATTNSDKFrameworkVersionString[]; -// 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 From e72768ddcd078ffc2e77fc885da189fd4efa4107 Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Tue, 13 Feb 2024 15:11:04 -0500 Subject: [PATCH 13/24] Updating other framework file --- Framework/ATTNSDKFramework.h | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/Framework/ATTNSDKFramework.h b/Framework/ATTNSDKFramework.h index 010ee38..8155bd6 100644 --- a/Framework/ATTNSDKFramework.h +++ b/Framework/ATTNSDKFramework.h @@ -4,18 +4,16 @@ FOUNDATION_EXPORT double ATTNSDKFrameworkVersionNumber; FOUNDATION_EXPORT const unsigned char ATTNSDKFrameworkVersionString[]; -// 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 From 4bb49816e6fc1326351cd8c97ed64bfe5955ee33 Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Tue, 13 Feb 2024 15:21:34 -0500 Subject: [PATCH 14/24] Reverting back to attentive-ios-sdk-framework --- Framework/ATTNSDKFramework.h | 28 +++++++++++++++------------- Sources/include/ATTNSDKFramework.h | 2 +- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/Framework/ATTNSDKFramework.h b/Framework/ATTNSDKFramework.h index 8155bd6..010ee38 100644 --- a/Framework/ATTNSDKFramework.h +++ b/Framework/ATTNSDKFramework.h @@ -4,16 +4,18 @@ FOUNDATION_EXPORT double ATTNSDKFrameworkVersionNumber; FOUNDATION_EXPORT const unsigned char ATTNSDKFrameworkVersionString[]; -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import +// 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 diff --git a/Sources/include/ATTNSDKFramework.h b/Sources/include/ATTNSDKFramework.h index 98530d5..5ec4af9 100644 --- a/Sources/include/ATTNSDKFramework.h +++ b/Sources/include/ATTNSDKFramework.h @@ -4,7 +4,7 @@ FOUNDATION_EXPORT double ATTNSDKFrameworkVersionNumber; FOUNDATION_EXPORT const unsigned char ATTNSDKFrameworkVersionString[]; -#import +#import #import #import #import From eb6b7178de609edd603d4808ebeb52bac6877d0b Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Tue, 13 Feb 2024 15:52:35 -0500 Subject: [PATCH 15/24] Renaming imports for framework to be exact paths --- Framework/ATTNSDKFramework.h | 27 ++++++++++++++------------- Sources/include/ATTNSDKFramework.h | 25 +++++++++++++------------ 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/Framework/ATTNSDKFramework.h b/Framework/ATTNSDKFramework.h index 010ee38..ff19784 100644 --- a/Framework/ATTNSDKFramework.h +++ b/Framework/ATTNSDKFramework.h @@ -6,16 +6,17 @@ FOUNDATION_EXPORT const unsigned char ATTNSDKFrameworkVersionString[]; // 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 diff --git a/Sources/include/ATTNSDKFramework.h b/Sources/include/ATTNSDKFramework.h index 5ec4af9..8608af3 100644 --- a/Sources/include/ATTNSDKFramework.h +++ b/Sources/include/ATTNSDKFramework.h @@ -4,15 +4,16 @@ FOUNDATION_EXPORT double ATTNSDKFrameworkVersionNumber; FOUNDATION_EXPORT const unsigned char ATTNSDKFrameworkVersionString[]; -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import +#import <../ATTNSDK.h> +//#import +//#import +//#import +//#import +//#import +//#import +//#import +//#import +//#import +//#import +//#import +//#import From 708b640076138f691a39a9936537c3c3d22cd459 Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Tue, 13 Feb 2024 16:01:32 -0500 Subject: [PATCH 16/24] testing which framework file is used --- Framework/ATTNSDKFramework.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Framework/ATTNSDKFramework.h b/Framework/ATTNSDKFramework.h index ff19784..b221676 100644 --- a/Framework/ATTNSDKFramework.h +++ b/Framework/ATTNSDKFramework.h @@ -6,7 +6,7 @@ FOUNDATION_EXPORT const unsigned char ATTNSDKFrameworkVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import -#import +//#import //#import //#import //#import From c0de75f673a14bd425733a04e244a1d9c7b76a34 Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Tue, 13 Feb 2024 16:02:31 -0500 Subject: [PATCH 17/24] Testing the reverse to see if both framework files work --- Framework/ATTNSDKFramework.h | 2 +- Sources/include/ATTNSDKFramework.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Framework/ATTNSDKFramework.h b/Framework/ATTNSDKFramework.h index b221676..ff19784 100644 --- a/Framework/ATTNSDKFramework.h +++ b/Framework/ATTNSDKFramework.h @@ -6,7 +6,7 @@ FOUNDATION_EXPORT const unsigned char ATTNSDKFrameworkVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import -//#import +#import //#import //#import //#import diff --git a/Sources/include/ATTNSDKFramework.h b/Sources/include/ATTNSDKFramework.h index 8608af3..b7e3de8 100644 --- a/Sources/include/ATTNSDKFramework.h +++ b/Sources/include/ATTNSDKFramework.h @@ -4,7 +4,7 @@ FOUNDATION_EXPORT double ATTNSDKFrameworkVersionNumber; FOUNDATION_EXPORT const unsigned char ATTNSDKFrameworkVersionString[]; -#import <../ATTNSDK.h> +//#import <../ATTNSDK.h> //#import //#import //#import From 0bf29e1001e180c0b84fe8e2bd350de7232a8346 Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Tue, 13 Feb 2024 16:05:17 -0500 Subject: [PATCH 18/24] removing duplicate files and updating imports in the framework within include --- Framework/ATTNSDKFramework.h | 22 ---------------------- Sources/include/ATTNSDKFramework.h | 25 ++++++++++++------------- 2 files changed, 12 insertions(+), 35 deletions(-) delete mode 100644 Framework/ATTNSDKFramework.h diff --git a/Framework/ATTNSDKFramework.h b/Framework/ATTNSDKFramework.h deleted file mode 100644 index ff19784..0000000 --- a/Framework/ATTNSDKFramework.h +++ /dev/null @@ -1,22 +0,0 @@ -#import - -FOUNDATION_EXPORT double ATTNSDKFrameworkVersionNumber; - -FOUNDATION_EXPORT const unsigned char ATTNSDKFrameworkVersionString[]; - -// 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 diff --git a/Sources/include/ATTNSDKFramework.h b/Sources/include/ATTNSDKFramework.h index b7e3de8..6ce9113 100644 --- a/Sources/include/ATTNSDKFramework.h +++ b/Sources/include/ATTNSDKFramework.h @@ -4,16 +4,15 @@ FOUNDATION_EXPORT double ATTNSDKFrameworkVersionNumber; FOUNDATION_EXPORT const unsigned char ATTNSDKFrameworkVersionString[]; -//#import <../ATTNSDK.h> -//#import -//#import -//#import -//#import -//#import -//#import -//#import -//#import -//#import -//#import -//#import -//#import +#import <../ATTNSDK.h> +#import <../ATTNUserIdentity.h> +#import <../ATTNEventTracker.h> +#import <../ATTNItem.h> +#import <../ATTNPrice.h> +#import <../ATTNEvent.h> +#import <../ATTNPurchaseEvent.h> +#import <../ATTNProductViewEvent.h> +#import <../ATTNAddToCartEvent.h> +#import <../ATTNOrder.h> +#import <../ATTNCart.h> +#import <../ATTNCustomEvent.h> From cf0df4e1bfb9b7a80403e5fe98822cfe4cb9b263 Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Thu, 15 Feb 2024 10:36:03 -0500 Subject: [PATCH 19/24] Swift is building --- Example/Example.xcodeproj/project.pbxproj | 6 +- .../contents.xcworkspacedata | 7 ++ .../ExampleSwift.xcodeproj/project.pbxproj | 51 +++++++++--- .../xcschemes/ExampleSwift - Pod.xcscheme | 77 +++++++++++++++++++ ExampleSwift/ExampleSwift/AppDelegate.swift | 4 +- .../ExampleSwift/ProductViewController.swift | 2 + .../ExampleSwift/ViewController.swift | 4 +- .../attentive-ios-sdk-bridging-header.h | 23 ------ .../attentive-ios-sdk-local-bridging-header.h | 15 ---- ExampleSwift/Package.resolved | 2 +- Framework/ATTNSDKFramework.h | 21 +++++ attentive-ios-sdk.xcodeproj/project.pbxproj | 4 +- .../contents.xcworkspacedata | 3 - .../xcshareddata/swiftpm/Package.resolved | 14 ++++ 14 files changed, 172 insertions(+), 61 deletions(-) create mode 100644 ExampleSwift/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata create mode 100644 ExampleSwift/ExampleSwift.xcodeproj/xcshareddata/xcschemes/ExampleSwift - Pod.xcscheme delete mode 100644 ExampleSwift/ExampleSwift/attentive-ios-sdk-bridging-header.h delete mode 100644 ExampleSwift/ExampleSwift/attentive-ios-sdk-local-bridging-header.h create mode 100644 Framework/ATTNSDKFramework.h create mode 100644 attentive-ios-sdk.xcworkspace/xcshareddata/swiftpm/Package.resolved diff --git a/Example/Example.xcodeproj/project.pbxproj b/Example/Example.xcodeproj/project.pbxproj index a186f05..d56e261 100644 --- a/Example/Example.xcodeproj/project.pbxproj +++ b/Example/Example.xcodeproj/project.pbxproj @@ -432,7 +432,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = ""; + DEVELOPMENT_TEAM = SP5WN9647Z; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Info.plist; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -606,7 +606,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = ""; + DEVELOPMENT_TEAM = SP5WN9647Z; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Info.plist; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -667,7 +667,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = ""; + DEVELOPMENT_TEAM = SP5WN9647Z; FRAMEWORK_SEARCH_PATHS = ""; GENERATE_INFOPLIST_FILE = YES; HEADER_SEARCH_PATHS = ""; diff --git a/ExampleSwift/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/ExampleSwift/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/ExampleSwift/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj b/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj index 0c93e25..096d920 100644 --- a/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj +++ b/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj @@ -8,6 +8,7 @@ /* Begin PBXBuildFile section */ 58389AB62987647B00A31A35 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 58389AB52987647B00A31A35 /* Preview Assets.xcassets */; }; + 586439712B7D17680031140F /* ATTNSDKFramework in Frameworks */ = {isa = PBXBuildFile; productRef = 586439702B7D17680031140F /* ATTNSDKFramework */; }; 587DC5BF299550DA0082F8D0 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 587DC5BE299550DA0082F8D0 /* AppDelegate.swift */; }; 587DC5C4299554B00082F8D0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 587DC5C3299554B00082F8D0 /* Assets.xcassets */; }; 587DC5CB2995551A0082F8D0 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 587DC5C82995551A0082F8D0 /* Main.storyboard */; }; @@ -43,6 +44,7 @@ 58389AAA2987647900A31A35 /* ExampleSwift - Local.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ExampleSwift - Local.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 58389AB32987647B00A31A35 /* ExampleSwift.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ExampleSwift.entitlements; sourceTree = ""; }; 58389AB52987647B00A31A35 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 5864396B2B7BEE460031140F /* attentive_ios_sdk_framework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = attentive_ios_sdk_framework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 587DC5BE299550DA0082F8D0 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 587DC5C3299554B00082F8D0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = "ExampleSwift/Supporting Files/Assets.xcassets"; sourceTree = SOURCE_ROOT; }; 587DC5C92995551A0082F8D0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = SOURCE_ROOT; }; @@ -51,7 +53,6 @@ 588B597729B94AC200E3BA33 /* attentive_ios_sdk_framework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = attentive_ios_sdk_framework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 588EB7192995BBB700C0163A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = SOURCE_ROOT; }; 588EB72C2995BC3A00C0163A /* ExampleSwift - Pod.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ExampleSwift - Pod.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 588EB72D2995BC3A00C0163A /* ExampleSwift - Local copy-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "ExampleSwift - Local copy-Info.plist"; path = "/Users/wdavis/repos/attentive-ios-sdk/ExampleSwift/ExampleSwift - Local copy-Info.plist"; sourceTree = ""; }; 588EB72E2995BE2E00C0163A /* attentive-ios-sdk-bridging-header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "attentive-ios-sdk-bridging-header.h"; sourceTree = ""; }; 58ADF92E2988738D002EA268 /* attentive_ios_sdk.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = attentive_ios_sdk.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 58ADF9322988746D002EA268 /* attentive-ios-sdk-local-bridging-header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "attentive-ios-sdk-local-bridging-header.h"; sourceTree = ""; }; @@ -70,6 +71,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 586439712B7D17680031140F /* ATTNSDKFramework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -83,8 +85,6 @@ 587DC5C5299554DF0082F8D0 /* Supporting Files */, 58389AAB2987647900A31A35 /* Products */, 58ADF92D2988738D002EA268 /* Frameworks */, - 588EB72D2995BC3A00C0163A /* ExampleSwift - Local copy-Info.plist */, - 8DDF698A66FE410250C43DCE /* Pods */, ); sourceTree = ""; }; @@ -133,19 +133,13 @@ 58ADF92D2988738D002EA268 /* Frameworks */ = { isa = PBXGroup; children = ( + 5864396B2B7BEE460031140F /* attentive_ios_sdk_framework.framework */, 588B597729B94AC200E3BA33 /* attentive_ios_sdk_framework.framework */, 58ADF92E2988738D002EA268 /* attentive_ios_sdk.framework */, ); name = Frameworks; sourceTree = ""; }; - 8DDF698A66FE410250C43DCE /* Pods */ = { - isa = PBXGroup; - children = ( - ); - path = Pods; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -180,6 +174,9 @@ dependencies = ( ); name = "ExampleSwift - Pod"; + packageProductDependencies = ( + 586439702B7D17680031140F /* ATTNSDKFramework */, + ); productName = ExampleSwift; productReference = 588EB72C2995BC3A00C0163A /* ExampleSwift - Pod.app */; productType = "com.apple.product-type.application"; @@ -208,6 +205,9 @@ Base, ); mainGroup = 58389AA12987647900A31A35; + packageReferences = ( + 5864396F2B7D17680031140F /* XCRemoteSwiftPackageReference "attentive-ios-sdk" */, + ); productRefGroup = 58389AAB2987647900A31A35 /* Products */; projectDirPath = ""; projectRoot = ""; @@ -406,6 +406,7 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_ASSET_PATHS = "\"ExampleSwift/Preview Content\""; + DEVELOPMENT_TEAM = SP5WN9647Z; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = ""; @@ -448,6 +449,7 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_ASSET_PATHS = "\"ExampleSwift/Preview Content\""; + DEVELOPMENT_TEAM = SP5WN9647Z; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = ""; @@ -490,6 +492,7 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_ASSET_PATHS = "\"ExampleSwift/Preview Content\""; + DEVELOPMENT_TEAM = SP5WN9647Z; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = ""; @@ -516,10 +519,12 @@ SDKROOT = iphoneos; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OBJC_BRIDGING_HEADER = "ExampleSwift/attentive-ios-sdk-bridging-header.h"; SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; + TARGETED_DEVICE_FAMILY = 1; }; name = Debug; }; @@ -532,6 +537,7 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_ASSET_PATHS = "\"ExampleSwift/Preview Content\""; + DEVELOPMENT_TEAM = SP5WN9647Z; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = ""; @@ -558,10 +564,12 @@ SDKROOT = iphoneos; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OBJC_BRIDGING_HEADER = "ExampleSwift/attentive-ios-sdk-bridging-header.h"; SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; + TARGETED_DEVICE_FAMILY = 1; }; name = Release; }; @@ -596,6 +604,25 @@ defaultConfigurationName = Release; }; /* End XCConfigurationList section */ + +/* Begin XCRemoteSwiftPackageReference section */ + 5864396F2B7D17680031140F /* XCRemoteSwiftPackageReference "attentive-ios-sdk" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/attentive-mobile/attentive-ios-sdk"; + requirement = { + branch = "rsmith/support-swift"; + kind = branch; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + 586439702B7D17680031140F /* ATTNSDKFramework */ = { + isa = XCSwiftPackageProductDependency; + package = 5864396F2B7D17680031140F /* XCRemoteSwiftPackageReference "attentive-ios-sdk" */; + productName = ATTNSDKFramework; + }; +/* End XCSwiftPackageProductDependency section */ }; rootObject = 58389AA22987647900A31A35 /* Project object */; } diff --git a/ExampleSwift/ExampleSwift.xcodeproj/xcshareddata/xcschemes/ExampleSwift - Pod.xcscheme b/ExampleSwift/ExampleSwift.xcodeproj/xcshareddata/xcschemes/ExampleSwift - Pod.xcscheme new file mode 100644 index 0000000..d14bb41 --- /dev/null +++ b/ExampleSwift/ExampleSwift.xcodeproj/xcshareddata/xcschemes/ExampleSwift - Pod.xcscheme @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExampleSwift/ExampleSwift/AppDelegate.swift b/ExampleSwift/ExampleSwift/AppDelegate.swift index 50b137c..659aba3 100644 --- a/ExampleSwift/ExampleSwift/AppDelegate.swift +++ b/ExampleSwift/ExampleSwift/AppDelegate.swift @@ -6,12 +6,14 @@ // import Foundation +import UIKit +import ATTNSDKFramework @main class AppDelegate : UIResponder, UIApplicationDelegate { var window: UIWindow? - public var attentiveSdk : ATTNSDK? + public var attentiveSdk : ATTNSDK?; func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { diff --git a/ExampleSwift/ExampleSwift/ProductViewController.swift b/ExampleSwift/ExampleSwift/ProductViewController.swift index ab7ed2c..014d943 100644 --- a/ExampleSwift/ExampleSwift/ProductViewController.swift +++ b/ExampleSwift/ExampleSwift/ProductViewController.swift @@ -7,6 +7,8 @@ import Foundation import os +import UIKit +import ATTNSDKFramework class ProductViewController : UIViewController { @IBOutlet var addToCartBtn : UIButton? diff --git a/ExampleSwift/ExampleSwift/ViewController.swift b/ExampleSwift/ExampleSwift/ViewController.swift index ac35871..5165db7 100644 --- a/ExampleSwift/ExampleSwift/ViewController.swift +++ b/ExampleSwift/ExampleSwift/ViewController.swift @@ -7,6 +7,8 @@ import Foundation import os +import UIKit +import ATTNSDKFramework class ViewController : UIViewController { @IBOutlet var creativeBtn : UIButton? @@ -15,7 +17,7 @@ class ViewController : UIViewController { override func viewDidLoad() { super.viewDidLoad() - self.view.backgroundColor = .systemGray3 + self.view.backgroundColor = .white } @IBAction func creativeBtnPressed(sender: Any) { diff --git a/ExampleSwift/ExampleSwift/attentive-ios-sdk-bridging-header.h b/ExampleSwift/ExampleSwift/attentive-ios-sdk-bridging-header.h deleted file mode 100644 index 7cc6023..0000000 --- a/ExampleSwift/ExampleSwift/attentive-ios-sdk-bridging-header.h +++ /dev/null @@ -1,23 +0,0 @@ -// -// attentive-ios-sdk-bridging-header-pod.h -// ExampleSwift - Pod -// -// Created by Wyatt Davis on 2/9/23. -// - -#ifndef attentive_ios_sdk_bridging_header_h -#define attentive_ios_sdk_bridging_header_h - -#import "ATTNSDK.h" -#import "ATTNUserIdentity.h" -#import "ATTNEventTracker.h" -#import "ATTNPurchaseEvent.h" -#import "ATTNAddToCartEvent.h" -#import "ATTNProductViewEvent.h" -#import "ATTNItem.h" -#import "ATTNPrice.h" -#import "ATTNOrder.h" -#import "ATTNCart.h" -#import "ATTNCustomEvent.h" - -#endif /* attentive_ios_sdk_bridging_header_h */ diff --git a/ExampleSwift/ExampleSwift/attentive-ios-sdk-local-bridging-header.h b/ExampleSwift/ExampleSwift/attentive-ios-sdk-local-bridging-header.h deleted file mode 100644 index c778bf4..0000000 --- a/ExampleSwift/ExampleSwift/attentive-ios-sdk-local-bridging-header.h +++ /dev/null @@ -1,15 +0,0 @@ -// -// attentive-ios-sdk-bridging-header.h -// ExampleSwift - Local -// -// Created by Wyatt Davis on 1/30/23. -// - -// This bridging file should not be used by any customers. Customers should use 'attentive-ios-sdk-bridging-header-pod.h' instead. - -#ifndef attentive_ios_sdk_local_bridging_header_h -#define attentive_ios_sdk_local_bridging_header_h - -#import - -#endif /* attentive_ios_sdk_local_bridging_header_h */ diff --git a/ExampleSwift/Package.resolved b/ExampleSwift/Package.resolved index 26c3249..e8af413 100644 --- a/ExampleSwift/Package.resolved +++ b/ExampleSwift/Package.resolved @@ -6,7 +6,7 @@ "repositoryURL": "https://github.com/attentive-mobile/attentive-ios-sdk", "state": { "branch": "rsmith/support-swift", - "revision": "407c7b377117ae72f2e6d9f5cd486525249639a1", + "revision": "0bf29e1001e180c0b84fe8e2bd350de7232a8346", "version": null } } diff --git a/Framework/ATTNSDKFramework.h b/Framework/ATTNSDKFramework.h new file mode 100644 index 0000000..010ee38 --- /dev/null +++ b/Framework/ATTNSDKFramework.h @@ -0,0 +1,21 @@ +#import + +FOUNDATION_EXPORT double ATTNSDKFrameworkVersionNumber; + +FOUNDATION_EXPORT const unsigned char ATTNSDKFrameworkVersionString[]; + +// 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 diff --git a/attentive-ios-sdk.xcodeproj/project.pbxproj b/attentive-ios-sdk.xcodeproj/project.pbxproj index f0d2c8d..1a2fb46 100644 --- a/attentive-ios-sdk.xcodeproj/project.pbxproj +++ b/attentive-ios-sdk.xcodeproj/project.pbxproj @@ -678,7 +678,7 @@ MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "com.attentive.attentive-ios-sdk-local"; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SDKROOT = auto; + SDKROOT = iphoneos; SKIP_INSTALL = YES; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = YES; @@ -716,7 +716,7 @@ MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "com.attentive.attentive-ios-sdk-local"; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SDKROOT = auto; + SDKROOT = iphoneos; SKIP_INSTALL = YES; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = YES; diff --git a/attentive-ios-sdk.xcworkspace/contents.xcworkspacedata b/attentive-ios-sdk.xcworkspace/contents.xcworkspacedata index 6af5063..d6d73f1 100644 --- a/attentive-ios-sdk.xcworkspace/contents.xcworkspacedata +++ b/attentive-ios-sdk.xcworkspace/contents.xcworkspacedata @@ -13,7 +13,4 @@ - - diff --git a/attentive-ios-sdk.xcworkspace/xcshareddata/swiftpm/Package.resolved b/attentive-ios-sdk.xcworkspace/xcshareddata/swiftpm/Package.resolved new file mode 100644 index 0000000..9d3aab5 --- /dev/null +++ b/attentive-ios-sdk.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -0,0 +1,14 @@ +{ + "pins" : [ + { + "identity" : "attentive-ios-sdk", + "kind" : "remoteSourceControl", + "location" : "https://github.com/attentive-mobile/attentive-ios-sdk", + "state" : { + "branch" : "rsmith/support-swift", + "revision" : "0bf29e1001e180c0b84fe8e2bd350de7232a8346" + } + } + ], + "version" : 2 +} From faea26910e1c0b4e05e0ea98b00952dd170cc950 Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Thu, 15 Feb 2024 10:59:02 -0500 Subject: [PATCH 20/24] rename to SPM instead of Pod scheme --- .../ExampleSwift.xcodeproj/project.pbxproj | 16 ++++++++-------- ... Pod.xcscheme => ExampleSwift - SPM.xcscheme} | 12 ++++++------ 2 files changed, 14 insertions(+), 14 deletions(-) rename ExampleSwift/ExampleSwift.xcodeproj/xcshareddata/xcschemes/{ExampleSwift - Pod.xcscheme => ExampleSwift - SPM.xcscheme} (89%) diff --git a/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj b/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj index 096d920..3d1bcec 100644 --- a/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj +++ b/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj @@ -52,7 +52,7 @@ 587DC5CE2995748B0082F8D0 /* ProductViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProductViewController.swift; sourceTree = ""; }; 588B597729B94AC200E3BA33 /* attentive_ios_sdk_framework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = attentive_ios_sdk_framework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 588EB7192995BBB700C0163A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = SOURCE_ROOT; }; - 588EB72C2995BC3A00C0163A /* ExampleSwift - Pod.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ExampleSwift - Pod.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 588EB72C2995BC3A00C0163A /* ExampleSwift - SPM.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ExampleSwift - SPM.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 588EB72E2995BE2E00C0163A /* attentive-ios-sdk-bridging-header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "attentive-ios-sdk-bridging-header.h"; sourceTree = ""; }; 58ADF92E2988738D002EA268 /* attentive_ios_sdk.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = attentive_ios_sdk.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 58ADF9322988746D002EA268 /* attentive-ios-sdk-local-bridging-header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "attentive-ios-sdk-local-bridging-header.h"; sourceTree = ""; }; @@ -92,7 +92,7 @@ isa = PBXGroup; children = ( 58389AAA2987647900A31A35 /* ExampleSwift - Local.app */, - 588EB72C2995BC3A00C0163A /* ExampleSwift - Pod.app */, + 588EB72C2995BC3A00C0163A /* ExampleSwift - SPM.app */, ); name = Products; sourceTree = ""; @@ -161,9 +161,9 @@ productReference = 58389AAA2987647900A31A35 /* ExampleSwift - Local.app */; productType = "com.apple.product-type.application"; }; - 588EB71B2995BC3A00C0163A /* ExampleSwift - Pod */ = { + 588EB71B2995BC3A00C0163A /* ExampleSwift - SPM */ = { isa = PBXNativeTarget; - buildConfigurationList = 588EB7292995BC3A00C0163A /* Build configuration list for PBXNativeTarget "ExampleSwift - Pod" */; + buildConfigurationList = 588EB7292995BC3A00C0163A /* Build configuration list for PBXNativeTarget "ExampleSwift - SPM" */; buildPhases = ( 588EB71C2995BC3A00C0163A /* Sources */, 588EB7202995BC3A00C0163A /* Frameworks */, @@ -173,12 +173,12 @@ ); dependencies = ( ); - name = "ExampleSwift - Pod"; + name = "ExampleSwift - SPM"; packageProductDependencies = ( 586439702B7D17680031140F /* ATTNSDKFramework */, ); productName = ExampleSwift; - productReference = 588EB72C2995BC3A00C0163A /* ExampleSwift - Pod.app */; + productReference = 588EB72C2995BC3A00C0163A /* ExampleSwift - SPM.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ @@ -213,7 +213,7 @@ projectRoot = ""; targets = ( 58389AA92987647900A31A35 /* ExampleSwift - Local */, - 588EB71B2995BC3A00C0163A /* ExampleSwift - Pod */, + 588EB71B2995BC3A00C0163A /* ExampleSwift - SPM */, ); }; /* End PBXProject section */ @@ -594,7 +594,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 588EB7292995BC3A00C0163A /* Build configuration list for PBXNativeTarget "ExampleSwift - Pod" */ = { + 588EB7292995BC3A00C0163A /* Build configuration list for PBXNativeTarget "ExampleSwift - SPM" */ = { isa = XCConfigurationList; buildConfigurations = ( 588EB72A2995BC3A00C0163A /* Debug */, diff --git a/ExampleSwift/ExampleSwift.xcodeproj/xcshareddata/xcschemes/ExampleSwift - Pod.xcscheme b/ExampleSwift/ExampleSwift.xcodeproj/xcshareddata/xcschemes/ExampleSwift - SPM.xcscheme similarity index 89% rename from ExampleSwift/ExampleSwift.xcodeproj/xcshareddata/xcschemes/ExampleSwift - Pod.xcscheme rename to ExampleSwift/ExampleSwift.xcodeproj/xcshareddata/xcschemes/ExampleSwift - SPM.xcscheme index d14bb41..ff3575e 100644 --- a/ExampleSwift/ExampleSwift.xcodeproj/xcshareddata/xcschemes/ExampleSwift - Pod.xcscheme +++ b/ExampleSwift/ExampleSwift.xcodeproj/xcshareddata/xcschemes/ExampleSwift - SPM.xcscheme @@ -15,8 +15,8 @@ @@ -44,8 +44,8 @@ @@ -61,8 +61,8 @@ From 13007ab5a0a45d15ff03e28e109909a87e6f5e0d Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Thu, 15 Feb 2024 11:07:42 -0500 Subject: [PATCH 21/24] lint and remove unnecessary changes --- .../package.xcworkspace/contents.xcworkspacedata | 4 ++-- Sources/Internal/ATTNAppInfo.m | 14 ++------------ 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/ExampleSwift/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/ExampleSwift/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata index 919434a..563c743 100644 --- a/ExampleSwift/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ b/ExampleSwift/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -1,6 +1,6 @@ - + + version = "0.4.3"> diff --git a/Sources/Internal/ATTNAppInfo.m b/Sources/Internal/ATTNAppInfo.m index 1f61384..6384e9f 100644 --- a/Sources/Internal/ATTNAppInfo.m +++ b/Sources/Internal/ATTNAppInfo.m @@ -6,9 +6,7 @@ // #import -#if TARGET_OS_IOS #import -#endif #import "ATTNAppInfo.h" #import "ATTNVersion.h" @@ -29,19 +27,11 @@ + (NSString *)getAppId { } + (NSString *)getDeviceModelName { - #if TARGET_OS_IOS - return [[UIDevice currentDevice] model]; - #else - return @"Not iOS device, not supported"; - #endif + return [[UIDevice currentDevice] model]; } + (NSString *)getDevicePlatform { - #if TARGET_OS_IOS - return [[UIDevice currentDevice] systemName]; - #else - return @"Not iOS device, not supported"; - #endif + return [[UIDevice currentDevice] systemName]; } + (NSString *)getDeviceOsVersion { From f1f69e6036f3d555fdf980c57c750e0ee68bf85e Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Thu, 15 Feb 2024 11:28:38 -0500 Subject: [PATCH 22/24] Remove requirement for bridging header --- .../contents.xcworkspacedata | 4 +-- .../ExampleSwift.xcodeproj/project.pbxproj | 26 ++----------------- 2 files changed, 4 insertions(+), 26 deletions(-) diff --git a/ExampleSwift/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/ExampleSwift/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata index 563c743..919434a 100644 --- a/ExampleSwift/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ b/ExampleSwift/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -1,6 +1,6 @@ - + + version = "1.0"> diff --git a/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj b/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj index 3d1bcec..f6ff400 100644 --- a/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj +++ b/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj @@ -14,8 +14,6 @@ 587DC5CB2995551A0082F8D0 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 587DC5C82995551A0082F8D0 /* Main.storyboard */; }; 587DC5CD299555D70082F8D0 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 587DC5CC299555D70082F8D0 /* ViewController.swift */; }; 587DC5CF2995748B0082F8D0 /* ProductViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 587DC5CE2995748B0082F8D0 /* ProductViewController.swift */; }; - 588B597829B94AC200E3BA33 /* attentive_ios_sdk_framework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 588B597729B94AC200E3BA33 /* attentive_ios_sdk_framework.framework */; }; - 588B597929B94AC200E3BA33 /* attentive_ios_sdk_framework.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 588B597729B94AC200E3BA33 /* attentive_ios_sdk_framework.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 588EB71A2995BBB700C0163A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 588EB7182995BBB700C0163A /* LaunchScreen.storyboard */; }; 588EB71D2995BC3A00C0163A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 587DC5BE299550DA0082F8D0 /* AppDelegate.swift */; }; 588EB71E2995BC3A00C0163A /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 587DC5CC299555D70082F8D0 /* ViewController.swift */; }; @@ -33,7 +31,6 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( - 588B597929B94AC200E3BA33 /* attentive_ios_sdk_framework.framework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -44,18 +41,13 @@ 58389AAA2987647900A31A35 /* ExampleSwift - Local.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ExampleSwift - Local.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 58389AB32987647B00A31A35 /* ExampleSwift.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ExampleSwift.entitlements; sourceTree = ""; }; 58389AB52987647B00A31A35 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; - 5864396B2B7BEE460031140F /* attentive_ios_sdk_framework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = attentive_ios_sdk_framework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 587DC5BE299550DA0082F8D0 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 587DC5C3299554B00082F8D0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = "ExampleSwift/Supporting Files/Assets.xcassets"; sourceTree = SOURCE_ROOT; }; 587DC5C92995551A0082F8D0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = SOURCE_ROOT; }; 587DC5CC299555D70082F8D0 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 587DC5CE2995748B0082F8D0 /* ProductViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProductViewController.swift; sourceTree = ""; }; - 588B597729B94AC200E3BA33 /* attentive_ios_sdk_framework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = attentive_ios_sdk_framework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 588EB7192995BBB700C0163A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = SOURCE_ROOT; }; 588EB72C2995BC3A00C0163A /* ExampleSwift - SPM.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ExampleSwift - SPM.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 588EB72E2995BE2E00C0163A /* attentive-ios-sdk-bridging-header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "attentive-ios-sdk-bridging-header.h"; sourceTree = ""; }; - 58ADF92E2988738D002EA268 /* attentive_ios_sdk.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = attentive_ios_sdk.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 58ADF9322988746D002EA268 /* attentive-ios-sdk-local-bridging-header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "attentive-ios-sdk-local-bridging-header.h"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -63,7 +55,6 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 588B597829B94AC200E3BA33 /* attentive_ios_sdk_framework.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -84,7 +75,6 @@ 58389AAC2987647900A31A35 /* ExampleSwift */, 587DC5C5299554DF0082F8D0 /* Supporting Files */, 58389AAB2987647900A31A35 /* Products */, - 58ADF92D2988738D002EA268 /* Frameworks */, ); sourceTree = ""; }; @@ -105,8 +95,6 @@ 587DC5CE2995748B0082F8D0 /* ProductViewController.swift */, 58389AB32987647B00A31A35 /* ExampleSwift.entitlements */, 58389AB42987647B00A31A35 /* Preview Content */, - 588EB72E2995BE2E00C0163A /* attentive-ios-sdk-bridging-header.h */, - 58ADF9322988746D002EA268 /* attentive-ios-sdk-local-bridging-header.h */, ); path = ExampleSwift; sourceTree = ""; @@ -130,16 +118,6 @@ path = "ExampleSwift/Supporting Files"; sourceTree = ""; }; - 58ADF92D2988738D002EA268 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 5864396B2B7BEE460031140F /* attentive_ios_sdk_framework.framework */, - 588B597729B94AC200E3BA33 /* attentive_ios_sdk_framework.framework */, - 58ADF92E2988738D002EA268 /* attentive_ios_sdk.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -522,7 +500,7 @@ SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_OBJC_BRIDGING_HEADER = "ExampleSwift/attentive-ios-sdk-bridging-header.h"; + SWIFT_OBJC_BRIDGING_HEADER = ""; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 1; }; @@ -567,7 +545,7 @@ SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_OBJC_BRIDGING_HEADER = "ExampleSwift/attentive-ios-sdk-bridging-header.h"; + SWIFT_OBJC_BRIDGING_HEADER = ""; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 1; }; From f9fa19a782b91ed8ab36cb288b65ea6f5fd69954 Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Tue, 20 Feb 2024 11:32:28 -0500 Subject: [PATCH 23/24] temp to switch contexts --- Example/Example.xcodeproj/project.pbxproj | 16 +++++++- .../ExampleSwift.xcodeproj/project.pbxproj | 30 +++++++++++++- .../attentive-ios-sdk-local-bridging-header.h | 15 +++++++ ExampleSwift/Package.swift | 40 +++++++++---------- attentive-ios-sdk.xcodeproj/project.pbxproj | 20 ++++++++-- 5 files changed, 93 insertions(+), 28 deletions(-) create mode 100644 ExampleSwift/ExampleSwift/attentive-ios-sdk-local-bridging-header.h diff --git a/Example/Example.xcodeproj/project.pbxproj b/Example/Example.xcodeproj/project.pbxproj index d56e261..1ef2124 100644 --- a/Example/Example.xcodeproj/project.pbxproj +++ b/Example/Example.xcodeproj/project.pbxproj @@ -17,6 +17,7 @@ 58317972292EEEAA0003D6B0 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 69CCAF5D28DCDE5A007620BD /* LaunchScreen.storyboard */; }; 58317973292EEEAA0003D6B0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 69CCAF5B28DCDE5A007620BD /* Assets.xcassets */; }; 58317974292EEEAA0003D6B0 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 69CCAF5828DCDE57007620BD /* Main.storyboard */; }; + 5864397B2B7FE6B40031140F /* Podfile in Resources */ = {isa = PBXBuildFile; fileRef = 5864397A2B7FE6B40031140F /* Podfile */; }; 588B597529B94AB100E3BA33 /* attentive_ios_sdk_framework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 588B597429B94AB100E3BA33 /* attentive_ios_sdk_framework.framework */; }; 588B597629B94AB100E3BA33 /* attentive_ios_sdk_framework.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 588B597429B94AB100E3BA33 /* attentive_ios_sdk_framework.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 58D52E3F292EDA1600CF32DE /* (null) in Sources */ = {isa = PBXBuildFile; }; @@ -63,6 +64,7 @@ 5831797A292EEEB30003D6B0 /* attentive_ios_sdk.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = attentive_ios_sdk.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 58317993292EF6F70003D6B0 /* attentive_ios_sdk.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = attentive_ios_sdk.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 583179B1292F60460003D6B0 /* ImportAttentiveSDK.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ImportAttentiveSDK.h; sourceTree = ""; }; + 5864397A2B7FE6B40031140F /* Podfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Podfile; sourceTree = ""; }; 588B597429B94AB100E3BA33 /* attentive_ios_sdk_framework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = attentive_ios_sdk_framework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 69CCAF4C28DCDE57007620BD /* Example - Pod.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Example - Pod.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 69CCAF4F28DCDE57007620BD /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; @@ -137,6 +139,7 @@ 69CCAF4328DCDE57007620BD = { isa = PBXGroup; children = ( + 5864397A2B7FE6B40031140F /* Podfile */, 69CCAF4E28DCDE57007620BD /* Example */, 58D52E24292EC9D400CF32DE /* Supporting Files */, 69D3C14A299EF2D10027934F /* CreativeUITest */, @@ -294,6 +297,7 @@ files = ( 58317972292EEEAA0003D6B0 /* LaunchScreen.storyboard in Resources */, 58317973292EEEAA0003D6B0 /* Assets.xcassets in Resources */, + 5864397B2B7FE6B40031140F /* Podfile in Resources */, 58317974292EEEAA0003D6B0 /* Main.storyboard in Resources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -450,8 +454,12 @@ PRODUCT_BUNDLE_IDENTIFIER = com.attentive.Example; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; - TARGETED_DEVICE_FAMILY = "1,2"; + TARGETED_DEVICE_FAMILY = 1; }; name = Debug; }; @@ -481,8 +489,12 @@ PRODUCT_BUNDLE_IDENTIFIER = com.attentive.Example; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; - TARGETED_DEVICE_FAMILY = "1,2"; + TARGETED_DEVICE_FAMILY = 1; }; name = Release; }; diff --git a/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj b/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj index f6ff400..5a0cbdd 100644 --- a/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj +++ b/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj @@ -9,6 +9,9 @@ /* Begin PBXBuildFile section */ 58389AB62987647B00A31A35 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 58389AB52987647B00A31A35 /* Preview Assets.xcassets */; }; 586439712B7D17680031140F /* ATTNSDKFramework in Frameworks */ = {isa = PBXBuildFile; productRef = 586439702B7D17680031140F /* ATTNSDKFramework */; }; + 586439732B7FDF800031140F /* Package.swift in Sources */ = {isa = PBXBuildFile; fileRef = 586439722B7FDF800031140F /* Package.swift */; }; + 586439782B7FE44A0031140F /* attentive_ios_sdk_framework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 586439772B7FE44A0031140F /* attentive_ios_sdk_framework.framework */; }; + 586439792B7FE44A0031140F /* attentive_ios_sdk_framework.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 586439772B7FE44A0031140F /* attentive_ios_sdk_framework.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 587DC5BF299550DA0082F8D0 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 587DC5BE299550DA0082F8D0 /* AppDelegate.swift */; }; 587DC5C4299554B00082F8D0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 587DC5C3299554B00082F8D0 /* Assets.xcassets */; }; 587DC5CB2995551A0082F8D0 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 587DC5C82995551A0082F8D0 /* Main.storyboard */; }; @@ -31,6 +34,7 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( + 586439792B7FE44A0031140F /* attentive_ios_sdk_framework.framework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -41,6 +45,9 @@ 58389AAA2987647900A31A35 /* ExampleSwift - Local.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ExampleSwift - Local.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 58389AB32987647B00A31A35 /* ExampleSwift.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ExampleSwift.entitlements; sourceTree = ""; }; 58389AB52987647B00A31A35 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 586439722B7FDF800031140F /* Package.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = ""; }; + 586439772B7FE44A0031140F /* attentive_ios_sdk_framework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = attentive_ios_sdk_framework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 5864397C2B7FE7FA0031140F /* attentive-ios-sdk-local-bridging-header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "attentive-ios-sdk-local-bridging-header.h"; path = "ExampleSwift/attentive-ios-sdk-local-bridging-header.h"; sourceTree = ""; }; 587DC5BE299550DA0082F8D0 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 587DC5C3299554B00082F8D0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = "ExampleSwift/Supporting Files/Assets.xcassets"; sourceTree = SOURCE_ROOT; }; 587DC5C92995551A0082F8D0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = SOURCE_ROOT; }; @@ -55,6 +62,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 586439782B7FE44A0031140F /* attentive_ios_sdk_framework.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -72,9 +80,12 @@ 58389AA12987647900A31A35 = { isa = PBXGroup; children = ( + 5864397C2B7FE7FA0031140F /* attentive-ios-sdk-local-bridging-header.h */, + 586439722B7FDF800031140F /* Package.swift */, 58389AAC2987647900A31A35 /* ExampleSwift */, 587DC5C5299554DF0082F8D0 /* Supporting Files */, 58389AAB2987647900A31A35 /* Products */, + 586439762B7FE44A0031140F /* Frameworks */, ); sourceTree = ""; }; @@ -107,6 +118,14 @@ path = "Preview Content"; sourceTree = ""; }; + 586439762B7FE44A0031140F /* Frameworks */ = { + isa = PBXGroup; + children = ( + 586439772B7FE44A0031140F /* attentive_ios_sdk_framework.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; 587DC5C5299554DF0082F8D0 /* Supporting Files */ = { isa = PBXGroup; children = ( @@ -226,6 +245,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 586439732B7FDF800031140F /* Package.swift in Sources */, 587DC5BF299550DA0082F8D0 /* AppDelegate.swift in Sources */, 587DC5CD299555D70082F8D0 /* ViewController.swift in Sources */, 587DC5CF2995748B0082F8D0 /* ProductViewController.swift in Sources */, @@ -411,10 +431,13 @@ SDKROOT = iphoneos; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OBJC_BRIDGING_HEADER = "ExampleSwift/attentive-ios-sdk-local-bridging-header.h"; + SWIFT_PRECOMPILE_BRIDGING_HEADER = YES; SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; + TARGETED_DEVICE_FAMILY = 1; }; name = Debug; }; @@ -454,10 +477,13 @@ SDKROOT = iphoneos; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OBJC_BRIDGING_HEADER = "ExampleSwift/attentive-ios-sdk-local-bridging-header.h"; + SWIFT_PRECOMPILE_BRIDGING_HEADER = YES; SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; + TARGETED_DEVICE_FAMILY = 1; }; name = Release; }; diff --git a/ExampleSwift/ExampleSwift/attentive-ios-sdk-local-bridging-header.h b/ExampleSwift/ExampleSwift/attentive-ios-sdk-local-bridging-header.h new file mode 100644 index 0000000..622ba44 --- /dev/null +++ b/ExampleSwift/ExampleSwift/attentive-ios-sdk-local-bridging-header.h @@ -0,0 +1,15 @@ +// +// attentive-ios-sdk-bridging-header.h +// ExampleSwift - Local +// +// Created by Wyatt Davis on 1/30/23. +// + +// This bridging file should not be used by any customers. Customers should use 'attentive-ios-sdk-bridging-header-pod.h' instead. + +#ifndef attentive_ios_sdk_local_bridging_header_h +#define attentive_ios_sdk_local_bridging_header_h + +#import + +#endif /* attentive_ios_sdk_local_bridging_header_h */ \ No newline at end of file diff --git a/ExampleSwift/Package.swift b/ExampleSwift/Package.swift index 1eb0ab2..9b5c568 100644 --- a/ExampleSwift/Package.swift +++ b/ExampleSwift/Package.swift @@ -2,24 +2,24 @@ import PackageDescription let package = Package( - name: "ExampleSwift", - platforms: [ - .iOS(.v12) - ], - products: [ - .library( - name: "ExampleSwift", - targets: ["ExampleSwift"]), - ], - dependencies: [ - .package(url: "https://github.com/attentive-mobile/attentive-ios-sdk", .branch("rsmith/support-swift")) - ], - targets: [ - .target( - name: "ExampleSwift", - dependencies: [ - .product(name: "ATTNSDKFramework", package: "attentive-ios-sdk")], - path: "ExampleSwift" // Ensure this path exists and is correct - ), - ] + name: "ExampleSwift", + platforms: [ + .iOS(.v12) + ], + products: [ + .library( + name: "ExampleSwift", + targets: ["ExampleSwift"]), + ], + dependencies: [ + .package(url: "https://github.com/attentive-mobile/attentive-ios-sdk", .branch("rsmith/support-swift")) + ], + targets: [ + .target( + name: "ExampleSwift", + dependencies: [ + .product(name: "ATTNSDKFramework", package: "attentive-ios-sdk")], + path: "ExampleSwift" // Ensure this path exists and is correct + ), + ] ) diff --git a/attentive-ios-sdk.xcodeproj/project.pbxproj b/attentive-ios-sdk.xcodeproj/project.pbxproj index 1a2fb46..3c795ba 100644 --- a/attentive-ios-sdk.xcodeproj/project.pbxproj +++ b/attentive-ios-sdk.xcodeproj/project.pbxproj @@ -30,6 +30,7 @@ 583C29F929C101A300EABBC9 /* ATTNUserAgentBuilderTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 583C29F829C101A300EABBC9 /* ATTNUserAgentBuilderTest.m */; }; 5862BE4029407DAC002C1403 /* ATTNEventTracker.h in Headers */ = {isa = PBXBuildFile; fileRef = 5862BE3F29407DAC002C1403 /* ATTNEventTracker.h */; settings = {ATTRIBUTES = (Public, ); }; }; 5862BE462940820C002C1403 /* ATTNEventTracker.m in Sources */ = {isa = PBXBuildFile; fileRef = 5862BE452940820C002C1403 /* ATTNEventTracker.m */; }; + 586439752B7FE0380031140F /* Package.swift in Sources */ = {isa = PBXBuildFile; fileRef = 586439742B7FE0380031140F /* Package.swift */; }; 587234BF2953AAD800EE12B6 /* ATTNPrice.m in Sources */ = {isa = PBXBuildFile; fileRef = 587234B42953AAD800EE12B6 /* ATTNPrice.m */; }; 587234C02953AAD800EE12B6 /* ATTNPurchaseEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 587234B52953AAD800EE12B6 /* ATTNPurchaseEvent.h */; settings = {ATTRIBUTES = (Public, ); }; }; 587234C12953AAD800EE12B6 /* ATTNOrder.h in Headers */ = {isa = PBXBuildFile; fileRef = 587234B62953AAD800EE12B6 /* ATTNOrder.h */; settings = {ATTRIBUTES = (Public, ); }; }; @@ -113,6 +114,7 @@ 583C29F829C101A300EABBC9 /* ATTNUserAgentBuilderTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = ATTNUserAgentBuilderTest.m; path = Tests/ATTNUserAgentBuilderTest.m; sourceTree = ""; }; 5862BE3F29407DAC002C1403 /* ATTNEventTracker.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = ATTNEventTracker.h; path = Sources/ATTNEventTracker.h; sourceTree = ""; }; 5862BE452940820C002C1403 /* ATTNEventTracker.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = ATTNEventTracker.m; path = Sources/ATTNEventTracker.m; sourceTree = ""; }; + 586439742B7FE0380031140F /* Package.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = ""; }; 587234B42953AAD800EE12B6 /* ATTNPrice.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ATTNPrice.m; path = Sources/ATTNPrice.m; sourceTree = ""; }; 587234B52953AAD800EE12B6 /* ATTNPurchaseEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ATTNPurchaseEvent.h; path = Sources/ATTNPurchaseEvent.h; sourceTree = ""; }; 587234B62953AAD800EE12B6 /* ATTNOrder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ATTNOrder.h; path = Sources/ATTNOrder.h; sourceTree = ""; }; @@ -212,6 +214,7 @@ 58332EB9292EC18800B1ECF3 = { isa = PBXGroup; children = ( + 586439742B7FE0380031140F /* Package.swift */, 58332ED9292EC21100B1ECF3 /* Sources */, 58332EDB292EC24200B1ECF3 /* Supporting Files */, 58332EDA292EC23000B1ECF3 /* Tests */, @@ -420,6 +423,7 @@ TargetAttributes = { 58332EC2292EC18800B1ECF3 = { CreatedOnToolsVersion = 14.1; + LastSwiftMigration = 1520; }; 58D52E18292EC52B00CF32DE = { CreatedOnToolsVersion = 14.1; @@ -486,6 +490,7 @@ 58332ED5292EC20700B1ECF3 /* ATTNParameterValidation.m in Sources */, 69BA6D7129BA3B5900CCA573 /* ATTNCreativeUrlFormatter.m in Sources */, 587234C52953AAD800EE12B6 /* ATTNItem.m in Sources */, + 586439752B7FE0380031140F /* Package.swift in Sources */, 5806DE7B2977630800C18FFA /* ATTNCustomEvent.m in Sources */, 6972874F29353FEA003F1BEC /* ATTNPersistentStorage.m in Sources */, 6972874C29353A99003F1BEC /* ATTNVisitorService.m in Sources */, @@ -655,6 +660,7 @@ isa = XCBuildConfiguration; buildSettings = { BUILD_LIBRARY_FOR_DISTRIBUTION = YES; + CLANG_ENABLE_MODULES = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; @@ -681,9 +687,11 @@ SDKROOT = iphoneos; SKIP_INSTALL = YES; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; - SUPPORTS_MACCATALYST = YES; - SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; @@ -693,6 +701,7 @@ isa = XCBuildConfiguration; buildSettings = { BUILD_LIBRARY_FOR_DISTRIBUTION = YES; + CLANG_ENABLE_MODULES = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; @@ -719,8 +728,9 @@ SDKROOT = iphoneos; SKIP_INSTALL = YES; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; - SUPPORTS_MACCATALYST = YES; - SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -730,6 +740,7 @@ 58D52E21292EC52B00CF32DE /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; @@ -757,6 +768,7 @@ 58D52E22292EC52B00CF32DE /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; From fa56e43f49bb9ccfd17318c9c43c8831e1e4cae7 Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Tue, 20 Feb 2024 17:15:52 -0500 Subject: [PATCH 24/24] Revert "temp to switch contexts" This reverts commit f9fa19a782b91ed8ab36cb288b65ea6f5fd69954. --- Example/Example.xcodeproj/project.pbxproj | 16 +------- .../ExampleSwift.xcodeproj/project.pbxproj | 30 +------------- .../attentive-ios-sdk-local-bridging-header.h | 15 ------- ExampleSwift/Package.swift | 40 +++++++++---------- attentive-ios-sdk.xcodeproj/project.pbxproj | 20 ++-------- 5 files changed, 28 insertions(+), 93 deletions(-) delete mode 100644 ExampleSwift/ExampleSwift/attentive-ios-sdk-local-bridging-header.h diff --git a/Example/Example.xcodeproj/project.pbxproj b/Example/Example.xcodeproj/project.pbxproj index 1ef2124..d56e261 100644 --- a/Example/Example.xcodeproj/project.pbxproj +++ b/Example/Example.xcodeproj/project.pbxproj @@ -17,7 +17,6 @@ 58317972292EEEAA0003D6B0 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 69CCAF5D28DCDE5A007620BD /* LaunchScreen.storyboard */; }; 58317973292EEEAA0003D6B0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 69CCAF5B28DCDE5A007620BD /* Assets.xcassets */; }; 58317974292EEEAA0003D6B0 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 69CCAF5828DCDE57007620BD /* Main.storyboard */; }; - 5864397B2B7FE6B40031140F /* Podfile in Resources */ = {isa = PBXBuildFile; fileRef = 5864397A2B7FE6B40031140F /* Podfile */; }; 588B597529B94AB100E3BA33 /* attentive_ios_sdk_framework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 588B597429B94AB100E3BA33 /* attentive_ios_sdk_framework.framework */; }; 588B597629B94AB100E3BA33 /* attentive_ios_sdk_framework.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 588B597429B94AB100E3BA33 /* attentive_ios_sdk_framework.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 58D52E3F292EDA1600CF32DE /* (null) in Sources */ = {isa = PBXBuildFile; }; @@ -64,7 +63,6 @@ 5831797A292EEEB30003D6B0 /* attentive_ios_sdk.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = attentive_ios_sdk.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 58317993292EF6F70003D6B0 /* attentive_ios_sdk.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = attentive_ios_sdk.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 583179B1292F60460003D6B0 /* ImportAttentiveSDK.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ImportAttentiveSDK.h; sourceTree = ""; }; - 5864397A2B7FE6B40031140F /* Podfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Podfile; sourceTree = ""; }; 588B597429B94AB100E3BA33 /* attentive_ios_sdk_framework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = attentive_ios_sdk_framework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 69CCAF4C28DCDE57007620BD /* Example - Pod.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Example - Pod.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 69CCAF4F28DCDE57007620BD /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; @@ -139,7 +137,6 @@ 69CCAF4328DCDE57007620BD = { isa = PBXGroup; children = ( - 5864397A2B7FE6B40031140F /* Podfile */, 69CCAF4E28DCDE57007620BD /* Example */, 58D52E24292EC9D400CF32DE /* Supporting Files */, 69D3C14A299EF2D10027934F /* CreativeUITest */, @@ -297,7 +294,6 @@ files = ( 58317972292EEEAA0003D6B0 /* LaunchScreen.storyboard in Resources */, 58317973292EEEAA0003D6B0 /* Assets.xcassets in Resources */, - 5864397B2B7FE6B40031140F /* Podfile in Resources */, 58317974292EEEAA0003D6B0 /* Main.storyboard in Resources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -454,12 +450,8 @@ PRODUCT_BUNDLE_IDENTIFIER = com.attentive.Example; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; - SUPPORTS_MACCATALYST = NO; - SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; - SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; - TARGETED_DEVICE_FAMILY = 1; + TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; @@ -489,12 +481,8 @@ PRODUCT_BUNDLE_IDENTIFIER = com.attentive.Example; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; - SUPPORTS_MACCATALYST = NO; - SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; - SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; - TARGETED_DEVICE_FAMILY = 1; + TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; }; diff --git a/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj b/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj index 5a0cbdd..f6ff400 100644 --- a/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj +++ b/ExampleSwift/ExampleSwift.xcodeproj/project.pbxproj @@ -9,9 +9,6 @@ /* Begin PBXBuildFile section */ 58389AB62987647B00A31A35 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 58389AB52987647B00A31A35 /* Preview Assets.xcassets */; }; 586439712B7D17680031140F /* ATTNSDKFramework in Frameworks */ = {isa = PBXBuildFile; productRef = 586439702B7D17680031140F /* ATTNSDKFramework */; }; - 586439732B7FDF800031140F /* Package.swift in Sources */ = {isa = PBXBuildFile; fileRef = 586439722B7FDF800031140F /* Package.swift */; }; - 586439782B7FE44A0031140F /* attentive_ios_sdk_framework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 586439772B7FE44A0031140F /* attentive_ios_sdk_framework.framework */; }; - 586439792B7FE44A0031140F /* attentive_ios_sdk_framework.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 586439772B7FE44A0031140F /* attentive_ios_sdk_framework.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 587DC5BF299550DA0082F8D0 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 587DC5BE299550DA0082F8D0 /* AppDelegate.swift */; }; 587DC5C4299554B00082F8D0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 587DC5C3299554B00082F8D0 /* Assets.xcassets */; }; 587DC5CB2995551A0082F8D0 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 587DC5C82995551A0082F8D0 /* Main.storyboard */; }; @@ -34,7 +31,6 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( - 586439792B7FE44A0031140F /* attentive_ios_sdk_framework.framework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -45,9 +41,6 @@ 58389AAA2987647900A31A35 /* ExampleSwift - Local.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ExampleSwift - Local.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 58389AB32987647B00A31A35 /* ExampleSwift.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ExampleSwift.entitlements; sourceTree = ""; }; 58389AB52987647B00A31A35 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; - 586439722B7FDF800031140F /* Package.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = ""; }; - 586439772B7FE44A0031140F /* attentive_ios_sdk_framework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = attentive_ios_sdk_framework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 5864397C2B7FE7FA0031140F /* attentive-ios-sdk-local-bridging-header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "attentive-ios-sdk-local-bridging-header.h"; path = "ExampleSwift/attentive-ios-sdk-local-bridging-header.h"; sourceTree = ""; }; 587DC5BE299550DA0082F8D0 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 587DC5C3299554B00082F8D0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = "ExampleSwift/Supporting Files/Assets.xcassets"; sourceTree = SOURCE_ROOT; }; 587DC5C92995551A0082F8D0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = SOURCE_ROOT; }; @@ -62,7 +55,6 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 586439782B7FE44A0031140F /* attentive_ios_sdk_framework.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -80,12 +72,9 @@ 58389AA12987647900A31A35 = { isa = PBXGroup; children = ( - 5864397C2B7FE7FA0031140F /* attentive-ios-sdk-local-bridging-header.h */, - 586439722B7FDF800031140F /* Package.swift */, 58389AAC2987647900A31A35 /* ExampleSwift */, 587DC5C5299554DF0082F8D0 /* Supporting Files */, 58389AAB2987647900A31A35 /* Products */, - 586439762B7FE44A0031140F /* Frameworks */, ); sourceTree = ""; }; @@ -118,14 +107,6 @@ path = "Preview Content"; sourceTree = ""; }; - 586439762B7FE44A0031140F /* Frameworks */ = { - isa = PBXGroup; - children = ( - 586439772B7FE44A0031140F /* attentive_ios_sdk_framework.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; 587DC5C5299554DF0082F8D0 /* Supporting Files */ = { isa = PBXGroup; children = ( @@ -245,7 +226,6 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 586439732B7FDF800031140F /* Package.swift in Sources */, 587DC5BF299550DA0082F8D0 /* AppDelegate.swift in Sources */, 587DC5CD299555D70082F8D0 /* ViewController.swift in Sources */, 587DC5CF2995748B0082F8D0 /* ProductViewController.swift in Sources */, @@ -431,13 +411,10 @@ SDKROOT = iphoneos; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; - SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; - SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OBJC_BRIDGING_HEADER = "ExampleSwift/attentive-ios-sdk-local-bridging-header.h"; - SWIFT_PRECOMPILE_BRIDGING_HEADER = YES; SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = 1; + TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; @@ -477,13 +454,10 @@ SDKROOT = iphoneos; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; - SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; - SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OBJC_BRIDGING_HEADER = "ExampleSwift/attentive-ios-sdk-local-bridging-header.h"; - SWIFT_PRECOMPILE_BRIDGING_HEADER = YES; SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = 1; + TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; }; diff --git a/ExampleSwift/ExampleSwift/attentive-ios-sdk-local-bridging-header.h b/ExampleSwift/ExampleSwift/attentive-ios-sdk-local-bridging-header.h deleted file mode 100644 index 622ba44..0000000 --- a/ExampleSwift/ExampleSwift/attentive-ios-sdk-local-bridging-header.h +++ /dev/null @@ -1,15 +0,0 @@ -// -// attentive-ios-sdk-bridging-header.h -// ExampleSwift - Local -// -// Created by Wyatt Davis on 1/30/23. -// - -// This bridging file should not be used by any customers. Customers should use 'attentive-ios-sdk-bridging-header-pod.h' instead. - -#ifndef attentive_ios_sdk_local_bridging_header_h -#define attentive_ios_sdk_local_bridging_header_h - -#import - -#endif /* attentive_ios_sdk_local_bridging_header_h */ \ No newline at end of file diff --git a/ExampleSwift/Package.swift b/ExampleSwift/Package.swift index 9b5c568..1eb0ab2 100644 --- a/ExampleSwift/Package.swift +++ b/ExampleSwift/Package.swift @@ -2,24 +2,24 @@ import PackageDescription let package = Package( - name: "ExampleSwift", - platforms: [ - .iOS(.v12) - ], - products: [ - .library( - name: "ExampleSwift", - targets: ["ExampleSwift"]), - ], - dependencies: [ - .package(url: "https://github.com/attentive-mobile/attentive-ios-sdk", .branch("rsmith/support-swift")) - ], - targets: [ - .target( - name: "ExampleSwift", - dependencies: [ - .product(name: "ATTNSDKFramework", package: "attentive-ios-sdk")], - path: "ExampleSwift" // Ensure this path exists and is correct - ), - ] + name: "ExampleSwift", + platforms: [ + .iOS(.v12) + ], + products: [ + .library( + name: "ExampleSwift", + targets: ["ExampleSwift"]), + ], + dependencies: [ + .package(url: "https://github.com/attentive-mobile/attentive-ios-sdk", .branch("rsmith/support-swift")) + ], + targets: [ + .target( + name: "ExampleSwift", + dependencies: [ + .product(name: "ATTNSDKFramework", package: "attentive-ios-sdk")], + path: "ExampleSwift" // Ensure this path exists and is correct + ), + ] ) diff --git a/attentive-ios-sdk.xcodeproj/project.pbxproj b/attentive-ios-sdk.xcodeproj/project.pbxproj index 3c795ba..1a2fb46 100644 --- a/attentive-ios-sdk.xcodeproj/project.pbxproj +++ b/attentive-ios-sdk.xcodeproj/project.pbxproj @@ -30,7 +30,6 @@ 583C29F929C101A300EABBC9 /* ATTNUserAgentBuilderTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 583C29F829C101A300EABBC9 /* ATTNUserAgentBuilderTest.m */; }; 5862BE4029407DAC002C1403 /* ATTNEventTracker.h in Headers */ = {isa = PBXBuildFile; fileRef = 5862BE3F29407DAC002C1403 /* ATTNEventTracker.h */; settings = {ATTRIBUTES = (Public, ); }; }; 5862BE462940820C002C1403 /* ATTNEventTracker.m in Sources */ = {isa = PBXBuildFile; fileRef = 5862BE452940820C002C1403 /* ATTNEventTracker.m */; }; - 586439752B7FE0380031140F /* Package.swift in Sources */ = {isa = PBXBuildFile; fileRef = 586439742B7FE0380031140F /* Package.swift */; }; 587234BF2953AAD800EE12B6 /* ATTNPrice.m in Sources */ = {isa = PBXBuildFile; fileRef = 587234B42953AAD800EE12B6 /* ATTNPrice.m */; }; 587234C02953AAD800EE12B6 /* ATTNPurchaseEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 587234B52953AAD800EE12B6 /* ATTNPurchaseEvent.h */; settings = {ATTRIBUTES = (Public, ); }; }; 587234C12953AAD800EE12B6 /* ATTNOrder.h in Headers */ = {isa = PBXBuildFile; fileRef = 587234B62953AAD800EE12B6 /* ATTNOrder.h */; settings = {ATTRIBUTES = (Public, ); }; }; @@ -114,7 +113,6 @@ 583C29F829C101A300EABBC9 /* ATTNUserAgentBuilderTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = ATTNUserAgentBuilderTest.m; path = Tests/ATTNUserAgentBuilderTest.m; sourceTree = ""; }; 5862BE3F29407DAC002C1403 /* ATTNEventTracker.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = ATTNEventTracker.h; path = Sources/ATTNEventTracker.h; sourceTree = ""; }; 5862BE452940820C002C1403 /* ATTNEventTracker.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = ATTNEventTracker.m; path = Sources/ATTNEventTracker.m; sourceTree = ""; }; - 586439742B7FE0380031140F /* Package.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = ""; }; 587234B42953AAD800EE12B6 /* ATTNPrice.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ATTNPrice.m; path = Sources/ATTNPrice.m; sourceTree = ""; }; 587234B52953AAD800EE12B6 /* ATTNPurchaseEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ATTNPurchaseEvent.h; path = Sources/ATTNPurchaseEvent.h; sourceTree = ""; }; 587234B62953AAD800EE12B6 /* ATTNOrder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ATTNOrder.h; path = Sources/ATTNOrder.h; sourceTree = ""; }; @@ -214,7 +212,6 @@ 58332EB9292EC18800B1ECF3 = { isa = PBXGroup; children = ( - 586439742B7FE0380031140F /* Package.swift */, 58332ED9292EC21100B1ECF3 /* Sources */, 58332EDB292EC24200B1ECF3 /* Supporting Files */, 58332EDA292EC23000B1ECF3 /* Tests */, @@ -423,7 +420,6 @@ TargetAttributes = { 58332EC2292EC18800B1ECF3 = { CreatedOnToolsVersion = 14.1; - LastSwiftMigration = 1520; }; 58D52E18292EC52B00CF32DE = { CreatedOnToolsVersion = 14.1; @@ -490,7 +486,6 @@ 58332ED5292EC20700B1ECF3 /* ATTNParameterValidation.m in Sources */, 69BA6D7129BA3B5900CCA573 /* ATTNCreativeUrlFormatter.m in Sources */, 587234C52953AAD800EE12B6 /* ATTNItem.m in Sources */, - 586439752B7FE0380031140F /* Package.swift in Sources */, 5806DE7B2977630800C18FFA /* ATTNCustomEvent.m in Sources */, 6972874F29353FEA003F1BEC /* ATTNPersistentStorage.m in Sources */, 6972874C29353A99003F1BEC /* ATTNVisitorService.m in Sources */, @@ -660,7 +655,6 @@ isa = XCBuildConfiguration; buildSettings = { BUILD_LIBRARY_FOR_DISTRIBUTION = YES; - CLANG_ENABLE_MODULES = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; @@ -687,11 +681,9 @@ SDKROOT = iphoneos; SKIP_INSTALL = YES; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; - SUPPORTS_MACCATALYST = NO; - SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; - SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; + SUPPORTS_MACCATALYST = YES; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES; SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; @@ -701,7 +693,6 @@ isa = XCBuildConfiguration; buildSettings = { BUILD_LIBRARY_FOR_DISTRIBUTION = YES; - CLANG_ENABLE_MODULES = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; @@ -728,9 +719,8 @@ SDKROOT = iphoneos; SKIP_INSTALL = YES; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; - SUPPORTS_MACCATALYST = NO; - SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; - SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; + SUPPORTS_MACCATALYST = YES; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -740,7 +730,6 @@ 58D52E21292EC52B00CF32DE /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; @@ -768,7 +757,6 @@ 58D52E22292EC52B00CF32DE /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES;