mirror of
https://github.com/mas-cli/mas
synced 2024-11-21 19:23:01 +00:00
Merge pull request #162 from mas-cli/signin-highos
🐛 Fix signout command, return error instead of crash from signin command
This commit is contained in:
commit
9d59cf55b5
36 changed files with 584 additions and 213 deletions
|
@ -16,7 +16,7 @@ func download(_ adamId: UInt64) -> MASError? {
|
|||
let purchase = SSPurchase(adamId: adamId, account: account)
|
||||
|
||||
var purchaseError: MASError?
|
||||
var observerIdentifier: Any? = nil
|
||||
var observerIdentifier: CKDownloadQueueObserver? = nil
|
||||
|
||||
group.enter()
|
||||
purchase.perform { purchase, _, error, response in
|
||||
|
@ -39,7 +39,7 @@ func download(_ adamId: UInt64) -> MASError? {
|
|||
}
|
||||
|
||||
let downloadQueue = CKDownloadQueue.shared()
|
||||
observerIdentifier = downloadQueue?.add(observer)
|
||||
observerIdentifier = downloadQueue.add(observer)
|
||||
}
|
||||
else {
|
||||
print("No downloads")
|
||||
|
@ -51,7 +51,7 @@ func download(_ adamId: UInt64) -> MASError? {
|
|||
let _ = group.wait(timeout: .distantFuture)
|
||||
|
||||
if let observerIdentifier = observerIdentifier {
|
||||
CKDownloadQueue.shared().removeObserver(observerIdentifier)
|
||||
CKDownloadQueue.shared().remove(observerIdentifier)
|
||||
}
|
||||
|
||||
return purchaseError
|
||||
|
|
|
@ -10,22 +10,22 @@ extension ISStoreAccount {
|
|||
static var primaryAccountIsPresentAndSignedIn: Bool {
|
||||
return CKAccountStore.shared().primaryAccountIsPresentAndSignedIn
|
||||
}
|
||||
|
||||
|
||||
static var primaryAccount: ISStoreAccount? {
|
||||
return CKAccountStore.shared().primaryAccount
|
||||
}
|
||||
|
||||
static func signIn(username: String? = nil, password: String? = nil, systemDialog: Bool = false) throws -> ISStoreAccount {
|
||||
|
||||
static func signIn(username: String, password: String, systemDialog: Bool = false) throws -> ISStoreAccount {
|
||||
var account: ISStoreAccount? = nil
|
||||
var error: MASError? = nil
|
||||
|
||||
let accountService = ISServiceProxy.genericShared().accountService
|
||||
|
||||
let accountService: ISAccountService = ISServiceProxy.genericShared().accountService
|
||||
let client = ISStoreClient(storeClientType: 0)
|
||||
accountService.setStoreClient(client)
|
||||
|
||||
let context = ISAuthenticationContext(accountID: 0)!
|
||||
|
||||
let context = ISAuthenticationContext(accountID: 0)
|
||||
context.appleIDOverride = username
|
||||
|
||||
|
||||
if systemDialog {
|
||||
context.appleIDOverride = username
|
||||
} else {
|
||||
|
@ -34,10 +34,11 @@ extension ISStoreAccount {
|
|||
context.demoAccountPassword = password
|
||||
context.demoAutologinMode = true
|
||||
}
|
||||
|
||||
|
||||
let group = DispatchGroup()
|
||||
group.enter()
|
||||
|
||||
|
||||
// Only works on macOS Sierra and below
|
||||
accountService.signIn(with: context) { success, _account, _error in
|
||||
if success {
|
||||
account = _account
|
||||
|
@ -46,7 +47,7 @@ extension ISStoreAccount {
|
|||
}
|
||||
group.leave()
|
||||
}
|
||||
|
||||
|
||||
if systemDialog {
|
||||
group.wait()
|
||||
} else {
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
if status.isFailed || status.isCancelled {
|
||||
queue.removeDownload(withItemIdentifier: download.metadata.itemIdentifier)
|
||||
}
|
||||
else if let state = status.progressState {
|
||||
progress(state)
|
||||
else {
|
||||
progress(status.progressState)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -90,13 +90,8 @@ func progress(_ state: ProgressState) {
|
|||
}
|
||||
|
||||
extension SSDownloadStatus {
|
||||
var progressState: ProgressState? {
|
||||
if let phase = activePhase {
|
||||
return ProgressState(percentComplete: percentComplete, phase: phase.phaseDescription)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
var progressState: ProgressState {
|
||||
return ProgressState(percentComplete: percentComplete, phase: activePhase.phaseDescription)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,13 +13,17 @@ struct SignInCommand: CommandProtocol {
|
|||
typealias Options = SignInOptions
|
||||
let verb = "signin"
|
||||
let function = "Sign in to the Mac App Store"
|
||||
|
||||
|
||||
func run(_ options: Options) -> Result<(), MASError> {
|
||||
|
||||
|
||||
if #available(macOS 10.13, *) {
|
||||
return .failure(.signInDisabled)
|
||||
}
|
||||
|
||||
guard ISStoreAccount.primaryAccount == nil else {
|
||||
return .failure(.alreadySignedIn)
|
||||
}
|
||||
|
||||
|
||||
do {
|
||||
printInfo("Signing in to Apple ID: \(options.username)")
|
||||
|
||||
|
@ -42,17 +46,17 @@ struct SignInCommand: CommandProtocol {
|
|||
struct SignInOptions: OptionsProtocol {
|
||||
let username: String
|
||||
let password: String
|
||||
|
||||
let dialog: Bool
|
||||
|
||||
|
||||
let dialog: Bool
|
||||
|
||||
typealias ClientError = MASError
|
||||
|
||||
|
||||
static func create(username: String) -> (_ password: String) -> (_ dialog: Bool) -> SignInOptions {
|
||||
return { password in { dialog in
|
||||
return SignInOptions(username: username, password: password, dialog: dialog)
|
||||
}}
|
||||
}
|
||||
|
||||
|
||||
static func evaluate(_ m: CommandMode) -> Result<SignInOptions, CommandantError<MASError>> {
|
||||
return create
|
||||
<*> m <| Argument(usage: "Apple ID")
|
||||
|
|
|
@ -15,7 +15,16 @@ struct SignOutCommand: CommandProtocol {
|
|||
let function = "Sign out of the Mac App Store"
|
||||
|
||||
func run(_ options: Options) -> Result<(), MASError> {
|
||||
CKAccountStore.shared().signOut()
|
||||
if #available(macOS 10.13, *) {
|
||||
let accountService: ISAccountService = ISServiceProxy.genericShared().accountService
|
||||
accountService.signOut()
|
||||
}
|
||||
else {
|
||||
// Using CKAccountStore to sign out does nothing on High Sierra
|
||||
// https://github.com/mas-cli/mas/issues/129
|
||||
CKAccountStore.shared().signOut()
|
||||
}
|
||||
|
||||
return .success(())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,32 +10,38 @@ import Foundation
|
|||
|
||||
enum MASError: Error, CustomStringConvertible {
|
||||
case notSignedIn
|
||||
case signInDisabled
|
||||
case signInFailed(error: NSError?)
|
||||
case alreadySignedIn
|
||||
|
||||
|
||||
case purchaseFailed(error: NSError?)
|
||||
case downloadFailed(error: NSError?)
|
||||
case noDownloads
|
||||
case cancelled
|
||||
|
||||
|
||||
case searchFailed
|
||||
case noSearchResultsFound
|
||||
|
||||
|
||||
var description: String {
|
||||
switch self {
|
||||
case .notSignedIn:
|
||||
return "Not signed in"
|
||||
|
||||
|
||||
case .signInDisabled:
|
||||
return "The 'signin' command has been disabled on this macOS version. " +
|
||||
"\nFor more info see: " +
|
||||
"https://github.com/mas-cli/mas/pull/162"
|
||||
|
||||
case .signInFailed(let error):
|
||||
if let error = error {
|
||||
return "Sign in failed: \(error.localizedDescription)"
|
||||
} else {
|
||||
return "Sign in failed"
|
||||
}
|
||||
|
||||
|
||||
case .alreadySignedIn:
|
||||
return "Already signed in"
|
||||
|
||||
|
||||
case .purchaseFailed(let error):
|
||||
if let error = error {
|
||||
return "Download request failed: \(error.localizedDescription)"
|
||||
|
@ -49,16 +55,16 @@ enum MASError: Error, CustomStringConvertible {
|
|||
} else {
|
||||
return "Download failed"
|
||||
}
|
||||
|
||||
|
||||
case .noDownloads:
|
||||
return "No downloads began"
|
||||
|
||||
|
||||
case .cancelled:
|
||||
return "Download cancelled"
|
||||
|
||||
|
||||
case .searchFailed:
|
||||
return "Search failed"
|
||||
|
||||
|
||||
case .noSearchResultsFound:
|
||||
return "No results found"
|
||||
}
|
||||
|
|
|
@ -4,34 +4,68 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
#import <CommerceKit/CKServiceInterface.h>
|
||||
// #import "NSObject.h"
|
||||
|
||||
#import "ISStoreURLOperationDelegate-Protocol.h"
|
||||
#import <CommerceKit/CKServiceInterface.h>
|
||||
|
||||
@class ISStoreAccount, NSArray, NSString;
|
||||
@class CKDemoAccount, CKStoreAccount, CKStoreClient, ISStoreAccount, NSArray;
|
||||
|
||||
@interface CKAccountStore : CKServiceInterface <ISStoreURLOperationDelegate>
|
||||
@class NSString;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface CKAccountStore : NSObject
|
||||
{
|
||||
|
||||
// CKStoreClient *_storeClient;
|
||||
|
||||
}
|
||||
|
||||
+ (CKAccountStore *)sharedAccountStore;
|
||||
- (void)removePrimaryAccountObserver:(id)arg1;
|
||||
//- (id)addPrimaryAccountObserverWithBlock:(CDUnknownBlockType)arg1;
|
||||
//- (void)updatePasswordSettings:(id)arg1 completionBlock:(CDUnknownBlockType)arg2;
|
||||
//- (void)getPasswordSettingsWithCompletionBlock:(CDUnknownBlockType)arg1;
|
||||
//- (void)getEligibilityForService:(long long)arg1 completionBlock:(CDUnknownBlockType)arg2;
|
||||
|
||||
+ (id)accountStoreForStoreClient:(id)arg1;
|
||||
@property(readonly) CKStoreClient *storeClient; // @synthesize storeClient=_storeClient;
|
||||
|
||||
// - (void).cxx_destruct;
|
||||
// - (void)getTouchIDStateForAccount:(id)arg1 completionBlock:(CDUnknownBlockType)arg2;
|
||||
// - (void)setTouchIDStateForAccount:(id)arg1 state:(long long)arg2 completionBlock:(CDUnknownBlockType)arg3;
|
||||
// - (void)updatePasswordSettings:(id)arg1 completionBlock:(CDUnknownBlockType)arg2;
|
||||
// - (void)getPasswordSettingsWithCompletionBlock:(CDUnknownBlockType)arg1;
|
||||
// - (void)getEligibilityForService:(long long)arg1 completionBlock:(CDUnknownBlockType)arg2;
|
||||
|
||||
- (id)eligibilityForService:(long long)arg1;
|
||||
- (void)signOut;
|
||||
- (void)viewAccount;
|
||||
- (void)signIn;
|
||||
|
||||
//- (void)signInWithSuggestedAppleID:(id)arg1 allowChangeOfAppleID:(BOOL)arg2 completionHandler:(CDUnknownBlockType)arg3;
|
||||
|
||||
- (void)signIn;
|
||||
|
||||
- (void)addAccount:(id)arg1;
|
||||
@property(readonly) NSArray *accounts;
|
||||
- (id)accountWithAppleID:(id)arg1;
|
||||
- (id)accountForDSID:(id)arg1;
|
||||
@property(readonly) BOOL primaryAccountIsPresentAndSignedIn;
|
||||
@property(readonly) ISStoreAccount *primaryAccount;
|
||||
@property(readonly) NSArray *accounts;
|
||||
- (id)init;
|
||||
- (void)removePrimaryAccountObserver:(id)arg1;
|
||||
|
||||
// - (id)addPrimaryAccountObserverWithBlock:(CDUnknownBlockType)arg1;
|
||||
|
||||
- (id)initWithStoreClient:(id)arg1;
|
||||
- (void)removeAccountObserver:(id)arg1;
|
||||
- (id)addAccountObserver:(id)arg1;
|
||||
|
||||
// - (void)signOutWithCompletionHandler:(CDUnknownBlockType)arg1;
|
||||
|
||||
- (void)signOut;
|
||||
- (id)storeAccountForAppleID:(id)arg1;
|
||||
- (id)storeAccountForDSID:(id)arg1;
|
||||
@property(readonly) BOOL primaryAccountIsPresentAndSignedIn;
|
||||
@property(readonly) CKStoreAccount *primaryStoreAccount;
|
||||
@property(readonly) CKDemoAccount *demoAccount;
|
||||
@property(readonly) BOOL isDemoModeEnabled;
|
||||
@property(readonly) NSArray *knownAccounts;
|
||||
- (id)_initWithStoreClient:(id)arg1;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -6,24 +6,36 @@
|
|||
|
||||
#import <CommerceKit/CKServiceInterface.h>
|
||||
|
||||
@class NSArray, NSLock, NSMutableDictionary, CKDownloadQueueClient;
|
||||
@class CKDownloadQueueClient, NSArray, NSLock, NSMutableDictionary;
|
||||
|
||||
@protocol CKDownloadQueueObserver;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface CKDownloadQueue : CKServiceInterface
|
||||
{
|
||||
NSMutableDictionary *_downloadsByItemID;
|
||||
NSLock *_downloadsLock;
|
||||
NSMutableDictionary *_downloadQueueObservers;
|
||||
CKDownloadQueueClient *_sharedObserver;
|
||||
}
|
||||
|
||||
+ (CKDownloadQueue *)sharedDownloadQueue;
|
||||
+ (instancetype)sharedDownloadQueue;
|
||||
|
||||
@property(retain, nonatomic) CKDownloadQueueClient *sharedObserver; // @synthesize sharedObserver=_sharedObserver;
|
||||
@property(retain, nonatomic) NSMutableDictionary *downloadQueueObservers; // @synthesize downloadQueueObservers=_downloadQueueObservers;
|
||||
|
||||
//- (void).cxx_destruct;
|
||||
|
||||
- (BOOL)cacheReceiptDataForDownload:(id)arg1;
|
||||
- (void)checkStoreDownloadQueueForAccount:(id)arg1;
|
||||
- (void)recoverAvailableDiskSpace;
|
||||
- (void)lockedApplicationTriedToLaunchAtPath:(id)arg1;
|
||||
- (void)unlockApplicationsWithBundleIdentifier:(id)arg1;
|
||||
- (void)lockApplicationsForBundleID:(id)arg1;
|
||||
- (void)performedIconAnimationForDownloadWithIdentifier:(unsigned long long)arg1;
|
||||
|
||||
//- (void)fetchIconForItemIdentifier:(unsigned long long)arg1 atURL:(id)arg2 replyBlock:(CDUnknownBlockType)arg3;
|
||||
|
||||
- (void)removeDownloadWithItemIdentifier:(unsigned long long)arg1;
|
||||
- (void)cancelDownload:(id)arg1 promptToConfirm:(BOOL)arg2 askToDelete:(BOOL)arg3;
|
||||
- (void)resumeDownloadWithItemIdentifier:(unsigned long long)arg1;
|
||||
|
@ -31,11 +43,15 @@
|
|||
- (void)addDownload:(id)arg1;
|
||||
- (id)downloadForItemIdentifier:(unsigned long long)arg1;
|
||||
@property(readonly, nonatomic) NSArray *downloads; // @dynamic downloads;
|
||||
- (void)removeObserver:(id)arg1;
|
||||
- (id)addObserver:(id<CKDownloadQueueObserver>)arg1;
|
||||
- (id)addObserver:(id)arg1 forDownloadTypes:(long long)arg2;
|
||||
//- (id)addObserverForDownloadTypes:(long long)arg1 withBlock:(CDUnknownBlockType)arg2;
|
||||
- (void)removeObserver:(id<CKDownloadQueueObserver>)arg1;
|
||||
- (id<CKDownloadQueueObserver>)addObserver:(id<CKDownloadQueueObserver>)arg1;
|
||||
- (id<CKDownloadQueueObserver>)addObserver:(id<CKDownloadQueueObserver>)arg1 forDownloadTypes:(long long)arg2;
|
||||
|
||||
// - (id)addObserverForDownloadTypes:(long long)arg1 withBlock:(CDUnknownBlockType)arg2;
|
||||
|
||||
- (void)connectionWasInterrupted;
|
||||
- (id)initWithStoreClient:(id)arg1;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -5,10 +5,17 @@
|
|||
//
|
||||
|
||||
#import <CommerceKit/CKServiceInterface.h>
|
||||
|
||||
#import <StoreFoundation/SSPurchase.h>
|
||||
|
||||
@class NSArray, NSMutableArray, NSNumber;
|
||||
|
||||
@class SSPurchaseResponse;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
typedef void (^SSPurchaseCompletion)(SSPurchase * _Nullable purchase, BOOL completed, NSError * _Nullable error, SSPurchaseResponse * _Nullable response);
|
||||
|
||||
@interface CKPurchaseController : CKServiceInterface
|
||||
{
|
||||
NSMutableArray *_purchases;
|
||||
|
@ -21,9 +28,9 @@
|
|||
|
||||
+ (void)setNeedsSilentMachineAuthorization:(BOOL)arg1;
|
||||
+ (CKPurchaseController *)sharedPurchaseController;
|
||||
- (void)performPurchase:(SSPurchase *)purchase withOptions:(NSUInteger)options completionHandler:(void(^)(SSPurchase *, BOOL, NSError*, SSPurchaseResponse *))completionHandler;
|
||||
|
||||
//@property(copy) CDUnknownBlockType dialogHandler; // @synthesize dialogHandler=_dialogHandler;
|
||||
//- (void).cxx_destruct;
|
||||
//- (BOOL)adoptionCompletedForBundleID:(id)arg1;
|
||||
//- (void)_performVPPReceiptRenewal;
|
||||
//- (void)checkServerDownloadQueue;
|
||||
|
@ -32,7 +39,10 @@
|
|||
//- (void)cancelPurchaseWithProductID:(id)arg1;
|
||||
//- (void)resumeDownloadForPurchasedProductID:(id)arg1;
|
||||
//- (void)startPurchases:(NSArray<SSPurchase *> *)purchases shouldStartDownloads:(BOOL)downloads eventHandler:(CDUnknownBlockType)arg3;
|
||||
//- (void)checkInstallRequirementsAtURL:(id)arg1 productID:(id)arg2 completionHandler:(CDUnknownBlockType)arg3;
|
||||
//- (void)startPurchases:(NSArray<SSPurchase *> *)purchases withOptions:(unsigned long long)arg2 completionHandler:(CDUnknownBlockType)arg3;
|
||||
|
||||
- (void)performPurchase:(SSPurchase *)purchase withOptions:(unsigned long long)arg2 completionHandler:(SSPurchaseCompletion _Nullable)completionHandler;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
#import <StoreFoundation/ISServiceProxy.h>
|
||||
#import "ISServiceProxy.h"
|
||||
|
||||
@interface CKServiceInterface : ISServiceProxy
|
||||
{
|
||||
|
|
|
@ -5,32 +5,48 @@
|
|||
//
|
||||
|
||||
#import <CommerceKit/CKServiceInterface.h>
|
||||
|
||||
#import <StoreFoundation/CKSoftwareProduct.h>
|
||||
|
||||
@class CKSoftwareMapObserver, NSMutableDictionary;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@class NSLock, NSMutableArray;
|
||||
|
||||
@interface CKSoftwareMap : CKServiceInterface
|
||||
{
|
||||
NSMutableArray *_observers;
|
||||
NSLock *_observersLock;
|
||||
NSMutableDictionary *_productsObservers;
|
||||
CKSoftwareMapObserver *_sharedObserver;
|
||||
}
|
||||
|
||||
+ (CKSoftwareMap *)sharedSoftwareMap;
|
||||
- (id)adaptableBundleIdentifiers;
|
||||
- (BOOL)adoptionCompletedForBundleID:(id)arg1 adoptingDSID:(out _Nullable id * _Nonnull)arg2 appleID:(out _Nullable id * _Nonnull)arg3;
|
||||
+ (instancetype)sharedSoftwareMap;
|
||||
|
||||
@property(retain, nonatomic) CKSoftwareMapObserver *sharedObserver; // @synthesize sharedObserver=_sharedObserver;
|
||||
@property(retain, nonatomic) NSMutableDictionary *productsObservers; // @synthesize productsObservers=_productsObservers;
|
||||
|
||||
// - (void).cxx_destruct;
|
||||
|
||||
- (id)adoptableBundleIdentifiers;
|
||||
|
||||
- (BOOL)adoptionCompletedForBundleID:(id)arg1 adoptingDSID:(out _Nullable id * _Nullable)arg2 appleID:(out _Nullable id * _Nullable)arg3;
|
||||
|
||||
- (id)updateRequestBodyData:(char *)arg1 includeInstalledApps:(BOOL)arg2 includeBundledApps:(BOOL)arg3 conditionally:(BOOL)arg4 hadUnadoptedApps:(out char *)arg5;
|
||||
- (id)iconForApplicationWithBundeID:(id)arg1;
|
||||
- (id)bundleInfoFromBundleAtPath:(id)arg1;
|
||||
- (BOOL)isTrialVersionOfBundleIdentifier:(id)arg1;
|
||||
- (id)receiptFromBundleAtPath:(id)arg1;
|
||||
- (id)productForPath:(id)arg1;
|
||||
|
||||
- (NSArray<CKSoftwareProduct *>* __nullable)allProducts;
|
||||
- (CKSoftwareProduct *)productForItemIdentifier:(unsigned long long)arg1;
|
||||
- (nullable CKSoftwareProduct *)productForBundleIdentifier:(NSString *)arg1;
|
||||
- (void)removeProductsObserver:(id)arg1;
|
||||
//- (id)addProductsObserver:(CDUnknownBlockType)arg1 queue:(id)arg2;
|
||||
- (id)initWithStoreClient:(id)arg1;
|
||||
|
||||
- (void)removeProductsObserverForToken:(id)arg1;
|
||||
|
||||
// - (id)addProductsObserver:(CDUnknownBlockType)arg1 queue:(id)arg2;
|
||||
|
||||
- (void)connectionWasInterrupted;
|
||||
|
||||
- (instancetype)initWithStoreClient:(id)arg1;
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -4,19 +4,40 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
// #import <CommerceKit/CKServiceInterface.h>
|
||||
#import "CKServiceInterface.h"
|
||||
|
||||
@class CKUpdateControllerClient, NSMutableDictionary;
|
||||
|
||||
@class CKUpdate;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface CKUpdateController : CKServiceInterface
|
||||
{
|
||||
// CDUnknownBlockType _dialogHandler;
|
||||
BOOL _shouldNotAttemptInstallationAfterFailureDialog;
|
||||
|
||||
// CDUnknownBlockType _dialogHandler;
|
||||
|
||||
NSMutableDictionary *_availableUpdatesObservers;
|
||||
NSMutableDictionary *_updateScanObservers;
|
||||
NSMutableDictionary *_updateProgressObservers;
|
||||
CKUpdateControllerClient *_sharedObserver;
|
||||
}
|
||||
|
||||
+ (CKUpdateController * _Nullable)sharedUpdateController;
|
||||
//@property(copy) CDUnknownBlockType dialogHandler; // @synthesize dialogHandler=_dialogHandler;
|
||||
//- (void).cxx_destruct;
|
||||
|
||||
@property(retain, nonatomic) CKUpdateControllerClient *sharedObserver; // @synthesize sharedObserver=_sharedObserver;
|
||||
@property(retain, nonatomic) NSMutableDictionary *updateProgressObservers; // @synthesize updateProgressObservers=_updateProgressObservers;
|
||||
@property(retain, nonatomic) NSMutableDictionary *updateScanObservers; // @synthesize updateScanObservers=_updateScanObservers;
|
||||
@property(retain, nonatomic) NSMutableDictionary *availableUpdatesObservers; // @synthesize availableUpdatesObservers=_availableUpdatesObservers;
|
||||
@property BOOL shouldNotAttemptInstallationAfterFailureDialog; // @synthesize shouldNotAttemptInstallationAfterFailureDialog=_shouldNotAttemptInstallationAfterFailureDialog;
|
||||
|
||||
// @property(copy) CDUnknownBlockType dialogHandler; // @synthesize dialogHandler=_dialogHandler;
|
||||
// - (void).cxx_destruct;
|
||||
|
||||
- (void)didInteractivelyPurchaseItemIdentifier:(unsigned long long)arg1 success:(BOOL)arg2;
|
||||
- (BOOL)willInteractivelyPurchaseItemIdentifier:(unsigned long long)arg1;
|
||||
- (void)promptUserToOptInForAutoUpdateWithShowNotification:(BOOL)arg1;
|
||||
- (BOOL)shouldPromptForAutoUpdateOptIn;
|
||||
- (BOOL)isAutoUpdatedEnabled;
|
||||
|
@ -26,9 +47,13 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
- (int)catalogTrustLevel;
|
||||
- (id)catalogHostName;
|
||||
- (void)stopObservingOSUpdateProgressWithCallback:(id)arg1;
|
||||
//- (id)observerOSUpdateProgressWithProgressHandler:(CDUnknownBlockType)arg1;
|
||||
|
||||
//- (id)observeOSUpdateProgressWithProgressHandler:(CDUnknownBlockType)arg1;
|
||||
|
||||
- (void)stopObservingOSUpdateScansWithCallback:(id)arg1;
|
||||
//- (id)observerOSUpdateScansWithProgressHandler:(CDUnknownBlockType)arg1;
|
||||
|
||||
//- (id)observeOSUpdateScansWithProgressHandler:(CDUnknownBlockType)arg1;
|
||||
|
||||
- (void)startOSUpdateScanWithForceFullScan:(BOOL)arg1 reportProgressImmediately:(BOOL)arg2 launchedFromNotification:(BOOL)arg3 userHasSeenAllUpdates:(BOOL)arg4 checkForOtherUpdates:(BOOL)arg5;
|
||||
- (void)unhideAllOSUpdates;
|
||||
- (void)hideOSUpdatesWithProductKeys:(id)arg1;
|
||||
|
@ -42,18 +67,35 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
- (id)osUpdatesToBeInstalledLater;
|
||||
- (id)osUpdatesToBeInstalledAfterLogout;
|
||||
- (void)cancelUpdatesToBeInstalledLater;
|
||||
|
||||
//- (void)queueOSUpdatesForLaterInstall:(id)arg1 withMode:(long long)arg2 completionHandler:(CDUnknownBlockType)arg3;
|
||||
|
||||
- (void)installAvailableUpdatesLaterWithMode:(long long)arg1;
|
||||
- (BOOL)shouldOfferDoItLater;
|
||||
|
||||
// - (void)updatesWithTags:(id)arg1 completionHandler:(CDUnknownBlockType)arg2;
|
||||
|
||||
- (void)installAllAvailableUpdates;
|
||||
//- (void)startAppUpdates:(id)arg1 andOSUpdates:(id)arg2 withDelegate:(id)arg3 completionHandler:(CDUnknownBlockType)arg4;
|
||||
//- (void)checkForUpdatesWithUserHasSeenUpdates:(BOOL)arg1 completionHandler:(CDUnknownBlockType)arg2;
|
||||
|
||||
// - (void)startAppInstallWithTags:(id)arg1 fallbackPurchase:(id)arg2 completionHandler:(CDUnknownBlockType)arg3;
|
||||
// - (void)startAppUpdates:(id)arg1 andOSUpdates:(id)arg2 withDelegate:(id)arg3 completionHandler:(CDUnknownBlockType)arg4;
|
||||
// - (void)_checkForBookUpdatesWithCompletionHandler:(CDUnknownBlockType)arg1;
|
||||
// - (void)checkForUpdatesWithUserHasSeenUpdates:(BOOL)arg1 completionHandler:(CDUnknownBlockType)arg2;
|
||||
|
||||
- (void)removeAvailableUpdatesObserver:(id)arg1;
|
||||
//- (id)addAvailableUpdatesObserverWithBlock:(CDUnknownBlockType)arg1;
|
||||
|
||||
// - (id)addAvailableUpdatesObserverWithBlock:(CDUnknownBlockType)arg1;
|
||||
|
||||
- (unsigned long long)availableUpdatesBadgeCount;
|
||||
- (id)incompatibleUpdates;
|
||||
|
||||
- (nullable CKUpdate *)availableUpdateWithItemIdentifier:(unsigned long long)arg1;
|
||||
- (NSArray<CKUpdate *>*)availableUpdates;
|
||||
|
||||
- (void)connectionWasInterrupted;
|
||||
- (id)initWithStoreClient:(id)arg1;
|
||||
- (id)init;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -4,10 +4,14 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
#import <StoreFoundation/ISURLOperationDelegate-Protocol.h>
|
||||
//#import "ISURLOperationDelegate.h"
|
||||
|
||||
#import "ISURLOperationDelegate-Protocol.h"
|
||||
|
||||
@class ISStoreURLOperation, NSNumber, NSString;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol ISStoreURLOperationDelegate <ISURLOperationDelegate>
|
||||
|
||||
@optional
|
||||
|
@ -15,3 +19,4 @@
|
|||
- (void)operation:(ISStoreURLOperation *)arg1 didAuthenticateWithDSID:(NSNumber *)arg2;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -4,10 +4,16 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
#import <Foundation/NSZone.h>
|
||||
// #import <Foundation/NSZone.h>
|
||||
|
||||
//#import "NSObject.h"
|
||||
//#import "NSCopying.h"
|
||||
//#import "NSSecureCoding.h"
|
||||
|
||||
@class NSDate, NSNumber, NSString, NSValue;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface CKSoftwareProduct : NSObject <NSSecureCoding, NSCopying>
|
||||
{
|
||||
BOOL _installed;
|
||||
|
@ -25,6 +31,7 @@
|
|||
NSNumber *_itemIdentifier;
|
||||
NSNumber *_storeFrontIdentifier;
|
||||
NSNumber *_versionIdentifier;
|
||||
NSDate *_purchaseDate;
|
||||
NSValue *_mdItemRef;
|
||||
NSString *_vppLicenseOrganizationName;
|
||||
NSDate *_vppLicenseExpirationDate;
|
||||
|
@ -35,34 +42,43 @@
|
|||
NSNumber *_expectedStoreVersion;
|
||||
}
|
||||
|
||||
+ (nullable instancetype)productAtPath:(nonnull NSString *)arg1;
|
||||
+ (nullable instancetype)createSoftwareProductForAppAtPath:(nonnull NSString *)arg1;
|
||||
+ (nullable instancetype)productPathToUpgradeForBundleIdentifier:(nonnull NSString *)bundleIdentifier versionNumberString:(nonnull NSString *)versionNumber;
|
||||
|
||||
+ (BOOL)supportsSecureCoding;
|
||||
|
||||
@property(copy, nullable) NSNumber *expectedStoreVersion; // @synthesize expectedStoreVersion=_expectedStoreVersion;
|
||||
@property(copy, nullable) NSString *expectedBundleVersion; // @synthesize expectedBundleVersion=_expectedBundleVersion;
|
||||
|
||||
@property BOOL metadataChangeIsExpected; // @synthesize metadataChangeIsExpected=_metadataChangeIsExpected;
|
||||
@property long long source; // @synthesize source=_source;
|
||||
@property BOOL isLegacyApp; // @synthesize isLegacyApp=_isLegacyApp;
|
||||
@property BOOL isMachineLicensed; // @synthesize isMachineLicensed=_isMachineLicensed;
|
||||
|
||||
@property(retain, nullable) NSString *vppLicenseCancellationReason; // @synthesize vppLicenseCancellationReason=_vppLicenseCancellationReason;
|
||||
@property(retain, nullable) NSDate *vppLicenseRenewalDate; // @synthesize vppLicenseRenewalDate=_vppLicenseRenewalDate;
|
||||
@property(retain, nullable) NSDate *vppLicenseExpirationDate; // @synthesize vppLicenseExpirationDate=_vppLicenseExpirationDate;
|
||||
@property(retain, nullable) NSString *vppLicenseOrganizationName; // @synthesize vppLicenseOrganizationName=_vppLicenseOrganizationName;
|
||||
|
||||
@property BOOL vppLicenseRevoked; // @synthesize vppLicenseRevoked=_vppLicenseRevoked;
|
||||
@property BOOL isVPPLicensed; // @synthesize isVPPLicensed=_isVPPLicensed;
|
||||
@property BOOL installed; // @synthesize installed=_installed;
|
||||
@property(retain, nullable) NSValue *mdItemRef; // @synthesize mdItemRef=_mdItemRef;
|
||||
@property(retain, nullable) NSNumber *versionIdentifier; // @synthesize versionIdentifier=_versionIdentifier;
|
||||
@property(retain, nullable) NSNumber *storeFrontIdentifier; // @synthesize storeFrontIdentifier=_storeFrontIdentifier;
|
||||
@property(retain, nonnull) NSNumber *itemIdentifier; // @synthesize itemIdentifier=_itemIdentifier;
|
||||
@property(retain, nullable) NSString *receiptType; // @synthesize receiptType=_receiptType;
|
||||
@property(retain, nullable) NSString *bundlePath; // @synthesize bundlePath=_bundlePath;
|
||||
@property(retain, nonnull) NSString *bundleVersion; // @synthesize bundleVersion=_bundleVersion;
|
||||
@property(retain, nullable) NSString *bundleIdentifier; // @synthesize bundleIdentifier=_bundleIdentifier;
|
||||
@property(retain, nullable) NSString *accountIdentifier; // @synthesize accountIdentifier=_accountIdentifier;
|
||||
@property(retain, nullable) NSString *accountOpaqueDSID; // @synthesize accountOpaqueDSID=_accountOpaqueDSID;
|
||||
//- (void).cxx_destruct;
|
||||
- (nonnull instancetype)copyWithZone:(nullable NSZone *)zone;
|
||||
|
||||
@property(retain) NSValue *mdItemRef; // @synthesize mdItemRef=_mdItemRef;
|
||||
@property(retain) NSDate *purchaseDate; // @synthesize purchaseDate=_purchaseDate;
|
||||
@property(retain) NSNumber *versionIdentifier; // @synthesize versionIdentifier=_versionIdentifier;
|
||||
@property(retain) NSNumber *storeFrontIdentifier; // @synthesize storeFrontIdentifier=_storeFrontIdentifier;
|
||||
@property(retain) NSNumber *itemIdentifier; // @synthesize itemIdentifier=_itemIdentifier;
|
||||
@property(retain) NSString *receiptType; // @synthesize receiptType=_receiptType;
|
||||
@property(retain) NSString *bundlePath; // @synthesize bundlePath=_bundlePath;
|
||||
@property(retain) NSString *bundleVersion; // @synthesize bundleVersion=_bundleVersion;
|
||||
@property(retain) NSString *bundleIdentifier; // @synthesize bundleIdentifier=_bundleIdentifier;
|
||||
@property(retain) NSString *accountIdentifier; // @synthesize accountIdentifier=_accountIdentifier;
|
||||
@property(retain) NSString *accountOpaqueDSID; // @synthesize accountOpaqueDSID=_accountOpaqueDSID;
|
||||
|
||||
// - (void).cxx_destruct;
|
||||
|
||||
- (instancetype)copyWithZone:(nullable NSZone *)zone;
|
||||
- (nullable instancetype)initWithCoder:(nonnull NSCoder *)coder;
|
||||
- (void)encodeWithCoder:(nonnull NSCoder *)coder;
|
||||
@property(readonly, nonnull) NSString *appName;
|
||||
|
@ -71,3 +87,4 @@
|
|||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
// #import "NSObject.h"
|
||||
|
||||
// #import "NSSecureCoding.h"
|
||||
|
||||
@class NSDate, NSDictionary, NSMutableDictionary, NSNumber, NSString, SSPurchase;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
@ -17,7 +21,9 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
+ (BOOL)supportsSecureCoding;
|
||||
@property(nonatomic) long long softwareUpdateState; // @synthesize softwareUpdateState=_softwareUpdateState;
|
||||
@property(readonly) NSDictionary *dictionary; // @synthesize dictionary=_dictionary;
|
||||
//- (void).cxx_destruct;
|
||||
|
||||
// - (void).cxx_destruct;
|
||||
|
||||
@property(readonly, nonatomic) NSString *autoUpdateAbortReason;
|
||||
@property(nonatomic) BOOL hasBeenSeenByUser;
|
||||
@property(readonly, nonatomic) BOOL didFailToAutoInstall;
|
||||
|
|
|
@ -4,50 +4,57 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
@class ISAuthenticationContext, ISAuthenticationResponse, ISStoreAccount, NSDictionary, NSNumber, NSString, NSURL;
|
||||
// #import "ISServiceRemoteObject.h"
|
||||
|
||||
@class ISAuthenticationResponse, ISStoreAccount, NSDictionary, NSNumber, NSString, NSURL, NSURLRequest, NSURLResponse;
|
||||
|
||||
@class ISAuthenticationContext;
|
||||
@class NSURLRequest;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol ISAccountService <ISServiceRemoteObject>
|
||||
//- (void)completeSetupWithResponse:(NSDictionary *)arg1 withReply:(void (^)(BOOL, NSError *))arg2;
|
||||
//- (void)handlePushNotificationMessage:(NSDictionary *)arg1;
|
||||
//- (void)isRegisteredForAccount:(NSNumber *)arg1 andMask:(long long)arg2 withReply:(void (^)(BOOL, NSError *, BOOL))arg3;
|
||||
//- (void)disableAutoDownloadWithReply:(void (^)(BOOL, NSError *))arg1;
|
||||
//- (void)enableAutoDownloadForEnvironmentNamed:(NSString *)arg1 withReply:(void (^)(BOOL, NSError *))arg2;
|
||||
//- (void)getEnabledMediaTypesWithReply:(void (^)(BOOL, NSError *, long long))arg1;
|
||||
//- (void)registerDeviceTokenForEnvironmentNamed:(NSString *)arg1 withReply:(void (^)(BOOL, NSError *))arg2;
|
||||
//- (void)recommendedAppleIDForAccountSignIn:(void (^)(NSString *))arg1;
|
||||
//- (void)iCloudDSIDReplyBlock:(void (^)(NSString *))arg1;
|
||||
//- (void)setStoreFrontID:(NSString *)arg1;
|
||||
//- (void)storeFrontWithReplyBlock:(void (^)(NSString *))arg1;
|
||||
//- (void)shouldSendGUIDWithRequestForURL:(NSURL *)arg1 withReplyBlock:(void (^)(BOOL))arg2;
|
||||
//- (void)consumeCookiesWithHTTPHeaders:(NSDictionary *)arg1 fromURL:(NSURL *)arg2;
|
||||
//- (void)httpHeadersForURL:(NSURL *)arg1 forDSID:(NSNumber *)arg2 includeADIHeaders:(BOOL)arg3 withReplyBlock:(void (^)(NSDictionary *))arg4;
|
||||
//- (void)removeURLBagObserver:(id <ISURLBagObserver>)arg1;
|
||||
//- (void)addURLBagObserver:(id <ISURLBagObserver>)arg1;
|
||||
//- (void)dictionaryWithReplyBlock:(void (^)(NSDictionary *))arg1;
|
||||
//- (void)isValidWithReplyBlock:(void (^)(BOOL))arg1;
|
||||
//- (void)regexWithKey:(NSString *)arg1 matchesString:(NSString *)arg2 replyBlock:(void (^)(BOOL))arg3;
|
||||
//- (void)invalidateAllBags;
|
||||
//- (void)loadURLBagWithType:(unsigned long long)arg1 replyBlock:(void (^)(BOOL, BOOL, NSError *))arg2;
|
||||
//- (void)needsSilentADIActionForURL:(NSURL *)arg1 withReplyBlock:(void (^)(BOOL))arg2;
|
||||
//- (void)urlIsTrustedByURLBag:(NSURL *)arg1 withReplyBlock:(void (^)(BOOL))arg2;
|
||||
//- (void)valueForURLBagKey:(NSString *)arg1 withReplyBlock:(void (^)(id))arg2;
|
||||
//- (void)updatePasswordSettings:(NSDictionary *)arg1 replyBlock:(void (^)(BOOL, NSError *))arg2;
|
||||
//- (void)getPasswordSettingsWithReplyBlock:(void (^)(NSDictionary *, NSError *))arg1;
|
||||
//- (void)getEligibilityForService:(NSNumber *)arg1 replyBlock:(void (^)(NSNumber *, NSError *))arg2;
|
||||
//- (void)eligibilityForService:(NSNumber *)arg1 replyBlock:(void (^)(NSNumber *))arg2;
|
||||
//- (void)retailStoreDemoModeReplyBlock:(void (^)(BOOL, NSString *, NSString *, BOOL))arg1;
|
||||
//- (void)removeAccountStoreObserver:(id <ISAccountStoreObserver>)arg1;
|
||||
//- (void)addAccountStoreObserver:(id <ISAccountStoreObserver>)arg1;
|
||||
//- (void)parseCreditStringForProtocol:(NSDictionary *)arg1;
|
||||
- (void)recommendedAppleIDForAccountSignIn:(void (^)(NSString *))arg1;
|
||||
- (void)iCloudDSIDReplyBlock:(void (^)(NSString *))arg1;
|
||||
- (void)setStoreFrontID:(NSString *)arg1;
|
||||
- (void)storeFrontWithReplyBlock:(void (^)(NSString *))arg1;
|
||||
- (void)shouldSendGUIDWithRequestForURL:(NSURL *)arg1 withReplyBlock:(void (^)(BOOL))arg2;
|
||||
- (void)processURLResponse:(NSURLResponse *)arg1 forRequest:(NSURLRequest *)arg2;
|
||||
- (void)httpHeadersForURL:(NSURL *)arg1 forDSID:(NSNumber *)arg2 includeADIHeaders:(BOOL)arg3 withReplyBlock:(void (^)(NSDictionary *))arg4;
|
||||
|
||||
// - (void)removeURLBagObserver:(id <ISURLBagObserver>)arg1;
|
||||
// - (void)addURLBagObserver:(id <ISURLBagObserver>)arg1;
|
||||
// - (void)dictionaryWithReplyBlock:(void (^)(NSDictionary *))arg1;
|
||||
// - (void)isValidWithReplyBlock:(void (^)(BOOL))arg1;
|
||||
// - (void)regexWithKey:(NSString *)arg1 matchesString:(NSString *)arg2 replyBlock:(void (^)(BOOL))arg3;
|
||||
// - (void)invalidateAllBags;
|
||||
// - (void)loadURLBagWithType:(unsigned long long)arg1 replyBlock:(void (^)(BOOL, BOOL, NSError *))arg2;
|
||||
// - (void)needsSilentADIActionForURL:(NSURL *)arg1 withReplyBlock:(void (^)(BOOL))arg2;
|
||||
// - (void)urlIsTrustedByURLBag:(NSURL *)arg1 withReplyBlock:(void (^)(BOOL))arg2;
|
||||
// - (void)valueForURLBagKey:(NSString *)arg1 withReplyBlock:(void (^)(id))arg2;
|
||||
|
||||
- (void)getTouchIDPreferenceWithReplyBlock:(void (^)(BOOL, ISStoreAccount *, NSError *))arg1;
|
||||
- (void)updateTouchIDSettingsForDSID:(NSNumber *)arg1 replyBlock:(void (^)(BOOL, NSError *))arg2;
|
||||
- (void)setTouchIDState:(long long)arg1 forDSID:(NSNumber *)arg2 replyBlock:(void (^)(BOOL, NSError *))arg3;
|
||||
- (void)generateTouchIDHeadersForDSID:(NSNumber *)arg1 challenge:(NSString *)arg2 caller:(id)arg3 replyBlock:(void (^)(NSDictionary *, NSError *))arg4;
|
||||
- (void)retailStoreDemoModeReplyBlock:(void (^)(BOOL, NSString *, NSString *, BOOL))arg1;
|
||||
|
||||
// - (void)removeAccountStoreObserver:(id <ISAccountStoreObserver>)arg1;
|
||||
// - (void)addAccountStoreObserver:(id <ISAccountStoreObserver>)arg1;
|
||||
// - (void)parseCreditStringForProtocol:(NSDictionary *)arg1;
|
||||
|
||||
- (void)signOut;
|
||||
- (void)signInWithContext:(ISAuthenticationContext * __nonnull)arg1 replyBlock:(void (^ __nonnull)(BOOL, ISStoreAccount * __nullable, NSError * __nullable))arg2;
|
||||
//- (void)addAccount:(ISStoreAccount *)arg1;
|
||||
//- (void)addAccountWithAuthenticationResponse:(ISAuthenticationResponse *)arg1 makePrimary:(BOOL)arg2 replyBlock:(void (^)(ISStoreAccount *))arg3;
|
||||
//- (void)accountWithAppleID:(NSString *)arg1 replyBlock:(void (^)(ISStoreAccount *))arg2;
|
||||
//- (void)accountWithDSID:(NSNumber *)arg1 replyBlock:(void (^)(ISStoreAccount *))arg2;
|
||||
//- (void)primaryAccountWithReplyBlock:(void (^)(ISStoreAccount *))arg1;
|
||||
//- (void)authIsExpiredWithReplyBlock:(void (^)(BOOL))arg1;
|
||||
//- (void)strongTokenForAccount:(ISStoreAccount *)arg1 withReplyBlock:(void (^)(NSString *))arg2;
|
||||
//- (void)accountsWithReplyBlock:(void (^)(NSArray *))arg1;
|
||||
|
||||
// This method was removed in macOS High Sierra
|
||||
// https://github.com/mas-cli/mas/issues/107
|
||||
- (void)signInWithContext:(ISAuthenticationContext * __nonnull)arg1 replyBlock:(void (^ __nonnull)(BOOL, ISStoreAccount * __nullable, NSError * __nullable))arg2 NS_DEPRECATED_MAC(10_9, 10.12);
|
||||
|
||||
- (void)addAccount:(ISStoreAccount *)arg1;
|
||||
- (void)addAccountWithAuthenticationResponse:(ISAuthenticationResponse *)arg1 makePrimary:(BOOL)arg2 replyBlock:(void (^)(ISStoreAccount *))arg3;
|
||||
- (void)accountWithAppleID:(NSString *)arg1 replyBlock:(void (^)(ISStoreAccount *))arg2;
|
||||
- (void)accountWithDSID:(NSNumber *)arg1 replyBlock:(void (^)(ISStoreAccount *))arg2;
|
||||
- (void)primaryAccountWithReplyBlock:(void (^)(ISStoreAccount *))arg1;
|
||||
- (void)authIsExpiredWithReplyBlock:(void (^)(BOOL))arg1;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -4,8 +4,14 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
// #import "NSObject.h"
|
||||
|
||||
// #import "NSSecureCoding.h"
|
||||
|
||||
@class NSDictionary, NSNumber, NSString;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ISAuthenticationContext : NSObject <NSSecureCoding>
|
||||
{
|
||||
NSNumber *_accountID;
|
||||
|
@ -43,7 +49,9 @@
|
|||
@property long long authenticationStyle; // @synthesize authenticationStyle=_style;
|
||||
@property(retain) NSDictionary *additionalQueryParameters; // @synthesize additionalQueryParameters=_additionalQueryParameters;
|
||||
@property(readonly) NSNumber *accountID; // @synthesize accountID=_accountID;
|
||||
//- (void).cxx_destruct;
|
||||
|
||||
// - (void).cxx_destruct;
|
||||
|
||||
- (void)encodeWithCoder:(id)arg1;
|
||||
- (id)initWithCoder:(id)arg1;
|
||||
- (id)initWithAccountID:(id)arg1;
|
||||
|
@ -51,3 +59,4 @@
|
|||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
//
|
||||
// Generated by class-dump 3.5 (64 bit).
|
||||
//
|
||||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
// #import "NSObject.h"
|
||||
|
||||
// #import "NSSecureCoding.h"
|
||||
|
||||
@class NSNumber, NSString;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ISAuthenticationResponse : NSObject <NSSecureCoding>
|
||||
{
|
||||
NSString *_token;
|
||||
unsigned long long _urlBagType;
|
||||
NSString *_storeFront;
|
||||
BOOL _isManagedStudent;
|
||||
unsigned long long _URLBagType;
|
||||
NSString *_accountIdentifier;
|
||||
long long _accountKind;
|
||||
NSString *_creditString;
|
||||
NSNumber *_dsID;
|
||||
}
|
||||
|
||||
+ (BOOL)supportsSecureCoding;
|
||||
@property(readonly) BOOL isManagedStudent; // @synthesize isManagedStudent=_isManagedStudent;
|
||||
@property(readonly) NSString *storeFront; // @synthesize storeFront=_storeFront;
|
||||
@property(readonly) NSString *token; // @synthesize token=_token;
|
||||
@property(readonly) NSNumber *dsID; // @synthesize dsID=_dsID;
|
||||
@property(readonly) NSString *creditString; // @synthesize creditString=_creditString;
|
||||
@property(readonly) long long accountKind; // @synthesize accountKind=_accountKind;
|
||||
@property(readonly) NSString *accountIdentifier; // @synthesize accountIdentifier=_accountIdentifier;
|
||||
@property unsigned long long URLBagType; // @synthesize URLBagType=_URLBagType;
|
||||
|
||||
// - (void).cxx_destruct;
|
||||
|
||||
- (BOOL)_loadFromDictionary:(id)arg1;
|
||||
- (id)initWithCoder:(id)arg1;
|
||||
- (void)encodeWithCoder:(id)arg1;
|
||||
- (id)initWithDictionary:(id)arg1;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -4,8 +4,12 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
// #import "NSObject.h"
|
||||
|
||||
@class ISOperation, NSError, SSOperationProgress;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol ISOperationDelegate <NSObject>
|
||||
|
||||
@optional
|
||||
|
@ -14,3 +18,4 @@
|
|||
- (void)operation:(ISOperation *)arg1 failedWithError:(NSError *)arg2;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -4,48 +4,64 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
// #import "NSObject.h"
|
||||
|
||||
#import <CoreFoundation/CoreFoundation.h>
|
||||
|
||||
@class ISStoreClient, NSLock, NSMutableDictionary, Protocol;
|
||||
@class ISStoreClient, Protocol;
|
||||
|
||||
@class NSLock, NSMutableDictionary;
|
||||
|
||||
@protocol ISAccountService;
|
||||
|
||||
@interface ISServiceProxy : NSObject
|
||||
{
|
||||
NSLock *_serviceConnectionLock;
|
||||
NSMutableDictionary *_connectionsByServiceName;
|
||||
NSMutableDictionary *_localInterfacesByServiceName;
|
||||
ISStoreClient *_storeClient;
|
||||
}
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
typedef void (^ISErrorHandler)(NSError * __nonnull error);
|
||||
|
||||
@interface ISServiceProxy : NSObject
|
||||
{
|
||||
ISStoreClient *_storeClient;
|
||||
}
|
||||
|
||||
+ (ISServiceProxy * __nonnull)genericSharedProxy;
|
||||
@property(retain, nonatomic) ISStoreClient * __nullable storeClient; // @synthesize storeClient=_storeClient;
|
||||
//- (void)uiServiceSynchronousBlock:(CDUnknownBlockType)arg1;
|
||||
//@property(readonly, nonatomic) id <ISUIService> uiService;
|
||||
//- (id)uiServiceWithErrorHandler:(CDUnknownBlockType)arg1;
|
||||
//- (void)inAppServiceSynchronousBlock:(CDUnknownBlockType)arg1;
|
||||
//@property(readonly, nonatomic) id <ISInAppService> inAppService;
|
||||
//- (id)inAppServiceWithErrorHandler:(CDUnknownBlockType)arg1;
|
||||
//- (void)transactionServiceSynchronousBlock:(CDUnknownBlockType)arg1;
|
||||
//@property(readonly, nonatomic) id <ISTransactionService> __nullable transactionService;
|
||||
//- (id __nullable)transactionServiceWithErrorHandler:(ISErrorHandler __nonnull)arg1;
|
||||
//- (void)assetServiceSynchronousBlock:(CDUnknownBlockType)arg1;
|
||||
//@property(readonly, nonatomic) id <ISAssetService> assetService;
|
||||
//- (id)assetServiceWithErrorHandler:(CDUnknownBlockType)arg1;
|
||||
//- (void)downloadServiceSynchronousBlock:(CDUnknownBlockType)arg1;
|
||||
//@property(readonly, nonatomic) id <ISDownloadService> downloadService;
|
||||
//- (id)downloadServiceWithErrorHandler:(CDUnknownBlockType)arg1;
|
||||
//- (void)accountServiceSynchronousBlock:(void (^ __nonnull)(id <ISAccountService> __nonnull))arg1;
|
||||
@property(readonly, nonatomic) id <ISAccountService> __nonnull accountService;
|
||||
//- (id <ISAccountService> __nonnull)accountServiceWithErrorHandler:(ISErrorHandler __nonnull)arg1;
|
||||
//- (void)performSynchronousBlock:(CDUnknownBlockType)arg1 withServiceName:(id)arg2 protocol:(id)arg3 isMachService:(BOOL)arg4 interfaceClassName:(id)arg5;
|
||||
//- (id)objectProxyForServiceName:(id)arg1 protocol:(id)arg2 interfaceClassName:(id)arg3 isMachService:(BOOL)arg4 errorHandler:(CDUnknownBlockType)arg5;
|
||||
//- (id)connectionWithServiceName:(id)arg1 protocol:(id)arg2 isMachService:(BOOL)arg3;
|
||||
//@property(readonly, nonatomic) Protocol * __nullable exportedProtocol;
|
||||
//@property(readonly, nonatomic) __weak id <ISServiceRemoteObject> __nullable exportedObject;
|
||||
|
||||
+ (void)initialize;
|
||||
|
||||
@property(retain, nonatomic, nullable) ISStoreClient *storeClient; // @synthesize storeClient=_storeClient;
|
||||
|
||||
// - (void).cxx_destruct;
|
||||
// - (void)uiServiceSynchronousBlock:(CDUnknownBlockType)arg1;
|
||||
// @property(readonly, nonatomic) id <ISUIService> uiService;
|
||||
// - (id)uiServiceWithErrorHandler:(CDUnknownBlockType)arg1;
|
||||
// - (void)inAppServiceSynchronousBlock:(CDUnknownBlockType)arg1;
|
||||
// @property(readonly, nonatomic) id <ISInAppService> inAppService;
|
||||
// - (id)inAppServiceWithErrorHandler:(CDUnknownBlockType)arg1;
|
||||
// - (void)transactionServiceSynchronousBlock:(CDUnknownBlockType)arg1;
|
||||
// @property(readonly, nonatomic) id <ISTransactionService> transactionService;
|
||||
// - (id)transactionServiceWithErrorHandler:(CDUnknownBlockType)arg1;
|
||||
// - (void)assetServiceSynchronousBlock:(CDUnknownBlockType)arg1;
|
||||
// @property(readonly, nonatomic) id <ISAssetService> assetService;
|
||||
// - (id)assetServiceWithErrorHandler:(CDUnknownBlockType)arg1;
|
||||
// - (void)downloadServiceSynchronousBlock:(CDUnknownBlockType)arg1;
|
||||
// @property(readonly, nonatomic) id <ISDownloadService> downloadService;
|
||||
// - (id)downloadServiceWithErrorHandler:(CDUnknownBlockType)arg1;
|
||||
// - (void)accountServiceSynchronousBlock:(CDUnknownBlockType)arg1;
|
||||
|
||||
@property(readonly, nonatomic) id <ISAccountService> accountService;
|
||||
|
||||
// - (id)accountServiceWithErrorHandler:(CDUnknownBlockType)arg1;
|
||||
|
||||
- (void)connectionWasInterrupted;
|
||||
- (void)registerForInterrptionNotification;
|
||||
|
||||
// - (void)performSynchronousBlock:(CDUnknownBlockType)arg1 withServiceName:(id)arg2 protocol:(id)arg3 isMachService:(BOOL)arg4 interfaceClassName:(id)arg5;
|
||||
// - (id)objectProxyForServiceName:(id)arg1 protocol:(id)arg2 interfaceClassName:(id)arg3 isMachService:(BOOL)arg4 errorHandler:(CDUnknownBlockType)arg5;
|
||||
// - (id)connectionWithServiceName:(id)arg1 protocol:(id)arg2 isMachService:(BOOL)arg3;
|
||||
// @property(readonly, nonatomic) Protocol *exportedProtocol;
|
||||
// @property(readonly, nonatomic) __weak id <ISServiceRemoteObject> exportedObject;
|
||||
|
||||
- (ISServiceProxy * __nonnull)initWithStoreClient:(ISStoreClient * __nonnull)arg1;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -4,10 +4,16 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
// #import "NSObject.h"
|
||||
|
||||
@class ISStoreClient;
|
||||
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol ISServiceRemoteObject <NSObject>
|
||||
- (void)startService;
|
||||
- (void)setStoreClient:(ISStoreClient *)arg1;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -4,13 +4,21 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
// #import "NSObject.h"
|
||||
|
||||
// #import "NSSecureCoding.h"
|
||||
|
||||
@class NSDate, NSNumber, NSString, NSTimer;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ISStoreAccount : NSObject <NSSecureCoding>
|
||||
{
|
||||
NSTimer *_tokenInvalidTimer;
|
||||
BOOL _isSignedIn;
|
||||
BOOL _isManagedStudent;
|
||||
BOOL _primary;
|
||||
long long _touchIDState;
|
||||
NSNumber *_dsID;
|
||||
NSString *_identifier;
|
||||
long long _kind;
|
||||
|
@ -32,13 +40,19 @@
|
|||
@property long long URLBagType; // @synthesize URLBagType=_URLBagType;
|
||||
@property(copy) NSString *token; // @synthesize token=_token;
|
||||
@property(copy) NSString *password; // @synthesize password=_password;
|
||||
@property BOOL isManagedStudent; // @synthesize isManagedStudent=_isManagedStudent;
|
||||
@property BOOL isSignedIn; // @synthesize isSignedIn=_isSignedIn;
|
||||
@property(retain) NSString *storeFront; // @synthesize storeFront=_storeFront;
|
||||
@property(copy) NSString *creditString; // @synthesize creditString=_creditString;
|
||||
@property long long kind; // @synthesize kind=_kind;
|
||||
@property(copy) NSString *identifier; // @synthesize identifier=_identifier;
|
||||
@property(copy) NSNumber *dsID; // @synthesize dsID=_dsID;
|
||||
//- (void).cxx_destruct;
|
||||
|
||||
// - (void).cxx_destruct;
|
||||
|
||||
- (long long)getTouchIDState;
|
||||
@property long long touchIDState; // @synthesize touchIDState=_touchIDState;
|
||||
- (void)resetTouchIDState;
|
||||
- (void)mergeValuesFromAuthenticationResponse:(id)arg1;
|
||||
- (BOOL)hasValidStrongToken;
|
||||
- (double)strongTokenValidForSecond;
|
||||
|
@ -51,3 +65,4 @@
|
|||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -4,12 +4,19 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
// #import "NSObject.h"
|
||||
|
||||
// #import "NSSecureCoding.h"
|
||||
|
||||
@class ISStoreAccount, NSArray, NSDictionary, NSString;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ISStoreClient : NSObject <NSSecureCoding>
|
||||
{
|
||||
BOOL __alwaysUseSandboxEnvironment;
|
||||
BOOL _isDaemon;
|
||||
int _pid;
|
||||
unsigned long long _frameworkVersion;
|
||||
NSString *_identifier;
|
||||
long long _clientType;
|
||||
|
@ -39,6 +46,7 @@
|
|||
+ (BOOL)supportsSecureCoding;
|
||||
@property BOOL isDaemon; // @synthesize isDaemon=_isDaemon;
|
||||
@property(copy) NSString *agentListenerName; // @synthesize agentListenerName=_agentListenerName;
|
||||
@property(readonly) int pid; // @synthesize pid=_pid;
|
||||
@property(copy) NSString *displayUIHostID; // @synthesize displayUIHostID=_displayUIHostID;
|
||||
@property(copy) NSDictionary *daap; // @synthesize daap=_daap;
|
||||
@property(copy) NSString *appPath; // @synthesize appPath=_appPath;
|
||||
|
@ -62,13 +70,18 @@
|
|||
@property long long clientType; // @synthesize clientType=_clientType;
|
||||
@property(copy) NSString *identifier; // @synthesize identifier=_identifier;
|
||||
@property unsigned long long frameworkVersion; // @synthesize frameworkVersion=_frameworkVersion;
|
||||
//- (void).cxx_destruct;
|
||||
|
||||
// - (void).cxx_destruct;
|
||||
|
||||
- (id)callerIdentity;
|
||||
- (BOOL)isEqualToStoreClient:(id)arg1;
|
||||
- (void)_cacheKnownClient:(id)arg1;
|
||||
- (id)initWithCoder:(id)arg1;
|
||||
- (void)encodeWithCoder:(id)arg1;
|
||||
- (id)initWithApplicationPath:(id)arg1;
|
||||
- (id)initWithStoreClientType:(long long)arg1;
|
||||
- (id)init;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -4,10 +4,14 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
// #import "ISOperationDelegate.h"
|
||||
|
||||
#import "ISOperationDelegate-Protocol.h"
|
||||
|
||||
@class ISURLOperation, NSMutableURLRequest, NSURLResponse;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol ISURLOperationDelegate <ISOperationDelegate>
|
||||
|
||||
@optional
|
||||
|
@ -16,3 +20,4 @@
|
|||
- (void)operation:(ISURLOperation *)arg1 finishedWithOutput:(id)arg2;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
// #import "NSObject.h"
|
||||
|
||||
// #import "NSSecureCoding.h"
|
||||
|
||||
@class NSArray, NSNumber, NSString, NSURL, SSDownloadMetadata, SSDownloadStatus;
|
||||
|
||||
@interface SSDownload : NSObject <NSSecureCoding>
|
||||
|
@ -38,7 +42,9 @@
|
|||
@property(retain, nonatomic) SSDownloadStatus *status; // @synthesize status=_status;
|
||||
@property(copy, nonatomic) SSDownloadMetadata *metadata; // @synthesize metadata=_metadata;
|
||||
@property(copy, nonatomic) NSArray *assets; // @synthesize assets=_assets;
|
||||
//- (void).cxx_destruct;
|
||||
|
||||
// - (void).cxx_destruct;
|
||||
|
||||
@property BOOL skipInstallPhase;
|
||||
- (void)setUseUniqueDownloadFolder:(BOOL)arg1;
|
||||
@property(copy) NSString *customDownloadPath;
|
||||
|
@ -52,6 +58,7 @@
|
|||
- (void)encodeWithCoder:(id)arg1;
|
||||
- (BOOL)isEqual:(id)arg1;
|
||||
- (id)initWithAssets:(id)arg1 metadata:(id)arg2;
|
||||
- (id)init;
|
||||
- (void)resume;
|
||||
- (void)pause;
|
||||
- (void)cancel;
|
||||
|
|
|
@ -3,10 +3,18 @@
|
|||
//
|
||||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
// #import "NSObject.h"
|
||||
|
||||
// #import "NSCopying.h"
|
||||
// #import "NSSecureCoding.h"
|
||||
|
||||
#import <Foundation/NSZone.h>
|
||||
|
||||
@class NSArray, NSData, NSDictionary, NSLock, NSMutableDictionary, NSNumber, NSString, NSURL;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface SSDownloadMetadata : NSObject <NSSecureCoding, NSCopying>
|
||||
{
|
||||
NSMutableDictionary *_dictionary;
|
||||
|
@ -14,10 +22,12 @@
|
|||
}
|
||||
|
||||
+ (BOOL)supportsSecureCoding;
|
||||
//- (void).cxx_destruct;
|
||||
- (id _Nullable)_valueForFirstAvailableKey:(id _Nonnull)arg1;
|
||||
|
||||
// - (void).cxx_destruct;
|
||||
|
||||
- (id _Nullable)_valueForFirstAvailableKey:(id)arg1;
|
||||
@property(retain, nullable) NSArray *sinfs;
|
||||
- (void)setValue:(id _Nullable)arg1 forMetadataKey:(id _Nonnull)arg2;
|
||||
- (void)setValue:(id _Nullable)arg1 forMetadataKey:(id)arg2;
|
||||
@property(retain, nullable) NSString *iapInstallPath;
|
||||
@property(retain, nullable) NSString *fileExtension;
|
||||
@property(retain, nullable) NSString *appleID;
|
||||
|
@ -28,46 +38,66 @@
|
|||
@property(readonly, nullable) NSString *iapContentVersion;
|
||||
@property(readonly, nullable) NSNumber *iapContentSize;
|
||||
@property(readonly, nullable) NSArray *assets;
|
||||
|
||||
@property BOOL animationExpected;
|
||||
|
||||
@property(retain, nullable) NSString *transactionIdentifier;
|
||||
@property(retain, nonnull) NSString *title;
|
||||
|
||||
@property(retain) NSString *title;
|
||||
|
||||
@property(retain, nullable) NSURL *thumbnailImageURL;
|
||||
@property(retain, nullable) NSString *subtitle;
|
||||
@property(retain, nullable) NSString *ipaInstallPath;
|
||||
|
||||
@property BOOL isMDMProvided;
|
||||
|
||||
- (void)setUncompressedSize:(NSNumber * _Nonnull)arg1;
|
||||
|
||||
- (void)setExtractionCanBeStreamed:(BOOL)arg1;
|
||||
|
||||
@property(retain, nullable) NSString *buyParameters;
|
||||
@property(retain, nullable) NSURL *preflightPackageURL;
|
||||
|
||||
@property(getter=isRental) BOOL rental;
|
||||
|
||||
@property(retain, nullable) NSString *kind;
|
||||
|
||||
@property unsigned long long itemIdentifier;
|
||||
|
||||
@property(retain, nullable) NSString *genre;
|
||||
@property(retain, nullable) NSNumber *durationInMilliseconds;
|
||||
@property(retain, nullable) NSString *collectionName;
|
||||
@property(retain, nullable) NSString *bundleVersion;
|
||||
@property(retain, nullable) NSString *bundleIdentifier;
|
||||
|
||||
@property BOOL artworkIsPrerendered;
|
||||
|
||||
@property(readonly, nullable) NSString *bundleShortVersionString;
|
||||
@property(readonly, nullable) NSString *bundleDisplayName;
|
||||
@property(readonly, nullable) NSNumber *uncompressedSize;
|
||||
|
||||
@property(readonly) BOOL extractionCanBeStreamed;
|
||||
@property(readonly) BOOL needsSoftwareInstallOperation;
|
||||
|
||||
- (id _Nullable)deltaPackages;
|
||||
|
||||
@property(readonly, getter=isSample) BOOL sample;
|
||||
|
||||
@property(readonly, nullable) NSString *purchaseDate;
|
||||
|
||||
@property(readonly) BOOL isExplicitContents;
|
||||
|
||||
@property(readonly, nullable) NSNumber *ageRestriction;
|
||||
@property(retain, nullable) NSString *productType;
|
||||
@property(readonly, nullable) NSNumber *version;
|
||||
@property(readonly, nullable) NSString *applicationIdentifier;
|
||||
|
||||
- (nonnull id)copyWithZone:(nullable NSZone *)zone;
|
||||
- (nullable instancetype)initWithCoder:(nonnull NSCoder *)coder;
|
||||
- (void)encodeWithCoder:(nonnull NSCoder *)coder;
|
||||
- (nullable instancetype)initWithDictionary:(nonnull NSDictionary *)dictionary;
|
||||
- (nullable instancetype)initWithKind:(nonnull NSString *)kind;
|
||||
- (nonnull instancetype)init;
|
||||
- (id)copyWithZone:(nullable NSZone *)zone;
|
||||
- (nullable instancetype)initWithCoder:( NSCoder *)coder;
|
||||
- (void)encodeWithCoder:(NSCoder *)coder;
|
||||
- (nullable instancetype)initWithDictionary:(NSDictionary *)dictionary;
|
||||
- (nullable instancetype)initWithKind:(NSString *)kind;
|
||||
- (instancetype)init;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -4,15 +4,24 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
// #import "NSObject.h"
|
||||
|
||||
// #import "NSCopying.h"
|
||||
// #import "NSSecureCoding.h"
|
||||
|
||||
@class SSOperationProgress;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface SSDownloadPhase : NSObject <NSSecureCoding, NSCopying>
|
||||
{
|
||||
SSOperationProgress *_operationProgress;
|
||||
}
|
||||
|
||||
+ (BOOL)supportsSecureCoding;
|
||||
//- (void).cxx_destruct;
|
||||
|
||||
// - (void).cxx_destruct;
|
||||
|
||||
@property(readonly) SSOperationProgress *operationProgress;
|
||||
@property(readonly) long long totalProgressValue;
|
||||
@property(readonly) long long progressValue;
|
||||
|
@ -20,7 +29,7 @@
|
|||
@property(readonly) long long progressUnits;
|
||||
@property(readonly) long long phaseType;
|
||||
@property(readonly) double estimatedSecondsRemaining;
|
||||
- (id)copyWithZone:(struct _NSZone *)arg1;
|
||||
- (id)copyWithZone:(nullable struct _NSZone *)arg1;
|
||||
- (id)initWithCoder:(id)arg1;
|
||||
- (void)encodeWithCoder:(id)arg1;
|
||||
- (id)initWithOperationProgress:(id)arg1;
|
||||
|
@ -28,3 +37,4 @@
|
|||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -4,8 +4,14 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
// #import "NSObject.h"
|
||||
|
||||
// #import "NSSecureCoding.h"
|
||||
|
||||
@class NSError, SSDownloadPhase;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface SSDownloadStatus : NSObject <NSSecureCoding>
|
||||
{
|
||||
SSDownloadPhase *_activePhase;
|
||||
|
@ -23,7 +29,9 @@
|
|||
@property(nonatomic, getter=isFailed) BOOL failed; // @synthesize failed=_failed;
|
||||
@property(retain, nonatomic) NSError *error; // @synthesize error=_error;
|
||||
@property(readonly, nonatomic) SSDownloadPhase *activePhase; // @synthesize activePhase=_activePhase;
|
||||
//- (void).cxx_destruct;
|
||||
|
||||
// - (void).cxx_destruct;
|
||||
|
||||
- (void)setOperationProgress:(id)arg1;
|
||||
@property(readonly, nonatomic) long long phaseTimeRemaining;
|
||||
@property(readonly, nonatomic) float phasePercentComplete;
|
||||
|
@ -35,3 +43,4 @@
|
|||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -4,8 +4,15 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
// #import "NSObject.h"
|
||||
|
||||
// #import "NSCopying.h"
|
||||
// #import "NSSecureCoding.h"
|
||||
|
||||
@class ISOperation, NSData, NSDictionary, NSNumber, NSString, SSDownloadMetadata;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface SSPurchase : NSObject <NSSecureCoding, NSCopying>
|
||||
{
|
||||
NSNumber *_accountIdentifier;
|
||||
|
@ -22,25 +29,35 @@
|
|||
BOOL _isVPP;
|
||||
BOOL _shouldBeInstalledAfterLogout;
|
||||
BOOL _isCancelled;
|
||||
BOOL _isDSIDLessPurchase;
|
||||
NSString *_sortableAccountIdentifier;
|
||||
unsigned long long _itemIdentifier;
|
||||
// CDUnknownBlockType _authFallbackHandler;
|
||||
|
||||
// CDUnknownBlockType _authFallbackHandler;
|
||||
|
||||
ISOperation *_purchaseOperation;
|
||||
NSDictionary *_responseDialog;
|
||||
NSDictionary *_dsidLessOptions;
|
||||
}
|
||||
|
||||
+ (id)purchasesGroupedByAccountIdentifierWithPurchases:(id)arg1;
|
||||
+ (BOOL)supportsSecureCoding;
|
||||
+ (id)purchaseWithBuyParameters:(id)arg1;
|
||||
@property(retain) NSDictionary *dsidLessOptions; // @synthesize dsidLessOptions=_dsidLessOptions;
|
||||
@property BOOL isDSIDLessPurchase; // @synthesize isDSIDLessPurchase=_isDSIDLessPurchase;
|
||||
@property(copy) NSDictionary *responseDialog; // @synthesize responseDialog=_responseDialog;
|
||||
@property __weak ISOperation *purchaseOperation; // @synthesize purchaseOperation=_purchaseOperation;
|
||||
|
||||
@property (nullable) __weak ISOperation *purchaseOperation; // @synthesize purchaseOperation=_purchaseOperation;
|
||||
|
||||
@property BOOL isCancelled; // @synthesize isCancelled=_isCancelled;
|
||||
//@property(copy) CDUnknownBlockType authFallbackHandler; // @synthesize authFallbackHandler=_authFallbackHandler;
|
||||
|
||||
// @property(copy) CDUnknownBlockType authFallbackHandler; // @synthesize authFallbackHandler=_authFallbackHandler;
|
||||
|
||||
@property unsigned long long itemIdentifier; // @synthesize itemIdentifier=_itemIdentifier;
|
||||
@property BOOL shouldBeInstalledAfterLogout; // @synthesize shouldBeInstalledAfterLogout=_shouldBeInstalledAfterLogout;
|
||||
@property BOOL checkPreflightAterPurchase; // @synthesize checkPreflightAterPurchase=_checkPreflightAterPurchase;
|
||||
@property(readonly, nonatomic) NSString *sortableAccountIdentifier; // @synthesize sortableAccountIdentifier=_sortableAccountIdentifier;
|
||||
@property(retain, nonatomic) NSString *parentalControls; // @synthesize parentalControls=_parentalControls;
|
||||
@property BOOL checkPreflightAterPurchase; // @synthesize checkPreflightAterPurchase=_checkPreflightAterPurchase;
|
||||
@property(retain, nonatomic) NSData *receiptData; // @synthesize receiptData=_receiptData;
|
||||
@property(nonatomic) long long purchaseType; // @synthesize purchaseType=_purchaseType;
|
||||
@property BOOL isVPP; // @synthesize isVPP=_isVPP;
|
||||
|
@ -50,18 +67,20 @@
|
|||
@property(copy, nonatomic) SSDownloadMetadata *downloadMetadata; // @synthesize downloadMetadata=_downloadMetadata;
|
||||
@property(copy, nonatomic) NSString *buyParameters; // @synthesize buyParameters=_buyParameters;
|
||||
@property(retain, nonatomic) NSNumber *accountIdentifier; // @synthesize accountIdentifier=_accountIdentifier;
|
||||
//- (void).cxx_destruct;
|
||||
|
||||
// - (void).cxx_destruct;
|
||||
|
||||
- (BOOL)purchaseDSIDMatchesPrimaryAccount;
|
||||
@property(readonly) BOOL needsAuthentication; // @dynamic needsAuthentication;
|
||||
@property BOOL isRecoveryPurchase; // @dynamic isRecoveryPurchase;
|
||||
@property(readonly) BOOL isDSIDLessPurchase;
|
||||
- (id)productID;
|
||||
@property(readonly, nonatomic) NSString *uniqueIdentifier;
|
||||
- (id)_sortableAccountIdentifier;
|
||||
- (id)description;
|
||||
- (id)copyWithZone:(struct _NSZone *)arg1;
|
||||
- (id)copyWithZone:(nullable struct _NSZone *)arg1;
|
||||
- (void)encodeWithCoder:(id)arg1;
|
||||
- (id)initWithCoder:(id)arg1;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -4,7 +4,15 @@
|
|||
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
|
||||
//
|
||||
|
||||
@class NSArray, NSDictionary, SSDownload;
|
||||
// #import "NSObject.h"
|
||||
|
||||
// #import "NSSecureCoding.h"
|
||||
|
||||
@class NSArray, NSDictionary;
|
||||
|
||||
@class SSDownload;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface SSPurchaseResponse : NSObject <NSSecureCoding>
|
||||
{
|
||||
|
@ -24,3 +32,4 @@
|
|||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -27,8 +27,10 @@
|
|||
#import <StoreFoundation/SSPurchaseResponse.h>
|
||||
#import <StoreFoundation/ISStoreClient.h>
|
||||
#import <StoreFoundation/ISAuthenticationContext.h>
|
||||
#import <StoreFoundation/ISAuthenticationResponse.h>
|
||||
#import <StoreFoundation/ISServiceRemoteObject-Protocol.h>
|
||||
#import <StoreFoundation/ISAccountService-Protocol.h>
|
||||
#import "ISAccountService-Protocol.h"
|
||||
#import <StoreFoundation/ISServiceProxy.h>
|
||||
|
||||
@protocol CKDownloadQueueObserver
|
||||
|
|
|
@ -7,12 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
- ⛔ Disable `signin` command on macOS 10.13+ #162
|
||||
- 🐛 Fix `signout` command #162
|
||||
- ➖ CocoaSeeds #155
|
||||
- ➕🍫 CocoaPods (1.5.3) #155
|
||||
- 🛠 Xcode 9.4 #153
|
||||
- 🛠 Xcode 9.3 #141
|
||||
- 👷🏻♀️⚠️ Re-enable Danger #137
|
||||
- ✨ Add price to search #62
|
||||
- ✨ Add price to `search` command #62
|
||||
|
||||
## [v1.4.1] Stop Littering - 2018-02-18
|
||||
|
||||
|
|
|
@ -33,6 +33,6 @@ SPEC CHECKSUMS:
|
|||
Quick: 03278013f71aa05fe9ecabc94fbcc6835f1ee76f
|
||||
Result: 7645bb3f50c2ce726dd0ff2fa7b6f42bbe6c3713
|
||||
|
||||
PODFILE CHECKSUM: 1395297d6299169db43f34b58e3d82186af28e6a
|
||||
PODFILE CHECKSUM: 9d67a26b1f9740413adb744e480787451e560442
|
||||
|
||||
COCOAPODS: 1.5.3
|
||||
|
|
|
@ -111,13 +111,14 @@
|
|||
EDEAA1511B5C576D00F2FC3F /* CKServiceInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKServiceInterface.h; sourceTree = "<group>"; };
|
||||
EDEAA1521B5C576D00F2FC3F /* CKSoftwareMap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKSoftwareMap.h; sourceTree = "<group>"; };
|
||||
EDEAA1551B5C576D00F2FC3F /* CKUpdateController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKUpdateController.h; sourceTree = "<group>"; };
|
||||
EDEAA1661B5C576D00F2FC3F /* ISStoreURLOperationDelegate-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ISStoreURLOperationDelegate-Protocol.h"; sourceTree = "<group>"; };
|
||||
EDEAA17C1B5C579100F2FC3F /* CommerceKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CommerceKit.framework; path = /System/Library/PrivateFrameworks/CommerceKit.framework; sourceTree = "<absolute>"; };
|
||||
F8233C87201EBDF000268278 /* mas-tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "mas-tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
F8233C8B201EBDF100268278 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
F865880A2030F6DE0093DE57 /* MASErrorTestCase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MASErrorTestCase.swift; sourceTree = "<group>"; };
|
||||
F876BB4A20ED717800EB9FD1 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
|
||||
FC1AE3BA07E7DEC5CED36469 /* Pods-mas-tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-mas-tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-mas-tests/Pods-mas-tests.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
F86EBF2E2077214100C0976E /* ISStoreURLOperationDelegate-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ISStoreURLOperationDelegate-Protocol.h"; sourceTree = "<group>"; };
|
||||
F876300720438AF2003D370B /* ISAuthenticationResponse.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISAuthenticationResponse.h; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
|
@ -126,8 +127,8 @@
|
|||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
EDEAA17D1B5C579100F2FC3F /* CommerceKit.framework in Frameworks */,
|
||||
EDEAA0C01B51CE6200F2FC3F /* StoreFoundation.framework in Frameworks */,
|
||||
4762DDE207E8A2231553B32D /* libPods-mas.a in Frameworks */,
|
||||
EDEAA0C01B51CE6200F2FC3F /* StoreFoundation.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
@ -145,10 +146,10 @@
|
|||
10DC3EEDF21809022F0EBF72 /* Pods */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
09C9EDFF416F0BDAC1E7F77A /* Pods-mas.debug.xcconfig */,
|
||||
21AF31A18424A9AC0333ECB1 /* Pods-mas.release.xcconfig */,
|
||||
FC1AE3BA07E7DEC5CED36469 /* Pods-mas-tests.debug.xcconfig */,
|
||||
5A69175AC7646DE30D1F20C9 /* Pods-mas-tests.release.xcconfig */,
|
||||
09C9EDFF416F0BDAC1E7F77A /* Pods-mas.debug.xcconfig */,
|
||||
21AF31A18424A9AC0333ECB1 /* Pods-mas.release.xcconfig */,
|
||||
);
|
||||
name = Pods;
|
||||
sourceTree = "<group>";
|
||||
|
@ -159,9 +160,9 @@
|
|||
ED031A7A1B5127C00097692E /* App */,
|
||||
F8233C88201EBDF100268278 /* AppTests */,
|
||||
EDFC76381B642A2E00D0DBD7 /* Frameworks */,
|
||||
10DC3EEDF21809022F0EBF72 /* Pods */,
|
||||
EDEAA0C11B51CEBD00F2FC3F /* PrivateHeaders */,
|
||||
ED031A791B5127C00097692E /* Products */,
|
||||
10DC3EEDF21809022F0EBF72 /* Pods */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
|
@ -238,6 +239,7 @@
|
|||
ED1EF94E1BA6BBBF0075453C /* CKUpdate.h */,
|
||||
EDC90B621C6FF50B0019E396 /* ISAccountService-Protocol.h */,
|
||||
EDE2964F1C700B0300554778 /* ISAuthenticationContext.h */,
|
||||
F876300720438AF2003D370B /* ISAuthenticationResponse.h */,
|
||||
ED1EF94F1BA6BBBF0075453C /* ISOperationDelegate-Protocol.h */,
|
||||
ED1EF9501BA6BBBF0075453C /* ISServiceProxy.h */,
|
||||
EDE296501C700B0300554778 /* ISServiceRemoteObject-Protocol.h */,
|
||||
|
@ -263,7 +265,7 @@
|
|||
EDEAA1511B5C576D00F2FC3F /* CKServiceInterface.h */,
|
||||
EDEAA1521B5C576D00F2FC3F /* CKSoftwareMap.h */,
|
||||
EDEAA1551B5C576D00F2FC3F /* CKUpdateController.h */,
|
||||
EDEAA1661B5C576D00F2FC3F /* ISStoreURLOperationDelegate-Protocol.h */,
|
||||
F86EBF2E2077214100C0976E /* ISStoreURLOperationDelegate-Protocol.h */,
|
||||
);
|
||||
path = CommerceKit;
|
||||
sourceTree = "<group>";
|
||||
|
@ -273,9 +275,9 @@
|
|||
children = (
|
||||
F876BB4A20ED717800EB9FD1 /* Cocoa.framework */,
|
||||
EDEAA17C1B5C579100F2FC3F /* CommerceKit.framework */,
|
||||
EDEAA0BF1B51CE6200F2FC3F /* StoreFoundation.framework */,
|
||||
29090AA87DC29A23FA933D23 /* libPods-mas.a */,
|
||||
E699853CA22F704500D0F018 /* libPods-mas-tests.a */,
|
||||
29090AA87DC29A23FA933D23 /* libPods-mas.a */,
|
||||
EDEAA0BF1B51CE6200F2FC3F /* StoreFoundation.framework */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BuildSystemType</key>
|
||||
<string>Latest</string>
|
||||
</dict>
|
||||
<dict/>
|
||||
</plist>
|
||||
|
|
|
@ -16,7 +16,7 @@ check_class_dump() {
|
|||
|
||||
extract_private_framework_headers() {
|
||||
local framework_name="$1"; shift
|
||||
local directory="mas-cli/PrivateHeaders/${framework_name}"
|
||||
local directory="App/PrivateHeaders/${framework_name}"
|
||||
mkdir -p "$directory"
|
||||
class-dump -Ho "$directory" "/System/Library/PrivateFrameworks/${framework_name}.framework"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue