Code Monkey home page Code Monkey logo

cordova-build-architecture's Introduction

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:

<plugin name="cordova-build-architecture" spec="https://github.com/MBuchalik/cordova-build-architecture.git#v1.0.4" source="git" />

By default, it will try to produce arm builds only. If you want to target x86, add the following preference:

<preference name="buildArchitecture" value="x86" />

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:

<preference name="xwalk64bit" value="true" />

If you want to fetch the 64 bit arm build, simply use use

<preference name="buildArchitecture" value="arm64" />

For the 64 bit x86 build, you have to specify the following value:

<preference name="buildArchitecture" value="x86_64" />

Summary

The following values can be used in our buildArchitecture preference:

target platform value should the xwalk64bit preference be set (to true)?
arm arm
arm: 64 bit arm64
x86 x86
x86: 64 bit x86_64

Please note that this plugin is experimental.

cordova-build-architecture's People

Contributors

mbtests avatar mbuchalik avatar vinceops avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.