appsflyer-capacitor-plugin 6.16.2 → 6.17.0-rc1
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/AppsflyerCapacitorPlugin.podspec +1 -1
- package/README.md +8 -3
- package/android/build.gradle +10 -10
- package/android/src/main/java/capacitor/plugin/appsflyer/sdk/AppsFlyerPlugin.kt +6 -0
- package/dist/esm/definitions.d.ts +7 -1
- package/ios/Plugin/AppsFlyerPlugin.swift +1 -1
- package/package.json +8 -8
- package/src/definitions.ts +8 -1
|
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
|
|
12
12
|
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
13
13
|
s.static_framework = true
|
|
14
|
-
s.ios.deployment_target = '
|
|
14
|
+
s.ios.deployment_target = '14.0'
|
|
15
15
|
s.dependency 'Capacitor'
|
|
16
16
|
s.swift_version = '5.1'
|
|
17
17
|
|
package/README.md
CHANGED
|
@@ -12,10 +12,15 @@
|
|
|
12
12
|
> *When submitting an issue please specify your AppsFlyer sign-up (account) email , your app ID , production steps, logs, code snippets and any additional relevant information.*
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
### <a id="plugin-build-for"> This plugin is built for
|
|
15
|
+
### <a id="plugin-build-for"> This plugin is built for:
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
<img src="https://raw.githubusercontent.com/github/explore/80688e429a7d4ef2fca1e82350fe8e3517d3494d/topics/android/android.png" width="18" height="18"> Android AppsFlyer SDK **6.17.0**</br>
|
|
18
|
+
<img src="https://icon.icepanel.io/Technology/svg/Apple.svg" width="18" height="18"> iOS AppsFlyer SDK **6.17.0**</br>
|
|
19
|
+
<img src="https://icon.icepanel.io/Technology/svg/Capacitor.svg" width="18" height="18"> Capacitor 7</br>
|
|
20
|
+
|
|
21
|
+
## <a id="breaking-changes-6-17-0"> ❗❗ Breaking changes when updating to v6.17.0 ❗❗
|
|
22
|
+
Starting from v6.17.0, this plugin works only with Capacitor 7. </br>
|
|
23
|
+
If you are still interested in using Capacitor 6, please follow the instructions [here](/docs/Installation.md#cap6) to install the latest version that supports Capacitor 6.
|
|
19
24
|
|
|
20
25
|
## <a id="breaking-changes-6-15-0"> ❗❗ Breaking changes when updating to v6.15.0 ❗❗
|
|
21
26
|
Starting from v6.15.0, this plugin works only with Capacitor 6. </br>
|
package/android/build.gradle
CHANGED
|
@@ -129,22 +129,22 @@ ext {
|
|
|
129
129
|
packageJson = getPackageJson()
|
|
130
130
|
|
|
131
131
|
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
132
|
-
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.
|
|
133
|
-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1
|
|
134
|
-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.
|
|
132
|
+
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.0'
|
|
133
|
+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.2.1'
|
|
134
|
+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.6.1'
|
|
135
135
|
af_sdk_version = packageJson?.androidSdkVersion
|
|
136
136
|
plugin_version = packageJson?.version
|
|
137
137
|
plugin_build_version = packageJson?.buildNumber
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
buildscript {
|
|
141
|
-
ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '1.9.
|
|
141
|
+
ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '1.9.25'
|
|
142
142
|
repositories {
|
|
143
143
|
google()
|
|
144
144
|
mavenCentral()
|
|
145
145
|
}
|
|
146
146
|
dependencies {
|
|
147
|
-
classpath 'com.android.tools.build:gradle:8.2
|
|
147
|
+
classpath 'com.android.tools.build:gradle:8.7.2'
|
|
148
148
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
149
149
|
classpath 'org.codehaus.groovy:groovy-json:3.0.9'
|
|
150
150
|
}
|
|
@@ -155,10 +155,10 @@ apply plugin: 'kotlin-android'
|
|
|
155
155
|
|
|
156
156
|
android {
|
|
157
157
|
namespace "capacitor.plugin.appsflyer.sdk"
|
|
158
|
-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion :
|
|
158
|
+
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
|
|
159
159
|
defaultConfig {
|
|
160
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion :
|
|
161
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
160
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
|
|
161
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
|
|
162
162
|
versionCode Integer.parseInt(plugin_build_version)
|
|
163
163
|
versionName "$plugin_version"
|
|
164
164
|
buildConfigField "int", "VERSION_CODE", plugin_build_version
|
|
@@ -175,8 +175,8 @@ android {
|
|
|
175
175
|
abortOnError false
|
|
176
176
|
}
|
|
177
177
|
compileOptions {
|
|
178
|
-
sourceCompatibility JavaVersion.
|
|
179
|
-
targetCompatibility JavaVersion.
|
|
178
|
+
sourceCompatibility JavaVersion.VERSION_21
|
|
179
|
+
targetCompatibility JavaVersion.VERSION_21
|
|
180
180
|
}
|
|
181
181
|
buildFeatures {
|
|
182
182
|
buildConfig = true
|
|
@@ -655,6 +655,12 @@ class AppsFlyerPlugin : Plugin() {
|
|
|
655
655
|
call.resolve()
|
|
656
656
|
}
|
|
657
657
|
|
|
658
|
+
@PluginMethod(returnType = PluginMethod.RETURN_NONE)
|
|
659
|
+
fun disableAppSetId(call: PluginCall) {
|
|
660
|
+
AppsFlyerLib.getInstance().disableAppSetId()
|
|
661
|
+
call.resolve()
|
|
662
|
+
}
|
|
663
|
+
|
|
658
664
|
private fun getDeepLinkListener(): DeepLinkListener {
|
|
659
665
|
return DeepLinkListener {
|
|
660
666
|
if (udl == true) {
|
|
@@ -19,7 +19,7 @@ export interface AppsFlyerPlugin {
|
|
|
19
19
|
* */
|
|
20
20
|
logEvent(data: AFEvent): Promise<AFRes>;
|
|
21
21
|
/**
|
|
22
|
-
* Setting your own customer ID enables you to cross-reference your own unique ID with AppsFlyer
|
|
22
|
+
* Setting your own customer ID enables you to cross-reference your own unique ID with AppsFlyer's unique ID and other devices' IDs.
|
|
23
23
|
* This ID is available in raw-data reports and in the Postback APIs for cross-referencing with your internal IDs.
|
|
24
24
|
*/
|
|
25
25
|
setCustomerUserId(cuid: AFCuid): Promise<void>;
|
|
@@ -188,4 +188,10 @@ export interface AppsFlyerPlugin {
|
|
|
188
188
|
* @param options: AFConsentOptions that consists with all the possible options for consent collection, boolean params.
|
|
189
189
|
*/
|
|
190
190
|
setConsentDataV2(options: AFConsentOptions): Promise<void>;
|
|
191
|
+
/**
|
|
192
|
+
* Disables AppSet ID collection. If called before SDK init, App Set ID will not be collected.
|
|
193
|
+
* If called after init, App Set ID will be collected but not sent in request payloads.
|
|
194
|
+
* Android only.
|
|
195
|
+
*/
|
|
196
|
+
disableAppSetId(): Promise<void>;
|
|
191
197
|
}
|
|
@@ -5,7 +5,7 @@ import AppsFlyerLib
|
|
|
5
5
|
|
|
6
6
|
@objc(AppsFlyerPlugin)
|
|
7
7
|
public class AppsFlyerPlugin: CAPPlugin {
|
|
8
|
-
private let APPSFLYER_PLUGIN_VERSION = "6.
|
|
8
|
+
private let APPSFLYER_PLUGIN_VERSION = "6.17.0-rc1"
|
|
9
9
|
private var conversion = true
|
|
10
10
|
private var oaoa = true
|
|
11
11
|
private var udl = false
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appsflyer-capacitor-plugin",
|
|
3
|
-
"version": "6.
|
|
4
|
-
"iosSdkVersion": "6.
|
|
5
|
-
"androidSdkVersion": "6.
|
|
6
|
-
"buildNumber": "
|
|
3
|
+
"version": "6.17.0-rc1",
|
|
4
|
+
"iosSdkVersion": "6.17.0",
|
|
5
|
+
"androidSdkVersion": "6.17.0",
|
|
6
|
+
"buildNumber": "113",
|
|
7
7
|
"description": "AppsFlyer SDK plugin for Capacitor",
|
|
8
8
|
"main": "dist/plugin.cjs.js",
|
|
9
9
|
"module": "dist/esm/index.js",
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@angular/cli": "^12.1.1",
|
|
57
57
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
58
|
-
"@capacitor/android": "^
|
|
59
|
-
"@capacitor/core": "^
|
|
58
|
+
"@capacitor/android": "^7.0.0",
|
|
59
|
+
"@capacitor/core": "^7.0.0",
|
|
60
60
|
"@capacitor/docgen": "^0.2.0",
|
|
61
|
-
"@capacitor/ios": "^
|
|
61
|
+
"@capacitor/ios": "^7.0.0",
|
|
62
62
|
"@ionic/eslint-config": "^0.4.0",
|
|
63
63
|
"@ionic/prettier-config": "^1.0.1",
|
|
64
64
|
"@ionic/swiftlint-config": "^1.1.2",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"typescript": "~4.0.3"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@capacitor/core": "
|
|
74
|
+
"@capacitor/core": ">=7.0.0"
|
|
75
75
|
},
|
|
76
76
|
"prettier": "@ionic/prettier-config",
|
|
77
77
|
"swiftlint": "@ionic/swiftlint-config",
|
package/src/definitions.ts
CHANGED
|
@@ -80,7 +80,7 @@ export interface AppsFlyerPlugin {
|
|
|
80
80
|
logEvent(data: AFEvent): Promise<AFRes>
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
|
-
* Setting your own customer ID enables you to cross-reference your own unique ID with AppsFlyer
|
|
83
|
+
* Setting your own customer ID enables you to cross-reference your own unique ID with AppsFlyer's unique ID and other devices' IDs.
|
|
84
84
|
* This ID is available in raw-data reports and in the Postback APIs for cross-referencing with your internal IDs.
|
|
85
85
|
*/
|
|
86
86
|
setCustomerUserId(cuid: AFCuid): Promise<void>
|
|
@@ -285,4 +285,11 @@ export interface AppsFlyerPlugin {
|
|
|
285
285
|
* @param options: AFConsentOptions that consists with all the possible options for consent collection, boolean params.
|
|
286
286
|
*/
|
|
287
287
|
setConsentDataV2(options: AFConsentOptions): Promise<void>
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Disables AppSet ID collection. If called before SDK init, App Set ID will not be collected.
|
|
291
|
+
* If called after init, App Set ID will be collected but not sent in request payloads.
|
|
292
|
+
* Android only.
|
|
293
|
+
*/
|
|
294
|
+
disableAppSetId(): Promise<void>
|
|
288
295
|
}
|