@@ -57,7 +57,7 @@ public void onCatalystInstanceDestroy() {
57
57
}
58
58
59
59
/**
60
- * @url https://firebase.google.com/docs/reference/js/firebase.storage.Reference#delete
60
+ * @link https://firebase.google.com/docs/reference/js/firebase.storage.Reference#delete
61
61
*/
62
62
@ ReactMethod
63
63
public void delete (String appName , String url , final Promise promise ) {
@@ -76,7 +76,7 @@ public void delete(String appName, String url, final Promise promise) {
76
76
}
77
77
78
78
/**
79
- * @url https://firebase.google.com/docs/reference/js/firebase.storage.Reference#getDownloadURL
79
+ * @link https://firebase.google.com/docs/reference/js/firebase.storage.Reference#getDownloadURL
80
80
*/
81
81
@ ReactMethod
82
82
public void getDownloadURL (String appName , final String url , final Promise promise ) {
@@ -97,7 +97,7 @@ public void getDownloadURL(String appName, final String url, final Promise promi
97
97
}
98
98
99
99
/**
100
- * @url https://firebase.google.com/docs/reference/js/firebase.storage.Reference#getMetadata
100
+ * @link https://firebase.google.com/docs/reference/js/firebase.storage.Reference#getMetadata
101
101
*/
102
102
@ ReactMethod
103
103
public void getMetadata (String appName , String url , Promise promise ) {
@@ -115,6 +115,9 @@ public void getMetadata(String appName, String url, Promise promise) {
115
115
}
116
116
}
117
117
118
+ /**
119
+ * @link https://firebase.google.com/docs/reference/js/firebase.storage.Reference#list
120
+ */
118
121
@ ReactMethod
119
122
public void list (String appName , String url , ReadableMap listOptions , Promise promise ) {
120
123
try {
@@ -132,7 +135,7 @@ public void list(String appName, String url, ReadableMap listOptions, Promise pr
132
135
133
136
list .addOnCompleteListener (getExecutor (), task -> {
134
137
if (task .isSuccessful ()) {
135
- promise .resolve (getListResultAsMap (task .getResult ()));
138
+ promise .resolve (getListResultAsMap (Objects . requireNonNull ( task .getResult () )));
136
139
} else {
137
140
promiseRejectStorageException (promise , task .getException ());
138
141
}
@@ -142,13 +145,16 @@ public void list(String appName, String url, ReadableMap listOptions, Promise pr
142
145
}
143
146
}
144
147
148
+ /**
149
+ * @link https://firebase.google.com/docs/reference/js/firebase.storage.Reference#listAll
150
+ */
145
151
@ ReactMethod
146
152
public void listAll (String appName , String url , Promise promise ) {
147
153
try {
148
154
StorageReference reference = getReferenceFromUrl (url , appName );
149
155
reference .listAll ().addOnCompleteListener (getExecutor (), task -> {
150
156
if (task .isSuccessful ()) {
151
- promise .resolve (getListResultAsMap (task .getResult ()));
157
+ promise .resolve (getListResultAsMap (Objects . requireNonNull ( task .getResult () )));
152
158
} else {
153
159
promiseRejectStorageException (promise , task .getException ());
154
160
}
@@ -159,7 +165,7 @@ public void listAll(String appName, String url, Promise promise) {
159
165
}
160
166
161
167
/**
162
- * @url https://firebase.google.com/docs/reference/js/firebase.storage.Reference#updateMetadata
168
+ * @link https://firebase.google.com/docs/reference/js/firebase.storage.Reference#updateMetadata
163
169
*/
164
170
@ ReactMethod
165
171
public void updateMetadata (
@@ -185,7 +191,7 @@ public void updateMetadata(
185
191
}
186
192
187
193
/**
188
- * @url https://firebase.google.com/docs/reference/js/firebase.storage.Storage#setMaxDownloadRetryTime
194
+ * @link https://firebase.google.com/docs/reference/js/firebase.storage.Storage#setMaxDownloadRetryTime
189
195
*/
190
196
@ ReactMethod
191
197
public void setMaxDownloadRetryTime (String appName , double milliseconds , Promise promise ) {
@@ -196,7 +202,7 @@ public void setMaxDownloadRetryTime(String appName, double milliseconds, Promise
196
202
}
197
203
198
204
/**
199
- * @url https://firebase.google.com/docs/reference/js/firebase.storage.Storage#setMaxOperationRetryTime
205
+ * @link https://firebase.google.com/docs/reference/js/firebase.storage.Storage#setMaxOperationRetryTime
200
206
*/
201
207
@ ReactMethod
202
208
public void setMaxOperationRetryTime (String appName , double milliseconds , Promise promise ) {
@@ -207,7 +213,7 @@ public void setMaxOperationRetryTime(String appName, double milliseconds, Promis
207
213
}
208
214
209
215
/**
210
- * @url https://firebase.google.com/docs/reference/js/firebase.storage.Storage#setMaxUploadRetryTime
216
+ * @link https://firebase.google.com/docs/reference/js/firebase.storage.Storage#setMaxUploadRetryTime
211
217
*/
212
218
@ ReactMethod
213
219
public void setMaxUploadRetryTime (String appName , double milliseconds , Promise promise ) {
@@ -218,7 +224,7 @@ public void setMaxUploadRetryTime(String appName, double milliseconds, Promise p
218
224
}
219
225
220
226
/**
221
- * @url https://firebase.google.com/docs/reference/js/firebase.storage.Reference#writeToFile
227
+ * @link https://firebase.google.com/docs/reference/js/firebase.storage.Reference#writeToFile
222
228
*/
223
229
@ ReactMethod
224
230
public void writeToFile (
@@ -253,7 +259,7 @@ public void writeToFile(
253
259
}
254
260
255
261
/**
256
- * @url https://firebase.google.com/docs/reference/js/firebase.storage.Reference#putString
262
+ * @link https://firebase.google.com/docs/reference/js/firebase.storage.Reference#putString
257
263
*/
258
264
@ ReactMethod
259
265
public void putString (
@@ -280,7 +286,7 @@ public void putString(
280
286
}
281
287
282
288
/**
283
- * @url https://firebase.google.com/docs/reference/js/firebase.storage.Reference#putFile
289
+ * @link https://firebase.google.com/docs/reference/js/firebase.storage.Reference#putFile
284
290
*/
285
291
@ ReactMethod
286
292
public void putFile (
0 commit comments