From 2d9842be4525cbeae25cecd8297b6a47a97a13d4 Mon Sep 17 00:00:00 2001 From: Paul Stresow Date: Fri, 9 Nov 2018 18:02:44 +0100 Subject: [PATCH] as always I forgot to add them files... --- README.md | 22 ++++++++++++++++++ package.json | 29 ++++++++++++++++++++++++ plugin.xml | 25 ++++++++++++++++++++ scripts/apply.js | 1 + src/android/build-extras.gradle.template | 7 ++++++ 5 files changed, 84 insertions(+) create mode 100644 README.md create mode 100644 package.json create mode 100644 plugin.xml create mode 100644 scripts/apply.js create mode 100644 src/android/build-extras.gradle.template diff --git a/README.md b/README.md new file mode 100644 index 0000000..fa4f09d --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# About + +This plugin adds a gradle file to your android project. Depending on your configuration it causes your build to have only your specified ABI libraries. + +## Install + +````bash +cordova plugin add cordova-plugin-abi-filter +```` + +or + +````bash +cordova plugin add https://github.com/Ponsen/cordova-plugin-abi-filter.git +```` + +## Configuration + + +## Notes + +"Mips"/"armeabi" support was removed in NDK r17. \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..5c8a54f --- /dev/null +++ b/package.json @@ -0,0 +1,29 @@ +{ + "name": "cordova-plugin-abi-filter", + "version": "1.0.0", + "description": "Specify supported platform ABIs for your android build", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Ponsen/cordova-plugin-abi-filter.git" + }, + "keywords": [ + "ecosystem:cordova", + "cordova-android", + "build", + "abi", + "armeabi", + "armeabi-v7a", + "arm64-v8a", + "x86", + "x86_64" + ], + "author": "Paul Stresow", + "license": "Apache 2.0", + "bugs": { + "url": "https://github.com/Ponsen/cordova-plugin-abi-filter/issues" + }, + "homepage": "https://github.com/Ponsen/cordova-plugin-abi-filter#readme" +} diff --git a/plugin.xml b/plugin.xml new file mode 100644 index 0000000..b50fba0 --- /dev/null +++ b/plugin.xml @@ -0,0 +1,25 @@ + + + + cordova-plugin-abi-filter + Filter desired platform ABIs from your project build. + Apache 2.0 License + Paul Stresow + cordova,android,build,abi,armeabi,armeabi-v7a,arm64-v8a,x86,x86_64 + + + + + + + + + + + + + + + diff --git a/scripts/apply.js b/scripts/apply.js new file mode 100644 index 0000000..ea64188 --- /dev/null +++ b/scripts/apply.js @@ -0,0 +1 @@ +//TODO \ No newline at end of file diff --git a/src/android/build-extras.gradle.template b/src/android/build-extras.gradle.template new file mode 100644 index 0000000..189afdf --- /dev/null +++ b/src/android/build-extras.gradle.template @@ -0,0 +1,7 @@ +android { + defaultConfig { + ndk { + abiFilters {{ABI_FILTER}} + } + } +} \ No newline at end of file