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

Update Android target API level to 26 #2494

Closed
gnprice opened this issue May 10, 2018 · 5 comments
Closed

Update Android target API level to 26 #2494

gnprice opened this issue May 10, 2018 · 5 comments

Comments

@gnprice
Copy link
Member

gnprice commented May 10, 2018

Google Play now gives me the following warning when I upload a new release for Android:

Target API level requirements from August 2018
Warning:
Your app currently targets API level 22 and must target at least API level 26 to ensure it is built on the latest APIs optimized for security and performance.

From August 2018, new apps must target at least Android 8.0 (API level 26).
From November 2018, app updates must target Android 8.0 (API level 26).

So we have a deadline of November -- but this is a bit of housekeeping it'd be good to do anytime. Updating means we'll adapt our app to use certain new APIs when on newer Android versions, in order to make friendlier use of system-level resources like permissions, notifications, and background execution. (This won't affect our ability to keep running on older versions.)

Detailed documentation here:
https://developer.android.com/distribute/best-practices/develop/target-sdk

The steps I'd follow to do this are

  • Go one version at a time, following that doc: level 23, then 24, then 26. (25 was a minor version.)
  • For each version, try bumping targetSdkVersion in android/app/build.gradle. Build the app and test manually, especially the areas called out in the upgrade docs.
  • Make any needed updates, following the docs.

A good PR to begin with would be an update to level 23, including any needed changes. For that one, we will need to make sure we request needed permissions at runtime. It's possible our dependencies take care of this; we'll need to check.

@SouvikBan
Copy link

Hi! I am a newbie and I would like to work on this.

@gnprice
Copy link
Member Author

gnprice commented Sep 24, 2018

This will come along as part of upgrading to RN v0.56 (#2788).

@mafuz
Copy link

mafuz commented Sep 25, 2018

does it mean existing app bellow target 26 will be band?

@borisyankov
Copy link
Contributor

Targeting a higher API version simply means that we can take advantage of new stuff offered in it.
We do not have any immediate plans to reduce the Android versions we support (currently 4.4 and newer)

@gnprice
Copy link
Member Author

gnprice commented Oct 25, 2018

Tracking this in detail at #3075 ; closing this issue in favor of that one.

@gnprice gnprice closed this as completed Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants