Add and ship file that lists the SDK versions XI/XM supports. - #1162
Conversation
Add and ship a file that lists the SDK versions of the various SDKs XI supports. Also list the minimum SDK version for each extension. And add a script that verifies that the current SDK version is in this file, which should ensure every SDK version bump ends up in the file.
|
@VincentDondain @jstedfast @emaf I believe this is useful for you. Please let me know if you want a different format or more data. This is now a plist, which ends up here: |
spouliot
left a comment
There was a problem hiding this comment.
I had not thought about having the list of supported extensions. While it's nice to have the information handy I wonder how that can be used, as the templates must already have a similar logic (I assume) and they are not shipped with XI.
| <string>9.2</string> | ||
| <string>9.3</string> | ||
| <string>10.0</string> | ||
| <string>10.1</string> |
There was a problem hiding this comment.
tvOS 10.1 is part of Xcode 8.2
| @@ -0,0 +1,99 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | |||
There was a problem hiding this comment.
should not this file one generated (and not checked in) ?
| <string>9.2</string> | ||
| <string>9.3</string> | ||
| <string>10.0</string> | ||
| <string>10.1</string> |
There was a problem hiding this comment.
master supports iOS 10.1 (but not 10.2).
|
|
||
| if (doc.SelectSingleNode ($"/plist/dict/dict/key[text()='tvOS']/following-sibling::array/string[text()='{args [3]}']") == null) { | ||
| Console.Error.WriteLine ($"Could not find the tvOS version {args [3]} in SdkVersions.plist.in."); | ||
| failed = true; |
There was a problem hiding this comment.
that failed to detect the tvOS 10.1 when the maximum is 10.0, OTOH that should not be the most common mistake
| <string>9.0</string> | ||
| <string>9.1</string> | ||
| <string>9.2</string> | ||
| <string>9.3</string> |
There was a problem hiding this comment.
IIRC there was no 9.3 since tvOS lagged by 0.1 with iOS version numbers last year
|
@chamons XM should have something similar so your feedback is welcome too. |
|
Build failure |
|
@spouliot I agree. That first entails XM getting our act together and officially determining what SDKs we test with / claim to support. It'll take at least a bit of research. Filed card here so I don't forget - https://trello.com/c/Q9Y0WHwR/309-figure-out-sdk-version-question-and-add-to-plist-file Let me get back to you. Don't hold this up for XM if it takes a bit. |
…tween min and max, and that both min and max are in the list.
afa7853 to
3612d08
Compare
|
@spouliot it's not really a list of supported extensions, it's a list of min version for each extension (so that the IDE can compute the correct list of min deployment targets for those extensions). |
|
Build failure |
|
@Rolf awesome! The information in the SdkVersions.plist looks fantastic. I cannot think of anything else we need. |
|
Ok, since it's just a list of os's we support, XM would be 10.7 -> 10.12 right now. Talking to @rolfbjarne on Slack makes it sounds like we'll need a separate file in /Library/Frameworks/Xamarin.Mac.framework for the mac bits. |
|
Build success |
|
To add on Sebastien's previous comment:
While the info seems handy, I don't see right now the use of the extensions min versions. The iOS extension wizard actually doesn't yet let people select a Though, it likely doesn't hurt to have it, maybe there's a usage I can't think of right now. Other than that, the other lists look good to me. |
I was thinking about the Plist editor, where you get a list of the valid minimum deployment targets. |
|
Build success |
|
@rolfbjarne yes excellent point that would totally work and we absolutely don't do that right now. |
|
@rolfbjarne lgtm 👍 |
Commit list for xamarin/maccore: * xamarin/maccore@6e9b63e537 Merge pull request #1162 from rolfbjarne/docfixer-fixes * xamarin/maccore@4cf1d63b7b [docfixer] Create project files and fix a few issues. Fixes #1118. * xamarin/maccore@714bd73a55 [docfixer] Avoid declaring the same target twice. * xamarin/maccore@34f4bfa339 [populate] Directories need to call Directory.Exists for existence checks. * xamarin/maccore@341333db88 [docs] Remove truly ancient and outdated targets to publish updated docs. Diff: xamarin/maccore@7ba9c5a...6e9b63e
* Bump maccore to get fix for test-docs. Commit list for xamarin/maccore: * xamarin/maccore@6e9b63e537 Merge pull request #1162 from rolfbjarne/docfixer-fixes * xamarin/maccore@4cf1d63b7b [docfixer] Create project files and fix a few issues. Fixes #1118. * xamarin/maccore@714bd73a55 [docfixer] Avoid declaring the same target twice. * xamarin/maccore@34f4bfa339 [populate] Directories need to call Directory.Exists for existence checks. * xamarin/maccore@341333db88 [docs] Remove truly ancient and outdated targets to publish updated docs. Diff: xamarin/maccore@7ba9c5a...6e9b63e * [jenkins] Make it possible to force docs testing by applying a label to pull requests.
Add and ship a file that lists the SDK versions of the various SDKs XI supports.
Also list the minimum SDK version for each extension.
And add a script that verifies that the current SDK version is in this file,
which should ensure every SDK version bump ends up in the file.