mirror of
https://github.com/Ponsen/cordova-plugin-abi-filter.git
synced 2024-10-06 05:12:07 +08:00
as always I forgot to add them files...
This commit is contained in:
commit
2d9842be45
22
README.md
Normal file
22
README.md
Normal file
@ -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.
|
29
package.json
Normal file
29
package.json
Normal file
@ -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"
|
||||
}
|
25
plugin.xml
Normal file
25
plugin.xml
Normal file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
||||
id="cordova-plugin-abi-filter"
|
||||
version="1.0.0">
|
||||
|
||||
<name>cordova-plugin-abi-filter</name>
|
||||
<description>Filter desired platform ABIs from your project build.</description>
|
||||
<license>Apache 2.0 License</license>
|
||||
<author>Paul Stresow</author>
|
||||
<keywords>cordova,android,build,abi,armeabi,armeabi-v7a,arm64-v8a,x86,x86_64</keywords>
|
||||
<engines>
|
||||
<engine name="cordova" version=">=7.0.0" />
|
||||
</engines>
|
||||
|
||||
|
||||
<platform name="android">
|
||||
<preference name="ABI_FILTER" default="armeabi-v7a|armeabi-v8a|x86|x86_64" />
|
||||
|
||||
<!-- Changes placeholder variable in gradle file to the specified value and copies the changed template gradle to src/android/build-extras.gradle where cordova cli will copy it from -->
|
||||
<hook type="before_plugin_install" src="scripts/apply.js" />
|
||||
|
||||
<!-- File does not exist yet. it will be generated by previous hook -->
|
||||
<framework src="src/android/build-extras.gradle" custom="true" type="gradleReference" />
|
||||
</platform>
|
||||
</plugin>
|
1
scripts/apply.js
Normal file
1
scripts/apply.js
Normal file
@ -0,0 +1 @@
|
||||
//TODO
|
7
src/android/build-extras.gradle.template
Normal file
7
src/android/build-extras.gradle.template
Normal file
@ -0,0 +1,7 @@
|
||||
android {
|
||||
defaultConfig {
|
||||
ndk {
|
||||
abiFilters {{ABI_FILTER}}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user