summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobrun <tobrun@mapbox.com>2017-05-04 11:13:54 +0200
committerGitHub <noreply@github.com>2017-05-04 11:13:54 +0200
commit1b16be409a24ee89c7d608750fb4626fd08e1841 (patch)
tree21c64e85043e5ebbd188d31de20d035a26efe49d
parent3790caafa3c98706c5cf0618c8aec592b2780bba (diff)
downloadqtlocation-mapboxgl-1b16be409a24ee89c7d608750fb4626fd08e1841.tar.gz
[android] - only build custom layer for debug builds (#8885)
-rw-r--r--platform/android/MapboxGLAndroidSDK/build.gradle8
1 files changed, 6 insertions, 2 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/build.gradle b/platform/android/MapboxGLAndroidSDK/build.gradle
index f2d28e53d1..d3396d7eb5 100644
--- a/platform/android/MapboxGLAndroidSDK/build.gradle
+++ b/platform/android/MapboxGLAndroidSDK/build.gradle
@@ -31,7 +31,7 @@ android {
buildConfigField "String", "MAPBOX_EVENTS_USER_AGENT", String.format("\"MapboxEventsAndroid/%s\"", project.VERSION_NAME)
}
- defaultPublishConfig project.hasProperty("mapbox.buildtype") ? project.getProperty("mapbox.buildtype") : "debug"
+ defaultPublishConfig project.hasProperty("mapbox.buildtype") ? project.getProperty("mapbox.buildtype") : "debug"
// We sometimes want to invoke Gradle without building a native dependency, e.g. when we just want
// to invoke the Java tests. When we explicitly specify an ABI of 'none', no native dependencies are
@@ -76,7 +76,11 @@ android {
}
targets "mapbox-gl"
- targets "example-custom-layer"
+
+ if (defaultPublishConfig.equalsIgnoreCase("debug")) {
+ targets "example-custom-layer"
+ }
+
if (project.hasProperty("mapbox.with_test")) {
targets "mbgl-test"
}