[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}
|
* @return {Promise}
|
||||||
*/
|
*/
|
||||||
delete() {
|
delete() {
|
||||||
if (this._name === INTERNALS.STRINGS.DEFAULT_APP_NAME && this._nativeInitialized) {
|
throw new Error(INTERNALS.STRINGS.ERROR_UNSUPPORTED_CLASS_METHOD('app', 'delete'));
|
||||||
return Promise.reject(
|
// TODO only the ios sdk currently supports delete, add back in when android also supports it
|
||||||
new Error('Unable to delete the default native firebase app instance.'),
|
// 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);
|
// }
|
||||||
|
//
|
||||||
|
// return FirebaseCoreModule.deleteApp(this._name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue