Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions Sources/PrivateFrameworks/CommerceKit/CKDownloadDirectory.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,4 @@
// Copyright © 2018 mas-cli. All rights reserved.
//

NS_ASSUME_NONNULL_BEGIN

NSString *CKDownloadDirectory(NSString * _Nullable target);

NS_ASSUME_NONNULL_END
NSString * _Nonnull CKDownloadDirectory(NSString * _Nullable target);
40 changes: 18 additions & 22 deletions Sources/PrivateFrameworks/CommerceKit/CKDownloadQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,37 @@
// - LC_SOURCE_VERSION: 715.5.1.0.0
//

NS_ASSUME_NONNULL_BEGIN

@interface CKDownloadQueue : CKServiceInterface {
NSMutableDictionary *_downloadsByItemID;
NSLock *_downloadsLock;
id _observerToken NS_AVAILABLE_MAC(13);
NSLock *_tokenLock NS_AVAILABLE_MAC(13);
}

+ (instancetype)sharedDownloadQueue;
+ (nonnull instancetype)sharedDownloadQueue;

@property(retain, nonatomic) NSMutableDictionary *downloadQueueObservers;
@property(readonly, nonatomic) NSArray *downloads;
@property(retain, nonatomic) CKDownloadQueueClient *sharedObserver;
@property(retain, nonatomic, nullable) NSMutableDictionary<NSString *, CKDownloadQueueClient *> * downloadQueueObservers; // <NSString * _Nonnull, CKDownloadQueueClient * _Nonnull>
@property(readonly, nonatomic, nullable) NSArray<SSDownload *> *downloads; // Unverified generic type
@property(retain, nonatomic, nullable) CKDownloadQueueClient *sharedObserver;

