Skip to content

Commit

Permalink
Update deprecation/documentation messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 committed Oct 10, 2023
1 parent d45bf75 commit c8da3f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
15 changes: 5 additions & 10 deletions FirebaseDatabaseSwift/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
# Unreleased
- [deprecated] `FirebaseDatabaseSwift` has been deprecated, and will be
removed in a future release. All of the public API from
`FirebaseDatabaseSwift` can now be accessed through the
`FirebaseDatabase` module. To migrate, delete imports of
`FirebaseDatabaseSwift` and remove the module as a dependency to your
project. If applicable, any APIs namespaced with
`FirebaseDatabaseSwift` can now be namespaced with
`FirebaseDatabase`. Additionally, if applicable,
`@testable import FirebaseDatabaseSwift` should be replaced with
`@testable import FirebaseDatabase`.
- [deprecated] All of the public API from `FirebaseDatabaseSwift` can now
be accessed through the `FirebaseDatabase` module. Therefore,
`FirebaseDatabaseSwift` has been deprecated, and will be removed in a
future release. See https://firebase.google.com/docs/ios/swift-migration for
migration instructions.

# 9.0.0
- [added] **Breaking change:** `FirebaseDatabaseSwift` has exited beta and is
Expand Down
13 changes: 3 additions & 10 deletions FirebaseDatabaseSwift/Sources/FirebaseDatabaseSwift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#warning("""
The FirebaseDatabaseSwift module is deprecated and will be removed in
the future. All of the public API from FirebaseDatabaseSwift can now be
accessed through the FirebaseDatabase module. To migrate, delete imports
of FirebaseDatabaseSwift and remove the module as a dependency to your
project. If applicable, any APIs namespaced with `FirebaseDatabaseSwift`
can now be namespaced with `FirebaseDatabase`. Additionally, if
applicable, `@testable import FirebaseDatabaseSwift` should be replaced
with `@testable import FirebaseDatabase`.
""")
#warning(
"All of the public API from `FirebaseDatabaseSwift` can now be accessed through the `FirebaseDatabase` module. Therefore, the `FirebaseDatabaseSwift` 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 `FirebaseDatabase` namespace.
Expand Down

0 comments on commit c8da3f0

Please sign in to comment.