Skip to content

Commit 044b399

Browse files
dulmandakhfacebook-github-bot
authored andcommitted
Bump compileSdkVersion to 27 and buildToolsVersion to 27.0.3 (#20777)
Summary: I found that android support library 27.x (874cca1) requires compileSdkVersion to be 27. Also found that many FB projects use SDK 27. Pull Request resolved: #20777 Differential Revision: D9478431 Pulled By: hramos fbshipit-source-id: ca100f6b5b39e7d112926124423f9510a0efc291
1 parent e3165c6 commit 044b399

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

.buckconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
[android]
3-
target = android-26
3+
target = android-27
44

55
[download]
66
max_number_of_retries = 3

.circleci/config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ aliases:
2828

2929
- &restore-cache-android-packages
3030
keys:
31-
- v1-android-sdkmanager-packages-api-26-alpha-{{ checksum "scripts/.tests.env" }}
31+
- v1-android-sdkmanager-packages-api-27-alpha-{{ checksum "scripts/.tests.env" }}
3232
- &save-cache-android-packages
3333
paths:
3434
- /opt/android/sdk
35-
key: v1-android-sdkmanager-packages-api-26-alpha-{{ checksum "scripts/.tests.env" }}
35+
key: v1-android-sdkmanager-packages-api-27-alpha-{{ checksum "scripts/.tests.env" }}
3636

3737
- &restore-cache-gradle
3838
keys:
@@ -334,7 +334,7 @@ js_defaults: &js_defaults
334334
android_defaults: &android_defaults
335335
<<: *defaults
336336
docker:
337-
- image: circleci/android:api-26-node8-alpha
337+
- image: circleci/android:api-27-node8-alpha
338338
resource_class: "large"
339339
environment:
340340
- TERM: "dumb"

ContainerShip/Dockerfile.android-base

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ LABEL maintainer="Héctor Ramos <[email protected]>"
1818

1919
# set default build arguments
2020
ARG SDK_VERSION=sdk-tools-linux-3859397.zip
21-
ARG ANDROID_BUILD_VERSION=26
22-
ARG ANDROID_TOOLS_VERSION=26.0.3
21+
ARG ANDROID_BUILD_VERSION=27
22+
ARG ANDROID_TOOLS_VERSION=27.0.3
2323
ARG BUCK_VERSION=v2018.07.23.01
2424
ARG NDK_VERSION=17b
2525
ARG NODE_VERSION=8.10.0

RNTester/android/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ def enableSeparateBuildPerCPUArchitecture = false
8484
def enableProguardInReleaseBuilds = true
8585

8686
android {
87-
compileSdkVersion 26
88-
buildToolsVersion "26.0.3"
87+
compileSdkVersion 27
88+
buildToolsVersion "27.0.3"
8989

9090
defaultConfig {
9191
applicationId "com.facebook.react.uiapp"

ReactAndroid/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ task packageReactNdkLibsForBuck(dependsOn: packageReactNdkLibs, type: Copy) {
245245
}
246246

247247
android {
248-
compileSdkVersion 26
249-
buildToolsVersion "26.0.3"
248+
compileSdkVersion 27
249+
buildToolsVersion "27.0.3"
250250

251251
defaultConfig {
252252
minSdkVersion 16

appveyor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
environment:
22
ANDROID_HOME: "C:\\android-sdk-windows"
33
ANDROID_NDK: "C:\\android-sdk-windows\\android-ndk-r17b"
4-
ANDROID_BUILD_VERSION: 26
5-
ANDROID_TOOLS_VERSION: 26.0.3
4+
ANDROID_BUILD_VERSION: 27
5+
ANDROID_TOOLS_VERSION: 27.0.3
66

77
GRADLE_OPTS: -Dorg.gradle.daemon=false
88

local-cli/templates/HelloWorld/android/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ allprojects {
3232
}
3333

3434
ext {
35-
buildToolsVersion = "26.0.3"
35+
buildToolsVersion = "27.0.3"
3636
minSdkVersion = 16
37-
compileSdkVersion = 26
37+
compileSdkVersion = 27
3838
targetSdkVersion = 26
3939
supportLibVersion = "27.1.1"
4040
}

scripts/.tests.env

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
## ANDROID ##
66
# Android SDK Build Tools revision
7-
export ANDROID_SDK_BUILD_TOOLS_REVISION=26.0.3
7+
export ANDROID_SDK_BUILD_TOOLS_REVISION=27.0.3
88
# Android API Level we build with
9-
export ANDROID_SDK_BUILD_API_LEVEL="26"
9+
export ANDROID_SDK_BUILD_API_LEVEL="27"
1010
# Google APIs for Android level
1111
export ANDROID_GOOGLE_API_LEVEL="23"
1212
# Minimum Android API Level we target

0 commit comments

Comments
 (0)