Skip to content

Commit

Permalink
(feat) update example apps to latest SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
simonliotier committed Sep 17, 2024
1 parent d1ff0a3 commit 9422969
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 68 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ playground.xcworkspace
# Package.pins
# Package.resolved
.build/
Package.resolved

# CocoaPods
#
Expand All @@ -47,6 +48,7 @@ playground.xcworkspace
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
Pods/
Podfile.lock

# Carthage
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
2D624369215276F300F47451 /* AppDelegate+iAdvize.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D624364215276F300F47451 /* AppDelegate+iAdvize.swift */; };
2D62436A215276F300F47451 /* ViewController+Configuration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D624365215276F300F47451 /* ViewController+Configuration.swift */; };
2D62436B215276F300F47451 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D624366215276F300F47451 /* AppDelegate.swift */; };
EF4CBC205F3E232378135485 /* libPods-CocoaPodsIntegration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 41B3E118C9063136DA73509C /* libPods-CocoaPodsIntegration.a */; };
E3DACE931F5243A7856FBBB7 /* libPods-CocoaPodsIntegration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D3BF6E64AD2820FF11ECA2C0 /* libPods-CocoaPodsIntegration.a */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
1D0BE98A45EEF83CFE06D1A3 /* Pods-CocoaPodsIntegration.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CocoaPodsIntegration.debug.xcconfig"; path = "Target Support Files/Pods-CocoaPodsIntegration/Pods-CocoaPodsIntegration.debug.xcconfig"; sourceTree = "<group>"; };
2D10F0DC2151881600671C76 /* CocoaPodsIntegration.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CocoaPodsIntegration.app; sourceTree = BUILT_PRODUCTS_DIR; };
2D10F0E42151881600671C76 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
2D10F0E92151881800671C76 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
Expand All @@ -30,17 +31,16 @@
2D624364215276F300F47451 /* AppDelegate+iAdvize.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "AppDelegate+iAdvize.swift"; sourceTree = "<group>"; };
2D624365215276F300F47451 /* ViewController+Configuration.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "ViewController+Configuration.swift"; sourceTree = "<group>"; };
2D624366215276F300F47451 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
41B3E118C9063136DA73509C /* libPods-CocoaPodsIntegration.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-CocoaPodsIntegration.a"; sourceTree = BUILT_PRODUCTS_DIR; };
604BBB89DAA00FC933C9D904 /* Pods-CocoaPodsIntegration.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CocoaPodsIntegration.release.xcconfig"; path = "Target Support Files/Pods-CocoaPodsIntegration/Pods-CocoaPodsIntegration.release.xcconfig"; sourceTree = "<group>"; };
D2E1263C551ABF26F8FC247B /* Pods-CocoaPodsIntegration.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CocoaPodsIntegration.debug.xcconfig"; path = "Target Support Files/Pods-CocoaPodsIntegration/Pods-CocoaPodsIntegration.debug.xcconfig"; sourceTree = "<group>"; };
3BD209196B65B1224B5367EF /* Pods-CocoaPodsIntegration.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CocoaPodsIntegration.release.xcconfig"; path = "Target Support Files/Pods-CocoaPodsIntegration/Pods-CocoaPodsIntegration.release.xcconfig"; sourceTree = "<group>"; };
D3BF6E64AD2820FF11ECA2C0 /* libPods-CocoaPodsIntegration.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-CocoaPodsIntegration.a"; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
2D10F0D92151881600671C76 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
EF4CBC205F3E232378135485 /* libPods-CocoaPodsIntegration.a in Frameworks */,
E3DACE931F5243A7856FBBB7 /* libPods-CocoaPodsIntegration.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -53,7 +53,7 @@
2D10F0DE2151881600671C76 /* CocoaPodsIntegration */,
2D10F0DD2151881600671C76 /* Products */,
E4BFA1F19F9D4A1B7C94635B /* Pods */,
75EFC18001FA16698EB6BB1F /* Frameworks */,
E725C0FD1C7B6E7AA70A71AC /* Frameworks */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -90,21 +90,21 @@
path = Source;
sourceTree = "<group>";
};
75EFC18001FA16698EB6BB1F /* Frameworks */ = {
E4BFA1F19F9D4A1B7C94635B /* Pods */ = {
isa = PBXGroup;
children = (
41B3E118C9063136DA73509C /* libPods-CocoaPodsIntegration.a */,
1D0BE98A45EEF83CFE06D1A3 /* Pods-CocoaPodsIntegration.debug.xcconfig */,
3BD209196B65B1224B5367EF /* Pods-CocoaPodsIntegration.release.xcconfig */,
);
name = Frameworks;
path = Pods;
sourceTree = "<group>";
};
E4BFA1F19F9D4A1B7C94635B /* Pods */ = {
E725C0FD1C7B6E7AA70A71AC /* Frameworks */ = {
isa = PBXGroup;
children = (
D2E1263C551ABF26F8FC247B /* Pods-CocoaPodsIntegration.debug.xcconfig */,
604BBB89DAA00FC933C9D904 /* Pods-CocoaPodsIntegration.release.xcconfig */,
D3BF6E64AD2820FF11ECA2C0 /* libPods-CocoaPodsIntegration.a */,
);
path = Pods;
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */
Expand All @@ -114,11 +114,11 @@
isa = PBXNativeTarget;
buildConfigurationList = 2D10F0EE2151881800671C76 /* Build configuration list for PBXNativeTarget "CocoaPodsIntegration" */;
buildPhases = (
5A933FDEAF7C2D7BA18C3ED1 /* [CP] Check Pods Manifest.lock */,
9C5D8A9706A3F5D266EAA355 /* [CP] Check Pods Manifest.lock */,
2D10F0D82151881600671C76 /* Sources */,
2D10F0D92151881600671C76 /* Frameworks */,
2D10F0DA2151881600671C76 /* Resources */,
CD8FBF3D48B3D3395DF4353C /* [CP] Embed Pods Frameworks */,
69E8236F1D959447D185AA17 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -185,43 +185,43 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
5A933FDEAF7C2D7BA18C3ED1 /* [CP] Check Pods Manifest.lock */ = {
69E8236F1D959447D185AA17 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-CocoaPodsIntegration/Pods-CocoaPodsIntegration-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-CocoaPodsIntegration-checkManifestLockResult.txt",
"${PODS_ROOT}/Target Support Files/Pods-CocoaPodsIntegration/Pods-CocoaPodsIntegration-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-CocoaPodsIntegration/Pods-CocoaPodsIntegration-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
CD8FBF3D48B3D3395DF4353C /* [CP] Embed Pods Frameworks */ = {
9C5D8A9706A3F5D266EAA355 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-CocoaPodsIntegration/Pods-CocoaPodsIntegration-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-CocoaPodsIntegration/Pods-CocoaPodsIntegration-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-CocoaPodsIntegration-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-CocoaPodsIntegration/Pods-CocoaPodsIntegration-frameworks.sh\"\n";
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
Expand Down Expand Up @@ -379,7 +379,7 @@
};
2D10F0EF2151881800671C76 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = D2E1263C551ABF26F8FC247B /* Pods-CocoaPodsIntegration.debug.xcconfig */;
baseConfigurationReference = 1D0BE98A45EEF83CFE06D1A3 /* Pods-CocoaPodsIntegration.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = CocoaPodsIntegration/CocoaPodsIntegration.entitlements;
Expand All @@ -398,7 +398,7 @@
};
2D10F0F02151881800671C76 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 604BBB89DAA00FC933C9D904 /* Pods-CocoaPodsIntegration.release.xcconfig */;
baseConfigurationReference = 3BD209196B65B1224B5367EF /* Pods-CocoaPodsIntegration.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = CocoaPodsIntegration/CocoaPodsIntegration.entitlements;
Expand Down
2 changes: 1 addition & 1 deletion example/CocoaPodsIntegration/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ inhibit_all_warnings!

target 'CocoaPodsIntegration' do
project 'CocoaPodsIntegration'
pod 'iAdvize', '~> 2.15.5'
pod 'iAdvize'
end
20 changes: 0 additions & 20 deletions example/CocoaPodsIntegration/Podfile.lock

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
repositoryURL = "https://github.com/iadvize/iadvize-ios-sdk/";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 2.14.5;
minimumVersion = 2.16.0;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,8 @@ extension ViewController: TargetingControllerDelegate {
func activeTargetingRuleAvailabilityDidUpdate(isActiveTargetingRuleAvailable: Bool) {
self.isActiveTargetingRuleAvailable = isActiveTargetingRuleAvailable
}

func activeTargetingRuleDidFailToUpdate(error: IAdvizeConversationSDK.TargetingError) {
print("Active targeting rule update failed")
}
}

0 comments on commit 9422969

Please sign in to comment.