summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidModuleHttp/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/MapboxGLAndroidModuleHttp/build.gradle')
-rw-r--r--platform/android/MapboxGLAndroidModuleHttp/build.gradle29
1 files changed, 29 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidModuleHttp/build.gradle b/platform/android/MapboxGLAndroidModuleHttp/build.gradle
new file mode 100644
index 0000000000..c31f28b1e1
--- /dev/null
+++ b/platform/android/MapboxGLAndroidModuleHttp/build.gradle
@@ -0,0 +1,29 @@
+apply plugin: 'com.android.library'
+
+android {
+ compileSdkVersion androidVersions.compileSdkVersion
+
+ defaultConfig {
+ minSdkVersion androidVersions.minSdkVersion
+ targetSdkVersion androidVersions.targetSdkVersion
+ versionCode 1
+ versionName "1.0"
+ buildConfigField "String", "GIT_REVISION_SHORT", String.format("\"%s\"", getGitRevision())
+ buildConfigField "String", "MAPBOX_VERSION_STRING", String.format("\"Mapbox/%s\"", project.VERSION_NAME)
+ }
+}
+
+dependencies {
+ api(project(':MapboxGLAndroidModuleBase'))
+ implementation dependenciesList.okhttp3
+ implementation dependenciesList.supportAnnotations
+ implementation dependenciesList.timber
+}
+
+def static getGitRevision() {
+ def cmd = "git rev-parse --short HEAD"
+ def proc = cmd.execute()
+ def ref = proc.text.trim()
+ return ref
+}
+