OsmAnd/plugins/Osmand-SRTMPlugin/build.gradle
Roman Inflianskas 5944fccd36 Fix idea dependency error.
On dependency changes in File -> Project structure... I get following errors (for 3 projects):

{% for project in ['Osmand', 'Osmand-SRTMPlugin', 'Osmand-ParkingPlugin'] %}
  Module "{{ project }}"
  must not contain source root
  "~/osmand/android/plugins/{{ project }}/src".
  The root already belongs to module "{{ project }}"
{% endfor %}

This is due duplicate lines in "{{ project }}.iml" file that is
generated based on "build.gradle" files.

This commit fixes this situation.
2016-06-08 19:37:11 +03:00

66 lines
1.2 KiB
Groovy

apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "23.0.1"
signingConfigs {
development {
storeFile file("../../keystores/debug.keystore")
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
}
publishing {
storeFile file("../../osmand_key")
storePassword System.getenv("OSMAND_APK_PASSWORD")
keyAlias "androiddebugkey"
keyPassword System.getenv("OSMAND_APK_PASSWORD")
}
}
defaultConfig {
minSdkVersion 9
targetSdkVersion 21
}
lintOptions {
abortOnError false
}
sourceSets {
main {
manifest.srcFile "AndroidManifest.xml"
jni.srcDirs = []
jniLibs.srcDirs = []
aidl.srcDirs = ["src"]
java.srcDirs = ["src"]
renderscript.srcDirs = ["src"]
res.srcDirs = ["res"]
assets.srcDirs = ["assets"]
}
}
buildTypes {
debug {
signingConfig signingConfigs.development
}
release {
signingConfig signingConfigs.publishing
}
}
}
repositories {
ivy {
name = "OsmAndBinariesIvy"
url = "http://builder.osmand.net"
layout "pattern", {
artifact "ivy/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"
}
}
}
dependencies {
}