xamarin-macios/msbuild/Xamarin.iOS.Tasks.Core/Tasks/CompileEntitlementsTaskBase.cs

50 строки
1.4 KiB
C#
Исходник Обычный вид История

2016-04-21 16:40:25 +03:00
using System;
using System.IO;
using System.Collections.Generic;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
using Xamarin.MacDev;
namespace Xamarin.iOS.Tasks
{
public abstract class CompileEntitlementsTaskBase : Xamarin.MacDev.Tasks.CompileEntitlementsTaskBase
{
public bool SdkIsSimulator { get; set; }
[Required]
public string TargetFrameworkIdentifier { get; set; }
static readonly HashSet<string> allowedProvisioningKeys = new HashSet<string> {
"application-identifier",
"aps-environment",
"beta-reports-active",
"com.apple.developer.default-data-protection",
"com.apple.developer.icloud-container-environment",
"com.apple.developer.icloud-container-identifiers",
"com.apple.developer.pass-type-identifiers",
"com.apple.developer.team-identifier",
"com.apple.developer.ubiquity-container-identifiers",
"get-task-allow"
};
protected override string ApplicationIdentifierKey {
get { return "application-identifier"; }
}
protected override HashSet<string> AllowedProvisioningKeys {
get { return allowedProvisioningKeys; }
}
protected override string DefaultEntitlementsPath {
get {
return Path.Combine (IPhoneSdks.GetSdk (TargetFrameworkIdentifier).GetSdkPath (SdkVersion, false), "Entitlements.plist");
}
}
protected override string EntitlementBundlePath { get { return AppBundleDir; } }
}
}