Преглед на файлове

Fix analytics warnings building for macOS/tvOS with SPM (#9030)

Paul Beusterien преди 4 години
родител
ревизия
a2320db042

+ 1 - 0
.github/workflows/spm.yml

@@ -8,6 +8,7 @@ on:
     - '.swiftpm/*'
     - 'scripts/build.sh'
     - 'SwiftPMTests/*'
+    - 'SwiftPM-PlatformExclude'
     - 'Gemfile*'
   schedule:
     # Run every day at 12am (PST) - cron uses UTC times

+ 2 - 2
SwiftPM-PlatformExclude/FirebaseAnalyticsWithoutAdIdSupportWrap/dummy.m

@@ -13,6 +13,6 @@
 // limitations under the License.
 
 #import <TargetConditionals.h>
-#if !TARGET_OS_IOS
-#warning "Firebase Analytics only supports the iOS platform"
+#if TARGET_OS_WATCH
+#warning "Firebase Analytics does not support the watchOS platform"
 #endif

+ 2 - 2
SwiftPM-PlatformExclude/FirebaseAnalyticsWrap/dummy.m

@@ -13,6 +13,6 @@
 // limitations under the License.
 
 #import <TargetConditionals.h>
-#if !TARGET_OS_IOS
-#warning "Firebase Analytics only supports the iOS platform"
+#if TARGET_OS_WATCH
+#warning "Firebase Analytics does not support the watchOS platform"
 #endif