1 |
efrain |
1 |
/*
|
|
|
2 |
* Copyright 2020 Google LLC
|
|
|
3 |
*
|
|
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
5 |
* you may not use this file except in compliance with the License.
|
|
|
6 |
* You may obtain a copy of the License at
|
|
|
7 |
*
|
|
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
9 |
*
|
|
|
10 |
* Unless required by applicable law or agreed to in writing, software
|
|
|
11 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
13 |
* See the License for the specific language governing permissions and
|
|
|
14 |
* limitations under the License.
|
|
|
15 |
*/
|
|
|
16 |
|
|
|
17 |
#import <Foundation/Foundation.h>
|
|
|
18 |
|
|
|
19 |
#include "Crashlytics/Protogen/nanopb/crashlytics.nanopb.h"
|
|
|
20 |
|
|
|
21 |
#import "Crashlytics/Crashlytics/Models/FIRCLSInstallIdentifierModel.h"
|
|
|
22 |
|
|
|
23 |
#import <GoogleDataTransport/GoogleDataTransport.h>
|
|
|
24 |
|
|
|
25 |
/// This class is responsible for reading the persisted crash reports from disk and converting them
|
|
|
26 |
/// the information into the nanopb model to be used with GoogleDataTransport
|
|
|
27 |
@interface FIRCLSReportAdapter : NSObject <GDTCOREventDataObject>
|
|
|
28 |
|
|
|
29 |
- (instancetype)init NS_UNAVAILABLE;
|
|
|
30 |
|
|
|
31 |
/// Initializer
|
|
|
32 |
/// @param folderPath Path where the persisted crash files reside
|
|
|
33 |
/// @param googleAppID ID for the app passed in from Firebase Core
|
|
|
34 |
/// @param installIDModel for pulling the Crashlytics Installation UUID
|
|
|
35 |
- (instancetype)initWithPath:(NSString *)folderPath
|
|
|
36 |
googleAppId:(NSString *)googleAppID
|
|
|
37 |
installIDModel:(FIRCLSInstallIdentifierModel *)installIDModel;
|
|
|
38 |
@end
|