File tree Expand file tree Collapse file tree 6 files changed +18
-56
lines changed Expand file tree Collapse file tree 6 files changed +18
-56
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,25 @@ previous: /migrate-to-v22
5
5
next : /typescript
6
6
---
7
7
8
- ⚠️ ** REMOVED** ⚠️
8
+ # Firebase Crashlytics
9
+
10
+ Modular API method ` isCrashlyticsCollectionEnabled(crashlytics) ` has been removed, please use the property on Crashlytics instance
11
+ ` getCrashlytics().isCrashlyticsCollectionEnabled ` instead.
12
+
13
+ # Firebase Auth
14
+
15
+ ` MultiFactorUser.enrolledFactor ` has been removed, please use ` MultiFactorUser.enrolledFactors ` . See example:
9
16
10
- # Firebase Dynamic Links has been Removed
17
+ ``` js
18
+ const credential = await signInWithEmailAndPassword (getAuth (), ' dummy@example.com' , ' password' );
19
+ const multiFactorUser = credential .user .multiFactor ;
20
+ // Use below - remove any instances of `multiFactorUser.enrolledFactor`
21
+ console .log (multiFactorUser .enrolledFactors );
22
+ ```
23
+
24
+ # Firebase Dynamic Links
25
+
26
+ ⚠️ ** REMOVED** ⚠️
11
27
12
28
This package has been deprecated and removed from the React Native Firebase repository.
13
29
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ export class MultiFactorUser {
14
14
}
15
15
this . _user = user ;
16
16
this . enrolledFactors = user . multiFactor . enrolledFactors ;
17
- // @deprecated kept for backwards compatibility, please use enrolledFactors
18
- this . enrolledFactor = user . multiFactor . enrolledFactors ;
19
17
}
20
18
21
19
getSession ( ) {
Original file line number Diff line number Diff line change 8
8
import {
9
9
firebase ,
10
10
getCrashlytics ,
11
- isCrashlyticsCollectionEnabled ,
12
11
checkForUnsentReports ,
13
12
deleteUnsentReports ,
14
13
didCrashOnPreviousExecution ,
@@ -46,10 +45,6 @@ describe('Crashlytics', function () {
46
45
expect ( getCrashlytics ) . toBeDefined ( ) ;
47
46
} ) ;
48
47
49
- it ( '`isCrashlyticsCollectionEnabled` function is properly exposed to end user' , function ( ) {
50
- expect ( isCrashlyticsCollectionEnabled ) . toBeDefined ( ) ;
51
- } ) ;
52
-
53
48
it ( '`checkForUnsentReports` function is properly exposed to end user' , function ( ) {
54
49
expect ( checkForUnsentReports ) . toBeDefined ( ) ;
55
50
} ) ;
@@ -210,16 +205,5 @@ describe('Crashlytics', function () {
210
205
'setCrashlyticsCollectionEnabled' ,
211
206
) ;
212
207
} ) ;
213
-
214
- it ( 'isCrashlyticsCollectionEnabled' , function ( ) {
215
- const crashlytics = getCrashlytics ( ) ;
216
- checkV9Deprecation (
217
- // swapped order here because we're deprecating the modular method and keeping the property on Crashlytics instance
218
- ( ) => crashlytics . isCrashlyticsCollectionEnabled ,
219
- ( ) => isCrashlyticsCollectionEnabled ( crashlytics ) ,
220
- '' ,
221
- '`isCrashlyticsCollectionEnabled()` is deprecated, please use `Crashlytics.isCrashlyticsCollectionEnabled` property instead' ,
222
- ) ;
223
- } ) ;
224
208
} ) ;
225
209
} ) ;
Original file line number Diff line number Diff line change @@ -11,17 +11,6 @@ type FirebaseCrashlytics = FirebaseCrashlyticsTypes.Module;
11
11
*/
12
12
export declare function getCrashlytics ( ) : FirebaseCrashlytics ;
13
13
14
- /**
15
- * Whether Crashlytics reporting is enabled.
16
- *
17
- * #### Example
18
- *
19
- * ```js
20
- * const crashlytics = getCrashlytics();
21
- * const isEnabled = isCrashlyticsCollectionEnabled(crashlytics);
22
- * ```
23
- */
24
- export declare function isCrashlyticsCollectionEnabled ( crashlytics : FirebaseCrashlytics ) : boolean ;
25
14
/**
26
15
* Determines whether there are any unsent crash reports cached on the device. The callback only executes
27
16
* if automatic data collection is disabled.
Original file line number Diff line number Diff line change @@ -19,27 +19,6 @@ export function getCrashlytics() {
19
19
return getApp ( ) . crashlytics ( ) ;
20
20
}
21
21
22
- /**
23
- * Whether Crashlytics reporting is enabled.
24
- *
25
- * #### Example
26
- *
27
- * ```js
28
- * const crashlytics = getCrashlytics();
29
- * const isEnabled = isCrashlyticsCollectionEnabled(crashlytics);
30
- * ```
31
- * @param {FirebaseCrashlytics } crashlytics
32
- * @returns {boolean }
33
- */
34
- export function isCrashlyticsCollectionEnabled ( crashlytics ) {
35
- // Unique. Deprecating modular method and allow it as a property on Crashlytics instance.
36
- // eslint-disable-next-line no-console
37
- console . warn (
38
- '`isCrashlyticsCollectionEnabled()` is deprecated, please use `Crashlytics.isCrashlyticsCollectionEnabled` property instead' ,
39
- ) ;
40
- return crashlytics . isCrashlyticsCollectionEnabled ;
41
- }
42
-
43
22
/**
44
23
* Determines whether there are any unsent crash reports cached on the device. The callback only executes
45
24
* if automatic data collection is disabled.
Original file line number Diff line number Diff line change @@ -314,10 +314,6 @@ class FirebaseFirestoreModule extends FirebaseModule {
314
314
}
315
315
316
316
if ( ! isUndefined ( settings . host ) ) {
317
- // eslint-disable-next-line no-console
318
- console . warn (
319
- 'host in settings to connect with firestore emulator is deprecated. Use useEmulator instead.' ,
320
- ) ;
321
317
if ( ! isString ( settings . host ) ) {
322
318
return Promise . reject (
323
319
new Error ( "firebase.firestore().settings(*) 'settings.host' must be a string value." ) ,
You can’t perform that action at this time.
0 commit comments