![]() android.productFlavors.$flavor.versionCode - defaults to $.android.productFlavors.$flavor.packageName - defaults to that specified in src/main/AndroidManifest.xml.- defaults to that specified in src/main/AndroidManifest.xml.Have a look at the tests/basic/adle build file and other projects in tests customized/adle to see the DSL in action. You can configure these locations by configuring the associated source set provided by the android extension.Ĭompile time dependencies are declared in the usual way. src/test$ProductFlavor/java - Test source to be include for the test application for the given product flavor.src/test/java - Test source to be included in all test applications. ![]() src/$ProductFlavor/res - Resources to be included in all application variants with the given product flavor.src/$ProductFlavor/java - Resources to be included in all application variants with the given product flavor.src/$BuildType/res - Java source to be included in all application variants with the given build type.src/$BuildType/java - Java source to be included in all application variants with the given build type.`src/main/AndroidManifest.xml' - The application manifest (currently shared by all application variants).src/main/res - Resources to be included in all application variants.src/main/java - Java source to be included in all application variants.The plugin will also define the following source directories: Flavor settings override the default config.įrom this, the plugin will add the appropriate tasks to build each combination of build type and product flavor. If you do not define any flavors for your product, only the values from the default config are used. There are 2 predefined build types, called release and debug. ![]() For example, a free or a paid-for flavour. This lets you configure default values for your application. The plugin adds several concepts to the Gradle DSL, all in the android extension: ![]() The official Gradle plugin to build Android applications. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |