mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-07 06:08:51 +00:00
109 lines
3 KiB
Groovy
109 lines
3 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'
|
|
all*.exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk7'
|
|
all*.exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk8'
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':public-transport-enabler')
|
|
implementation 'androidx.annotation:annotation:1.7.0'
|
|
implementation 'androidx.recyclerview:recyclerview:1.3.2'
|
|
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
|
|
implementation 'androidx.drawerlayout:drawerlayout:1.2.0'
|
|
implementation 'androidx.core:core:1.12.0'
|
|
implementation 'androidx.activity:activity:1.8.0'
|
|
//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:2.0.7'
|
|
implementation 'com.github.tony19:logback-android:3.0.0'
|
|
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
|
|
}
|
|
|
|
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'
|
|
}
|