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

Gradle, Build scripts, Maven Plugin, NDK update. #229

Merged
merged 7 commits into from
Sep 9, 2024

Conversation

ArtsemKurantsou
Copy link
Contributor

@ArtsemKurantsou ArtsemKurantsou commented Aug 5, 2024

List of updates:

  • Support for 16KB page sizes for native lib (Android 15 support)
  • NDK update to 27
  • min SDK set to 21 and targetSdk set to 35
  • AGP 8.5.1 and Gradle 8.9 update along with gradle wrapper
  • Build scripts migration from Groovy to Kotlin
  • Version management moved to Version Catalog and libraries updated
  • Unsupported kotlin-android-extensoin plugin replaced with ViewBinding
  • Publishing migration to the standard maven-publish

NDK update
16KB page size support
libraries updated
Properties check from the root project in gradle
Unnecessary null check removed
@ArtsemKurantsou ArtsemKurantsou marked this pull request as ready for review August 5, 2024 19:49
@scottyab
Copy link
Owner

scottyab commented Aug 6, 2024

This looks great. I am away ATM but will review this upon return next week. We really value the effort here. 👌

applicationId = "com.scottyab.rootbeer.sample"
minSdk = libs.versions.android.min.sdk.get().toInt()
targetSdk = libs.versions.android.target.sdk.get().toInt()
versionName = "0.9"
Copy link
Owner

Choose a reason for hiding this comment

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

We're just missing versionCode = 11 otherwise the generated .apk is RootBeerSample-0.9-[null]-release.apk

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed both versionName and versionCode, now they are specified using properties. As far as I understood it was the initial intention, please correct me if I'm wrong.

@scottyab
Copy link
Owner

It all pretty much checks out ✅ , again huge thanks! this saved us a bunch of time and sets us up to update the library.

Last remaining task for me is to confirm the Maven publishing to Nexus works with the updated plugin (and I still remember how to do it 😉 ). Then we can merge and I'll look at the other PRs (long overdue) and publish an updated version of the lib. The Sample app will take a bit more effort due to new Playstore requirments but this can be a seperate task.

@scottyab scottyab changed the title Various updates Gradle, Build scripts, Maven Plugin, NDK update. Aug 17, 2024
@ArtsemKurantsou
Copy link
Contributor Author

It all pretty much checks out ✅ , again huge thanks! this saved us a bunch of time and sets us up to update the library.

Last remaining task for me is to confirm the Maven publishing to Nexus works with the updated plugin (and I still remember how to do it 😉 ). Then we can merge and I'll look at the other PRs (long overdue) and publish an updated version of the lib. The Sample app will take a bit more effort due to new Playstore requirments but this can be a seperate task.

Thank you very much for review and the lib itself)
Let me know if there is any issues with that, I'm happy to help

Copy link
Owner

@scottyab scottyab left a comment

Choose a reason for hiding this comment

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

Confirmed Nexus publishing works as expected after I switched to using tokens (not a change that's needed to the code here). Will merge later. Thanks again!

@scottyab
Copy link
Owner

scottyab commented Sep 9, 2024

Rebasing the merge rather than the usual squash merge due to the amount of changes here.

@scottyab scottyab merged commit e14e074 into scottyab:master Sep 9, 2024
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.

2 participants