-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mono.Android] Bind and enumify API-33 (#7105)
Context: https://developer.android.com/about/versions/13 Context: https://android-developers.googleblog.com/2022/06/android-13-beta-3-platform-stability.html Android 13 Beta 3 has been released. * [API diff vs. API-32][0] * [API diff vs. API-Tiramisu Beta 2][1] The Android 13 Developer Preview Program Overview [Timeline and updates][2] section suggests the following timeline: * May: Beta 2 * June: Beta 3: First Platform Stability milestone. Final APIs and behaviors. * July: Beta 4: Near-final build for final testing. * ???: Final In particular, Beta 3 has "Final APIs". We now have API-33! Enumify API-33, and declare it stable. API-33 will be available as: * Classic Xamarin.Android: `$(TargetFrameworkVersion)`=v13.0 * .NET 6: `$(TargetFramework)`=net6.0-android33.0 * .NET 7: `$(TargetFramework)`=net7.0-android33.0 The default API-level for `net6.0-android` remains API-31. The default API-level for `net7.0-android` will be API-33. ~~ Enumification Issue ~~ The following methods look like they should be enumified, however the constants referenced by their [documentation][3] do not exist. Perhaps this will be fixed later and we should revisit them? For now, they are not enumified. ?,33,android/net/wifi/aware,PublishConfig,getInstantCommunicationBand,return, ?,33,android/net/wifi/aware,PublishConfig$Builder,setInstantCommunicationModeEnabled,band, ?,33,android/net/wifi/aware,SubscribeConfig,getInstantCommunicationBand,return, ?,33,android/net/wifi/aware,SubscribeConfig$Builder,setInstantCommunicationModeEnabled,band, ?,33,android/net/wifi,MloLink,getBand,return, ~~ API Compat Changes ~~ We now ignore `[Android.Runtime.StringDefAttribute]` and `[Android.Runtime.IntDefAttribute]` in `<CheckApiCompatibility/>`. These attributes frequently churn on each preview and release, causing lots of noise in our `acceptable-breakages*` files. As we do not consume these attributes, we don't really need to track changes. Relevant existing entries from `acceptable-breakages*` files were removed. ~~ Update `CodeDiffGen` ~~ The logic for running `Microsoft.DotNet.GenAPI` was failing with: /Users/builder/azdo/_work/1/s/xamarin-android/src/Mono.Android/Mono.Android.targets(270,5): error MSB4018: System.ComponentModel.Win32Exception (8): An error occurred trying to start process '/Users/builder/.nuget/packages/microsoft.dotnet.genapi/7.0.0-beta.22103.1/tools/net472/Microsoft.DotNet.GenAPI.exe' with working directory '/Users/builder/azdo/_work/1/s/xamarin-android/src/Mono.Android'. Exec format error Fix this by using the `netcoreapp3.1/Microsoft.DotNet.GenAPI.dll` version when running under `dotnet`. Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com> [0]: https://developer.android.com/sdk/api_diff/33/changes [1]: https://developer.android.com/sdk/api_diff/33-incr/changes [2]: https://web.archive.org/web/20220627195145/https://developer.android.com/about/versions/13/overview#platform_stability [3]: https://developer.android.com/reference/kotlin/android/net/wifi/aware/PublishConfig#getinstantcommunicationband
- Loading branch information
Showing
30 changed files
with
1,931 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.