98 lines
3.0 KiB
Groovy
98 lines
3.0 KiB
Groovy
description = "Maptology Android App"
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
implementation project(":android-feign")
|
|
implementation "androidx.legacy:legacy-support-v4:${versionAndroidx}"
|
|
implementation "androidx.appcompat:appcompat:${versionAndroidx}"
|
|
implementation "androidx.preference:preference:${versionAndroidx}"
|
|
implementation "androidx.cardview:cardview:${versionAndroidx}"
|
|
implementation "androidx.recyclerview:recyclerview:${versionAndroidx}"
|
|
implementation "com.google.android.material:material:${versionAndroidx}"
|
|
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.maptology.android.app"
|
|
minSdkVersion 14
|
|
targetSdkVersion 28
|
|
versionCode 10
|
|
versionName "${version}"
|
|
buildConfigField "long", "BUILD_TIME", System.currentTimeMillis() + "L"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
resValue "string", "application_long", "Maptology"
|
|
resValue "string", "application_short", "Maptology"
|
|
|
|
}
|
|
|
|
signingConfigs {
|
|
release {
|
|
storeFile file("src/main/key/maptology.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", "Maptology (Debug)"
|
|
resValue "string", "application_short", "M (Debug)"
|
|
}
|
|
}
|
|
|
|
|
|
testOptions {
|
|
unitTests {
|
|
includeAndroidResources = true
|
|
}
|
|
}
|
|
|
|
lintOptions {
|
|
disable 'RtlSymmetry', 'RelativeOverlap'
|
|
// abortOnError false
|
|
}
|
|
dexOptions {
|
|
javaMaxHeapSize "512m"
|
|
}
|
|
|
|
}
|
|
|
|
tasks.register('makeEclipseDir') {
|
|
doLast {
|
|
file('build/generated/source/aidl/debug').mkdirs();
|
|
file('build/generated/source/r/debug').mkdirs();
|
|
}
|
|
}
|
|
|
|
tasks['build'].dependsOn('makeEclipseDir')
|
|
tasks['eclipse'].dependsOn('makeEclipseDir')
|
|
|
|
// enable unchecked and deprecation warning during compilation
|
|
// gradle.projectsEvaluated {
|
|
// tasks.withType(JavaCompile) {
|
|
// options.encoding = 'UTF-8'
|
|
// options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
|
|
// }
|
|
//}
|