-
Notifications
You must be signed in to change notification settings - Fork 534
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-35 (#9043)
Context: https://developer.android.com/about/versions/15 Context: https://android-developers.googleblog.com/2024/06/the-third-beta-of-android-15.html Context: xamarin/android-sdk-installer@785c9f7 Android 15 Developer Preview 3 has been released. * [API diff vs. API-34][0] * [API diff vs. API-VanillaIceCream Beta 2][1] (c993dee) The Android 15 Developer Preview Program Overview [Timeline and updates][2] section suggests the following timeline: * Feb/Mar: Developer Previews * April/May: Unstable Betas * June/July: Stable Betas * ???: Final Additionally, enumify and mark API-35 as "stable", which changes `net9.0-android` to default to `net9.0-android35`. Notes: - The `Xamarin` component manifest is in the process of being updated to contain API-35 components; see also xamarin/android-sdk-installer@785c9f75. This change has not yet "flowed" to dotnet/android yet. Consequently, our existing `AndroidDependenciesTests.InstallAndroidDependenciesTest()` unit test fails. Update the test to have a `xamarin_manifest_needs_updating` toggle set to `true`; while `true` it asserts that the test fails. Once the `Xamarin` manifest update makes it to dotnet/android, this test will fail and it will need to toggled to `false` so that the normal checks occur. - The MAUI tests fail because 2 APIs that it uses have been marked as `[Obsolete]` in API-35: `Path.ComputeBounds(RectF, bool)` and `Window.SetStatusBarColor(Color)`. MAUI will need to change the API they use or suppress these "warnings as errors". - APICompat reports that several `[Android.Runtime.RequiresPermissionAttribute]` custom attributes have been removed. As we do not consume this attribute, it does not cause any API breakage. [0]: https://developer.android.com/sdk/api_diff/35/changes [1]: https://developer.android.com/sdk/api_diff/35-incr/changes [2]: https://developer.android.com/about/versions/15/overview
- Loading branch information
Showing
24 changed files
with
3,242 additions
and
327,172 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using Android.Runtime; | ||
|
||
namespace Android.Net.Wifi.P2p | ||
{ | ||
// This was converted to an enum in .NET 9 | ||
partial class WifiP2pManager | ||
{ | ||
// Metadata.xml XPath field reference: path="/api/package[@name='android.net.wifi.p2p']/class[@name='WifiP2pManager']/field[@name='WIFI_P2P_DISCOVERY_STARTED']" | ||
[Register ("WIFI_P2P_DISCOVERY_STARTED")] | ||
public const int WifiP2pDiscoveryStarted = (int) 2; | ||
|
||
// Metadata.xml XPath field reference: path="/api/package[@name='android.net.wifi.p2p']/class[@name='WifiP2pManager']/field[@name='WIFI_P2P_DISCOVERY_STOPPED']" | ||
[Register ("WIFI_P2P_DISCOVERY_STOPPED")] | ||
public const int WifiP2pDiscoveryStopped = (int) 1; | ||
} | ||
} |
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.