2018-06-15 15:17:35 +02:00
|
|
|
apply plugin: 'java'
|
|
|
|
|
|
|
|
|
2015-02-03 10:13:11 +01:00
|
|
|
configurations {
|
|
|
|
android
|
|
|
|
}
|
|
|
|
|
2018-06-15 16:51:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
task collectRoutingResources(type: Sync) {
|
|
|
|
from "../../resources/routing"
|
|
|
|
into "src/main/resources/net/osmand/router"
|
|
|
|
include "*.xml"
|
|
|
|
}
|
|
|
|
|
|
|
|
task collectMiscResources(type: Copy) {
|
|
|
|
into "src/main/resources/net/osmand/osm"
|
|
|
|
from("../../resources/obf_creation") {
|
|
|
|
include "rendering_types.xml"
|
|
|
|
}
|
|
|
|
from("../../resources/poi") {
|
|
|
|
include "poi_types.xml"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task collectRenderingStylesResources(type: Sync) {
|
|
|
|
from "../../resources/rendering_styles"
|
|
|
|
into "src/main/resources/net/osmand/render"
|
|
|
|
include "*.xml"
|
|
|
|
}
|
|
|
|
|
|
|
|
task collectRegionsInfoResources(type: Copy) {
|
|
|
|
from "../../resources/countries-info"
|
|
|
|
into "src/main/resources/net/osmand/map"
|
|
|
|
include "regions.ocbf"
|
|
|
|
}
|
|
|
|
|
|
|
|
task collectTestResources(type: Copy) {
|
|
|
|
from "../../resources/test-resources"
|
|
|
|
into "src/main/test/resources/"
|
|
|
|
include "regions.ocbf"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
task collectExternalResources {
|
|
|
|
dependsOn collectRoutingResources,
|
|
|
|
collectRenderingStylesResources,
|
|
|
|
collectRegionsInfoResources,
|
|
|
|
collectTestResources,
|
|
|
|
collectMiscResources
|
|
|
|
}
|
|
|
|
|
2015-02-03 10:13:11 +01:00
|
|
|
task androidJar(type: Jar) {
|
2018-06-15 16:51:43 +02:00
|
|
|
dependsOn collectExternalResources
|
2015-02-03 10:13:11 +01:00
|
|
|
appendix = "android"
|
2018-06-15 16:51:43 +02:00
|
|
|
from(sourceSets.main.java.outputDir) {
|
|
|
|
exclude("**/PlatformUtil.*")
|
|
|
|
}
|
|
|
|
from sourceSets.main.resources
|
2015-02-03 10:13:11 +01:00
|
|
|
}
|
|
|
|
|
2018-06-15 16:51:43 +02:00
|
|
|
|
2015-02-03 10:13:11 +01:00
|
|
|
artifacts {
|
|
|
|
android androidJar
|
2014-12-16 12:23:45 +01:00
|
|
|
}
|
|
|
|
|
2018-06-15 16:51:43 +02:00
|
|
|
|
2014-12-16 12:23:45 +01:00
|
|
|
dependencies {
|
2018-06-15 14:54:55 +02:00
|
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
testImplementation 'com.google.code.gson:gson:2.8.2'
|
|
|
|
testImplementation 'org.hamcrest:hamcrest-core:1.3'
|
|
|
|
|
|
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
2014-12-16 12:23:45 +01:00
|
|
|
}
|
2016-06-29 20:23:33 +02:00
|
|
|
|