Skip to content

Commit 2fe202f

Browse files
authored
Merge pull request #74 from AppsFlyerSDK/DELIVERY-39499/updateTov6.12.0&v6.12.1
Delivery 39499/update tov6.12.0&v6.12.1
2 parents fe94602 + aebc8c2 commit 2fe202f

132 files changed

Lines changed: 409 additions & 680 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.migration_backup/_backup.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "migration",
3+
"paths": [
4+
"package.json",
5+
"package-lock.json"
6+
]
7+
}

.migration_backup/package.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"name": "nativescript-plugin-appsflyer",
3+
"version": "6.12.1",
4+
"description": "Appsflyer SDK for NativeScript applications",
5+
"main": "appsflyer",
6+
"typings": "index.d.ts",
7+
"nativescript": {
8+
"platforms": {
9+
"android": "7.0.0",
10+
"ios": "7.0.0"
11+
}
12+
},
13+
"scripts": {
14+
"build": "tsc",
15+
"buildall": "tsc; tns build",
16+
"demo.ios.build": "cd demoNative; tns build ios; tns run ios;",
17+
"demo.ios": "npm run preparedemo; cd demoNative; tns run ios",
18+
"demo.ios.watch.sim": "npm run preparedemo; cd demoNative; tns livesync ios --emulator --watch",
19+
"demo.ios.watch": "npm run preparedemo; cd demoNative; tns livesync ios --watch",
20+
"demo.debug.i": "cd demoNative; tns debug ios",
21+
"demo.android": "npm run preparedemo; cd demoNative; tns run android",
22+
"demo.debug.a": "cd demoNative; tns debug android",
23+
"demo.android.watch": "npm run preparedemo; cd demoNative; tns livesync android --emulator --watch",
24+
"run.android": "npm run preparedemo; cd demoNative; tns run android",
25+
"ra": "cd demoNative; tns run android",
26+
"riw": "cd demoNative; tns livesync ios --watch",
27+
"raw": "cd demoNative; tns livesync android --watch",
28+
"preparedemo": "npm run build; cd demoNative; tns plugin remove nativescript-plugin-appsflyer; tns plugin add ..; tns install; npm run setup",
29+
"setup": "cd demoNative; npm install; cd ..; npm i; ts-patch install; npm run build; cd demoNative; tns plugin add ..; cd ..",
30+
"prepack": "tsc"
31+
},
32+
"repository": {
33+
"type": "git",
34+
"url": "https://github.com/AppsFlyerSDK/nativescript-plugin-appsflyer.git"
35+
},
36+
"keywords": [
37+
"appsflyer",
38+
"nativescript"
39+
],
40+
"author": "Appsflyer / Maxim Shoustin",
41+
"license": {
42+
"type": "MIT",
43+
"url": "https://github.com/AppsFlyerSDK/nativescript-plugin-appsflyer/blob/master/LICENSE"
44+
},
45+
"bugs": {
46+
"url": "https://github.com/AppsFlyerSDK/nativescript-plugin-appsflyer/issues"
47+
},
48+
"homepage": "https://github.com/AppsFlyerSDK/nativescript-plugin-appsflyer#readme",
49+
"devDependencies": {
50+
"@nativescript/core": ">=7.0.0",
51+
"@nativescript/ios": ">=7.0.0",
52+
"@nativescript/types": ">=7.0.0",
53+
"@nativescript/webpack": "~4.1.0",
54+
"ts-patch": "~1.3.1",
55+
"typescript": "~3.9.0"
56+
},
57+
"peerDependencies": {
58+
"@nativescript/core": ">=7.0.0"
59+
},
60+
"dependencies": {
61+
"ts-node": "~9.1.1"
62+
}
63+
}

.vscode/settings.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"NativescriptExtend.fileAssociations": [
3+
{
4+
"systemId": "/Users/gabrielmandler/Desktop/appsflyer-nativescript-plugin/schema/tns.xsd",
5+
"pattern": "**/**/*.xml"
6+
},
7+
{
8+
"systemId": "http://www.w3.org/2001/XMLSchema.xsd",
9+
"pattern": "/Users/gabrielmandler/Desktop/appsflyer-nativescript-plugin/schema/tns.xsd"
10+
}
11+
],
12+
"files.exclude": {
13+
"schema": true
14+
},
15+
"NativescriptExtend.format.enabled": true,
16+
"NativescriptExtend.validation.enabled": true
17+
}

README.md

Lines changed: 2 additions & 2 deletions

appsflyer.android.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ export const initSdk = function (args: InitSDKOptions) {
119119
}
120120
}
121121

122+
const platform_extension = com.appsflyer.internal.platform_extension;
123+
const pluginInfoClass = new platform_extension.PluginInfo(platform_extension.Plugin.NATIVE_SCRIPT, "6.12.1", new java.util.HashMap());
124+
appsFlyerLibInstance.setPluginInfo(pluginInfoClass);
125+
122126
appsFlyerLibInstance.init(args.devKey,_appsFlyerConversionListener,(Application.android.context || (<any>com).tns.NativeScriptApplication.getInstance()));
123127

124128
_start(appsFlyerLibInstance);

appsflyer.ios.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ export const initSdk = function (args: InitSDKOptions) {
5858
console.error(`AF-I :: onDeepLinking Error: ${e}`);
5959
}
6060
}
61+
62+
AppsFlyerLib.shared().setPluginInfoWithPluginVersionAdditionalParams(AFSDKPlugin.AFSDKPluginNativeScript, "6.12.1", null);
63+
6164
AppsFlyerLib.shared().start();
6265

6366
resolve({status: "success"});

demoNative/.editorconfig

100755100644
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@ indent_size = 2
1212

1313
[*.js]
1414
indent_style = space
15-
indent_size = 4
15+
indent_size = 2
16+
17+
[*.ts]
18+
indent_style = space
19+
indent_size = 2

demoNative/.update_backup/package.json

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// You can add your native dependencies here
2+
dependencies {
3+
implementation 'androidx.multidex:multidex:2.0.1'
4+
}
5+
6+
android {
7+
// compileSdkVersion 32
8+
// buildToolsVersion "32.0.0"
9+
// ndkVersion ""
10+
11+
defaultConfig {
12+
multiDexEnabled true
13+
minSdkVersion 17
14+
// targetSdkVersion 32
15+
16+
// Version Information
17+
versionCode 1
18+
versionName "1.0.0"
19+
20+
generatedDensities = []
21+
}
22+
23+
aaptOptions {
24+
additionalParameters "--no-version-vectors"
25+
}
26+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// this configurations is loaded before building plugins, as well as before building
2+
// the app - this is where you can apply global settings and overrides
3+
4+
project.ext {
5+
// androidXAppCompat = "1.4.1"
6+
// androidXExifInterface = "1.3.3"
7+
// androidXFragment = "1.4.1"
8+
// androidXMaterial = "1.5.0"
9+
androidXMultidex = "2.0.1"
10+
// androidXTransition = "1.4.1"
11+
// androidXViewPager = "1.0.0"
12+
13+
// useKotlin = true
14+
// kotlinVersion = "1.6.0"
15+
}

0 commit comments

Comments
 (0)