[android] #2462 updated build.grade to handle correct path for api token

This commit is contained in:
Tobrun
2015-10-08 10:47:42 +02:00
committed by Brad Leege
parent e74445005a
commit 63887f8a23

View File

@@ -16,9 +16,9 @@ apply plugin: 'io.fabric'
apply plugin: 'checkstyle'
task accessToken {
def rawDir = new File("MapboxGLAndroidSDKTestApp/src/main/res/raw")
def rawDir = new File("MapboxGLAndroidSDK/src/main/res/raw")
rawDir.mkdirs()
def tokenFile = new File("MapboxGLAndroidSDKTestApp/src/main/res/raw/token.txt")
def tokenFile = new File("MapboxGLAndroidSDK/src/main/res/raw/token.txt")
if (!tokenFile.exists()) {
String token = "$System.env.MAPBOX_ACCESS_TOKEN"
if (token == null) {