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: 4 additions & 2 deletions Sources/PrivateFrameworks/CommerceKit/CKDownloadDirectory.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
68 changes: 28 additions & 40 deletions Sources/PrivateFrameworks/CommerceKit/CKDownloadQueue.h
Original file line number Diff line number Diff line change
@@ -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<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;

@property(retain, nonatomic) NSMutableDictionary *downloadQueueObservers;
@property(readonly, nonatomic) NSArray *downloads;
@property(retain, nonatomic) 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)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<CKDownloadQueueObserver>)observer;
- (void)resumeDownloadWithItemIdentifier:(unsigned long long)identifier;
- (void)unlockApplicationsWithBundleIdentifier:(NSString *)bundleID;

@end

Expand Down
Original file line number Diff line number Diff line change
@@ -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
44 changes: 17 additions & 27 deletions Sources/PrivateFrameworks/CommerceKit/CKPurchaseController.h
Original file line number Diff line number Diff line change
@@ -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<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;

@end

Expand Down
11 changes: 6 additions & 5 deletions Sources/PrivateFrameworks/CommerceKit/CKServiceInterface.h
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions Sources/PrivateFrameworks/CommerceKit/CommerceKit.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// CommerceKit.h
// mas
//
// Copyright © 2025 mas-cli. All rights reserved.
//

@import StoreFoundation;

@class CKDownloadQueueClient;

@protocol CKDownloadQueueObserver;

#import <CKServiceInterface.h>
#import <CKDownloadDirectory.h>
#import <CKDownloadQueue.h>
#import <CKDownloadQueueObserver-Protocol.h>
#import <CKPurchaseController.h>
9 changes: 4 additions & 5 deletions Sources/PrivateFrameworks/CommerceKit/module.modulemap
Original file line number Diff line number Diff line change
@@ -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 *
}
Original file line number Diff line number Diff line change
@@ -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 <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)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)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
62 changes: 0 additions & 62 deletions Sources/PrivateFrameworks/StoreFoundation/ISAccountService.h

This file was deleted.

Loading