59 lines
1.9 KiB
Groovy
59 lines
1.9 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'io.fabric'
|
|
|
|
def gitCommit = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()
|
|
|
|
android {
|
|
compileSdkVersion 28
|
|
buildToolsVersion "28.0.3"
|
|
defaultConfig {
|
|
applicationId "org.itxtech.daedalus"
|
|
minSdkVersion 15
|
|
targetSdkVersion 28
|
|
versionCode 17
|
|
versionName "1.12.1"
|
|
|
|
buildConfigField "String", "BUILD_TIME", "\"${System.currentTimeMillis()}\""
|
|
buildConfigField "String", "GIT_COMMIT", "\"${gitCommit}\""
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
lintOptions {
|
|
checkReleaseBuilds false
|
|
abortOnError false
|
|
}
|
|
applicationVariants.all { variant ->
|
|
variant.outputs.all {
|
|
outputFileName = outputFileName.replace("app", "${defaultConfig.applicationId}_${defaultConfig.versionName}_${gitCommit}")
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
//Support
|
|
implementation 'androidx.appcompat:appcompat:1.0.0'
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
implementation 'androidx.percentlayout:percentlayout:1.0.0'
|
|
implementation 'androidx.cardview:cardview:1.0.0'
|
|
implementation 'com.google.android.material:material:1.0.0'
|
|
//DNS
|
|
implementation 'org.pcap4j:pcap4j-core:1.7.3'
|
|
implementation 'org.pcap4j:pcap4j-packetfactory-static:1.7.3'
|
|
implementation 'org.minidns:minidns-client:0.3.3'
|
|
implementation 'com.google.code.gson:gson:2.8.5'
|
|
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
|
|
//Analytics
|
|
implementation 'com.google.firebase:firebase-core:16.0.5'
|
|
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.5'
|
|
}
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|