AndroidApk

Android application package. More...

Inherits:

Product

Properties

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

assetsDir : path

The base directory for Android assets.

Note: Android requires that the file name of this directory is always "assets".

Default: "assets"


automaticSources : bool

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


manifestFile : path

The file path to the Android manifest file.

Note: Android requires that the file name is always "AndroidManifest.xml".

Default: "AndroidManifest.xml"


packageName : string

The package name as given in the manifest file.

Default: name


resourcesDir : path

The base directory for Android resources.

Note: Android requires that the file name of this directory is always "res".

Default: "res"


sourcesDir : path

The base directory for Java sources. This property is only relevant if automaticSources is enabled.

Default: "src"