NetGuard/app/build.gradle

41 lines
1.2 KiB
Groovy
Raw Normal View History

2015-10-24 18:01:55 +00:00
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
2015-11-01 17:53:19 +00:00
buildToolsVersion "23.0.2"
2015-10-24 18:01:55 +00:00
defaultConfig {
applicationId "eu.faircode.netguard"
minSdkVersion 21
targetSdkVersion 23
2015-11-18 07:42:32 +00:00
versionCode 36
versionName "0.36"
2015-10-24 18:01:55 +00:00
}
buildTypes {
release {
2015-11-07 12:42:58 +00:00
minifyEnabled true
2015-10-24 18:01:55 +00:00
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
applicationVariants.all { variant ->
setOutputFile(variant, defaultConfig)
}
}
}
}
def setOutputFile(variant, defaultConfig) {
variant.outputs.each { output ->
def fileName = "NetGuard-v" + defaultConfig.versionName + ".apk"
if (output.zipAlign)
output.outputFile = new File(output.outputFile.parent, fileName)
else
output.packageApplication.outputFile = new File(output.packageApplication.outputFile.parent, fileName)
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
2015-11-13 09:11:46 +00:00
compile 'com.android.support:appcompat-v7:23.1.+'
compile 'com.android.support:recyclerview-v7:23.1.+'
compile 'com.squareup.picasso:picasso:2.5.+'
2015-10-24 18:01:55 +00:00
}