oeffi/oeffi/build.gradle
2023-03-29 10:39:50 +02:00

108 lines
2.9 KiB
Groovy

plugins {
id 'com.android.application'
id 'androidsvgdrawable'
}
configurations {
all*.exclude group: 'org.json', module: 'json'
all*.exclude group: 'net.sf.kxml', module: 'kxml2'
all*.exclude group: 'androidx.legacy', module: 'legacy-support-core-ui'
}
dependencies {
implementation project(':public-transport-enabler')
implementation 'androidx.annotation:annotation:1.5.0'
implementation 'androidx.recyclerview:recyclerview:1.3.0'
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
implementation 'androidx.drawerlayout:drawerlayout:1.1.1'
implementation 'androidx.core:core:1.9.0'
implementation 'androidx.activity:activity:1.6.1'
//noinspection GradleDependency
implementation 'com.squareup.okhttp3:okhttp:3.12.13'
//noinspection GradleDependency
implementation 'com.squareup.okhttp3:logging-interceptor:3.12.13'
implementation 'com.google.guava:guava:31.1-android'
implementation 'org.osmdroid:osmdroid-android:6.1.14'
implementation 'org.slf4j:slf4j-api:1.7.36'
implementation 'com.github.tony19:logback-android:2.0.1'
testImplementation 'junit:junit:4.13.2'
}
android {
compileSdkVersion 'android-33'
buildToolsVersion '33.0.2'
defaultConfig {
generatedDensities = ['hdpi', 'xhdpi']
}
buildTypes {
all {
minifyEnabled true
shrinkResources true
crunchPngs false
proguardFile 'proguard.cfg'
}
debug {
debuggable true
}
}
flavorDimensions 'flavor'
productFlavors {
aosp {
dimension 'flavor'
versionNameSuffix '-aosp'
}
google {
dimension 'flavor'
versionNameSuffix '-google'
}
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
test {
java.srcDirs = ['test']
}
aosp {
java.srcDirs = ['src-aosp']
}
google {
java.srcDirs = ['src-google']
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
abortOnError false
disable 'MissingTranslation'
}
packagingOptions {
exclude 'META-INF/*.version'
exclude 'META-INF/proguard/**'
exclude 'META-INF/services/**'
exclude 'META-INF/*.kotlin_module'
exclude 'META-INF/**/coroutines.pro'
exclude 'DebugProbesKt.bin'
exclude 'kotlin/**'
}
}
task svgToPng(type: fr.avianey.androidsvgdrawable.gradle.SvgDrawableTask) {
from = files('graphics')
to = file('res')
targetedDensities = ['xxhdpi', 'xxxhdpi']
outputFormat = 'PNG'
outputType = 'mipmap'
}