diff options
| author | Tobrun <tobrun.van.nuland@gmail.com> | 2016-11-07 09:25:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-07 09:25:17 +0100 |
| commit | c5992d71f5b011e6b664532fdc2abbb8d3c51a0b (patch) | |
| tree | 644fa91098429f7eaf3334a7d262ca36393b12f0 /platform/android/MapboxGLAndroidSDKWearTestApp | |
| parent | afd43eea3aeaf1123a75637d6b008971a3519396 (diff) | |
| download | qtlocation-mapboxgl-c5992d71f5b011e6b664532fdc2abbb8d3c51a0b.tar.gz | |
[android] - cleanup unused resources and gradle configurations. (#6896)
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKWearTestApp')
| -rw-r--r-- | platform/android/MapboxGLAndroidSDKWearTestApp/build.gradle | 30 | ||||
| -rw-r--r-- | platform/android/MapboxGLAndroidSDKWearTestApp/gradle-config.gradle | 22 |
2 files changed, 28 insertions, 24 deletions
diff --git a/platform/android/MapboxGLAndroidSDKWearTestApp/build.gradle b/platform/android/MapboxGLAndroidSDKWearTestApp/build.gradle index 6955fa5961..cf03539edb 100644 --- a/platform/android/MapboxGLAndroidSDKWearTestApp/build.gradle +++ b/platform/android/MapboxGLAndroidSDKWearTestApp/build.gradle @@ -1,24 +1,5 @@ apply plugin: 'com.android.application' -task accessToken { - def tokenFile = new File("MapboxGLAndroidSDKWearTestApp/src/main/res/values/developer-config.xml") - if (!tokenFile.exists()) { - String tokenFileContents = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + - "<resources>\n" + - " <string name=\"mapbox_access_token\">" + "$System.env.MAPBOX_ACCESS_TOKEN" + "</string>\n" + - "</resources>" - - if (tokenFileContents == null) { - throw new InvalidUserDataException("You must set the MAPBOX_ACCESS_TOKEN environment variable.") - } - tokenFile.write(tokenFileContents) - } -} - -gradle.projectsEvaluated { - preBuild.dependsOn('accessToken') -} - android { compileSdkVersion 25 buildToolsVersion "25.0.0" @@ -44,14 +25,15 @@ dependencies { transitive = true } + // Wear + compile fileTree(dir: 'libs', include: ['*.jar']) + compile 'com.google.android.support:wearable:2.0.0-alpha3' + provided 'com.google.android.wearable:wearable:2.0.0-alpha3' + // Leak Canary debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5' releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5' testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5' - - compile fileTree(dir: 'libs', include: ['*.jar']) - compile 'com.google.android.support:wearable:2.0.0-alpha3' - provided 'com.google.android.wearable:wearable:2.0.0-alpha3' } -apply from: '../checkstyle.gradle'
\ No newline at end of file +apply from: 'gradle-config.gradle' diff --git a/platform/android/MapboxGLAndroidSDKWearTestApp/gradle-config.gradle b/platform/android/MapboxGLAndroidSDKWearTestApp/gradle-config.gradle new file mode 100644 index 0000000000..fac47cb2a9 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKWearTestApp/gradle-config.gradle @@ -0,0 +1,22 @@ +// +// Configuration file for gradle build execution. +// + +task accessToken { + def tokenFile = new File("MapboxGLAndroidSDKWearTestApp/src/main/res/values/developer-config.xml") + if (!tokenFile.exists()) { + String tokenFileContents = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + + "<resources>\n" + + " <string name=\"mapbox_access_token\">" + "$System.env.MAPBOX_ACCESS_TOKEN" + "</string>\n" + + "</resources>" + + if (tokenFileContents == null) { + throw new InvalidUserDataException("You must set the MAPBOX_ACCESS_TOKEN environment variable.") + } + tokenFile.write(tokenFileContents) + } +} + +gradle.projectsEvaluated { + preBuild.dependsOn('accessToken') +}
\ No newline at end of file |
