Skip to content

Commit b7bf5eb

Browse files
committed
feat: performance , installations & dynamic-links
1 parent fcc3cb9 commit b7bf5eb

File tree

195 files changed

+45137
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+45137
-15
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ npm start
1212
- @nativescript/firebase-core
1313
- @nativescript/firebase-crashlytics
1414
- @nativescript/firebase-database
15+
- @nativescript/firebase-dynamic-links
1516
- @nativescript/firebase-firestore
1617
- @nativescript/firebase-in-app-messaging
18+
- @nativescript/firebase-installations
19+
- @nativescript/firebase-messaging
20+
- @nativescript/firebase-performance
1721
- @nativescript/firebase-remote-config
1822
- @nativescript/firebase-storage
1923

apps/demo-angular/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
"@nativescript/firebase-app-check": "file:../../dist/packages/firebase-app-check",
1313
"@nativescript/firebase-remote-config": "file:../../dist/packages/firebase-remote-config",
1414
"@nativescript/firebase-storage": "file:../../dist/packages/firebase-storage",
15-
"@nativescript/firebase-in-app-messaging": "file:../../dist/packages/firebase-in-app-messaging"
15+
"@nativescript/firebase-in-app-messaging": "file:../../dist/packages/firebase-in-app-messaging",
16+
"@nativescript/firebase-performance": "file:../../dist/packages/firebase-performance",
17+
"@nativescript/firebase-installations": "file:../../dist/packages/firebase-installations",
18+
"@nativescript/firebase-dynamic-links": "file:../../dist/packages/firebase-dynamic-links",
19+
"@nativescript/firebase-messaging": "file:../../dist/packages/firebase-messaging"
1620
},
1721
"devDependencies": {
1822
"@nativescript/android": "8.0.0",

apps/demo-angular/src/app-routing.module.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ const routes: Routes = [
1414
{ path: 'firebase-core', loadChildren: () => import('./plugin-demos/firebase-core.module').then(m => m.FirebaseCoreModule) },
1515
{ path: 'firebase-crashlytics', loadChildren: () => import('./plugin-demos/firebase-crashlytics.module').then(m => m.FirebaseCrashlyticsModule) },
1616
{ path: 'firebase-database', loadChildren: () => import('./plugin-demos/firebase-database.module').then(m => m.FirebaseDatabaseModule) },
17+
{ path: 'firebase-dynamic-links', loadChildren: () => import('./plugin-demos/firebase-dynamic-links.module').then(m => m.FirebaseDynamicLinksModule) },
1718
{ path: 'firebase-firestore', loadChildren: () => import('./plugin-demos/firebase-firestore.module').then(m => m.FirebaseFirestoreModule) },
1819
{ path: 'firebase-in-app-messaging', loadChildren: () => import('./plugin-demos/firebase-in-app-messaging.module').then(m => m.FirebaseInAppMessagingModule) },
20+
{ path: 'firebase-installations', loadChildren: () => import('./plugin-demos/firebase-installations.module').then(m => m.FirebaseInstallationsModule) },
21+
{ path: 'firebase-messaging', loadChildren: () => import('./plugin-demos/firebase-messaging.module').then(m => m.FirebaseMessagingModule) },
22+
{ path: 'firebase-performance', loadChildren: () => import('./plugin-demos/firebase-performance.module').then(m => m.FirebasePerformanceModule) },
1923
{ path: 'firebase-remote-config', loadChildren: () => import('./plugin-demos/firebase-remote-config.module').then(m => m.FirebaseRemoteConfigModule) },
2024
{ path: 'firebase-storage', loadChildren: () => import('./plugin-demos/firebase-storage.module').then(m => m.FirebaseStorageModule) }
2125
];

apps/demo-angular/src/home.component.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,24 @@ export class HomeComponent {
2727
{
2828
name: 'firebase-database'
2929
},
30+
{
31+
name: 'firebase-dynamic-links'
32+
},
3033
{
3134
name: 'firebase-firestore'
3235
},
3336
{
3437
name: 'firebase-in-app-messaging'
3538
},
39+
{
40+
name: 'firebase-installations'
41+
},
42+
{
43+
name: 'firebase-messaging'
44+
},
45+
{
46+
name: 'firebase-performance'
47+
},
3648
{
3749
name: 'firebase-remote-config'
3850
},
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<ActionBar title="firebase-dynamic-links" class="action-bar"> </ActionBar>
2+
<StackLayout class="p-20">
3+
<ScrollView class="h-full">
4+
<StackLayout>
5+
<Button text="Test firebase-dynamic-links" (tap)="demoShared.testIt()" class="btn btn-primary"></Button>
6+
</StackLayout>
7+
</ScrollView>
8+
</StackLayout>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { Component, NgZone } from '@angular/core';
2+
import { DemoSharedFirebaseDynamicLinks } from '@demo/shared';
3+
import { } from '@nativescript/firebase-dynamic-links';
4+
5+
@Component({
6+
selector: 'demo-firebase-dynamic-links',
7+
templateUrl: 'firebase-dynamic-links.component.html',
8+
})
9+
export class FirebaseDynamicLinksComponent {
10+
11+
demoShared: DemoSharedFirebaseDynamicLinks;
12+
13+
constructor(private _ngZone: NgZone) {}
14+
15+
ngOnInit() {
16+
this.demoShared = new DemoSharedFirebaseDynamicLinks();
17+
}
18+
19+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2+
import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3+
import { FirebaseDynamicLinksComponent } from './firebase-dynamic-links.component';
4+
5+
@NgModule({
6+
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseDynamicLinksComponent }])],
7+
declarations: [FirebaseDynamicLinksComponent],
8+
schemas: [ NO_ERRORS_SCHEMA]
9+
})
10+
export class FirebaseDynamicLinksModule {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<ActionBar title="firebase-installations" class="action-bar"> </ActionBar>
2+
<StackLayout class="p-20">
3+
<ScrollView class="h-full">
4+
<StackLayout>
5+
<Button text="Test firebase-installations" (tap)="demoShared.testIt()" class="btn btn-primary"></Button>
6+
</StackLayout>
7+
</ScrollView>
8+
</StackLayout>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { Component, NgZone } from '@angular/core';
2+
import { DemoSharedFirebaseInstallations } from '@demo/shared';
3+
import { } from '@nativescript/firebase-installations';
4+
5+
@Component({
6+
selector: 'demo-firebase-installations',
7+
templateUrl: 'firebase-installations.component.html',
8+
})
9+
export class FirebaseInstallationsComponent {
10+
11+
demoShared: DemoSharedFirebaseInstallations;
12+
13+
constructor(private _ngZone: NgZone) {}
14+
15+
ngOnInit() {
16+
this.demoShared = new DemoSharedFirebaseInstallations();
17+
}
18+
19+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2+
import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3+
import { FirebaseInstallationsComponent } from './firebase-installations.component';
4+
5+
@NgModule({
6+
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseInstallationsComponent }])],
7+
declarations: [FirebaseInstallationsComponent],
8+
schemas: [ NO_ERRORS_SCHEMA]
9+
})
10+
export class FirebaseInstallationsModule {}

0 commit comments

Comments
 (0)