Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[android] - only build custom layer for debug builds #8885

Merged
merged 1 commit into from
May 4, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions platform/android/MapboxGLAndroidSDK/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
}
Expand Down