Skip to content

Instantly share code, notes, and snippets.

@d4vidi
Last active April 15, 2019 15:25
Show Gist options
  • Save d4vidi/01fc7092699094d337046221a82c6989 to your computer and use it in GitHub Desktop.
Save d4vidi/01fc7092699094d337046221a82c6989 to your computer and use it in GitHub Desktop.
android {
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
// Custom build type, just for running instrumentation tests!!!
instrum {
// "Inherit" from 'release' buildType
initWith release
// For deps that don't know what 'instrum' is
matchingFallbacks = ['release']
// Apply additional, instrumentation-related rules
proguardFiles 'proguard-rules-instrum.pro'
}
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment