diff --git a/.migration_backup/_backup.json b/.migration_backup/_backup.json deleted file mode 100644 index 41e01e73..00000000 --- a/.migration_backup/_backup.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "migration", - "paths": [ - "package.json", - "package-lock.json" - ] -} \ No newline at end of file diff --git a/.migration_backup/package.json b/.migration_backup/package.json deleted file mode 100644 index 6d9520c6..00000000 --- a/.migration_backup/package.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "name": "nativescript-plugin-appsflyer", - "version": "6.12.1", - "description": "Appsflyer SDK for NativeScript applications", - "main": "appsflyer", - "typings": "index.d.ts", - "nativescript": { - "platforms": { - "android": "7.0.0", - "ios": "7.0.0" - } - }, - "scripts": { - "build": "tsc", - "buildall": "tsc; tns build", - "demo.ios.build": "cd demoNative; tns build ios; tns run ios;", - "demo.ios": "npm run preparedemo; cd demoNative; tns run ios", - "demo.ios.watch.sim": "npm run preparedemo; cd demoNative; tns livesync ios --emulator --watch", - "demo.ios.watch": "npm run preparedemo; cd demoNative; tns livesync ios --watch", - "demo.debug.i": "cd demoNative; tns debug ios", - "demo.android": "npm run preparedemo; cd demoNative; tns run android", - "demo.debug.a": "cd demoNative; tns debug android", - "demo.android.watch": "npm run preparedemo; cd demoNative; tns livesync android --emulator --watch", - "run.android": "npm run preparedemo; cd demoNative; tns run android", - "ra": "cd demoNative; tns run android", - "riw": "cd demoNative; tns livesync ios --watch", - "raw": "cd demoNative; tns livesync android --watch", - "preparedemo": "npm run build; cd demoNative; tns plugin remove nativescript-plugin-appsflyer; tns plugin add ..; tns install; npm run setup", - "setup": "cd demoNative; npm install; cd ..; npm i; ts-patch install; npm run build; cd demoNative; tns plugin add ..; cd ..", - "prepack": "tsc" - }, - "repository": { - "type": "git", - "url": "https://github.com/AppsFlyerSDK/nativescript-plugin-appsflyer.git" - }, - "keywords": [ - "appsflyer", - "nativescript" - ], - "author": "Appsflyer / Maxim Shoustin", - "license": { - "type": "MIT", - "url": "https://github.com/AppsFlyerSDK/nativescript-plugin-appsflyer/blob/master/LICENSE" - }, - "bugs": { - "url": "https://github.com/AppsFlyerSDK/nativescript-plugin-appsflyer/issues" - }, - "homepage": "https://github.com/AppsFlyerSDK/nativescript-plugin-appsflyer#readme", - "devDependencies": { - "@nativescript/core": ">=7.0.0", - "@nativescript/ios": ">=7.0.0", - "@nativescript/types": ">=7.0.0", - "@nativescript/webpack": "~4.1.0", - "ts-patch": "~1.3.1", - "typescript": "~3.9.0" - }, - "peerDependencies": { - "@nativescript/core": ">=7.0.0" - }, - "dependencies": { - "ts-node": "~9.1.1" - } -} diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 68347dd2..00000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - - { - "name": "Launch on iOS", - "type": "nativescript", - "request": "launch", - "platform": "ios", - "appRoot": "${workspaceRoot}/demoNative", - "sourceMaps": true, - "watch": true - }, - ] -} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 3fe19b64..00000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "NativescriptExtend.fileAssociations": [ - { - "systemId": "/Users/gabrielmandler/Desktop/appsflyer-nativescript-plugin/schema/tns.xsd", - "pattern": "**/**/*.xml" - }, - { - "systemId": "http://www.w3.org/2001/XMLSchema.xsd", - "pattern": "/Users/gabrielmandler/Desktop/appsflyer-nativescript-plugin/schema/tns.xsd" - } - ], - "files.exclude": { - "schema": true - }, - "NativescriptExtend.format.enabled": true, - "NativescriptExtend.validation.enabled": true -} \ No newline at end of file diff --git a/af-logo.png b/af-logo.png deleted file mode 100644 index dae6f3af..00000000 Binary files a/af-logo.png and /dev/null differ diff --git a/appsflyer.android.d.ts b/appsflyer.android.d.ts index 89d75d36..b6c715bf 100644 --- a/appsflyer.android.d.ts +++ b/appsflyer.android.d.ts @@ -7,5 +7,5 @@ export declare const generateInviteUrl: (args: AppsFlyerLinkGeneratorArgs) => Pr export declare const stop: (isStopped: bool) => Promise; export declare const setSharingFilter: (partners: Array) => Promise; export declare const setSharingFilterForAllPartners: () => Promise; -export declare const _toHashMap: (obj: Object) => javautilHashMap; +export declare const _toHashMap: (obj: Object) => any; export declare const _toValue: (val: any) => any; diff --git a/appsflyer.android.ts b/appsflyer.android.ts index 7dcaa239..362b34f6 100644 --- a/appsflyer.android.ts +++ b/appsflyer.android.ts @@ -285,14 +285,14 @@ export const generateInviteUrl = function (args: AppsFlyerLinkGeneratorArgs) { const listener: com.appsflyer.CreateOneLinkHttpTask.ResponseListener = new com.appsflyer.CreateOneLinkHttpTask.ResponseListener({ _successCallback: args.onSuccess, _failureCallback: args.onError, - onResponse(): void { + onResponse(oneLinkUrl): void { if (!this._successCallback) { return; } if (typeof this._successCallback === 'function') { try { - this._successCallback(args); - printLogs("generateInviteUrl success: " + JSON.stringify(args)); + this._successCallback(oneLinkUrl); + printLogs("generateInviteUrl success: " + JSON.stringify(oneLinkUrl)); } catch (e) { printLogs(`generateInviteUrl Error: ${e}`); } @@ -331,13 +331,7 @@ export const generateInviteUrl = function (args: AppsFlyerLinkGeneratorArgs) { }); }; function isEmpty(obj) { - for (const prop in obj) { - if (Object.hasOwn(obj, prop)) { - return false; - } - } - - return true; + return Object.entries(obj).length < 1 } export const stop = function (isStopped: bool) { diff --git a/appsflyer.ios.ts b/appsflyer.ios.ts index 2b61b3d6..1efd82ee 100644 --- a/appsflyer.ios.ts +++ b/appsflyer.ios.ts @@ -229,13 +229,7 @@ const generateInviteUrl = function (args: AppsFlyerLinkGeneratorArgs) { }; function isEmpty(obj) { - for (const prop in obj) { - if (Object.hasOwn(obj, prop)) { - return false; - } - } - - return true; + return Object.entries(obj).length < 1 } @NativeClass diff --git a/demoNative/.editorconfig b/demoNative/.editorconfig deleted file mode 100644 index 84ba4fa6..00000000 --- a/demoNative/.editorconfig +++ /dev/null @@ -1,19 +0,0 @@ -root = true - -[*] -end_of_line = lf -insert_final_newline = true -trim_trailing_whitespace = true -charset = utf-8 - -[*.json] -indent_style = space -indent_size = 2 - -[*.js] -indent_style = space -indent_size = 2 - -[*.ts] -indent_style = space -indent_size = 2 \ No newline at end of file diff --git a/demoNative/App_Resources/Android/app.gradle b/demoNative/App_Resources/Android/app.gradle deleted file mode 100644 index 6ff493db..00000000 --- a/demoNative/App_Resources/Android/app.gradle +++ /dev/null @@ -1,26 +0,0 @@ -// You can add your native dependencies here -dependencies { - implementation 'androidx.multidex:multidex:2.0.1' -} - -android { - // compileSdkVersion 32 - // buildToolsVersion "32.0.0" - // ndkVersion "" - - defaultConfig { - multiDexEnabled true - minSdkVersion 17 - // targetSdkVersion 32 - - // Version Information - versionCode 1 - versionName "1.0.0" - - generatedDensities = [] - } - - aaptOptions { - additionalParameters "--no-version-vectors" - } -} diff --git a/demoNative/App_Resources/Android/before-plugins.gradle b/demoNative/App_Resources/Android/before-plugins.gradle deleted file mode 100644 index 9e9cc715..00000000 --- a/demoNative/App_Resources/Android/before-plugins.gradle +++ /dev/null @@ -1,15 +0,0 @@ -// this configurations is loaded before building plugins, as well as before building -// the app - this is where you can apply global settings and overrides - -project.ext { - // androidXAppCompat = "1.4.1" - // androidXExifInterface = "1.3.3" - // androidXFragment = "1.4.1" - // androidXMaterial = "1.5.0" - androidXMultidex = "2.0.1" - // androidXTransition = "1.4.1" - // androidXViewPager = "1.0.0" - - // useKotlin = true - // kotlinVersion = "1.6.0" -} diff --git a/demoNative/App_Resources/Android/src/main/AndroidManifest.xml b/demoNative/App_Resources/Android/src/main/AndroidManifest.xml deleted file mode 100644 index 576ad6fc..00000000 --- a/demoNative/App_Resources/Android/src/main/AndroidManifest.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/demoNative/App_Resources/Android/src/main/res/drawable-hdpi/background.png b/demoNative/App_Resources/Android/src/main/res/drawable-hdpi/background.png deleted file mode 100644 index bbefbf42..00000000 Binary files a/demoNative/App_Resources/Android/src/main/res/drawable-hdpi/background.png and /dev/null differ diff --git a/demoNative/App_Resources/Android/src/main/res/drawable-hdpi/logo.png b/demoNative/App_Resources/Android/src/main/res/drawable-hdpi/logo.png deleted file mode 100644 index e788deb3..00000000 Binary files a/demoNative/App_Resources/Android/src/main/res/drawable-hdpi/logo.png and /dev/null differ diff --git a/demoNative/App_Resources/Android/src/main/res/drawable-ldpi/background.png b/demoNative/App_Resources/Android/src/main/res/drawable-ldpi/background.png deleted file mode 100644 index f6a08eea..00000000 Binary files a/demoNative/App_Resources/Android/src/main/res/drawable-ldpi/background.png and /dev/null differ diff --git a/demoNative/App_Resources/Android/src/main/res/drawable-ldpi/logo.png b/demoNative/App_Resources/Android/src/main/res/drawable-ldpi/logo.png deleted file mode 100644 index e4cac1ad..00000000 Binary files a/demoNative/App_Resources/Android/src/main/res/drawable-ldpi/logo.png and /dev/null differ diff --git a/demoNative/App_Resources/Android/src/main/res/drawable-mdpi/background.png b/demoNative/App_Resources/Android/src/main/res/drawable-mdpi/background.png deleted file mode 100644 index 0c90f0f7..00000000 Binary files a/demoNative/App_Resources/Android/src/main/res/drawable-mdpi/background.png and /dev/null differ diff --git a/demoNative/App_Resources/Android/src/main/res/drawable-mdpi/logo.png b/demoNative/App_Resources/Android/src/main/res/drawable-mdpi/logo.png deleted file mode 100644 index ce3c3a4b..00000000 Binary files a/demoNative/App_Resources/Android/src/main/res/drawable-mdpi/logo.png and /dev/null differ diff --git a/demoNative/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml b/demoNative/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml deleted file mode 100644 index ada77f92..00000000 --- a/demoNative/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/demoNative/App_Resources/Android/src/main/res/drawable-xhdpi/background.png b/demoNative/App_Resources/Android/src/main/res/drawable-xhdpi/background.png deleted file mode 100644 index 3541570c..00000000 Binary files a/demoNative/App_Resources/Android/src/main/res/drawable-xhdpi/background.png and /dev/null differ diff --git a/demoNative/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png b/demoNative/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png deleted file mode 100644 index 88267df0..00000000 Binary files a/demoNative/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png and /dev/null differ diff --git a/demoNative/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png b/demoNative/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png deleted file mode 100644 index abb0fc70..00000000 Binary files a/demoNative/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png and /dev/null differ diff --git a/demoNative/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png b/demoNative/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png deleted file mode 100644 index 55800c9a..00000000 Binary files a/demoNative/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png and /dev/null differ diff --git a/demoNative/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png b/demoNative/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png deleted file mode 100644 index 10897752..00000000 Binary files a/demoNative/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png and /dev/null differ diff --git a/demoNative/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png b/demoNative/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png deleted file mode 100644 index 0703f90f..00000000 Binary files a/demoNative/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png and /dev/null differ diff --git a/demoNative/App_Resources/Android/src/main/res/drawable/ic_launcher_foreground.xml b/demoNative/App_Resources/Android/src/main/res/drawable/ic_launcher_foreground.xml deleted file mode 100644 index fd826a31..00000000 --- a/demoNative/App_Resources/Android/src/main/res/drawable/ic_launcher_foreground.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - diff --git a/demoNative/App_Resources/Android/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/demoNative/App_Resources/Android/src/main/res/mipmap-anydpi-v26/ic_launcher.xml deleted file mode 100644 index 7353dbd1..00000000 --- a/demoNative/App_Resources/Android/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/demoNative/App_Resources/Android/src/main/res/mipmap-hdpi/ic_launcher.png b/demoNative/App_Resources/Android/src/main/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index 69948d22..00000000 Binary files a/demoNative/App_Resources/Android/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ diff --git a/demoNative/App_Resources/Android/src/main/res/mipmap-mdpi/ic_launcher.png b/demoNative/App_Resources/Android/src/main/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index 90a58cd7..00000000 Binary files a/demoNative/App_Resources/Android/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ diff --git a/demoNative/App_Resources/Android/src/main/res/mipmap-xhdpi/ic_launcher.png b/demoNative/App_Resources/Android/src/main/res/mipmap-xhdpi/ic_launcher.png deleted file mode 100644 index 70a2a0d0..00000000 Binary files a/demoNative/App_Resources/Android/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ diff --git a/demoNative/App_Resources/Android/src/main/res/mipmap-xxhdpi/ic_launcher.png b/demoNative/App_Resources/Android/src/main/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index 1ee5a941..00000000 Binary files a/demoNative/App_Resources/Android/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/demoNative/App_Resources/Android/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/demoNative/App_Resources/Android/src/main/res/mipmap-xxxhdpi/ic_launcher.png deleted file mode 100644 index 66e9d4bb..00000000 Binary files a/demoNative/App_Resources/Android/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ diff --git a/demoNative/App_Resources/Android/src/main/res/values-v21/colors.xml b/demoNative/App_Resources/Android/src/main/res/values-v21/colors.xml deleted file mode 100644 index da5ca2fe..00000000 --- a/demoNative/App_Resources/Android/src/main/res/values-v21/colors.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/demoNative/App_Resources/Android/src/main/res/values-v21/styles.xml b/demoNative/App_Resources/Android/src/main/res/values-v21/styles.xml deleted file mode 100644 index 04d8a065..00000000 --- a/demoNative/App_Resources/Android/src/main/res/values-v21/styles.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/demoNative/App_Resources/Android/src/main/res/values-v29/styles.xml b/demoNative/App_Resources/Android/src/main/res/values-v29/styles.xml deleted file mode 100644 index 9a2a79d5..00000000 --- a/demoNative/App_Resources/Android/src/main/res/values-v29/styles.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/demoNative/App_Resources/Android/src/main/res/values/colors.xml b/demoNative/App_Resources/Android/src/main/res/values/colors.xml deleted file mode 100644 index 78c4a519..00000000 --- a/demoNative/App_Resources/Android/src/main/res/values/colors.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - #F5F5F5 - - - #757575 - - - #65ADF1 - - - - diff --git a/demoNative/App_Resources/Android/src/main/res/values/ic_launcher_background.xml b/demoNative/App_Resources/Android/src/main/res/values/ic_launcher_background.xml deleted file mode 100644 index c5d5899f..00000000 --- a/demoNative/App_Resources/Android/src/main/res/values/ic_launcher_background.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - #FFFFFF - \ No newline at end of file diff --git a/demoNative/App_Resources/Android/src/main/res/values/styles.xml b/demoNative/App_Resources/Android/src/main/res/values/styles.xml deleted file mode 100644 index 4f91b610..00000000 --- a/demoNative/App_Resources/Android/src/main/res/values/styles.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 1a8b0e64..00000000 --- a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "images" : [ - { - "size" : "20x20", - "idiom" : "iphone", - "filename" : "icon-20@2x.png", - "scale" : "2x" - }, - { - "size" : "20x20", - "idiom" : "iphone", - "filename" : "icon-20@3x.png", - "scale" : "3x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "icon-29.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "icon-29@2x.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "icon-29@3x.png", - "scale" : "3x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "icon-40@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "icon-40@3x.png", - "scale" : "3x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "icon-60@2x.png", - "scale" : "2x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "icon-60@3x.png", - "scale" : "3x" - }, - { - "size" : "20x20", - "idiom" : "ipad", - "filename" : "icon-20.png", - "scale" : "1x" - }, - { - "size" : "20x20", - "idiom" : "ipad", - "filename" : "icon-20@2x.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "icon-29.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "icon-29@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "icon-40.png", - "scale" : "1x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "icon-40@2x.png", - "scale" : "2x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "icon-76.png", - "scale" : "1x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "icon-76@2x.png", - "scale" : "2x" - }, - { - "size" : "83.5x83.5", - "idiom" : "ipad", - "filename" : "icon-83.5@2x.png", - "scale" : "2x" - }, - { - "size" : "1024x1024", - "idiom" : "ios-marketing", - "filename" : "icon-1024.png", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png b/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png deleted file mode 100644 index b46c8bb2..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png b/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png deleted file mode 100644 index d73288a7..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png b/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png deleted file mode 100644 index c8d24cdc..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png b/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png deleted file mode 100644 index 1b00c848..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png b/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png deleted file mode 100644 index 72a16410..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png b/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png deleted file mode 100644 index 05ab752b..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png b/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png deleted file mode 100644 index ee720825..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png b/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png deleted file mode 100644 index 2859288b..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png b/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png deleted file mode 100644 index 88824fa7..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png b/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png deleted file mode 100644 index 02a930cc..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png b/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png deleted file mode 100644 index d7b077f1..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png b/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png deleted file mode 100644 index 2f872dd4..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png b/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png deleted file mode 100644 index 7fb23a70..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png b/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png deleted file mode 100644 index cb04c367..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png b/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png deleted file mode 100644 index e882226b..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/Contents.json b/demoNative/App_Resources/iOS/Assets.xcassets/Contents.json deleted file mode 100644 index da4a164c..00000000 --- a/demoNative/App_Resources/iOS/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json b/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json deleted file mode 100644 index ab5edd0c..00000000 --- a/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "LaunchScreen-AspectFill.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "LaunchScreen-AspectFill@2x.png", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "LaunchScreen-AspectFill@3x.png", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png b/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png deleted file mode 100644 index cb35cfae..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png b/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png deleted file mode 100644 index 6eefb9a7..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png b/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png deleted file mode 100644 index 0ef51020..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json b/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json deleted file mode 100644 index 444d7152..00000000 --- a/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "LaunchScreen-Center.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "LaunchScreen-Center@2x.png", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "LaunchScreen-Center@3x.png", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png b/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png deleted file mode 100644 index 280c30e0..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png b/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png deleted file mode 100644 index f984b9e4..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png b/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png deleted file mode 100644 index 95d86f3f..00000000 Binary files a/demoNative/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png and /dev/null differ diff --git a/demoNative/App_Resources/iOS/Info.plist b/demoNative/App_Resources/iOS/Info.plist deleted file mode 100644 index dbb02ee2..00000000 --- a/demoNative/App_Resources/iOS/Info.plist +++ /dev/null @@ -1,49 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleDisplayName - ${PRODUCT_NAME} - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - NSUserTrackingUsageDescription - permission - UIRequiresFullScreen - - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/demoNative/App_Resources/iOS/LaunchScreen.storyboard b/demoNative/App_Resources/iOS/LaunchScreen.storyboard deleted file mode 100644 index c4e5a3f3..00000000 --- a/demoNative/App_Resources/iOS/LaunchScreen.storyboard +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/demoNative/App_Resources/iOS/build.xcconfig b/demoNative/App_Resources/iOS/build.xcconfig deleted file mode 100644 index ee34b7ed..00000000 --- a/demoNative/App_Resources/iOS/build.xcconfig +++ /dev/null @@ -1,8 +0,0 @@ -// You can add custom settings here -// for example you can uncomment the following line to force distribution code signing -// CODE_SIGN_IDENTITY = iPhone Distribution -// To build for device with XCode you need to specify your development team. -// DEVELOPMENT_TEAM = YOUR_TEAM_ID; -ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - -DEVELOPMENT_TEAM = 6UQAD4B3U2 diff --git a/demoNative/README.md b/demoNative/README.md deleted file mode 100644 index 165e0c91..00000000 --- a/demoNative/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# NativeScript TypeScript Template - -This template creates a NativeScript app with the NativeScript hello world example, -however, in this template the example is built with TypeScript. - -You can create a new app that uses this template with either the `--template` option. - -``` -ns create my-hello-world-ts --template @nativescript/template-hello-world-ts -``` - -Or the `--tsc` shorthand. - -``` -ns create my-hello-world-ts --tsc -``` - -> Note: Both commands will create a new NativeScript app that uses the latest version of this template published to [npm](https://www.npmjs.com/package/@nativescript/template-hello-world-ts). - -If you want to create a new app that uses the source of the template from the `master` branch, you can execute the following: - -``` -# clone nativescript-app-templates monorepo locally -git clone git@github.com:NativeScript/nativescript-app-templates.git - -# create app template from local source (all templates are in the 'packages' subfolder of the monorepo) -ns create my-hello-world-ts --template nativescript-app-templates/packages/template-hello-world-ts -``` - -## Get Help -The NativeScript framework has a vibrant community that can help when you run into problems. - -Try [joining the NativeScript community Discord](https://nativescript.org/discord). The Discord channel is a great place to get help troubleshooting problems, as well as connect with other NativeScript developers. - -If you have found an issue with this template, please report the problem in the [NativeScript repository](https://github.com/NativeScript/NativeScript/issues). - -## Contributing - -We love PRs, and accept them gladly. Feel free to propose changes and new ideas. We will review and discuss, so that they can be accepted and better integrated. diff --git a/demoNative/app/app-root.xml b/demoNative/app/app-root.xml deleted file mode 100644 index 54e70d97..00000000 --- a/demoNative/app/app-root.xml +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/demoNative/app/app.css b/demoNative/app/app.css deleted file mode 100644 index 14de4823..00000000 --- a/demoNative/app/app.css +++ /dev/null @@ -1,6 +0,0 @@ -@import '@nativescript/theme/css/core.css'; -@import '@nativescript/theme/css/default.css'; - -Button.-primary { - font-size: 18; -} diff --git a/demoNative/app/app.ts b/demoNative/app/app.ts deleted file mode 100644 index fa8ef2b6..00000000 --- a/demoNative/app/app.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* -In NativeScript, the app.ts file is the entry point to your application. -You can use this file to perform app-level initialization, but the primary -purpose of the file is to pass control to the app’s first module. -*/ - -import { Application } from '@nativescript/core' -import { CustomAppDelegate } from "./custom-app-delegate"; - -if (Application.ios) { - Application.ios.delegate = CustomAppDelegate; -} -Application.run({ moduleName: 'app-root' }) - -/* -Do not place any code after the application has been started as it will not -be executed on iOS. -*/ diff --git a/demoNative/app/custom-app-delegate.android.ts b/demoNative/app/custom-app-delegate.android.ts deleted file mode 100644 index 078426a6..00000000 --- a/demoNative/app/custom-app-delegate.android.ts +++ /dev/null @@ -1 +0,0 @@ -// \ No newline at end of file diff --git a/demoNative/app/custom-app-delegate.ios.ts b/demoNative/app/custom-app-delegate.ios.ts deleted file mode 100644 index 9b1592e9..00000000 --- a/demoNative/app/custom-app-delegate.ios.ts +++ /dev/null @@ -1,32 +0,0 @@ -@NativeClass() -export class CustomAppDelegate extends UIResponder implements UIApplicationDelegate{ - public static ObjCProtocols = [UIApplicationDelegate]; - - applicationDidBecomeActive(application: UIApplication): void { - if(parseFloat(UIDevice.currentDevice.systemVersion) >= 14){ - console.log("iOS 14"); - ATTrackingManager.requestTrackingAuthorizationWithCompletionHandler((status) => { - }); - } - } - - applicationOpenURLOptions(application: UIApplication, urlOptions: NSURL, options: NSDictionary): boolean { - console.log("applicationOpenURLOptions"); - AppsFlyerLib.shared().handleOpenUrlOptions(urlOptions, options); - return true; - } - - // Open URI-scheme for iOS 8 and below - applicationOpenURLSourceApplicationAnnotation(application: UIApplication, url: NSURL, sourceApplication: string, annotation: any): boolean { - console.log("applicationOpenURLSourceApplicationAnnotation"); - AppsFlyerLib.shared().handleOpenURLSourceApplicationWithAnnotation(url, sourceApplication, annotation); - return true; - } - // Open Universal Links - applicationContinueUserActivityRestorationHandler?(application: UIApplication, userActivity: NSUserActivity, restorationHandler: (p1: NSArray) => void): boolean{ - console.log("applicationContinueUserActivityRestorationHandler"); - AppsFlyerLib.shared().continueUserActivityRestorationHandler(userActivity, restorationHandler); - return true; - } -}; - diff --git a/demoNative/app/main-page.ts b/demoNative/app/main-page.ts deleted file mode 100644 index 63c2d76e..00000000 --- a/demoNative/app/main-page.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EventData, Page } from '@nativescript/core' -import { HelloWorldModel } from './main-view-model' - -export function navigatingTo(args: EventData) { - const page = args.object - page.bindingContext = new HelloWorldModel() -} diff --git a/demoNative/app/main-page.xml b/demoNative/app/main-page.xml deleted file mode 100644 index 4a007d8f..00000000 --- a/demoNative/app/main-page.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - -