[core][app][js] remove delete() app method as it only works on ios, wait for android sdk support.
This commit is contained in:
parent
49d29b53f2
commit
4f6c387e3e
|
@ -109,13 +109,15 @@ export default class FirebaseApp {
|
|||
* @return {Promise}
|
||||
*/
|
||||
delete() {
|
||||
if (this._name === INTERNALS.STRINGS.DEFAULT_APP_NAME && this._nativeInitialized) {
|
||||
return Promise.reject(
|
||||
new Error('Unable to delete the default native firebase app instance.'),
|
||||
);
|
||||
}
|
||||
|
||||
return FirebaseCoreModule.deleteApp(this._name);
|
||||
throw new Error(INTERNALS.STRINGS.ERROR_UNSUPPORTED_CLASS_METHOD('app', 'delete'));
|
||||
// TODO only the ios sdk currently supports delete, add back in when android also supports it
|
||||
// if (this._name === INTERNALS.STRINGS.DEFAULT_APP_NAME && this._nativeInitialized) {
|
||||
// return Promise.reject(
|
||||
// new Error('Unable to delete the default native firebase app instance.'),
|
||||
// );
|
||||
// }
|
||||
//
|
||||
// return FirebaseCoreModule.deleteApp(this._name);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue