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

Support minimum JDK of 11+ and minimum of Android API 33+ #709

Open
jmehrens opened this issue Feb 15, 2024 · 4 comments · May be fixed by #714
Open

Support minimum JDK of 11+ and minimum of Android API 33+ #709

jmehrens opened this issue Feb 15, 2024 · 4 comments · May be fixed by #714
Labels
enhancement New feature or request

Comments

@jmehrens
Copy link
Contributor

Per Jakarta EE Platform 10:

Minimum Java SE Version
Java SE 11 or higher

This means that mail-api would no longer be building for JDK 8. Moving an Android API version 26+ or greater will give access to java.lang.invoke, java.util.Base64, and java.time. However, all versions prior to Android 13 (API level 33) will be deprecated so we must assume API level 33 Android is required. API 26+ may be able to run with mail-api but, is not supported and we will close any tickets that are not meeting the API requirements.

Per Meet Google Play's target API level requirement:

Starting on August 31, 2023:

New apps must target Android 13 (API level 33) or higher; except for Wear OS apps, which must target a version between Android 11 (API level 30) and Android 13 (API level 33), inclusive.

App updates must target Android 13 or higher and adjust for behavioral changes in Android 13; except for Wear OS apps, which must target Android 11.

Permanently private apps—which are restricted to users in a specific organization and are intended for internal distribution only—aren't required to meet the target API level requirements.

[snip]

...Furthermore, as of Android 10 (API level 29), users see a warning when they start an app for the first time if the app targets Android 5.1 (API level 22) or lower.

Per Which Java APIs can I use in my Java or Kotlin source code? the API level 32 and API level 33 are versions that support Java 11 source syntax. API level 34 supports Java 17 source syntax.

The Android API Levels site shows the usage of devices.

/cc @lukasj

@lukasj
Copy link
Contributor

lukasj commented Feb 16, 2024

for 2.1.x/EE10 branch (will be created from master once 2.1.3 gets out) I'd keep it the way it is - the change from 8 could be perceived as incompatible by some users; but we can still say 11 is supported and since 2.1.3 the support for 8 is limited, provided on the best effort basis only (if someone asks) and can be dropped completely in the future.

after branching, the master (API 2.2.x) will be moved to 11+ only

@aalmiray
Copy link

A change in bytecode level constitutes a breaking change. If semver is followed to the letter then the next version of this API should bump its major number, not minor and much less build/patch.

@lukasj
Copy link
Contributor

lukasj commented Feb 29, 2024

If semver is followed to the letter

No, it is not, updating min SE level is not being considered as a breaking change by EE (AFAIK)

@aalmiray
Copy link

Well, that's unfortunate. Handling updates to runtime requirements is not an easy task for a percentage of consumers. How big is that percentage and how hard is handling those requirements may be up to debate. But the fact remains.

This being said, if the EE committee believes that's the way to go, there's nothing else to be discussed.

jbescos added a commit to jbescos/mail that referenced this issue Feb 29, 2024
Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants