diff --git a/Sources/PrivateFrameworks/CommerceKit/CKDownloadDirectory.h b/Sources/PrivateFrameworks/CommerceKit/CKDownloadDirectory.h index 3763a6ce8..e3ad766b6 100644 --- a/Sources/PrivateFrameworks/CommerceKit/CKDownloadDirectory.h +++ b/Sources/PrivateFrameworks/CommerceKit/CKDownloadDirectory.h @@ -5,6 +5,8 @@ // Copyright © 2018 mas-cli. All rights reserved. // -@import Foundation; +NS_ASSUME_NONNULL_BEGIN -NSString* CKDownloadDirectory(NSString *target); +NSString *CKDownloadDirectory(NSString * _Nullable target); + +NS_ASSUME_NONNULL_END diff --git a/Sources/PrivateFrameworks/CommerceKit/CKDownloadQueue.h b/Sources/PrivateFrameworks/CommerceKit/CKDownloadQueue.h index 87ebbf08f..e665179e3 100644 --- a/Sources/PrivateFrameworks/CommerceKit/CKDownloadQueue.h +++ b/Sources/PrivateFrameworks/CommerceKit/CKDownloadQueue.h @@ -1,56 +1,44 @@ // -// Generated by class-dump 3.5 (64 bit). +// Generated by https://github.com/blacktop/ipsw (Version: 3.1.603, BuildCommit: Homebrew) // -// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// - LC_BUILD_VERSION: Platform: macOS, MinOS: 15.5, SDK: 15.5, Tool: ld (1167.3) +// - LC_SOURCE_VERSION: 715.5.1.0.0 // -#import "CKServiceInterface.h" - -@class CKDownloadQueueClient, NSArray, NSLock, NSMutableDictionary; - -@protocol CKDownloadQueueObserver; - NS_ASSUME_NONNULL_BEGIN -@interface CKDownloadQueue : CKServiceInterface -{ +@interface CKDownloadQueue : CKServiceInterface { NSMutableDictionary *_downloadsByItemID; NSLock *_downloadsLock; - NSMutableDictionary *_downloadQueueObservers; - CKDownloadQueueClient *_sharedObserver; + id _observerToken NS_AVAILABLE_MAC(13); + NSLock *_tokenLock NS_AVAILABLE_MAC(13); } + (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)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; -- (void)pauseDownloadWithItemIdentifier:(unsigned long long)arg1; -- (void)addDownload:(id)arg1; -- (id)downloadForItemIdentifier:(unsigned long long)arg1; -@property(readonly, nonatomic) NSArray *downloads; // @dynamic downloads; -- (void)removeObserver:(id)arg1; -- (id)addObserver:(id)arg1; -- (id)addObserver:(id)arg1 forDownloadTypes:(long long)arg2; - -// - (id)addObserverForDownloadTypes:(long long)arg1 withBlock:(CDUnknownBlockType)arg2; - +@property(retain, nonatomic) NSMutableDictionary *downloadQueueObservers; +@property(readonly, nonatomic) NSArray *downloads; +@property(retain, nonatomic) CKDownloadQueueClient *sharedObserver; + +- (void)addDownload:(SSDownload *)download; +- (id)addObserver:(id)observer; +- (id)addObserver:(id)observer forDownloadTypes:(long long)downloadTypes; +- (id)addObserverForDownloadTypes:(long long)downloadTypes withBlock:(UnknownBlock *)block; +- (BOOL)cacheReceiptDataForDownload:(SSDownload *)download; +- (void)cancelDownload:(SSDownload *)download promptToConfirm:(BOOL)promptToConfirm askToDelete:(BOOL)askToDelete; +- (void)checkStoreDownloadQueueForAccount:(ISStoreAccount *)account; - (void)connectionWasInterrupted; -- (id)initWithStoreClient:(id)arg1; +- (SSDownload *)downloadForItemIdentifier:(unsigned long long)identifier; +- (void)fetchIconForItemIdentifier:(unsigned long long)identifier atURL:(NSURL *)url replyBlock:(UnknownBlock *)block; +- (instancetype)initWithStoreClient:(ISStoreClient *)client; +- (void)lockApplicationsForBundleID:(NSString *)bundleID; +- (void)lockedApplicationTriedToLaunchAtPath:(NSString *)path; +- (void)pauseDownloadWithItemIdentifier:(unsigned long long)identifier; +- (void)performedIconAnimationForDownloadWithIdentifier:(unsigned long long)identifier; +- (void)removeDownloadWithItemIdentifier:(unsigned long long)identifier; +- (void)removeObserver:(id)observer; +- (void)resumeDownloadWithItemIdentifier:(unsigned long long)identifier; +- (void)unlockApplicationsWithBundleIdentifier:(NSString *)bundleID; @end diff --git a/Sources/PrivateFrameworks/CommerceKit/CKDownloadQueueObserver.h b/Sources/PrivateFrameworks/CommerceKit/CKDownloadQueueObserver-Protocol.h similarity index 79% rename from Sources/PrivateFrameworks/CommerceKit/CKDownloadQueueObserver.h rename to Sources/PrivateFrameworks/CommerceKit/CKDownloadQueueObserver-Protocol.h index f51f6698a..89f72491a 100644 --- a/Sources/PrivateFrameworks/CommerceKit/CKDownloadQueueObserver.h +++ b/Sources/PrivateFrameworks/CommerceKit/CKDownloadQueueObserver-Protocol.h @@ -1,17 +1,22 @@ // -// CKDownloadQueueObserver.h +// CKDownloadQueueObserver-Protocol.h // mas // // Copyright © 2018 mas-cli. All rights reserved. // -#import "CKDownloadQueue.h" -@import StoreFoundation; +NS_ASSUME_NONNULL_BEGIN @protocol CKDownloadQueueObserver +@required + - (void)downloadQueue:(CKDownloadQueue *)downloadQueue changedWithAddition:(SSDownload *)download; - (void)downloadQueue:(CKDownloadQueue *)downloadQueue changedWithRemoval:(SSDownload *)download; - (void)downloadQueue:(CKDownloadQueue *)downloadQueue statusChangedForDownload:(SSDownload *)download; +@optional + @end + +NS_ASSUME_NONNULL_END diff --git a/Sources/PrivateFrameworks/CommerceKit/CKPurchaseController.h b/Sources/PrivateFrameworks/CommerceKit/CKPurchaseController.h index 40215344c..a3ec1a3c8 100644 --- a/Sources/PrivateFrameworks/CommerceKit/CKPurchaseController.h +++ b/Sources/PrivateFrameworks/CommerceKit/CKPurchaseController.h @@ -1,47 +1,37 @@ // -// Generated by class-dump 3.5 (64 bit). +// Generated by https://github.com/blacktop/ipsw (Version: 3.1.603, BuildCommit: Homebrew) // -// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// - LC_BUILD_VERSION: Platform: macOS, MinOS: 15.5, SDK: 15.5, Tool: ld (1167.3) +// - LC_SOURCE_VERSION: 715.5.1.0.0 // -#import "CKServiceInterface.h" - -@class NSArray, NSMutableArray, NSNumber; - NS_ASSUME_NONNULL_BEGIN typedef void (^SSPurchaseCompletion)(SSPurchase * _Nullable purchase, BOOL completed, NSError * _Nullable error, SSPurchaseResponse * _Nullable response); -@interface CKPurchaseController : CKServiceInterface -{ - NSMutableArray *_purchases; - NSMutableArray *_rejectedPurchases; +@interface CKPurchaseController : CKServiceInterface { NSArray *_adoptionEligibleItems; - NSNumber *_adoptionServerStatus; NSNumber *_adoptionErrorNumber; - - // CDUnknownBlockType _dialogHandler; + NSNumber *_adoptionServerStatus; + NSMutableArray *_purchases; + NSMutableArray *_rejectedPurchases; } -+ (void)setNeedsSilentMachineAuthorization:(BOOL)arg1; - ++ (void)setNeedsSilentMachineAuthorization:(BOOL)needsSilentMachineAuthorization; + (instancetype)sharedPurchaseController; -//@property(copy) CDUnknownBlockType dialogHandler; // @synthesize dialogHandler=_dialogHandler; -//- (void).cxx_destruct; +@property(copy) UnknownBlock *dialogHandler; -- (BOOL)adoptionCompletedForBundleID:(id)arg1; - (void)_performVPPReceiptRenewal; +- (BOOL)adoptionCompletedForBundleID:(NSString *)bundleID; +- (void)cancelPurchaseWithProductID:(NSNumber *)productID; - (void)checkServerDownloadQueue; -- (id)purchaseInProgressForProductID:(id)arg1; -- (id)purchasesInProgress; -- (void)cancelPurchaseWithProductID:(id)arg1; -- (void)resumeDownloadForPurchasedProductID:(id)arg1; - -//- (void)startPurchases:(id)arg1 shouldStartDownloads:(BOOL)arg2 eventHandler:(CDUnknownBlockType)arg3; -//- (void)startPurchases:(id)arg1 withOptions:(unsigned long long)arg2 completionHandler:(CDUnknownBlockType)arg3; - -- (void)performPurchase:(SSPurchase *)purchase withOptions:(unsigned long long)arg2 completionHandler:(SSPurchaseCompletion _Nullable)completionHandler; +- (void)performPurchase:(SSPurchase *)purchase withOptions:(unsigned long long)options completionHandler:(nullable SSPurchaseCompletion)handler; +- (SSPurchase *)purchaseInProgressForProductID:(NSNumber *)productID; +- (NSArray *)purchasesInProgress; +- (void)resumeDownloadForPurchasedProductID:(NSNumber *)productID; +- (void)startPurchases:(NSArray *)purchases shouldStartDownloads:(BOOL)shouldStartDownloads eventHandler:(UnknownBlock *)handler; +- (void)startPurchases:(NSArray *)purchases withOptions:(unsigned long long)options completionHandler:(UnknownBlock *)handler; @end diff --git a/Sources/PrivateFrameworks/CommerceKit/CKServiceInterface.h b/Sources/PrivateFrameworks/CommerceKit/CKServiceInterface.h index 7792c287e..4a2110b6b 100644 --- a/Sources/PrivateFrameworks/CommerceKit/CKServiceInterface.h +++ b/Sources/PrivateFrameworks/CommerceKit/CKServiceInterface.h @@ -1,13 +1,14 @@ // -// Generated by class-dump 3.5 (64 bit). +// Generated by https://github.com/blacktop/ipsw (Version: 3.1.603, BuildCommit: Homebrew) // -// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// - LC_BUILD_VERSION: Platform: macOS, MinOS: 15.5, SDK: 15.5, Tool: ld (1167.3) +// - LC_SOURCE_VERSION: 715.5.1.0.0 // -#import "ISServiceProxy.h" +NS_ASSUME_NONNULL_BEGIN @interface CKServiceInterface : ISServiceProxy -{ -} @end + +NS_ASSUME_NONNULL_END diff --git a/Sources/PrivateFrameworks/CommerceKit/CommerceKit.h b/Sources/PrivateFrameworks/CommerceKit/CommerceKit.h new file mode 100644 index 000000000..8893138ea --- /dev/null +++ b/Sources/PrivateFrameworks/CommerceKit/CommerceKit.h @@ -0,0 +1,18 @@ +// +// CommerceKit.h +// mas +// +// Copyright © 2025 mas-cli. All rights reserved. +// + +@import StoreFoundation; + +@class CKDownloadQueueClient; + +@protocol CKDownloadQueueObserver; + +#import +#import +#import +#import +#import diff --git a/Sources/PrivateFrameworks/CommerceKit/module.modulemap b/Sources/PrivateFrameworks/CommerceKit/module.modulemap index a75fee0c8..01150f685 100644 --- a/Sources/PrivateFrameworks/CommerceKit/module.modulemap +++ b/Sources/PrivateFrameworks/CommerceKit/module.modulemap @@ -1,7 +1,6 @@ -module CommerceKit { - header "CKDownloadDirectory.h" - header "CKDownloadQueueObserver.h" - header "CKPurchaseController.h" - +module CommerceKit [no_undeclared_includes] { + requires macos, objc + use StoreFoundation + private header "CommerceKit.h" export * } diff --git a/Sources/PrivateFrameworks/StoreFoundation/ISAccountService-Protocol.h b/Sources/PrivateFrameworks/StoreFoundation/ISAccountService-Protocol.h new file mode 100644 index 000000000..7a38e6361 --- /dev/null +++ b/Sources/PrivateFrameworks/StoreFoundation/ISAccountService-Protocol.h @@ -0,0 +1,58 @@ +// +// Generated by https://github.com/blacktop/ipsw (Version: 3.1.603, BuildCommit: Homebrew) +// +// - LC_BUILD_VERSION: Platform: macOS, MinOS: 15.5, SDK: 15.5, Tool: ld (1167.3) +// - LC_SOURCE_VERSION: 715.5.1.0.0 +// + +NS_ASSUME_NONNULL_BEGIN + +@protocol ISAccountService + +@required + +- (void)accountWithAppleID:(NSString *)appleID replyBlock:(void (^)(ISStoreAccount *))block; +- (void)accountWithDSID:(NSNumber *)dsID replyBlock:(void (^)(ISStoreAccount *))block; +- (void)addAccount:(ISStoreAccount *)account; +- (void)addAccountStoreObserver:(id)observer; +- (void)addAccountWithAuthenticationResponse:(ISAuthenticationResponse *)authenticationResponse makePrimary:(BOOL)makePrimary replyBlock:(void (^)(ISStoreAccount *))block NS_DEPRECATED_MAC(10_9, 12); +- (void)addURLBagObserver:(id)observer; +- (void)authIsExpiredWithReplyBlock:(void (^)(BOOL))block; +- (void)dictionaryForDSID:(NSNumber *)dsID withReplyBlock:(void (^)(NSDictionary *))block NS_AVAILABLE_MAC(13); +- (void)dictionaryWithReplyBlock:(void (^)(NSDictionary *))block; +- (void)generateTouchIDHeadersForDSID:(NSNumber *)dsID challenge:(NSString *)challenge caller:(id)caller replyBlock:(void (^)(NSDictionary *, NSError *))block; +- (void)getTouchIDPreferenceWithReplyBlock:(void (^)(BOOL, ISStoreAccount *, NSError *))block; +- (void)httpHeadersForURL:(NSURL *)url forDSID:(NSNumber *)dsID includeADIHeaders:(BOOL)includeADIHeaders withReplyBlock:(void (^)(NSDictionary *))block; +- (void)iCloudDSIDReplyBlock:(void (^)(NSString *))block; +- (void)invalidateAllBags; +- (void)isValidWithReplyBlock:(void (^)(BOOL))block; +- (void)loadURLBagWithType:(unsigned long long)type replyBlock:(void (^)(BOOL, BOOL, NSError *))block; +- (void)needsSilentADIActionForURL:(NSURL *)url dsID:(NSNumber *)dsID withReplyBlock:(void (^)(BOOL))block NS_AVAILABLE_MAC(13); +- (void)needsSilentADIActionForURL:(NSURL *)url withReplyBlock:(void (^)(BOOL))block; +- (void)parseCreditStringForProtocol:(NSDictionary *)dictionary NS_DEPRECATED_MAC(10_9, 12); +- (void)primaryAccountWithReplyBlock:(void (^)(ISStoreAccount *))block; +- (void)processURLResponse:(NSURLResponse *)urlResponse forRequest:(NSURLRequest *)request; +- (void)processURLResponse:(NSURLResponse *)urlResponse forRequest:(NSURLRequest *)request dsID:(NSNumber *)dsID NS_AVAILABLE_MAC(13); +- (void)recommendedAppleIDForAccountSignIn:(void (^)(NSString *))accountSignIn NS_DEPRECATED_MAC(10_9, 12); +- (void)regexWithKey:(NSString *)key dsID:(NSNumber *)dsID matchesString:(NSString *)string replyBlock:(void (^)(BOOL))block NS_AVAILABLE_MAC(13); +- (void)regexWithKey:(NSString *)key matchesString:(NSString *)string replyBlock:(void (^)(BOOL))block; +- (void)removeAccountStoreObserver:(id)observer; +- (void)removeURLBagObserver:(id)observer; +- (void)retailStoreDemoModeReplyBlock:(void (^)(BOOL, NSString *, NSString *, BOOL))block; +- (void)setStoreFrontID:(NSString *)storefrontID; +- (void)setTouchIDState:(long long)touchIDState forDSID:(NSNumber *)dsID replyBlock:(void (^)(BOOL, NSError *))block; +- (void)shouldSendGUIDWithRequestForURL:(NSURL *)url withReplyBlock:(void (^)(BOOL))block; +- (void)signInWithContext:(ISAuthenticationContext *)context replyBlock:(void (^)(BOOL, ISStoreAccount * _Nullable, NSError * _Nullable))block NS_DEPRECATED_MAC(10_9, 10_12); +- (void)signOut; +- (void)storeFrontWithReplyBlock:(void (^)(NSString *))block; +- (void)updateTouchIDSettingsForDSID:(NSNumber *)dsID replyBlock:(void (^)(BOOL, NSError *))block; +- (void)urlIsTrustedByURLBag:(NSURL *)urlBag dsID:(NSNumber *)dsID withReplyBlock:(void (^)(BOOL))block NS_AVAILABLE_MAC(13); +- (void)urlIsTrustedByURLBag:(NSURL *)urlBag withReplyBlock:(void (^)(BOOL))block; +- (void)valueForURLBagKey:(NSString *)bagKey dsID:(NSNumber *)dsID withReplyBlock:(void (^)(NSURL *))block NS_AVAILABLE_MAC(13); +- (void)valueForURLBagKey:(NSString *)bagKey withReplyBlock:(void (^)(NSURL *))block; + +@optional + +@end + +NS_ASSUME_NONNULL_END diff --git a/Sources/PrivateFrameworks/StoreFoundation/ISAccountService.h b/Sources/PrivateFrameworks/StoreFoundation/ISAccountService.h deleted file mode 100644 index 3b8c2c1e2..000000000 --- a/Sources/PrivateFrameworks/StoreFoundation/ISAccountService.h +++ /dev/null @@ -1,62 +0,0 @@ -// -// Generated by class-dump 3.5 (64 bit). -// -// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. -// - -@import Foundation; - -#import "ISServiceRemoteObject.h" - -@class ISAuthenticationResponse, ISStoreAccount, NSDictionary, NSNumber, NSString, NSURL, NSURLRequest, NSURLResponse; - -@class ISAuthenticationContext; -@class NSURLRequest; - -NS_ASSUME_NONNULL_BEGIN - -@protocol ISAccountService -- (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 )arg1; -// - (void)addURLBagObserver:(id )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 )arg1; -// - (void)addAccountStoreObserver:(id )arg1; -// - (void)parseCreditStringForProtocol:(NSDictionary *)arg1; - -- (void)signOut; - -// 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 diff --git a/Sources/PrivateFrameworks/StoreFoundation/ISAuthenticationContext.h b/Sources/PrivateFrameworks/StoreFoundation/ISAuthenticationContext.h deleted file mode 100644 index eee41bc65..000000000 --- a/Sources/PrivateFrameworks/StoreFoundation/ISAuthenticationContext.h +++ /dev/null @@ -1,60 +0,0 @@ -// -// Generated by class-dump 3.5 (64 bit). -// -// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. -// - -@import Foundation; - -@class NSDictionary, NSNumber, NSString; - -NS_ASSUME_NONNULL_BEGIN - -@interface ISAuthenticationContext : NSObject -{ - NSNumber *_accountID; - NSDictionary *_additionalQueryParameters; - NSDictionary *_dialogDictionary; - long long _bagType; - NSDictionary *_signUpQueryParameters; - BOOL _shouldFollowAccountButtons; - long long _style; - BOOL _useCachedCredentials; - long long _authenticationReason; - NSString *_appleIDOverride; - BOOL _enforceAppleIDOverride; - NSString *_applicationName; - BOOL _demoMode; - BOOL _demoAutologinMode; - NSString *_demoAccountName; - NSString *_demoAccountPassword; -} - -+ (BOOL)supportsSecureCoding; -@property(retain) NSString *demoAccountPassword; // @synthesize demoAccountPassword=_demoAccountPassword; -@property(retain) NSString *demoAccountName; // @synthesize demoAccountName=_demoAccountName; -@property BOOL demoAutologinMode; // @synthesize demoAutologinMode=_demoAutologinMode; -@property BOOL demoMode; // @synthesize demoMode=_demoMode; -@property(retain) NSDictionary *dialogDictionary; // @synthesize dialogDictionary=_dialogDictionary; -@property(retain) NSString *applicationName; // @synthesize applicationName=_applicationName; -@property BOOL enforceAppleIDOverride; // @synthesize enforceAppleIDOverride=_enforceAppleIDOverride; -@property(retain) NSString *appleIDOverride; // @synthesize appleIDOverride=_appleIDOverride; -@property long long authenticationReason; // @synthesize authenticationReason=_authenticationReason; -@property BOOL useCachedCredentials; // @synthesize useCachedCredentials=_useCachedCredentials; -@property BOOL shouldFollowAccountButtons; // @synthesize shouldFollowAccountButtons=_shouldFollowAccountButtons; -@property(retain) NSDictionary *signUpQueryParameters; // @synthesize signUpQueryParameters=_signUpQueryParameters; -@property long long bagType; // @synthesize bagType=_bagType; -@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)encodeWithCoder:(id)arg1; -- (id)initWithCoder:(id)arg1; -- (id)initWithAccountID:(id)arg1; -- (id)init; - -@end - -NS_ASSUME_NONNULL_END diff --git a/Sources/PrivateFrameworks/StoreFoundation/ISAuthenticationResponse.h b/Sources/PrivateFrameworks/StoreFoundation/ISAuthenticationResponse.h deleted file mode 100644 index e4b954eb4..000000000 --- a/Sources/PrivateFrameworks/StoreFoundation/ISAuthenticationResponse.h +++ /dev/null @@ -1,43 +0,0 @@ -// -// Generated by class-dump 3.5 (64 bit). -// -// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. -// - -@class NSNumber, NSString; - -NS_ASSUME_NONNULL_BEGIN - -@interface ISAuthenticationResponse : NSObject -{ - 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 diff --git a/Sources/PrivateFrameworks/StoreFoundation/ISServiceProxy.h b/Sources/PrivateFrameworks/StoreFoundation/ISServiceProxy.h index 8e5d6b2cb..b005816e6 100644 --- a/Sources/PrivateFrameworks/StoreFoundation/ISServiceProxy.h +++ b/Sources/PrivateFrameworks/StoreFoundation/ISServiceProxy.h @@ -1,62 +1,45 @@ // -// Generated by class-dump 3.5 (64 bit). +// Generated by https://github.com/blacktop/ipsw (Version: 3.1.603, BuildCommit: Homebrew) // -// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// - LC_BUILD_VERSION: Platform: macOS, MinOS: 15.5, SDK: 15.5, Tool: ld (1167.3) +// - LC_SOURCE_VERSION: 715.5.1.0.0 // -@import Foundation; - -@class ISStoreClient, Protocol; - -@protocol ISAccountService; - NS_ASSUME_NONNULL_BEGIN -typedef void (^ISErrorHandler)(NSError * __nonnull error); - @interface ISServiceProxy : NSObject -{ - ISStoreClient *_storeClient; -} - -+ (ISServiceProxy * __nonnull)genericSharedProxy; ++ (instancetype)genericSharedProxy; + (void)initialize; -@property(retain, nonatomic, nullable) ISStoreClient *storeClient; // @synthesize storeClient=_storeClient; - -//- (void).cxx_destruct; -//- (void)uiServiceSynchronousBlock:(CDUnknownBlockType)arg1; -//@property(readonly, nonatomic) id uiService; -//- (id)uiServiceWithErrorHandler:(CDUnknownBlockType)arg1; -//- (void)inAppServiceSynchronousBlock:(CDUnknownBlockType)arg1; -//@property(readonly, nonatomic) id inAppService; -//- (id)inAppServiceWithErrorHandler:(CDUnknownBlockType)arg1; -//- (void)transactionServiceSynchronousBlock:(CDUnknownBlockType)arg1; -//@property(readonly, nonatomic) id transactionService; -//- (id)transactionServiceWithErrorHandler:(CDUnknownBlockType)arg1; -//- (void)assetServiceSynchronousBlock:(CDUnknownBlockType)arg1; -//@property(readonly, nonatomic) id assetService; -//- (id)assetServiceWithErrorHandler:(CDUnknownBlockType)arg1; -//- (void)downloadServiceSynchronousBlock:(CDUnknownBlockType)arg1; -//@property(readonly, nonatomic) id downloadService; -//- (id)downloadServiceWithErrorHandler:(CDUnknownBlockType)arg1; -//- (void)accountServiceSynchronousBlock:(CDUnknownBlockType)arg1; - -@property(readonly, nonatomic) id accountService; - -//- (id)accountServiceWithErrorHandler:(CDUnknownBlockType)arg1; - +@property(readonly, nonatomic) id accountService; +@property(readonly, nonatomic) id assetService; +@property(readonly, nonatomic) id downloadService; +@property(readonly, nonatomic, weak) id exportedObject; +@property(readonly, nonatomic) Protocol *exportedProtocol; +@property(readonly, nonatomic) id inAppService NS_DEPRECATED_MAC(10_9, 12); +@property(retain, nonatomic) ISStoreClient *storeClient; +@property(readonly, nonatomic) id transactionService; +@property(readonly, nonatomic) id uiService; + +- (void)accountServiceSynchronousBlock:(UnknownBlock *)block; +- (id)accountServiceWithErrorHandler:(UnknownBlock *)handler; +- (void)assetServiceSynchronousBlock:(UnknownBlock *)block; +- (id)assetServiceWithErrorHandler:(UnknownBlock *)handler; - (void)connectionWasInterrupted; +- (id)connectionWithServiceName:(NSString *)serviceName protocol:(id)protocol isMachService:(BOOL)isMachService; +- (void)downloadServiceSynchronousBlock:(UnknownBlock *)block; +- (id)downloadServiceWithErrorHandler:(UnknownBlock *)handler; +- (void)inAppServiceSynchronousBlock:(UnknownBlock *)block NS_DEPRECATED_MAC(10_9, 12); +- (id)inAppServiceWithErrorHandler:(UnknownBlock *)handler NS_DEPRECATED_MAC(10_9, 12); +- (instancetype)initWithStoreClient:(ISStoreClient *)client; +- (id)objectProxyForServiceName:(NSString *)serviceName protocol:(id)protocol interfaceClassName:(NSString *)interfaceClassName isMachService:(BOOL)isMachService errorHandler:(UnknownBlock *)handler; +- (void)performSynchronousBlock:(UnknownBlock *)block withServiceName:(NSString *)serviceName protocol:(id)protocol isMachService:(BOOL)isMachService interfaceClassName:(NSString *)interfaceClassName; - (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 exportedObject; - -- (ISServiceProxy * __nonnull)initWithStoreClient:(ISStoreClient * __nonnull)arg1; +- (void)transactionServiceSynchronousBlock:(UnknownBlock *)block; +- (id)transactionServiceWithErrorHandler:(UnknownBlock *)handler; +- (void)uiServiceSynchronousBlock:(UnknownBlock *)block; +- (id)uiServiceWithErrorHandler:(UnknownBlock *)handler; @end diff --git a/Sources/PrivateFrameworks/StoreFoundation/ISServiceRemoteObject.h b/Sources/PrivateFrameworks/StoreFoundation/ISServiceRemoteObject.h deleted file mode 100644 index f4a247a54..000000000 --- a/Sources/PrivateFrameworks/StoreFoundation/ISServiceRemoteObject.h +++ /dev/null @@ -1,16 +0,0 @@ -// -// Generated by class-dump 3.5 (64 bit). -// -// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. -// - -@class ISStoreClient; - -NS_ASSUME_NONNULL_BEGIN - -@protocol ISServiceRemoteObject -- (void)startService; -- (void)setStoreClient:(ISStoreClient *)arg1; -@end - -NS_ASSUME_NONNULL_END diff --git a/Sources/PrivateFrameworks/StoreFoundation/ISStoreAccount.h b/Sources/PrivateFrameworks/StoreFoundation/ISStoreAccount.h index 79cb02d09..941fdffd8 100644 --- a/Sources/PrivateFrameworks/StoreFoundation/ISStoreAccount.h +++ b/Sources/PrivateFrameworks/StoreFoundation/ISStoreAccount.h @@ -1,65 +1,46 @@ // -// Generated by class-dump 3.5 (64 bit). +// Generated by https://github.com/blacktop/ipsw (Version: 3.1.603, BuildCommit: Homebrew) // -// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// - LC_BUILD_VERSION: Platform: macOS, MinOS: 15.5, SDK: 15.5, Tool: ld (1167.3) +// - LC_SOURCE_VERSION: 715.5.1.0.0 // -@import Foundation; - -@class NSDate, NSNumber, NSString, NSTimer; - NS_ASSUME_NONNULL_BEGIN -@interface ISStoreAccount : NSObject -{ +@interface ISStoreAccount : NSObject { NSTimer *_tokenInvalidTimer; - BOOL _isSignedIn; - BOOL _isManagedStudent; - BOOL _primary; - long long _touchIDState; - NSNumber *_dsID; - NSString *_identifier; - long long _kind; - NSString *_creditString; - NSString *_storeFront; - NSString *_password; - NSString *_token; - long long _URLBagType; - NSDate *_tokenIssuedDate; - NSTimer *_tokenExpirationTimer; } -+ (id)migratePersistedStoreDictionary:(id)arg1; -+ (id)dsidFromPlistValue:(id)arg1; ++ (NSNumber *)dsidFromPlistValue:(id)value; ++ (NSDictionary *)migratePersistedStoreDictionary:(NSDictionary *)dictionary; + (BOOL)supportsSecureCoding; -@property(readonly, getter=isPrimary) BOOL primary; // @synthesize primary=_primary; -@property(retain) NSTimer *tokenExpirationTimer; // @synthesize tokenExpirationTimer=_tokenExpirationTimer; -@property(retain) NSDate *tokenIssuedDate; // @synthesize tokenIssuedDate=_tokenIssuedDate; -@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; +@property long long URLBagType; +@property(readonly, getter=isAuthenticated) BOOL authenticated; +@property(copy) NSString *creditString; +@property(copy) NSNumber *dsID; +@property(copy) NSString *identifier; +@property BOOL isManagedStudent; +@property BOOL isSignedIn; +@property long long kind; +@property(copy) NSString *password; +@property(readonly, getter=isPrimary) BOOL primary; +@property(retain) NSString *storeFront; +@property(copy) NSString *token; +@property(retain) NSTimer *tokenExpirationTimer; +@property(retain) NSDate *tokenIssuedDate; +@property long long touchIDState; + +- (NSString *)description; +- (void)encodeWithCoder:(NSCoder *)coder; - (long long)getTouchIDState; -@property long long touchIDState; // @synthesize touchIDState=_touchIDState; -- (void)resetTouchIDState; -- (void)mergeValuesFromAuthenticationResponse:(id)arg1; - (BOOL)hasValidStrongToken; +- (instancetype)initWithCoder:(NSCoder *)coder; +- (instancetype)initWithPersistedStoreDictionary:(NSDictionary *)dictionary; +- (void)mergeValuesFromAuthenticationResponse:(ISAuthenticationResponse *)response; +- (NSDictionary *)persistedStoreDictionary; +- (void)resetTouchIDState; - (double)strongTokenValidForSecond; -- (id)description; -@property(readonly, getter=isAuthenticated) BOOL authenticated; -- (id)persistedStoreDictionary; -- (id)initWithPersistedStoreDictionary:(id)arg1; -- (void)encodeWithCoder:(id)arg1; -- (id)initWithCoder:(id)arg1; @end diff --git a/Sources/PrivateFrameworks/StoreFoundation/ISStoreClient.h b/Sources/PrivateFrameworks/StoreFoundation/ISStoreClient.h deleted file mode 100644 index 75d353998..000000000 --- a/Sources/PrivateFrameworks/StoreFoundation/ISStoreClient.h +++ /dev/null @@ -1,85 +0,0 @@ -// -// Generated by class-dump 3.5 (64 bit). -// -// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. -// - -@import Foundation; - -@class ISStoreAccount, NSArray, NSDictionary, NSString; - -NS_ASSUME_NONNULL_BEGIN - -@interface ISStoreClient : NSObject -{ - BOOL __alwaysUseSandboxEnvironment; - BOOL _isDaemon; - int _pid; - unsigned long long _frameworkVersion; - NSString *_identifier; - long long _clientType; - ISStoreAccount *_primaryAccount; - NSString *_userAgentAppName; - NSString *_userAgentAppVersion; - NSString *_agentPreferencesDomain; - NSString *_appPreferencesDomain; - NSString *_storeFrontBagKey; - NSArray *_productionBagURLs; - NSArray *_sandboxBagURLs; - NSString *_toolbarBagKey; - long long _requiredBagType; - NSString *_aslDomain; - NSString *_storeURLScheme; - NSString *_storeSecureURLScheme; - NSString *_tempPathClientIdentifier; - long long _mediaTypeMask; - NSString *_pushServiceName; - NSString *_appPath; - NSDictionary *_daap; - NSString *_displayUIHostID; - NSString *_agentListenerName; -} - -+ (id)knownClientWithIdentifier:(id)arg1 frameworkVersion:(id)arg2; -+ (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; -@property(copy) NSString *pushServiceName; // @synthesize pushServiceName=_pushServiceName; -@property long long mediaTypeMask; // @synthesize mediaTypeMask=_mediaTypeMask; -@property(copy) NSString *tempPathClientIdentifier; // @synthesize tempPathClientIdentifier=_tempPathClientIdentifier; -@property(copy) NSString *storeSecureURLScheme; // @synthesize storeSecureURLScheme=_storeSecureURLScheme; -@property(copy) NSString *storeURLScheme; // @synthesize storeURLScheme=_storeURLScheme; -@property(setter=_setAlwaysUseSandboxEnvironment:) BOOL _alwaysUseSandboxEnvironment; // @synthesize _alwaysUseSandboxEnvironment=__alwaysUseSandboxEnvironment; -@property(copy) NSString *aslDomain; // @synthesize aslDomain=_aslDomain; -@property long long requiredBagType; // @synthesize requiredBagType=_requiredBagType; -@property(copy) NSString *toolbarBagKey; // @synthesize toolbarBagKey=_toolbarBagKey; -@property(copy) NSArray *sandboxBagURLs; // @synthesize sandboxBagURLs=_sandboxBagURLs; -@property(copy) NSArray *productionBagURLs; // @synthesize productionBagURLs=_productionBagURLs; -@property(copy) NSString *storeFrontBagKey; // @synthesize storeFrontBagKey=_storeFrontBagKey; -@property(copy) NSString *appPreferencesDomain; // @synthesize appPreferencesDomain=_appPreferencesDomain; -@property(copy) NSString *agentPreferencesDomain; // @synthesize agentPreferencesDomain=_agentPreferencesDomain; -@property(copy) NSString *userAgentAppVersion; // @synthesize userAgentAppVersion=_userAgentAppVersion; -@property(copy) NSString *userAgentAppName; // @synthesize userAgentAppName=_userAgentAppName; -@property(copy) ISStoreAccount *primaryAccount; // @synthesize primaryAccount=_primaryAccount; -@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; - -- (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 diff --git a/Sources/PrivateFrameworks/StoreFoundation/SSDownload.h b/Sources/PrivateFrameworks/StoreFoundation/SSDownload.h index 8e74cdc4f..9e66699ae 100644 --- a/Sources/PrivateFrameworks/StoreFoundation/SSDownload.h +++ b/Sources/PrivateFrameworks/StoreFoundation/SSDownload.h @@ -1,64 +1,50 @@ // -// Generated by class-dump 3.5 (64 bit). +// Generated by https://github.com/blacktop/ipsw (Version: 3.1.603, BuildCommit: Homebrew) // -// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// - LC_BUILD_VERSION: Platform: macOS, MinOS: 15.5, SDK: 15.5, Tool: ld (1167.3) +// - LC_SOURCE_VERSION: 715.5.1.0.0 // -@import Foundation; +NS_ASSUME_NONNULL_BEGIN -@class NSArray, NSNumber, NSString, NSURL, SSDownloadMetadata, SSDownloadStatus; - -@interface SSDownload : NSObject -{ +@interface SSDownload : NSObject { BOOL _needsPreInstallValidation; - BOOL _installAfterLogout; - BOOL _didAutoUpdate; - BOOL _skipAssetDownloadIfNotAlreadyOnDisk; - BOOL _needsDisplayInDock; - BOOL _isInServerQueue; - NSArray *_assets; - SSDownloadMetadata *_metadata; - SSDownloadStatus *_status; - unsigned long long _downloadType; - NSNumber *_accountDSID; - NSString *_cancelURLString; - NSString *_installPath; - NSURL *_relaunchAppWithBundleURL; } + (BOOL)supportsSecureCoding; -@property BOOL isInServerQueue; // @synthesize isInServerQueue=_isInServerQueue; -@property BOOL needsDisplayInDock; // @synthesize needsDisplayInDock=_needsDisplayInDock; -@property BOOL skipAssetDownloadIfNotAlreadyOnDisk; // @synthesize skipAssetDownloadIfNotAlreadyOnDisk=_skipAssetDownloadIfNotAlreadyOnDisk; -@property(copy) NSURL *relaunchAppWithBundleURL; // @synthesize relaunchAppWithBundleURL=_relaunchAppWithBundleURL; -@property(copy) NSString *installPath; // @synthesize installPath=_installPath; -@property BOOL didAutoUpdate; // @synthesize didAutoUpdate=_didAutoUpdate; -@property(copy) NSString *cancelURLString; // @synthesize cancelURLString=_cancelURLString; -@property(copy) NSNumber *accountDSID; // @synthesize accountDSID=_accountDSID; -@property BOOL installAfterLogout; // @synthesize installAfterLogout=_installAfterLogout; -@property unsigned long long downloadType; // @synthesize downloadType=_downloadType; -@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; -@property BOOL skipInstallPhase; -- (void)setUseUniqueDownloadFolder:(BOOL)arg1; +@property(copy) NSNumber *accountDSID; +@property(copy, nonatomic) NSArray *assets; +@property(copy) NSString *cancelURLString; @property(copy) NSString *customDownloadPath; -- (id)primaryAsset; -- (void)cancelWithPrompt:(BOOL)arg1 storeClient:(id)arg2; -- (void)cancelWithStoreClient:(id)arg1; -- (void)cancelWithPrompt:(BOOL)arg1; -- (void)resumeWithStoreClient:(id)arg1; -- (void)pauseWithStoreClient:(id)arg1; -- (id)initWithCoder:(id)arg1; -- (void)encodeWithCoder:(id)arg1; -- (BOOL)isEqual:(id)arg1; -- (id)initWithAssets:(id)arg1 metadata:(id)arg2; -- (id)init; -- (void)resume; -- (void)pause; +@property BOOL didAutoUpdate; +@property unsigned long long downloadType; +@property BOOL installAfterLogout; +@property(copy) NSString *installPath; +@property BOOL isInServerQueue; +@property(copy, nonatomic) SSDownloadMetadata *metadata; +@property BOOL needsDisplayInDock; +@property(copy) NSURL *relaunchAppWithBundleURL; +@property BOOL skipAssetDownloadIfNotAlreadyOnDisk; +@property BOOL skipInstallPhase; +@property(retain, nonatomic) SSDownloadStatus *status; + - (void)cancel; +- (void)cancelWithPrompt:(BOOL)prompt; +- (void)cancelWithPrompt:(BOOL)prompt storeClient:(ISStoreClient *)client; +- (void)cancelWithStoreClient:(ISStoreClient *)client; +- (void)encodeWithCoder:(NSCoder *)coder; +- (instancetype)init; +- (instancetype)initWithAssets:(NSArray *)assets metadata:(SSDownloadMetadata *)metadata; +- (instancetype)initWithCoder:(NSCoder *)coder; +- (BOOL)isEqual:(nullable id)object; +- (void)pause; +- (void)pauseWithStoreClient:(ISStoreClient *)client; +- (ISAsset *)primaryAsset; +- (void)resume; +- (void)resumeWithStoreClient:(ISStoreClient *)client; +- (void)setUseUniqueDownloadFolder:(BOOL)useUniqueDownloadFolder; @end + +NS_ASSUME_NONNULL_END diff --git a/Sources/PrivateFrameworks/StoreFoundation/SSDownloadMetadata.h b/Sources/PrivateFrameworks/StoreFoundation/SSDownloadMetadata.h index b5f6178ff..380570857 100644 --- a/Sources/PrivateFrameworks/StoreFoundation/SSDownloadMetadata.h +++ b/Sources/PrivateFrameworks/StoreFoundation/SSDownloadMetadata.h @@ -1,98 +1,76 @@ // -// Generated by class-dump 3.5 (64 bit). +// Generated by https://github.com/blacktop/ipsw (Version: 3.1.603, BuildCommit: Homebrew) // -// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// - LC_BUILD_VERSION: Platform: macOS, MinOS: 15.5, SDK: 15.5, Tool: ld (1167.3) +// - LC_SOURCE_VERSION: 715.5.1.0.0 // -@import Foundation; - -@class NSArray, NSData, NSDictionary, NSLock, NSMutableDictionary, NSNumber, NSString, NSURL; - NS_ASSUME_NONNULL_BEGIN -@interface SSDownloadMetadata : NSObject -{ - NSMutableDictionary *_dictionary; +@interface SSDownloadMetadata : NSObject { NSLock *_lock; } + (BOOL)supportsSecureCoding; -// - (void).cxx_destruct; - -- (id _Nullable)_valueForFirstAvailableKey:(id)arg1; -@property(retain, nullable) NSArray *sinfs; -- (void)setValue:(id _Nullable)arg1 forMetadataKey:(id)arg2; -@property(retain, nullable) NSString *iapInstallPath; -@property(retain, nullable) NSString *fileExtension; +@property(readonly, nullable) NSNumber *ageRestriction; +@property BOOL animationExpected; @property(retain, nullable) NSString *appleID; -@property(retain, nullable) NSData *epubRightsData; -@property(retain, nullable) NSString *downloadKey; +@property(readonly, nullable) NSString *applicationIdentifier; +@property BOOL artworkIsPrerendered; +@property(readonly, nullable) NSArray *assets; +@property(readonly, nullable) NSString *bundleDisplayName; +@property(retain, nullable) NSString *bundleIdentifier; +@property(readonly, nullable) NSString *bundleShortVersionString; +@property(retain, nullable) NSString *bundleVersion; +@property(retain, nullable) NSString *buyParameters; +@property(readonly) NSNumber *collectionID NS_AVAILABLE_MAC(13); +@property(retain, nullable) NSString *collectionName; @property(retain, nullable) NSDictionary *dictionary; -- (id _Nullable)localServerInfo; -@property(readonly, nullable) NSString *iapContentVersion; +@property(retain, nullable) NSString *downloadKey; +@property(retain, nullable) NSNumber *durationInMilliseconds; +@property(retain, nullable) NSData *epubRightsData; +@property(readonly) BOOL extractionCanBeStreamed; +@property(retain, nullable) NSString *fileExtension; +@property(retain, nullable) NSString *genre; @property(readonly, nullable) NSNumber *iapContentSize; -@property(readonly, nullable) NSArray *assets; - -@property BOOL animationExpected; - -@property(retain, nullable) NSString *transactionIdentifier; - -@property(retain) NSString *title; - -@property(retain, nullable) NSURL *thumbnailImageURL; -@property(retain, nullable) NSString *subtitle; +@property(readonly, nullable) NSString *iapContentVersion; +@property(retain, nullable) NSString *iapInstallPath; +@property(retain, nullable) NSData *ipaInstallBookmarkData NS_AVAILABLE_MAC(14); @property(retain, nullable) NSString *ipaInstallPath; - +@property(readonly) BOOL isExplicitContents; @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(retain, nullable) NSString *kind; +@property(retain) NSString *managedAppUUIDString NS_AVAILABLE_MAC(13); @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) NSURL *preflightPackageURL; @property(retain, nullable) NSString *productType; -@property(readonly, nullable) NSString *applicationIdentifier; - -- (id)copyWithZone:(nullable struct _NSZone *)arg1; -- (id)initWithCoder:(id)arg1; -- (void)encodeWithCoder:(id)arg1; +@property(readonly, nullable) NSString *purchaseDate; +@property(getter=isRental) BOOL rental; +@property(readonly, getter=isSample) BOOL sample; +@property(retain, nullable) NSArray *sinfs; +@property(readonly, nullable) NSString *sortArtist NS_AVAILABLE_MAC(13); +@property(readonly, nullable) NSString *sortName NS_AVAILABLE_MAC(13); +@property(retain, nullable) NSString *subtitle; +@property(retain, nullable) NSURL *thumbnailImageURL; +@property(retain) NSString *title; +@property(retain, nullable) NSString *transactionIdentifier; +@property(readonly, nullable) NSNumber *uncompressedSize; +@property(retain) NSNumber *version NS_AVAILABLE_MAC(13); -- (nullable instancetype)initWithDictionary:(id)arg1; -- (nullable instancetype)initWithKind:(id)arg1; +- (nullable id)_valueForFirstAvailableKey:(NSString *)key; +- (instancetype)copyWithZone:(nullable struct _NSZone *)zone; +- (nullable id)deltaPackages; +- (void)encodeWithCoder:(NSCoder *)coder; - (instancetype)init; +- (instancetype)initWithCoder:(NSCoder *)coder; +- (nullable instancetype)initWithDictionary:(NSDictionary *)dictionary; +- (nullable instancetype)initWithKind:(NSString *)kind; +- (nullable id)localServerInfo; +- (void)setExtractionCanBeStreamed:(BOOL)extractionCanBeStreamed NS_DEPRECATED_MAC(10_9, 12); +- (void)setUncompressedSize:(NSNumber *)uncompressedSize NS_DEPRECATED_MAC(10_9, 12); +- (void)setValue:(nullable id)value forMetadataKey:(NSString *)key; @end diff --git a/Sources/PrivateFrameworks/StoreFoundation/SSDownloadPhase.h b/Sources/PrivateFrameworks/StoreFoundation/SSDownloadPhase.h index 897ed519e..1a6629ceb 100644 --- a/Sources/PrivateFrameworks/StoreFoundation/SSDownloadPhase.h +++ b/Sources/PrivateFrameworks/StoreFoundation/SSDownloadPhase.h @@ -1,36 +1,29 @@ // -// Generated by class-dump 3.5 (64 bit). +// Generated by https://github.com/blacktop/ipsw (Version: 3.1.603, BuildCommit: Homebrew) // -// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// - LC_BUILD_VERSION: Platform: macOS, MinOS: 15.5, SDK: 15.5, Tool: ld (1167.3) +// - LC_SOURCE_VERSION: 715.5.1.0.0 // -@import Foundation; - -@class SSOperationProgress; - NS_ASSUME_NONNULL_BEGIN @interface SSDownloadPhase : NSObject -{ - SSOperationProgress *_operationProgress; -} + (BOOL)supportsSecureCoding; -//- (void).cxx_destruct; - +@property(readonly) double estimatedSecondsRemaining; @property(readonly) SSOperationProgress *operationProgress; -@property(readonly) long long totalProgressValue; -@property(readonly) long long progressValue; +@property(readonly) long long phaseType; @property(readonly) float progressChangeRate; @property(readonly) long long progressUnits; -@property(readonly) long long phaseType; -@property(readonly) double estimatedSecondsRemaining; -- (id)copyWithZone:(nullable struct _NSZone *)arg1; -- (id)initWithCoder:(id)arg1; -- (void)encodeWithCoder:(id)arg1; -- (id)initWithOperationProgress:(id)arg1; -- (id)init; +@property(readonly) long long progressValue; +@property(readonly) long long totalProgressValue; + +- (instancetype)copyWithZone:(nullable struct _NSZone *)zone; +- (void)encodeWithCoder:(NSCoder *)coder; +- (instancetype)init; +- (instancetype)initWithCoder:(NSCoder *)coder; +- (instancetype)initWithOperationProgress:(SSOperationProgress *)progress; @end diff --git a/Sources/PrivateFrameworks/StoreFoundation/SSDownloadStatus.h b/Sources/PrivateFrameworks/StoreFoundation/SSDownloadStatus.h index b629231e8..9e065c6d2 100644 --- a/Sources/PrivateFrameworks/StoreFoundation/SSDownloadStatus.h +++ b/Sources/PrivateFrameworks/StoreFoundation/SSDownloadStatus.h @@ -1,43 +1,31 @@ // -// Generated by class-dump 3.5 (64 bit). +// Generated by https://github.com/blacktop/ipsw (Version: 3.1.603, BuildCommit: Homebrew) // -// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// - LC_BUILD_VERSION: Platform: macOS, MinOS: 15.5, SDK: 15.5, Tool: ld (1167.3) +// - LC_SOURCE_VERSION: 715.5.1.0.0 // -@import Foundation; - -@class NSError, SSDownloadPhase; - NS_ASSUME_NONNULL_BEGIN @interface SSDownloadStatus : NSObject -{ - SSDownloadPhase *_activePhase; - NSError *_error; - BOOL _failed; - BOOL _paused; - BOOL _cancelled; - BOOL _waiting; -} + (BOOL)supportsSecureCoding; -@property BOOL waiting; // @synthesize waiting=_waiting; -@property(nonatomic, getter=isCancelled) BOOL cancelled; // @synthesize cancelled=_cancelled; -@property(nonatomic, getter=isPaused) BOOL paused; // @synthesize paused=_paused; -@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)setOperationProgress:(id)arg1; -@property(readonly, nonatomic) long long phaseTimeRemaining; -@property(readonly, nonatomic) float phasePercentComplete; -@property(readonly, nonatomic) float percentComplete; +@property(readonly, nonatomic) SSDownloadPhase *activePhase; +@property(nonatomic, getter=isCancelled) BOOL cancelled; +@property(retain, nonatomic) NSError *error; +@property(nonatomic, getter=isFailed) BOOL failed; @property(readonly, nonatomic, getter=isPausable) BOOL pausable; -- (id)copyWithZone:(struct _NSZone *)arg1; -- (id)initWithCoder:(id)arg1; -- (void)encodeWithCoder:(id)arg1; +@property(nonatomic, getter=isPaused) BOOL paused; +@property(readonly, nonatomic) float percentComplete; +@property(readonly, nonatomic) float phasePercentComplete; +@property(readonly, nonatomic) long long phaseTimeRemaining; +@property BOOL waiting; + +- (instancetype)copyWithZone:(nullable struct _NSZone *)zone; +- (void)encodeWithCoder:(NSCoder *)coder; +- (instancetype)initWithCoder:(NSCoder *)coder; +- (void)setOperationProgress:(SSOperationProgress *)progress; @end diff --git a/Sources/PrivateFrameworks/StoreFoundation/SSPurchase.h b/Sources/PrivateFrameworks/StoreFoundation/SSPurchase.h index 83b3573c4..0dd806af5 100644 --- a/Sources/PrivateFrameworks/StoreFoundation/SSPurchase.h +++ b/Sources/PrivateFrameworks/StoreFoundation/SSPurchase.h @@ -1,82 +1,50 @@ // -// Generated by class-dump 3.5 (64 bit). +// Generated by https://github.com/blacktop/ipsw (Version: 3.1.603, BuildCommit: Homebrew) // -// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// - LC_BUILD_VERSION: Platform: macOS, MinOS: 15.5, SDK: 15.5, Tool: ld (1167.3) +// - LC_SOURCE_VERSION: 715.5.1.0.0 // -@import Foundation; - -@class ISOperation, NSData, NSDictionary, NSNumber, NSString, SSDownloadMetadata; - NS_ASSUME_NONNULL_BEGIN @interface SSPurchase : NSObject -{ - NSNumber *_accountIdentifier; - NSString *_appleID; - NSString *_buyParameters; - SSDownloadMetadata *_downloadMetadata; - NSString *_uniqueIdentifier; - BOOL _isUpdate; - long long _purchaseType; - BOOL _checkPreflightAterPurchase; - NSData *_receiptData; - NSString *_parentalControls; - BOOL _isRedownload; - BOOL _isVPP; - BOOL _shouldBeInstalledAfterLogout; - BOOL _isCancelled; - BOOL _isDSIDLessPurchase; - NSString *_sortableAccountIdentifier; - unsigned long long _itemIdentifier; - - // CDUnknownBlockType _authFallbackHandler; - ISOperation *_purchaseOperation; - NSDictionary *_responseDialog; - NSDictionary *_dsidLessOptions; -} - -+ (id)purchasesGroupedByAccountIdentifierWithPurchases:(id)arg1; ++ (instancetype)purchaseWithBuyParameters:(NSString *)buyParameters; ++ (NSDictionary *)purchasesGroupedByAccountIdentifierWithPurchases:(NSArray *)purchases; + (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 (nullable) __weak ISOperation *purchaseOperation; // @synthesize purchaseOperation=_purchaseOperation; -@property BOOL isCancelled; // @synthesize isCancelled=_isCancelled; - -// @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(retain, nonatomic) NSData *receiptData; // @synthesize receiptData=_receiptData; -@property(nonatomic) long long purchaseType; // @synthesize purchaseType=_purchaseType; -@property BOOL isVPP; // @synthesize isVPP=_isVPP; -@property BOOL isRedownload; // @synthesize isRedownload=_isRedownload; -@property BOOL isUpdate; // @synthesize isUpdate=_isUpdate; -@property(retain, nonatomic) NSString *appleID; // @synthesize appleID=_appleID; -@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; +@property(retain, nonatomic) NSNumber *accountIdentifier; +@property(retain, nonatomic) NSString *appleID; +@property(copy) UnknownBlock *authFallbackHandler; +@property(copy, nonatomic) NSString *buyParameters; +@property BOOL checkPreflightAterPurchase; +@property(copy, nonatomic) SSDownloadMetadata *downloadMetadata; +@property(retain) NSDictionary *dsidLessOptions; +@property BOOL isCancelled; +@property BOOL isDSIDLessPurchase; +@property BOOL isRecoveryPurchase; +@property BOOL isRedownload; +@property BOOL isUpdate; +@property BOOL isVPP; +@property unsigned long long itemIdentifier; +@property(retain, nonatomic) NSString *managedAppUUIDString NS_AVAILABLE_MAC(13); +@property(readonly) BOOL needsAuthentication; +@property(retain, nonatomic) NSString *parentalControls; +@property(weak) ISOperation *purchaseOperation; +@property(nonatomic) long long purchaseType; +@property(retain, nonatomic) NSData *receiptData; +@property(copy) NSDictionary *responseDialog; +@property BOOL shouldBeInstalledAfterLogout; +@property(readonly, nonatomic) NSString *sortableAccountIdentifier; +@property(readonly, nonatomic) NSString *uniqueIdentifier; +- (NSString *)_sortableAccountIdentifier; +- (instancetype)copyWithZone:(nullable struct _NSZone *)zone; +- (NSString *)description; +- (void)encodeWithCoder:(NSCoder *)coder; +- (instancetype)initWithCoder:(NSCoder *)coder; +- (NSNumber *)productID; - (BOOL)purchaseDSIDMatchesPrimaryAccount; -@property(readonly) BOOL needsAuthentication; // @dynamic needsAuthentication; -@property BOOL isRecoveryPurchase; // @dynamic isRecoveryPurchase; -- (id)productID; -@property(readonly, nonatomic) NSString *uniqueIdentifier; -- (id)_sortableAccountIdentifier; -- (id)description; -- (id)copyWithZone:(nullable struct _NSZone *)arg1; -- (void)encodeWithCoder:(id)arg1; -- (id)initWithCoder:(id)arg1; @end diff --git a/Sources/PrivateFrameworks/StoreFoundation/SSPurchaseResponse.h b/Sources/PrivateFrameworks/StoreFoundation/SSPurchaseResponse.h index 19b985d05..adfa5abf1 100644 --- a/Sources/PrivateFrameworks/StoreFoundation/SSPurchaseResponse.h +++ b/Sources/PrivateFrameworks/StoreFoundation/SSPurchaseResponse.h @@ -1,32 +1,25 @@ // -// Generated by class-dump 3.5 (64 bit). +// Generated by https://github.com/blacktop/ipsw (Version: 3.1.603, BuildCommit: Homebrew) // -// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// - LC_BUILD_VERSION: Platform: macOS, MinOS: 15.5, SDK: 15.5, Tool: ld (1167.3) +// - LC_SOURCE_VERSION: 715.5.1.0.0 // -@import Foundation; - -@class NSArray, NSDictionary; - NS_ASSUME_NONNULL_BEGIN -@interface SSPurchaseResponse : NSObject -{ - NSArray *_downloads; +@interface SSPurchaseResponse : NSObject { NSDictionary *_rawResponse; - NSDictionary *_metrics; } + (BOOL)supportsSecureCoding; -@property(retain) NSDictionary *metrics; // @synthesize metrics=_metrics; -@property(retain) NSArray *downloads; // @synthesize downloads=_downloads; -//- (void).cxx_destruct; +@property(retain) NSArray *downloads; +@property(retain) NSDictionary *metrics; -- (id)initWithCoder:(id)arg1; -- (void)encodeWithCoder:(id)arg1; -- (id)_newDownloadsFromItems:(id)arg1 withDSID:(id)arg2; -- (id)initWithDictionary:(id)arg1 userIdentifier:(id)arg2; +- (NSArray *)_newDownloadsFromItems:(NSArray *)items withDSID:(NSNumber *)dsID; +- (void)encodeWithCoder:(NSCoder *)coder; +- (instancetype)initWithCoder:(NSCoder *)coder; +- (instancetype)initWithDictionary:(NSDictionary *)dictionary userIdentifier:(NSString *)userIdentifier; @end diff --git a/Sources/PrivateFrameworks/StoreFoundation/StoreFoundation.h b/Sources/PrivateFrameworks/StoreFoundation/StoreFoundation.h new file mode 100644 index 000000000..fbd3b52c9 --- /dev/null +++ b/Sources/PrivateFrameworks/StoreFoundation/StoreFoundation.h @@ -0,0 +1,22 @@ +// +// StoreFoundation.h +// mas +// +// Copyright © 2025 mas-cli. All rights reserved. +// + +@import Foundation; + +@class ISAsset, ISAuthenticationContext, ISAuthenticationResponse, ISOperation, ISStoreClient, SSOperationProgress, UnknownBlock; + +@protocol ISAccountStoreObserver, ISAssetService, ISDownloadService, ISInAppService, ISServiceRemoteObject, ISTransactionService, ISUIService, ISURLBagObserver; + +#import +#import +#import +#import +#import +#import +#import +#import +#import diff --git a/Sources/PrivateFrameworks/StoreFoundation/module.modulemap b/Sources/PrivateFrameworks/StoreFoundation/module.modulemap index fe3e33e8e..1300fd516 100644 --- a/Sources/PrivateFrameworks/StoreFoundation/module.modulemap +++ b/Sources/PrivateFrameworks/StoreFoundation/module.modulemap @@ -1,14 +1,6 @@ -module StoreFoundation { - header "ISAccountService.h" - header "ISAuthenticationContext.h" - header "ISStoreAccount.h" - header "ISStoreClient.h" - header "SSDownload.h" - header "SSDownloadMetadata.h" - header "SSDownloadPhase.h" - header "SSDownloadStatus.h" - header "SSPurchase.h" - header "SSPurchaseResponse.h" - +module StoreFoundation [no_undeclared_includes] { + requires macos, objc + use Foundation + private header "StoreFoundation.h" export * } diff --git a/Sources/mas/AppStore/AppleAccount.swift b/Sources/mas/AppStore/AppleAccount.swift index 46d22c052..bfda91f56 100644 --- a/Sources/mas/AppStore/AppleAccount.swift +++ b/Sources/mas/AppStore/AppleAccount.swift @@ -5,8 +5,8 @@ // Copyright © 2025 mas-cli. All rights reserved. // -private import CommerceKit internal import Foundation +private import StoreFoundation struct AppleAccount: Sendable { let emailAddress: String diff --git a/Sources/mas/AppStore/PurchaseDownloadObserver.swift b/Sources/mas/AppStore/PurchaseDownloadObserver.swift index 62057b75b..dc2da74c8 100644 --- a/Sources/mas/AppStore/PurchaseDownloadObserver.swift +++ b/Sources/mas/AppStore/PurchaseDownloadObserver.swift @@ -30,13 +30,11 @@ class PurchaseDownloadObserver: CKDownloadQueueObserver { } func downloadQueue(_ queue: CKDownloadQueue, statusChangedFor download: SSDownload) { - guard - download.metadata.itemIdentifier == appID, - let status = download.status - else { + guard download.metadata.itemIdentifier == appID else { return } + let status = download.status if status.isFailed || status.isCancelled { queue.removeDownload(withItemIdentifier: download.metadata.itemIdentifier) } else { @@ -49,14 +47,12 @@ class PurchaseDownloadObserver: CKDownloadQueueObserver { } func downloadQueue(_: CKDownloadQueue, changedWithRemoval download: SSDownload) { - guard - download.metadata.itemIdentifier == appID, - let status = download.status - else { + guard download.metadata.itemIdentifier == appID else { return } printer.terminateEphemeral() + let status = download.status if status.isFailed { errorHandler?(status.error) } else if status.isCancelled { diff --git a/Sources/mas/AppStore/SSPurchase.swift b/Sources/mas/AppStore/SSPurchase.swift index 8aebd623d..d362a10d5 100644 --- a/Sources/mas/AppStore/SSPurchase.swift +++ b/Sources/mas/AppStore/SSPurchase.swift @@ -5,7 +5,7 @@ // Copyright © 2015 mas-cli. All rights reserved. // -private import CommerceKit +private import StoreFoundation extension SSPurchase { convenience init(appID: AppID, purchasing: Bool) async { diff --git a/Sources/mas/Commands/Reset.swift b/Sources/mas/Commands/Reset.swift index d205daa0e..ec6a096b5 100644 --- a/Sources/mas/Commands/Reset.swift +++ b/Sources/mas/Commands/Reset.swift @@ -72,12 +72,11 @@ extension MAS { } // Wipe Download Directory - if let directory = CKDownloadDirectory(nil) { - do { - try FileManager.default.removeItem(atPath: directory) - } catch { - printer.error("Failed to delete download directory", directory, error: error) - } + let directory = CKDownloadDirectory(nil) + do { + try FileManager.default.removeItem(atPath: directory) + } catch { + printer.error("Failed to delete download directory", directory, error: error) } } } diff --git a/Sources/mas/Commands/SignOut.swift b/Sources/mas/Commands/SignOut.swift index 4fe26ae63..96695bb00 100644 --- a/Sources/mas/Commands/SignOut.swift +++ b/Sources/mas/Commands/SignOut.swift @@ -6,7 +6,7 @@ // internal import ArgumentParser -private import CommerceKit +private import StoreFoundation extension MAS { /// Signs out of the Apple Account currently signed in to the Mac App Store.