nextdns-mgmt/app/build.gradle

59 lines
1.9 KiB
Groovy
Raw Normal View History

2017-04-03 15:07:32 +01:00
apply plugin: 'com.android.application'
2017-04-08 04:56:22 +01:00
def gitCommit = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()
2017-04-03 15:07:32 +01:00
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "org.itxtech.daedalus"
minSdkVersion 15
2017-04-03 15:07:32 +01:00
targetSdkVersion 25
2017-04-25 10:58:25 +01:00
versionCode 4
versionName "1.3.0"
2017-04-08 04:56:22 +01:00
buildConfigField "String", "BUILD_TIME", "\"${System.currentTimeMillis()}\""
buildConfigField "String", "GIT_COMMIT", "\"${gitCommit}\""
2017-04-03 15:07:32 +01:00
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
2017-04-06 14:52:32 +01:00
lintOptions {
2017-04-03 15:07:32 +01:00
checkReleaseBuilds false
abortOnError false
}
2017-04-06 14:52:32 +01:00
android.applicationVariants.all { variant ->
variant.outputs.each { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.apk')) {
2017-04-08 04:56:22 +01:00
def fileName = outputFile.name.replace("app", "${defaultConfig.applicationId}_${defaultConfig.versionName}_${gitCommit}")
2017-04-06 14:52:32 +01:00
output.outputFile = new File(outputFile.parent, fileName)
}
}
}
2017-04-03 15:07:32 +01:00
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
2017-04-08 04:56:22 +01:00
compile 'com.android.support:percent:25.3.1'
2017-04-10 08:28:09 +01:00
compile 'org.pcap4j:pcap4j-core:1.7.0'
compile 'org.pcap4j:pcap4j-packetfactory-propertiesbased:1.7.0'
2017-04-08 04:56:22 +01:00
compile 'de.measite.minidns:minidns-hla:0.2.1'
2017-04-03 15:07:32 +01:00
testCompile 'junit:junit:4.12'
}