Skip to content

Add and ship file that lists the SDK versions XI/XM supports. - #1162

Merged
rolfbjarne merged 6 commits into
dotnet:masterfrom
rolfbjarne:sdk-versions
Nov 22, 2016
Merged

Add and ship file that lists the SDK versions XI/XM supports.#1162
rolfbjarne merged 6 commits into
dotnet:masterfrom
rolfbjarne:sdk-versions

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

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.

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.
@rolfbjarne

rolfbjarne commented Nov 10, 2016

Copy link
Copy Markdown
Member Author

@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:

/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/SdkVersions.plist

@spouliot spouliot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread tools/mtouch/SdkVersions.plist Outdated
<string>9.2</string>
<string>9.3</string>
<string>10.0</string>
<string>10.1</string>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tvOS 10.1 is part of Xcode 8.2

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread tools/mtouch/SdkVersions.plist Outdated
@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should not this file one generated (and not checked in) ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread tools/mtouch/SdkVersions.plist.in Outdated
<string>9.2</string>
<string>9.3</string>
<string>10.0</string>
<string>10.1</string>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same (or better here)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

master supports iOS 10.1 (but not 10.2).

Comment thread tools/mtouch/SdkVersions-check.cs Outdated

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;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that failed to detect the tvOS 10.1 when the maximum is 10.0, OTOH that should not be the most common mistake

Comment thread tools/mtouch/SdkVersions.plist.in Outdated
<string>9.0</string>
<string>9.1</string>
<string>9.2</string>
<string>9.3</string>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC there was no 9.3 since tvOS lagged by 0.1 with iOS version numbers last year

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@spouliot

Copy link
Copy Markdown
Contributor

@chamons XM should have something similar so your feedback is welcome too.

@monojenkins

Copy link
Copy Markdown
Contributor

Build failure

@chamons

chamons commented Nov 10, 2016

Copy link
Copy Markdown
Contributor

@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.

@rolfbjarne

Copy link
Copy Markdown
Member Author

@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).

@monojenkins

Copy link
Copy Markdown
Contributor

Build failure

@jstedfast

Copy link
Copy Markdown
Member

@Rolf awesome! The information in the SdkVersions.plist looks fantastic. I cannot think of anything else we need.

@chamons

chamons commented Nov 11, 2016

Copy link
Copy Markdown
Contributor

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.

@rolfbjarne rolfbjarne changed the title Add and ship file that lists the SDK versions XI supports. Add and ship file that lists the SDK versions XI/XM supports. Nov 11, 2016
@monojenkins

Copy link
Copy Markdown
Contributor

Build success

@VincentDondain

VincentDondain commented Nov 14, 2016

Copy link
Copy Markdown
Contributor

To add on Sebastien's previous 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.

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 target minimum iOS version but it's gonna change soon. At that time, what we'll likely do (same as iOS templates) is have each extension template define its own minimum iOS version.

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.

@rolfbjarne

Copy link
Copy Markdown
Member Author

Though, it likely doesn't hurt to have it, maybe there's a usage I can't think of right now.

I was thinking about the Plist editor, where you get a list of the valid minimum deployment targets.

@monojenkins

Copy link
Copy Markdown
Contributor

Build success

@VincentDondain

Copy link
Copy Markdown
Contributor

@rolfbjarne yes excellent point that would totally work and we absolutely don't do that right now.

@spouliot

Copy link
Copy Markdown
Contributor

@rolfbjarne lgtm 👍

@rolfbjarne
rolfbjarne merged commit 3a771ea into dotnet:master Nov 22, 2016
rolfbjarne added a commit that referenced this pull request Nov 21, 2018
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
rolfbjarne added a commit that referenced this pull request Nov 21, 2018
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants