Firebase.h 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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(<FirebaseCrashlytics/FirebaseCrashlytics.h>)
  34. #import <FirebaseCrashlytics/FirebaseCrashlytics.h>
  35. #elif __has_include("FirebaseCrashlytics.h")
  36. #import "FirebaseCrashlytics.h"
  37. #endif
  38. #if __has_include(<FirebaseDatabase/FirebaseDatabase.h>)
  39. #import <FirebaseDatabase/FirebaseDatabase.h>
  40. #elif __has_include("FirebaseDatabase.h")
  41. #import "FirebaseDatabase.h"
  42. #endif
  43. #if __has_include(<FirebaseDynamicLinks/FirebaseDynamicLinks.h>)
  44. #import <FirebaseDynamicLinks/FirebaseDynamicLinks.h>
  45. #if !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
  46. #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  47. #warning "FirebaseAnalytics.framework is not included in your target. Please add \
  48. `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
  49. Firebase Dynamic Links works as intended."
  50. #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  51. #endif
  52. #elif __has_include("FirebaseDynamicLinks.h")
  53. #import "FirebaseDynamicLinks.h"
  54. #endif
  55. #if __has_include(<FirebaseFirestore/FirebaseFirestore.h>)
  56. #import <FirebaseFirestore/FirebaseFirestore.h>
  57. #elif __has_include("FirebaseFirestore.h")
  58. #import "FirebaseFirestore.h"
  59. #endif
  60. #if __has_include(<FirebaseFunctions/FirebaseFunctions.h>)
  61. #import <FirebaseFunctions/FirebaseFunctions.h>
  62. #elif __has_include("FirebaseFunctions.h")
  63. #import "FirebaseFunctions.h"
  64. #endif
  65. #if __has_include(<FirebaseInAppMessaging/FirebaseInAppMessaging.h>)
  66. #import <FirebaseInAppMessaging/FirebaseInAppMessaging.h>
  67. #if !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
  68. #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  69. #warning "FirebaseAnalytics.framework is not included in your target. Please add \
  70. `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
  71. Firebase In App Messaging works as intended."
  72. #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  73. #endif
  74. #elif __has_include("FirebaseInAppMessaging.h")
  75. #import "FirebaseInAppMessaging.h"
  76. #endif
  77. #if __has_include(<FirebaseInstanceID/FirebaseInstanceID.h>)
  78. #import <FirebaseInstanceID/FirebaseInstanceID.h>
  79. #endif
  80. #if __has_include(<FirebaseMessaging/FirebaseMessaging.h>)
  81. #import <FirebaseMessaging/FirebaseMessaging.h>
  82. #if !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
  83. #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  84. #warning "FirebaseAnalytics.framework is not included in your target. Please add \
  85. `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
  86. Firebase Messaging works as intended."
  87. #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  88. #endif
  89. #elif __has_include("FirebaseMessaging.h")
  90. #import "FirebaseMessaging.h"
  91. #endif
  92. #if __has_include(<FirebaseMLCommon/FirebaseMLCommon.h>)
  93. #import <FirebaseMLCommon/FirebaseMLCommon.h>
  94. #endif
  95. #if __has_include(<FirebaseMLModelInterpreter/FirebaseMLModelInterpreter.h>)
  96. #import <FirebaseMLModelInterpreter/FirebaseMLModelInterpreter.h>
  97. #endif
  98. #if __has_include(<FirebaseMLNLLanguageID/FirebaseMLNLLanguageID.h>)
  99. #import <FirebaseMLNLLanguageID/FirebaseMLNLLanguageID.h>
  100. #endif
  101. #if __has_include(<FirebaseMLNLSmartReply/FirebaseMLNLSmartReply.h>)
  102. #import <FirebaseMLNLSmartReply/FirebaseMLNLSmartReply.h>
  103. #endif
  104. #if __has_include(<FirebaseMLNLTranslate/FirebaseMLNLTranslate.h>)
  105. #import <FirebaseMLNLTranslate/FirebaseMLNLTranslate.h>
  106. #endif
  107. #if __has_include(<FirebaseMLNaturalLanguage/FirebaseMLNaturalLanguage.h>)
  108. #import <FirebaseMLNaturalLanguage/FirebaseMLNaturalLanguage.h>
  109. #endif
  110. #if __has_include(<FirebaseMLVision/FirebaseMLVision.h>)
  111. #import <FirebaseMLVision/FirebaseMLVision.h>
  112. #endif
  113. #if __has_include(<FirebaseMLVisionAutoML/FirebaseMLVisionAutoML.h>)
  114. #import <FirebaseMLVisionAutoML/FirebaseMLVisionAutoML.h>
  115. #endif
  116. #if __has_include(<FirebaseMLVisionBarcodeModel/FirebaseMLVisionBarcodeModel.h>)
  117. #import <FirebaseMLVisionBarcodeModel/FirebaseMLVisionBarcodeModel.h>
  118. #endif
  119. #if __has_include(<FirebaseMLVisionFaceModel/FirebaseMLVisionFaceModel.h>)
  120. #import <FirebaseMLVisionFaceModel/FirebaseMLVisionFaceModel.h>
  121. #endif
  122. #if __has_include(<FirebaseMLVisionLabelModel/FirebaseMLVisionLabelModel.h>)
  123. #import <FirebaseMLVisionLabelModel/FirebaseMLVisionLabelModel.h>
  124. #endif
  125. #if __has_include(<FirebaseMLVisionObjectDetection/FirebaseMLVisionObjectDetection.h>)
  126. #import <FirebaseMLVisionObjectDetection/FirebaseMLVisionObjectDetection.h>
  127. #endif
  128. #if __has_include(<FirebaseMLVisionTextModel/FirebaseMLVisionTextModel.h>)
  129. #import <FirebaseMLVisionTextModel/FirebaseMLVisionTextModel.h>
  130. #endif
  131. #if __has_include(<FirebasePerformance/FirebasePerformance.h>)
  132. #import <FirebasePerformance/FirebasePerformance.h>
  133. #if !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
  134. #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  135. #warning "FirebaseAnalytics.framework is not included in your target. Please add \
  136. `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
  137. Firebase Performance works as intended."
  138. #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  139. #endif
  140. #endif
  141. #if __has_include(<FirebaseRemoteConfig/FirebaseRemoteConfig.h>)
  142. #import <FirebaseRemoteConfig/FirebaseRemoteConfig.h>
  143. #if !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
  144. #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  145. #warning "FirebaseAnalytics.framework is not included in your target. Please add \
  146. `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
  147. Firebase Remote Config works as intended."
  148. #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
  149. #endif
  150. #elif __has_include("FirebaseRemoteConfig.h")
  151. #import "FirebaseRemoteConfig.h"
  152. #endif
  153. #if __has_include(<FirebaseStorage/FirebaseStorage.h>)
  154. #import <FirebaseStorage/FirebaseStorage.h>
  155. #elif __has_include("FirebaseStorage.h")
  156. #import "FirebaseStorage.h"
  157. #endif
  158. #if __has_include(<GoogleMobileAds/GoogleMobileAds.h>)
  159. #import <GoogleMobileAds/GoogleMobileAds.h>
  160. #endif
  161. #if __has_include(<Fabric/Fabric.h>)
  162. #import <Fabric/Fabric.h>
  163. #endif
  164. #if __has_include(<Crashlytics/Crashlytics.h>)
  165. #import <Crashlytics/Crashlytics.h>
  166. #endif
  167. #endif // defined(__has_include)