summaryrefslogtreecommitdiff
path: root/platform/android/gradle
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/gradle')
-rw-r--r--platform/android/gradle/dependencies.gradle2
-rw-r--r--platform/android/gradle/download-schema.gradle8
2 files changed, 9 insertions, 1 deletions
diff --git a/platform/android/gradle/dependencies.gradle b/platform/android/gradle/dependencies.gradle
index 0cd3a2e7fe..f9c6f2ac1b 100644
--- a/platform/android/gradle/dependencies.gradle
+++ b/platform/android/gradle/dependencies.gradle
@@ -52,7 +52,7 @@ ext {
testEspressoIntents : "com.android.support.test.espresso:espresso-intents:${versions.espresso}",
testEspressoContrib : "com.android.support.test.espresso:espresso-contrib:${versions.espresso}",
testUiAutomator : "com.android.support.test.uiautomator:uiautomator-v18:${versions.uiAutomator}",
-
+ commonsIO : 'commons-io:commons-io:2.5',
supportAnnotations : "com.android.support:support-annotations:${versions.supportLib}",
supportAppcompatV7 : "com.android.support:appcompat-v7:${versions.supportLib}",
supportFragmentV4 : "com.android.support:support-fragment:${versions.supportLib}",
diff --git a/platform/android/gradle/download-schema.gradle b/platform/android/gradle/download-schema.gradle
new file mode 100644
index 0000000000..3d3beac651
--- /dev/null
+++ b/platform/android/gradle/download-schema.gradle
@@ -0,0 +1,8 @@
+task downloadSchema(type: Copy) {
+ def address='https://mapbox.s3.amazonaws.com/mapbox-gl-native/event-schema/mobile-event-schemas.jsonl.gz'
+ def target='MapboxGLAndroidSDK/src/test/resources/'
+
+ new File(target + "${address.tokenize('/')[-1]}").withOutputStream { out ->
+ new URL(address).withInputStream { from -> out << from }
+ }
+} \ No newline at end of file