2015-05-08 23:45:14 +02:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
android {
|
2018-06-17 17:26:17 +02:00
|
|
|
compileSdkVersion 27
|
|
|
|
buildToolsVersion "27.0.3"
|
2015-05-08 23:45:14 +02:00
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
development {
|
|
|
|
storeFile file("../../keystores/debug.keystore")
|
|
|
|
storePassword "android"
|
|
|
|
keyAlias "androiddebugkey"
|
|
|
|
keyPassword "android"
|
|
|
|
}
|
2016-12-11 13:05:39 +01:00
|
|
|
release {
|
2018-06-17 17:30:28 +02:00
|
|
|
storeFile file("/var/lib/jenkins/osmand_key")
|
|
|
|
storePassword System.getenv("OSMAND_APK_PASSWORD")
|
|
|
|
keyAlias "osmand"
|
|
|
|
keyPassword System.getenv("OSMAND_APK_PASSWORD")
|
|
|
|
}
|
2015-05-08 23:45:14 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultConfig {
|
2018-06-19 15:04:25 +02:00
|
|
|
minSdkVersion 15
|
|
|
|
targetSdkVersion 27
|
2015-05-08 23:45:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
manifest.srcFile "AndroidManifest.xml"
|
|
|
|
jni.srcDirs = []
|
|
|
|
jniLibs.srcDirs = []
|
|
|
|
aidl.srcDirs = ["src"]
|
|
|
|
java.srcDirs = ["src"]
|
|
|
|
resources.srcDirs = ["src"]
|
|
|
|
renderscript.srcDirs = ["src"]
|
|
|
|
res.srcDirs = ["res"]
|
|
|
|
assets.srcDirs = ["assets"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
debug {
|
|
|
|
signingConfig signingConfigs.development
|
|
|
|
}
|
|
|
|
release {
|
2016-12-11 13:05:39 +01:00
|
|
|
signingConfig signingConfigs.release
|
2015-05-08 23:45:14 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
ivy {
|
|
|
|
name = "OsmAndBinariesIvy"
|
|
|
|
url = "http://builder.osmand.net"
|
|
|
|
layout "pattern", {
|
|
|
|
artifact "ivy/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-12-24 13:56:33 +01:00
|
|
|
def analytics = System.getenv("USE_FIREBASE_FOR_PLUGINS")
|
|
|
|
|
2015-05-08 23:45:14 +02:00
|
|
|
dependencies {
|
2016-12-24 13:56:33 +01:00
|
|
|
if (analytics) {
|
2018-06-17 17:26:17 +02:00
|
|
|
implementation 'com.google.firebase:firebase-core:12.0.1'
|
|
|
|
implementation 'com.google.firebase:firebase-config:12.0.1'
|
2016-12-24 13:56:33 +01:00
|
|
|
}
|
2018-06-17 17:26:17 +02:00
|
|
|
implementation 'com.android.support:appcompat-v7:27.1.1'
|
|
|
|
implementation 'com.android.support:design:27.1.1'
|
2015-05-08 23:45:14 +02:00
|
|
|
}
|
2016-12-09 15:37:50 +01:00
|
|
|
|
2016-12-24 13:56:33 +01:00
|
|
|
if (analytics) {
|
|
|
|
println "Apply GMS plugin"
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|
|
|
|
}
|