Firebase.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. // Copyright 2019 Google
  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 <FirebaseCore/FirebaseCore.h>
  15. #if !defined(__has_include)
  16. #error "Firebase.h won't import anything if your compiler doesn't support __has_include. Please \
  17. import the headers individually."
  18. #else
  19. #if __has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
  20. #import <FirebaseAnalytics/FirebaseAnalytics.h>
  21. #endif
  22. #if __has_include(<FirebaseAppDistribution/FirebaseAppDistribution.h>)
  23. #import <FirebaseAppDistribution/FirebaseAppDistribution.h>
  24. #endif
  25. #if __has_include(<FirebaseAuth/FirebaseAuth.h>)
  26. #import <FirebaseAuth/FirebaseAuth.h>
  27. #endif
  28. #if __has_include(<FirebaseCrashlytics/FirebaseCrashlytics.h>)
  29. #import <FirebaseCrashlytics/FirebaseCrashlytics.h>
  30. #endif
  31. #if __has_include(<FirebaseDatabase/FirebaseDatabase.h>)
  32. #import <FirebaseDatabase/FirebaseDatabase.h>
  33. #endif
  34. #if __has_include(<FirebaseDynamicLinks/FirebaseDynamicLinks.h>)
  35. #import <FirebaseDynamicLinks/FirebaseDynamicLinks.h>
  36. #if TARGET_OS_IOS && !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
  37. #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  38. #warning "FirebaseAnalytics.framework is not included in your target. Please add the \
  39. FirebaseAnalytics dependency to your project to ensure Firebase Dynamic Links works as intended."
  40. #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  41. #endif
  42. #endif
  43. #if __has_include(<FirebaseFirestore/FirebaseFirestore.h>)
  44. #import <FirebaseFirestore/FirebaseFirestore.h>
  45. #endif
  46. #if __has_include(<FirebaseFunctions/FirebaseFunctions.h>)
  47. #import <FirebaseFunctions/FirebaseFunctions.h>
  48. #endif
  49. #if __has_include(<FirebaseInAppMessaging/FirebaseInAppMessaging.h>)
  50. #import <FirebaseInAppMessaging/FirebaseInAppMessaging.h>
  51. #if TARGET_OS_IOS && !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
  52. #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  53. #warning "FirebaseAnalytics.framework is not included in your target. Please add the \
  54. FirebaseAnalytics dependency to your project to ensure Firebase In App Messaging works as intended."
  55. #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  56. #endif
  57. #endif
  58. #if __has_include(<FirebaseInstallations/FirebaseInstallations.h>)
  59. #import <FirebaseInstallations/FirebaseInstallations.h>
  60. #endif
  61. #if __has_include(<FirebaseInstanceID/FirebaseInstanceID.h>)
  62. #import <FirebaseInstanceID/FirebaseInstanceID.h>
  63. #endif
  64. #if __has_include(<FirebaseMessaging/FirebaseMessaging.h>)
  65. #import <FirebaseMessaging/FirebaseMessaging.h>
  66. #if TARGET_OS_IOS && !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
  67. #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  68. #warning "FirebaseAnalytics.framework is not included in your target. Please add the \
  69. FirebaseAnalytics dependency to your project to ensure Messaging works as intended."
  70. #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  71. #endif
  72. #endif
  73. #if __has_include(<FirebaseMLCommon/FirebaseMLCommon.h>)
  74. #import <FirebaseMLCommon/FirebaseMLCommon.h>
  75. #endif
  76. #if __has_include(<FirebaseMLModelInterpreter/FirebaseMLModelInterpreter.h>)
  77. #import <FirebaseMLModelInterpreter/FirebaseMLModelInterpreter.h>
  78. #endif
  79. #if __has_include(<FirebaseMLVision/FirebaseMLVision.h>)
  80. #import <FirebaseMLVision/FirebaseMLVision.h>
  81. #endif
  82. #if __has_include(<FirebasePerformance/FirebasePerformance.h>)
  83. #import <FirebasePerformance/FirebasePerformance.h>
  84. #endif
  85. #if __has_include(<FirebaseRemoteConfig/FirebaseRemoteConfig.h>)
  86. #import <FirebaseRemoteConfig/FirebaseRemoteConfig.h>
  87. #if TARGET_OS_IOS && !TARGET_OS_CATALYST && !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
  88. #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  89. #warning "FirebaseAnalytics.framework is not included in your target. Please add the \
  90. FirebaseAnalytics dependency to your project to ensure Firebase Remote Config works as intended."
  91. #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  92. #endif
  93. #endif
  94. #if __has_include(<FirebaseStorage/FirebaseStorage.h>)
  95. #import <FirebaseStorage/FirebaseStorage.h>
  96. #endif
  97. #if __has_include(<GoogleMobileAds/GoogleMobileAds.h>)
  98. #import <GoogleMobileAds/GoogleMobileAds.h>
  99. #endif
  100. #if __has_include(<Fabric/Fabric.h>)
  101. #import <Fabric/Fabric.h>
  102. #endif
  103. #if __has_include(<Crashlytics/Crashlytics.h>)
  104. #import <Crashlytics/Crashlytics.h>
  105. #endif
  106. #endif // defined(__has_include)