Skip to content

Commit 5bc731c

Browse files
authored
add common release notes (#5370)
1 parent 72e7ffd commit 5bc731c

File tree

2 files changed

+73
-14
lines changed

2 files changed

+73
-14
lines changed

firebase-common/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
# Unreleased
2+
* [changed] Added Kotlin extensions (KTX) APIs from `com.google.firebase:firebase-common-ktx`
3+
to `com.google.firebase:firebase-common` under the `com.google.firebase` package.
4+
For details, see the
5+
[FAQ about this initiative](https://firebase.google.com/docs/android/ktx-apis-to-main-modules)
6+
7+
## Kotlin
8+
* [deprecated] All the APIs from `com.google.firebase:firebase-common-ktx` have been added to
9+
`com.google.firebase:firebase-common` under the `com.google.firebase package`, and all the
10+
Kotlin extensions (KTX) APIs in `com.google.firebase:firebase-common-ktx` are now deprecated.
11+
As early as April 2024, we'll no longer release KTX modules. For details, see the
12+
FAQ about this initiative.
13+
[FAQ about this initiative](https://firebase.google.com/docs/android/ktx-apis-to-main-modules)
214

315
# 20.3.3
416
* [fixed] Addressed issue with C++ being absent in user agent.

firebase-common/src/main/java/com/google/firebase/ktx/Firebase.kt

Lines changed: 61 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,28 @@ import kotlinx.coroutines.asCoroutineDispatcher
3333
* Single access point to all firebase SDKs from Kotlin.
3434
*
3535
* <p>Acts as a target for extension methods provided by sdks.
36+
* @deprecated **Deprecation Notice:** The Kotlin extensions (KTX) APIs have been added to their
37+
* respective main modules, and the Kotlin extension (KTX) APIs in
38+
* `com.google.firebase.firebase-common-ktx` are now deprecated. As early as April 2024, we'll no
39+
* longer release KTX modules. For details, see the
40+
* [FAQ about this initiative.](https://firebase.google.com/docs/android/ktx-apis-to-main-modules)
3641
*/
3742
@Deprecated(
38-
"Use `com.google.firebase.Firebase` from the main module instead. The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in `com.google.firebase:firebase-common-ktx` are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the [FAQ about this initiative.](https://firebase.google.com/docs/android/ktx-apis-to-main-modules){:.external}",
43+
"Use `com.google.firebase.Firebase` from the main module instead.",
3944
ReplaceWith(expression = "Firebase", imports = ["com.google.firebase.Firebase"])
4045
)
4146
object Firebase
4247

43-
/** Returns the default firebase app instance. */
48+
/**
49+
* Returns the default firebase app instance.
50+
* @deprecated **Deprecation Notice:** The Kotlin extensions (KTX) APIs have been added to their
51+
* respective main modules, and the Kotlin extension (KTX) APIs in
52+
* `com.google.firebase.firebase-common-ktx` are now deprecated. As early as April 2024, we'll no
53+
* longer release KTX modules. For details, see the
54+
* [FAQ about this initiative.](https://firebase.google.com/docs/android/ktx-apis-to-main-modules),
55+
*/
4456
@Deprecated(
45-
"Use `com.google.firebase.Firebase.app` from the main module instead. The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in `com.google.firebase:firebase-common-ktx` are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the [FAQ about this initiative.](https://firebase.google.com/docs/android/ktx-apis-to-main-modules){:.external}",
57+
"Use `com.google.firebase.Firebase.app` from the main module instead.",
4658
ReplaceWith(
4759
expression = "com.google.firebase.Firebase.app",
4860
imports = ["com.google.firebase.Firebase", "com.google.firebase.app"],
@@ -51,29 +63,50 @@ object Firebase
5163
val Firebase.app: FirebaseApp
5264
get() = FirebaseApp.getInstance()
5365

54-
/** Returns a named firebase app instance. */
66+
/**
67+
* Returns a named firebase app instance.
68+
* @deprecated **Deprecation Notice:** The Kotlin extensions (KTX) APIs have been added to their
69+
* respective main modules, and the Kotlin extension (KTX) APIs in
70+
* `com.google.firebase.firebase-common-ktx` are now deprecated. As early as April 2024, we'll no
71+
* longer release KTX modules. For details, see the
72+
* [FAQ about this initiative.](https://firebase.google.com/docs/android/ktx-apis-to-main-modules),
73+
*/
5574
@Deprecated(
56-
"Use `com.google.firebase.Firebase.app(name)` from the main module instead. The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in `com.google.firebase:firebase-common-ktx` are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the [FAQ about this initiative.](https://firebase.google.com/docs/android/ktx-apis-to-main-modules){:.external}",
75+
"Use `com.google.firebase.Firebase.app(name)` from the main module instead.",
5776
ReplaceWith(
5877
expression = "com.google.firebase.Firebase.app(name)",
5978
imports = ["com.google.firebase.Firebase", "com.google.firebase.app"]
6079
)
6180
)
6281
fun Firebase.app(name: String): FirebaseApp = FirebaseApp.getInstance(name)
6382

64-
/** Initializes and returns a FirebaseApp. */
83+
/**
84+
* Initializes and returns a FirebaseApp.
85+
* @deprecated **Deprecation Notice:** The Kotlin extensions (KTX) APIs have been added to their
86+
* respective main modules, and the Kotlin extension (KTX) APIs in
87+
* `com.google.firebase.firebase-common-ktx` are now deprecated. As early as April 2024, we'll no
88+
* longer release KTX modules. For details, see the
89+
* [FAQ about this initiative.](https://firebase.google.com/docs/android/ktx-apis-to-main-modules),
90+
*/
6591
@Deprecated(
66-
"Use `com.google.firebase.Firebase.initialize(context)` from the main module instead. The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in `com.google.firebase:firebase-common-ktx` are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the [FAQ about this initiative.](https://firebase.google.com/docs/android/ktx-apis-to-main-modules){:.external}",
92+
"Use `com.google.firebase.Firebase.initialize(context)` from the main module instead.",
6793
ReplaceWith(
6894
expression = "com.google.firebase.Firebase.initialize(context)",
6995
imports = ["com.google.firebase.Firebase", "com.google.firebase.initialize"]
7096
)
7197
)
7298
fun Firebase.initialize(context: Context): FirebaseApp? = FirebaseApp.initializeApp(context)
7399

74-
/** Initializes and returns a FirebaseApp. */
100+
/**
101+
* Initializes and returns a FirebaseApp.
102+
* @deprecated **Deprecation Notice:** The Kotlin extensions (KTX) APIs have been added to their
103+
* respective main modules, and the Kotlin extension (KTX) APIs in
104+
* `com.google.firebase.firebase-common-ktx` are now deprecated. As early as April 2024, we'll no
105+
* longer release KTX modules. For details, see the
106+
* [FAQ about this initiative.](https://firebase.google.com/docs/android/ktx-apis-to-main-modules),
107+
*/
75108
@Deprecated(
76-
"Use `com.google.firebase.Firebase.initialize(context, options)` from the main module instead. The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in `com.google.firebase:firebase-common-ktx` are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the [FAQ about this initiative.](https://firebase.google.com/docs/android/ktx-apis-to-main-modules){:.external}",
109+
"Use `com.google.firebase.Firebase.initialize(context, options)` from the main module instead.",
77110
ReplaceWith(
78111
expression = "com.google.firebase.Firebase.initialize(context, options)",
79112
imports = ["com.google.firebase.Firebase", "com.google.firebase.initialize"]
@@ -82,9 +115,16 @@ fun Firebase.initialize(context: Context): FirebaseApp? = FirebaseApp.initialize
82115
fun Firebase.initialize(context: Context, options: FirebaseOptions): FirebaseApp =
83116
FirebaseApp.initializeApp(context, options)
84117

85-
/** Initializes and returns a FirebaseApp. */
118+
/**
119+
* Initializes and returns a FirebaseApp.
120+
* @deprecated **Deprecation Notice:** The Kotlin extensions (KTX) APIs have been added to their
121+
* respective main modules, and the Kotlin extension (KTX) APIs in
122+
* `com.google.firebase.firebase-common-ktx` are now deprecated. As early as April 2024, we'll no
123+
* longer release KTX modules. For details, see the
124+
* [FAQ about this initiative.](https://firebase.google.com/docs/android/ktx-apis-to-main-modules),
125+
*/
86126
@Deprecated(
87-
"Use `com.google.firebase.Firebase.initialize(context, options, name)` from the main module instead. The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in `com.google.firebase:firebase-common-ktx` are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the [FAQ about this initiative.](https://firebase.google.com/docs/android/ktx-apis-to-main-modules){:.external}",
127+
"Use `com.google.firebase.Firebase.initialize(context, options, name)` from the main module instead.",
88128
ReplaceWith(
89129
expression = "com.google.firebase.Firebase.initialize(context, options, name)",
90130
imports = ["com.google.firebase.Firebase", "com.google.firebase.initialize"]
@@ -93,9 +133,16 @@ fun Firebase.initialize(context: Context, options: FirebaseOptions): FirebaseApp
93133
fun Firebase.initialize(context: Context, options: FirebaseOptions, name: String): FirebaseApp =
94134
FirebaseApp.initializeApp(context, options, name)
95135

96-
/** Returns options of default FirebaseApp */
136+
/**
137+
* Returns options of default FirebaseApp
138+
* @deprecated **Deprecation Notice:** The Kotlin extensions (KTX) APIs have been added to their
139+
* respective main modules, and the Kotlin extension (KTX) APIs in
140+
* `com.google.firebase.firebase-common-ktx` are now deprecated. As early as April 2024, we'll no
141+
* longer release KTX modules. For details, see the
142+
* [FAQ about this initiative.](https://firebase.google.com/docs/android/ktx-apis-to-main-modules),
143+
*/
97144
@Deprecated(
98-
"Use `com.google.firebase.Firebase.options` from the main module instead. The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in `com.google.firebase:firebase-common-ktx` are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the [FAQ about this initiative.](https://firebase.google.com/docs/android/ktx-apis-to-main-modules){:.external}",
145+
"Use `com.google.firebase.Firebase.options` from the main module instead.",
99146
ReplaceWith(
100147
expression = "com.google.firebase.Firebase.options",
101148
imports = ["com.google.firebase.Firebase", "com.google.firebase.options"]
@@ -106,7 +153,7 @@ val Firebase.options: FirebaseOptions
106153

107154
/** @suppress */
108155
@Deprecated(
109-
"Use `com.google.firebase.FirebaseCommonKtxRegistrar` from the main module instead. The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in `com.google.firebase:firebase-common-ktx` are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the [FAQ about this initiative.](https://firebase.google.com/docs/android/ktx-apis-to-main-modules){:.external}",
156+
"Use `com.google.firebase.FirebaseCommonKtxRegistrar` from the main module instead.",
110157
ReplaceWith(
111158
expression = "FirebaseCommonKtxRegistrar",
112159
imports = ["com.google.firebase.Firebase", "com.google.firebase.FirebaseCommonKtxRegistrar"]

0 commit comments

Comments
 (0)