Skip to content

Instantly share code, notes, and snippets.

View rpradal's full-sized avatar

Rémi Pradal rpradal

View GitHub Profile
android {
resourcePrefix "my_lib_name_"
// Actual android gradle configuration
}
buildTypes {
release {
minifyEnabled true
// Rules to be used during the aar generation
proguardFiles 'proguard-pre-delivery-rules.pro'
// Rules appended to the integrating app
consumerProguardFiles 'proguard-library-rules.pro'
}
@rpradal
rpradal / build.gradle
Last active December 3, 2015 13:45
Build acceleration thanks to multi-dimensional flavors
android {
flavorDimensions "brandDimension", "speedDimension"
productFlavors {
// Flavors related to build speed
fastBuild {
minSdkVersion 21
dimension "speedDimension"
}
regular {
@rpradal
rpradal / build.gradle
Created December 3, 2015 13:10
Build acceleration thanks to flavors
android {
productFlavors {
fastBuild {
minSdkVersion 21
}
regular {
// The regular minSdkVersion you use in your application
minSdkVersion 14
}
}
@rpradal
rpradal / FlavorAcceleration.gradle
Created December 3, 2015 13:08
Product flavor acceleartion
android {
productFlavors {
fastBuild {
minSdkVersion 21
}
regular {
// The regular minSdkVersion you use in your application
minSdkVersion 14
}
}