2 #import "keychain/ckks/CKKSCloudKitClassDependencies.h"
4 @implementation CKKSCloudKitClassDependencies
6 + (CKKSCloudKitClassDependencies*) forLiveCloudKit
8 return [[CKKSCloudKitClassDependencies alloc] initWithFetchRecordZoneChangesOperationClass:[CKFetchRecordZoneChangesOperation class]
9 fetchRecordsOperationClass:[CKFetchRecordsOperation class]
10 queryOperationClass:[CKQueryOperation class]
11 modifySubscriptionsOperationClass:[CKModifySubscriptionsOperation class]
12 modifyRecordZonesOperationClass:[CKModifyRecordZonesOperation class]
13 apsConnectionClass:[APSConnection class]
14 nsnotificationCenterClass:[NSNotificationCenter class]
15 nsdistributednotificationCenterClass:[NSDistributedNotificationCenter class]
16 notifierClass:[CKKSNotifyPostNotifier class]];
19 - (instancetype)initWithFetchRecordZoneChangesOperationClass:(Class<CKKSFetchRecordZoneChangesOperation>)fetchRecordZoneChangesOperationClass
20 fetchRecordsOperationClass:(Class<CKKSFetchRecordsOperation>)fetchRecordsOperationClass
21 queryOperationClass:(Class<CKKSQueryOperation>)queryOperationClass
22 modifySubscriptionsOperationClass:(Class<CKKSModifySubscriptionsOperation>)modifySubscriptionsOperationClass
23 modifyRecordZonesOperationClass:(Class<CKKSModifyRecordZonesOperation>)modifyRecordZonesOperationClass
24 apsConnectionClass:(Class<OctagonAPSConnection>)apsConnectionClass
25 nsnotificationCenterClass:(Class<CKKSNSNotificationCenter>)nsnotificationCenterClass
26 nsdistributednotificationCenterClass:(Class<CKKSNSDistributedNotificationCenter>)nsdistributednotificationCenterClass
27 notifierClass:(Class<CKKSNotifier>)notifierClass
29 if(self = [super init]) {
30 _fetchRecordZoneChangesOperationClass = fetchRecordZoneChangesOperationClass;
31 _fetchRecordsOperationClass = fetchRecordsOperationClass;
32 _queryOperationClass = queryOperationClass;
33 _modifySubscriptionsOperationClass = modifySubscriptionsOperationClass;
34 _modifyRecordZonesOperationClass = modifyRecordZonesOperationClass;
35 _apsConnectionClass = apsConnectionClass;
36 _nsnotificationCenterClass = nsnotificationCenterClass;
37 _nsdistributednotificationCenterClass = nsdistributednotificationCenterClass;
38 _notifierClass = notifierClass;