2017-04-03 15:07:32 +01:00
|
|
|
apply plugin: 'com.android.application'
|
2018-03-24 15:35:45 +00:00
|
|
|
apply plugin: 'io.fabric'
|
2017-04-03 15:07:32 +01:00
|
|
|
|
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-07-08 04:22:52 +01:00
|
|
|
versionCode 16
|
|
|
|
versionName "1.12.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
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|
2018-03-24 15:35:45 +00:00
|
|
|
applicationVariants.all { variant ->
|
|
|
|
variant.outputs.all {
|
|
|
|
outputFileName = outputFileName.replace("app", "${defaultConfig.applicationId}_${defaultConfig.versionName}_${gitCommit}")
|
2017-04-06 14:52:32 +01:00
|
|
|
}
|
|
|
|
}
|
2018-03-24 15:35:45 +00:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2017-04-03 15:07:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-03-24 15:35:45 +00:00
|
|
|
//Support
|
2018-04-14 18:01:02 +01:00
|
|
|
implementation 'com.android.support:appcompat-v7:27.1.1'
|
|
|
|
implementation 'com.android.support:design:27.1.1'
|
|
|
|
implementation 'com.android.support:support-v4:27.1.1'
|
|
|
|
implementation 'com.android.support:percent:27.1.1'
|
|
|
|
implementation 'com.android.support:cardview-v7:27.1.1'
|
2018-03-24 15:35:45 +00:00
|
|
|
//DNS
|
|
|
|
implementation 'org.pcap4j:pcap4j-core:1.7.3'
|
|
|
|
implementation 'org.pcap4j:pcap4j-packetfactory-static:1.7.3'
|
2018-05-22 15:02:19 +01:00
|
|
|
implementation 'org.minidns:minidns-client:0.3.0'
|
2018-06-21 05:21:47 +01:00
|
|
|
implementation 'com.google.code.gson:gson:2.8.5'
|
|
|
|
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
|
2018-03-24 15:35:45 +00:00
|
|
|
//Analytics
|
2018-07-08 04:22:52 +01:00
|
|
|
implementation 'com.google.firebase:firebase-core:16.0.1'
|
|
|
|
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.4'
|
2017-04-03 15:07:32 +01:00
|
|
|
}
|
2018-03-25 00:30:50 +00:00
|
|
|
|
2018-03-24 16:23:02 +00:00
|
|
|
apply plugin: 'com.google.gms.google-services'
|