Skip to content

Commit

Permalink
[api-compatibility] Update Mono.Android information for API-34 (#8596)
Browse files Browse the repository at this point in the history
Context: 2cfce14
Context: 76ab8b2

Update our api-compat "baseline" to what we shipped in .NET 8.
This means we can delete all current "acceptable breakages".
Additionally, we can delete all the `acceptable-breakages-v*.0.txt`
files because they were only used for Classic.

Remove usage of `cil-strip.exe` from the `UpdateMonoAndroidContract`
target to create the baseline `.zip`, as we no longer provision the
Mono bundle which contained it.  By default, we produce a .NET `ref`
version of `Mono.Android.dll` that we can include instead, which
already has had CIL stripped from it.

Update our `PublicAPIAnalyzers` API-34 profile, renaming
`PublicAPI.Unshipped.txt` to `PublicAPI.Shipped.txt`, now that API-34
bindings have shipped.
  • Loading branch information
jpobst authored Jan 12, 2024
1 parent fa6d35c commit 87341cc
Show file tree
Hide file tree
Showing 21 changed files with 125,867 additions and 126,675 deletions.
125,864 changes: 125,863 additions & 1 deletion src/Mono.Android/PublicAPI/API-34/PublicAPI.Shipped.txt

Large diffs are not rendered by default.

125,864 changes: 1 addition & 125,863 deletions src/Mono.Android/PublicAPI/API-34/PublicAPI.Unshipped.txt

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion tests/api-compatibility/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ To update the contract assembly, run the `UpdateMonoAndroidContract` target
and provide the `$(ContractAssembly)` MSBuild property. `$(ContractAssembly)`
should be the path to the new contract assembly to use:

msbuild Xamarin.Android.sln /t:UpdateMonoAndroidContract '/p:ContractAssembly=/Users/example/Downloads/\$ReferenceAssemblies/Microsoft/Framework/MonoAndroid/v10.0/Mono.Android.dll'
dotnet msbuild Xamarin.Android.sln -t:UpdateMonoAndroidContract "-p:ContractAssembly=C:/code/xamarin-android-backport/bin/Debug/lib/packs/Microsoft.Android.Ref.34/34.99.0/ref/net9.0/Mono.Android.dll"

Note: using the assembly in the `ref` directory means it has already had IL stripped
and is just API.

## Build Task

Expand Down
114 changes: 0 additions & 114 deletions tests/api-compatibility/acceptable-breakages-v10.0.txt

This file was deleted.

169 changes: 0 additions & 169 deletions tests/api-compatibility/acceptable-breakages-v11.0.txt

This file was deleted.

51 changes: 0 additions & 51 deletions tests/api-compatibility/acceptable-breakages-v12.0.txt

This file was deleted.

2 changes: 0 additions & 2 deletions tests/api-compatibility/acceptable-breakages-v12.1.txt

This file was deleted.

35 changes: 0 additions & 35 deletions tests/api-compatibility/acceptable-breakages-v13.0.txt

This file was deleted.

2 changes: 0 additions & 2 deletions tests/api-compatibility/acceptable-breakages-v14.0.txt

This file was deleted.

5 changes: 0 additions & 5 deletions tests/api-compatibility/acceptable-breakages-v4.4.87.txt

This file was deleted.

Loading

0 comments on commit 87341cc

Please sign in to comment.