Skip to content

Commit 541d228

Browse files
authored
Merge pull request #907 from rgoldberg/565-private-framework-headers
Improve Apple private framework headers
2 parents 69789d0 + ace9eb0 commit 541d228

28 files changed

Lines changed: 403 additions & 729 deletions

Sources/PrivateFrameworks/CommerceKit/CKDownloadDirectory.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// Copyright © 2018 mas-cli. All rights reserved.
66
//
77

8-
@import Foundation;
8+
NS_ASSUME_NONNULL_BEGIN
99

10-
NSString* CKDownloadDirectory(NSString *target);
10+
NSString *CKDownloadDirectory(NSString * _Nullable target);
11+
12+
NS_ASSUME_NONNULL_END

Sources/PrivateFrameworks/CommerceKit/CKDownloadQueue.h

Lines changed: 28 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,44 @@
11
//
2-
// Generated by class-dump 3.5 (64 bit).
2+
// Generated by https://github.com/blacktop/ipsw (Version: 3.1.603, BuildCommit: Homebrew)
33
//
4-
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
4+
// - LC_BUILD_VERSION: Platform: macOS, MinOS: 15.5, SDK: 15.5, Tool: ld (1167.3)
5+
// - LC_SOURCE_VERSION: 715.5.1.0.0
56
//
67

7-
#import "CKServiceInterface.h"
8-
9-
@class CKDownloadQueueClient, NSArray, NSLock, NSMutableDictionary;
10-
11-
@protocol CKDownloadQueueObserver;
12-
138
NS_ASSUME_NONNULL_BEGIN
149

