Skip to content

jextract: add support for desugared optional on Android 23 - #498

Merged
ktoso merged 3 commits into
swiftlang:mainfrom
madsodgaard:android-desugar-support
Jan 8, 2026
Merged

ktoso merged 3 commits into
swiftlang:mainfrom
madsodgaard:android-desugar-support

Conversation

@madsodgaard

@madsodgaard madsodgaard commented Dec 16, 2025 •

Copy link
Copy Markdown
Contributor

Certain Java APIs have been backported to older Android versions through desugaring, however that means that the underlying class names are different, when we need to call out to JNI.

This PR changes the @JavaClass macro, to use the desugared name if we are running on Android.

@ktoso ktoso left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me

@ktoso
ktoso merged commit b14ad9b into swiftlang:main Jan 8, 2026
49 checks passed
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