Skip to content

Commit fa26c2d

Browse files
Fixed CMP appearance for custom webView. Updated project version to 1.0.9-rc.
1 parent 53f1c75 commit fa26c2d

4 files changed

Lines changed: 11 additions & 7 deletions

File tree

ClickioConsentSDKManager.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Pod::Spec.new do |spec|
66

77
spec.module_name = "ClickioConsentSDKManager"
88

9-
spec.version = "1.0.8"
9+
spec.version = "1.0.9-rc"
1010

1111
spec.summary = "Native SDK for managing user consents, integrating a WebView-based consent dialog into iOS apps for streamlined privacy compliance."
1212

ClickioConsentSDKManager.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@
468468
INFOPLIST_KEY_NSUserTrackingUsageDescription = "This app collects and tracks your usage data for the purpose of delivering personalized advertisements and measuring ad performance. By using this app, you acknowledge and agree that your information may be processed and shared with our advertising partners.";
469469
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
470470
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
471-
MARKETING_VERSION = 1.0.8;
471+
MARKETING_VERSION = "1.0.9-rc";
472472
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
473473
MTL_FAST_MATH = YES;
474474
ONLY_ACTIVE_ARCH = YES;
@@ -530,7 +530,7 @@
530530
INFOPLIST_KEY_NSUserTrackingUsageDescription = "This app collects and tracks your usage data for the purpose of delivering personalized advertisements and measuring ad performance. By using this app, you acknowledge and agree that your information may be processed and shared with our advertising partners.";
531531
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
532532
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
533-
MARKETING_VERSION = 1.0.8;
533+
MARKETING_VERSION = "1.0.9-rc";
534534
MTL_ENABLE_DEBUG_INFO = NO;
535535
MTL_FAST_MATH = YES;
536536
SDKROOT = iphoneos;

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Before integrating `ClickioConsentSDKManager` (hereinafter reffered to as the `C
2020
**Swift Package Manager**
2121
- File > Swift Packages > Add Package Dependency
2222
- Add `https://github.com/ClickioTech/ClickioConsentSDK-IOS.git`
23-
- Select "Up to Next Major" with "1.0.8"
23+
- Select "Up to Next Major" with "1.0.9-rc"
2424

2525
**CocoaPods**
2626
- You can install ClickioConsentSDKManager pod from CocoaPods library:
@@ -29,7 +29,7 @@ platform :ios, '15.0'
2929
use_frameworks!
3030
3131
target 'YourApp' do
32-
pod 'ClickioConsentSDKManager', '~> 1.0.8'
32+
pod 'ClickioConsentSDKManager', '~> 1.0.9-rc'
3333
end
3434
```
3535

@@ -39,7 +39,7 @@ platform :ios, '15.0'
3939
use_frameworks!
4040
4141
target 'YourApp' do
42-
pod 'ClickioConsentSDKManager', :git => 'https://github.com/ClickioTech/ClickioConsentSDK-IOS.git', :tag => '1.0.8'
42+
pod 'ClickioConsentSDKManager', :git => 'https://github.com/ClickioTech/ClickioConsentSDK-IOS.git', :tag => '1.0.9-rc'
4343
end
4444
```
4545

Sources/WebView/WebViewController/WebViewController.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ public final class WebViewController: UIViewController {
2828
let sharedDataStore = WKWebsiteDataStore.default()
2929

3030
let userContentController = WKUserContentController()
31+
let userDefaults = UserDefaults.standard
3132

32-
if customConfig != nil {
33+
if userDefaults.bool(forKey: "consentAccepted") {
3334
let readWriteBridge = """
3435
(function() {
3536
window.clickioSDK = window.clickioSDK || {};
@@ -235,6 +236,9 @@ extension WebViewController: WKScriptMessageHandler {
235236
private func handleReadyAction() {
236237
logger.log("Ready method was called", level: .info)
237238
ClickioConsentSDK.shared.updateConsentStatus()
239+
let userDefaults = UserDefaults.standard
240+
userDefaults.set(true, forKey: "consentAccepted")
241+
238242
self.dismiss(animated: true, completion: nil)
239243
}
240244
}

0 commit comments

Comments
 (0)