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

Upgrade to Gradle 8 / AGP 8 / Java 17 #28

Open
TWiStErRob opened this issue Aug 26, 2023 · 2 comments
Open

Upgrade to Gradle 8 / AGP 8 / Java 17 #28

TWiStErRob opened this issue Aug 26, 2023 · 2 comments

Comments

@TWiStErRob
Copy link

Would you accept a PR?

@k3b
Copy link
Owner

k3b commented Aug 29, 2023

Would you accept a PR?

I am not shure
What will be the benefit of the upgrade?
Will Java17 be still compatible with android-4.2 ?

@TWiStErRob
Copy link
Author

Some things that immediately come to mind, there's probably more:

What will be the benefit of the upgrade?

  • Being able to easily use the latest Android SDK APIs.
  • Being able to easily use the latest tools.
  • Potentially use Java 8 features (lambdas), or Kotlin if wanted.
  • Ability to provide support for intents added in newer versions (e.g. https://developer.android.com/sdk/api_diff/34/changes/android.content.Intent)
  • Being able to upgrade to newer libraries (ones which have compileSdk=34) with stable tooling. e.g. solve
    // Note: Updating these to latest versions also require java-1.8 and compileSdkVersion 33
  • Faster builds from AGP and Gradle improvements

Will Java17 be still compatible with android-4.2 ?

  • Yes, it should be compatible. dex/art doesn't care what's the JVM running unit tests and Gradle builds, only what's the bytecode generated (source/target).
  • AGP 8 requires Java 17, but still provides minSdk=14 (and probably lower) tooling too (AndroidX is built with it after all).

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

No branches or pull requests

2 participants