Files
MapLibreParticleLab/platform/android/MapboxGLAndroidSDKWearTestApp/build.gradle
Tobrun e7bfa7849e [android] - Update to Android Studio 2.2.2 with tools/dependencies (#6390)
* [android] - update android gradle tools, update test app version number, update target sdk to nougat, update support lib versions to latest

* new tools generated an aligned test apk, breaks CI integration

* update to Nougat release 7.1, update related tooling, update version code test app to 5.0.0.

* update wear module

* update gradle.properties
2016-10-26 16:09:51 +02:00

57 lines
1.7 KiB
Groovy

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"
defaultConfig {
applicationId "com.mapbox.mapboxsdk.testapp"
minSdkVersion 21
targetSdkVersion 25
versionCode 11
versionName "5.0.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile(project(':MapboxGLAndroidSDK')) {
transitive = true
}
// 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'