1 |
efrain |
1 |
// Copyright 2020 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 |
#import "FirebasePerformance/Sources/Loggers/FPRGDTLogger.h"
|
|
|
18 |
|
|
|
19 |
#import <GoogleDataTransport/GoogleDataTransport.h>
|
|
|
20 |
#import "FirebasePerformance/Sources/Configurations/FPRConfigurations.h"
|
|
|
21 |
|
|
|
22 |
/** FPRGDTLogger private definition used for unit testing. */
|
|
|
23 |
@interface FPRGDTLogger ()
|
|
|
24 |
|
|
|
25 |
/** Log source for which the logger is being used. */
|
|
|
26 |
@property(nonatomic, readwrite) NSInteger logSource;
|
|
|
27 |
|
|
|
28 |
/** Google Data Transport instance for FLL. */
|
|
|
29 |
@property(nonatomic, readwrite) GDTCORTransport *gdtfllTransport;
|
|
|
30 |
|
|
|
31 |
/** Serial queue used for logging events to the GDT Transport layer. */
|
|
|
32 |
@property(nonatomic, readonly) dispatch_queue_t queue;
|
|
|
33 |
|
|
|
34 |
/** Boolean to see if the App is running on simulator or actual device.
|
|
|
35 |
* isSimulator is set to YES if environment variable contains SIMULATOR_UDID, NO otherwise.*/
|
|
|
36 |
@property(nonatomic, readwrite) BOOL isSimulator;
|
|
|
37 |
|
|
|
38 |
/** Boolean to see if the App is built in debug mode or release mode.
|
|
|
39 |
* isDebugBuild is set to YES if !NDEBUG, NO otherwise.*/
|
|
|
40 |
@property(nonatomic, readwrite) FPRConfigurations *configurations;
|
|
|
41 |
|
|
|
42 |
/** Seed value decided based on installation ID to determine if the event should be sent to FLL.
|
|
|
43 |
*/
|
|
|
44 |
@property(nonatomic, readwrite) float instanceSeed;
|
|
|
45 |
|
|
|
46 |
@end
|