diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2015-11-12 13:20:57 +0100 |
---|---|---|
committer | Tobrun <tobrun.van.nuland@gmail.com> | 2015-11-13 08:52:32 +0100 |
commit | 569399c1ae6cf4796eca1101e0d80e5b315db2c4 (patch) | |
tree | 0d32c3475cbed523db5933d758cf50745694e046 /android/MapboxGLAndroidSDKTestApp | |
parent | f9ebe54a6336431af98ebfb428d28a0513b2522d (diff) | |
download | qtlocation-mapboxgl-569399c1ae6cf4796eca1101e0d80e5b315db2c4.tar.gz |
[android] #2989 - moved access token to test app
[android] #2989 - gitignoring config.xml
[android] #2989 - move token file, rename
[android] #2989 fixing gitignore, renaming config file
Diffstat (limited to 'android/MapboxGLAndroidSDKTestApp')
-rw-r--r-- | android/MapboxGLAndroidSDKTestApp/build.gradle | 17 | ||||
-rw-r--r-- | android/MapboxGLAndroidSDKTestApp/src/main/res/values/developer-config.xml | 4 |
2 files changed, 4 insertions, 17 deletions
diff --git a/android/MapboxGLAndroidSDKTestApp/build.gradle b/android/MapboxGLAndroidSDKTestApp/build.gradle index fbfc00376f..7283d2d067 100644 --- a/android/MapboxGLAndroidSDKTestApp/build.gradle +++ b/android/MapboxGLAndroidSDKTestApp/build.gradle @@ -15,23 +15,6 @@ apply plugin: 'com.android.application' apply plugin: 'io.fabric' apply plugin: 'checkstyle' -task accessToken { - def rawDir = new File("MapboxGLAndroidSDK/src/main/res/raw") - rawDir.mkdirs() - def tokenFile = new File("MapboxGLAndroidSDK/src/main/res/raw/token.txt") - if (!tokenFile.exists()) { - String token = "$System.env.MAPBOX_ACCESS_TOKEN" - if (token == null) { - throw new InvalidUserDataException("You must set the MAPBOX_ACCESS_TOKEN environment variable.") - } - tokenFile.write(token) - } -} - -gradle.projectsEvaluated { - preBuild.dependsOn('accessToken') -} - android { compileSdkVersion 23 buildToolsVersion "23.0.2" diff --git a/android/MapboxGLAndroidSDKTestApp/src/main/res/values/developer-config.xml b/android/MapboxGLAndroidSDKTestApp/src/main/res/values/developer-config.xml new file mode 100644 index 0000000000..02305f1feb --- /dev/null +++ b/android/MapboxGLAndroidSDKTestApp/src/main/res/values/developer-config.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <string name="access_token">null</string> +</resources>
\ No newline at end of file |