@react-native-firebase/crashlytics 23.8.2 → 23.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/RNFBCrashlytics.podspec +7 -2
- package/dist/module/handlers.js +1 -1
- package/dist/module/handlers.js.map +1 -1
- package/dist/module/modular.js +1 -1
- package/dist/module/modular.js.map +1 -1
- package/dist/module/namespaced.js +2 -2
- package/dist/module/namespaced.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/lib/handlers.d.ts.map +1 -0
- package/dist/typescript/lib/index.d.ts.map +1 -0
- package/dist/typescript/lib/modular.d.ts.map +1 -0
- package/dist/typescript/{commonjs/lib → lib}/namespaced.d.ts +1 -1
- package/dist/typescript/lib/namespaced.d.ts.map +1 -0
- package/dist/typescript/lib/types/crashlytics.d.ts.map +1 -0
- package/dist/typescript/lib/version.d.ts +2 -0
- package/dist/typescript/lib/version.d.ts.map +1 -0
- package/lib/handlers.ts +1 -1
- package/lib/modular.ts +1 -1
- package/lib/namespaced.ts +3 -3
- package/lib/version.ts +1 -1
- package/package.json +8 -20
- package/tsconfig.json +8 -8
- package/dist/commonjs/handlers.js +0 -175
- package/dist/commonjs/handlers.js.map +0 -1
- package/dist/commonjs/index.js +0 -38
- package/dist/commonjs/index.js.map +0 -1
- package/dist/commonjs/modular.js +0 -256
- package/dist/commonjs/modular.js.map +0 -1
- package/dist/commonjs/namespaced.js +0 -138
- package/dist/commonjs/namespaced.js.map +0 -1
- package/dist/commonjs/package.json +0 -1
- package/dist/commonjs/types/crashlytics.js +0 -47
- package/dist/commonjs/types/crashlytics.js.map +0 -1
- package/dist/commonjs/version.js +0 -9
- package/dist/commonjs/version.js.map +0 -1
- package/dist/typescript/commonjs/lib/handlers.d.ts.map +0 -1
- package/dist/typescript/commonjs/lib/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/lib/modular.d.ts.map +0 -1
- package/dist/typescript/commonjs/lib/namespaced.d.ts.map +0 -1
- package/dist/typescript/commonjs/lib/types/crashlytics.d.ts.map +0 -1
- package/dist/typescript/commonjs/lib/version.d.ts +0 -2
- package/dist/typescript/commonjs/lib/version.d.ts.map +0 -1
- package/dist/typescript/commonjs/package.json +0 -1
- package/dist/typescript/module/lib/handlers.d.ts +0 -28
- package/dist/typescript/module/lib/handlers.d.ts.map +0 -1
- package/dist/typescript/module/lib/index.d.ts +0 -5
- package/dist/typescript/module/lib/index.d.ts.map +0 -1
- package/dist/typescript/module/lib/modular.d.ts +0 -193
- package/dist/typescript/module/lib/modular.d.ts.map +0 -1
- package/dist/typescript/module/lib/namespaced.d.ts +0 -12
- package/dist/typescript/module/lib/namespaced.d.ts.map +0 -1
- package/dist/typescript/module/lib/types/crashlytics.d.ts +0 -117
- package/dist/typescript/module/lib/types/crashlytics.d.ts.map +0 -1
- package/dist/typescript/module/lib/version.d.ts +0 -2
- package/dist/typescript/module/lib/version.d.ts.map +0 -1
- /package/dist/typescript/{commonjs/lib → lib}/handlers.d.ts +0 -0
- /package/dist/typescript/{commonjs/lib → lib}/index.d.ts +0 -0
- /package/dist/typescript/{commonjs/lib → lib}/modular.d.ts +0 -0
- /package/dist/typescript/{commonjs/lib → lib}/types/crashlytics.d.ts +0 -0
- /package/dist/typescript/{module/package.json → package.json} +0 -0
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import type { Crashlytics } from './types/crashlytics';
|
|
2
|
-
/**
|
|
3
|
-
* Returns Crashlytics instance.
|
|
4
|
-
* #### Example
|
|
5
|
-
* ```js
|
|
6
|
-
* const crashlytics = getCrashlytics();
|
|
7
|
-
* ```
|
|
8
|
-
*/
|
|
9
|
-
export declare function getCrashlytics(): Crashlytics;
|
|
10
|
-
/**
|
|
11
|
-
* Determines whether there are any unsent crash reports cached on the device. The callback only executes
|
|
12
|
-
* if automatic data collection is disabled.
|
|
13
|
-
*
|
|
14
|
-
* #### Example
|
|
15
|
-
*
|
|
16
|
-
* ```js
|
|
17
|
-
* async checkReports() {
|
|
18
|
-
* // returns boolean value
|
|
19
|
-
* const crashlytics = getCrashlytics();
|
|
20
|
-
* const unsentReports = await checkForUnsentReports(crashlytics);
|
|
21
|
-
* }
|
|
22
|
-
*
|
|
23
|
-
* checkReports();
|
|
24
|
-
* ```
|
|
25
|
-
* @param crashlytics A crashlytics instance.
|
|
26
|
-
* @returns Promise that resolves to a boolean indicating if there are unsent reports.
|
|
27
|
-
*/
|
|
28
|
-
export declare function checkForUnsentReports(crashlytics: Crashlytics): Promise<boolean>;
|
|
29
|
-
/**
|
|
30
|
-
* Deletes any unsent reports on the device. This method only applies if automatic data collection is
|
|
31
|
-
* disabled.
|
|
32
|
-
*
|
|
33
|
-
* #### Example
|
|
34
|
-
*
|
|
35
|
-
* ```js
|
|
36
|
-
* const crashlytics = getCrashlytics();
|
|
37
|
-
* deleteUnsentReports(crashlytics);
|
|
38
|
-
* ```
|
|
39
|
-
* @param crashlytics A crashlytics instance.
|
|
40
|
-
*/
|
|
41
|
-
export declare function deleteUnsentReports(crashlytics: Crashlytics): Promise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* Returns a boolean value indicating whether the app crashed during the previous execution.
|
|
44
|
-
*
|
|
45
|
-
* #### Example
|
|
46
|
-
*
|
|
47
|
-
* ```js
|
|
48
|
-
* async didCrashPreviously() {
|
|
49
|
-
* // returns boolean value
|
|
50
|
-
* const crashlytics = getCrashlytics();
|
|
51
|
-
* const didCrash = await didCrashOnPreviousExecution(crashlytics);
|
|
52
|
-
* }
|
|
53
|
-
*
|
|
54
|
-
* didCrashPreviously();
|
|
55
|
-
* ```
|
|
56
|
-
* @param crashlytics A crashlytics instance.
|
|
57
|
-
* @returns Promise that resolves to a boolean indicating if the app crashed previously.
|
|
58
|
-
*/
|
|
59
|
-
export declare function didCrashOnPreviousExecution(crashlytics: Crashlytics): Promise<boolean>;
|
|
60
|
-
/**
|
|
61
|
-
* Cause your app to crash for testing purposes. This is a native crash and will not contain a javascript stack trace.
|
|
62
|
-
* Note that crashes are intercepted by debuggers on iOS so no report will be seen under those conditions. Additionally
|
|
63
|
-
* if it is a debug build you will need to ensure your firebase.json is configured to enable crashlytics even in debug mode.
|
|
64
|
-
*
|
|
65
|
-
* #### Example
|
|
66
|
-
*
|
|
67
|
-
* ```js
|
|
68
|
-
* const crashlytics = getCrashlytics();
|
|
69
|
-
* crash(crashlytics);
|
|
70
|
-
* ```
|
|
71
|
-
* @param crashlytics A crashlytics instance.
|
|
72
|
-
*/
|
|
73
|
-
export declare function crash(crashlytics: Crashlytics): void;
|
|
74
|
-
/**
|
|
75
|
-
* Log a message that will appear in any subsequent Crash or Non-fatal error reports.
|
|
76
|
-
*
|
|
77
|
-
* #### Example
|
|
78
|
-
*
|
|
79
|
-
* ```js
|
|
80
|
-
* const crashlytics = getCrashlytics();
|
|
81
|
-
* log(crashlytics, 'Testing a crash');
|
|
82
|
-
* crash(crashlytics);
|
|
83
|
-
* ```
|
|
84
|
-
* @param crashlytics A crashlytics instance.
|
|
85
|
-
* @param message The message to log.
|
|
86
|
-
*/
|
|
87
|
-
export declare function log(crashlytics: Crashlytics, message: string): void;
|
|
88
|
-
/**
|
|
89
|
-
* Record a JavaScript Error.
|
|
90
|
-
*
|
|
91
|
-
* The JavaScript stack trace is converted into a mock native iOS or Android exception before submission.
|
|
92
|
-
* The line numbers in the stack trace (if available) will be relative to the javascript bundle built by your packager,
|
|
93
|
-
* after whatever transpilation or minimization steps happen. You will need to maintain sourcemaps to decode them if desired.
|
|
94
|
-
*
|
|
95
|
-
* #### Example
|
|
96
|
-
*
|
|
97
|
-
* ```js
|
|
98
|
-
* const crashlytics = getCrashlytics();
|
|
99
|
-
* recordError(
|
|
100
|
-
* crashlytics,
|
|
101
|
-
* new Error('An error was caught')
|
|
102
|
-
* );
|
|
103
|
-
* ```
|
|
104
|
-
* @param crashlytics A crashlytics instance.
|
|
105
|
-
* @param error Expects an instance of Error; e.g. classes that extend Error will also be supported.
|
|
106
|
-
* @param jsErrorName Optional string containing Javascript error name
|
|
107
|
-
*/
|
|
108
|
-
export declare function recordError(crashlytics: Crashlytics, error: Error, jsErrorName?: string): void;
|
|
109
|
-
/**
|
|
110
|
-
* Enqueues any unsent reports on the device to upload to Crashlytics. This method only applies if
|
|
111
|
-
* automatic data collection is disabled.
|
|
112
|
-
*
|
|
113
|
-
* #### Example
|
|
114
|
-
*
|
|
115
|
-
* ```js
|
|
116
|
-
* const crashlytics = getCrashlytics();
|
|
117
|
-
* sendUnsentReports(crashlytics);
|
|
118
|
-
* ```
|
|
119
|
-
* @param crashlytics A crashlytics instance.
|
|
120
|
-
*/
|
|
121
|
-
export declare function sendUnsentReports(crashlytics: Crashlytics): void;
|
|
122
|
-
/**
|
|
123
|
-
* Specify a user identifier which will be visible in the Firebase Crashlytics console.
|
|
124
|
-
*
|
|
125
|
-
* It is recommended for privacy purposes that this value be a value that's meaningless to a third-party
|
|
126
|
-
* observer; such as an arbitrary string that ties an end-user to a record in your system e.g. a database record id.
|
|
127
|
-
*
|
|
128
|
-
* #### Example
|
|
129
|
-
*
|
|
130
|
-
* ```js
|
|
131
|
-
* const auth = getAuth();
|
|
132
|
-
* const crashlytics = getCrashlytics();
|
|
133
|
-
* // Custom user id
|
|
134
|
-
* await setUserId(crashlytics, '123456789');
|
|
135
|
-
* // Firebase auth uid
|
|
136
|
-
* await setUserId(
|
|
137
|
-
* crashlytics,
|
|
138
|
-
* auth.currentUser.uid
|
|
139
|
-
* );
|
|
140
|
-
* ```
|
|
141
|
-
* @param crashlytics A crashlytics instance.
|
|
142
|
-
* @param userId An arbitrary string that ties an end-user to a record in your system e.g. a database record id.
|
|
143
|
-
*/
|
|
144
|
-
export declare function setUserId(crashlytics: Crashlytics, userId: string): Promise<null>;
|
|
145
|
-
/**
|
|
146
|
-
* Sets a string value to be associated with the given attribute name which will be visible in the Firebase Crashlytics console.
|
|
147
|
-
*
|
|
148
|
-
* #### Example
|
|
149
|
-
*
|
|
150
|
-
* ```js
|
|
151
|
-
* const crashlytics = getCrashlytics();
|
|
152
|
-
* await setAttribute(crashlytics, 'role', 'admin');
|
|
153
|
-
* ```
|
|
154
|
-
* @param crashlytics A crashlytics instance.
|
|
155
|
-
* @param name The name of the attribute to set.
|
|
156
|
-
* @param value A string value for the given attribute.
|
|
157
|
-
*/
|
|
158
|
-
export declare function setAttribute(crashlytics: Crashlytics, name: string, value: string): Promise<null>;
|
|
159
|
-
/**
|
|
160
|
-
* Like `setAttribute` but for multiple attributes.
|
|
161
|
-
*
|
|
162
|
-
* #### Example
|
|
163
|
-
*
|
|
164
|
-
* ```js
|
|
165
|
-
* const crashlytics = getCrashlytics();
|
|
166
|
-
* await setAttributes(crashlytics, {
|
|
167
|
-
* role: 'admin',
|
|
168
|
-
* followers: '13',
|
|
169
|
-
* });
|
|
170
|
-
* ```
|
|
171
|
-
* @param crashlytics A crashlytics instance.
|
|
172
|
-
* @param attributes An object of key/value attribute name and values.
|
|
173
|
-
*/
|
|
174
|
-
export declare function setAttributes(crashlytics: Crashlytics, attributes: {
|
|
175
|
-
[key: string]: string;
|
|
176
|
-
}): Promise<null>;
|
|
177
|
-
/**
|
|
178
|
-
* Enable/disable Crashlytics reporting.
|
|
179
|
-
*
|
|
180
|
-
* Use this for opt-in first user data collection flows combined with `firebase.json` settings to disable auto collection.
|
|
181
|
-
*
|
|
182
|
-
* #### Example
|
|
183
|
-
*
|
|
184
|
-
* ```js
|
|
185
|
-
* const crashlytics = getCrashlytics();
|
|
186
|
-
* // Disable crash reporting
|
|
187
|
-
* await setCrashlyticsCollectionEnabled(crashlytics, false);
|
|
188
|
-
* ```
|
|
189
|
-
* @param crashlytics A crashlytics instance.
|
|
190
|
-
* @param enabled A boolean value representing whether to enable Crashlytics error collection.
|
|
191
|
-
*/
|
|
192
|
-
export declare function setCrashlyticsCollectionEnabled(crashlytics: Crashlytics, enabled: boolean): Promise<null>;
|
|
193
|
-
//# sourceMappingURL=modular.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modular.d.ts","sourceRoot":"","sources":["../../../../lib/modular.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;;;;GAMG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAE5C;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAGhF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAG3E;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAGtF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAGpD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAGnE;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAG9F;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAGhE;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,SAAS,CAAC,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGjF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGjG;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,CAC3B,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GACpC,OAAO,CAAC,IAAI,CAAC,CAGf;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,+BAA+B,CAC7C,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC,CAOf"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Crashlytics, Statics } from './types/crashlytics';
|
|
2
|
-
import type { ReactNativeFirebase } from '@react-native-firebase/app';
|
|
3
|
-
export declare const SDK_VERSION = "23.8.2";
|
|
4
|
-
type CrashlyticsNamespace = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp<Crashlytics, Statics> & {
|
|
5
|
-
crashlytics: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp<Crashlytics, Statics>;
|
|
6
|
-
firebase: ReactNativeFirebase.Module;
|
|
7
|
-
app(name?: string): ReactNativeFirebase.FirebaseApp;
|
|
8
|
-
};
|
|
9
|
-
declare const _default: CrashlyticsNamespace;
|
|
10
|
-
export default _default;
|
|
11
|
-
export declare const firebase: ReactNativeFirebase.FirebaseNamespacedExport<"crashlytics", Crashlytics, Statics, false>;
|
|
12
|
-
//# sourceMappingURL=namespaced.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"namespaced.d.ts","sourceRoot":"","sources":["../../../../lib/namespaced.ts"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAuHtE,eAAO,MAAM,WAAW,WAAU,CAAC;AAanC,KAAK,oBAAoB,GAAG,mBAAmB,CAAC,+BAA+B,CAC7E,WAAW,EACX,OAAO,CACR,GAAG;IACF,WAAW,EAAE,mBAAmB,CAAC,+BAA+B,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IACvF,QAAQ,EAAE,mBAAmB,CAAC,MAAM,CAAC;IACrC,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAC,WAAW,CAAC;CACrD,CAAC;wBAIgD,oBAAoB;AAAtE,wBAAuE;AAKvE,eAAO,MAAM,QAAQ,EACa,mBAAmB,CAAC,wBAAwB,CAC1E,aAAa,EACb,WAAW,EACX,OAAO,EACP,KAAK,CACN,CAAC"}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import type { ReactNativeFirebase } from '@react-native-firebase/app';
|
|
2
|
-
/**
|
|
3
|
-
* Crashlytics module instance - returned from firebase.crashlytics() or firebase.app().crashlytics()
|
|
4
|
-
*/
|
|
5
|
-
export interface Crashlytics extends ReactNativeFirebase.FirebaseModule {
|
|
6
|
-
/** The FirebaseApp this module is associated with */
|
|
7
|
-
app: ReactNativeFirebase.FirebaseApp;
|
|
8
|
-
/**
|
|
9
|
-
* Whether Crashlytics reporting is enabled.
|
|
10
|
-
*/
|
|
11
|
-
readonly isCrashlyticsCollectionEnabled: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Determines whether there are any unsent crash reports cached on the device.
|
|
14
|
-
* The callback only executes if automatic data collection is disabled.
|
|
15
|
-
*
|
|
16
|
-
* @throws Error if Crashlytics collection is enabled (reports are automatically sent)
|
|
17
|
-
*/
|
|
18
|
-
checkForUnsentReports(): Promise<boolean>;
|
|
19
|
-
/**
|
|
20
|
-
* Cause your app to crash for testing purposes. This is a native crash and will not contain a javascript stack trace.
|
|
21
|
-
* Note that crashes are intercepted by debuggers on iOS so no report will be seen under those conditions.
|
|
22
|
-
*/
|
|
23
|
-
crash(): void;
|
|
24
|
-
/**
|
|
25
|
-
* Deletes any unsent reports on the device. This method only applies if automatic data collection is disabled.
|
|
26
|
-
*/
|
|
27
|
-
deleteUnsentReports(): Promise<void>;
|
|
28
|
-
/**
|
|
29
|
-
* Returns a boolean value indicating whether the app crashed during the previous execution.
|
|
30
|
-
*/
|
|
31
|
-
didCrashOnPreviousExecution(): Promise<boolean>;
|
|
32
|
-
/**
|
|
33
|
-
* Log a message that will appear in any subsequent Crash or Non-fatal error reports.
|
|
34
|
-
*
|
|
35
|
-
* @param message The message to log.
|
|
36
|
-
*/
|
|
37
|
-
log(message: string): void;
|
|
38
|
-
/**
|
|
39
|
-
* Record a JavaScript Error.
|
|
40
|
-
*
|
|
41
|
-
* The JavaScript stack trace is converted into a mock native iOS or Android exception before submission.
|
|
42
|
-
*
|
|
43
|
-
* @param error Expects an instance of Error; e.g. classes that extend Error will also be supported.
|
|
44
|
-
* @param jsErrorName Optional string containing Javascript error name
|
|
45
|
-
*/
|
|
46
|
-
recordError(error: Error, jsErrorName?: string): void;
|
|
47
|
-
/**
|
|
48
|
-
* Enqueues any unsent reports on the device to upload to Crashlytics. This method only applies if
|
|
49
|
-
* automatic data collection is disabled.
|
|
50
|
-
*/
|
|
51
|
-
sendUnsentReports(): void;
|
|
52
|
-
/**
|
|
53
|
-
* Sets a string value to be associated with the given attribute name which will be visible in the Firebase Crashlytics console.
|
|
54
|
-
*
|
|
55
|
-
* @param name The name of the attribute to set.
|
|
56
|
-
* @param value A string value for the given attribute.
|
|
57
|
-
*/
|
|
58
|
-
setAttribute(name: string, value: string): Promise<null>;
|
|
59
|
-
/**
|
|
60
|
-
* Like `setAttribute` but for multiple attributes.
|
|
61
|
-
*
|
|
62
|
-
* @param attributes An object of key/value attribute name and values.
|
|
63
|
-
*/
|
|
64
|
-
setAttributes(attributes: {
|
|
65
|
-
[key: string]: string;
|
|
66
|
-
}): Promise<null>;
|
|
67
|
-
/**
|
|
68
|
-
* Specify a user identifier which will be visible in the Firebase Crashlytics console.
|
|
69
|
-
*
|
|
70
|
-
* It is recommended for privacy purposes that this value be a value that's meaningless to a third-party
|
|
71
|
-
* observer; such as an arbitrary string that ties an end-user to a record in your system e.g. a database record id.
|
|
72
|
-
*
|
|
73
|
-
* @param userId An arbitrary string that ties an end-user to a record in your system e.g. a database record id.
|
|
74
|
-
*/
|
|
75
|
-
setUserId(userId: string): Promise<null>;
|
|
76
|
-
/**
|
|
77
|
-
* Enable/disable Crashlytics reporting.
|
|
78
|
-
*
|
|
79
|
-
* Use this for opt-in first user data collection flows combined with `firebase.json` settings to disable auto collection.
|
|
80
|
-
*
|
|
81
|
-
* @param enabled A boolean value representing whether to enable Crashlytics error collection.
|
|
82
|
-
*/
|
|
83
|
-
setCrashlyticsCollectionEnabled(enabled: boolean): Promise<null>;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Static properties available on firebase.crashlytics
|
|
87
|
-
*/
|
|
88
|
-
export interface Statics {
|
|
89
|
-
SDK_VERSION: string;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* FirebaseApp type with crashlytics() method.
|
|
93
|
-
* @deprecated Import FirebaseApp from '@react-native-firebase/app' instead.
|
|
94
|
-
* The crashlytics() method is added via module augmentation.
|
|
95
|
-
*/
|
|
96
|
-
export type FirebaseApp = ReactNativeFirebase.FirebaseApp;
|
|
97
|
-
declare module '@react-native-firebase/app' {
|
|
98
|
-
namespace ReactNativeFirebase {
|
|
99
|
-
interface Module {
|
|
100
|
-
crashlytics: FirebaseModuleWithStaticsAndApp<Crashlytics, Statics>;
|
|
101
|
-
}
|
|
102
|
-
interface FirebaseApp {
|
|
103
|
-
crashlytics(): Crashlytics;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
type _Statics = Statics;
|
|
108
|
-
/**
|
|
109
|
-
* @deprecated Use the exported types directly instead.
|
|
110
|
-
* FirebaseCrashlyticsTypes namespace is kept for backwards compatibility.
|
|
111
|
-
*/
|
|
112
|
-
export declare namespace FirebaseCrashlyticsTypes {
|
|
113
|
-
type Module = Crashlytics;
|
|
114
|
-
type Statics = _Statics;
|
|
115
|
-
}
|
|
116
|
-
export {};
|
|
117
|
-
//# sourceMappingURL=crashlytics.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crashlytics.d.ts","sourceRoot":"","sources":["../../../../../lib/types/crashlytics.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAItE;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,mBAAmB,CAAC,cAAc;IACrE,qDAAqD;IACrD,GAAG,EAAE,mBAAmB,CAAC,WAAW,CAAC;IAErC;;OAEG;IACH,QAAQ,CAAC,8BAA8B,EAAE,OAAO,CAAC;IAEjD;;;;;OAKG;IACH,qBAAqB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAE1C;;;OAGG;IACH,KAAK,IAAI,IAAI,CAAC;IAEd;;OAEG;IACH,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAErC;;OAEG;IACH,2BAA2B,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAEhD;;;;OAIG;IACH,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;;;;;OAOG;IACH,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtD;;;OAGG;IACH,iBAAiB,IAAI,IAAI,CAAC;IAE1B;;;;;OAKG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzD;;;;OAIG;IACH,aAAa,CAAC,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpE;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzC;;;;;;OAMG;IACH,+BAA+B,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAClE;AAID;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,mBAAmB,CAAC,WAAW,CAAC;AAK1D,OAAO,QAAQ,4BAA4B,CAAC;IAC1C,UAAU,mBAAmB,CAAC;QAC5B,UAAU,MAAM;YACd,WAAW,EAAE,+BAA+B,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;SACpE;QACD,UAAU,WAAW;YACnB,WAAW,IAAI,WAAW,CAAC;SAC5B;KACF;CACF;AAGD,KAAK,QAAQ,GAAG,OAAO,CAAC;AAExB;;;GAGG;AAEH,yBAAiB,wBAAwB,CAAC;IAExC,KAAY,MAAM,GAAG,WAAW,CAAC;IACjC,KAAY,OAAO,GAAG,QAAQ,CAAC;CAChC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../lib/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|