Skip to content

Commit

Permalink
[Infra] Fix-up import tests (#11804)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 authored Sep 13, 2023
1 parent d732490 commit 6adfba5
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/client_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- "*.podspec"
- "scripts/install_prereqs.sh"
- "scripts/build.sh"
- "ClientApp/*"
- "ClientApp/**"
- "Gemfile*"
schedule:
# Run every day at 12am (PST) - cron uses UTC times
Expand Down
8 changes: 3 additions & 5 deletions ClientApp/Shared/objc-header-import-test.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,15 @@
#import "FirebaseDynamicLinks/FirebaseDynamicLinks.h"
#endif
#import <FirebaseFirestore/FirebaseFirestore.h>
#import "FirebaseFirestore/FirebaseFirestore.h"
#if (TARGET_OS_IOS || TARGET_OS_TV) && !TARGET_OS_MACCATALYST
#import <FirebaseInAppMessaging/FirebaseInAppMessaging.h>
#import "FirebaseInAppMessaging/FirebaseInAppMessaging.h"
#endif
#import <FirebaseInstallations/FirebaseInstallations.h>
#import <FirebaseMessaging/FirebaseMessaging.h>
#import "FirebaseFirestore/FirebaseFirestore.h"
#import "FirebaseInstallations/FirebaseInstallations.h"
#import "FirebaseMessaging/FirebaseMessaging.h"
#if (TARGET_OS_IOS && !TARGET_OS_MACCATALYST) || TARGET_OS_TV
#import <FirebaseInAppMessaging/FirebaseInAppMessaging.h>
#import <FirebasePerformance/FirebasePerformance.h>
#import "FirebaseInAppMessaging/FirebaseInAppMessaging.h"
#import "FirebasePerformance/FirebasePerformance.h"
#endif
#import <FirebaseRemoteConfig/FirebaseRemoteConfig.h>
Expand Down
4 changes: 1 addition & 3 deletions ClientApp/Shared/objc-module-import-test.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@
#endif
@import FirebaseFirestore;
@import FirebaseFunctions;
#if (TARGET_OS_IOS || TARGET_OS_TV) && !TARGET_OS_MACCATALYST
@import FirebaseInAppMessaging;
#endif
@import FirebaseInstallations;
@import FirebaseMessaging;
#if (TARGET_OS_IOS && !TARGET_OS_MACCATALYST) || TARGET_OS_TV
@import FirebasePerformance;
@import FirebaseInAppMessaging;
#endif
@import FirebaseRemoteConfig;
@import FirebaseStorage;
6 changes: 2 additions & 4 deletions ClientApp/Shared/objcxx-header-import-test.mm
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,15 @@
// #endif
// #import <FirebaseFirestore/FirebaseFirestore.h>
// #import "FirebaseFirestore/FirebaseFirestore.h"
// #if (TARGET_OS_IOS || TARGET_OS_TV) && !TARGET_OS_MACCATALYST
// #import <FirebaseInAppMessaging/FirebaseInAppMessaging.h>
// #import "FirebaseInAppMessaging/FirebaseInAppMessaging.h"
// #endif
// #import <FirebaseInstallations/FirebaseInstallations.h>
// #import <FirebaseMessaging/FirebaseMessaging.h>
// #import "FirebaseInstallations/FirebaseInstallations.h"
// #import "FirebaseMessaging/FirebaseMessaging.h"
// #if (TARGET_OS_IOS && !TARGET_OS_MACCATALYST) || TARGET_OS_TV
// #import <FirebasePerformance/FirebasePerformance.h>
// #import "FirebasePerformance/FirebasePerformance.h"
// #import <FirebaseInAppMessaging/FirebaseInAppMessaging.h>
// #import "FirebaseInAppMessaging/FirebaseInAppMessaging.h"
// #endif
// #import <FirebaseRemoteConfig/FirebaseRemoteConfig.h>
// #import "FirebaseRemoteConfig/FirebaseRemoteConfig.h"
4 changes: 1 addition & 3 deletions ClientApp/Shared/objcxx-module-import-test.mm
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,11 @@
// #endif
// @import FirebaseFirestore;
// @import FirebaseFunctions;
// #if (TARGET_OS_IOS || TARGET_OS_TV) && !TARGET_OS_MACCATALYST
// @import FirebaseInAppMessaging;
// #endif
// @import FirebaseInstallations;
// @import FirebaseMessaging;
// #if (TARGET_OS_IOS && !TARGET_OS_MACCATALYST) || TARGET_OS_TV
// @import FirebasePerformance;
// @import FirebaseInAppMessaging;
// #endif
// @import FirebaseRemoteConfig;
// @import FirebaseStorage;
6 changes: 2 additions & 4 deletions ClientApp/Shared/swift-import-test.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,13 @@ import FirebaseFunctions
#if SWIFT_PACKAGE
import FirebaseFunctionsCombineSwift
#endif // SWIFT_PACKAGE
#if (os(iOS) || os(tvOS)) && !targetEnvironment(macCatalyst)
import FirebaseInAppMessaging
import FirebaseInAppMessagingSwift
#endif
import FirebaseInstallations
import FirebaseMessaging
import FirebaseMLModelDownloader
#if (os(iOS) && !targetEnvironment(macCatalyst)) || os(tvOS)
import FirebasePerformance
import FirebaseInAppMessaging
import FirebaseInAppMessagingSwift
#endif
import FirebaseRemoteConfig
import FirebaseRemoteConfigSwift
Expand Down
4 changes: 1 addition & 3 deletions SwiftPMTests/objc-import-test/objc-header.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@
#import "FirebaseDatabase/FirebaseDatabase.h"
#import "FirebaseDynamicLinks/FirebaseDynamicLinks.h"
#import "FirebaseFirestore/FirebaseFirestore.h"
#if TARGET_OS_IOS || TARGET_OS_TV
#import "FirebaseInAppMessaging/FirebaseInAppMessaging.h"
#endif
#import "FirebaseInstallations/FirebaseInstallations.h"
#import "FirebaseMessaging/FirebaseMessaging.h"
#if (TARGET_OS_IOS && !TARGET_OS_MACCATALYST) || TARGET_OS_TV
#import "FirebaseInAppMessaging/FirebaseInAppMessaging.h"
#import "FirebasePerformance/FirebasePerformance.h"
#endif
#import "FirebaseRemoteConfig/FirebaseRemoteConfig.h"
Expand Down
4 changes: 1 addition & 3 deletions SwiftPMTests/objc-import-test/objc-module.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@
@import FirebaseDynamicLinks;
@import FirebaseFirestore;
@import FirebaseFunctions;
#if TARGET_OS_IOS || TARGET_OS_TV
@import FirebaseInAppMessaging;
#endif
@import FirebaseInstallations;
@import FirebaseMessaging;
#if (TARGET_OS_IOS && !TARGET_OS_MACCATALYST) || TARGET_OS_TV
@import FirebaseInAppMessaging;
@import FirebasePerformance;
#endif
@import FirebaseRemoteConfig;
Expand Down
9 changes: 4 additions & 5 deletions SwiftPMTests/swift-test/all-imports.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@ import FirebaseDynamicLinks
import FirebaseFirestore
import FirebaseFirestoreSwift
import FirebaseFunctions
#if (os(iOS) || os(tvOS)) && !targetEnvironment(macCatalyst)
import FirebaseInAppMessaging
@testable import FirebaseInAppMessagingSwift
import SwiftUI
#endif
import FirebaseInstallations
import FirebaseMessaging
#if (os(iOS) && !targetEnvironment(macCatalyst)) || os(tvOS)
import FirebasePerformance

import FirebaseInAppMessaging
@testable import FirebaseInAppMessagingSwift
import SwiftUI
#endif
import FirebaseRemoteConfig
import FirebaseSessions
Expand Down

0 comments on commit 6adfba5

Please sign in to comment.