Skip to content

Commit a17ff44

Browse files
JoshuaGrossfacebook-github-bot
authored andcommitted
Upgrade minsdkversion of RN OSS template to API level 21
Summary: This diff updates the minsdkversion of RN OSS template to API level 21. Changelog: [Android][Deprecated] Deprecate support of Android API levels 19 and 20. The new minSDK version will be 21+ moving forward. Reviewed By: fkgozali Differential Revision: D24379607 fbshipit-source-id: 6801cdcd363065807cdc11006bd94217f914fac7
1 parent 36b0f7d commit a17ff44

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

.circleci/Dockerfiles/scripts/run-android-docker-instrumentation-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mount -o remount,exec /dev/shm
1010
AVD_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
1111

1212
# create virtual device
13-
echo no | android create avd -n "$AVD_UUID" -f -t android-19 --abi default/armeabi-v7a
13+
echo no | android create avd -n "$AVD_UUID" -f -t android-21 --abi default/armeabi-v7a
1414

1515
# emulator setup
1616
emulator64-arm -avd $AVD_UUID -no-skin -no-audio -no-window -no-boot-anim &

.circleci/Dockerfiles/scripts/run-ci-e2e-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function e2e_suite() {
109109

110110
# create virtual device
111111
if ! android list avd | grep "$AVD_UUID" > /dev/null; then
112-
echo no | android create avd -n "$AVD_UUID" -f -t android-19 --abi default/armeabi-v7a
112+
echo no | android create avd -n "$AVD_UUID" -f -t android-21 --abi default/armeabi-v7a
113113
fi
114114

115115
# newline at end of adb devices call and first line is headers

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ jobs:
642642
name: Setup Android SDKs
643643
command: |
644644
sdkmanager --licenses
645-
sdkmanager "system-images;android-19;google_apis;armeabi-v7a"
645+
sdkmanager "system-images;android-21;google_apis;armeabi-v7a"
646646
sdkmanager "platforms;android-%ANDROID_BUILD_VERSION%"
647647
sdkmanager "build-tools;%ANDROID_TOOLS_VERSION%"
648648
sdkmanager "add-ons;addon-google_apis-google-23"

ReactAndroid/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ android {
393393
}
394394

395395
defaultConfig {
396-
minSdkVersion(19)
396+
minSdkVersion(21)
397397
targetSdkVersion(28)
398398
versionCode(1)
399399
versionName("1.0")

ReactAndroid/src/main/jni/Application.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
APP_BUILD_SCRIPT := Android.mk
77

88
APP_ABI := armeabi-v7a x86 arm64-v8a x86_64
9-
APP_PLATFORM := android-16
9+
APP_PLATFORM := android-21
1010

1111
APP_MK_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
1212

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ android {
147147

148148
defaultConfig {
149149
applicationId "com.facebook.react.uiapp"
150-
minSdkVersion 19
150+
minSdkVersion 21
151151
targetSdkVersion 29
152152
versionCode 1
153153
versionName "1.0"
@@ -250,7 +250,7 @@ if (enableCodegen) {
250250
externalNativeBuild {
251251
ndkBuild {
252252
abiFilters "armeabi-v7a", "x86", "x86_64", "arm64-v8a"
253-
arguments "APP_PLATFORM=android-16",
253+
arguments "APP_PLATFORM=android-21",
254254
"APP_STL=c++_shared",
255255
"NDK_TOOLCHAIN_VERSION=clang",
256256
// The following paths assume building React Native from source.

template/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
buildscript {
44
ext {
55
buildToolsVersion = "29.0.3"
6-
minSdkVersion = 19
6+
minSdkVersion = 21
77
compileSdkVersion = 29
88
targetSdkVersion = 29
99
ndkVersion = "20.1.5948944"

0 commit comments

Comments
 (0)