15-
@interface CKDownloadQueue : CKServiceInterface
16-
{
10+
@interface CKDownloadQueue : CKServiceInterface {
1711
NSMutableDictionary *_downloadsByItemID;
1812
NSLock *_downloadsLock;
19-
NSMutableDictionary *_downloadQueueObservers;
20-
CKDownloadQueueClient *_sharedObserver;
13+
id _observerToken NS_AVAILABLE_MAC(13);
14+
NSLock *_tokenLock NS_AVAILABLE_MAC(13);
2115
}
2216

2317
+ (instancetype)sharedDownloadQueue;
2418

25-
@property(retain, nonatomic) CKDownloadQueueClient *sharedObserver; // @synthesize sharedObserver=_sharedObserver;
26-
@property(retain, nonatomic) NSMutableDictionary *downloadQueueObservers; // @synthesize downloadQueueObservers=_downloadQueueObservers;
27-
28-
//- (void).cxx_destruct;
29-
30-
- (BOOL)cacheReceiptDataForDownload:(id)arg1;
31-
- (void)checkStoreDownloadQueueForAccount:(id)arg1;
32-
- (void)lockedApplicationTriedToLaunchAtPath:(id)arg1;
33-
- (void)unlockApplicationsWithBundleIdentifier:(id)arg1;
34-
- (void)lockApplicationsForBundleID:(id)arg1;
35-
- (void)performedIconAnimationForDownloadWithIdentifier:(unsigned long long)arg1;
36-
37-
//- (void)fetchIconForItemIdentifier:(unsigned long long)arg1 atURL:(id)arg2 replyBlock:(CDUnknownBlockType)arg3;
38-
39-
- (void)removeDownloadWithItemIdentifier:(unsigned long long)arg1;
40-
- (void)cancelDownload:(id)arg1 promptToConfirm:(BOOL)arg2 askToDelete:(BOOL)arg3;
41-
- (void)resumeDownloadWithItemIdentifier:(unsigned long long)arg1;
42-
- (void)pauseDownloadWithItemIdentifier:(unsigned long long)arg1;
43-
- (void)addDownload:(id)arg1;
44-
- (id)downloadForItemIdentifier:(unsigned long long)arg1;
45-
@property(readonly, nonatomic) NSArray *downloads; // @dynamic downloads;
46-
- (void)removeObserver:(id<CKDownloadQueueObserver>)arg1;
47-
- (id<CKDownloadQueueObserver>)addObserver:(id<CKDownloadQueueObserver>)arg1;
48-
- (id<CKDownloadQueueObserver>)addObserver:(id<CKDownloadQueueObserver>)arg1 forDownloadTypes:(long long)arg2;
49-
50-
// - (id)addObserverForDownloadTypes:(long long)arg1 withBlock:(CDUnknownBlockType)arg2;
51-
19+
@property(retain, nonatomic) NSMutableDictionary *downloadQueueObservers;
20+
@property(readonly, nonatomic) NSArray *downloads;
21+
@property(retain, nonatomic) CKDownloadQueueClient *sharedObserver;
22+
23+
- (void)addDownload:(SSDownload *)download;
24+
- (id<CKDownloadQueueObserver>)addObserver:(id<CKDownloadQueueObserver>)observer;
25+
- (id<CKDownloadQueueObserver>)addObserver:(id<CKDownloadQueueObserver>)observer forDownloadTypes:(long long)downloadTypes;
26+
- (id<CKDownloadQueueObserver>)addObserverForDownloadTypes:(long long)downloadTypes withBlock:(UnknownBlock *)block;
27+
- (BOOL)cacheReceiptDataForDownload:(SSDownload *)download;
28+
- (void)cancelDownload:(SSDownload *)download promptToConfirm:(BOOL)promptToConfirm askToDelete:(BOOL)askToDelete;
29+
- (void)checkStoreDownloadQueueForAccount:(ISStoreAccount *)account;
5230
- (void)connectionWasInterrupted;
53-
- (id)initWithStoreClient:(id)arg1;
31+
- (SSDownload *)downloadForItemIdentifier:(unsigned long long)identifier;
32+
- (void)fetchIconForItemIdentifier:(unsigned long long)identifier atURL:(NSURL *)url replyBlock:(UnknownBlock *)block;
33+
- (instancetype)initWithStoreClient:(ISStoreClient *)client;
34+
- (void)lockApplicationsForBundleID:(NSString *)bundleID;
35+
- (void)lockedApplicationTriedToLaunchAtPath:(NSString *)path;
36+
- (void)pauseDownloadWithItemIdentifier:(unsigned long long)identifier;
37+
- (void)performedIconAnimationForDownloadWithIdentifier:(unsigned long long)identifier;
38+
- (void)removeDownloadWithItemIdentifier:(unsigned long long)identifier;
39+
- (void)removeObserver:(id<CKDownloadQueueObserver>)observer;
40+
- (void)resumeDownloadWithItemIdentifier:(unsigned long long)identifier;
41+
- (void)unlockApplicationsWithBundleIdentifier:(NSString *)bundleID;
5442

5543
@end
5644

Sources/PrivateFrameworks/CommerceKit/CKDownloadQueueObserver.h renamed to Sources/PrivateFrameworks/CommerceKit/CKDownloadQueueObserver-Protocol.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
//
2-
// CKDownloadQueueObserver.h
2+
// CKDownloadQueueObserver-Protocol.h
33
// mas
44
//
55
// Copyright © 2018 mas-cli. All rights reserved.
66
//
77

8-
#import "CKDownloadQueue.h"
9-
@import StoreFoundation;
8+
NS_ASSUME_NONNULL_BEGIN
109

1110
@protocol CKDownloadQueueObserver
1211

12+
@required
13+
1314
- (void)downloadQueue:(CKDownloadQueue *)downloadQueue changedWithAddition:(SSDownload *)download;
1415
- (void)downloadQueue:(CKDownloadQueue *)downloadQueue changedWithRemoval:(SSDownload *)download;
1516
- (void)downloadQueue:(CKDownloadQueue *)downloadQueue statusChangedForDownload:(SSDownload *)download;
1617

18+
@optional
19+
1720
@end
21+
22+
NS_ASSUME_NONNULL_END

Sources/PrivateFrameworks/CommerceKit/CKPurchaseController.h

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,37 @@
11
//
2-
// Generated by class-dump 3.5 (64 bit).
2+
// Generated by https://github.com/blacktop/ipsw (Version: 3.1.603, BuildCommit: Homebrew)
33
//
4-
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
4+
// - LC_BUILD_VERSION: Platform: macOS, MinOS: 15.5, SDK: 15.5, Tool: ld (1167.3)
5+
// - LC_SOURCE_VERSION: 715.5.1.0.0
56
//
67

7-
#import "CKServiceInterface.h"
8-
9-
@class NSArray, NSMutableArray, NSNumber;
10-
118
NS_ASSUME_NONNULL_BEGIN
129

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

15-
@interface CKPurchaseController : CKServiceInterface
16-
{
17-
NSMutableArray *_purchases;
18-
NSMutableArray *_rejectedPurchases;
12+
@interface CKPurchaseController : CKServiceInterface {
1913
NSArray *_adoptionEligibleItems;
20-
NSNumber *_adoptionServerStatus;
2114
NSNumber *_adoptionErrorNumber;
22-
23-
// CDUnknownBlockType _dialogHandler;
15+
NSNumber *_adoptionServerStatus;
16+
NSMutableArray *_purchases;
17+
NSMutableArray *_rejectedPurchases;
2418
}
2519

26-
+ (void)setNeedsSilentMachineAuthorization:(BOOL)arg1;
27-
20+
+ (void)setNeedsSilentMachineAuthorization:(BOOL)needsSilentMachineAuthorization;
2821
+ (instancetype)sharedPurchaseController;
2922

30-
//@property(copy) CDUnknownBlockType dialogHandler; // @synthesize dialogHandler=_dialogHandler;
31-
//- (void).cxx_destruct;
23+
@property(copy) UnknownBlock *dialogHandler;
3224

33-
- (BOOL)adoptionCompletedForBundleID:(id)arg1;
3425
- (void)_performVPPReceiptRenewal;
26+
- (BOOL)adoptionCompletedForBundleID:(NSString *)bundleID;
27+
- (void)cancelPurchaseWithProductID:(NSNumber *)productID;
3528
- (void)checkServerDownloadQueue;
36-
- (id)purchaseInProgressForProductID:(id)arg1;
37-
- (id)purchasesInProgress;
38-
- (void)cancelPurchaseWithProductID:(id)arg1;
39-
- (void)resumeDownloadForPurchasedProductID:(id)arg1;
40-
41-
//- (void)startPurchases:(id)arg1 shouldStartDownloads:(BOOL)arg2 eventHandler:(CDUnknownBlockType)arg3;
42-
//- (void)startPurchases:(id)arg1 withOptions:(unsigned long long)arg2 completionHandler:(CDUnknownBlockType)arg3;
43-
44-
- (void)performPurchase:(SSPurchase *)purchase withOptions:(unsigned long long)arg2 completionHandler:(SSPurchaseCompletion _Nullable)completionHandler;
29+
- (void)performPurchase:(SSPurchase *)purchase withOptions:(unsigned long long)options completionHandler:(nullable SSPurchaseCompletion)handler;
30+
- (SSPurchase *)purchaseInProgressForProductID:(NSNumber *)productID;
31+
- (NSArray<SSPurchase *> *)purchasesInProgress;
32+
- (void)resumeDownloadForPurchasedProductID:(NSNumber *)productID;
33+
- (void)startPurchases:(NSArray<SSPurchase *> *)purchases shouldStartDownloads:(BOOL)shouldStartDownloads eventHandler:(UnknownBlock *)handler;
34+
- (void)startPurchases:(NSArray<SSPurchase *> *)purchases withOptions:(unsigned long long)options completionHandler:(UnknownBlock *)handler;
4535

4636
@end
4737

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
//
2-
// Generated by class-dump 3.5 (64 bit).
2+
// Generated by https://github.com/blacktop/ipsw (Version: 3.1.603, BuildCommit: Homebrew)
33
//
4-
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
4+
// - LC_BUILD_VERSION: Platform: macOS, MinOS: 15.5, SDK: 15.5, Tool: ld (1167.3)
5+
// - LC_SOURCE_VERSION: 715.5.1.0.0
56
//
67

7-
#import "ISServiceProxy.h"
8+
NS_ASSUME_NONNULL_BEGIN
89

910
@interface CKServiceInterface : ISServiceProxy
10-
{
11-
}
1211

1312
@end
13+
14+
NS_ASSUME_NONNULL_END
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//
2+
// CommerceKit.h
3+
// mas
4+
//
5+
// Copyright © 2025 mas-cli. All rights reserved.
6+
//
7+
8+
@import StoreFoundation;
9+
10+
@class CKDownloadQueueClient;
11+
12+
@protocol CKDownloadQueueObserver;
13+
14+
#import <CKServiceInterface.h>
15+
#import <CKDownloadDirectory.h>
16+
#import <CKDownloadQueue.h>
17+
#import <CKDownloadQueueObserver-Protocol.h>
18+
#import <CKPurchaseController.h>
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
module CommerceKit {
2-
header "CKDownloadDirectory.h"
3-
header "CKDownloadQueueObserver.h"
4-
header "CKPurchaseController.h"
5-
1+
module CommerceKit [no_undeclared_includes] {
2+
requires macos, objc
3+
use StoreFoundation
4+
private header "CommerceKit.h"
65
export *
76
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
//
2+
// Generated by https://github.com/blacktop/ipsw (Version: 3.1.603, BuildCommit: Homebrew)
3+
//
4+
// - LC_BUILD_VERSION: Platform: macOS, MinOS: 15.5, SDK: 15.5, Tool: ld (1167.3)
5+
// - LC_SOURCE_VERSION: 715.5.1.0.0
6+
//
7+
8+
NS_ASSUME_NONNULL_BEGIN
9+
10+
@protocol ISAccountService <ISServiceRemoteObject>
11+
12+
@required
13+
14+
- (void)accountWithAppleID:(NSString *)appleID replyBlock:(void (^)(ISStoreAccount *))block;
15+
- (void)accountWithDSID:(NSNumber *)dsID replyBlock:(void (^)(ISStoreAccount *))block;
16+
- (void)addAccount:(ISStoreAccount *)account;
17+
- (void)addAccountStoreObserver:(id<ISAccountStoreObserver>)observer;
18+
- (void)addAccountWithAuthenticationResponse:(ISAuthenticationResponse *)authenticationResponse makePrimary:(BOOL)makePrimary replyBlock:(void (^)(ISStoreAccount *))block NS_DEPRECATED_MAC(10_9, 12);
19+
- (void)addURLBagObserver:(id<ISURLBagObserver>)observer;
20+
- (void)authIsExpiredWithReplyBlock:(void (^)(BOOL))block;
21+
- (void)dictionaryForDSID:(NSNumber *)dsID withReplyBlock:(void (^)(NSDictionary *))block NS_AVAILABLE_MAC(13);
22+
- (void)dictionaryWithReplyBlock:(void (^)(NSDictionary *))block;
23+
- (void)generateTouchIDHeadersForDSID:(NSNumber *)dsID challenge:(NSString *)challenge caller:(id)caller replyBlock:(void (^)(NSDictionary *, NSError *))block;
24+
- (void)getTouchIDPreferenceWithReplyBlock:(void (^)(BOOL, ISStoreAccount *, NSError *))block;
25+
- (void)httpHeadersForURL:(NSURL *)url forDSID:(NSNumber *)dsID includeADIHeaders:(BOOL)includeADIHeaders withReplyBlock:(void (^)(NSDictionary *))block;
26+
- (void)iCloudDSIDReplyBlock:(void (^)(NSString *))block;
27+
- (void)invalidateAllBags;
28+
- (void)isValidWithReplyBlock:(void (^)(BOOL))block;
29+
- (void)loadURLBagWithType:(unsigned long long)type replyBlock:(void (^)(BOOL, BOOL, NSError *))block;
30+
- (void)needsSilentADIActionForURL:(NSURL *)url dsID:(NSNumber *)dsID withReplyBlock:(void (^)(BOOL))block NS_AVAILABLE_MAC(13);
31+
- (void)needsSilentADIActionForURL:(NSURL *)url withReplyBlock:(void (^)(BOOL))block;
32+
- (void)parseCreditStringForProtocol:(NSDictionary *)dictionary NS_DEPRECATED_MAC(10_9, 12);
33+
- (void)primaryAccountWithReplyBlock:(void (^)(ISStoreAccount *))block;
34+
- (void)processURLResponse:(NSURLResponse *)urlResponse forRequest:(NSURLRequest *)request;
35+
- (void)processURLResponse:(NSURLResponse *)urlResponse forRequest:(NSURLRequest *)request dsID:(NSNumber *)dsID NS_AVAILABLE_MAC(13);
36+
- (void)recommendedAppleIDForAccountSignIn:(void (^)(NSString *))accountSignIn NS_DEPRECATED_MAC(10_9, 12);
37+
- (void)regexWithKey:(NSString *)key dsID:(NSNumber *)dsID matchesString:(NSString *)string replyBlock:(void (^)(BOOL))block NS_AVAILABLE_MAC(13);
38+
- (void)regexWithKey:(NSString *)key matchesString:(NSString *)string replyBlock:(void (^)(BOOL))block;
39+
- (void)removeAccountStoreObserver:(id<ISAccountStoreObserver>)observer;
40+
- (void)removeURLBagObserver:(id<ISURLBagObserver>)observer;
41+
- (void)retailStoreDemoModeReplyBlock:(void (^)(BOOL, NSString *, NSString *, BOOL))block;
42+
- (void)setStoreFrontID:(NSString *)storefrontID;
43+
- (void)setTouchIDState:(long long)touchIDState forDSID:(NSNumber *)dsID replyBlock:(void (^)(BOOL, NSError *))block;
44+
- (void)shouldSendGUIDWithRequestForURL:(NSURL *)url withReplyBlock:(void (^)(BOOL))block;
45+
- (void)signInWithContext:(ISAuthenticationContext *)context replyBlock:(void (^)(BOOL, ISStoreAccount * _Nullable, NSError * _Nullable))block NS_DEPRECATED_MAC(10_9, 10_12);
46+
- (void)signOut;
47+
- (void)storeFrontWithReplyBlock:(void (^)(NSString *))block;
48+
- (void)updateTouchIDSettingsForDSID:(NSNumber *)dsID replyBlock:(void (^)(BOOL, NSError *))block;
49+
- (void)urlIsTrustedByURLBag:(NSURL *)urlBag dsID:(NSNumber *)dsID withReplyBlock:(void (^)(BOOL))block NS_AVAILABLE_MAC(13);
50+
- (void)urlIsTrustedByURLBag:(NSURL *)urlBag withReplyBlock:(void (^)(BOOL))block;
51+
- (void)valueForURLBagKey:(NSString *)bagKey dsID:(NSNumber *)dsID withReplyBlock:(void (^)(NSURL *))block NS_AVAILABLE_MAC(13);
52+
- (void)valueForURLBagKey:(NSString *)bagKey withReplyBlock:(void (^)(NSURL *))block;
53+
54+
@optional
55+
56+
@end
57+
58+
NS_ASSUME_NONNULL_END

Sources/PrivateFrameworks/StoreFoundation/ISAccountService.h

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)