Skip to content

Commit

Permalink
v1.9.11
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-troshkov committed Nov 14, 2022
1 parent bd9a5e5 commit 3d007af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 36 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.10.zip",
checksum: "4d46ceb5482f1e5d7905b63dab4f9904c9347bc8b43741fdc89c438c274a138c"
url: "https://s3.amazonaws.com/sdk.cxense.com/CxenseSDK-iOS-1.9.11.zip",
checksum: "6585488049d5e504c2cfa17a33b9639385f617734a6cc2190f505a5fb19595f4"
),
.binaryTarget(
name: "CxenseSDKTv",
url: "https://s3.amazonaws.com/sdk.cxense.com/CxenseSDK-tvOS-1.9.10.zip",
checksum: "60752ca33ee214e93a13385bb99bb2ecf94b5bcabf374a18354894235b482d83"
url: "https://s3.amazonaws.com/sdk.cxense.com/CxenseSDK-tvOS-1.9.11.zip",
checksum: "c6a24ebcf83dccf014507030eeac28a3740198c98618159471fc9a0d22fb42cc"
)
]
)
35 changes: 3 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ that allows using Cxense servers' functionality in mobile application through na
### CocoaPods

```ruby
pod 'CxenseSDK', '~>1.9.8'
pod 'CxenseSDK', '~>1.9.11'
```

### Swift Package Manager
Expand All @@ -24,7 +24,7 @@ let package = Package(
dependencies: [
.package(
url: "https://github.com/cXense/cxense-spm.git",
from: "1.9.8"
from: "1.9.11"
)
],
targets: [
Expand Down Expand Up @@ -283,15 +283,6 @@ if (error != nil) {
[CXCxense reportEvent:event];
```
### Force send events ###
To dispatch events without adding to the queue, you can use the ```Cxense.forceReportEvent``` method
```swift
Cxense.forceReportEvent(event) { isSent, error in
...
}
```

### Track active time
The SDK can track active time for page view events. For example - how long user had read specific article in the application. That can be easily done by using following function with event's name:
Expand Down Expand Up @@ -545,7 +536,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.
***Consent options:***
***Swift:***
```swift
config.consentOptions = [.consentRequired, .pvAllowed]
```
Expand All @@ -568,29 +559,9 @@ 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 3d007af

Please sign in to comment.