1 |
efrain |
1 |
// Copyright 2022 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 |
#ifndef FIRCLSOnDemandModel_Private_h
|
|
|
16 |
#define FIRCLSOnDemandModel_Private_h
|
|
|
17 |
|
|
|
18 |
#import <Foundation/Foundation.h>
|
|
|
19 |
|
|
|
20 |
#import "Crashlytics/Crashlytics/Models/FIRCLSOnDemandModel.h"
|
|
|
21 |
#import "Crashlytics/Crashlytics/Models/FIRCLSSettings.h"
|
|
|
22 |
#import "Crashlytics/Crashlytics/Private/FIRCLSExistingReportManager_Private.h"
|
|
|
23 |
#import "Crashlytics/Crashlytics/Private/FIRExceptionModel_Private.h"
|
|
|
24 |
|
|
|
25 |
@interface FIRCLSOnDemandModel (Private)
|
|
|
26 |
|
|
|
27 |
- (instancetype)initWithFIRCLSSettings:(FIRCLSSettings *)settings;
|
|
|
28 |
|
|
|
29 |
- (BOOL)recordOnDemandExceptionIfQuota:(FIRExceptionModel *)exceptionModel
|
|
|
30 |
withDataCollectionEnabled:(BOOL)dataCollectionEnabled
|
|
|
31 |
usingExistingReportManager:(FIRCLSExistingReportManager *)existingReportManager;
|
|
|
32 |
|
|
|
33 |
- (int)getQueuedOperationsCount;
|
|
|
34 |
- (void)setQueuedOperationsCount:(int)count;
|
|
|
35 |
|
|
|
36 |
// When data collection is off, stores active paths that have been recorded but not dispatched for
|
|
|
37 |
// upload. Kept sorted (newest at front) so that we can limit on-device reports to the newest
|
|
|
38 |
// `FIRCLSMaxUnsentReports` reports.
|
|
|
39 |
@property(nonatomic, strong) NSMutableArray *storedActiveReportPaths;
|
|
|
40 |
|
|
|
41 |
@property(nonatomic, readonly) int recordedOnDemandExceptionCount;
|
|
|
42 |
@property(nonatomic, readonly) int droppedOnDemandExceptionCount;
|
|
|
43 |
@property(nonatomic, readonly) int queuedOperationsCount;
|
|
|
44 |
|
|
|
45 |
@property(nonatomic, strong) NSOperationQueue *operationQueue;
|
|
|
46 |
|
|
|
47 |
@end
|
|
|
48 |
|
|
|
49 |
#endif /* FIRCLSOnDemandModel_Private_h */
|