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 {
|
2019-09-16 02:33:23 +01:00
|
|
|
compileSdkVersion 29
|
|
|
|
buildToolsVersion "29.0.2"
|
2017-04-03 15:07:32 +01:00
|
|
|
defaultConfig {
|
|
|
|
applicationId "org.itxtech.daedalus"
|
2019-07-14 13:27:55 +01:00
|
|
|
minSdkVersion 21
|
2019-09-16 02:33:23 +01:00
|
|
|
targetSdkVersion 29
|
2019-11-18 04:12:22 +00:00
|
|
|
versionCode 21
|
|
|
|
versionName "1.14.2"
|
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'
|
|
|
|
}
|
|
|
|
}
|
2019-07-15 10:42:45 +01:00
|
|
|
flavorDimensions "default"
|
|
|
|
productFlavors {
|
|
|
|
pure {
|
|
|
|
dimension "default"
|
|
|
|
}
|
|
|
|
google {
|
|
|
|
dimension "default"
|
|
|
|
}
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
|
2019-07-15 10:42:45 +01:00
|
|
|
configurations {
|
|
|
|
googleReleaseImplementation
|
|
|
|
}
|
|
|
|
|
2017-04-03 15:07:32 +01:00
|
|
|
dependencies {
|
2018-03-24 15:35:45 +00:00
|
|
|
//Support
|
2019-09-16 02:33:23 +01:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
2018-11-04 03:26:07 +00:00
|
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
|
|
implementation 'androidx.percentlayout:percentlayout:1.0.0'
|
|
|
|
implementation 'androidx.cardview:cardview:1.0.0'
|
2019-10-23 05:34:17 +01:00
|
|
|
implementation 'com.google.android.material:material:1.2.0-alpha01'
|
2019-11-18 01:59:46 +00:00
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0-rc01'
|
2019-10-23 08:48:02 +01:00
|
|
|
implementation 'androidx.preference:preference:1.1.0'
|
2018-03-24 15:35:45 +00:00
|
|
|
//DNS
|
2019-10-10 03:09:36 +01:00
|
|
|
implementation 'org.pcap4j:pcap4j-core:1.8.2'
|
|
|
|
implementation 'org.pcap4j:pcap4j-packetfactory-static:1.8.2'
|
2019-01-01 03:59:43 +00:00
|
|
|
implementation 'org.minidns:minidns-client:0.3.4'
|
2018-06-21 05:21:47 +01:00
|
|
|
implementation 'com.google.code.gson:gson:2.8.5'
|
2019-10-10 03:09:36 +01:00
|
|
|
implementation 'com.squareup.okhttp3:okhttp:4.2.0'
|
2018-03-24 15:35:45 +00:00
|
|
|
//Analytics
|
2019-11-18 01:59:46 +00:00
|
|
|
googleReleaseImplementation 'com.google.firebase:firebase-core:17.2.1'
|
2019-07-15 10:42:45 +01:00
|
|
|
googleReleaseImplementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
|
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'
|
2019-07-15 10:42:45 +01:00
|
|
|
|
|
|
|
android.applicationVariants.all { variant ->
|
|
|
|
project.tasks.each { t ->
|
|
|
|
if (!t.name.toLowerCase().contains("googlerelease") &&
|
|
|
|
(t.name.contains("GoogleServices") || t.name.contains("fabric"))) {
|
|
|
|
t.enabled = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|