Skip to content

Commit

Permalink
[Mono.Android] Update api-compat reference file for current API-33 (#…
Browse files Browse the repository at this point in the history
…7822)

Context: c339d1f

Before we start building API-34 previews for `Mono.Android.dll`,
update `tests/api-compatibility/reference/Mono.Android.zip` & related
to match the `Mono.Android.dll` currently generated by our build, in
particular including the changes of c339d1f.  This will help make
clearer any breakages for API-34.

Mainly this updates for all of the `[ObsoleteOSPlatform]` fixes we
have made over the past few months.

Additionally, the reference file is now based on a .NET Android
`Mono.Android.dll` instead of a Classic `Mono.Android.dll`, so
additional framework dependent changes will no longer have to be
tracked in "acceptable breakages".

As a result, there would need to be fixups made to the Classic
`api-compat` breakage file, but as we are in the process of removing
Classic from `main`, we simply disable the `api-compat` check when
building Classic `Mono.Android.dll` for now.
  • Loading branch information
jpobst committed Feb 22, 2023
1 parent 90b180c commit ebd7dff
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3,082 deletions.
2 changes: 1 addition & 1 deletion src/Mono.Android/Mono.Android.targets
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
</ItemGroup>
<Target
Name="_CheckApiCompatibility"
Condition=" '$(DisableApiCompatibilityCheck)' != 'True' "
Condition=" '$(DisableApiCompatibilityCheck)' != 'True' And '$(TargetFramework)' != 'monoandroid10'"
AfterTargets="CopyFilesToOutputDirectory"

Inputs="$(TargetPath);@(ApiCompatibilityFiles)"
Expand Down
Loading

0 comments on commit ebd7dff

Please sign in to comment.