* override the defaultConfig block with their own settings. * This allows you to create different versions of your app that can * The productFlavors block is where you can configure multiple product flavors. ProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' MinifyEnabled true // Enables code shrinking for the release build type. * shrinking, using minifyEnabled, and specifies the Proguard settings file. * By default, Android Studio configures the release build type to enable code * build type applies Proguard settings and is not signed by default. * but it includes debugging tools and is signed with the debug key. * debug build type is not explicitly shown in the default build configuration, * By default, the build system defines two build types: debug and release. * The buildTypes block is where you can configure multiple build types. Defines a user-friendly version name for your app. Defines the version number of your app. Specifies the API level used to test the app. Defines the minimum API level required to run the app. * defined by the package attribute in the main/AndroidManifest.xml file. * However, your source code should still reference the package name * applicationId uniquely identifies the package for publishing. * these values for different versions of your app. You can configure product flavors to override * build variants, and can override some attributes in main/AndroidManifest.xml * The defaultConfig block encapsulates default settings and entries for all * This property is optional because the plugin uses a recommended version of * download the build tools using the SDK Manager. * utilities, and compiler that Gradle should use to build your app. * buildToolsVersion specifies the version of the SDK build tools, command-line This means your app can use the API features included in * compileSdkVersion specifies the Android API level Gradle should use to * The android block is where you configure all your Android-specific * Gradle to this build and makes the android block available to specify * The first line in the build configuration applies the Android plugin for Gradle and the Android plugin help you configure the following aspects of your build: /**
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |