86 lines
2.5 KiB
Groovy
86 lines
2.5 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 29
|
|
|
|
defaultConfig {
|
|
applicationId "com.jens.automation2"
|
|
minSdkVersion 16
|
|
compileSdkVersion 33
|
|
buildToolsVersion '29.0.2'
|
|
useLibrary 'org.apache.http.legacy'
|
|
versionCode 139
|
|
versionName "1.8"
|
|
|
|
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
|
|
}
|
|
|
|
flavorDimensions "version"
|
|
|
|
productFlavors
|
|
{
|
|
googlePlayFlavor
|
|
{
|
|
dimension "version"
|
|
versionNameSuffix "-googlePlay"
|
|
targetSdkVersion 33
|
|
}
|
|
|
|
/*
|
|
targetSdkVersion is kept at 28 for as long as possible.
|
|
If raised wifi cannot be switched on or off anymore without root permissions.
|
|
In the Google version I'm forced to raise the value regularly.
|
|
*/
|
|
|
|
fdroidFlavor
|
|
{
|
|
dimension "version"
|
|
targetSdkVersion 28
|
|
}
|
|
|
|
apkFlavor
|
|
{
|
|
dimension "version"
|
|
versionNameSuffix "-apk"
|
|
targetSdkVersion 28
|
|
}
|
|
}
|
|
lint {
|
|
abortOnError false
|
|
checkReleaseBuilds false
|
|
}
|
|
namespace 'com.jens.automation2'
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.jetbrains:annotations:15.0'
|
|
googlePlayFlavorImplementation 'com.google.firebase:firebase-appindexing:20.0.0'
|
|
googlePlayFlavorImplementation 'com.google.android.gms:play-services-location:18.0.0'
|
|
|
|
apkFlavorImplementation 'com.google.firebase:firebase-appindexing:20.0.0'
|
|
apkFlavorImplementation 'com.google.android.gms:play-services-location:18.0.0'
|
|
|
|
implementation 'com.linkedin.dexmaker:dexmaker:2.25.0'
|
|
implementation 'org.apache.commons:commons-lang3:3.0'
|
|
|
|
//implementation "androidx.security:security-crypto:1.0.0"
|
|
//implementation "androidx.security:security-identity-credential:1.0.0-alpha02"
|
|
implementation 'androidx.appcompat:appcompat:1.4.2'
|
|
implementation 'com.google.android.material:material:1.6.1'
|
|
testImplementation 'junit:junit:4'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
} |