Skip to content

Commit 1eb9e4a

Browse files
Merge branch 'new-consent-flags'
* new-consent-flags: Updated project version to 1.0.7 and modified README to reflect the new version for CocoaPods and Swift Package Manager integration. Added new consent status properties for functionality, personalization, and security storage in GoogleConsentStatus. Updated related logic in ExportData.swift to handle new consent keys.
2 parents 5d3dd2d + 976600f commit 1eb9e4a

4 files changed

Lines changed: 28 additions & 10 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.6"
9+
spec.version = "1.0.7"
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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@
341341
"@executable_path/Frameworks",
342342
"@loader_path/Frameworks",
343343
);
344-
MARKETING_VERSION = 1.0.6;
344+
MARKETING_VERSION = 1.0.7;
345345
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
346346
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20";
347347
PRODUCT_BUNDLE_IDENTIFIER = com.ClickioConsentSDKManager;
@@ -382,7 +382,7 @@
382382
"@executable_path/Frameworks",
383383
"@loader_path/Frameworks",
384384
);
385-
MARKETING_VERSION = 1.0.6;
385+
MARKETING_VERSION = 1.0.7;
386386
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
387387
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20";
388388
PRODUCT_BUNDLE_IDENTIFIER = com.ClickioConsentSDKManager;
@@ -456,7 +456,7 @@
456456
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.";
457457
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
458458
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
459-
MARKETING_VERSION = 1.0.6;
459+
MARKETING_VERSION = 1.0.7;
460460
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
461461
MTL_FAST_MATH = YES;
462462
ONLY_ACTIVE_ARCH = YES;
@@ -518,7 +518,7 @@
518518
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.";
519519
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
520520
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
521-
MARKETING_VERSION = 1.0.6;
521+
MARKETING_VERSION = 1.0.7;
522522
MTL_ENABLE_DEBUG_INFO = NO;
523523
MTL_FAST_MATH = YES;
524524
SDKROOT = iphoneos;

README.md

Lines changed: 9 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.6"
23+
- Select "Up to Next Major" with "1.0.7"
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.6'
32+
pod 'ClickioConsentSDKManager', '~> 1.0.7'
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.6'
42+
pod 'ClickioConsentSDKManager', :git => 'https://github.com/ClickioTech/ClickioConsentSDK-IOS.git', :tag => '1.0.7'
4343
end
4444
```
4545

@@ -371,6 +371,9 @@ struct GoogleConsentStatus (
371371
var adStorageGranted = false
372372
var adUserDataGranted = false
373373
var adPersonalizationGranted = false
374+
var functionalityStorageGranted = false
375+
var personalizationStorageGranted = false
376+
var securityStorageGranted = false
374377
)
375378
```
376379
Represents the status of Google Consent Mode.
@@ -379,6 +382,9 @@ Represents the status of Google Consent Mode.
379382
- `adStorageGranted` — Consent for ad storage.
380383
- `adUserDataGranted` — Consent for processing user data for ads.
381384
- `adPersonalizationGranted` — Consent for ad personalization.
385+
- `functionalityStorageGranted` — Consent for functionality storage.
386+
- `personalizationStorageGranted` — Consent for personalization storage.
387+
- `securityStorageGranted` — Consent for security storage.
382388

383389
# Integration with Third-Party Libraries for Google Consent Mode
384390

Sources/ExportData/ExportData.swift

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,28 @@ import Foundation
5252
let analyticsStorageString = userDefaults.string(forKey: "CLICKIO_CONSENT_GOOGLE_ANALYTICS_analyticsStorage")
5353
let adUserDataString = userDefaults.string(forKey: "CLICKIO_CONSENT_GOOGLE_ANALYTICS_adUserData")
5454
let adPersonalizationString = userDefaults.string(forKey: "CLICKIO_CONSENT_GOOGLE_ANALYTICS_adPersonalization")
55+
let functionalityStorageString = userDefaults.string(forKey: "CLICKIO_CONSENT_GOOGLE_ANALYTICS_functionalityStorage")
56+
let personalizationStorageString = userDefaults.string(forKey: "CLICKIO_CONSENT_GOOGLE_ANALYTICS_personalizationStorage")
57+
let securityStorageString = userDefaults.string(forKey: "CLICKIO_CONSENT_GOOGLE_ANALYTICS_securityStorage")
5558

5659
if adStorageString?.isEmpty == true
5760
&& analyticsStorageString?.isEmpty == true
5861
&& adUserDataString?.isEmpty == true
59-
&& adPersonalizationString?.isEmpty == true {
62+
&& adPersonalizationString?.isEmpty == true
63+
&& functionalityStorageString?.isEmpty == true
64+
&& personalizationStorageString?.isEmpty == true
65+
&& securityStorageString?.isEmpty == true {
6066
return nil
6167
}
6268

6369
return GoogleConsentStatus(
6470
analyticsStorageGranted: analyticsStorageString == granted,
6571
adStorageGranted: adStorageString == granted,
6672
adUserDataGranted: adUserDataString == granted,
67-
adPersonalizationGranted: adPersonalizationString == granted
73+
adPersonalizationGranted: adPersonalizationString == granted,
74+
functionalityStorageGranted: functionalityStorageString == granted,
75+
personalizationStorageGranted: personalizationStorageString == granted,
76+
securityStorageGranted: securityStorageString == granted
6877
)
6978
}
7079

@@ -148,4 +157,7 @@ public struct GoogleConsentStatus {
148157
public var adStorageGranted = false
149158
public var adUserDataGranted = false
150159
public var adPersonalizationGranted = false
160+
public var functionalityStorageGranted = false
161+
public var personalizationStorageGranted = false
162+
public var securityStorageGranted = false
151163
}

0 commit comments

Comments
 (0)