Quantcast
Channel: Android*
Viewing all articles
Browse latest Browse all 531

Intel® XDK "Cordova for Android" Build Options

$
0
0

The Intel® XDK "Cordova for Android" build system requires a special configuration file in your project source directory to direct the build process. The Cordova build option is based on the open source Apache* Cordova CLI build system. When you use the Cordova build option your application project files are submitted to the Intel XDK build server where a Cordova CLI system is hosted and maintained, there is no need to install the open source Cordova CLI system on your workstation.

The following intelxdk.config.xml options pertain only to Android builds. They will not affect builds for other target platforms. It is perfectly okay to include these options in your build config file when submitting a build for other platform targets (such as iOS and Windows Phone 8). These options will be ignored when building for those other targets. Thus, you only need a single intelxdk.config.xml build config file for your project, regardless of the number of Cordova targets you intend to build for.

NOTE: the "Crosswalk for Android" build system is also a Cordova build target but does not currently support the use of the intelxdk.config.xml build config file. An interactive build configuration page is provided for that purpose.

For detailed information regarding the structure and contents of the intelxdk.config.xml file please read Using the Intel XDK “Cordova for *” Build Option article.

android-minSdkVersion
Specifies the minimum required Android operating system version on which the application will install and run. For best results it is recommended that you specify Android 2.3.3 or higher (Android 2.3.3 = 10), this value is the default if no minimum is provided.
<preference name="android-minSdkVersion" value="<N>" />
<N> is a number representing the minimum supported Android version.
android-targetedSdkVersion
Specifies the targeted Android operating system. This is the version of Android you have tested against and will be used by the operating system to insure that future versions of your application continue to run by observing compatibility behaviors.
<preference name="android-targetedSdkVersion" value="<N>" />
<N> is a number representing the targeted (tested) Android version.
android-installLocation
Specifies where the application can be installed (internal memory, external memory, sdcard, etc.).
<preference name="android-installLocation" value="<LOCATION>" />
<LOCATION> indicates where the application can be installed.
android-windowSoftInputMode
Specifies how the application interacts with the on-screen soft keyboard.
<preference name="android-windowSoftInputMode" value="<INPUTMODE>" />
<INPUTMODE> determines the state and features of the keyboard.
android-permission
For adding application device permissions.
<preference name="android-permission" value="<PERMISSION"> />
<PERMISSION> is the permission identifier. The list of valid permissions may vary depending on the version of the Android operating system that is targeted. See the Manifest Permission List on the Android Developer site for valid values.
android-signed
Allows you to indicate if the application will be signed (for distribution in the Android store).
<preference name="android-signed" value="<bool>" />
<bool> indicates whether the application should be signed. A value of "false" indicates the application will not be signed, and "true" indicates the application will be signed. The default is "true".

Viewing all articles
Browse latest Browse all 531


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>