Skip to content

Commit

Permalink
v1.9.10
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-troshkov committed Oct 27, 2022
1 parent c269c35 commit bd9a5e5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ let package = Package(
targets: [
.binaryTarget(
name: "CxenseSDK",
url: "https://s3.amazonaws.com/sdk.cxense.com/CxenseSDK-iOS-1.9.9.zip",
checksum: "be46b34c2bb161fe3ec7fbaee942821f1eed91776f026b794218680492174f87"
url: "https://s3.amazonaws.com/sdk.cxense.com/CxenseSDK-iOS-1.9.10.zip",
checksum: "4d46ceb5482f1e5d7905b63dab4f9904c9347bc8b43741fdc89c438c274a138c"
),
.binaryTarget(
name: "CxenseSDKTv",
url: "https://s3.amazonaws.com/sdk.cxense.com/CxenseSDK-tvOS-1.9.9.zip",
checksum: "a5d4364d53f6cf89489121295699084c8d63481f640812a01f667d3244315c35"
url: "https://s3.amazonaws.com/sdk.cxense.com/CxenseSDK-tvOS-1.9.10.zip",
checksum: "60752ca33ee214e93a13385bb99bb2ecf94b5bcabf374a18354894235b482d83"
)
]
)
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ Cxense SDK provides support of [Persisted Queries](https://wiki.cxense.com/displ
GDPR (General Data Protection Regulation, taken into account in EU) requires any operations with user data to be explicitly mentioned and have explicit user consent. For that purpose, the SDK provides special consent API to make easy setting end user consent for data processing.
***Swift:***
***Consent options:***
```swift
config.consentOptions = [.consentRequired, .pvAllowed]
```
Expand All @@ -568,9 +568,29 @@ public enum ConsentOptions: Int {

/// Targeting advertising based on browsing habits and audience segmentation
case adAllowed

/// Allowed usage of user-agent and other device-specific data.
case deviceAllowed

/// Allowed usage of geolocation with page view events
case geoAllowed
}
```

> Pay attention that if given consent options may affect not only data processing on backend, but also affect SDK's functionality. For example, for applications where user consent is required (.consentRequired option given) following effects are possible:
> - `.pvAllowed`: Controls events reporting. If not given - then no events will be reported.
> - `.segmentAllowed`: Controls segments retrieval. If not given - then empty list of segments will be returned instead of actual.
***Consent version (default: v1):***
```swift
config.consentVersion = ConsentVersion.v2
```

***ConsentVersion structure:***
```swift
@objc(CXConsentVersion)
public enum ConsentVersion: Int {
case v1
case v2
}
```

0 comments on commit bd9a5e5

Please sign in to comment.