Skip to content

Commit daa3f05

Browse files
committed
feat: firebase
1 parent 64c75fa commit daa3f05

17 files changed

+250
-1
lines changed

.vitepress/config.js

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,71 @@ function getPluginsSidebar() {
316316
},
317317
],
318318
},
319+
{
320+
text: 'NativeScript Firebase Plugins',
321+
children: [
322+
{
323+
text: 'Analytics',
324+
link: '/plugins/firebase/analytics',
325+
},
326+
{
327+
text: 'App Check',
328+
link: '/plugins/firebase/app-check',
329+
},
330+
{
331+
text: 'Auth',
332+
link: '/plugins/firebase/auth',
333+
},
334+
{
335+
text: 'Core',
336+
link: '/plugins/firebase/core',
337+
},
338+
{
339+
text: 'Crashlytics',
340+
link: '/plugins/firebase/crashlytics',
341+
},
342+
{
343+
text: 'Database',
344+
link: '/plugins/firebase/database',
345+
},
346+
{
347+
text: 'Dynamic Links',
348+
link: '/plugins/firebase/dynamic-links',
349+
},
350+
{
351+
text: 'Firestore',
352+
link: '/plugins/firebase/firestore',
353+
},
354+
{
355+
text: 'Functions',
356+
link: '/plugins/firebase/functions',
357+
},
358+
{
359+
text: 'In-App Messaging',
360+
link: '/plugins/firebase/in-app-messaging',
361+
},
362+
{
363+
text: 'Installations',
364+
link: '/plugins/firebase/installations',
365+
},
366+
{
367+
text: 'Messaging',
368+
link: '/plugins/firebase/messaging',
369+
},
370+
{
371+
text: 'Performance',
372+
link: '/plugins/firebase/performance',
373+
},
374+
{
375+
text: 'Remote Config',
376+
link: '/plugins/firebase/remote-config',
377+
},
378+
{
379+
text: 'Storage',
380+
link: '/plugins/firebase/storage',
381+
},
382+
],
383+
},
319384
{
320385
text: 'NativeScript UI Plugins',
321386
children: [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"lint-staged": "^10.5.4",
1616
"prettier": "^2.2.1",
1717
"rimraf": "^3.0.2",
18-
"vitepress": "0.12.2"
18+
"vitepress": "0.14.0"
1919
},
2020
"lint-staged": {
2121
"*.{js,css,md}": "prettier --write"

plugins/firebase/analytics.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Firebase Analytics
3+
link: https://raw.githubusercontent.com/NativeScript/firebase/master/packages/firebase-analytics/README.md
4+
---
5+
6+
# @nativescript/firebase-analytics
7+
8+
```cli
9+
ns plugin add @nativescript/firebase-analytics
10+
```
11+
12+
## Usage
13+
14+
```ts
15+
import '@nativescript/firebase-analytics'
16+
```
17+
18+
### Custom Events
19+
20+
```ts
21+
import { firebase } from '@nativescript/firebase-core'
22+
import '@nativescript/firebase-analytics'
23+
24+
firebase().analytics().logEvent('thing', {
25+
mobile: 'iPhone'
26+
})
27+
```

plugins/firebase/app-check.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Firebase App Check
3+
link: https://raw.githubusercontent.com/NativeScript/firebase/master/packages/firebase-app-check/README.md
4+
---
5+
6+
# @nativescript/firebase-app-check
7+
8+
```cli
9+
ns plugin add @nativescript/firebase-app-check
10+
```

plugins/firebase/auth.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Firebase Auth
3+
link: https://raw.githubusercontent.com/NativeScript/firebase/master/packages/firebase-auth/README.md
4+
---
5+
6+
# @nativescript/firebase-auth
7+
8+
```cli
9+
ns plugin add @nativescript/firebase-auth
10+
```

plugins/firebase/core.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Firebase Cire
3+
link: https://raw.githubusercontent.com/NativeScript/firebase/master/packages/firebase-cire/README.md
4+
---
5+
6+
# @nativescript/firebase-core
7+
8+
```cli
9+
ns plugin add @nativescript/firebase-core
10+
```
11+
12+
## Usage
13+
14+
### Initialize Default App
15+
16+
```ts
17+
import { Firebase } from '@nativescript/firebase-core'
18+
const firebase = Firebase.initializeApp()
19+
```
20+
21+
### Initialize Secondary App
22+
23+
```ts
24+
import { Firebase } from '@nativescript/firebase-core'
25+
const config = new FirebaseOptions()
26+
const firebase = Firebase.initializeApp(config, 'SECONDARY_APP')
27+
```

plugins/firebase/crashlytics.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Firebase Crashlytics
3+
link: https://raw.githubusercontent.com/NativeScript/firebase/master/packages/firebase-crashlytics/README.md
4+
---
5+
6+
# @nativescript/firebase-crashlytics
7+
8+
```cli
9+
ns plugin add @nativescript/firebase-crashlytics
10+
```

plugins/firebase/database.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Firebase Database
3+
link: https://raw.githubusercontent.com/NativeScript/firebase/master/packages/firebase-database/README.md
4+
---
5+
6+
# @nativescript/firebase-database
7+
8+
```cli
9+
ns plugin add @nativescript/firebase-database
10+
```

plugins/firebase/dynamic-links.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Firebase Dynamic Links
3+
link: https://raw.githubusercontent.com/NativeScript/firebase/master/packages/firebase-dynamic-links/README.md
4+
---
5+
6+
# @nativescript/firebase-dynamic-links
7+
8+
```cli
9+
ns plugin add @nativescript/firebase-dynamic-links
10+
```

plugins/firebase/firestore.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Firebase Firestore
3+
link: https://raw.githubusercontent.com/NativeScript/firebase/master/packages/firebase-firestore/README.md
4+
---
5+
6+
# @nativescript/firebase-firestore
7+
8+
```cli
9+
ns plugin add @nativescript/firebase-firestore
10+
```

plugins/firebase/functions.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Firebase Functions
3+
link: https://raw.githubusercontent.com/NativeScript/firebase/master/packages/firebase-functions/README.md
4+
---
5+
6+
# @nativescript/firebase-functions
7+
8+
```cli
9+
ns plugin add @nativescript/firebase-functions
10+
```

plugins/firebase/in-app-messaging.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Firebase In-App Messaging
3+
link: https://raw.githubusercontent.com/NativeScript/firebase/master/packages/firebase-in-app-messaging/README.md
4+
---
5+
6+
# @nativescript/firebase-in-app-messaging
7+
8+
```cli
9+
ns plugin add @nativescript/firebase-in-app-messaing
10+
```

plugins/firebase/installations.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Firebase Installations
3+
link: https://raw.githubusercontent.com/NativeScript/firebase/master/packages/firebase-installations/README.md
4+
---
5+
6+
# @nativescript/firebase-installations
7+
8+
```cli
9+
ns plugin add @nativescript/firebase-installations
10+
```

plugins/firebase/messaging.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Firebase Messaging
3+
link: https://raw.githubusercontent.com/NativeScript/firebase/master/packages/firebase-messaging/README.md
4+
---
5+
6+
# @nativescript/firebase-messaging
7+
8+
```cli
9+
ns plugin add @nativescript/firebase-messaging
10+
```

plugins/firebase/performance.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Firebase Performance
3+
link: https://raw.githubusercontent.com/NativeScript/firebase/master/packages/firebase-performance/README.md
4+
---
5+
6+
# @nativescript/firebase-performance
7+
8+
```cli
9+
ns plugin add @nativescript/firebase-performance
10+
```

plugins/firebase/remote-config.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Firebase Remote Config
3+
link: https://raw.githubusercontent.com/NativeScript/firebase/master/packages/firebase-remote-config/README.md
4+
---
5+
6+
# @nativescript/firebase-remote-config
7+
8+
```cli
9+
ns plugin add @nativescript/firebase-remote-config
10+
```

plugins/firebase/storage.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Firebase Storage
3+
link: https://raw.githubusercontent.com/NativeScript/firebase/master/packages/firebase-storage/README.md
4+
---
5+
6+
# @nativescript/firebase-storage
7+
8+
```cli
9+
ns plugin add @nativescript/firebase-storage
10+
```

0 commit comments

Comments
 (0)