-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee06075
commit 8f04376
Showing
14 changed files
with
347 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// ALTAccount.h | ||
// AltSign | ||
// | ||
// Created by Riley Testut on 5/10/19. | ||
// Copyright © 2019 Riley Testut. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface ALTAccount : NSObject | ||
|
||
@property (nonatomic, copy) NSString *appleID; | ||
@property (nonatomic, copy) NSString *identifier; | ||
|
||
@property (nonatomic, readonly) NSString *name; | ||
@property (nonatomic, copy) NSString *firstName; | ||
@property (nonatomic, copy) NSString *lastName; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// ALTCertificate.h | ||
// AltSign | ||
// | ||
// Created by Riley Testut on 5/10/19. | ||
// Copyright © 2019 Riley Testut. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface ALTCertificate : NSObject | ||
|
||
@property (nonatomic, copy) NSString *name; | ||
@property (nonatomic, copy) NSString *serialNumber; | ||
|
||
@property (nonatomic, copy, nullable) NSString *identifier; | ||
@property (nonatomic, copy, nullable) NSString *machineName; | ||
@property (nonatomic, copy, nullable) NSString *machineIdentifier; | ||
|
||
@property (nonatomic, copy, nullable) NSData *data; | ||
@property (nonatomic, copy, nullable) NSData *privateKey; | ||
|
||
- (nullable instancetype)initWithData:(NSData *)data; | ||
- (nullable instancetype)initWithP12Data:(NSData *)p12Data password:(nullable NSString *)password; | ||
|
||
- (nullable NSData *)p12Data; | ||
- (nullable NSData *)encryptedP12DataWithPassword:(NSString *)password; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// | ||
// ALTProvisioningProfile.h | ||
// AltSign | ||
// | ||
// Created by Riley Testut on 5/22/19. | ||
// Copyright © 2019 Riley Testut. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
//#import "ALTCapabilities.h" | ||
#import "ALTCertificate.h" | ||
|
||
@class ALTAppID; | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface ALTProvisioningProfile : NSObject <NSCopying> | ||
|
||
@property (copy, nonatomic, readonly) NSString *name; | ||
@property (copy, nonatomic, readonly, nullable) NSString *identifier; | ||
@property (copy, nonatomic, readonly) NSUUID *UUID; | ||
|
||
@property (copy, nonatomic, readonly) NSString *bundleIdentifier; | ||
@property (copy, nonatomic, readonly) NSString *teamIdentifier; | ||
|
||
@property (copy, nonatomic, readonly) NSDate *creationDate; | ||
@property (copy, nonatomic, readonly) NSDate *expirationDate; | ||
|
||
@property (copy, nonatomic, readonly) NSDictionary<NSString *, id> *entitlements; | ||
@property (copy, nonatomic, readonly) NSArray<ALTCertificate *> *certificates; | ||
@property (copy, nonatomic, readonly) NSArray<NSString *> *deviceIDs; | ||
|
||
@property (readonly) BOOL isFreeProvisioningProfile; | ||
|
||
@property (copy, nonatomic, readonly) NSData *data; | ||
|
||
- (nullable instancetype)initWithData:(NSData *)data NS_DESIGNATED_INITIALIZER; | ||
- (nullable instancetype)initWithURL:(NSURL *)fileURL; | ||
|
||
- (instancetype)init NS_UNAVAILABLE; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// | ||
// ALTProvisioningProfile.h | ||
// AltSign | ||
// | ||
// Created by Riley Testut on 5/22/19. | ||
// Copyright © 2019 Riley Testut. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
#import "ALTProvisioningProfile.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface ALTProvisioningProfileWrapper : NSObject | ||
|
||
@property (copy, nonatomic) NSString *name; | ||
@property (copy, nonatomic, nullable) NSString *identifier; | ||
@property (copy, nonatomic) NSUUID *UUID; | ||
|
||
@property (copy, nonatomic) NSString *bundleIdentifier; | ||
@property (copy, nonatomic) NSString *teamIdentifier; | ||
|
||
@property (copy, nonatomic) NSDate *creationDate; | ||
@property (copy, nonatomic) NSDate *expirationDate; | ||
|
||
@property (copy, nonatomic) NSDictionary<NSString *, id> *entitlements; | ||
@property (copy, nonatomic) NSArray<ALTCertificate *> *certificates; | ||
@property (copy, nonatomic) NSArray<NSString *> *deviceIDs; | ||
|
||
@property BOOL isFreeProvisioningProfile; | ||
|
||
@property (copy, nonatomic) NSData *data; | ||
|
||
- (nullable instancetype)initWithProfile:(ALTProvisioningProfile *)profile; | ||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#import "ALTProvisioningProfileWrapper.h" | ||
|
||
@implementation ALTProvisioningProfileWrapper | ||
|
||
- (nullable instancetype)initWithProfile:(ALTProvisioningProfile *)profile { | ||
self = [self init]; | ||
self.name = profile.name; | ||
self.identifier = profile.identifier; | ||
self.UUID = profile.UUID; | ||
self.name = profile.name; | ||
self.bundleIdentifier = profile.bundleIdentifier; | ||
self.teamIdentifier = profile.teamIdentifier; | ||
self.creationDate = profile.creationDate; | ||
self.expirationDate = profile.expirationDate; | ||
self.entitlements = profile.entitlements; | ||
self.certificates = profile.certificates; | ||
self.deviceIDs = profile.deviceIDs; | ||
self.isFreeProvisioningProfile = profile.isFreeProvisioningProfile; | ||
self.data = profile.data; | ||
return self; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// ALTSigner.h | ||
// AltSign | ||
// | ||
// Created by Riley Testut on 5/22/19. | ||
// Copyright © 2019 Riley Testut. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
#import "ALTCertificate.h" | ||
#import "ALTProvisioningProfile.h" | ||
#import "ALTTeam.h" | ||
|
||
@class ALTAppID; | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface ALTSigner : NSObject | ||
|
||
@property (nonatomic) ALTTeam *team; | ||
@property (nonatomic) ALTCertificate *certificate; | ||
|
||
- (instancetype)initWithTeam:(ALTTeam *)team certificate:(ALTCertificate *)certificate; | ||
|
||
- (NSProgress *)signAppAtURL:(NSURL *)appURL provisioningProfiles:(NSArray<ALTProvisioningProfile *> *)profiles completionHandler:(void (^)(BOOL success, NSError * error))completionHandler; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// ALTTeam.h | ||
// AltSign | ||
// | ||
// Created by Riley Testut on 5/10/19. | ||
// Copyright © 2019 Riley Testut. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
#import "ALTAccount.h" | ||
|
||
typedef NS_ENUM(int16_t, ALTTeamType) | ||
{ | ||
ALTTeamTypeUnknown = 0, | ||
ALTTeamTypeFree = 1, | ||
ALTTeamTypeIndividual = 2, | ||
ALTTeamTypeOrganization = 3, | ||
}; | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface ALTTeam : NSObject | ||
|
||
@property (nonatomic, copy) NSString *name; | ||
@property (nonatomic, copy) NSString *identifier; | ||
@property (nonatomic) ALTTeamType type; | ||
|
||
@property (nonatomic) ALTAccount *account; | ||
|
||
- (instancetype)init NS_UNAVAILABLE; | ||
- (instancetype)initWithName:(NSString *)name identifier:(NSString *)identifier type:(ALTTeamType)type account:(ALTAccount *)account NS_DESIGNATED_INITIALIZER; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.