Add API 37 (CinnamonBun) to KnownVersions#357
Merged
jonathanpeppers merged 1 commit intomainfrom May 6, 2026
Merged
Conversation
Add AndroidVersion entry for API level 37.0 (framework v17.0, codename CinnamonBun) so that GetIdFromApiLevel(37), GetFrameworkVersionFromApiLevel(37), etc. resolve correctly as a fallback when AndroidApiInfo.xml is not loaded. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a KnownVersions fallback entry for Android API level 37 so AndroidVersions can resolve API/TFM mappings even when AndroidApiInfo.xml isn’t available (as needed for the net11.0-android37 defaulting work in dotnet/android).
Changes:
- Add a
KnownVersionsentry for API 37 / OS version17.0. - Add alternate IDs for the API 37 entry (
CinnamonBun,Cinnamon Bun) to improve ID-based lookup.
| new AndroidVersion (new Version ("36.1"), "16.0") { | ||
| AlternateIds = new[]{ "Canary" }, | ||
| }, | ||
| new AndroidVersion (new Version ("37.0"), "17.0") { |
Member
Author
There was a problem hiding this comment.
No, this is actually 37.0 on purpose. Google even made it platforms/37.0/android.jar.
simonrozsival
approved these changes
May 6, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
AndroidVersionentry for API level 37.0 (framework v17.0, codename CinnamonBun) to theKnownVersionstable.This is needed for
dotnet/androidPR dotnet/android#11254 which makesnet11.0-android37the default target framework. Without this entry,GetIdFromApiLevel(37),GetFrameworkVersionFromApiLevel(37), etc. don't resolve correctly whenAndroidApiInfo.xmlis not loaded.