Skip to content

Instantly share code, notes, and snippets.

@Benjamin-Dobell
Created July 13, 2014 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Benjamin-Dobell/f9a3a39d6f141e412dac to your computer and use it in GitHub Desktop.
Save Benjamin-Dobell/f9a3a39d6f141e412dac to your computer and use it in GitHub Desktop.
apply plugin: 'com.android.application'
repositories {
mavenCentral()
}
android {
compileSdkVersion 20
buildToolsVersion "20.0.0"
defaultConfig {
minSdkVersion 16
targetSdkVersion 20
versionCode 1
versionName "1.0.0"
}
if (project.hasProperty('production_key_store')
&& project.hasProperty('production_key_alias')
&& project.hasProperty('production_key_store_password')
&& project.hasProperty('production_key_alias_password')) {
signingConfigs {
production {
storeFile file(project.properties.production_key_store)
storePassword project.properties.production_key_store_password
keyAlias project.properties.production_key_alias
keyPassword project.properties.production_key_alias_password
}
}
buildTypes {
release {
signingConfig signingConfigs.production
runProguard true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.txt'
}
}
}
buildTypes {
debug {
applicationIdSuffix ".debug"
}
}
}
dependencies {
compile 'com.android.support:support-v4:20.0.0'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment