AndroidApk QML Type
Android application package. More...
Import Statement: | import QbsConvenienceItems . |
Inherits: |
Properties
- assetsDir : path
- automaticSources : bool
- manifestFile : path
- packageName : string
- resourcesDir : path
- sourcesDir : path
Detailed Description
An AndroidApk item is a product of the type android.apk
that has a dependency on the Android.sdk module. The final build result is an Android application package (APK) file.
Here is what the project file could look like for the BasicMediaDecoder example that comes with the Android SDK:
import qbs AndroidApk { name: "Basic Media Decoder" packageName: "com.example.android.basicmediadecoder" property string sourcesPrefix: "Application/src/main/" resourcesDir: sourcesPrefix + "/res" sourcesDir: sourcesPrefix + "/java" manifestFile: sourcesPrefix + "/AndroidManifest.xml" }
Property Documentation
The base directory for Android assets.
Note: Android requires that the file name of this directory is always "assets"
.
Default: "assets"
If true
, Java sources as well as Android resources, assets, and the manifest file will be automatically included in the product via wildcards. Set this property to false
if you want to specify these files manually.
Default: true
The file path to the Android manifest file.
Note: Android requires that the file name is always "AndroidManifest.xml".
Default: "AndroidManifest.xml"
The base directory for Android resources.
Note: Android requires that the file name of this directory is always "res"
.
Default: "res"
The base directory for Java sources. This property is only relevant if automaticSources is enabled.
Default: "src"