diff options
Diffstat (limited to 'android/MapboxGLAndroidSDKTestApp/build.gradle')
-rw-r--r-- | android/MapboxGLAndroidSDKTestApp/build.gradle | 17 |
1 files changed, 0 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" |