FIRCoreDiagnosticsData.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * Copyright 2019 Google
  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. #import <Foundation/Foundation.h>
  17. NS_ASSUME_NONNULL_BEGIN
  18. /** If present, is a BOOL wrapped in an NSNumber. */
  19. static NSString *const kFIRCDIsDataCollectionDefaultEnabledKey =
  20. @"FIRCDIsDataCollectionDefaultEnabledKey";
  21. /** If present, is an int32_t wrapped in an NSNumber. */
  22. static NSString *const kFIRCDConfigurationTypeKey = @"FIRCDConfigurationTypeKey";
  23. /** If present, is an NSString. */
  24. static NSString *const kFIRCDSdkNameKey = @"FIRCDSdkNameKey";
  25. /** If present, is an NSString. */
  26. static NSString *const kFIRCDSdkVersionKey = @"FIRCDSdkVersionKey";
  27. /** If present, is an int32_t wrapped in an NSNumber. */
  28. static NSString *const kFIRCDllAppsCountKey = @"FIRCDllAppsCountKey";
  29. /** If present, is an NSString. */
  30. static NSString *const kFIRCDGoogleAppIDKey = @"FIRCDGoogleAppIDKey";
  31. /** If present, is an NSString. */
  32. static NSString *const kFIRCDBundleIDKey = @"FIRCDBundleID";
  33. /** If present, is a BOOL wrapped in an NSNumber. */
  34. static NSString *const kFIRCDUsingOptionsFromDefaultPlistKey =
  35. @"FIRCDUsingOptionsFromDefaultPlistKey";
  36. /** If present, is an NSString. */
  37. static NSString *const kFIRCDLibraryVersionIDKey = @"FIRCDLibraryVersionIDKey";
  38. /** If present, is an NSString. */
  39. static NSString *const kFIRCDFirebaseUserAgentKey = @"FIRCDFirebaseUserAgentKey";
  40. /** Defines the interface of a data object needed to log diagnostics data. */
  41. @protocol FIRCoreDiagnosticsData <NSObject>
  42. @required
  43. /** A dictionary containing data (non-exhaustive) to be logged in diagnostics. */
  44. @property(nonatomic) NSDictionary<NSString *, id> *diagnosticObjects;
  45. @end
  46. NS_ASSUME_NONNULL_END