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

[Mono.Android] Bind java.time and java.time.chrono packages. #8088

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

jpobst
Copy link
Contributor

@jpobst jpobst commented May 30, 2023

Fixes: #8081

Originally we chose not to bind the java.time and java.time.chrono Android packages, likely due to the amount of metadata required to build them correctly. (It also requires the use of managedOverride, which didn't exist at the time.)

However, they are pretty useful packages, so let's invest the effort to get them bound.

Additionally, this results in now producing bindings for many methods in unrelated types that consume java.time types.

@jpobst jpobst force-pushed the java-time branch 3 times, most recently from c280a4c to 5e1cde3 Compare August 8, 2023 15:15
@jpobst jpobst marked this pull request as ready for review August 8, 2023 19:49
@jpobst jpobst requested a review from jonpryor as a code owner August 8, 2023 19:49
@jonpryor
Copy link
Member

jonpryor commented Aug 9, 2023

Commit message:

Fixes: https://github.com/xamarin/xamarin-android/issues/8081

Context: 571546a1a6ad3015e573284313befd9a70bb7d96

When binding API-26 we chose not to bind the `java.time` and
`java.time.chrono` Android packages (571546a1), likely due to the
amount of metadata required to build them correctly.
(It also requires the use of `managedOverride`, which didn't exist
at the time.)

However, they are pretty useful packages, so let's invest the effort
to get them bound.

Additionally, this results in now producing bindings for many methods
in unrelated types that consume `java.time` types.

@jonpryor jonpryor merged commit bb881bf into main Aug 10, 2023
27 of 49 checks passed
@jonpryor jonpryor deleted the java-time branch August 10, 2023 15:40
grendello added a commit to grendello/xamarin-android that referenced this pull request Aug 10, 2023
* main:
  [Mono.Android.dll] Fix [SupportedOSPlatform] warnings. (dotnet#8247)
  Bump to xamarin/monodroid@a5248591 (dotnet#8258)
  [Mono.Android] Bind `java.time` and `java.time.chrono` packages. (dotnet#8088)
  Bump to xamarin/Java.Interop/main@5adb4d4 (dotnet#8251)
  [ci] Use fewer agents for macOS MSBuild tests (dotnet#8257)
  [ci] Report when dotnet-test-slicer fails (dotnet#8259)
  [monodroid] Do not build host or classic runtimes (dotnet#8256)
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

java.time package not bound in Mono.Android
2 participants