[iid] Rename instanceid to iid

This commit is contained in:
Chris Bianca 2018-03-23 14:59:00 +00:00
parent f75604a675
commit 477e509101
5 changed files with 12 additions and 12 deletions

View File

@ -46,7 +46,7 @@ All in all, RNFirebase provides much faster performance (~2x) over the web SDK a
| _-- Multiple Apps_ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | _-- Multiple Apps_ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **Cloud Firestore** | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | **?** | | **Cloud Firestore** | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | **?** |
| _-- Transactions | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | | _-- Transactions | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ |
| **Cloud Messaging (FCM)** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | **?** | | **Cloud Messaging (FCM)** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
| **Crashlytics**           | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ | | **Crashlytics**           | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ |
| **Crash Reporting** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | | **Crash Reporting** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
| **Dynamic Links** | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ | | **Dynamic Links** | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ |

View File

@ -18,7 +18,7 @@ import Crashlytics, {
} from '../fabric/crashlytics'; } from '../fabric/crashlytics';
import Database, { NAMESPACE as DatabaseNamespace } from '../database'; import Database, { NAMESPACE as DatabaseNamespace } from '../database';
import Firestore, { NAMESPACE as FirestoreNamespace } from '../firestore'; import Firestore, { NAMESPACE as FirestoreNamespace } from '../firestore';
import InstanceId, { NAMESPACE as InstanceIdNamespace } from '../instanceid'; import InstanceId, { NAMESPACE as InstanceIdNamespace } from '../iid';
import Invites, { NAMESPACE as InvitesNamespace } from '../invites'; import Invites, { NAMESPACE as InvitesNamespace } from '../invites';
import Links, { NAMESPACE as LinksNamespace } from '../links'; import Links, { NAMESPACE as LinksNamespace } from '../links';
import Messaging, { NAMESPACE as MessagingNamespace } from '../messaging'; import Messaging, { NAMESPACE as MessagingNamespace } from '../messaging';
@ -49,7 +49,7 @@ export default class App {
crashlytics: () => Crashlytics, crashlytics: () => Crashlytics,
}; };
firestore: () => Firestore; firestore: () => Firestore;
instanceid: () => InstanceId; iid: () => InstanceId;
invites: () => Invites; invites: () => Invites;
links: () => Links; links: () => Links;
messaging: () => Messaging; messaging: () => Messaging;
@ -91,7 +91,7 @@ export default class App {
crashlytics: APPS.appModule(this, CrashlyticsNamespace, Crashlytics), crashlytics: APPS.appModule(this, CrashlyticsNamespace, Crashlytics),
}; };
this.firestore = APPS.appModule(this, FirestoreNamespace, Firestore); this.firestore = APPS.appModule(this, FirestoreNamespace, Firestore);
this.instanceid = APPS.appModule(this, InstanceIdNamespace, InstanceId); this.iid = APPS.appModule(this, InstanceIdNamespace, InstanceId);
this.invites = APPS.appModule(this, InvitesNamespace, Invites); this.invites = APPS.appModule(this, InvitesNamespace, Invites);
this.links = APPS.appModule(this, LinksNamespace, Links); this.links = APPS.appModule(this, LinksNamespace, Links);
this.messaging = APPS.appModule(this, MessagingNamespace, Messaging); this.messaging = APPS.appModule(this, MessagingNamespace, Messaging);

View File

@ -41,7 +41,7 @@ import {
import { import {
statics as InstanceIdStatics, statics as InstanceIdStatics,
MODULE_NAME as InstanceIdModuleName, MODULE_NAME as InstanceIdModuleName,
} from '../instanceid'; } from '../iid';
import { import {
statics as InvitesStatics, statics as InvitesStatics,
MODULE_NAME as InvitesModuleName, MODULE_NAME as InvitesModuleName,
@ -102,7 +102,7 @@ class Firebase {
database: DatabaseModule; database: DatabaseModule;
fabric: FabricModule; fabric: FabricModule;
firestore: FirestoreModule; firestore: FirestoreModule;
instanceid: InstanceIdModule; iid: InstanceIdModule;
invites: InvitesModule; invites: InvitesModule;
links: LinksModule; links: LinksModule;
messaging: MessagingModule; messaging: MessagingModule;
@ -148,8 +148,8 @@ class Firebase {
FirestoreStatics, FirestoreStatics,
FirestoreModuleName FirestoreModuleName
); );
this.instanceid = APPS.moduleAndStatics( this.iid = APPS.moduleAndStatics(
'instanceid', 'iid',
InstanceIdStatics, InstanceIdStatics,
InstanceIdModuleName InstanceIdModuleName
); );

View File

@ -8,7 +8,7 @@ import { getNativeModule } from '../../utils/native';
import type App from '../core/app'; import type App from '../core/app';
export const MODULE_NAME = 'RNFirebaseInstanceId'; export const MODULE_NAME = 'RNFirebaseInstanceId';
export const NAMESPACE = 'instanceid'; export const NAMESPACE = 'iid';
export default class InstanceId extends ModuleBase { export default class InstanceId extends ModuleBase {
constructor(app: App) { constructor(app: App) {

View File

@ -15,8 +15,8 @@ import type Database from '../modules/database';
import { typeof statics as DatabaseStatics } from '../modules/database'; import { typeof statics as DatabaseStatics } from '../modules/database';
import type Firestore from '../modules/firestore'; import type Firestore from '../modules/firestore';
import { typeof statics as FirestoreStatics } from '../modules/firestore'; import { typeof statics as FirestoreStatics } from '../modules/firestore';
import type InstanceId from '../modules/instanceid'; import type InstanceId from '../modules/iid';
import { typeof statics as InstanceIdStatics } from '../modules/instanceid'; import { typeof statics as InstanceIdStatics } from '../modules/iid';
import type Invites from '../modules/invites'; import type Invites from '../modules/invites';
import { typeof statics as InvitesStatics } from '../modules/invites'; import { typeof statics as InvitesStatics } from '../modules/invites';
import type Links from '../modules/links'; import type Links from '../modules/links';
@ -81,7 +81,7 @@ export type FirebaseNamespace =
| 'crashlytics' | 'crashlytics'
| 'database' | 'database'
| 'firestore' | 'firestore'
| 'instanceid' | 'iid'
| 'invites' | 'invites'
| 'links' | 'links'
| 'messaging' | 'messaging'