[iid] Rename instanceid to iid
This commit is contained in:
parent
f75604a675
commit
477e509101
|
@ -46,7 +46,7 @@ All in all, RNFirebase provides much faster performance (~2x) over the web SDK a
|
|||
| _-- Multiple Apps_ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| **Cloud Firestore** | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | **?** |
|
||||
| _-- Transactions | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ |
|
||||
| **Cloud Messaging (FCM)** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | **?** |
|
||||
| **Cloud Messaging (FCM)** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
|
||||
| **Crashlytics** | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ |
|
||||
| **Crash Reporting** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
|
||||
| **Dynamic Links** | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ |
|
||||
|
|
|
@ -18,7 +18,7 @@ import Crashlytics, {
|
|||
} from '../fabric/crashlytics';
|
||||
import Database, { NAMESPACE as DatabaseNamespace } from '../database';
|
||||
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 Links, { NAMESPACE as LinksNamespace } from '../links';
|
||||
import Messaging, { NAMESPACE as MessagingNamespace } from '../messaging';
|
||||
|
@ -49,7 +49,7 @@ export default class App {
|
|||
crashlytics: () => Crashlytics,
|
||||
};
|
||||
firestore: () => Firestore;
|
||||
instanceid: () => InstanceId;
|
||||
iid: () => InstanceId;
|
||||
invites: () => Invites;
|
||||
links: () => Links;
|
||||
messaging: () => Messaging;
|
||||
|
@ -91,7 +91,7 @@ export default class App {
|
|||
crashlytics: APPS.appModule(this, CrashlyticsNamespace, Crashlytics),
|
||||
};
|
||||
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.links = APPS.appModule(this, LinksNamespace, Links);
|
||||
this.messaging = APPS.appModule(this, MessagingNamespace, Messaging);
|
||||
|
|
|
@ -41,7 +41,7 @@ import {
|
|||
import {
|
||||
statics as InstanceIdStatics,
|
||||
MODULE_NAME as InstanceIdModuleName,
|
||||
} from '../instanceid';
|
||||
} from '../iid';
|
||||
import {
|
||||
statics as InvitesStatics,
|
||||
MODULE_NAME as InvitesModuleName,
|
||||
|
@ -102,7 +102,7 @@ class Firebase {
|
|||
database: DatabaseModule;
|
||||
fabric: FabricModule;
|
||||
firestore: FirestoreModule;
|
||||
instanceid: InstanceIdModule;
|
||||
iid: InstanceIdModule;
|
||||
invites: InvitesModule;
|
||||
links: LinksModule;
|
||||
messaging: MessagingModule;
|
||||
|
@ -148,8 +148,8 @@ class Firebase {
|
|||
FirestoreStatics,
|
||||
FirestoreModuleName
|
||||
);
|
||||
this.instanceid = APPS.moduleAndStatics(
|
||||
'instanceid',
|
||||
this.iid = APPS.moduleAndStatics(
|
||||
'iid',
|
||||
InstanceIdStatics,
|
||||
InstanceIdModuleName
|
||||
);
|
||||
|
|
|
@ -8,7 +8,7 @@ import { getNativeModule } from '../../utils/native';
|
|||
import type App from '../core/app';
|
||||
|
||||
export const MODULE_NAME = 'RNFirebaseInstanceId';
|
||||
export const NAMESPACE = 'instanceid';
|
||||
export const NAMESPACE = 'iid';
|
||||
|
||||
export default class InstanceId extends ModuleBase {
|
||||
constructor(app: App) {
|
|
@ -15,8 +15,8 @@ import type Database from '../modules/database';
|
|||
import { typeof statics as DatabaseStatics } from '../modules/database';
|
||||
import type Firestore from '../modules/firestore';
|
||||
import { typeof statics as FirestoreStatics } from '../modules/firestore';
|
||||
import type InstanceId from '../modules/instanceid';
|
||||
import { typeof statics as InstanceIdStatics } from '../modules/instanceid';
|
||||
import type InstanceId from '../modules/iid';
|
||||
import { typeof statics as InstanceIdStatics } from '../modules/iid';
|
||||
import type Invites from '../modules/invites';
|
||||
import { typeof statics as InvitesStatics } from '../modules/invites';
|
||||
import type Links from '../modules/links';
|
||||
|
@ -81,7 +81,7 @@ export type FirebaseNamespace =
|
|||
| 'crashlytics'
|
||||
| 'database'
|
||||
| 'firestore'
|
||||
| 'instanceid'
|
||||
| 'iid'
|
||||
| 'invites'
|
||||
| 'links'
|
||||
| 'messaging'
|
||||
|
|
Loading…
Reference in New Issue