4040
4141 #if __has_include(<FirebaseDynamicLinks/FirebaseDynamicLinks.h>)
4242 #import <FirebaseDynamicLinks/FirebaseDynamicLinks.h>
43- #if !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
43+ #if TARGET_OS_IOS && !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
4444 #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
45- #warning " FirebaseAnalytics.framework is not included in your target. Please add \
46- `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
47- Firebase Dynamic Links works as intended."
45+ #warning " FirebaseAnalytics.framework is not included in your target. Please add the \
46+ FirebaseAnalytics dependency to your project to ensure Firebase Dynamic Links works as intended."
4847 #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
4948 #endif
5049 #endif
@@ -59,11 +58,10 @@ Firebase Dynamic Links works as intended."
5958
6059 #if __has_include(<FirebaseInAppMessaging/FirebaseInAppMessaging.h>)
6160 #import <FirebaseInAppMessaging/FirebaseInAppMessaging.h>
62- #if !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
61+ #if TARGET_OS_IOS && !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
6362 #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
64- #warning " FirebaseAnalytics.framework is not included in your target. Please add \
65- `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
66- Firebase In App Messaging works as intended."
63+ #warning " FirebaseAnalytics.framework is not included in your target. Please add the \
64+ FirebaseAnalytics dependency to your project to ensure Firebase In App Messaging works as intended."
6765 #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
6866 #endif
6967 #endif
@@ -74,11 +72,11 @@ Firebase In App Messaging works as intended."
7472
7573 #if __has_include(<FirebaseMessaging/FirebaseMessaging.h>)
7674 #import <FirebaseMessaging/FirebaseMessaging.h>
77- #if !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
75+ #if TARGET_OS_IOS && !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
7876 #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
79- #warning " FirebaseAnalytics.framework is not included in your target. Please add \
80- `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
81- Firebase Messaging works as intended. "
77+ #warning " FirebaseAnalytics.framework is not included in your target. Please add the \
78+ FirebaseAnalytics dependency to your project to ensure Messaging works as intended. "
79+
8280 #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
8381 #endif
8482 #endif
@@ -137,22 +135,20 @@ Firebase Messaging works as intended."
137135
138136 #if __has_include(<FirebasePerformance/FirebasePerformance.h>)
139137 #import <FirebasePerformance/FirebasePerformance.h>
140- #if !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
138+ #if TARGET_OS_IOS && !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
141139 #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
142- #warning " FirebaseAnalytics.framework is not included in your target. Please add \
143- `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
144- Firebase Performance works as intended."
140+ #warning " FirebaseAnalytics.framework is not included in your target. Please add the \
141+ FirebaseAnalytics dependency to your project to ensure Firebase Performance works as intended."
145142 #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
146143 #endif
147144 #endif
148145
149146 #if __has_include(<FirebaseRemoteConfig/FirebaseRemoteConfig.h>)
150147 #import <FirebaseRemoteConfig/FirebaseRemoteConfig.h>
151- #if !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
148+ #if TARGET_OS_IOS && !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
152149 #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
153- #warning " FirebaseAnalytics.framework is not included in your target. Please add \
154- `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
155- Firebase Remote Config works as intended."
150+ #warning " FirebaseAnalytics.framework is not included in your target. Please add the \
151+ FirebaseAnalytics dependency to your project to ensure Firebase Remote Config works as intended."
156152 #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
157153 #endif
158154 #endif
0 commit comments