oeffi/oeffi/build.gradle

76 lines
2.1 KiB
Groovy

apply plugin: 'com.android.application'
apply plugin: '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: 'androidx.lifecycle', module: 'lifecycle-runtime'
}
dependencies {
compile project(':enabler')
compile 'de.schildbach.wallet:integration-android:2.0'
compile 'androidx.annotation:annotation:1.0.2'
compile 'androidx.recyclerview:recyclerview:1.0.0'
compile 'androidx.coordinatorlayout:coordinatorlayout:1.0.0'
compile 'androidx.drawerlayout:drawerlayout:1.0.0'
compile 'androidx.core:core:1.0.1'
compile 'com.squareup.okhttp3:okhttp:3.12.1'
compile 'com.squareup.okhttp3:logging-interceptor:3.12.1'
compile 'com.google.guava:guava:27.0.1-android'
compile 'org.osmdroid:osmdroid-android:6.1.0'
compile 'org.slf4j:slf4j-api:1.7.25'
compile 'com.github.tony19:logback-android:1.3.0-3'
testCompile 'junit:junit:4.12'
}
android {
compileSdkVersion 'android-28'
buildToolsVersion '28.0.3'
lintOptions {
abortOnError false
disable 'MissingTranslation'
}
defaultConfig {
generatedDensities = ['hdpi', 'xhdpi']
}
buildTypes {
all {
minifyEnabled true
proguardFile 'proguard.cfg'
}
debug {
debuggable true
}
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
test {
java.srcDirs = ['test']
}
}
packagingOptions {
exclude 'META-INF/*.version'
exclude 'META-INF/proguard/**'
exclude 'okhttp3/internal/publicsuffix/publicsuffixes.gz'
}
}
task svgToPng(type: fr.avianey.androidsvgdrawable.gradle.SvgDrawableTask) {
from = files('graphics')
to = file('res')
targetedDensities = ['hdpi', 'xhdpi', 'xxhdpi', 'xxxhdpi']
outputFormat = 'PNG'
outputType = 'mipmap'
}