- (void)addDownload:(SSDownload *)download;
- (id<CKDownloadQueueObserver>)addObserver:(id<CKDownloadQueueObserver>)observer;
- (id<CKDownloadQueueObserver>)addObserver:(id<CKDownloadQueueObserver>)observer forDownloadTypes:(long long)downloadTypes;
- (id<CKDownloadQueueObserver>)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)addDownload:(nonnull SSDownload *)download;
- (nonnull NSString *)addObserver:(nullable id<CKDownloadQueueObserver>)observer;
- (nonnull NSString *)addObserver:(nullable id<CKDownloadQueueObserver>)observer forDownloadTypes:(long long)downloadTypes;
- (nonnull NSString *)addObserverForDownloadTypes:(long long)downloadTypes withBlock:(nullable UnknownBlock)block;
- (BOOL)cacheReceiptDataForDownload:(nullable SSDownload *)download;
- (void)cancelDownload:(nullable SSDownload *)download promptToConfirm:(BOOL)promptToConfirm askToDelete:(BOOL)askToDelete;
- (void)checkStoreDownloadQueueForAccount:(nullable ISStoreAccount *)account; // Unverified account type
- (void)connectionWasInterrupted;
- (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;
- (nullable SSDownload *)downloadForItemIdentifier:(unsigned long long)identifier; // Unverified return type
- (void)fetchIconForItemIdentifier:(unsigned long long)identifier atURL:(nullable NSURL *)url replyBlock:(nonnull UnknownBlock)block;
- (nonnull instancetype)initWithStoreClient:(nullable ISStoreClient *)client; // Unverified client type
- (void)lockApplicationsForBundleID:(nullable NSString *)bundleID; // Unverified bundleID type
- (void)lockedApplicationTriedToLaunchAtPath:(nullable NSString *)path; // Unverified path type
- (void)pauseDownloadWithItemIdentifier:(unsigned long long)identifier;
- (void)performedIconAnimationForDownloadWithIdentifier:(unsigned long long)identifier;
- (void)removeDownloadWithItemIdentifier:(unsigned long long)identifier;
- (void)removeObserver:(id<CKDownloadQueueObserver>)observer;
- (void)removeObserver:(nullable NSString *)observer; // Unverified observer type
- (void)resumeDownloadWithItemIdentifier:(unsigned long long)identifier;
- (void)unlockApplicationsWithBundleIdentifier:(NSString *)bundleID;
- (void)unlockApplicationsWithBundleIdentifier:(nullable NSString *)bundleID; // Unverified bundleID type

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,14 @@
// Copyright © 2018 mas-cli. All rights reserved.
//

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;
- (void)downloadQueue:(nonnull CKDownloadQueue *)queue changedWithAddition:(nonnull SSDownload *)download;
- (void)downloadQueue:(nonnull CKDownloadQueue *)queue changedWithRemoval:(nonnull SSDownload *)download;
- (void)downloadQueue:(nonnull CKDownloadQueue *)queue statusChangedForDownload:(nonnull SSDownload *)download;

@optional

@end

NS_ASSUME_NONNULL_END
26 changes: 11 additions & 15 deletions Sources/PrivateFrameworks/CommerceKit/CKPurchaseController.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
// - LC_SOURCE_VERSION: 715.5.1.0.0
//

NS_ASSUME_NONNULL_BEGIN

typedef void (^SSPurchaseCompletion)(SSPurchase * _Nullable purchase, BOOL completed, NSError * _Nullable error, SSPurchaseResponse * _Nullable response);
typedef void (^SSPurchaseCompletion)(SSPurchase * _Nonnull purchase, BOOL completed, NSError * _Nullable error, SSPurchaseResponse * _Nullable response);

@interface CKPurchaseController : CKServiceInterface {
NSArray *_adoptionEligibleItems;
Expand All @@ -18,21 +16,19 @@ typedef void (^SSPurchaseCompletion)(SSPurchase * _Nullable purchase, BOOL compl
}

+ (void)setNeedsSilentMachineAuthorization:(BOOL)needsSilentMachineAuthorization;
+ (instancetype)sharedPurchaseController;
+ (nonnull instancetype)sharedPurchaseController;

@property(copy) UnknownBlock *dialogHandler;
@property(copy, nullable) void (^dialogHandler)(CKDialog * _Nullable); // Unverified type

- (void)_performVPPReceiptRenewal;
- (BOOL)adoptionCompletedForBundleID:(NSString *)bundleID;
- (void)cancelPurchaseWithProductID:(NSNumber *)productID;
- (BOOL)adoptionCompletedForBundleID:(nullable NSString *)bundleID;
- (void)cancelPurchaseWithProductID:(nullable NSNumber *)productID;
- (void)checkServerDownloadQueue;
- (void)performPurchase:(SSPurchase *)purchase withOptions:(unsigned long long)options completionHandler:(nullable SSPurchaseCompletion)handler;
- (SSPurchase *)purchaseInProgressForProductID:(NSNumber *)productID;
- (NSArray<SSPurchase *> *)purchasesInProgress;
- (void)resumeDownloadForPurchasedProductID:(NSNumber *)productID;
- (void)startPurchases:(NSArray<SSPurchase *> *)purchases shouldStartDownloads:(BOOL)shouldStartDownloads eventHandler:(UnknownBlock *)handler;
- (void)startPurchases:(NSArray<SSPurchase *> *)purchases withOptions:(unsigned long long)options completionHandler:(UnknownBlock *)handler;
- (void)performPurchase:(nonnull SSPurchase *)purchase withOptions:(unsigned long long)options completionHandler:(nullable SSPurchaseCompletion)handler;
- (nullable SSPurchase *)purchaseInProgressForProductID:(nullable NSNumber *)productID; // Unverified return type
- (nullable NSArray<SSPurchase *> *)purchasesInProgress; // Unverified return type
- (void)resumeDownloadForPurchasedProductID:(nullable NSNumber *)productID; // Unverified productID type
- (void)startPurchases:(nullable NSArray<SSPurchase *> *)purchases shouldStartDownloads:(BOOL)shouldStartDownloads eventHandler:(nullable void (^)(NSArray<SSPurchase *> * _Nonnull))handler; // Unverified purchases generic type / handler type
- (void)startPurchases:(nullable NSArray<SSPurchase *> *)purchases withOptions:(unsigned long long)options completionHandler:(nullable void (^)(NSArray<SSPurchase *> * _Nonnull))handler; // Unverified purchases type / handler parameter type

@end

NS_ASSUME_NONNULL_END
4 changes: 0 additions & 4 deletions Sources/PrivateFrameworks/CommerceKit/CKServiceInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
// - LC_SOURCE_VERSION: 715.5.1.0.0
//

NS_ASSUME_NONNULL_BEGIN

@interface CKServiceInterface : ISServiceProxy

@end

NS_ASSUME_NONNULL_END
2 changes: 1 addition & 1 deletion Sources/PrivateFrameworks/CommerceKit/CommerceKit.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@import StoreFoundation;

@class CKDownloadQueueClient;
@class CKDialog, CKDownloadQueueClient;

@protocol CKDownloadQueueObserver;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,54 +5,50 @@
// - LC_SOURCE_VERSION: 715.5.1.0.0
//

NS_ASSUME_NONNULL_BEGIN

@protocol ISAccountService <ISServiceRemoteObject>

@required

- (void)accountWithAppleID:(NSString *)appleID replyBlock:(void (^)(ISStoreAccount *))block;
- (void)accountWithDSID:(NSNumber *)dsID replyBlock:(void (^)(ISStoreAccount *))block;
- (void)addAccount:(ISStoreAccount *)account;
- (void)addAccountStoreObserver:(id<ISAccountStoreObserver>)observer;
- (void)addAccountWithAuthenticationResponse:(ISAuthenticationResponse *)authenticationResponse makePrimary:(BOOL)makePrimary replyBlock:(void (^)(ISStoreAccount *))block NS_DEPRECATED_MAC(10_9, 12);
- (void)addURLBagObserver:(id<ISURLBagObserver>)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)accountWithAppleID:(nullable NSString *)appleID replyBlock:(nonnull void (^)(ISStoreAccount * _Nullable))block; // Unverified appleID type / block parameter types
- (void)accountWithDSID:(nullable NSNumber *)dsID replyBlock:(nonnull void (^)(ISStoreAccount * _Nullable))block; // Unverified dsID type / block parameter types
- (void)addAccount:(nullable ISStoreAccount *)account; // Unverified account type
- (void)addAccountStoreObserver:(nullable id<ISAccountStoreObserver>)observer; // Unverified observer type
- (void)addAccountWithAuthenticationResponse:(nullable ISAuthenticationResponse *)authenticationResponse makePrimary:(BOOL)makePrimary replyBlock:(nonnull void (^)(ISStoreAccount * _Nullable))block NS_DEPRECATED_MAC(10_9, 12); // Unverified
- (void)addURLBagObserver:(nullable id<ISURLBagObserver>)observer;
- (void)authIsExpiredWithReplyBlock:(nonnull void (^)(BOOL))block; // Unverified block parameter types
- (void)dictionaryForDSID:(nullable NSNumber *)dsID withReplyBlock:(nonnull void (^)(NSDictionary * _Nullable))block NS_AVAILABLE_MAC(13); // Unverified dsID type / block parameter types
- (void)dictionaryWithReplyBlock:(nonnull void (^)(NSDictionary * _Nonnull))block; // Unverified block parameter types
- (void)generateTouchIDHeadersForDSID:(nullable NSNumber *)dsID challenge:(nullable NSString *)challenge caller:(nullable id)caller replyBlock:(nonnull void (^)(NSDictionary * _Nonnull, NSError * _Nullable))block; // Unverified dsID type / challenge type / caller type / block parameter types
- (void)getTouchIDPreferenceWithReplyBlock:(nonnull void (^)(BOOL, ISStoreAccount * _Nullable, NSError * _Nullable))block; // Unverified block parameter types
- (void)httpHeadersForURL:(nullable NSURL *)url forDSID:(nullable NSNumber *)dsID includeADIHeaders:(BOOL)includeADIHeaders withReplyBlock:(nonnull void (^)(NSDictionary * _Nonnull))block; // Unverified url type / dsID type / block parameter types
- (void)iCloudDSIDReplyBlock:(nonnull void (^)(NSString * _Nullable))block; // Unverified block parameter types
- (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<ISAccountStoreObserver>)observer;
- (void)removeURLBagObserver:(id<ISURLBagObserver>)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)isValidWithReplyBlock:(nonnull void (^)(BOOL))block; // Unverified block parameter types
- (void)loadURLBagWithType:(unsigned long long)type replyBlock:(nonnull void (^)(BOOL, BOOL, NSError * _Nullable))block; // Unverified block parameter types
- (void)needsSilentADIActionForURL:(nullable NSURL *)url dsID:(nullable NSNumber *)dsID withReplyBlock:(nonnull void (^)(BOOL))block NS_AVAILABLE_MAC(13); // Unverified url type / dsID type / block parameter types
- (void)needsSilentADIActionForURL:(nullable NSURL *)url withReplyBlock:(nonnull void (^)(BOOL))block; // Unverified url type / block parameter types
- (void)parseCreditStringForProtocol:(nullable NSDictionary *)dictionary NS_DEPRECATED_MAC(10_9, 12); // Unverified dictionary type
- (void)primaryAccountWithReplyBlock:(nonnull void (^)(ISStoreAccount * _Nullable))block; // Unverified block parameter types
- (void)processURLResponse:(nullable NSURLResponse *)urlResponse forRequest:(nullable NSURLRequest *)request; // Unverified urlResponse type / request type
- (void)processURLResponse:(nullable NSURLResponse *)urlResponse forRequest:(nullable NSURLRequest *)request dsID:(nullable NSNumber *)dsID NS_AVAILABLE_MAC(13); // Unverified urlResponse type / request type / dsID type
- (void)recommendedAppleIDForAccountSignIn:(nonnull void (^)(NSString * _Nullable))appleID NS_DEPRECATED_MAC(10_9, 12); // Unverified
- (void)regexWithKey:(nullable NSString *)key dsID:(nullable NSNumber *)dsID matchesString:(nullable NSString *)string replyBlock:(nonnull void (^)(BOOL))block NS_AVAILABLE_MAC(13); // Unverified key type / dsID type / string type / block parameter types
- (void)regexWithKey:(nullable NSString *)key matchesString:(nullable NSString *)string replyBlock:(nonnull void (^)(BOOL))block; // Unverified key type / string type / block parameter types
- (void)removeAccountStoreObserver:(nullable id<ISAccountStoreObserver>)observer; // Unverified observer type
- (void)removeURLBagObserver:(nullable id<ISURLBagObserver>)observer; // Unverified observer type
- (void)retailStoreDemoModeReplyBlock:(nonnull void (^)(BOOL, NSString * _Nullable, NSString * _Nullable, BOOL))block; // Unverified block parameter types
- (void)setStoreFrontID:(nullable NSString *)storefrontID; // Unverified storefrontID type
- (void)setTouchIDState:(long long)touchIDState forDSID:(nullable NSNumber *)dsID replyBlock:(nonnull void (^)(BOOL, NSError * _Nullable))block; // Unverified dsID type / block parameter types
- (void)shouldSendGUIDWithRequestForURL:(nullable NSURL *)url withReplyBlock:(nonnull void (^)(BOOL))block; // Unverified url type / block parameter types
- (void)signInWithContext:(nullable ISAuthenticationContext *)context replyBlock:(nonnull void (^)(BOOL, ISStoreAccount * _Nullable, NSError * _Nullable))block NS_DEPRECATED_MAC(10_9, 10_12); // Unverified
- (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;
- (void)storeFrontWithReplyBlock:(nonnull void (^)(NSString * _Nonnull))block; // Unverified block parameter types
- (void)updateTouchIDSettingsForDSID:(nullable NSNumber *)dsID replyBlock:(nonnull void (^)(BOOL, NSError * _Nullable))block; // Unverified dsID type / block parameter types
- (void)urlIsTrustedByURLBag:(nullable NSURL *)urlBag dsID:(nullable NSNumber *)dsID withReplyBlock:(nonnull void (^)(BOOL))block NS_AVAILABLE_MAC(13); // Unverified urlBag type / dsID type / block parameter types
- (void)urlIsTrustedByURLBag:(nullable NSURL *)urlBag withReplyBlock:(nonnull void (^)(BOOL))block; // Unverified urlBag type / block parameter types
- (void)valueForURLBagKey:(nullable NSString *)bagKey dsID:(nullable NSNumber *)dsID withReplyBlock:(nonnull void (^)(NSURL * _Nullable))block NS_AVAILABLE_MAC(13); // Unverified bagKey type / dsID type / block parameter types
- (void)valueForURLBagKey:(nullable NSString *)bagKey withReplyBlock:(nonnull void (^)(NSURL * _Nullable))block; // Unverified bagKey type / block parameter types

@optional

@end

NS_ASSUME_NONNULL_END
Loading