nextdns-mgmt/app/build.gradle

84 lines
2.6 KiB
Groovy
Raw Normal View History

2017-04-03 15:07:32 +01:00
apply plugin: 'com.android.application'
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-03 15:07:32 +01:00
android {
2022-05-23 04:47:15 +01:00
compileSdkVersion 31
buildToolsVersion "31.0.0"
2017-04-03 15:07:32 +01:00
defaultConfig {
applicationId "org.itxtech.daedalus"
minSdkVersion 21
2022-05-23 04:47:15 +01:00
targetSdkVersion 31
2022-05-23 07:36:30 +01:00
versionCode 21
versionName "1.15.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'
}
}
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
}
applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = outputFileName.replace("app", "${defaultConfig.applicationId}_${defaultConfig.versionName}_${gitCommit}")
2017-04-06 14:52:32 +01:00
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
2017-04-03 15:07:32 +01:00
}
configurations {
googleReleaseImplementation
}
2017-04-03 15:07:32 +01:00
dependencies {
//Support
2022-05-23 04:47:15 +01:00
implementation 'androidx.appcompat:appcompat:1.6.0-alpha04'
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'
2022-05-23 04:47:15 +01:00
implementation 'com.google.android.material:material:1.7.0-alpha01'
implementation 'androidx.recyclerview:recyclerview:1.3.0-alpha02'
2022-05-23 04:53:25 +01:00
implementation 'androidx.preference:preference:1.2.0'
//DNS
2022-05-23 08:21:30 +01:00
implementation 'org.pcap4j:pcap4j-core:1.8.2'
implementation 'org.pcap4j:pcap4j-packetfactory-static:1.8.2'
2022-05-23 04:47:15 +01:00
implementation 'org.minidns:minidns-client:1.0.3'
implementation 'com.google.code.gson:gson:2.9.0'
implementation 'com.squareup.okhttp3:okhttp:4.9.3'
//Analytics
2022-05-23 04:47:15 +01:00
googleReleaseImplementation 'com.google.firebase:firebase-core:21.0.0'
googleReleaseImplementation 'com.crashlytics.sdk.android:crashlytics:17.2.2'
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'
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
}
}
}