This repository was archived by the owner on Apr 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +31
-2
lines changed
Expand file tree Collapse file tree 4 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff 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 } ) ;
Original file line number Diff line number Diff 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>;
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments