From 9854c6aadc0a1846cef48183669603f4d0edbdb6 Mon Sep 17 00:00:00 2001 From: Nick Cooke Date: Tue, 10 Oct 2023 12:32:38 -0400 Subject: [PATCH] Update deprecation/documentation messages --- FirebaseInAppMessaging/CHANGELOG.md | 15 +++++---------- .../Sources/FirebaseInAppMessagingSwift.swift | 14 +++----------- 2 files changed, 8 insertions(+), 21 deletions(-) diff --git a/FirebaseInAppMessaging/CHANGELOG.md b/FirebaseInAppMessaging/CHANGELOG.md index 6e897ef49d17..f7ea17bd776c 100644 --- a/FirebaseInAppMessaging/CHANGELOG.md +++ b/FirebaseInAppMessaging/CHANGELOG.md @@ -1,14 +1,9 @@ # Unreleased -- [deprecated] `FirebaseInAppMessagingSwift` has been deprecated, and will be - removed in a future release. All of the public API from - `FirebaseInAppMessagingSwift` can now be accessed through the - `FirebaseInAppMessaging` module. To migrate, delete imports of - `FirebaseInAppMessagingSwift` and remove the module as a dependency to your - project. If applicable, any APIs namespaced with - `FirebaseInAppMessagingSwift` can now be namespaced with - `FirebaseInAppMessaging`. Additionally, if applicable, - `@testable import FirebaseInAppMessagingSwift` should be replaced with - `@testable import FirebaseInAppMessaging`. +- [deprecated] All of the public API from `FirebaseInAppMessagingSwift` can now + be accessed through the `FirebaseInAppMessaging` module. Therefore, + `FirebaseInAppMessagingSwift` has been deprecated, and will be removed in a + future release. See https://firebase.google.com/docs/ios/swift-migration for + migration instructions. # 10.13.0 - [fixed] Fix Firebase tvOS podspec dependency for In App Messaging. (#11569) diff --git a/FirebaseInAppMessagingSwift/Sources/FirebaseInAppMessagingSwift.swift b/FirebaseInAppMessagingSwift/Sources/FirebaseInAppMessagingSwift.swift index 80b781a4348a..d9836aeea0b9 100644 --- a/FirebaseInAppMessagingSwift/Sources/FirebaseInAppMessagingSwift.swift +++ b/FirebaseInAppMessagingSwift/Sources/FirebaseInAppMessagingSwift.swift @@ -12,17 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#warning(""" -The `FirebaseInAppMessagingSwift` module is deprecated and will be removed in -the future. All of the public API from `FirebaseInAppMessagingSwift` can now be -accessed through the `FirebaseInAppMessaging` module. To migrate, delete -imports of `FirebaseInAppMessagingSwift` and remove the module as a dependency -to your project. If applicable, any APIs namespaced with -`FirebaseInAppMessagingSwift` can now be namespaced with -`FirebaseInAppMessaging`. Additionally, if applicable, -`@testable import FirebaseInAppMessagingSwift` should be replaced with -`@testable import FirebaseInAppMessaging`. -""") +#warning( + "All of the public API from `FirebaseInAppMessagingSwift` can now be accessed through the `FirebaseInAppMessaging` module. Therefore, the `FirebaseInAppMessagingSwift` module is deprecated and will be removed in the future. See https://firebase.google.com/docs/ios/swift-migration for migration instructions." +) // The `@_exported` is needed to prevent breaking clients that are using // types prefixed with the `FirebaseInAppMessaging` namespace.