-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Context: #9613 (comment) A lot of the previous output was nonsensical, especially around `version`s, in large part because I was trying to associate the `//*/@revision` attribute in the Feed to a version. This sometimes works, e.g. for build-tools and platform-tools, but would fail horribly for things like `<platform/>`, resulting in JSON fragments such as: { "desc": "Android SDK Platform 28", "sdkPackage": { "id": "platforms;android-*", "version": "[1,1,1,2,2,2,2,3,3,3,3,3,3,5,6]", "recommendedId": "platforms;android-28", "recommendedVersion": "6" }, "optional": "false" }, Make to fundamental architectural changes: 1. Instead of trying to emit JSON for *everything* in the feed, only emit JSON for a minimal subset of known required+optional pieces, such as platform-tools (required) and the emulator and system images (optional). 2. Drop the idea of "version", "recommendedId", and "recommendedVersion". This results in a much smaller and more sensible: { "microsoft.net.sdk.android": { "workload": { "alias": [ "android" ], "version": "35.0.100" }, "jdk": { "version": "[17.0,18.0)", "recommendedVersion": "17.0.12" }, "androidsdk": { "packages": [ { "desc": "Android SDK Build-Tools 35", "sdkPackage": { "id": "build-tools;35.0.0" }, "optional": "false" }, { "desc": "Android SDK Command-line Tools", "sdkPackage": { "id": "cmdline-tools;13.0" }, "optional": "false" }, { "desc": "Android Emulator", "sdkPackage": { "id": "emulator" }, "optional": "true" }, { "desc": "NDK (Side by side) 27.1.12297006", "sdkPackage": { "id": "ndk;27.1.12297006" }, "optional": "true" }, { "desc": "Android SDK Platform 35", "sdkPackage": { "id": "platforms;android-35" }, "optional": "false" }, { "desc": "Android SDK Platform Baklava (Preview)", "sdkPackage": { "id": "platforms;android-Baklava" }, "optional": "true" }, { "desc": "Android SDK Platform-Tools", "sdkPackage": { "id": "platform-tools" }, "optional": "false" }, { "desc": "Google APIs ARM 64 v8a System Image", "sdkPackage": { "id": { "win-x64": "system-images;android-35;google_apis;x86_64", "mac-x64": "system-images;android-35;google_apis;x86_64", "linux-x64": "system-images;android-35;google_apis;x86_64", "mac-arm64": "system-images;android-35;google_apis;arm64-v8a", "linux-arm64": "system-images;android-35;google_apis;arm64-v8a" } }, "optional": "true" } ] } } }
- Loading branch information
Showing
2 changed files
with
152 additions
and
119 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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