Installs apps to connected devices

This commit is contained in:
Riley Testut
2019-05-29 15:14:57 -07:00
parent 6794a51c12
commit 1ece81ca4a
2 changed files with 374 additions and 0 deletions

View File

@@ -6,16 +6,29 @@
// Copyright © 2019 Riley Testut. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <AltSign/AltSign.h>
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;
@end
NS_ASSUME_NONNULL_END