Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mbuchalik/cordova-build-architecture
Force Cordova to build for arm or x86
https://github.com/mbuchalik/cordova-build-architecture
cordova phonegap-build
Last synced: 3 days ago
JSON representation
Force Cordova to build for arm or x86
- Host: GitHub
- URL: https://github.com/mbuchalik/cordova-build-architecture
- Owner: MBuchalik
- License: mit
- Created: 2016-05-05T07:59:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-19T15:57:42.000Z (over 5 years ago)
- Last Synced: 2024-10-14T02:36:52.028Z (3 months ago)
- Topics: cordova, phonegap-build
- Homepage:
- Size: 11.7 KB
- Stars: 34
- Watchers: 5
- Forks: 24
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cordova-build-architecture
This plugin allows you to build your application for arm (or x86) only.
# Why?
Plugins like cordova-plugin-crosswalk-webview (https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview) create two or more .apk files with one build. On Phonegap Build, you can only download one file which leads to problems if you want to get access to the other .apks.Also, the Crosswalk plugin sometimes creates a combined arm/x86 file on Phonegap Build even if you set the preference *xwalkMultipleApk* to *true*.
Maybe you simply need to build for one architecture because of other reasons? This plugin might help you :-)
# Usage
Include this plugin in your config.xml:
```xml```
By default, it will try to produce arm builds only. If you want to target x86, add the following preference:
```xml```
## Advanced configuration
Crosswalk also allows you to generate 64 bit builds. This is usually done via a command line parameter, but also seems to be possible using the following preference:
```xml```
If you want to fetch the 64 bit arm build, simply use use
```xml```
For the 64 bit x86 build, you have to specify the following value:
```xml```
## Summary
The following values can be used in our ```buildArchitecture``` preference:| target platform | value | should the xwalk64bit preference be set (to true)? |
| -------- | ----- | ----------------------------- |
| arm | arm | :x: |
| arm: 64 bit | arm64 | :white_check_mark: |
| x86 | x86 | :x: |
| x86: 64 bit | x86_64 | :white_check_mark: |**Please note that this plugin is experimental.**