Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Switch to Android SDK 30 & update gradle #11647

Merged
merged 8 commits into from
Jan 27, 2021

Conversation

bbarthec
Copy link
Contributor

@bbarthec bbarthec commented Jan 16, 2021

Prerequisites

Why

We want to switch to Android SDK 30.

How

  • I've bumped targetSdkVersion to 30
  • I've bumped compileSdkVersion to 30
  • I've fixed nullability issues coming from

Test Plan

  • compiled & run Expo Go on Android SDK 30 simulator
  • compiled & run bare-expo on Android SDK 30 simulator
  • launched ncl in Expo Go and played for a while

TODOs

  • Add CHANGELOG entries
  • Make CI green

After this PR is merged

  • go through every screen in ncl and every test in test-suite and detect any regressions
  • go through changes that are introduced in Android SDK 30 and conform to them

Copy link
Member

@tsapeta tsapeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 👍
Have you read this https://developer.android.com/about/versions/11/behavior-changes-11? There might be some behavior changes for Androids below 11 when the app targets 11 🤔

@bbarthec bbarthec changed the title [Android] Update gradle to 6.8 & gradlePlugin to 4.1.1 [Android] Switch to Android SDK 30 & update gradle Jan 18, 2021
@bbarthec bbarthec force-pushed the @bbarthec/android/android-sdk-30 branch from 5068fd4 to 669273d Compare January 19, 2021 16:13
@github-actions
Copy link
Contributor

Native Component List for this branch is ready

@bbarthec bbarthec force-pushed the @bbarthec/android/android-sdk-30 branch from 237ff6a to 8906142 Compare January 19, 2021 17:55
Copy link
Contributor

@esamelson esamelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make sure all the tests are green before landing? Looks like all the Android tests are failing on this PR.

@bbarthec bbarthec force-pushed the @bbarthec/android/android-sdk-30 branch 2 times, most recently from 177d5a8 to 127e15e Compare January 25, 2021 17:17
Affected packages:
- @unimodules/react-native-adapter
- expo-av
- expo-branch
- expo-error-recovery
- expo-image-loader
- expo-image-picker
- expo-in-app-purchases
- expo-media-library
- expo-notifications
- expo-permissions
- expo-screen-capture
- expo-screen-orientation
- expo-splash-screen
- expo-store-review
- expo-updates
- expo-web-browser
- unimodules-permissions-interface
@bbarthec bbarthec force-pushed the @bbarthec/android/android-sdk-30 branch from 127e15e to e3b1541 Compare January 25, 2021 18:52
@bbarthec bbarthec merged commit b488c65 into master Jan 27, 2021
@bbarthec bbarthec deleted the @bbarthec/android/android-sdk-30 branch January 27, 2021 12:21
lukmccall added a commit that referenced this pull request Mar 5, 2021
# Why

Followup of #11647.

# How

Adjust expo-media-library module according to the scoped storage documentation.

> **Note:** Those changes were made with compatibility in mind. So not all changes are considered as a best practice on the newest Android. However, some of them may change the behavior of users app.

# TODO

- [x] Update docs

# Test Plan

(Tested on a simulator and real device with Android R)
- NCL ✅
- test-suite ✅
lukmccall added a commit that referenced this pull request Mar 6, 2021
# Why

Followup of #11647.

# How

- Handled SAF files in the `expo-file-system`. 
- Added a way to ask for external storage write permissions.

> **Note**: Those changes were needed to ensure a smooth transition to a scoped storage on Android.

# Test Plan

- NCL ✅
@brentvatne brentvatne mentioned this pull request Jul 30, 2021
15 tasks
prakashbask pushed a commit to prakashbask/expo that referenced this pull request Mar 16, 2022
# Why

We want to switch to Android SDK 30.

# How

- [x] I've bumped `targetSdkVersion` to `30`
- [x] I've bumped `compileSdkVersion` to `30`
- [x] I've fixed nullability issues coming from

# Test Plan

- [x] compiled & run Expo Go on Android SDK 30 simulator
- [x] compiled & run `bare-expo` on Android SDK 30 simulator
- [x] launched `ncl` in Expo Go and played for a while

# CHANGES

- [Android] Update gradle to 6.8 & gradlePlugin to 4.1.1
- [Android] Bump targerSdkVersion and compileSdkVersion to 30
- [Android] Bump kotlin plugin version to 1.4.21
- [Android] Fix & unify ANDROID_NDK_HOME path detection
- [react-native][Android][submodule update] Rename ANDROID_NDK to ANDROID_NDK_HOME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants