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-07 15:48:54 +01:00
|
|
|
|
2017-04-03 15:07:32 +01:00
|
|
|
android {
|
2018-02-11 01:29:54 +00:00
|
|
|
compileSdkVersion 27
|
|
|
|
buildToolsVersion "27.0.3"
|
2017-04-03 15:07:32 +01:00
|
|
|
defaultConfig {
|
|
|
|
applicationId "org.itxtech.daedalus"
|
2017-04-10 14:09:38 +01:00
|
|
|
minSdkVersion 15
|
2018-02-11 01:29:54 +00:00
|
|
|
targetSdkVersion 27
|
2018-01-01 01:33:01 +00:00
|
|
|
versionCode 14
|
|
|
|
versionName "1.11.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 {
|
2017-08-23 02:33:48 +01:00
|
|
|
compile fileTree(include: ['*.jar'], dir: 'libs')
|
2018-02-11 01:29:54 +00:00
|
|
|
compile 'com.android.support:appcompat-v7:27.0.2'
|
|
|
|
compile 'com.android.support:design:27.0.2'
|
|
|
|
compile 'com.android.support:support-v4:27.0.2'
|
|
|
|
compile 'com.android.support:percent:27.0.2'
|
|
|
|
compile 'com.android.support:cardview-v7:27.0.2'
|
2017-04-08 04:56:22 +01:00
|
|
|
|
2018-01-01 01:33:01 +00:00
|
|
|
compile 'org.pcap4j:pcap4j-core:1.7.3'
|
|
|
|
compile 'org.pcap4j:pcap4j-packetfactory-static:1.7.3'
|
2018-02-11 01:29:54 +00:00
|
|
|
compile 'de.measite.minidns:minidns-core:0.2.4'
|
2017-12-16 05:54:29 +00:00
|
|
|
compile 'com.google.code.gson:gson:2.8.2'
|
2017-05-12 17:38:44 +01:00
|
|
|
|
2017-08-21 11:37:01 +01:00
|
|
|
compile 'com.google.firebase:firebase-crash:11.0.4'
|
2017-04-03 15:07:32 +01:00
|
|
|
}
|
2017-09-17 04:01:58 +01:00
|
|
|
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|