FIRCoreDiagnosticsData.h 2.0 KB

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