Skip to content

Commit 394486e

Browse files
makovkastarfacebook-github-bot
authored andcommitted
Bump OSS Android build to SDK 33 (#35196)
Summary: Pull Request resolved: #35196 Changelog: [Android][Changed] - Bump Android compile and target SDK to 33 Reviewed By: cortinico Differential Revision: D41007003 fbshipit-source-id: e7866107fdcfafa778faa6c7f31835b8dd15647a
1 parent 669318d commit 394486e

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

.circleci/Dockerfiles/Dockerfile.android

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# and build a Android application that can be used to run the
1515
# tests specified in the scripts/ directory.
1616
#
17-
FROM reactnativecommunity/react-native-android:6.0
17+
FROM reactnativecommunity/react-native-android:6.1
1818

1919
LABEL Description="React Native Android Test Image"
2020
LABEL maintainer="Héctor Ramos <[email protected]>"

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ executors:
102102
reactnativeandroid:
103103
<<: *defaults
104104
docker:
105-
- image: reactnativecommunity/react-native-android:6.0
105+
- image: reactnativecommunity/react-native-android:6.1
106106
resource_class: "xlarge"
107107
environment:
108108
- TERM: "dumb"
@@ -964,8 +964,8 @@ jobs:
964964
environment:
965965
- ANDROID_HOME: "C:\\Android\\android-sdk"
966966
- ANDROID_NDK: "C:\\Android\\android-sdk\\ndk\\20.1.5948944"
967-
- ANDROID_BUILD_VERSION: 31
968-
- ANDROID_TOOLS_VERSION: 31.0.0
967+
- ANDROID_BUILD_VERSION: 33
968+
- ANDROID_TOOLS_VERSION: 33.0.0
969969
- GRADLE_OPTS: -Dorg.gradle.daemon=false
970970
steps:
971971
- checkout_code_with_cache

ReactAndroid/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ task installArchives {
363363
}
364364

365365
android {
366-
buildToolsVersion = "31.0.0"
367-
compileSdkVersion 31
366+
buildToolsVersion = "33.0.0"
367+
compileSdkVersion 33
368368

369369
// Used to override the NDK path/version on internal CI or by allowing
370370
// users to customize the NDK path/version from their root project (e.g. for M1 support)
@@ -377,7 +377,7 @@ android {
377377

378378
defaultConfig {
379379
minSdkVersion(21)
380-
targetSdkVersion(31)
380+
targetSdkVersion(33)
381381
versionCode(1)
382382
versionName("1.0")
383383

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"prettier": "prettier --write \"./**/*.{js,md,yml,ts,tsx}\"",
8787
"format-check": "prettier --list-different \"./**/*.{js,md,yml,ts,tsx}\"",
8888
"update-lock": "npx yarn-deduplicate",
89-
"docker-setup-android": "docker pull reactnativecommunity/react-native-android:6.0",
89+
"docker-setup-android": "docker pull reactnativecommunity/react-native-android:6.1",
9090
"docker-build-android": "docker build -t reactnativeci/android -f .circleci/Dockerfiles/Dockerfile.android .",
9191
"test-android-run-instrumentation": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash .circleci/Dockerfiles/scripts/run-android-docker-instrumentation-tests.sh",
9292
"test-android-run-unit": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash .circleci/Dockerfiles/scripts/run-android-docker-unit-tests.sh",

packages/rn-tester/android/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ def reactNativeArchitectures() {
8686
}
8787

8888
android {
89-
buildToolsVersion = "31.0.0"
90-
compileSdkVersion 31
89+
buildToolsVersion = "33.0.0"
90+
compileSdkVersion 33
9191
namespace "com.facebook.react.uiapp"
9292

9393
// Used to override the NDK path/version on internal CI or by allowing
@@ -114,7 +114,7 @@ android {
114114
defaultConfig {
115115
applicationId "com.facebook.react.uiapp"
116116
minSdkVersion 21
117-
targetSdkVersion 31
117+
targetSdkVersion 33
118118
versionCode 1
119119
versionName "1.0"
120120
testBuildType System.getProperty('testBuildType', 'debug') // This will later be used to control the test apk build type

scripts/.tests.env

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
## ANDROID ##
66
# Android SDK Build Tools revision
7-
export ANDROID_SDK_BUILD_TOOLS_REVISION=31.0.0
7+
export ANDROID_SDK_BUILD_TOOLS_REVISION=33.0.0
88
# Android API Level we build with
9-
export ANDROID_SDK_BUILD_API_LEVEL="31"
9+
export ANDROID_SDK_BUILD_API_LEVEL="33"
1010
# Google APIs for Android level
1111
export ANDROID_GOOGLE_API_LEVEL="23"
1212
# Minimum Android API SDK Level we target
1313
export ANDROID_SDK_MINIMUM_API_LEVEL="21"
1414
# Target API SDK level to build for
15-
export ANDROID_SDK_TARGET_API_LEVEL="31"
15+
export ANDROID_SDK_TARGET_API_LEVEL="33"
1616
# Android Image SDK level to install on the emulator
1717
export ANDROID_SYSTEM_IMAGE_API_LEVEL="21"
1818

template/android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
buildscript {
44
ext {
5-
buildToolsVersion = "31.0.0"
5+
buildToolsVersion = "33.0.0"
66
minSdkVersion = 21
7-
compileSdkVersion = 31
8-
targetSdkVersion = 31
7+
compileSdkVersion = 33
8+
targetSdkVersion = 33
99

1010
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
1111
ndkVersion = "23.1.7779620"

0 commit comments

Comments
 (0)