2021-02-16 13:42:49 +01:00
|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion 29
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.jens.automation2"
|
2021-02-16 20:24:12 +01:00
|
|
|
minSdkVersion 16
|
2021-02-16 13:42:49 +01:00
|
|
|
compileSdkVersion 29
|
|
|
|
buildToolsVersion '29.0.2'
|
|
|
|
useLibrary 'org.apache.http.legacy'
|
2021-04-27 14:49:34 +02:00
|
|
|
versionCode 102
|
|
|
|
versionName "1.6.30"
|
2021-02-16 13:42:49 +01:00
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
checkReleaseBuilds false
|
|
|
|
abortOnError false
|
|
|
|
}
|
|
|
|
|
|
|
|
flavorDimensions "version"
|
|
|
|
|
|
|
|
productFlavors
|
|
|
|
{
|
|
|
|
googlePlayFlavor
|
|
|
|
{
|
|
|
|
dimension "version"
|
2021-02-16 23:38:38 +01:00
|
|
|
// applicationIdSuffix ".googlePlay"
|
2021-02-16 13:42:49 +01:00
|
|
|
versionNameSuffix "-googlePlay"
|
2021-04-27 14:49:34 +02:00
|
|
|
targetSdkVersion 29
|
2021-02-16 13:42:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
fdroidFlavor
|
|
|
|
{
|
|
|
|
dimension "version"
|
2021-02-16 23:38:38 +01:00
|
|
|
// applicationIdSuffix ".fdroid"
|
2021-03-06 00:29:15 +01:00
|
|
|
// versionNameSuffix "-fdroid"
|
2021-02-16 13:42:49 +01:00
|
|
|
targetSdkVersion 28
|
|
|
|
}
|
|
|
|
|
|
|
|
apkFlavor
|
|
|
|
{
|
|
|
|
dimension "version"
|
2021-02-16 23:38:38 +01:00
|
|
|
// applicationIdSuffix ".apk"
|
2021-02-16 13:42:49 +01:00
|
|
|
versionNameSuffix "-apk"
|
|
|
|
targetSdkVersion 28
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-02-16 20:24:12 +01:00
|
|
|
googlePlayFlavorImplementation 'com.google.firebase:firebase-appindexing:19.2.0'
|
|
|
|
googlePlayFlavorImplementation 'com.google.android.gms:play-services-location:17.1.0'
|
2021-02-16 13:42:49 +01:00
|
|
|
|
2021-02-16 20:24:12 +01:00
|
|
|
apkFlavorImplementation 'com.google.firebase:firebase-appindexing:19.2.0'
|
|
|
|
apkFlavorImplementation 'com.google.android.gms:play-services-location:17.1.0'
|
2021-02-16 13:42:49 +01:00
|
|
|
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
2021-02-16 20:24:12 +01:00
|
|
|
implementation 'com.google.android.material:material:1.3.0'
|
2021-02-16 13:42:49 +01:00
|
|
|
testImplementation 'junit:junit:4.+'
|
2021-02-16 20:24:12 +01:00
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
2021-02-16 13:42:49 +01:00
|
|
|
}
|