[tools] Update SdkVersions.cs after the latest Xcode 14.2 bump. (#17101)

* Update `SdkVersions.cs` after the latest Xcode 14.2 bump.
* Rename `[SdkVersions|ProductConstants].cs.in` to `[SdkVersions|ProductConstants].in.cs`.
  This way the autoformatter makes sure it's formatted correctly.
This commit is contained in:
Rolf Bjarne Kvinge 2022-12-21 17:44:27 +01:00 коммит произвёл GitHub
Родитель e99c71ad36
Коммит 6c04f7621a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
9 изменённых файлов: 16 добавлений и 16 удалений

Просмотреть файл

@ -1638,7 +1638,7 @@ endif
project-files: $(PROJECT_FILES)
$(TOP)/tools/common/SdkVersions.cs: $(TOP)/tools/common/SdkVersions.cs.in
$(TOP)/tools/common/SdkVersions.cs: $(TOP)/tools/common/SdkVersions.in.cs
@$(MAKE) -C $(TOP)/tools/mtouch ../common/SdkVersions.cs
COMMA=,

Просмотреть файл

@ -181,7 +181,7 @@ build-test-libraries:
all-local:: .stamp-xharness-configure
$(TOP)/tools/common/SdkVersions.cs: $(TOP)/tools/common/SdkVersions.cs.in
$(TOP)/tools/common/SdkVersions.cs: $(TOP)/tools/common/SdkVersions.in.cs
@$(MAKE) -C $(TOP)/tools/mtouch ../common/SdkVersions.cs
.stamp-src-project-files:

Просмотреть файл

@ -1,6 +1,6 @@
# We check in SdkVersions.cs so that it's easier to use this file when building tests on Windows.
../common/SdkVersions.cs: ../common/SdkVersions.cs.in Makefile $(TOP)/Make.config
../common/SdkVersions.cs: ../common/SdkVersions.in.cs Makefile $(TOP)/Make.config
$(Q_GEN) sed \
-e 's/@IOS_SDK_VERSION@/$(IOS_SDK_VERSION)/g' -e 's/@WATCHOS_SDK_VERSION@/$(WATCH_SDK_VERSION)/' -e 's/@TVOS_SDK_VERSION@/$(TVOS_SDK_VERSION)/' -e 's/@MACOS_SDK_VERSION@/$(MACOS_SDK_VERSION)/' \
-e 's/@MACCATALYST_SDK_VERSION@/$(MACCATALYST_SDK_VERSION)/g' \
@ -59,7 +59,7 @@
$< > $@.tmp
$(Q) if ! diff $@ $@.tmp >/dev/null; then $(CP) $@.tmp $@; echo "The file $(TOP)/tools/common/SdkVersions.cs has been automatically re-generated; please commit the changes."; fi
../common/ProductConstants.cs: ../common/ProductConstants.cs.in Makefile $(TOP)/Make.config
../common/ProductConstants.cs: ../common/ProductConstants.in.cs Makefile $(TOP)/Make.config
$(Q_GEN) sed \
-e "s/@IOS_VERSION@/$(IOS_PACKAGE_VERSION_MAJOR).$(IOS_PACKAGE_VERSION_MINOR).$(IOS_PACKAGE_VERSION_REV)/g" \
-e "s/@TVOS_VERSION@/$(IOS_PACKAGE_VERSION_MAJOR).$(IOS_PACKAGE_VERSION_MINOR).$(IOS_PACKAGE_VERSION_REV)/g" \

Просмотреть файл

@ -14,12 +14,12 @@ using MonoTouch;
namespace Xamarin {
static class SdkVersions {
public const string Xcode = "14.1";
public const string OSX = "13.0";
public const string iOS = "16.1";
public const string Xcode = "14.2";
public const string OSX = "13.1";
public const string iOS = "16.2";
public const string WatchOS = "9.1";
public const string TVOS = "16.1";
public const string MacCatalyst = "16.1";
public const string MacCatalyst = "16.2";
#if NET
public const string MinOSX = "10.14";
@ -40,12 +40,12 @@ namespace Xamarin {
public const string MinWatchOSCompanionSimulator = "14.5";
public const string MinTVOSSimulator = "12.4";
public const string MaxiOSSimulator = "16.1";
public const string MaxiOSSimulator = "16.2";
public const string MaxWatchOSSimulator = "9.1";
public const string MaxWatchOSCompanionSimulator = "16.1";
public const string MaxWatchOSCompanionSimulator = "16.2";
public const string MaxTVOSSimulator = "16.1";
public const string MaxiOSDeploymentTarget = "16.1";
public const string MaxiOSDeploymentTarget = "16.2";
public const string MaxWatchDeploymentTarget = "9.1";
public const string MaxTVOSDeploymentTarget = "16.1";

Просмотреть файл

@ -131,7 +131,7 @@ namespace Xamarin {
case ApplePlatform.TVOS: return TVOSVersion;
case ApplePlatform.MacCatalyst: return MacCatalystVersion;
default:
throw new ArgumentOutOfRangeException(nameof(platform), platform, $"Unknown platform: {platform}");
throw new ArgumentOutOfRangeException (nameof (platform), platform, $"Unknown platform: {platform}");
}
}
@ -144,7 +144,7 @@ namespace Xamarin {
case ApplePlatform.TVOS: return MinTVOSVersion;
case ApplePlatform.MacCatalyst: return MinMacCatalystVersion;
default:
throw new ArgumentOutOfRangeException(nameof(platform), platform, $"Unknown platform: {platform}");
throw new ArgumentOutOfRangeException (nameof (platform), platform, $"Unknown platform: {platform}");
}
}
}

Просмотреть файл

@ -280,7 +280,7 @@
<ManifestResourceName>Xamarin.Bundler.Errors.zh-Hant</ManifestResourceName>
</EmbeddedResource>
</ItemGroup>
<Target Name="BuildSdkVersions" Inputs="../common/SdkVersions.cs.in;../common/ProductConstants.cs.in" Outputs="../common/SdkVersions.cs;../common/ProductConstants.cs">
<Target Name="BuildSdkVersions" Inputs="../common/SdkVersions.in.cs;../common/ProductConstants.in.cs" Outputs="../common/SdkVersions.cs;../common/ProductConstants.cs">
<Exec Command="make ../common/SdkVersions.cs ../common/ProductConstants.cs" />
</Target>
</Project>

Просмотреть файл

@ -568,7 +568,7 @@
<Link>docs\website\mmp-errors.md</Link>
</None>
</ItemGroup>
<Target Name="BuildSdkVersions" Inputs="../common/SdkVersions.cs.in;../common/ProductConstants.cs.in" Outputs="../common/SdkVersions.cs;../common/ProductConstants.cs">
<Target Name="BuildSdkVersions" Inputs="../common/SdkVersions.in.cs;../common/ProductConstants.in.cs" Outputs="../common/SdkVersions.cs;../common/ProductConstants.cs">
<Exec Command="make ../common/SdkVersions.cs ../common/ProductConstants.cs" />
</Target>
</Project>

Просмотреть файл

@ -585,7 +585,7 @@
<ManifestResourceName>Xamarin.Bundler.Errors.zh-Hant</ManifestResourceName>
</EmbeddedResource>
</ItemGroup>
<Target Name="BuildSdkVersions" Inputs="../common/SdkVersions.cs.in;../common/ProductConstants.cs.in" Outputs="../common/SdkVersions.cs;../common/ProductConstants.cs">
<Target Name="BuildSdkVersions" Inputs="../common/SdkVersions.in.cs;../common/ProductConstants.in.cs" Outputs="../common/SdkVersions.cs;../common/ProductConstants.cs">
<Exec Command="make ../common/SdkVersions.cs ../common/ProductConstants.cs" />
</Target>
<Target Name="AfterBuild">