Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion external/Xamarin.MacDev
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ public abstract class DetectSdkLocationsTaskBase : DetectSdkLocationsCoreTaskBas
{
protected override IAppleSdkVersion GetDefaultSdkVersion ()
{
return MacOSXSdkVersion.GetDefault (CurrentSdk);
var v = CurrentSdk.GetInstalledSdkVersions (false);
return v.Count > 0 ? v [v.Count - 1] : AppleSdkVersion.UseDefault;
}

protected override string GetDefaultXamarinSdkRoot ()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ namespace Xamarin.iOS.Tasks
public abstract class CompileAppManifestTaskCore : CompileAppManifestTaskBase
{
IPhoneDeviceType supportedDevices;
IPhoneSdkVersion sdkVersion;
AppleSdkVersion sdkVersion;

bool IsIOS { get { return Platform == ApplePlatform.iOS; } }

protected override bool Compile (PDictionary plist)
{
var currentSDK = Sdks.GetAppleSdk (Platform);

sdkVersion = IPhoneSdkVersion.Parse (DefaultSdkVersion);
sdkVersion = AppleSdkVersion.Parse (DefaultSdkVersion);
if (!currentSDK.SdkIsInstalled (sdkVersion, SdkIsSimulator)) {
Log.LogError (null, null, null, null, 0, 0, 0, 0, MSBStrings.E0013, Platform, sdkVersion);
return false;
Expand Down Expand Up @@ -295,7 +295,7 @@ void Validation (PDictionary plist)
var supportsIPad = (supportedDevices & IPhoneDeviceType.IPad) != 0;

// Validation...
if (!IsAppExtension && sdkVersion >= IPhoneSdkVersion.V3_2) {
if (!IsAppExtension && sdkVersion >= AppleSdkVersion.V3_2) {
IPhoneOrientation orientation;

if (supportsIPhone) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public abstract class DetectSdkLocationsTaskBase : DetectSdkLocationsCoreTaskBas
{
protected override IAppleSdkVersion GetDefaultSdkVersion ()
{
return IPhoneSdkVersion.UseDefault;
return AppleSdkVersion.UseDefault;
}

public override bool Execute ()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ bool IsWatchFramework {
public override bool Execute ()
{
var currentSdk = Sdks.GetSdk (TargetFrameworkMoniker);
IPhoneSdkVersion version;
AppleSdkVersion version;
string sdk_path;

if (IsWatchFramework) {
if (!IPhoneSdkVersion.TryParse (SdkVersion, out version)) {
if (!AppleSdkVersion.TryParse (SdkVersion, out version)) {
Log.LogError (MSBStrings.E0066, SdkVersion);
return false;
}
Expand All @@ -60,12 +60,12 @@ public override bool Execute ()
return false;
}

if (!IPhoneSdkVersion.TryParse (SdkVersion, out version)) {
if (!AppleSdkVersion.TryParse (SdkVersion, out version)) {
Log.LogError (MSBStrings.E0066, SdkVersion);
return false;
}

if (version < IPhoneSdkVersion.V8_2) {
if (version < AppleSdkVersion.V8_2) {
Log.LogError (MSBStrings.E0069, version);
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class GeneratePlistTaskTests_iOS : GeneratePlistTaskTests_Core
public override void ConfigureTask ()
{
base.ConfigureTask ();
Task.DefaultSdkVersion = Sdks.IOS.GetClosestInstalledSdk (IPhoneSdkVersion.V6_1, true).ToString ();
Task.DefaultSdkVersion = Sdks.IOS.GetClosestInstalledSdk (AppleSdkVersion.V6_1, true).ToString ();
Task.TargetFrameworkMoniker = "Xamarin.iOS,v1.0";
Task.TargetArchitectures = "ARM64";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class GeneratePlistTaskTests_tvOS : GeneratePlistTaskTests_Core
public override void ConfigureTask ()
{
base.ConfigureTask ();
Task.DefaultSdkVersion = Sdks.TVOS.GetClosestInstalledSdk (IPhoneSdkVersion.V9_0, true).ToString ();
Task.DefaultSdkVersion = Sdks.TVOS.GetClosestInstalledSdk (AppleSdkVersion.V9_0, true).ToString ();
Task.TargetFrameworkMoniker = "Xamarin.TVOS,v1.0";
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public abstract class GeneratePlistTaskTests_watchOS: GeneratePlistTaskTests_Cor
public override void ConfigureTask ()
{
base.ConfigureTask ();
Task.DefaultSdkVersion = Sdks.Watch.GetClosestInstalledSdk (IPhoneSdkVersion.V2_0, true).ToString ();
Task.DefaultSdkVersion = Sdks.Watch.GetClosestInstalledSdk (AppleSdkVersion.V2_0, true).ToString ();
Task.TargetFrameworkMoniker = "Xamarin.WatchOS,v1.0";
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ IBTool CreateIBToolTask (ApplePlatform framework, string projectDir, string inte
{
var interfaceDefinitions = new List<ITaskItem> ();
var sdk = Sdks.GetSdk (framework);
var version = IPhoneSdkVersion.GetDefault (sdk, false);
var version = AppleSdkVersion.GetDefault (sdk, false);
var root = sdk.GetSdkPath (version, false);
var usr = Path.Combine (sdk.DeveloperRoot, "usr");
var bin = Path.Combine (usr, "bin");
Expand Down