OsmAnd/plugins/Osmand-Nautical/build.gradle

80 lines
1.6 KiB
Groovy
Raw Normal View History

2015-04-28 08:31:30 +02:00
apply plugin: 'com.android.application'
android {
2016-12-09 17:05:17 +01:00
compileSdkVersion 23
2015-09-09 18:22:47 +02:00
buildToolsVersion "23.0.1"
2015-04-28 08:31:30 +02:00
signingConfigs {
development {
storeFile file("../../keystores/debug.keystore")
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
}
2016-12-11 13:05:39 +01:00
release {
storeFile file(RELEASE_STORE_FILE)
storePassword RELEASE_STORE_PASSWORD
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
}
2015-04-28 08:31:30 +02:00
}
defaultConfig {
minSdkVersion 9
targetSdkVersion 21
}
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-04-28 08:31:30 +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-04-28 08:31:30 +02:00
dependencies {
2016-12-24 13:56:33 +01:00
if (analytics) {
compile 'com.google.firebase:firebase-core:9.8.0'
compile 'com.google.firebase:firebase-config:9.8.0'
}
2016-12-09 17:05:17 +01:00
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:design:23.3.0'
2015-04-28 08:31:30 +02:00
}
2016-12-09 17:05:17 +01:00
2016-12-24 13:56:33 +01:00
if (analytics) {
println "Apply GMS plugin"
apply plugin: 'com.google.gms.google-services'
}