fix unable to find developer-config xml when building the project (#7963)

This commit is contained in:
Pablo Guardiola
2017-02-07 17:17:10 +01:00
committed by GitHub
parent 3916090a24
commit d9f2cd5df5

View File

@@ -3,7 +3,7 @@
//
task accessToken {
def tokenFile = new File("MapboxGLAndroidSDKTestApp/src/main/res/values/developer-config.xml")
def tokenFile = new File("${projectDir}/src/main/res/values/developer-config.xml")
if (!tokenFile.exists()) {
String tokenFileContents = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" +
"<resources>\n" +