diff --git a/README.md b/README.md index 781344e..ae5506d 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,21 @@ Use the node package manager install command to install the Sourcepoint React Na npm install @sourcepoint/react-native-cmp ``` +### iOS only +Make sure your app is building its dependencies statically. On your app's `Podfile` check if +```ruby +use_frameworks! :static +``` +If your app uses React Native's default `Podfile`, it should be something like: +```ruby +linkage = "static" #ENV['USE_FRAMEWORKS'] <=========== make sure this is set to "static" +if linkage != nil + Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green + Pod::UI.puts "Min iOS version: #{min_ios_version_supported} (from Podfile)".green + use_frameworks! :linkage => linkage.to_sym +end +``` + ## Configuration overview In order to use the `SPConsentManager` you will need to perform the following: diff --git a/ReactNativeCmp.podspec b/ReactNativeCmp.podspec index 39c2d60..889ade9 100644 --- a/ReactNativeCmp.podspec +++ b/ReactNativeCmp.podspec @@ -17,7 +17,7 @@ Pod::Spec.new do |s| s.platforms = { :ios => min_ios_version_supported } s.source = { :git => "https://github.com/SourcePointUSA/react-native-sourcepoint-cmp.git", :tag => "#{s.version}" } - s.dependency "ConsentViewController", "7.12.1" + s.dependency "ConsentViewController", "7.12.4" s.source_files = "ios/**/*.{h,m,mm,cpp,swift}" s.private_header_files = "ios/**/*.h" diff --git a/android/build.gradle b/android/build.gradle index ce9ece7..49c34d3 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -77,7 +77,7 @@ dependencies { implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3" implementation "org.jetbrains.kotlinx:kotlinx-datetime:0.6.1" - implementation "com.sourcepoint.cmplibrary:cmplibrary:7.15.4" + implementation "com.sourcepoint.cmplibrary:cmplibrary:7.15.6" } react { diff --git a/example/ios/Podfile b/example/ios/Podfile index a2f517a..e3278ac 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -10,7 +10,7 @@ require Pod::Executable.execute_command('node', ['-p', platform :ios, min_ios_version_supported prepare_react_native_project! -linkage = ENV['USE_FRAMEWORKS'] +linkage = "static" #ENV['USE_FRAMEWORKS'] if linkage != nil Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green Pod::UI.puts "Min iOS version: #{min_ios_version_supported} (from Podfile)".green diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 891bfd3..c7032f3 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -1,6 +1,6 @@ PODS: - boost (1.84.0) - - ConsentViewController (7.12.1): + - ConsentViewController (7.12.4): - Down (~> 0.11.0) - SPMobileCore (= 0.1.11) - DoubleConversion (1.1.6) @@ -1660,7 +1660,7 @@ PODS: - React-perflogger (= 0.79.2) - React-utils (= 0.79.2) - ReactNativeCmp (1.0.9): - - ConsentViewController (= 7.12.1) + - ConsentViewController (= 7.12.4) - DoubleConversion - glog - hermes-engine @@ -1919,7 +1919,7 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: boost: 7e761d76ca2ce687f7cc98e698152abd03a18f90 - ConsentViewController: 653e30da12ad26fbe47b8adfd0ca545c69c10d0e + ConsentViewController: 44b853fa9157e70a790f34d59e20a9d8433ca852 DoubleConversion: cb417026b2400c8f53ae97020b2be961b59470cb fast_float: 06eeec4fe712a76acc9376682e4808b05ce978b6 FBLazyVector: 84b955f7b4da8b895faf5946f73748267347c975 @@ -1935,65 +1935,65 @@ SPEC CHECKSUMS: React-Core: 10597593fdbae06f0089881e025a172e51d4a769 React-CoreModules: 6907b255529dd46895cf687daa67b24484a612c2 React-cxxreact: a9f5b8180d6955bc3f6a3fcd657c4d9b4d95c1f6 - React-debug: e74e76912b91e08d580c481c34881899ccf63da9 - React-defaultsnativemodule: 11f6ee2cf69bf3af9d0f28a6253def33d21b5266 - React-domnativemodule: f940bbc4fa9e134190acbf3a4a9f95621b5a8f51 - React-Fabric: 6f5c357bf3a42ff11f8844ad3fc7a1eb04f4b9de - React-FabricComponents: 10e0c0209822ac9e69412913a8af1ca33573379b - React-FabricImage: f582e764072dfa4715ae8c42979a5bace9cbcc12 - React-featureflags: d5facceff8f8f6de430e0acecf4979a9a0839ba9 - React-featureflagsnativemodule: a7dd141f1ef4b7c1331af0035689fbc742a49ff4 - React-graphics: 36ae3407172c1c77cea29265d2b12b90aaef6aa0 + React-debug: a9861ea2196e886642887e29fd1d86c6eee93454 + React-defaultsnativemodule: 48bed05d5e7a6b90c63775bc042acba50f1ac46c + React-domnativemodule: 4603dc552b8f2b75cfd708b6175f0f3ab005d661 + React-Fabric: c48e870a557e39fc38c49bf2f43a62f837876318 + React-FabricComponents: d0c0029b9066819e736ee70ce8481fe52632ccad + React-FabricImage: a843d50c9d21f4a6255c3cd1654cdf16209ac76d + React-featureflags: 4ef61c283dfae8f327dbae70f41bb0399bd9e0fc + React-featureflagsnativemodule: 879cdf94179dc7395f28b9bf0fd340fd45c05ab7 + React-graphics: 4e247c50991de6e2c0abd25f8367cfa3113198c0 React-hermes: 9116d4e6d07abeb519a2852672de087f44da8f12 - React-idlecallbacksnativemodule: ae7f5ffc6cf2d2058b007b78248e5b08172ad5c3 - React-ImageManager: 9daee0dc99ad6a001d4b9e691fbf37107e2b7b54 - React-jserrorhandler: 1e6211581071edaf4ecd5303147328120c73f4dc + React-idlecallbacksnativemodule: 5fd6d838b045d3f5b630a6a0714635bc9c882fdc + React-ImageManager: ad3f561d76883d6f7f1cf3a97e823fa39ca1b132 + React-jserrorhandler: 35d127a39a5bc16d9ae97edce7ab4c06dc77e3a2 React-jsi: 753ba30c902f3a41fa7f956aca8eea3317a44ee6 React-jsiexecutor: 47520714aa7d9589c51c0f3713dfbfca4895d4f9 - React-jsinspector: cfd27107f6d6f1076a57d88c932401251560fe5f - React-jsinspectortracing: 76a7d791f3c0c09a0d2bf6f46dfb0e79a4fcc0ac - React-jsitooling: 995e826570dd58f802251490486ebd3244a037ab - React-jsitracing: 094ae3d8c123cea67b50211c945b7c0443d3e97b + React-jsinspector: ec984e95482ee98692ec74f78771447599ed9781 + React-jsinspectortracing: 7bd661f34f08b320bb797dc464d6002116fca145 + React-jsitooling: 90d7ecbb60f70d12f60a4964dfcad0e38d9d970d + React-jsitracing: a9de0d25bf430574dc01f1fe67f06fd50e8a578c React-logger: 8edfcedc100544791cd82692ca5a574240a16219 - React-Mapbuffer: c3f4b608e4a59dd2f6a416ef4d47a14400194468 - React-microtasksnativemodule: 054f34e9b82f02bd40f09cebd4083828b5b2beb6 + React-Mapbuffer: da73f30b000114058d6bc41490dcce204a8ede32 + React-microtasksnativemodule: 444c5701aece79629bb73bd9e7ad8937ae65238c react-native-launch-arguments: 165260aba9544f00c66fae3e136b11484d0cb49b - React-NativeModulesApple: 2c4377e139522c3d73f5df582e4f051a838ff25e + React-NativeModulesApple: df8e5bc59e78ca3040ffbf41336889f3bd0fad68 React-oscompat: ef5df1c734f19b8003e149317d041b8ce1f7d29c React-perflogger: 9a151e0b4c933c9205fd648c246506a83f31395d - React-performancetimeline: 5b0dfc0acba29ea0269ddb34cd6dd59d3b8a1c66 + React-performancetimeline: d6a5fd3640c873875badb33020ebe5af46ef2a12 React-RCTActionSheet: a499b0d6d9793886b67ba3e16046a3fef2cdbbc3 React-RCTAnimation: cc64adc259aabc3354b73065e2231d796dfce576 React-RCTAppDelegate: 9d523da768f1c9e84c5f3b7e3624d097dfb0e16b React-RCTBlob: e727f53eeefded7e6432eb76bd22b57bc880e5d1 - React-RCTFabric: 58590aa4fdb4ad546c06a7449b486cf6844e991f + React-RCTFabric: a704a0eea3a9a32621ccc79261fe5b010bfcaccb React-RCTFBReactNativeSpec: 9064c63d99e467a3893e328ba3612745c3c3a338 React-RCTImage: 7159cbdbb18a09d97ba1a611416eced75b3ccb29 React-RCTLinking: 46293afdb859bccc63e1d3dedc6901a3c04ef360 React-RCTNetwork: 4a6cd18f5bcd0363657789c64043123a896b1170 - React-RCTRuntime: 5ab904fd749aa52f267ef771d265612582a17880 + React-RCTRuntime: 4b47b6380420e9fbfb4bd3cc16d6ea988640ddc1 React-RCTSettings: 61e361dc85136d1cb0e148b7541993d2ee950ea7 React-RCTText: abd1e196c3167175e6baef18199c6d9d8ac54b4e React-RCTVibration: 490e0dcb01a3fe4a0dfb7bc51ad5856d8b84f343 - React-rendererconsistency: 351fdbc5c1fe4da24243d939094a80f0e149c7a1 - React-renderercss: 3438814bee838ae7840a633ab085ac81699fd5cf - React-rendererdebug: 0ac2b9419ad6f88444f066d4b476180af311fb1e - React-rncore: 57ed480649bb678d8bdc386d20fee8bf2b0c307c - React-RuntimeApple: 8b7a9788f31548298ba1990620fe06b40de65ad7 - React-RuntimeCore: e03d96fbd57ce69fd9bca8c925942194a5126dbc + React-rendererconsistency: 68db5a64f0c42b0337e25ba7b0e9513caae1389d + React-renderercss: 59c892b54a92f2f62b98c2700f5ff7592f0629cb + React-rendererdebug: f9dfe8ef736c98268f87114d05f49615f7f9af46 + React-rncore: 0f64cacb1becc6f89c99018ca920d012f9044ebd + React-RuntimeApple: f2bc2dc51b9b3c194c0eec4351ae99d033485792 + React-RuntimeCore: 4e5475d506e7f9c4b3f3c6e6a654b83cba7f1a42 React-runtimeexecutor: d60846710facedd1edb70c08b738119b3ee2c6c2 - React-RuntimeHermes: aab794755d9f6efd249b61f3af4417296904e3ba - React-runtimescheduler: c3cd124fa5db7c37f601ee49ca0d97019acd8788 - React-timing: a90f4654cbda9c628614f9bee68967f1768bd6a5 - React-utils: a612d50555b6f0f90c74b7d79954019ad47f5de6 + React-RuntimeHermes: 2b238368a56fc50e9372afde7a3f2eeb0cdc63a7 + React-runtimescheduler: c65050ab5c3911dd553bb9223c76543198c5854f + React-timing: beb0ba912f9ffc1a6758afa767ae5c03302dc9ee + React-utils: 4b32801a05eff845d316edd59b313a3e25c5fc08 ReactAppDependencyProvider: 04d5eb15eb46be6720e17a4a7fa92940a776e584 - ReactCodegen: c63eda03ba1d94353fb97b031fc84f75a0d125ba - ReactCommon: 76d2dc87136d0a667678668b86f0fca0c16fdeb0 - ReactNativeCmp: 1ccd332fd3da8a95f978dcfae6f4f4ddec8a0448 + ReactCodegen: 041559ba76d00f6680dfa0916b3c791f4babe5ea + ReactCommon: 1511ef100f1afa4c199fe52fe7a8d2529a41429a + ReactNativeCmp: 71c81cc64d62926c325f1a64083f70edfeaebe35 SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748 SPMobileCore: 220d109e404cb17169f7e26f2a34c6022b80079a - Yoga: c758bfb934100bb4bf9cbaccb52557cee35e8bdf + Yoga: 50518ade05048235d91a78b803336dbb5b159d5d -PODFILE CHECKSUM: decdc7519d77aa5eae65b167fa59bcfce25e15d2 +PODFILE CHECKSUM: 4382e40cc13f4e9bcfea92a110a4f7ad24e1d521 COCOAPODS: 1.16.2 diff --git a/example/ios/ReactNativeCmpExample.xcodeproj/project.pbxproj b/example/ios/ReactNativeCmpExample.xcodeproj/project.pbxproj index b8cdb73..b17a3b5 100644 --- a/example/ios/ReactNativeCmpExample.xcodeproj/project.pbxproj +++ b/example/ios/ReactNativeCmpExample.xcodeproj/project.pbxproj @@ -8,7 +8,7 @@ /* Begin PBXBuildFile section */ 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; - 61D9D761CDC288DEE247261E /* libPods-ReactNativeCmpExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 211CB3AA9C2412621C003F1E /* libPods-ReactNativeCmpExample.a */; }; + 3B98A9D01A1203B9C6FF7979 /* Pods_ReactNativeCmpExample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 92BC41F60774295FE8FDA3A0 /* Pods_ReactNativeCmpExample.framework */; }; 761780ED2CA45674006654EE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 761780EC2CA45674006654EE /* AppDelegate.swift */; }; 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; E6E443B76B817E6505F1B1F9 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */; }; @@ -19,12 +19,12 @@ 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ReactNativeCmpExample/Images.xcassets; sourceTree = ""; }; 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ReactNativeCmpExample/Info.plist; sourceTree = ""; }; 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = PrivacyInfo.xcprivacy; path = ReactNativeCmpExample/PrivacyInfo.xcprivacy; sourceTree = ""; }; - 211CB3AA9C2412621C003F1E /* libPods-ReactNativeCmpExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeCmpExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 4BD6E6926CA8A0C4AD0C9C0A /* Pods-ReactNativeCmpExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeCmpExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeCmpExample/Pods-ReactNativeCmpExample.release.xcconfig"; sourceTree = ""; }; 761780EC2CA45674006654EE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = ReactNativeCmpExample/AppDelegate.swift; sourceTree = ""; }; 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ReactNativeCmpExample/LaunchScreen.storyboard; sourceTree = ""; }; + 92BC41F60774295FE8FDA3A0 /* Pods_ReactNativeCmpExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ReactNativeCmpExample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 93804B856F877E5030BD3385 /* Pods-ReactNativeCmpExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeCmpExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeCmpExample/Pods-ReactNativeCmpExample.debug.xcconfig"; sourceTree = ""; }; + E665EADCDD36BEF518A5EA2C /* Pods-ReactNativeCmpExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeCmpExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeCmpExample/Pods-ReactNativeCmpExample.release.xcconfig"; sourceTree = ""; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; - F51D9FF29768BE602B992311 /* Pods-ReactNativeCmpExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeCmpExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeCmpExample/Pods-ReactNativeCmpExample.debug.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -32,7 +32,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 61D9D761CDC288DEE247261E /* libPods-ReactNativeCmpExample.a in Frameworks */, + 3B98A9D01A1203B9C6FF7979 /* Pods_ReactNativeCmpExample.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -55,7 +55,7 @@ isa = PBXGroup; children = ( ED297162215061F000B7C4FE /* JavaScriptCore.framework */, - 211CB3AA9C2412621C003F1E /* libPods-ReactNativeCmpExample.a */, + 92BC41F60774295FE8FDA3A0 /* Pods_ReactNativeCmpExample.framework */, ); name = Frameworks; sourceTree = ""; @@ -92,8 +92,8 @@ BBD78D7AC51CEA395F1C20DB /* Pods */ = { isa = PBXGroup; children = ( - F51D9FF29768BE602B992311 /* Pods-ReactNativeCmpExample.debug.xcconfig */, - 4BD6E6926CA8A0C4AD0C9C0A /* Pods-ReactNativeCmpExample.release.xcconfig */, + 93804B856F877E5030BD3385 /* Pods-ReactNativeCmpExample.debug.xcconfig */, + E665EADCDD36BEF518A5EA2C /* Pods-ReactNativeCmpExample.release.xcconfig */, ); path = Pods; sourceTree = ""; @@ -105,13 +105,13 @@ isa = PBXNativeTarget; buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeCmpExample" */; buildPhases = ( - 58E36A2ABFA7F25FB9F1862D /* [CP] Check Pods Manifest.lock */, + CF68D33CBA59D1B8642508E6 /* [CP] Check Pods Manifest.lock */, 13B07F871A680F5B00A75B9A /* Sources */, 13B07F8C1A680F5B00A75B9A /* Frameworks */, 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, - DA31EC456BC4FEF95753A61E /* [CP] Embed Pods Frameworks */, - EFF9C7DD88E2C850D8CBBF2B /* [CP] Copy Pods Resources */, + F8EDE96C917D98AB2AE896D4 /* [CP] Embed Pods Frameworks */, + 1969DC0C54DDE940E55CA419 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -183,7 +183,24 @@ shellPath = /bin/sh; shellScript = "set -e\n\nWITH_ENVIRONMENT=\"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"$REACT_NATIVE_PATH/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n"; }; - 58E36A2ABFA7F25FB9F1862D /* [CP] Check Pods Manifest.lock */ = { + 1969DC0C54DDE940E55CA419 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-ReactNativeCmpExample/Pods-ReactNativeCmpExample-resources-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Copy Pods Resources"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-ReactNativeCmpExample/Pods-ReactNativeCmpExample-resources-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeCmpExample/Pods-ReactNativeCmpExample-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + CF68D33CBA59D1B8642508E6 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -205,7 +222,7 @@ 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; }; - DA31EC456BC4FEF95753A61E /* [CP] Embed Pods Frameworks */ = { + F8EDE96C917D98AB2AE896D4 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -222,23 +239,6 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeCmpExample/Pods-ReactNativeCmpExample-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - EFF9C7DD88E2C850D8CBBF2B /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-ReactNativeCmpExample/Pods-ReactNativeCmpExample-resources-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Copy Pods Resources"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-ReactNativeCmpExample/Pods-ReactNativeCmpExample-resources-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeCmpExample/Pods-ReactNativeCmpExample-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -255,7 +255,7 @@ /* Begin XCBuildConfiguration section */ 13B07F941A680F5B00A75B9A /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = F51D9FF29768BE602B992311 /* Pods-ReactNativeCmpExample.debug.xcconfig */; + baseConfigurationReference = 93804B856F877E5030BD3385 /* Pods-ReactNativeCmpExample.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; @@ -287,7 +287,7 @@ }; 13B07F951A680F5B00A75B9A /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 4BD6E6926CA8A0C4AD0C9C0A /* Pods-ReactNativeCmpExample.release.xcconfig */; + baseConfigurationReference = E665EADCDD36BEF518A5EA2C /* Pods-ReactNativeCmpExample.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; diff --git a/example/src/App.tsx b/example/src/App.tsx index 63f340a..28c7bfe 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -97,9 +97,9 @@ export default function App() { console.log("User inactive"); }); - consentManager.current?.onError((description) => { + consentManager.current?.onError(({ name, description }) => { setSDKStatus(SDKStatus.Errored); - console.error(description); + console.error(`${name}: ${description}`); }); consentManager.current?.getUserData().then(setUserData);