Firebase.h 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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. // The module qualified imports are for CocoaPods and the simple file names
  15. // for Swift Package Manager.
  16. #if !defined(__has_include)
  17. #error "Firebase.h won't import anything if your compiler doesn't support __has_include. Please \
  18. import the headers individually."
  19. #else
  20. #if __has_include(<FirebaseCore/FirebaseCore.h>)
  21. #import <FirebaseCore/FirebaseCore.h>
  22. #elif __has_include("FirebaseCore.h")
  23. #import "FirebaseCore.h"
  24. #endif
  25. #if __has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
  26. #import <FirebaseAnalytics/FirebaseAnalytics.h>
  27. #endif
  28. #if __has_include(<FirebaseAuth/FirebaseAuth.h>)
  29. #import <FirebaseAuth/FirebaseAuth.h>
  30. #elif __has_include("FirebaseAuth.h")
  31. #import "FirebaseAuth.h"
  32. #endif
  33. #if __has_include(<FirebaseAppDistribution/FirebaseAppDistribution.h>)
  34. #import <FirebaseAppDistribution/FirebaseAppDistribution.h>
  35. #elif __has_include("FirebaseAppDistribution.h")
  36. #import "FirebaseAppDistribution.h"
  37. #endif
  38. #if __has_include(<FirebaseCrashlytics/FirebaseCrashlytics.h>)
  39. #import <FirebaseCrashlytics/FirebaseCrashlytics.h>
  40. #elif __has_include("FirebaseCrashlytics.h")
  41. #import "FirebaseCrashlytics.h"
  42. #endif
  43. #if __has_include(<FirebaseDatabase/FirebaseDatabase.h>)
  44. #import <FirebaseDatabase/FirebaseDatabase.h>
  45. #elif __has_include("FirebaseDatabase.h")
  46. #import "FirebaseDatabase.h"
  47. #endif
  48. #if __has_include(<FirebaseDynamicLinks/FirebaseDynamicLinks.h>)
  49. #import <FirebaseDynamicLinks/FirebaseDynamicLinks.h>
  50. #if !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
  51. #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  52. #warning "FirebaseAnalytics.framework is not included in your target. Please add \
  53. `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
  54. Firebase Dynamic Links works as intended."
  55. #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  56. #endif
  57. #elif __has_include("FirebaseDynamicLinks.h")
  58. #import "FirebaseDynamicLinks.h"
  59. #endif
  60. #if __has_include(<FirebaseFirestore/FirebaseFirestore.h>)
  61. #import <FirebaseFirestore/FirebaseFirestore.h>
  62. #elif __has_include("FirebaseFirestore.h")
  63. #import "FirebaseFirestore.h"
  64. #endif
  65. #if __has_include(<FirebaseFunctions/FirebaseFunctions.h>)
  66. #import <FirebaseFunctions/FirebaseFunctions.h>
  67. #elif __has_include("FirebaseFunctions.h")
  68. #import "FirebaseFunctions.h"
  69. #endif
  70. #if __has_include(<FirebaseInAppMessaging/FirebaseInAppMessaging.h>)
  71. #import <FirebaseInAppMessaging/FirebaseInAppMessaging.h>
  72. #if !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
  73. #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  74. #warning "FirebaseAnalytics.framework is not included in your target. Please add \
  75. `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
  76. Firebase In App Messaging works as intended."
  77. #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  78. #endif
  79. #elif __has_include("FirebaseInAppMessaging.h")
  80. #import "FirebaseInAppMessaging.h"
  81. #endif
  82. #if __has_include(<FirebaseInstanceID/FirebaseInstanceID.h>)
  83. #import <FirebaseInstanceID/FirebaseInstanceID.h>
  84. #endif
  85. #if __has_include(<FirebaseMessaging/FirebaseMessaging.h>)
  86. #import <FirebaseMessaging/FirebaseMessaging.h>
  87. #if !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
  88. #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  89. #warning "FirebaseAnalytics.framework is not included in your target. Please add \
  90. `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
  91. Firebase Messaging works as intended."
  92. #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  93. #endif
  94. #elif __has_include("FirebaseMessaging.h")
  95. #import "FirebaseMessaging.h"
  96. #endif
  97. #if __has_include(<FirebaseMLCommon/FirebaseMLCommon.h>)
  98. #import <FirebaseMLCommon/FirebaseMLCommon.h>
  99. #endif
  100. #if __has_include(<FirebaseMLModelInterpreter/FirebaseMLModelInterpreter.h>)
  101. #import <FirebaseMLModelInterpreter/FirebaseMLModelInterpreter.h>
  102. #endif
  103. #if __has_include(<FirebaseMLNLLanguageID/FirebaseMLNLLanguageID.h>)
  104. #import <FirebaseMLNLLanguageID/FirebaseMLNLLanguageID.h>
  105. #endif
  106. #if __has_include(<FirebaseMLNLSmartReply/FirebaseMLNLSmartReply.h>)
  107. #import <FirebaseMLNLSmartReply/FirebaseMLNLSmartReply.h>
  108. #endif
  109. #if __has_include(<FirebaseMLNLTranslate/FirebaseMLNLTranslate.h>)
  110. #import <FirebaseMLNLTranslate/FirebaseMLNLTranslate.h>
  111. #endif
  112. #if __has_include(<FirebaseMLNaturalLanguage/FirebaseMLNaturalLanguage.h>)
  113. #import <FirebaseMLNaturalLanguage/FirebaseMLNaturalLanguage.h>
  114. #endif
  115. #if __has_include(<FirebaseMLVision/FirebaseMLVision.h>)
  116. #import <FirebaseMLVision/FirebaseMLVision.h>
  117. #endif
  118. #if __has_include(<FirebaseMLVisionAutoML/FirebaseMLVisionAutoML.h>)
  119. #import <FirebaseMLVisionAutoML/FirebaseMLVisionAutoML.h>
  120. #endif
  121. #if __has_include(<FirebaseMLVisionBarcodeModel/FirebaseMLVisionBarcodeModel.h>)
  122. #import <FirebaseMLVisionBarcodeModel/FirebaseMLVisionBarcodeModel.h>
  123. #endif
  124. #if __has_include(<FirebaseMLVisionFaceModel/FirebaseMLVisionFaceModel.h>)
  125. #import <FirebaseMLVisionFaceModel/FirebaseMLVisionFaceModel.h>
  126. #endif
  127. #if __has_include(<FirebaseMLVisionLabelModel/FirebaseMLVisionLabelModel.h>)
  128. #import <FirebaseMLVisionLabelModel/FirebaseMLVisionLabelModel.h>
  129. #endif
  130. #if __has_include(<FirebaseMLVisionObjectDetection/FirebaseMLVisionObjectDetection.h>)
  131. #import <FirebaseMLVisionObjectDetection/FirebaseMLVisionObjectDetection.h>
  132. #endif
  133. #if __has_include(<FirebaseMLVisionTextModel/FirebaseMLVisionTextModel.h>)
  134. #import <FirebaseMLVisionTextModel/FirebaseMLVisionTextModel.h>
  135. #endif
  136. #if __has_include(<FirebasePerformance/FirebasePerformance.h>)
  137. #import <FirebasePerformance/FirebasePerformance.h>
  138. #if !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
  139. #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  140. #warning "FirebaseAnalytics.framework is not included in your target. Please add \
  141. `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
  142. Firebase Performance works as intended."
  143. #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  144. #endif
  145. #endif
  146. #if __has_include(<FirebaseRemoteConfig/FirebaseRemoteConfig.h>)
  147. #import <FirebaseRemoteConfig/FirebaseRemoteConfig.h>
  148. #if !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
  149. #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  150. #warning "FirebaseAnalytics.framework is not included in your target. Please add \
  151. `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
  152. Firebase Remote Config works as intended."
  153. #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  154. #endif
  155. #elif __has_include("FirebaseRemoteConfig.h")
  156. #import "FirebaseRemoteConfig.h"
  157. #endif
  158. #if __has_include(<FirebaseStorage/FirebaseStorage.h>)
  159. #import <FirebaseStorage/FirebaseStorage.h>
  160. #elif __has_include("FirebaseStorage.h")
  161. #import "FirebaseStorage.h"
  162. #endif
  163. #if __has_include(<GoogleMobileAds/GoogleMobileAds.h>)
  164. #import <GoogleMobileAds/GoogleMobileAds.h>
  165. #endif
  166. #if __has_include(<Fabric/Fabric.h>)
  167. #import <Fabric/Fabric.h>
  168. #endif
  169. #if __has_include(<Crashlytics/Crashlytics.h>)
  170. #import <Crashlytics/Crashlytics.h>
  171. #endif
  172. #endif // defined(__has_include)