diff --git a/src/package.json b/src/package.json index 7c7d345..6f5a504 100644 --- a/src/package.json +++ b/src/package.json @@ -12,7 +12,6 @@ "scripts": { "tsc": "npm i && tsc", "build": "npm run tsc", - "build.native": "node scripts/build-native.js", "tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\" --exclude \"**/platforms/**\"", "plugin.tscwatch": "npm run tsc -- -w", "demo.ios": "npm run build && cd ../demo && tns run ios --syncAllFiles --emulator", @@ -28,7 +27,7 @@ "clean": "npm run demo.reset && npx rimraf -- node_modules package-lock.json && npm i", "ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude '**/platforms/**'", "ngc": "ngc -p tsconfig.json", - "prepack": "npm i && npm run ngc && npm run build.native", + "prepack": "npm i && npm run ngc", "pack": "bash ../publish/pack.sh" }, "keywords": [ diff --git a/src/platforms/android/AndroidManifest.xml b/src/platforms/android/AndroidManifest.xml deleted file mode 100644 index 08f1f21..0000000 --- a/src/platforms/android/AndroidManifest.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - diff --git a/src/platforms/android/include.gradle b/src/platforms/android/include.gradle deleted file mode 100644 index 5e97269..0000000 --- a/src/platforms/android/include.gradle +++ /dev/null @@ -1,11 +0,0 @@ -/* Include.gradle configuration: http://docs.nativescript.org/plugins/plugins#includegradle-specification */ - -android { - -} - -dependencies { - // Describe plugin native Android dependencies like - // compile "groupName:pluginName:ver" - // EXAMPLE: compile "com.facebook.fresco:fresco:0.9.0+" -} \ No newline at end of file diff --git a/src/scripts/build-native.js b/src/scripts/build-native.js deleted file mode 100644 index 8a25a4d..0000000 --- a/src/scripts/build-native.js +++ /dev/null @@ -1,24 +0,0 @@ -const { exec } = require('child_process'); -const semver = require('semver'); - -exec('tns --version', (err, stdout, stderr) => { - if (err) { - // node couldn't execute the command - console.log(`tns --version err: ${err}`); - return; - } - - const tnsVersion = semver.major(stdout); - - // execute 'tns plugin build' for {N} version > 4. This command builds .aar in platforms/android folder. - if (tnsVersion >= 4) { - console.log(`executing 'tns plugin build'`); - exec('tns plugin build', (err, stdout, stderr) => { - if (err) { - // node couldn't execute the command - console.log(`${err}`); - return; - } - }); - } -});