2015-10-24 18:01:55 +00:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion 23
|
|
|
|
buildToolsVersion "23.0.1"
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "eu.faircode.netguard"
|
|
|
|
minSdkVersion 21
|
|
|
|
targetSdkVersion 23
|
2015-10-26 16:33:48 +00:00
|
|
|
versionCode 4
|
|
|
|
versionName "0.4"
|
2015-10-24 18:01:55 +00:00
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
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'])
|
|
|
|
testCompile 'junit:junit:4.12'
|
|
|
|
compile 'com.android.support:appcompat-v7:23.1.0'
|
|
|
|
compile 'com.android.support:recyclerview-v7:23.1.0'
|
|
|
|
}
|