[crashlytics] Move to top level crashlytics namespace

This commit is contained in:
Chris Bianca
2018-04-03 16:51:05 +01:00
parent 90d35ef6e9
commit b21e7d0eab
9 changed files with 35 additions and 57 deletions

View File

@@ -188,9 +188,6 @@ export default {
// default to the 'DEFAULT' app if no arg provided - will throw an error
// if default app not initialized
_app = this.app(DEFAULT_APP_NAME);
if (namespace === 'crashlytics') {
return _app.fabric[namespace]();
}
// $FlowExpectedError: Flow doesn't support indexable signatures on classes: https://github.com/facebook/flow/issues/1323
const module = _app[namespace];
return module(_serviceUrl);