Installs apps from AltStore via AltServer

This commit is contained in:
Riley Testut
2019-05-30 17:10:50 -07:00
parent f7beccbaa6
commit 58446d225c
18 changed files with 1137 additions and 78 deletions

View File

@@ -11,23 +11,13 @@
NS_ASSUME_NONNULL_BEGIN
extern NSErrorDomain const ALTDeviceErrorDomain;
typedef NS_ERROR_ENUM(ALTDeviceErrorDomain, ALTDeviceError)
{
ALTDeviceErrorUnknown,
ALTDeviceErrorNotConnected,
ALTDeviceErrorConnectionFailed,
ALTDeviceErrorWriteFailed,
};
@interface ALTDeviceManager : NSObject
@property (class, nonatomic, readonly) ALTDeviceManager *sharedManager;
@property (nonatomic, readonly) NSArray<ALTDevice *> *connectedDevices;
- (NSProgress *)installAppAtURL:(NSURL *)fileURL toDevice:(ALTDevice *)altDevice completionHandler:(void (^)(BOOL success, NSError *_Nullable error))completionHandler;
- (NSProgress *)installAppAtURL:(NSURL *)fileURL toDeviceWithUDID:(NSString *)udid completionHandler:(void (^)(BOOL success, NSError *_Nullable error))completionHandler;
@end