xamarin / AndroidX

AndroidX bindings for .NET for Android
MIT License
173 stars 42 forks source link

[ci] Add ApiScan. #829

Closed jpobst closed 6 months ago

jpobst commented 6 months ago

Context: In January of 2024, the EU will begin enforcing the Digital Markets Act, which, for our purposes, means that any high-volume API calls must be documented, or we must switch to using a documented high-volume API.

Microsoft's internal "APIScan" ensures that no undocumented APIs are called.

This scan will be run only on Windows main builds. Note that APIScan is run on binaries, not code, so it must be run in the build stage rather than the compliance stage.

Successful run on a PR build: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=8815822&view=logs&j=2f7369d1-fb97-5262-a571-f4e9c996b7d1&t=df26002c-a356-594f-dc84-ac5f1cd7aaf1

As expected for an open source, cross-platform project, there does not appear to be any issues found that need to be mitigated. 😁