2016-06-15 21:05:12 +02:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
android {
|
2018-03-29 10:04:40 +02:00
|
|
|
compileSdkVersion 27
|
|
|
|
buildToolsVersion "27.0.3"
|
2016-06-15 21:05:12 +02:00
|
|
|
|
2016-06-22 18:07:32 +02:00
|
|
|
dexOptions {
|
|
|
|
jumboMode true
|
|
|
|
}
|
|
|
|
|
2016-06-15 21:05:12 +02:00
|
|
|
defaultConfig {
|
2018-06-19 15:04:25 +02:00
|
|
|
minSdkVersion 15
|
|
|
|
targetSdkVersion 27
|
2016-06-15 21:05:12 +02:00
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
}
|
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
}
|
|
|
|
|
|
|
|
// This is from OsmAndCore_android.aar - for some reason it's not inherited
|
|
|
|
aaptOptions {
|
|
|
|
// Don't compress any embedded resources
|
2016-06-16 15:34:06 +02:00
|
|
|
noCompress "qz", "png"
|
2016-06-15 21:05:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
manifest.srcFile "AndroidManifest.xml"
|
|
|
|
jni.srcDirs = []
|
|
|
|
jniLibs.srcDirs = ["libs"]
|
|
|
|
java.srcDirs = ["src"]
|
|
|
|
renderscript.srcDirs = ["src"]
|
2016-11-12 18:01:03 +01:00
|
|
|
resources.srcDirs = ["src"]
|
2016-06-15 21:05:12 +02:00
|
|
|
res.srcDirs = ["res"]
|
|
|
|
assets.srcDirs = ["assets"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-26 13:50:35 +02:00
|
|
|
flavorDimensions "abi"
|
|
|
|
|
2016-06-15 21:05:12 +02:00
|
|
|
productFlavors {
|
|
|
|
x86 {
|
2017-10-26 13:50:35 +02:00
|
|
|
dimension "abi"
|
2016-06-15 21:05:12 +02:00
|
|
|
ndk {
|
|
|
|
abiFilter "x86"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
mips {
|
2017-10-26 13:50:35 +02:00
|
|
|
dimension "abi"
|
2016-06-15 21:05:12 +02:00
|
|
|
ndk {
|
|
|
|
abiFilter "mips"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
armv7 {
|
2017-10-26 13:50:35 +02:00
|
|
|
dimension "abi"
|
2016-06-15 21:05:12 +02:00
|
|
|
ndk {
|
|
|
|
abiFilter "armeabi-v7a"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
armv5 {
|
2017-10-26 13:50:35 +02:00
|
|
|
dimension "abi"
|
2016-06-15 21:05:12 +02:00
|
|
|
ndk {
|
|
|
|
abiFilter "armeabi"
|
|
|
|
}
|
|
|
|
}
|
2017-10-26 13:50:35 +02:00
|
|
|
fat {
|
|
|
|
dimension "abi"
|
|
|
|
}
|
2016-06-15 21:05:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
debug {
|
|
|
|
signingConfig android.signingConfigs.debug
|
|
|
|
}
|
|
|
|
nativeDebug {
|
|
|
|
signingConfig android.signingConfigs.debug
|
|
|
|
}
|
|
|
|
release {
|
|
|
|
signingConfig android.signingConfigs.debug
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-12 18:01:03 +01:00
|
|
|
task collectMiscResources(type: Copy) {
|
|
|
|
into "src/net/osmand/osm"
|
|
|
|
from("../../resources/poi") {
|
|
|
|
include "poi_types.xml"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task collectRegionsInfoResources(type: Copy) {
|
|
|
|
from "../../resources/countries-info"
|
|
|
|
into "src/net/osmand/map"
|
|
|
|
include "regions.ocbf"
|
|
|
|
}
|
|
|
|
|
2016-11-16 19:36:31 +01:00
|
|
|
task collectRoutingResources(type: Sync) {
|
|
|
|
from "../../resources/routing"
|
|
|
|
into "src/net/osmand/router"
|
|
|
|
include "routing.xml"
|
|
|
|
}
|
|
|
|
|
2016-11-12 18:01:03 +01:00
|
|
|
tasks.withType(JavaCompile) {
|
2016-11-16 19:36:31 +01:00
|
|
|
compileTask -> compileTask.dependsOn << [collectMiscResources, collectRegionsInfoResources, collectRoutingResources]
|
2016-11-12 18:01:03 +01:00
|
|
|
}
|
|
|
|
|
2016-06-15 21:05:12 +02:00
|
|
|
repositories {
|
|
|
|
ivy {
|
|
|
|
name = "OsmAndBinariesIvy"
|
|
|
|
url = "http://builder.osmand.net"
|
|
|
|
layout "pattern" , {
|
|
|
|
artifact "ivy/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"
|
|
|
|
}
|
|
|
|
}
|
2018-03-31 13:11:33 +02:00
|
|
|
jcenter()
|
2016-06-15 21:05:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-04-15 02:51:24 +02:00
|
|
|
implementation project(path: ':OsmAnd-java', configuration: 'android')
|
2018-03-31 12:54:28 +02:00
|
|
|
|
2018-06-20 15:01:29 +02:00
|
|
|
implementation 'com.android.support:multidex:1.0.3'
|
|
|
|
implementation 'com.android.support:appcompat-v7:27.1.1'
|
|
|
|
implementation 'com.android.support:design:27.1.1'
|
2018-04-15 02:51:24 +02:00
|
|
|
implementation 'commons-logging:commons-logging-api:1.1'
|
|
|
|
implementation 'com.moparisthebest:junidecode:0.1.1'
|
2018-03-31 12:54:28 +02:00
|
|
|
|
2018-04-15 02:51:24 +02:00
|
|
|
implementation fileTree(include: ['gnu-trove-osmand.jar', 'icu4j-49_1_patched.jar'], dir: 'libs')
|
2018-03-31 12:54:28 +02:00
|
|
|
|
2018-04-15 02:51:24 +02:00
|
|
|
implementation "net.osmand:OsmAndCore_android:0.1-SNAPSHOT@aar"
|
|
|
|
debugImplementation "net.osmand:OsmAndCore_androidNativeRelease:0.1-SNAPSHOT@aar"
|
|
|
|
nativeDebugImplementation "net.osmand:OsmAndCore_androidNativeDebug:0.1-SNAPSHOT@aar"
|
|
|
|
releaseImplementation "net.osmand:OsmAndCore_androidNativeRelease:0.1-SNAPSHOT@aar"
|
2016-06-15 21:05:12 +02:00
|
|
|
}
|