Files
mowesta/android-app/build.gradle
T
Marcus Handte 4cdcff4192
LocationBasedServices/mowesta/master This commit looks good
Update oss plugin, reduce dex memory consumption.
Switch oss gradle plugin to custom build to get rid of warnings.
Reduce dex memory from 1g to 512m to avoid out of memory issues.
2019-11-09 22:21:56 +01:00

110 lines
3.2 KiB
Groovy

apply plugin: 'org.handte.gradle-android-eclipse'
apply plugin: 'com.android.application'
apply plugin: 'com.google.android.gms.oss-licenses-plugin'
description = "Mowesta Android App"
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation project(":android-feign")
implementation "androidx.legacy:legacy-support-v4:${versionAndroidx10}"
implementation "androidx.appcompat:appcompat:${versionAndroidx11}"
implementation "androidx.preference:preference:${versionAndroidx11}"
implementation "androidx.cardview:cardview:${versionAndroidx10}"
implementation "androidx.recyclerview:recyclerview:${versionAndroidx10}"
implementation "com.google.android.material:material:${versionAndroidx10}"
implementation "com.google.android.gms:play-services-oss-licenses:${versionPlay}"
testImplementation "junit:junit:${versionJunit}"
testImplementation "org.robolectric:robolectric:${versionRobolectric}"
testImplementation "androidx.test:core:${versionAndroidxTest}"
}
configurations {
all {
exclude group: 'com.google.auto.service', module: 'auto-service'
}
}
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.mowesta.android.app"
minSdkVersion 14
targetSdkVersion 28
versionCode 7
versionName "${version}"
buildConfigField "long", "BUILD_TIME", System.currentTimeMillis() + "L"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
resValue "string", "application_long", "MoWeSta"
resValue "string", "application_short", "MoWeSta"
}
signingConfigs {
release {
storeFile file("src/main/key/mowesta.jks")
keyAlias "app"
storePassword System.properties['android.keystore.password']
keyPassword System.properties['android.keystore.password']
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// add signing config if key is provided via system property
if (System.properties['android.keystore.password'] != null) signingConfig signingConfigs.release
}
debug {
applicationIdSuffix ".debug"
versionNameSuffix "-dbg"
resValue "string", "application_long", "MoWeStaDbg"
resValue "string", "application_short", "MWSDBG"
}
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
lintOptions {
disable 'RtlSymmetry', 'RelativeOverlap'
// abortOnError false
}
dexOptions {
javaMaxHeapSize "512m"
}
}
// enable unchecked and deprecation warning during compilation
// gradle.projectsEvaluated {
// tasks.withType(JavaCompile) {
// options.encoding = 'UTF-8'
// options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
// }
//}
configurations {
eclipseConfig.extendsFrom implementation
eclipseTestConfig.extendsFrom testImplementation
}
eclipse {
classpath {
plusConfigurations += [
configurations.eclipseConfig,
configurations.eclipseTestConfig,
]
downloadSources = true
}
}