Grab access token from environment

This commit is contained in:
Leith Bade
2015-01-13 21:14:44 +11:00
parent d29fe6fe92
commit 65e6990582
2 changed files with 10 additions and 1 deletions

View File

@@ -1,5 +1,14 @@
apply plugin: 'com.android.application'
task accessToken {
def tokenFile = new File("app/src/main/res/raw/token.txt")
tokenFile.write(System.getenv('MAPBOX_ACCESS_TOKEN'))
}
gradle.projectsEvaluated {
preBuild.dependsOn('accessToken')
}
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"