-
Notifications
You must be signed in to change notification settings - Fork 538
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
Incorrect enum ApplicationExitInfoReason #9000
Labels
Area: Mono.Android
Issues with the Android API binding (Mono.Android.dll).
bug
Component does not function as intended.
Milestone
Comments
Wrote a quick script to compare
|
This was referenced Jun 4, 2024
jonpryor
pushed a commit
that referenced
this issue
Jun 7, 2024
…9003) Fixes: #9000 Context: 3ca2a07 Context: 379f7cd The field [`ApplicationExitInfo.REASON_OTHER`][0] was added in API-30, and in our infinite wisdom we enumified this member in API-R Developer Preview 2 (3ca2a07) instead of waiting for the final API contract. In API-R DP2, `ApplicationExitInfo.REASON_OTHER` had the value 10, and was enumified as `ApplicationExitInfoReasonType.ReasonUnknown` with value 10. `ApplicationExitInfoReasonType` was renamed to `ApplicationExitInfoReason` in 379f7cd with API-R Developer Preview 4. The value of `ApplicationExitInfo.REASON_OTHER` [changed to 13][1] in API-R Developer Preview 3, but we did not notice and did not update the previous enumification. This process has been mitigated since, as we no longer enumify unstable API levels: we wait until Google marks the API as "stable" before we perform enumification. Update the enum to the correct value so it will be correct in .NET 9+. [0]: https://developer.android.com/reference/android/app/ApplicationExitInfo#REASON_OTHER [1]: https://developer.android.com/sdk/api_diff/r-dp3-incr/changes/android.app.ApplicationExitInfo
jonpryor
pushed a commit
that referenced
this issue
Jun 7, 2024
Context: #9000 Context: ac3b405 In Issue #9000, we learned that: - Constant values can change between Android API levels - `api-merge` does not update constant values in the final `api.xml` if they do change Update `api-merge` to update constant values if they change, and update `api-VanillaIceCream.xml` with the new `api-merge` logic.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Area: Mono.Android
Issues with the Android API binding (Mono.Android.dll).
bug
Component does not function as intended.
Android framework version
net8.0-android
Affected platform version
VS2022 17.10.1
Description
The enum
Android.App.ApplicationExitInfoReason
contains valueOther
but it has the incorrect numeric value.Defined with value 10:
which is duplicate with:
According to Android documentation it should be value 13
We noticed this we have a lot of ApplicationExitInfo records with value '13' instead of a pretty enum name.
The text was updated successfully, but these errors were encountered: