[js] added firebase.storage.Native.* constants
This commit is contained in:
parent
f132ddb614
commit
d15ae5cb27
|
@ -91,18 +91,6 @@ export default class Storage extends Base {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static constants = {
|
|
||||||
MAIN_BUNDLE_PATH: FirebaseStorage.MAIN_BUNDLE_PATH,
|
|
||||||
CACHES_DIRECTORY_PATH: FirebaseStorage.CACHES_DIRECTORY_PATH,
|
|
||||||
DOCUMENT_DIRECTORY_PATH: FirebaseStorage.DOCUMENT_DIRECTORY_PATH,
|
|
||||||
EXTERNAL_DIRECTORY_PATH: FirebaseStorage.EXTERNAL_DIRECTORY_PATH,
|
|
||||||
EXTERNAL_STORAGE_DIRECTORY_PATH: FirebaseStorage.EXTERNAL_STORAGE_DIRECTORY_PATH,
|
|
||||||
TEMP_DIRECTORY_PATH: FirebaseStorage.TEMP_DIRECTORY_PATH,
|
|
||||||
LIBRARY_DIRECTORY_PATH: FirebaseStorage.LIBRARY_DIRECTORY_PATH,
|
|
||||||
FILETYPE_REGULAR: FirebaseStorage.FILETYPE_REGULAR,
|
|
||||||
FILETYPE_DIRECTORY: FirebaseStorage.FILETYPE_DIRECTORY,
|
|
||||||
};
|
|
||||||
|
|
||||||
get namespace(): string {
|
get namespace(): string {
|
||||||
return 'firebase:storage';
|
return 'firebase:storage';
|
||||||
}
|
}
|
||||||
|
@ -119,5 +107,16 @@ export const statics = {
|
||||||
CANCELED: 'CANCELED',
|
CANCELED: 'CANCELED',
|
||||||
ERROR: 'ERROR',
|
ERROR: 'ERROR',
|
||||||
},
|
},
|
||||||
|
Native: {
|
||||||
|
MAIN_BUNDLE_PATH: FirebaseStorage.MAIN_BUNDLE_PATH,
|
||||||
|
CACHES_DIRECTORY_PATH: FirebaseStorage.CACHES_DIRECTORY_PATH,
|
||||||
|
DOCUMENT_DIRECTORY_PATH: FirebaseStorage.DOCUMENT_DIRECTORY_PATH,
|
||||||
|
EXTERNAL_DIRECTORY_PATH: FirebaseStorage.EXTERNAL_DIRECTORY_PATH,
|
||||||
|
EXTERNAL_STORAGE_DIRECTORY_PATH: FirebaseStorage.EXTERNAL_STORAGE_DIRECTORY_PATH,
|
||||||
|
TEMP_DIRECTORY_PATH: FirebaseStorage.TEMP_DIRECTORY_PATH,
|
||||||
|
LIBRARY_DIRECTORY_PATH: FirebaseStorage.LIBRARY_DIRECTORY_PATH,
|
||||||
|
FILETYPE_REGULAR: FirebaseStorage.FILETYPE_REGULAR,
|
||||||
|
FILETYPE_DIRECTORY: FirebaseStorage.FILETYPE_DIRECTORY,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue