[Xamarin.MacDev] Add a few convenience overloads to IAppleSdk. (#114)
This commit is contained in:
Родитель
920e87e5f3
Коммит
bab25f535f
|
@ -83,6 +83,21 @@ namespace Xamarin.MacDev {
|
|||
return Path.Combine (DevicePlatform, "Developer/SDKs/" + DevicePlatformName + version + ".sdk");
|
||||
}
|
||||
|
||||
public string GetSdkPath (bool isSimulator)
|
||||
{
|
||||
return GetSdkPath (string.Empty, isSimulator);
|
||||
}
|
||||
|
||||
public string GetSdkPath ()
|
||||
{
|
||||
throw new InvalidOperationException ($"This AppleSdk requires specifying whether we're targeting the simulator or not, so please use the other overload taking a 'bool isSimulator' parameter.");
|
||||
}
|
||||
|
||||
public string GetSdkPath (string version)
|
||||
{
|
||||
throw new InvalidOperationException ($"This AppleSdk requires specifying whether we're targeting the simulator or not, so please use the other overload taking a 'bool isSimulator' parameter.");
|
||||
}
|
||||
|
||||
string GetSdkPlistFilename (string version, bool sim)
|
||||
{
|
||||
return Path.Combine (GetSdkPath (version, sim), "SDKSettings.plist");
|
||||
|
|
|
@ -7,6 +7,9 @@ namespace Xamarin.MacDev {
|
|||
string DeveloperRoot { get; }
|
||||
string GetPlatformPath (bool isSimulator);
|
||||
string GetSdkPath (string version, bool isSimulator);
|
||||
string GetSdkPath (bool isSimulator);
|
||||
string GetSdkPath (string version);
|
||||
string GetSdkPath ();
|
||||
bool SdkIsInstalled (IAppleSdkVersion version, bool isSimulator);
|
||||
bool TryParseSdkVersion (string value, out IAppleSdkVersion version);
|
||||
IAppleSdkVersion GetClosestInstalledSdk (IAppleSdkVersion version, bool isSimulator);
|
||||
|
|
|
@ -152,6 +152,16 @@ namespace Xamarin.MacDev {
|
|||
return GetSdkPath (version);
|
||||
}
|
||||
|
||||
public string GetSdkPath (bool isSimulator)
|
||||
{
|
||||
return GetSdkPath (string.Empty);
|
||||
}
|
||||
|
||||
public string GetSdkPath ()
|
||||
{
|
||||
return GetSdkPath (string.Empty);
|
||||
}
|
||||
|
||||
string GetSdkPlistFilename (string version)
|
||||
{
|
||||
return Path.Combine (GetSdkPath (version), "SDKSettings.plist");
|
||||
|
|
Загрузка…
Ссылка в новой задаче