Pro Your skills of Gradle use in Android Studio
Download 323.31 Kb.
|
signingConfigs: Contains information like key alias, alias password, keystore path etc.
Signing configs with gradle android (Example) A protip by itseranga about groovy, console, gradle, android, and signing. coderwall.com defaultConfig: It contains some properties like applicationId, minSdkVersion, targetSdkVersion, versionCode, versionName, multiDexEnables. applicationId: Its your package name for creating application, we require this tag, if you are creating library we didn’t use this tag. minSdkVersion: If we remember Eclipse IDE we create this entry in manifest file which prevent .apk to install below this version. Its now move to .gradle targetSdkVersion: SDK version used for development If you want to install same application more than one time this will only possible after changing versionCode and versionName . versionCode: Integer value used by playstore to check while uploading build, it must be greater than existing .apk in playstore. versionName: String value display to end user in App info section. defaultConfig { applicationId "xxx.xxxxxx.xxx" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode rootProject.ext.versionCode //client 2.0 versionName rootProject.ext.versionName // Enabling multidex support. multiDexEnabled true resConfigs "en", "fr","xhdpi"} lintOptions: To make changes on lint lintOptions { // set to true to turn off analysis progress reporting by lint quiet true // if true, stop the gradle build if errors are found abortOnError false // if true, only report errors ignoreWarnings true } buildTypes: It provides information regarding release and debug version of apk. minifyEnabled: It turns on proguard in android project, which is effective in reducing .apk size and make De-compilation difficult. proguardFiles: As enabling proguard remove some classes,methods so to keep these classes we make keep the tag in proguard-android.txt. shrinkResources: It is useful to remove unused resources from .apk like entries in res directory. buildTypes { debug { Download 323.31 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling