This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
// Gradle 4.1 and higher include support for Google's Maven repo using | |
// the google() method. And you need to include this repo to download | |
// Android plugin 3.0.0 or higher. | |
google() | |
... | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:3.0.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
distributionUrl = https\://services.gradle.org/distributions/gradle-4.1-all.zip | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
defaultConfig { | |
manifestPlaceholders = [hostName:"www.example.com"] | |
... | |
} | |
buildTypes { | |
release { | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
... | |
defaultConfig {...} | |
buildTypes {...} | |
productFlavors { | |
demo { | |
applicationIdSuffix ".demo" | |
versionNameSuffix "-demo" | |
} | |
full { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
android { ... } | |
dependencies { | |
// Dependency on a local library module | |
compile project(":mylibrary") | |
// Dependency on local binaries | |
compile fileTree(dir: 'libs', include: ['*.jar']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
allprojects { | |
repositories { | |
jcenter() | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
... | |
defaultConfig { ... } | |
signingConfigs { | |
release { | |
storeFile file("my-release-key.jks") | |
storePassword "password" | |
keyAlias "my-alias" | |
keyPassword "password" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
buildTypes { | |
release { | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
} | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
... | |
buildTypes { | |
release { | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), | |
'proguard-rules.pro' | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
release { | |
minifyEnabled true | |
shrinkResources true | |
signingConfig signingConfigs.releaseConfig | |
proguardFiles getDefaultProguardFile('proguard-android.txt') | |
proguardFiles fileTree(dir: 'proguard', include: ['*.pro']).asList().toArray() | |
} |
OlderNewer