1 |
efrain |
1 |
// Copyright 2021 Google LLC
|
|
|
2 |
//
|
|
|
3 |
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
4 |
// you may not use this file except in compliance with the License.
|
|
|
5 |
// You may obtain a copy of the License at
|
|
|
6 |
//
|
|
|
7 |
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
8 |
//
|
|
|
9 |
// Unless required by applicable law or agreed to in writing, software
|
|
|
10 |
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
12 |
// See the License for the specific language governing permissions and
|
|
|
13 |
// limitations under the License.
|
|
|
14 |
|
|
|
15 |
#import <Foundation/Foundation.h>
|
|
|
16 |
|
|
|
17 |
NS_ASSUME_NONNULL_BEGIN
|
|
|
18 |
|
|
|
19 |
@class FIRCLSFileManager;
|
|
|
20 |
@class FIRInstallations;
|
|
|
21 |
@class FIRCLSDataCollectionArbiter;
|
|
|
22 |
@class FIRCLSApplicationIdentifierModel;
|
|
|
23 |
@class FIRCLSInstallIdentifierModel;
|
|
|
24 |
@class FIRCLSExecutionIdentifierModel;
|
|
|
25 |
@class FIRCLSOnDemandModel;
|
|
|
26 |
@class FIRCLSSettings;
|
|
|
27 |
@class FIRCLSLaunchMarkerModel;
|
|
|
28 |
@class GDTCORTransport;
|
|
|
29 |
@protocol FIRAnalyticsInterop;
|
|
|
30 |
|
|
|
31 |
/*
|
|
|
32 |
* FIRCLSManagerData's purpose is to simplify the adding and removing of
|
|
|
33 |
* dependencies from each of the Manager classes so that it's easier
|
|
|
34 |
* to inject mock classes during testing. A lot of the Manager classes
|
|
|
35 |
* share these dependencies, but don't use all of them.
|
|
|
36 |
*
|
|
|
37 |
* If you plan on adding interdependencies between Managers, do not add a pointer
|
|
|
38 |
* to the dependency here. Instead add them as a new value to the constructor of
|
|
|
39 |
* the Manager, and construct them in FirebaseCrashlytics. This data structure should
|
|
|
40 |
* be for Models and other SDKs / Interops Crashlytics depends on.
|
|
|
41 |
*/
|
|
|
42 |
@interface FIRCLSManagerData : NSObject
|
|
|
43 |
|
|
|
44 |
- (instancetype)initWithGoogleAppID:(NSString *)googleAppID
|
|
|
45 |
googleTransport:(GDTCORTransport *)googleTransport
|
|
|
46 |
installations:(FIRInstallations *)installations
|
|
|
47 |
analytics:(nullable id<FIRAnalyticsInterop>)analytics
|
|
|
48 |
fileManager:(FIRCLSFileManager *)fileManager
|
|
|
49 |
dataArbiter:(FIRCLSDataCollectionArbiter *)dataArbiter
|
|
|
50 |
settings:(FIRCLSSettings *)settings
|
|
|
51 |
onDemandModel:(FIRCLSOnDemandModel *)onDemandModel NS_DESIGNATED_INITIALIZER;
|
|
|
52 |
|
|
|
53 |
- (instancetype)init NS_UNAVAILABLE;
|
|
|
54 |
+ (instancetype)new NS_UNAVAILABLE;
|
|
|
55 |
|
|
|
56 |
@property(nonatomic, readonly) NSString *googleAppID;
|
|
|
57 |
|
|
|
58 |
@property(nonatomic, strong) GDTCORTransport *googleTransport;
|
|
|
59 |
|
|
|
60 |
@property(nonatomic, strong) FIRInstallations *installations;
|
|
|
61 |
|
|
|
62 |
@property(nonatomic, strong) id<FIRAnalyticsInterop> analytics;
|
|
|
63 |
|
|
|
64 |
@property(nonatomic, strong) FIRCLSFileManager *fileManager;
|
|
|
65 |
|
|
|
66 |
@property(nonatomic, strong) FIRCLSDataCollectionArbiter *dataArbiter;
|
|
|
67 |
|
|
|
68 |
// Uniquely identifies a build / binary of the app
|
|
|
69 |
@property(nonatomic, strong) FIRCLSApplicationIdentifierModel *appIDModel;
|
|
|
70 |
|
|
|
71 |
// Uniquely identifies an install of the app
|
|
|
72 |
@property(nonatomic, strong) FIRCLSInstallIdentifierModel *installIDModel;
|
|
|
73 |
|
|
|
74 |
// Uniquely identifies a run of the app
|
|
|
75 |
@property(nonatomic, strong) FIRCLSExecutionIdentifierModel *executionIDModel;
|
|
|
76 |
|
|
|
77 |
// Handles storing and uploading of on-demand events
|
|
|
78 |
@property(nonatomic, readonly) FIRCLSOnDemandModel *onDemandModel;
|
|
|
79 |
|
|
|
80 |
// Settings fetched from the server
|
|
|
81 |
@property(nonatomic, strong) FIRCLSSettings *settings;
|
|
|
82 |
|
|
|
83 |
// These queues function together as a single startup queue
|
|
|
84 |
@property(nonatomic, strong) NSOperationQueue *operationQueue;
|
|
|
85 |
@property(nonatomic, strong) dispatch_queue_t dispatchQueue;
|
|
|
86 |
|
|
|
87 |
@end
|
|
|
88 |
|
|
|
89 |
NS_ASSUME_NONNULL_END
|