Skip to content

Commit 68c7999

Browse files
hramosfacebook-github-bot
authored andcommitted
Downgrade to compileSdkVersion 26
Summary: Go back to using compileSdkVersion 26 and targetSdkVersion 26, temporarily. We can re-add this once Android SDK 27 becomes available in Facebook's internal repository. The Android SDK Build Tools 27.0.3 **are** available, so we can continue using those. Reviewed By: axe-fb Differential Revision: D9886607 fbshipit-source-id: 6c1c9c1e1309c3a0483cc4c0bd8dcb4a5f29fc7e
1 parent 44dc283 commit 68c7999

File tree

8 files changed

+13
-14
lines changed

8 files changed

+13
-14
lines changed

.buckconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

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

55
[download]
66
max_number_of_retries = 3

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
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-27-alpha-{{ checksum "scripts/.tests.env" }}
31+
- v1-android-sdkmanager-packages-api-26-alpha-{{ checksum "scripts/.tests.env" }}
3232
- &save-cache-android-packages
3333
paths:
3434
- /opt/android/sdk
35-
key: v1-android-sdkmanager-packages-api-27-alpha-{{ checksum "scripts/.tests.env" }}
35+
key: v1-android-sdkmanager-packages-api-26-alpha-{{ checksum "scripts/.tests.env" }}
3636

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

ContainerShip/Dockerfile.android-base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ 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=27
21+
ARG ANDROID_BUILD_VERSION=26
2222
ARG ANDROID_TOOLS_VERSION=27.0.3
2323
ARG BUCK_VERSION=v2018.07.23.01
2424
ARG NDK_VERSION=17b

RNTester/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ def enableSeparateBuildPerCPUArchitecture = false
8484
def enableProguardInReleaseBuilds = true
8585

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

9090
defaultConfig {
9191
applicationId "com.facebook.react.uiapp"
9292
minSdkVersion 16
93-
targetSdkVersion 27
93+
targetSdkVersion 26
9494
versionCode 1
9595
versionName "1.0"
9696
ndk {

ReactAndroid/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,12 @@ task packageReactNdkLibsForBuck(dependsOn: packageReactNdkLibs, type: Copy) {
246246
}
247247

248248
android {
249-
compileSdkVersion 27
249+
compileSdkVersion 26
250250
buildToolsVersion "27.0.3"
251251

252252
defaultConfig {
253253
minSdkVersion 16
254-
targetSdkVersion 27
254+
targetSdkVersion 26
255255
versionCode 1
256256
versionName "1.0"
257257

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
environment:
22
ANDROID_HOME: "C:\\android-sdk-windows"
33
ANDROID_NDK: "C:\\android-sdk-windows\\android-ndk-r17b"
4-
ANDROID_BUILD_VERSION: 27
4+
ANDROID_BUILD_VERSION: 26
55
ANDROID_TOOLS_VERSION: 27.0.3
66

77
GRADLE_OPTS: -Dorg.gradle.daemon=false

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ buildscript {
44
ext {
55
buildToolsVersion = "27.0.3"
66
minSdkVersion = 16
7-
compileSdkVersion = 27
8-
targetSdkVersion = 27
7+
compileSdkVersion = 26
8+
targetSdkVersion = 26
99
supportLibVersion = "27.1.1"
1010
}
1111
repositories {

scripts/.tests.env

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Android SDK Build Tools revision
77
export ANDROID_SDK_BUILD_TOOLS_REVISION=27.0.3
88
# Android API Level we build with
9-
export ANDROID_SDK_BUILD_API_LEVEL="27"
9+
export ANDROID_SDK_BUILD_API_LEVEL="26"
1010
# Google APIs for Android level
1111
export ANDROID_GOOGLE_API_LEVEL="23"
1212
# Minimum Android API Level we target
@@ -31,4 +31,3 @@ if [ $CI ]; then
3131
# Use ARM on Circle CI
3232
export AVD_ABI=armeabi-v7a
3333
fi
34-

0 commit comments

Comments
 (0)