[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
This commit is contained in:
@@ -18,7 +18,7 @@ repositories {
|
||||
}
|
||||
|
||||
ext {
|
||||
supportLibVersion = '23.4.0'
|
||||
supportLibVersion = '25.0.0'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
GROUP=com.mapbox.mapboxsdk
|
||||
VERSION_NAME=4.2.0-SNAPSHOT
|
||||
VERSION_NAME=5.0.0-SNAPSHOT
|
||||
|
||||
POM_DESCRIPTION=Mapbox GL Android SDK
|
||||
POM_URL=https://github.com/mapbox/mapbox-gl-native
|
||||
@@ -13,9 +13,9 @@ POM_DEVELOPER_ID=mapbox
|
||||
POM_DEVELOPER_NAME=Mapbox
|
||||
|
||||
ANDROID_MIN_SDK=15
|
||||
ANDROID_BUILD_TARGET_SDK_VERSION=23
|
||||
ANDROID_BUILD_TOOLS_VERSION=23.0.3
|
||||
ANDROID_BUILD_SDK_VERSION=23
|
||||
ANDROID_BUILD_TARGET_SDK_VERSION=25
|
||||
ANDROID_BUILD_TOOLS_VERSION=25.0.0
|
||||
ANDROID_BUILD_SDK_VERSION=25
|
||||
|
||||
POM_NAME=Mapbox Android SDK
|
||||
POM_ARTIFACT_ID=mapbox-android-sdk
|
||||
|
||||
@@ -23,19 +23,19 @@ gradle.projectsEvaluated {
|
||||
}
|
||||
|
||||
ext {
|
||||
supportLibVersion = '23.4.0'
|
||||
supportLibVersion = '25.0.0'
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 23
|
||||
buildToolsVersion "23.0.3"
|
||||
compileSdkVersion 25
|
||||
buildToolsVersion "25.0.0"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.mapbox.mapboxsdk.testapp"
|
||||
minSdkVersion 15
|
||||
targetSdkVersion 23
|
||||
versionCode 9
|
||||
versionName "4.1.0"
|
||||
targetSdkVersion 25
|
||||
versionCode 11
|
||||
versionName "5.0.0"
|
||||
|
||||
// Specify AndroidJUnitRunner as the default test instrumentation runner
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
@@ -101,9 +101,9 @@ dependencies {
|
||||
testCompile 'junit:junit:4.12'
|
||||
testCompile 'org.mockito:mockito-core:1.10.19'
|
||||
androidTestCompile "com.android.support:support-annotations:${supportLibVersion}"
|
||||
androidTestCompile 'com.android.support.test:runner:0.4.1'
|
||||
androidTestCompile 'com.android.support.test:rules:0.4.1'
|
||||
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.1'
|
||||
androidTestCompile 'com.android.support.test:runner:0.5'
|
||||
androidTestCompile 'com.android.support.test:rules:0.5'
|
||||
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
|
||||
androidTestCompile 'com.squareup.spoon:spoon-client:1.6.2'
|
||||
}
|
||||
|
||||
|
||||
@@ -20,15 +20,15 @@ gradle.projectsEvaluated {
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 24
|
||||
buildToolsVersion "24.0.2"
|
||||
compileSdkVersion 25
|
||||
buildToolsVersion "25.0.0"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.mapbox.mapboxsdk.testapp"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 24
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
targetSdkVersion 25
|
||||
versionCode 11
|
||||
versionName "5.0.0"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
@@ -45,9 +45,9 @@ dependencies {
|
||||
}
|
||||
|
||||
// Leak Canary
|
||||
androidTestCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta2'
|
||||
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4-beta2'
|
||||
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta2'
|
||||
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'
|
||||
|
||||
@@ -95,7 +95,7 @@ workflows:
|
||||
echo "Run tests on firebase:"
|
||||
gcloud auth activate-service-account --key-file secret.json --project android-gl-native
|
||||
gcloud beta test android devices list
|
||||
gcloud beta test android run --type instrumentation --app platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/MapboxGLAndroidSDKTestApp-debug.apk --test platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/MapboxGLAndroidSDKTestApp-debug-androidTest-unaligned.apk --device-ids shamu --os-version-ids 22 --locales en --orientations portrait --timeout 15m --test-targets "class com.mapbox.mapboxsdk.testapp.camera.RotateActivityTest"
|
||||
gcloud beta test android run --type instrumentation --app platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/MapboxGLAndroidSDKTestApp-debug.apk --test platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/MapboxGLAndroidSDKTestApp-debug-androidTest.apk --device-ids shamu --os-version-ids 22 --locales en --orientations portrait --timeout 15m --test-targets "class com.mapbox.mapboxsdk.testapp.camera.RotateActivityTest"
|
||||
echo "The details are made available as a zipped build artefact on top of this page."
|
||||
- script:
|
||||
title: Download Firebase results
|
||||
|
||||
@@ -4,7 +4,7 @@ buildscript {
|
||||
maven { url 'https://jitpack.io' }
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:2.1.3'
|
||||
classpath 'com.android.tools.build:gradle:2.2.2'
|
||||
classpath 'com.github.JakeWharton:sdk-manager-plugin:220bf7a88a7072df3ed16dc8466fb144f2817070'
|
||||
classpath 'com.amazonaws:aws-devicefarm-gradle-plugin:1.2'
|
||||
classpath 'com.stanfy.spoon:spoon-gradle-plugin:1.2.1'
|
||||
|
||||
Reference in New Issue
Block a user