Skip to content
Draft
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: 2 additions & 0 deletions AltSign/Capabilities/ALTCapabilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ extern ALTEntitlement const ALTEntitlementAppGroups;
extern ALTEntitlement const ALTEntitlementGetTaskAllow;
extern ALTEntitlement const ALTEntitlementTeamIdentifier;
extern ALTEntitlement const ALTEntitlementInterAppAudio;
extern ALTEntitlement const ALTEntitlementHealthKit;

// Features
typedef NSString *ALTFeature NS_TYPED_EXTENSIBLE_ENUM;
extern ALTFeature const ALTFeatureGameCenter;
extern ALTFeature const ALTFeatureAppGroups;
extern ALTFeature const ALTFeatureInterAppAudio;
extern ALTFeature const ALTFeatureHealthKit;

_Nullable ALTEntitlement ALTEntitlementForFeature(ALTFeature feature) NS_SWIFT_NAME(ALTEntitlement.init(feature:));
_Nullable ALTFeature ALTFeatureForEntitlement(ALTEntitlement entitlement) NS_SWIFT_NAME(ALTFeature.init(entitlement:));
Expand Down
10 changes: 10 additions & 0 deletions AltSign/Capabilities/ALTCapabilities.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
ALTEntitlement const ALTEntitlementGetTaskAllow = @"get-task-allow";
ALTEntitlement const ALTEntitlementTeamIdentifier = @"com.apple.developer.team-identifier";
ALTEntitlement const ALTEntitlementInterAppAudio = @"inter-app-audio";
ALTEntitlement const ALTEntitlementHealthKit = @"com.apple.developer.healthkit";

// Features
ALTFeature const ALTFeatureGameCenter = @"gameCenter";
ALTFeature const ALTFeatureAppGroups = @"APG3427HIY";
ALTFeature const ALTFeatureInterAppAudio = @"IAD53UNK2F";
ALTFeature const ALTFeatureHealthKit = @"HK421J6T7P";

_Nullable ALTEntitlement ALTEntitlementForFeature(ALTFeature feature)
{
Expand All @@ -31,6 +33,10 @@ _Nullable ALTEntitlement ALTEntitlementForFeature(ALTFeature feature)
{
return ALTEntitlementInterAppAudio;
}
else if ([feature isEqualToString:ALTFeatureHealthKit])
{
return ALTEntitlementHealthKit;
}

return nil;
}
Expand All @@ -45,6 +51,10 @@ _Nullable ALTFeature ALTFeatureForEntitlement(ALTEntitlement entitlement)
{
return ALTFeatureInterAppAudio;
}
else if ([entitlement isEqualToString:ALTEntitlementHealthKit])
{
return ALTFeatureHealthKit;
}

return nil;
}