@rollershop/capacitor-emarsys-sdk 2.0.0-beta.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Package.swift +1 -1
- package/README.md +4 -2
- package/RollershopCapacitorEmarsysSdk.podspec +2 -2
- package/dist/docs.json +1 -1
- package/dist/esm/definitions.d.ts +2 -0
- package/package.json +1 -1
package/Package.swift
CHANGED
|
@@ -11,7 +11,7 @@ let package = Package(
|
|
|
11
11
|
],
|
|
12
12
|
dependencies: [
|
|
13
13
|
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0"),
|
|
14
|
-
.package(url: "https://github.com/emartech/ios-emarsys-sdk.git", from: "3.
|
|
14
|
+
.package(url: "https://github.com/emartech/ios-emarsys-sdk.git", from: "3.10.2")
|
|
15
15
|
],
|
|
16
16
|
targets: [
|
|
17
17
|
.target(
|
package/README.md
CHANGED
|
@@ -69,7 +69,7 @@ This Plugin is used as a wrapper for the [Emarsys SDK](https://help.emarsys.com/
|
|
|
69
69
|
|
|
70
70
|
## SDK Versions
|
|
71
71
|
|
|
72
|
-
- iOS: [`3.
|
|
72
|
+
- iOS: [`3.10.2`](https://github.com/emartech/ios-emarsys-sdk/releases/tag/3.10.2)
|
|
73
73
|
- Android: Not implemented
|
|
74
74
|
|
|
75
75
|
## Install
|
|
@@ -160,7 +160,7 @@ Push notification could show media content and action buttons besides the title
|
|
|
160
160
|
2. Add the `ios-emarsys-sdk` package to your project via Xcode:
|
|
161
161
|
- Navigate to your project → **Package Dependencies** → `+`
|
|
162
162
|
- Enter URL: `https://github.com/emartech/ios-emarsys-sdk.git`
|
|
163
|
-
- Select version `3.
|
|
163
|
+
- Select version `3.10.2` (Up to Next Major)
|
|
164
164
|
- Assign `EmarsysNotificationExtensionLibrary` to the `NotificationService` target
|
|
165
165
|
- Assign `EmarsysSDKLibrary` to the `App` target
|
|
166
166
|
3. Open `NotificationService.swift` and replace the content with:
|
|
@@ -723,6 +723,8 @@ setMerchantId(options: MerchantId) => any
|
|
|
723
723
|
|
|
724
724
|
Change the actual `merchantId` that is set in the SDK.
|
|
725
725
|
|
|
726
|
+
Since Emarsys SDK 3.10.0 this also clears the current contact, so you have to call `setContact` or `setAuthenticatedContact` again afterwards.
|
|
727
|
+
|
|
726
728
|
| Param | Type |
|
|
727
729
|
| ------------- | ------------------------------------------------- |
|
|
728
730
|
| **`options`** | <code><a href="#merchantid">MerchantId</a></code> |
|
|
@@ -11,8 +11,8 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.author = package['author']
|
|
12
12
|
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
|
|
13
13
|
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
|
-
s.ios.deployment_target = '
|
|
14
|
+
s.ios.deployment_target = '15.0'
|
|
15
15
|
s.dependency 'Capacitor'
|
|
16
|
-
s.dependency 'EmarsysSDK', '3.
|
|
16
|
+
s.dependency 'EmarsysSDK', '3.10.2'
|
|
17
17
|
s.swift_version = '5.1'
|
|
18
18
|
end
|
package/dist/docs.json
CHANGED
|
@@ -528,7 +528,7 @@
|
|
|
528
528
|
"text": "1.0.0"
|
|
529
529
|
}
|
|
530
530
|
],
|
|
531
|
-
"docs": "Change the actual `merchantId` that is set in the SDK.",
|
|
531
|
+
"docs": "Change the actual `merchantId` that is set in the SDK.\n\nSince Emarsys SDK 3.10.0 this also clears the current contact, so you have to call `setContact` or `setAuthenticatedContact` again afterwards.",
|
|
532
532
|
"complexTypes": [
|
|
533
533
|
"MerchantId"
|
|
534
534
|
],
|
|
@@ -212,6 +212,8 @@ export interface EmarsysPlugin {
|
|
|
212
212
|
/**
|
|
213
213
|
* Change the actual `merchantId` that is set in the SDK.
|
|
214
214
|
*
|
|
215
|
+
* Since Emarsys SDK 3.10.0 this also clears the current contact, so you have to call `setContact` or `setAuthenticatedContact` again afterwards.
|
|
216
|
+
*
|
|
215
217
|
* @since 1.0.0
|
|
216
218
|
*/
|
|
217
219
|
setMerchantId(options: MerchantId): Promise<void>;
|