FPRGDTLogger_Private.h 1.8 KB

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