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: Increase minimum SDK version to 21 #13205

Merged
merged 2 commits into from Feb 17, 2023

Conversation

srifqi
Copy link
Member

@srifqi srifqi commented Feb 14, 2023

Goal of the PR
This PR increases minimum SDK version to 21, increases target/compiled SDK version to 33, and also updates Build Tools, NDK, and Gradle for Android build.

How does the PR work?

  • Minimum SDK version: 16 -> 21
  • Target/compiled SDK version: 32 -> 33
  • Android Build Tools: 32.0.0 -> 33.0.2
  • Android NDK: 25.1.8937393 (r25b) -> 25.2.9519653 (r25c)
  • Gradle: 7.3.3 -> 7.5
  • Android Gradle plugin (for Build Tools): 7.2.2 -> 7.4.1
  • androidx.appcompat:appcompat: 1.5.1 -> 1.6.1

Reasons for choosing 21 (Lollipop, Android 5.0) for the minimum SDK version:

From statistics collected here, these changes still cover around 99.4% of Android users globally.

I have tested this before and found that the minetest/minetest_android_deps still works with this higher version. It is optional to be the same version as this PR (NDK r25c), but note that it might need to be updated for the upcoming NDK r26.

Does it resolve any reported issue?
Resolves #13137

Comparisons between related "block" (voxel) games on the Google Play Store:

Name Min. API Level
Minetest 16 (4.1, current), 21 (5.0, this PR)
Minecraft 21 (Android 5.0)
Minecraft: Education Edition 26 (Android 8.0)
MultiCraft 21 (Android 5.0)
WorldCraft 21 (Android 5.0)

Does this relate to a goal in the roadmap?
I do not know.

To do

This PR is Ready for Review.

How to test

  1. Compile Minetest for Android.
  2. There should be no compilation error and no regression.

Target/compiled SDK version is increased to 33.
Build Tools, NDK, and Gradle are also updated.
@sfan5 sfan5 added Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements Android labels Feb 14, 2023
Copy link
Member

@sfan5 sfan5 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

@Zughy Zughy added this to the 5.7.0 milestone Feb 14, 2023
@srifqi
Copy link
Member Author

srifqi commented Feb 16, 2023

I updated androidx.appcompat:appcompat to version 1.6.1 (8 February 2023).

@sfan5 sfan5 merged commit c1e430e into minetest:master Feb 17, 2023
@srifqi
Copy link
Member Author

srifqi commented Feb 20, 2023

Thank you for the merge!

@srifqi srifqi deleted the update_android_3 branch February 20, 2023 05:00
@sfan5
Copy link
Member

sfan5 commented Feb 20, 2023

Matching commit for the native deps: minetest/minetest_android_deps@b68026f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements >= Two approvals ✅ ✅
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reminder: Increase API minimum to 19 or 21
4 participants