Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 8d4f308

Browse files
#75 feat(Storage): file removal ability.
1 parent df04cea commit 8d4f308

File tree

4 files changed

+31
-2
lines changed

4 files changed

+31
-2
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
<img src="docs/images/firebase-logo.png" width="116px" height="32px" alt="Firebase"/>
22

3+
## 3.4.4 (2016, July 17)
4+
5+
[Full changelog](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/compare/3.4.3...3.4.4)
6+
7+
### SDK versions
8+
If version numbers changed clean your platform folders to avoid build errors.
9+
10+
- iOS: 3.3.x
11+
- Android: 9.2.0
12+
13+
### New
14+
- [#75](#75) [Nathan Walker](https://github.com/NathanWalker) added the ability to remove files from Firebase Storage, thanks Nathan!
15+
16+
17+
318
## 3.4.3 (2016, July 16)
419

520
[Full changelog](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/compare/3.4.2...3.4.3)

firebase.android.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ firebase.removeFile = function (arg) {
10781078
.addOnFailureListener(onFailureListener);
10791079

10801080
} catch (ex) {
1081-
console.log("Error in firebase.getDownloadUrl: " + ex);
1081+
console.log("Error in firebase.removeFile: " + ex);
10821082
reject(ex);
10831083
}
10841084
});

firebase.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,19 @@ declare module "nativescript-plugin-firebase" {
307307
remoteFullPath: string;
308308
}
309309

310+
export interface RemoveFileOptions {
311+
/**
312+
* If you didn't pass 'storageBucket' during init() you will need to do it now.
313+
* Takes the form of 'gs://n-plugin-test.appspot.com' and can be found in the Firebase console.
314+
*/
315+
bucket?: string;
316+
/**
317+
* The full path of an existing file in your Firebase storage
318+
* Example: 'uploads/images/telerik-logo-uploaded.png'
319+
*/
320+
remoteFullPath: string;
321+
}
322+
310323
export interface SendCrashLogOptions {
311324
/**
312325
* Any custom logging you want to send to Firebase.
@@ -352,6 +365,7 @@ declare module "nativescript-plugin-firebase" {
352365
export function uploadFile(options: UploadFileOptions): Promise<UploadFileResult>;
353366
export function downloadFile(options: DownloadFileOptions): Promise<any>;
354367
export function getDownloadUrl(options: GetDownloadUrlOptions): Promise<string>;
368+
export function removeFile(options: RemoveFileOptions): Promise<any>;
355369

356370
// crash logging
357371
// export function sendCrashLog(options: SendCrashLogOptions): Promise<any>;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-plugin-firebase",
3-
"version": "3.4.3",
3+
"version": "3.4.4",
44
"description" : "Fire. Base. Firebase!",
55
"main" : "firebase.js",
66
"nativescript": {

0 commit comments

Comments
 (0)