├── .editorconfig
├── .eslintignore
├── .eslintrc.json
├── .gitignore
├── .husky
├── .gitignore
└── pre-commit
├── .npsrc
├── .nxignore
├── .prettierignore
├── .prettierrc
├── .travis.yml
├── CHANGELOG.md
├── LICENSE
├── README.md
├── apps
├── demo-angular
│ ├── .eslintrc.json
│ ├── .gitignore
│ ├── nativescript.config.ts
│ ├── package.json
│ ├── project.json
│ ├── references.d.ts
│ ├── src
│ │ ├── app-routing.module.ts
│ │ ├── app.component.ts
│ │ ├── app.module.ts
│ │ ├── app.scss
│ │ ├── app.service.ts
│ │ ├── home.component.html
│ │ ├── home.component.ts
│ │ ├── main.ts
│ │ ├── plugin-demos
│ │ │ ├── .gitkeep
│ │ │ ├── firebase-analytics.component.html
│ │ │ ├── firebase-analytics.component.ts
│ │ │ ├── firebase-analytics.module.ts
│ │ │ ├── firebase-app-check-debug.component.html
│ │ │ ├── firebase-app-check-debug.component.ts
│ │ │ ├── firebase-app-check-debug.module.ts
│ │ │ ├── firebase-app-check.component.html
│ │ │ ├── firebase-app-check.component.ts
│ │ │ ├── firebase-app-check.module.ts
│ │ │ ├── firebase-auth.component.html
│ │ │ ├── firebase-auth.component.ts
│ │ │ ├── firebase-auth.module.ts
│ │ │ ├── firebase-core.component.html
│ │ │ ├── firebase-core.component.ts
│ │ │ ├── firebase-core.module.ts
│ │ │ ├── firebase-crashlytics.component.html
│ │ │ ├── firebase-crashlytics.component.ts
│ │ │ ├── firebase-crashlytics.module.ts
│ │ │ ├── firebase-database.component.html
│ │ │ ├── firebase-database.component.ts
│ │ │ ├── firebase-database.module.ts
│ │ │ ├── firebase-dynamic-links.component.html
│ │ │ ├── firebase-dynamic-links.component.ts
│ │ │ ├── firebase-dynamic-links.module.ts
│ │ │ ├── firebase-firestore.component.html
│ │ │ ├── firebase-firestore.component.ts
│ │ │ ├── firebase-firestore.module.ts
│ │ │ ├── firebase-functions.component.html
│ │ │ ├── firebase-functions.component.ts
│ │ │ ├── firebase-functions.module.ts
│ │ │ ├── firebase-in-app-messaging.component.html
│ │ │ ├── firebase-in-app-messaging.component.ts
│ │ │ ├── firebase-in-app-messaging.module.ts
│ │ │ ├── firebase-installations.component.html
│ │ │ ├── firebase-installations.component.ts
│ │ │ ├── firebase-installations.module.ts
│ │ │ ├── firebase-messaging-core.component.html
│ │ │ ├── firebase-messaging-core.component.ts
│ │ │ ├── firebase-messaging-core.module.ts
│ │ │ ├── firebase-messaging.component.html
│ │ │ ├── firebase-messaging.component.ts
│ │ │ ├── firebase-messaging.module.ts
│ │ │ ├── firebase-performance.component.html
│ │ │ ├── firebase-performance.component.ts
│ │ │ ├── firebase-performance.module.ts
│ │ │ ├── firebase-remote-config.component.html
│ │ │ ├── firebase-remote-config.component.ts
│ │ │ ├── firebase-remote-config.module.ts
│ │ │ ├── firebase-storage.component.html
│ │ │ ├── firebase-storage.component.ts
│ │ │ ├── firebase-storage.module.ts
│ │ │ ├── firebase-ui.component.html
│ │ │ ├── firebase-ui.component.ts
│ │ │ ├── firebase-ui.module.ts
│ │ │ ├── nativescript-firebase-analytics.component.html
│ │ │ ├── nativescript-firebase-analytics.component.ts
│ │ │ └── nativescript-firebase-analytics.module.ts
│ │ └── polyfills.ts
│ ├── tsconfig.json
│ └── webpack.config.js
├── demo-vue
│ ├── .eslintrc.json
│ ├── .gitignore
│ ├── app
│ │ ├── app.scss
│ │ ├── app.ts
│ │ ├── components
│ │ │ └── Home.vue
│ │ └── plugin-demos
│ │ │ ├── firebase-analytics.vue
│ │ │ ├── firebase-app-check-debug.vue
│ │ │ ├── firebase-app-check.vue
│ │ │ ├── firebase-auth.vue
│ │ │ ├── firebase-core.vue
│ │ │ ├── firebase-crashlytics.vue
│ │ │ ├── firebase-database.vue
│ │ │ ├── firebase-dynamic-links.vue
│ │ │ ├── firebase-firestore.vue
│ │ │ ├── firebase-functions.vue
│ │ │ ├── firebase-in-app-messaging.vue
│ │ │ ├── firebase-installations.vue
│ │ │ ├── firebase-messaging-core.vue
│ │ │ ├── firebase-messaging.vue
│ │ │ ├── firebase-performance.vue
│ │ │ ├── firebase-remote-config.vue
│ │ │ ├── firebase-storage.vue
│ │ │ └── firebase-ui.vue
│ ├── nativescript.config.ts
│ ├── package.json
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ ├── types
│ │ └── shims.vue.d.ts
│ └── webpack.config.js
└── demo
│ ├── .eslintrc.json
│ ├── .gitignore
│ ├── nativescript.config.ts
│ ├── package.json
│ ├── project.json
│ ├── references.d.ts
│ ├── src
│ ├── app-root.xml
│ ├── app.scss
│ ├── app.ts
│ ├── main-page.ts
│ ├── main-page.xml
│ ├── main-view-model.ts
│ └── plugin-demos
│ │ ├── .gitkeep
│ │ ├── firebase-analytics.ts
│ │ ├── firebase-analytics.xml
│ │ ├── firebase-app-check-debug.ts
│ │ ├── firebase-app-check-debug.xml
│ │ ├── firebase-app-check.ts
│ │ ├── firebase-app-check.xml
│ │ ├── firebase-auth.ts
│ │ ├── firebase-auth.xml
│ │ ├── firebase-core.ts
│ │ ├── firebase-core.xml
│ │ ├── firebase-crashlytics.ts
│ │ ├── firebase-crashlytics.xml
│ │ ├── firebase-database.ts
│ │ ├── firebase-database.xml
│ │ ├── firebase-dynamic-links.ts
│ │ ├── firebase-dynamic-links.xml
│ │ ├── firebase-firestore.ts
│ │ ├── firebase-firestore.xml
│ │ ├── firebase-functions.ts
│ │ ├── firebase-functions.xml
│ │ ├── firebase-in-app-messaging.ts
│ │ ├── firebase-in-app-messaging.xml
│ │ ├── firebase-installations.ts
│ │ ├── firebase-installations.xml
│ │ ├── firebase-messaging-core.ts
│ │ ├── firebase-messaging-core.xml
│ │ ├── firebase-messaging.ts
│ │ ├── firebase-messaging.xml
│ │ ├── firebase-performance.ts
│ │ ├── firebase-performance.xml
│ │ ├── firebase-remote-config.ts
│ │ ├── firebase-remote-config.xml
│ │ ├── firebase-storage.ts
│ │ ├── firebase-storage.xml
│ │ ├── firebase-ui.ts
│ │ └── firebase-ui.xml
│ ├── tsconfig.json
│ └── webpack.config.js
├── jest.config.ts
├── migrations.json
├── nx.json
├── package.json
├── packages
├── .gitkeep
├── firebase-analytics
│ ├── .eslintrc.json
│ ├── README.md
│ ├── common.ts
│ ├── hooks
│ │ ├── before-checkForChanges.ts
│ │ ├── index.ts
│ │ └── tsconfig.json
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ ├── include.gradle
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── nativescript
│ │ │ │ └── firebase
│ │ │ │ └── analytics
│ │ │ │ └── FirebaseAnalytics.kt
│ │ └── ios
│ │ │ └── Podfile
│ ├── postinstall.ts
│ ├── preuninstall.ts
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── typings
│ │ ├── android.d.ts
│ │ ├── index.d.ts
│ │ └── objc!FirebaseAnalytics.d.ts
├── firebase-app-check-debug
│ ├── .eslintrc.json
│ ├── README.md
│ ├── common.ts
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ ├── firebase_app_check_debug.aar
│ │ │ ├── include.gradle
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── nativescript
│ │ │ │ └── firebase
│ │ │ │ └── app_check_debug
│ │ │ │ └── FirebaseAppCheckDebug.kt
│ │ └── ios
│ │ │ └── Podfile
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── typings
│ │ ├── android.d.ts
│ │ ├── index.d.ts
│ │ ├── objc!FirebaseAppCheck.d.ts
│ │ ├── objc!FirebaseAppCheckInterop.d.ts
│ │ └── org.nativescript.firebase.app_check.d.ts
├── firebase-app-check
│ ├── .eslintrc.json
│ ├── README.md
│ ├── common.ts
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ ├── firebase_app_check.aar
│ │ │ ├── include.gradle
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── nativescript
│ │ │ │ └── firebase
│ │ │ │ └── app_check
│ │ │ │ └── FirebaseAppCheck.kt
│ │ └── ios
│ │ │ └── Podfile
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── typings
│ │ ├── android.d.ts
│ │ ├── index.d.ts
│ │ ├── objc!FirebaseAppCheck.d.ts
│ │ ├── objc!FirebaseAppCheckInterop.d.ts
│ │ └── org.nativescript.firebase.app_check.d.ts
├── firebase-auth
│ ├── .eslintrc.json
│ ├── README.md
│ ├── common.d.ts
│ ├── common.ts
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ ├── firebase_auth.aar
│ │ │ ├── include.gradle
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── nativescript
│ │ │ │ └── firebase
│ │ │ │ └── auth
│ │ │ │ └── FirebaseAuth.kt
│ │ └── ios
│ │ │ └── Podfile
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── typings
│ │ ├── android.d.ts
│ │ ├── auth-interop.d.ts
│ │ ├── index.d.ts
│ │ ├── objc!FirebaseAuth.d.ts
│ │ ├── objc!FirebaseAuthInterop.d.ts
│ │ └── org.nativescript.firebase.auth.d.ts
├── firebase-core
│ ├── .eslintrc.json
│ ├── README.md
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ ├── buildscript.gradle
│ │ │ ├── firebase_core.aar
│ │ │ ├── include.gradle
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── nativescript
│ │ │ │ └── firebase
│ │ │ │ └── core
│ │ │ │ └── FirebaseCore.kt
│ │ └── ios
│ │ │ ├── Podfile
│ │ │ └── src
│ │ │ ├── TNSFirebaseCore.h
│ │ │ ├── TNSFirebaseCore.m
│ │ │ ├── TNSFirebaseCoreUmbrella.h
│ │ │ ├── UIApplicationDelegate+LaunchExtension.h
│ │ │ ├── UIApplicationDelegate+LaunchExtension.m
│ │ │ └── module.modulemap
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ ├── typings
│ │ ├── android.d.ts
│ │ ├── index.d.ts
│ │ ├── objc!FirebaseCore.d.ts
│ │ ├── objc!FirebaseCoreExtension.d.ts
│ │ └── objc!FirebaseCoreInternal.d.ts
│ └── utils.ts
├── firebase-crashlytics
│ ├── .eslintrc.json
│ ├── README.md
│ ├── common.ts
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── nativescript.webpack.js
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ ├── buildscript.gradle
│ │ │ ├── firebase_crashlytics.aar
│ │ │ ├── include.gradle
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── nativescript
│ │ │ │ └── firebase
│ │ │ │ └── crashlytics
│ │ │ │ └── FirebaseCrashlytics.kt
│ │ └── ios
│ │ │ ├── Podfile
│ │ │ └── src
│ │ │ ├── TNSFirebaseCrashlytics.h
│ │ │ ├── TNSFirebaseCrashlytics.m
│ │ │ └── module.modulemap
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── typings
│ │ ├── android.d.ts
│ │ ├── index.d.ts
│ │ ├── objc!FirebaseCrashlytics.d.ts
│ │ └── org.nativescript.firebase.crashlytics.d.ts
├── firebase-database
│ ├── .eslintrc.json
│ ├── README.md
│ ├── common.ts
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ ├── firebase_database.aar
│ │ │ ├── include.gradle
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── nativescript
│ │ │ │ └── firebase
│ │ │ │ └── database
│ │ │ │ └── FirebaseDatabase.kt
│ │ └── ios
│ │ │ └── Podfile
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── typings
│ │ ├── android.d.ts
│ │ ├── index.d.ts
│ │ ├── objc!FirebaseDatabase.d.ts
│ │ └── org.nativescript.firebase.database.d.ts
├── firebase-dynamic-links
│ ├── .eslintrc.json
│ ├── README.md
│ ├── common.ts
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ ├── firebase_dynamic_links.aar
│ │ │ ├── include.gradle
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── nativescript
│ │ │ │ └── firebase
│ │ │ │ └── dynamic_links
│ │ │ │ └── FirebaseDynamicLinks.kt
│ │ └── ios
│ │ │ ├── Podfile
│ │ │ └── src
│ │ │ ├── TNSFirebaseDynamicLinksAppDelegate.swift
│ │ │ ├── TNSFirebaseDynamicLinksLoader.h
│ │ │ ├── TNSFirebaseDynamicLinksLoader.m
│ │ │ └── module.modulemap
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── typings
│ │ ├── android.d.ts
│ │ ├── index.d.ts
│ │ ├── objc!FirebaseDynamicLinks.d.ts
│ │ ├── objc!GoogleUtilities.d.ts
│ │ └── org.nativescript.firebase.dynamic_links.d.ts
├── firebase-firestore
│ ├── .eslintrc.json
│ ├── README.md
│ ├── common.ts
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ ├── firebase_firestore.aar
│ │ │ ├── include.gradle
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── nativescript
│ │ │ │ └── firebase
│ │ │ │ └── firestore
│ │ │ │ └── FirebaseFirestore.kt
│ │ └── ios
│ │ │ └── Podfile
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── typings
│ │ ├── android.d.ts
│ │ ├── index.d.ts
│ │ ├── objc!FirebaseCore.d.ts
│ │ ├── objc!FirebaseFirestore.d.ts
│ │ ├── objc!FirebaseFirestoreInternal.d.ts
│ │ └── org.nativescript.firebase.firestore.d.ts
├── firebase-functions
│ ├── .eslintrc.json
│ ├── README.md
│ ├── common.ts
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ ├── firebase_functions.aar
│ │ │ ├── include.gradle
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── nativescript
│ │ │ │ └── firebase
│ │ │ │ └── functions
│ │ │ │ └── FirebaseFunctions.kt
│ │ └── ios
│ │ │ └── Podfile
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── typings
│ │ ├── android.d.ts
│ │ ├── index.d.ts
│ │ ├── objc!FirebaseFunctions.d.ts
│ │ └── org.nativescript.firebase.functions.d.ts
├── firebase-in-app-messaging
│ ├── .eslintrc.json
│ ├── README.md
│ ├── common.ts
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ └── include.gradle
│ │ └── ios
│ │ │ └── Podfile
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── typings
│ │ ├── android.d.ts
│ │ ├── index.d.ts
│ │ └── objc!FirebaseInAppMessaging.d.ts
├── firebase-installations
│ ├── .eslintrc.json
│ ├── README.md
│ ├── common.ts
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ ├── firebase_installations.aar
│ │ │ ├── include.gradle
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── nativescript
│ │ │ │ └── firebase
│ │ │ │ └── installations
│ │ │ │ └── FirebaseInstallations.kt
│ │ └── ios
│ │ │ └── Podfile
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── typings
│ │ ├── android.d.ts
│ │ ├── index.d.ts
│ │ ├── objc!FirebaseInstallations.d.ts
│ │ └── org.nativescript.firebase.installations.d.ts
├── firebase-messaging-core
│ ├── .eslintrc.json
│ ├── README.md
│ ├── common.d.ts
│ ├── common.ts
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── buildscript.gradle
│ │ │ ├── firebase_messaging_core.aar
│ │ │ ├── include.gradle
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── nativescript
│ │ │ │ └── firebase
│ │ │ │ └── messaging
│ │ │ │ └── FirebaseMessaging.kt
│ │ └── ios
│ │ │ ├── Info.plist
│ │ │ ├── Podfile
│ │ │ ├── app.entitlements
│ │ │ └── src
│ │ │ ├── NSCFirebaseMessagingCore.h
│ │ │ ├── NSCFirebaseMessagingCore.m
│ │ │ ├── NSCFirebaseMessagingCoreLoader.h
│ │ │ ├── NSCFirebaseMessagingCoreLoader.m
│ │ │ ├── NSCFirebaseMessagingCoreUmbrella.h
│ │ │ ├── NSCFirebaseRemoteMessage.swift
│ │ │ ├── NSCNotificationHelper.swift
│ │ │ ├── NSCUIApplicationDelegate.swift
│ │ │ ├── NSCUNUserNotificationCenterDelegate.swift
│ │ │ └── module.modulemap
│ ├── project.json
│ ├── references.d.ts
│ ├── src-native
│ │ └── android
│ │ │ ├── .gitignore
│ │ │ ├── .idea
│ │ │ ├── .gitignore
│ │ │ ├── .name
│ │ │ ├── compiler.xml
│ │ │ ├── gradle.xml
│ │ │ ├── misc.xml
│ │ │ └── vcs.xml
│ │ │ ├── app
│ │ │ ├── .gitignore
│ │ │ ├── build.gradle
│ │ │ ├── proguard-rules.pro
│ │ │ └── src
│ │ │ │ ├── androidTest
│ │ │ │ └── java
│ │ │ │ │ └── org
│ │ │ │ │ └── nativescript
│ │ │ │ │ └── firebase
│ │ │ │ │ └── firebasemessagingdemo
│ │ │ │ │ └── ExampleInstrumentedTest.kt
│ │ │ │ ├── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ ├── java
│ │ │ │ │ └── org
│ │ │ │ │ │ └── nativescript
│ │ │ │ │ │ └── firebase
│ │ │ │ │ │ └── firebasemessagingdemo
│ │ │ │ │ │ └── MainActivity.kt
│ │ │ │ └── res
│ │ │ │ │ ├── drawable-v24
│ │ │ │ │ └── ic_launcher_foreground.xml
│ │ │ │ │ ├── drawable
│ │ │ │ │ └── ic_launcher_background.xml
│ │ │ │ │ ├── layout
│ │ │ │ │ └── activity_main.xml
│ │ │ │ │ ├── mipmap-anydpi-v26
│ │ │ │ │ ├── ic_launcher.xml
│ │ │ │ │ └── ic_launcher_round.xml
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ ├── ic_launcher.webp
│ │ │ │ │ └── ic_launcher_round.webp
│ │ │ │ │ ├── values-night
│ │ │ │ │ └── themes.xml
│ │ │ │ │ └── values
│ │ │ │ │ ├── colors.xml
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ └── themes.xml
│ │ │ │ └── test
│ │ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── nativescript
│ │ │ │ └── firebase
│ │ │ │ └── firebasemessagingdemo
│ │ │ │ └── ExampleUnitTest.kt
│ │ │ ├── build.gradle
│ │ │ ├── gradle.properties
│ │ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ ├── gradle-wrapper.jar
│ │ │ │ └── gradle-wrapper.properties
│ │ │ ├── gradlew
│ │ │ ├── gradlew.bat
│ │ │ ├── messaging
│ │ │ ├── .gitignore
│ │ │ ├── build.gradle
│ │ │ ├── consumer-rules.pro
│ │ │ ├── proguard-rules.pro
│ │ │ └── src
│ │ │ │ ├── androidTest
│ │ │ │ └── java
│ │ │ │ │ └── org
│ │ │ │ │ └── nativescript
│ │ │ │ │ └── firebase
│ │ │ │ │ └── messaging
│ │ │ │ │ └── ExampleInstrumentedTest.kt
│ │ │ │ ├── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ └── java
│ │ │ │ │ └── org
│ │ │ │ │ └── nativescript
│ │ │ │ │ └── firebase
│ │ │ │ │ └── messaging
│ │ │ │ │ └── FirebaseMessaging.kt
│ │ │ │ └── test
│ │ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── nativescript
│ │ │ │ └── firebase
│ │ │ │ └── messaging
│ │ │ │ └── ExampleUnitTest.kt
│ │ │ └── settings.gradle
│ ├── tsconfig.json
│ └── typings
│ │ ├── android.d.ts
│ │ ├── objc!NSCFirebaseMessagingCore.d.ts
│ │ └── org.nativescript.firebase.messaging.d.ts
├── firebase-messaging
│ ├── .eslintrc.json
│ ├── README.md
│ ├── assets
│ │ └── images
│ │ │ └── push-xcode-config.png
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ └── include.gradle
│ │ └── ios
│ │ │ ├── Podfile
│ │ │ └── src
│ │ │ ├── NSCFIRMessagingDelegate.swift
│ │ │ ├── NSCFIRMessagingUmbrella.h
│ │ │ └── module.modulemap
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── typings
│ │ ├── android.d.ts
│ │ ├── index.d.ts
│ │ ├── objc!FirebaseMessaging.d.ts
│ │ ├── objc!FirebaseMessagingInterop.d.ts
│ │ ├── objc!GoogleUtilities.d.ts
│ │ ├── objc!NSCFirebaseMessagingCore.d.ts
│ │ └── org.nativescript.firebase.messaging.d.ts
├── firebase-performance
│ ├── .eslintrc.json
│ ├── README.md
│ ├── common.ts
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ ├── buildscript.gradle
│ │ │ ├── include.gradle
│ │ │ └── rootbuildscript.gradle
│ │ └── ios
│ │ │ └── Podfile
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── typings
│ │ ├── android.d.ts
│ │ ├── index.d.ts
│ │ └── objc!FirebasePerformance.d.ts
├── firebase-remote-config
│ ├── .eslintrc.json
│ ├── README.md
│ ├── common.ts
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ ├── firebase_remote_config.aar
│ │ │ ├── include.gradle
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── nativescript
│ │ │ │ └── firebase
│ │ │ │ └── remote_config
│ │ │ │ └── FirebaseRemoteConfig.kt
│ │ └── ios
│ │ │ └── Podfile
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── typings
│ │ ├── android.d.ts
│ │ ├── index.d.ts
│ │ ├── objc!FirebaseRemoteConfig.d.ts
│ │ ├── objc!FirebaseRemoteConfigInterop.d.ts
│ │ └── org.nativescript.firebase.remote_config.d.ts
├── firebase-storage
│ ├── .eslintrc.json
│ ├── README.md
│ ├── common.ts
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ ├── firebase_storage.aar
│ │ │ ├── include.gradle
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── nativescript
│ │ │ │ └── firebase
│ │ │ │ └── storage
│ │ │ │ └── FirebaseStorage.kt
│ │ └── ios
│ │ │ └── Podfile
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ ├── typings
│ │ ├── android.d.ts
│ │ ├── index.d.ts
│ │ ├── objc!FirebaseStorage.d.ts
│ │ └── org.nativescript.firebase.storage.d.ts
│ └── utils.ts
└── firebase-ui
│ ├── .eslintrc.json
│ ├── README.md
│ ├── common.ts
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ ├── android
│ │ ├── firebase_ui.aar
│ │ ├── include.gradle
│ │ └── java
│ │ │ └── org
│ │ │ └── nativescript
│ │ │ └── firebase
│ │ │ └── ui
│ │ │ └── FirebaseUI.kt
│ └── ios
│ │ └── Podfile
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── typings
│ ├── android.d.ts
│ ├── auth-interop.d.ts
│ ├── firebase-auth.d.ts
│ ├── index.d.ts
│ ├── objc!FirebaseAnonymousAuthUI.d.ts
│ ├── objc!FirebaseAuth.d.ts
│ ├── objc!FirebaseAuthUI.d.ts
│ ├── objc!FirebaseDatabaseUI.d.ts
│ ├── objc!FirebaseEmailAuthUI.d.ts
│ ├── objc!FirebaseFacebookAuthUI.d.ts
│ ├── objc!FirebaseFirestoreUI.d.ts
│ ├── objc!FirebaseGoogleAuthUI.d.ts
│ ├── objc!FirebaseOAuthUI.d.ts
│ ├── objc!FirebasePhoneAuthUI.d.ts
│ └── objc!FirebaseStorageUI.d.ts
├── references.d.ts
├── tools
├── assets
│ ├── App_Resources
│ │ ├── Android
│ │ │ ├── app.gradle
│ │ │ └── src
│ │ │ │ ├── google-services.json
│ │ │ │ └── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ └── res
│ │ │ │ ├── drawable-hdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-ldpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-mdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-nodpi
│ │ │ │ └── splash_screen.xml
│ │ │ │ ├── drawable-xhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-xxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-xxxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── values-v21
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ │ │ └── values
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ └── iOS
│ │ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── icon-1024.png
│ │ │ │ ├── icon-20.png
│ │ │ │ ├── icon-20@2x.png
│ │ │ │ ├── icon-20@3x.png
│ │ │ │ ├── icon-29.png
│ │ │ │ ├── icon-29@2x.png
│ │ │ │ ├── icon-29@3x.png
│ │ │ │ ├── icon-40.png
│ │ │ │ ├── icon-40@2x.png
│ │ │ │ ├── icon-40@3x.png
│ │ │ │ ├── icon-60@2x.png
│ │ │ │ ├── icon-60@3x.png
│ │ │ │ ├── icon-76.png
│ │ │ │ ├── icon-76@2x.png
│ │ │ │ └── icon-83.5@2x.png
│ │ │ ├── Contents.json
│ │ │ ├── LaunchScreen.AspectFill.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchScreen-AspectFill.png
│ │ │ │ ├── LaunchScreen-AspectFill@2x.png
│ │ │ │ └── LaunchScreen-AspectFill@3x.png
│ │ │ └── LaunchScreen.Center.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchScreen-Center.png
│ │ │ │ ├── LaunchScreen-Center@2x.png
│ │ │ │ └── LaunchScreen-Center@3x.png
│ │ │ ├── GoogleService-Info.plist
│ │ │ ├── Info.plist
│ │ │ ├── LaunchScreen.storyboard
│ │ │ ├── Podfile
│ │ │ ├── app.entitlements
│ │ │ ├── build.xcconfig
│ │ │ ├── icon.png
│ │ │ └── icon@2x.png
│ ├── README.md
│ └── publishing
│ │ └── .npmignore
├── demo
│ ├── firebase-analytics
│ │ └── index.ts
│ ├── firebase-app-check-debug
│ │ └── index.ts
│ ├── firebase-app-check
│ │ └── index.ts
│ ├── firebase-auth
│ │ └── index.ts
│ ├── firebase-core
│ │ └── index.ts
│ ├── firebase-crashlytics
│ │ └── index.ts
│ ├── firebase-database
│ │ └── index.ts
│ ├── firebase-dynamic-links
│ │ └── index.ts
│ ├── firebase-firestore
│ │ └── index.ts
│ ├── firebase-functions
│ │ └── index.ts
│ ├── firebase-in-app-messaging
│ │ └── index.ts
│ ├── firebase-installations
│ │ └── index.ts
│ ├── firebase-messaging-core
│ │ └── index.ts
│ ├── firebase-messaging
│ │ └── index.ts
│ ├── firebase-performance
│ │ └── index.ts
│ ├── firebase-remote-config
│ │ └── index.ts
│ ├── firebase-storage
│ │ └── index.ts
│ ├── firebase-ui
│ │ └── index.ts
│ ├── index.ts
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── utils
│ │ ├── demo-base.ts
│ │ └── index.ts
├── images
│ └── deadpool.jpeg
├── package-settings.json
├── schematics
│ └── .gitkeep
├── scripts
│ ├── build-finish.ts
│ └── generate-publish-typings.js
├── tsconfig.tools.json
└── workspace-scripts.js
└── tsconfig.base.json
/.editorconfig:
--------------------------------------------------------------------------------
1 | # Editor configuration, see http://editorconfig.org
2 | root = true
3 |
4 | [*]
5 | charset = utf-8
6 | indent_style = space
7 | indent_size = 2
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.md]
12 | max_line_length = off
13 | trim_trailing_whitespace = false
14 |
--------------------------------------------------------------------------------
/.eslintignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # See http://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # compiled output
4 | /dist
5 | /tmp
6 | /out-tsc
7 | /packages/**/*.js
8 | /packages/**/*.map
9 |
10 | # dependencies
11 | node_modules
12 | package-lock.json
13 | yarn.lock
14 |
15 | # IDEs and editors
16 | /.idea
17 | .project
18 | .classpath
19 | .c9/
20 | *.launch
21 | .settings/
22 | *.sublime-workspace
23 |
24 | # IDE - VSCode
25 | .vscode/*
26 | !.vscode/settings.json
27 | !.vscode/tasks.json
28 | !.vscode/launch.json
29 | !.vscode/extensions.json
30 |
31 | # misc
32 | /.sass-cache
33 | /connect.lock
34 | /coverage
35 | /libpeerconnection.log
36 | npm-debug.log
37 | yarn-error.log
38 | testem.log
39 | /typings
40 |
41 | # System Files
42 | .DS_Store
43 | Thumbs.db
44 |
45 | *.tgz
46 | packages/**/angular/dist
47 |
48 | .nx/cache
49 | .nx/workspace-data
--------------------------------------------------------------------------------
/.husky/.gitignore:
--------------------------------------------------------------------------------
1 | _
2 |
--------------------------------------------------------------------------------
/.husky/pre-commit:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . "$(dirname "$0")/_/husky.sh"
3 |
4 | npx lint-staged --allow-empty
5 |
--------------------------------------------------------------------------------
/.npsrc:
--------------------------------------------------------------------------------
1 | {
2 | "config": "./tools/workspace-scripts.js"
3 | }
--------------------------------------------------------------------------------
/.nxignore:
--------------------------------------------------------------------------------
1 | apps/**/*_off
--------------------------------------------------------------------------------
/.prettierignore:
--------------------------------------------------------------------------------
1 | # Add files here to ignore them from prettier formatting
2 |
3 | /dist
4 | /coverage
5 | native-src
6 |
7 | /.nx/cache
8 | /.nx/workspace-data
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "useTabs": true,
3 | "printWidth": 600,
4 | "tabWidth": 2,
5 | "singleQuote": true
6 | }
7 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "node"
4 | script:
5 | - npm run setup
6 | - npm start @nativescript.build-all
7 |
--------------------------------------------------------------------------------
/apps/demo-angular/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/apps/demo-angular/.gitignore:
--------------------------------------------------------------------------------
1 | hooks
2 | platforms
3 | !webpack.config.js
--------------------------------------------------------------------------------
/apps/demo-angular/nativescript.config.ts:
--------------------------------------------------------------------------------
1 | import { NativeScriptConfig } from '@nativescript/core';
2 |
3 | export default {
4 | // id: 'org.nativescript.plugindemoangular',
5 | id: 'io.github.triniwiz.nativescript.firebasedemo',
6 | appResourcesPath: '../../tools/assets/App_Resources',
7 | android: {
8 | v8Flags: '--expose_gc',
9 | markingMode: 'none',
10 | },
11 | appPath: 'src',
12 | } as NativeScriptConfig;
13 |
--------------------------------------------------------------------------------
/apps/demo-angular/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/app.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 | import { AppService } from './app.service';
3 | @Component({
4 | selector: 'demo-app',
5 | template: `
6 |
7 | `,
8 | })
9 | export class AppComponent {
10 | constructor(appService: AppService){}
11 | }
12 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/app.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptModule } from '@nativescript/angular';
3 |
4 | import { AppComponent } from './app.component';
5 | import { AppRoutingModule } from './app-routing.module';
6 | import { HomeComponent } from './home.component';
7 | import { AppService } from './app.service';
8 |
9 | @NgModule({
10 | schemas: [NO_ERRORS_SCHEMA],
11 | declarations: [AppComponent, HomeComponent],
12 | bootstrap: [AppComponent],
13 | imports: [NativeScriptModule, AppRoutingModule],
14 | providers: [AppService]
15 | })
16 | export class AppModule {}
17 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/app.scss:
--------------------------------------------------------------------------------
1 | @import 'nativescript-theme-core/scss/light';
2 | @import 'nativescript-theme-core/scss/index';
3 |
4 | button, label, stack-layout {
5 | horizontal-align: center;
6 | }
7 |
8 | button {
9 | font-size: 36;
10 | }
11 |
12 | .title {
13 | font-size: 30;
14 | margin: 20;
15 | }
16 |
17 | .message {
18 | font-size: 20;
19 | color: #284848;
20 | text-align: center;
21 | margin: 0 20;
22 | }
23 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/app.service.ts:
--------------------------------------------------------------------------------
1 | import { Injectable } from '@angular/core';
2 | import { firebase } from '@nativescript/firebase-core';
3 | import '@nativescript/firebase-messaging';
4 |
5 | @Injectable()
6 | export class AppService {
7 | constructor() {
8 | const messaging = firebase().messaging();
9 | messaging.onToken((token) => {
10 | console.log('Firebase onToken', token);
11 | });
12 | messaging.onMessage((message) => {
13 | console.log('Firebase onMessage', message);
14 | });
15 |
16 | messaging.onNotificationTap((message) => {
17 | console.log('Firebase onNotificationTap', message);
18 | });
19 |
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/home.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/main.ts:
--------------------------------------------------------------------------------
1 | import { runNativeScriptAngularApp, platformNativeScript } from '@nativescript/angular';
2 | import { AppModule } from './app.module';
3 | import { firebase } from '@nativescript/firebase-core';
4 | import { Application } from '@nativescript/core';
5 |
6 | Application.on('launch', (args) => {
7 | console.log('launch');
8 | });
9 |
10 | firebase()
11 | .initializeApp()
12 | .then((done) => {
13 | console.log('initializeApp');
14 | });
15 |
16 | const messaging = firebase().messaging();
17 |
18 | messaging
19 | .requestPermission()
20 | .then(() => {
21 | console.log('requestPermission', 'done');
22 | messaging.registerDeviceForRemoteMessages().catch((e) => {
23 | console.error('registerDeviceForRemoteMessages', e);
24 | });
25 | })
26 | .catch((e) => {
27 | console.error('requestPermission', e);
28 | });
29 |
30 | runNativeScriptAngularApp({
31 | appModuleBootstrap: () => platformNativeScript().bootstrapModule(AppModule),
32 | });
33 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/apps/demo-angular/src/plugin-demos/.gitkeep
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-analytics.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-analytics.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedFirebaseAnalytics } from '@demo/shared';
3 | import { } from '@nativescript/firebase-analytics';
4 |
5 | @Component({
6 | selector: 'demo-firebase-analytics',
7 | templateUrl: 'firebase-analytics.component.html',
8 | })
9 | export class FirebaseAnalyticsComponent {
10 |
11 | demoShared: DemoSharedFirebaseAnalytics;
12 |
13 | constructor(private _ngZone: NgZone) {}
14 |
15 | ngOnInit() {
16 | this.demoShared = new DemoSharedFirebaseAnalytics();
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-analytics.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { FirebaseAnalyticsComponent } from './firebase-analytics.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseAnalyticsComponent }])],
7 | declarations: [FirebaseAnalyticsComponent],
8 | schemas: [ NO_ERRORS_SCHEMA]
9 | })
10 | export class FirebaseAnalyticsModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-app-check-debug.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-app-check-debug.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedFirebaseAppCheckDebug } from '@demo/shared';
3 | import { } from '@nativescript/firebase-app-check-debug';
4 |
5 | @Component({
6 | selector: 'demo-firebase-app-check-debug',
7 | templateUrl: 'firebase-app-check-debug.component.html',
8 | })
9 | export class FirebaseAppCheckDebugComponent {
10 |
11 | demoShared: DemoSharedFirebaseAppCheckDebug;
12 |
13 | constructor(private _ngZone: NgZone) {}
14 |
15 | ngOnInit() {
16 | this.demoShared = new DemoSharedFirebaseAppCheckDebug();
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-app-check-debug.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { FirebaseAppCheckDebugComponent } from './firebase-app-check-debug.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseAppCheckDebugComponent }])],
7 | declarations: [FirebaseAppCheckDebugComponent],
8 | schemas: [ NO_ERRORS_SCHEMA]
9 | })
10 | export class FirebaseAppCheckDebugModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-app-check.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-app-check.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedFirebaseAppCheck } from '@demo/shared';
3 | import { } from '@nativescript/firebase-app-check';
4 |
5 | @Component({
6 | selector: 'demo-firebase-app-check',
7 | templateUrl: 'firebase-app-check.component.html',
8 | })
9 | export class FirebaseAppCheckComponent {
10 |
11 | demoShared: DemoSharedFirebaseAppCheck;
12 |
13 | constructor(private _ngZone: NgZone) {}
14 |
15 | ngOnInit() {
16 | this.demoShared = new DemoSharedFirebaseAppCheck();
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-app-check.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { FirebaseAppCheckComponent } from './firebase-app-check.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseAppCheckComponent }])],
7 | declarations: [FirebaseAppCheckComponent],
8 | schemas: [ NO_ERRORS_SCHEMA]
9 | })
10 | export class FirebaseAppCheckModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-auth.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-auth.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedFirebaseAuth } from '@demo/shared';
3 | import { } from '@nativescript/firebase-auth';
4 |
5 | @Component({
6 | selector: 'demo-firebase-auth',
7 | templateUrl: 'firebase-auth.component.html',
8 | })
9 | export class FirebaseAuthComponent {
10 |
11 | demoShared: DemoSharedFirebaseAuth;
12 |
13 | constructor(private _ngZone: NgZone) {}
14 |
15 | ngOnInit() {
16 | this.demoShared = new DemoSharedFirebaseAuth();
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-auth.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { FirebaseAuthComponent } from './firebase-auth.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseAuthComponent }])],
7 | declarations: [FirebaseAuthComponent],
8 | schemas: [ NO_ERRORS_SCHEMA]
9 | })
10 | export class FirebaseAuthModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-core.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-core.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedFirebaseCore } from '@demo/shared';
3 | import { } from '@nativescript/firebase-core';
4 |
5 | @Component({
6 | selector: 'demo-firebase-core',
7 | templateUrl: 'firebase-core.component.html',
8 | })
9 | export class FirebaseCoreComponent {
10 |
11 | demoShared: DemoSharedFirebaseCore;
12 |
13 | constructor(private _ngZone: NgZone) {}
14 |
15 | ngOnInit() {
16 | this.demoShared = new DemoSharedFirebaseCore();
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-core.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { FirebaseCoreComponent } from './firebase-core.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseCoreComponent }])],
7 | declarations: [FirebaseCoreComponent],
8 | schemas: [ NO_ERRORS_SCHEMA]
9 | })
10 | export class FirebaseCoreModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-crashlytics.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-crashlytics.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedFirebaseCrashlytics } from '@demo/shared';
3 | import { } from '@nativescript/firebase-crashlytics';
4 |
5 | @Component({
6 | selector: 'demo-firebase-crashlytics',
7 | templateUrl: 'firebase-crashlytics.component.html',
8 | })
9 | export class FirebaseCrashlyticsComponent {
10 |
11 | demoShared: DemoSharedFirebaseCrashlytics;
12 |
13 | constructor(private _ngZone: NgZone) {}
14 |
15 | ngOnInit() {
16 | this.demoShared = new DemoSharedFirebaseCrashlytics();
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-crashlytics.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { FirebaseCrashlyticsComponent } from './firebase-crashlytics.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseCrashlyticsComponent }])],
7 | declarations: [FirebaseCrashlyticsComponent],
8 | schemas: [ NO_ERRORS_SCHEMA]
9 | })
10 | export class FirebaseCrashlyticsModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-database.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-database.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedFirebaseDatabase } from '@demo/shared';
3 | import { } from '@nativescript/firebase-database';
4 |
5 | @Component({
6 | selector: 'demo-firebase-database',
7 | templateUrl: 'firebase-database.component.html',
8 | })
9 | export class FirebaseDatabaseComponent {
10 |
11 | demoShared: DemoSharedFirebaseDatabase;
12 |
13 | constructor(private _ngZone: NgZone) {}
14 |
15 | ngOnInit() {
16 | this.demoShared = new DemoSharedFirebaseDatabase();
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-database.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { FirebaseDatabaseComponent } from './firebase-database.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseDatabaseComponent }])],
7 | declarations: [FirebaseDatabaseComponent],
8 | schemas: [ NO_ERRORS_SCHEMA]
9 | })
10 | export class FirebaseDatabaseModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-dynamic-links.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-dynamic-links.component.ts:
--------------------------------------------------------------------------------
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 | }
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-dynamic-links.module.ts:
--------------------------------------------------------------------------------
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 {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-firestore.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-firestore.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedFirebaseFirestore } from '@demo/shared';
3 | import { } from '@nativescript/firebase-firestore';
4 |
5 | @Component({
6 | selector: 'demo-firebase-firestore',
7 | templateUrl: 'firebase-firestore.component.html',
8 | })
9 | export class FirebaseFirestoreComponent {
10 |
11 | demoShared: DemoSharedFirebaseFirestore;
12 |
13 | constructor(private _ngZone: NgZone) {}
14 |
15 | ngOnInit() {
16 | this.demoShared = new DemoSharedFirebaseFirestore();
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-firestore.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { FirebaseFirestoreComponent } from './firebase-firestore.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseFirestoreComponent }])],
7 | declarations: [FirebaseFirestoreComponent],
8 | schemas: [ NO_ERRORS_SCHEMA]
9 | })
10 | export class FirebaseFirestoreModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-functions.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-functions.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedFirebaseFunctions } from '@demo/shared';
3 | import { } from '@nativescript/firebase-functions';
4 |
5 | @Component({
6 | selector: 'demo-firebase-functions',
7 | templateUrl: 'firebase-functions.component.html',
8 | })
9 | export class FirebaseFunctionsComponent {
10 |
11 | demoShared: DemoSharedFirebaseFunctions;
12 |
13 | constructor(private _ngZone: NgZone) {}
14 |
15 | ngOnInit() {
16 | this.demoShared = new DemoSharedFirebaseFunctions();
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-functions.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { FirebaseFunctionsComponent } from './firebase-functions.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseFunctionsComponent }])],
7 | declarations: [FirebaseFunctionsComponent],
8 | schemas: [ NO_ERRORS_SCHEMA]
9 | })
10 | export class FirebaseFunctionsModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-in-app-messaging.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-in-app-messaging.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedFirebaseInAppMessaging } from '@demo/shared';
3 | import { } from '@nativescript/firebase-in-app-messaging';
4 |
5 | @Component({
6 | selector: 'demo-firebase-in-app-messaging',
7 | templateUrl: 'firebase-in-app-messaging.component.html',
8 | })
9 | export class FirebaseInAppMessagingComponent {
10 |
11 | demoShared: DemoSharedFirebaseInAppMessaging;
12 |
13 | constructor(private _ngZone: NgZone) {}
14 |
15 | ngOnInit() {
16 | this.demoShared = new DemoSharedFirebaseInAppMessaging();
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-in-app-messaging.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { FirebaseInAppMessagingComponent } from './firebase-in-app-messaging.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseInAppMessagingComponent }])],
7 | declarations: [FirebaseInAppMessagingComponent],
8 | schemas: [ NO_ERRORS_SCHEMA]
9 | })
10 | export class FirebaseInAppMessagingModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-installations.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-installations.component.ts:
--------------------------------------------------------------------------------
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 | }
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-installations.module.ts:
--------------------------------------------------------------------------------
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 {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-messaging-core.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-messaging-core.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedFirebaseMessagingCore } from '@demo/shared';
3 | import {} from '@nativescript/firebase-messaging-core';
4 |
5 | @Component({
6 | selector: 'demo-firebase-messaging-core',
7 | templateUrl: 'firebase-messaging-core.component.html',
8 | })
9 | export class FirebaseMessagingCoreComponent {
10 | demoShared: DemoSharedFirebaseMessagingCore;
11 |
12 | constructor(private _ngZone: NgZone) {}
13 |
14 | ngOnInit() {
15 | this.demoShared = new DemoSharedFirebaseMessagingCore();
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-messaging-core.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { FirebaseMessagingCoreComponent } from './firebase-messaging-core.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseMessagingCoreComponent }])],
7 | declarations: [FirebaseMessagingCoreComponent],
8 | schemas: [NO_ERRORS_SCHEMA],
9 | })
10 | export class FirebaseMessagingCoreModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-messaging.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-messaging.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedFirebaseMessaging } from '@demo/shared';
3 | import { } from '@nativescript/firebase-messaging';
4 |
5 | @Component({
6 | selector: 'demo-firebase-messaging',
7 | templateUrl: 'firebase-messaging.component.html',
8 | })
9 | export class FirebaseMessagingComponent {
10 |
11 | demoShared: DemoSharedFirebaseMessaging;
12 |
13 | constructor(private _ngZone: NgZone) {}
14 |
15 | ngOnInit() {
16 | this.demoShared = new DemoSharedFirebaseMessaging();
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-messaging.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { FirebaseMessagingComponent } from './firebase-messaging.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseMessagingComponent }])],
7 | declarations: [FirebaseMessagingComponent],
8 | schemas: [ NO_ERRORS_SCHEMA]
9 | })
10 | export class FirebaseMessagingModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-performance.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-performance.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedFirebasePerformance } from '@demo/shared';
3 | import { } from '@nativescript/firebase-performance';
4 |
5 | @Component({
6 | selector: 'demo-firebase-performance',
7 | templateUrl: 'firebase-performance.component.html',
8 | })
9 | export class FirebasePerformanceComponent {
10 |
11 | demoShared: DemoSharedFirebasePerformance;
12 |
13 | constructor(private _ngZone: NgZone) {}
14 |
15 | ngOnInit() {
16 | this.demoShared = new DemoSharedFirebasePerformance();
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-performance.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { FirebasePerformanceComponent } from './firebase-performance.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebasePerformanceComponent }])],
7 | declarations: [FirebasePerformanceComponent],
8 | schemas: [ NO_ERRORS_SCHEMA]
9 | })
10 | export class FirebasePerformanceModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-remote-config.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-remote-config.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedFirebaseRemoteConfig } from '@demo/shared';
3 | import { } from '@nativescript/firebase-remote-config';
4 |
5 | @Component({
6 | selector: 'demo-firebase-remote-config',
7 | templateUrl: 'firebase-remote-config.component.html',
8 | })
9 | export class FirebaseRemoteConfigComponent {
10 |
11 | demoShared: DemoSharedFirebaseRemoteConfig;
12 |
13 | constructor(private _ngZone: NgZone) {}
14 |
15 | ngOnInit() {
16 | this.demoShared = new DemoSharedFirebaseRemoteConfig();
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-remote-config.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { FirebaseRemoteConfigComponent } from './firebase-remote-config.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseRemoteConfigComponent }])],
7 | declarations: [FirebaseRemoteConfigComponent],
8 | schemas: [ NO_ERRORS_SCHEMA]
9 | })
10 | export class FirebaseRemoteConfigModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-storage.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-storage.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedFirebaseStorage } from '@demo/shared';
3 | import { } from '@nativescript/firebase-storage';
4 |
5 | @Component({
6 | selector: 'demo-firebase-storage',
7 | templateUrl: 'firebase-storage.component.html',
8 | })
9 | export class FirebaseStorageComponent {
10 |
11 | demoShared: DemoSharedFirebaseStorage;
12 |
13 | constructor(private _ngZone: NgZone) {}
14 |
15 | ngOnInit() {
16 | this.demoShared = new DemoSharedFirebaseStorage();
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-storage.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { FirebaseStorageComponent } from './firebase-storage.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseStorageComponent }])],
7 | declarations: [FirebaseStorageComponent],
8 | schemas: [ NO_ERRORS_SCHEMA]
9 | })
10 | export class FirebaseStorageModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-ui.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-ui.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedFirebaseUi } from '@demo/shared';
3 | import {} from '@nativescript/firebase-ui';
4 |
5 | @Component({
6 | selector: 'demo-firebase-ui',
7 | templateUrl: 'firebase-ui.component.html',
8 | })
9 | export class FirebaseUiComponent {
10 | demoShared: DemoSharedFirebaseUi;
11 |
12 | constructor(private _ngZone: NgZone) {}
13 |
14 | ngOnInit() {
15 | this.demoShared = new DemoSharedFirebaseUi();
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/firebase-ui.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { FirebaseUiComponent } from './firebase-ui.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseUiComponent }])],
7 | declarations: [FirebaseUiComponent],
8 | schemas: [NO_ERRORS_SCHEMA],
9 | })
10 | export class FirebaseUiModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-firebase-analytics.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-firebase-analytics.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedNativescriptFirebaseAnalytics } from '@demo/shared';
3 | import { } from '@nativescript/firebase-analytics';
4 |
5 | @Component({
6 | selector: 'demo-firebase-analytics',
7 | templateUrl: 'firebase-analytics.component.html',
8 | })
9 | export class NativescriptFirebaseAnalyticsComponent {
10 |
11 | demoShared: DemoSharedNativescriptFirebaseAnalytics;
12 |
13 | constructor(private _ngZone: NgZone) {}
14 |
15 | ngOnInit() {
16 | this.demoShared = new DemoSharedNativescriptFirebaseAnalytics();
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-firebase-analytics.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { NativescriptFirebaseAnalyticsComponent } from './firebase-analytics.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: NativescriptFirebaseAnalyticsComponent }])],
7 | declarations: [NativescriptFirebaseAnalyticsComponent],
8 | schemas: [ NO_ERRORS_SCHEMA]
9 | })
10 | export class NativescriptFirebaseAnalyticsModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/polyfills.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * NativeScript Polyfills
3 | */
4 |
5 | // Install @nativescript/core polyfills (XHR, setTimeout, requestAnimationFrame)
6 | import '@nativescript/core/globals';
7 | // Install @nativescript/angular specific polyfills
8 | import '@nativescript/angular/polyfills';
9 |
10 | /**
11 | * Zone.js and patches
12 | */
13 | // Add pre-zone.js patches needed for the NativeScript platform
14 | import '@nativescript/zone-js/dist/pre-zone-polyfills';
15 |
16 | // Zone JS is required by default for Angular itself
17 | import 'zone.js';
18 |
19 | // Add NativeScript specific Zone JS patches
20 | import '@nativescript/zone-js';
21 |
--------------------------------------------------------------------------------
/apps/demo-angular/webpack.config.js:
--------------------------------------------------------------------------------
1 | const webpack = require('@nativescript/webpack');
2 | const { resolve } = require('path');
3 |
4 | module.exports = (env) => {
5 |
6 | webpack.init(env);
7 | webpack.useConfig('angular');
8 |
9 | webpack.chainWebpack((config) => {
10 | // shared demo code
11 | config.resolve.alias.set('@demo/shared', resolve(__dirname, '..', '..', 'tools', 'demo'));
12 | });
13 |
14 | // Example if you need to share images across demo apps:
15 | // webpack.Utils.addCopyRule({
16 | // from: '../../../tools/images',
17 | // to: 'images',
18 | // context: webpack.Utils.project.getProjectFilePath('node_modules')
19 | // });
20 |
21 | return webpack.resolveConfig();
22 | };
23 |
--------------------------------------------------------------------------------
/apps/demo-vue/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/apps/demo-vue/.gitignore:
--------------------------------------------------------------------------------
1 | # NativeScript
2 | hooks/
3 | node_modules/
4 | platforms/
5 |
6 | # Logs
7 | logs
8 | *.log
9 | npm-debug.log*
10 | yarn-debug.log*
11 | yarn-error.log*
12 |
13 | # General
14 | .DS_Store
15 | .AppleDouble
16 | .LSOverride
17 | .idea
18 | .cloud
19 | .project
20 | tmp/
21 | typings/
22 |
--------------------------------------------------------------------------------
/apps/demo-vue/app/app.scss:
--------------------------------------------------------------------------------
1 | @import 'nativescript-theme-core/scss/light';
2 | @import 'nativescript-theme-core/scss/index';
3 |
--------------------------------------------------------------------------------
/apps/demo-vue/app/plugin-demos/firebase-analytics.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
35 |
--------------------------------------------------------------------------------
/apps/demo-vue/app/plugin-demos/firebase-app-check-debug.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
35 |
--------------------------------------------------------------------------------
/apps/demo-vue/app/plugin-demos/firebase-app-check.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
35 |
--------------------------------------------------------------------------------
/apps/demo-vue/app/plugin-demos/firebase-auth.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
35 |
--------------------------------------------------------------------------------
/apps/demo-vue/app/plugin-demos/firebase-core.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
35 |
--------------------------------------------------------------------------------
/apps/demo-vue/app/plugin-demos/firebase-crashlytics.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
35 |
--------------------------------------------------------------------------------
/apps/demo-vue/app/plugin-demos/firebase-database.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
35 |
--------------------------------------------------------------------------------
/apps/demo-vue/app/plugin-demos/firebase-dynamic-links.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
35 |
--------------------------------------------------------------------------------
/apps/demo-vue/app/plugin-demos/firebase-firestore.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
35 |
--------------------------------------------------------------------------------
/apps/demo-vue/app/plugin-demos/firebase-functions.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
35 |
--------------------------------------------------------------------------------
/apps/demo-vue/app/plugin-demos/firebase-in-app-messaging.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
35 |
--------------------------------------------------------------------------------
/apps/demo-vue/app/plugin-demos/firebase-installations.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
35 |
--------------------------------------------------------------------------------
/apps/demo-vue/app/plugin-demos/firebase-messaging-core.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
35 |
--------------------------------------------------------------------------------
/apps/demo-vue/app/plugin-demos/firebase-performance.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
35 |
--------------------------------------------------------------------------------
/apps/demo-vue/app/plugin-demos/firebase-remote-config.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
35 |
--------------------------------------------------------------------------------
/apps/demo-vue/app/plugin-demos/firebase-storage.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
35 |
--------------------------------------------------------------------------------
/apps/demo-vue/app/plugin-demos/firebase-ui.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
35 |
--------------------------------------------------------------------------------
/apps/demo-vue/nativescript.config.ts:
--------------------------------------------------------------------------------
1 | import { NativeScriptConfig } from '@nativescript/core';
2 |
3 | export default {
4 | //id: 'org.nativescript.plugindemovue',
5 | id: 'io.github.triniwiz.nativescript.firebasedemo',
6 | appResourcesPath: '../../tools/assets/App_Resources',
7 | appPath: 'app',
8 | android: {
9 | v8Flags: '--expose_gc',
10 | markingMode: 'none',
11 | },
12 | } as NativeScriptConfig;
13 |
--------------------------------------------------------------------------------
/apps/demo-vue/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/apps/demo-vue/types/shims.vue.d.ts:
--------------------------------------------------------------------------------
1 | declare module '*.vue' {
2 | import Vue from 'vue'
3 | export default Vue
4 | }
5 |
--------------------------------------------------------------------------------
/apps/demo-vue/webpack.config.js:
--------------------------------------------------------------------------------
1 | const webpack = require('@nativescript/webpack');
2 | const { resolve } = require('path');
3 |
4 | module.exports = (env) => {
5 |
6 | webpack.init(env);
7 | webpack.useConfig('vue');
8 |
9 | webpack.chainWebpack((config) => {
10 | // shared demo code
11 | config.resolve.alias.set('@demo/shared', resolve(__dirname, '..', '..', 'tools', 'demo'));
12 | });
13 |
14 | // Example of how to share common images across demo apps:
15 | // webpack.Utils.addCopyRule({
16 | // from: '../../../tools/images',
17 | // to: 'images',
18 | // context: webpack.Utils.project.getProjectFilePath('node_modules')
19 | // });
20 |
21 | return webpack.resolveConfig();
22 | };
23 |
--------------------------------------------------------------------------------
/apps/demo/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/apps/demo/.gitignore:
--------------------------------------------------------------------------------
1 | # NativeScript
2 | hooks/
3 | node_modules/
4 | platforms/
5 |
6 | # NativeScript Template
7 | *.js.map
8 | *.js
9 | !webpack.config.js
10 |
11 | # Logs
12 | logs
13 | *.log
14 | npm-debug.log*
15 | yarn-debug.log*
16 | yarn-error.log*
17 |
18 | # General
19 | .DS_Store
20 | .AppleDouble
21 | .LSOverride
22 | .idea
23 | .cloud
24 | .project
25 | tmp/
26 | typings/
27 |
28 | # misc
29 | npm-debug.log
30 |
31 | # app
32 | !*.d.ts
33 | !src/assets/fontawesome.min.css
34 | /report/
35 | .nsbuildinfo
36 | /temp/
37 | /src/tns_modules/
38 |
39 | # app uses platform specific scss which can inadvertently get renamed which will cause problems
40 | app/app.scss
41 |
42 | package-lock.json
43 |
--------------------------------------------------------------------------------
/apps/demo/nativescript.config.ts:
--------------------------------------------------------------------------------
1 | import { NativeScriptConfig } from '@nativescript/core';
2 |
3 | export default {
4 | //id: 'org.nativescript.firebasedemo',
5 | id: 'io.github.triniwiz.nativescript.firebasedemo',
6 | appResourcesPath: '../../tools/assets/App_Resources',
7 | android: {
8 | v8Flags: '--expose_gc',
9 | markingMode: 'none',
10 | },
11 | appPath: 'src',
12 | } as NativeScriptConfig;
13 |
--------------------------------------------------------------------------------
/apps/demo/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/apps/demo/src/app-root.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/apps/demo/src/app.scss:
--------------------------------------------------------------------------------
1 | @import 'nativescript-theme-core/scss/light';
2 | @import 'nativescript-theme-core/scss/index';
--------------------------------------------------------------------------------
/apps/demo/src/main-page.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/apps/demo/src/plugin-demos/.gitkeep
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-analytics.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-app-check-debug.ts:
--------------------------------------------------------------------------------
1 | import { Observable, EventData, Page } from '@nativescript/core';
2 | import { DemoSharedFirebaseAppCheckDebug } from '@demo/shared';
3 | import { firebase } from '@nativescript/firebase-core';
4 | import '@nativescript/firebase-app-check-debug';
5 |
6 | export function navigatingTo(args: EventData) {
7 | const page = args.object;
8 | page.bindingContext = new DemoModel();
9 | }
10 |
11 | export class DemoModel extends DemoSharedFirebaseAppCheckDebug {
12 | constructor() {
13 | super();
14 | }
15 |
16 | testIt(): void {
17 | firebase()
18 | .appCheck()
19 | .getToken(true)
20 | .then((token) => {
21 | console.log(token.token);
22 | })
23 | .catch((error) => {
24 | console.log(error);
25 | });
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-app-check-debug.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-app-check.ts:
--------------------------------------------------------------------------------
1 | import { Observable, EventData, Page } from '@nativescript/core';
2 | import { DemoSharedFirebaseAppCheck } from '@demo/shared';
3 | import { } from '@nativescript/firebase-app-check';
4 |
5 | export function navigatingTo(args: EventData) {
6 | const page = args.object;
7 | page.bindingContext = new DemoModel();
8 | }
9 |
10 | export class DemoModel extends DemoSharedFirebaseAppCheck {
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-app-check.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-core.ts:
--------------------------------------------------------------------------------
1 | import { Observable, EventData, Page } from '@nativescript/core';
2 | import { DemoSharedFirebaseCore } from '@demo/shared';
3 | import { } from '@nativescript/firebase-core';
4 |
5 | export function navigatingTo(args: EventData) {
6 | const page = args.object;
7 | page.bindingContext = new DemoModel();
8 | }
9 |
10 | export class DemoModel extends DemoSharedFirebaseCore {
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-core.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-crashlytics.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-database.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-dynamic-links.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-firestore.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-functions.ts:
--------------------------------------------------------------------------------
1 | import { Observable, EventData, Page } from '@nativescript/core';
2 | import { DemoSharedFirebaseFunctions } from '@demo/shared';
3 | import { } from '@nativescript/firebase-functions';
4 |
5 | export function navigatingTo(args: EventData) {
6 | const page = args.object;
7 | page.bindingContext = new DemoModel();
8 | }
9 |
10 | export class DemoModel extends DemoSharedFirebaseFunctions {
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-functions.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-in-app-messaging.ts:
--------------------------------------------------------------------------------
1 | import { Observable, EventData, Page } from '@nativescript/core';
2 | import { DemoSharedFirebaseInAppMessaging } from '@demo/shared';
3 | import { } from '@nativescript/firebase-in-app-messaging';
4 |
5 | export function navigatingTo(args: EventData) {
6 | const page = args.object;
7 | page.bindingContext = new DemoModel();
8 | }
9 |
10 | export class DemoModel extends DemoSharedFirebaseInAppMessaging {
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-in-app-messaging.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-installations.ts:
--------------------------------------------------------------------------------
1 | import { Observable, EventData, Page } from '@nativescript/core';
2 | import { DemoSharedFirebaseInstallations } from '@demo/shared';
3 | import { } from '@nativescript/firebase-installations';
4 |
5 | export function navigatingTo(args: EventData) {
6 | const page = args.object;
7 | page.bindingContext = new DemoModel();
8 | }
9 |
10 | export class DemoModel extends DemoSharedFirebaseInstallations {
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-installations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-messaging-core.ts:
--------------------------------------------------------------------------------
1 | import { Observable, EventData, Page } from '@nativescript/core';
2 | import { DemoSharedFirebaseMessagingCore } from '@demo/shared';
3 | import {} from '@nativescript/firebase-messaging-core';
4 |
5 | export function navigatingTo(args: EventData) {
6 | const page = args.object;
7 | page.bindingContext = new DemoModel();
8 | }
9 |
10 | export class DemoModel extends DemoSharedFirebaseMessagingCore {}
11 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-messaging-core.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-messaging.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-performance.ts:
--------------------------------------------------------------------------------
1 | import { Observable, EventData, Page } from '@nativescript/core';
2 | import { DemoSharedFirebasePerformance } from '@demo/shared';
3 | import { } from '@nativescript/firebase-performance';
4 |
5 | export function navigatingTo(args: EventData) {
6 | const page = args.object;
7 | page.bindingContext = new DemoModel();
8 | }
9 |
10 | export class DemoModel extends DemoSharedFirebasePerformance {
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-performance.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-remote-config.ts:
--------------------------------------------------------------------------------
1 | import { Observable, EventData, Page } from '@nativescript/core';
2 | import { DemoSharedFirebaseRemoteConfig } from '@demo/shared';
3 | import { firebase } from '@nativescript/firebase-core';
4 | import { RemoteConfig } from '@nativescript/firebase-remote-config';
5 |
6 | export function navigatingTo(args: EventData) {
7 | const page = args.object;
8 | page.bindingContext = new DemoModel();
9 | }
10 |
11 | export class DemoModel extends DemoSharedFirebaseRemoteConfig {
12 | remoteConfig: RemoteConfig;
13 | constructor() {
14 | super();
15 | this.remoteConfig = firebase().remoteConfig();
16 | this.remoteConfig
17 | .fetchAndActivate()
18 | .then((val) => {
19 | const all = this.remoteConfig.getAll();
20 | console.log(all.osei_test.asString());
21 | })
22 | .catch((e) => {
23 | console.error('remoteConfig', 'fetchAndActivate', e);
24 | });
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-remote-config.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-storage.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/firebase-ui.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/apps/demo/webpack.config.js:
--------------------------------------------------------------------------------
1 | const webpack = require('@nativescript/webpack');
2 | const { resolve } = require('path');
3 |
4 | module.exports = (env) => {
5 |
6 | webpack.init(env);
7 | webpack.useConfig('typescript');
8 |
9 | webpack.chainWebpack((config) => {
10 | // shared demo code
11 | config.resolve.alias.set('@demo/shared', resolve(__dirname, '..', '..', 'tools', 'demo'));
12 | });
13 |
14 | webpack.Utils.addCopyRule({
15 | from: '../../../tools/images',
16 | to: 'images',
17 | context: webpack.Utils.project.getProjectFilePath('node_modules')
18 | });
19 |
20 | return webpack.resolveConfig();
21 | };
22 |
--------------------------------------------------------------------------------
/jest.config.ts:
--------------------------------------------------------------------------------
1 | const { getJestProjects } = require('@nx/jest');
2 |
3 | export default { projects: [...getJestProjects()] };
4 |
--------------------------------------------------------------------------------
/migrations.json:
--------------------------------------------------------------------------------
1 | { "migrations": [{ "cli": "nx", "version": "5.5.0", "description": "Migrate tools to 5.5.0", "implementation": "./src/migrations/update-5-5-0/update-5-5-0", "package": "@nativescript/plugin-tools", "name": "update-to-5.5.0" }] }
2 |
--------------------------------------------------------------------------------
/packages/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/.gitkeep
--------------------------------------------------------------------------------
/packages/firebase-analytics/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-analytics/common.ts:
--------------------------------------------------------------------------------
1 | export interface IAnalytics {
2 | readonly appInstanceId: Promise;
3 | logEvent(name: string, parameters: EventParameter): void;
4 | setUserId(userId: string): void;
5 | resetAnalyticsData(): void;
6 | setAnalyticsCollectionEnabled(analyticsCollectionEnabled: boolean): void;
7 | setUserProperty(value: string, name: string): void;
8 | setSessionTimeoutInterval(sessionTimeoutInterval: number): void;
9 | setDefaultEventParameters(parameters: EventParameter): void;
10 | setConsent(consentSettings: Map): void;
11 | handleOpenURL(url: string): void;
12 | handleUserActivity(userActivity: any): void;
13 | }
14 |
15 | export interface EventParameter {
16 | [key: string]: any;
17 | }
18 |
19 | export enum ConsentType {
20 | Ad_Storage,
21 | Analytics_Storage,
22 | Ad_User_Data,
23 | Ad_Personalization,
24 | }
25 |
26 | export enum ConsentStatus {
27 | Denied,
28 | Granted,
29 | }
30 |
--------------------------------------------------------------------------------
/packages/firebase-analytics/hooks/index.ts:
--------------------------------------------------------------------------------
1 | import checkForChanges = require('./before-checkForChanges');
2 | export { checkForChanges };
3 |
--------------------------------------------------------------------------------
/packages/firebase-analytics/hooks/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "outDir": "../../../dist/packages/firebase-analytics/hooks",
4 | "rootDirs": [".", ".."],
5 | "module": "commonjs",
6 | "target": "es2015",
7 | "moduleResolution": "node",
8 | "declaration": false,
9 | "experimentalDecorators": true,
10 | "emitDecoratorMetadata": true,
11 | "noEmitHelpers": false,
12 | "noEmitOnError": true,
13 | "removeComments": true,
14 | "skipLibCheck": true
15 | },
16 | "include": ["../typings/**/*.d.ts"],
17 | "files": ["index.ts"]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-analytics/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "33.13.0" }
3 | implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
4 | implementation 'com.google.firebase:firebase-analytics'
5 | }
--------------------------------------------------------------------------------
/packages/firebase-analytics/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '13.0'
2 | # Firebase dependencies
3 | ### PLACEHOLDER_FOR_HOOK: $NSFirebaseAnalyticsWithoutAdIdSupport
4 | if defined?($NSFirebaseAnalyticsWithoutAdIdSupport)
5 | Pod::UI.puts "Using FirebaseAnalyticsWithoutAdIdSupport pod in place of default Firebase/Analytics"
6 |
7 | pod 'Firebase/AnalyticsWithoutAdIdSupport', '~>11.5.0'
8 | else
9 | Pod::UI.puts "Using default Firebase/Analytics with Ad Ids. May require App Tracking Transparency. Not allowed for Kids apps."
10 | Pod::UI.puts "You may set variable `$NSFirebaseAnalyticsWithoutAdIdSupport=true` in Podfile to use analytics without ad ids."
11 | pod 'Firebase/Analytics', '~>11.5.0'
12 | end
13 |
14 |
--------------------------------------------------------------------------------
/packages/firebase-analytics/postinstall.ts:
--------------------------------------------------------------------------------
1 | require('@nativescript/hook')(__dirname).postinstall();
2 |
--------------------------------------------------------------------------------
/packages/firebase-analytics/preuninstall.ts:
--------------------------------------------------------------------------------
1 | require('@nativescript/hook')(__dirname).preuninstall();
2 |
--------------------------------------------------------------------------------
/packages/firebase-analytics/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-analytics/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "angular", "src-native", "hooks"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-analytics/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-app-check-debug/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-app-check-debug/common.ts:
--------------------------------------------------------------------------------
1 | import { FirebaseApp } from '@nativescript/firebase-core';
2 |
3 | export interface IAppCheck {
4 | app: FirebaseApp;
5 | activate(isTokenAutoRefreshEnabled: boolean);
6 | setTokenAutoRefreshEnabled(enabled: boolean);
7 | getToken(forceRefresh: boolean): Promise;
8 | }
9 |
10 | export interface IAppCheckToken {
11 | readonly token: string;
12 | readonly expireTimeMillis: number;
13 | }
14 |
--------------------------------------------------------------------------------
/packages/firebase-app-check-debug/index.d.ts:
--------------------------------------------------------------------------------
1 | import { FirebaseApp } from '@nativescript/firebase-core';
2 |
3 | declare class AppCheck {
4 | readonly ios: any;
5 | readonly android: any;
6 | readonly native: any;
7 | readonly app: FirebaseApp;
8 |
9 | constructor(app?: FirebaseApp);
10 |
11 | static setProviderFactory();
12 |
13 | activate(isTokenAutoRefreshEnabled: boolean);
14 |
15 | setTokenAutoRefreshEnabled(enabled: boolean);
16 |
17 | getToken(forceRefresh: boolean): Promise;
18 | }
19 |
20 | declare class AppCheckToken {
21 | readonly ios: any;
22 | readonly android: any;
23 | readonly native: any;
24 | readonly token: string;
25 | readonly expireTimeMillis: number;
26 | }
27 |
28 | declare module '@nativescript/firebase-core' {
29 | export interface Firebase extends FirebaseAppCheck {}
30 | }
31 |
32 | export interface FirebaseAppCheck {
33 | static appCheck(app?: FirebaseApp): AppCheck;
34 | }
35 |
--------------------------------------------------------------------------------
/packages/firebase-app-check-debug/platforms/android/firebase_app_check_debug.aar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-app-check-debug/platforms/android/firebase_app_check_debug.aar
--------------------------------------------------------------------------------
/packages/firebase-app-check-debug/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "33.13.0" }
3 | implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
4 | implementation 'com.google.firebase:firebase-appcheck-debug'
5 | }
--------------------------------------------------------------------------------
/packages/firebase-app-check-debug/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '13.0'
2 | pod 'Firebase/AppCheck', '~>11.5.0'
3 |
--------------------------------------------------------------------------------
/packages/firebase-app-check-debug/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-app-check-debug/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "angular"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-app-check-debug/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 |
--------------------------------------------------------------------------------
/packages/firebase-app-check-debug/typings/objc!FirebaseAppCheckInterop.d.ts:
--------------------------------------------------------------------------------
1 | interface FIRAppCheckInterop extends NSObjectProtocol {
2 | getLimitedUseTokenWithCompletion?(handler: (p1: FIRAppCheckTokenResultInterop) => void): void;
3 |
4 | getTokenForcingRefreshCompletion(forcingRefresh: boolean, handler: (p1: FIRAppCheckTokenResultInterop) => void): void;
5 |
6 | notificationAppNameKey(): string;
7 |
8 | notificationTokenKey(): string;
9 |
10 | tokenDidChangeNotificationName(): string;
11 | }
12 | declare var FIRAppCheckInterop: {
13 | prototype: FIRAppCheckInterop;
14 | };
15 |
16 | interface FIRAppCheckTokenResultInterop extends NSObjectProtocol {
17 | error: NSError;
18 |
19 | token: string;
20 | }
21 | declare var FIRAppCheckTokenResultInterop: {
22 | prototype: FIRAppCheckTokenResultInterop;
23 | };
24 |
25 | declare var FirebaseAppCheckInteropVersionNumber: number;
26 |
27 | declare var FirebaseAppCheckInteropVersionString: interop.Reference;
28 |
--------------------------------------------------------------------------------
/packages/firebase-app-check/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-app-check/common.ts:
--------------------------------------------------------------------------------
1 | import { FirebaseApp } from '@nativescript/firebase-core';
2 |
3 | export interface IAppCheck {
4 | app: FirebaseApp;
5 | activate(isTokenAutoRefreshEnabled: boolean);
6 | setTokenAutoRefreshEnabled(enabled: boolean);
7 | getToken(forceRefresh: boolean): Promise;
8 | }
9 |
10 | export interface IAppCheckToken {
11 | readonly token: string;
12 | readonly expireTimeMillis: number;
13 | }
14 |
--------------------------------------------------------------------------------
/packages/firebase-app-check/platforms/android/firebase_app_check.aar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-app-check/platforms/android/firebase_app_check.aar
--------------------------------------------------------------------------------
/packages/firebase-app-check/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "33.13.0" }
3 | implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
4 | implementation 'com.google.firebase:firebase-appcheck-playintegrity'
5 | }
6 |
--------------------------------------------------------------------------------
/packages/firebase-app-check/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '13.0'
2 | pod 'Firebase/AppCheck', '~>11.5.0'
3 |
--------------------------------------------------------------------------------
/packages/firebase-app-check/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-app-check/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "angular", "src-native"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-app-check/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 |
--------------------------------------------------------------------------------
/packages/firebase-app-check/typings/objc!FirebaseAppCheckInterop.d.ts:
--------------------------------------------------------------------------------
1 | interface FIRAppCheckInterop extends NSObjectProtocol {
2 | getLimitedUseTokenWithCompletion?(handler: (p1: FIRAppCheckTokenResultInterop) => void): void;
3 |
4 | getTokenForcingRefreshCompletion(forcingRefresh: boolean, handler: (p1: FIRAppCheckTokenResultInterop) => void): void;
5 |
6 | notificationAppNameKey(): string;
7 |
8 | notificationTokenKey(): string;
9 |
10 | tokenDidChangeNotificationName(): string;
11 | }
12 | declare var FIRAppCheckInterop: {
13 | prototype: FIRAppCheckInterop;
14 | };
15 |
16 | interface FIRAppCheckTokenResultInterop extends NSObjectProtocol {
17 | error: NSError;
18 |
19 | token: string;
20 | }
21 | declare var FIRAppCheckTokenResultInterop: {
22 | prototype: FIRAppCheckTokenResultInterop;
23 | };
24 |
25 | declare var FirebaseAppCheckInteropVersionNumber: number;
26 |
27 | declare var FirebaseAppCheckInteropVersionString: interop.Reference;
28 |
--------------------------------------------------------------------------------
/packages/firebase-auth/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-auth/common.d.ts:
--------------------------------------------------------------------------------
1 | export declare enum ActionCodeInfoOperation {
2 | Unknown = 'Unknown',
3 | PasswordReset = 'PasswordReset',
4 | VerifyEmail = 'VerifyEmail',
5 | RecoverEmail = 'RecoverEmail',
6 | EmailLink = 'EmailLink',
7 | VerifyAndChangeEmail = 'VerifyAndChangeEmail',
8 | RevertSecondFactorAddition = 'RevertSecondFactorAddition',
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-auth/common.ts:
--------------------------------------------------------------------------------
1 | export enum ActionCodeInfoOperation {
2 | Unknown = 'Unknown',
3 | PasswordReset = 'PasswordReset',
4 | VerifyEmail = 'VerifyEmail',
5 | RecoverEmail = 'RecoverEmail',
6 | EmailLink = 'EmailLink',
7 | VerifyAndChangeEmail = 'VerifyAndChangeEmail',
8 | RevertSecondFactorAddition = 'RevertSecondFactorAddition',
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-auth/platforms/android/firebase_auth.aar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-auth/platforms/android/firebase_auth.aar
--------------------------------------------------------------------------------
/packages/firebase-auth/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | android {
2 | defaultConfig {
3 | minSdkVersion 23
4 | }
5 | }
6 |
7 | dependencies {
8 | def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "33.13.0" }
9 | implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
10 | implementation 'com.google.firebase:firebase-auth'
11 | }
--------------------------------------------------------------------------------
/packages/firebase-auth/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '13.0'
2 | pod 'Firebase/Auth', '~>11.5.0'
3 |
--------------------------------------------------------------------------------
/packages/firebase-auth/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-auth/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "angular", "src-native"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-auth/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 | ///
5 |
--------------------------------------------------------------------------------
/packages/firebase-auth/typings/objc!FirebaseAuthInterop.d.ts:
--------------------------------------------------------------------------------
1 | interface FIRAuthInterop {
2 | getTokenForcingRefreshWithCallback(forceRefresh: boolean, callback: (p1: string, p2: NSError) => void): void;
3 |
4 | getUserID(): string;
5 | }
6 | declare var FIRAuthInterop: {
7 | prototype: FIRAuthInterop;
8 | };
9 |
10 | declare var FirebaseAuthInteropVersionNumber: number;
11 |
12 | declare var FirebaseAuthInteropVersionString: interop.Reference;
13 |
--------------------------------------------------------------------------------
/packages/firebase-core/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-core/platforms/android/buildscript.gradle:
--------------------------------------------------------------------------------
1 | repositories {
2 | google()
3 | mavenCentral()
4 | }
5 |
6 | dependencies {
7 | classpath 'com.google.gms:google-services:4.3.15'
8 | }
--------------------------------------------------------------------------------
/packages/firebase-core/platforms/android/firebase_core.aar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-core/platforms/android/firebase_core.aar
--------------------------------------------------------------------------------
/packages/firebase-core/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | if (!project.hasProperty("tempBuild")) {
2 | apply plugin: 'com.google.gms.google-services'
3 | }
4 | dependencies {
5 | def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "33.5.1" }
6 | implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
7 | }
8 |
--------------------------------------------------------------------------------
/packages/firebase-core/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | use_frameworks!
2 | platform :ios, '13.0'
3 |
4 |
5 | post_install do |installer|
6 | installer.pods_project.targets.each do |target|
7 | target.build_configurations.each do |config|
8 | config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
9 | end
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/packages/firebase-core/platforms/ios/src/TNSFirebaseCore.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "UIApplicationDelegate+LaunchExtension.h"
3 | typedef void(^LaunchCallback)(void);
4 | @interface TNSFirebaseCore: NSObject
5 | +(LaunchCallback) onAppFinishLaunchingCallback;
6 | +(void) setOnAppFinishLaunchingCallback:(LaunchCallback)callback;
7 | +(BOOL) isSimulator;
8 | @end
9 |
--------------------------------------------------------------------------------
/packages/firebase-core/platforms/ios/src/TNSFirebaseCore.m:
--------------------------------------------------------------------------------
1 | #import "TNSFirebaseCore.h"
2 |
3 | @implementation TNSFirebaseCore
4 | static LaunchCallback _Nullable _onAppFinishLaunchingCallback;
5 | + (LaunchCallback)onAppFinishLaunchingCallback {
6 | return _onAppFinishLaunchingCallback;
7 | }
8 |
9 | + (void)setOnAppFinishLaunchingCallback:(nullable LaunchCallback)callback {
10 | _onAppFinishLaunchingCallback = callback;
11 | }
12 |
13 | +(BOOL) isSimulator {
14 | #if TARGET_IPHONE_SIMULATOR
15 | return true;
16 | #else
17 | return false;
18 | #endif
19 | }
20 | @end
21 |
--------------------------------------------------------------------------------
/packages/firebase-core/platforms/ios/src/TNSFirebaseCoreUmbrella.h:
--------------------------------------------------------------------------------
1 | #import "TNSFirebaseCore.h"
2 | #import "UIApplicationDelegate+LaunchExtension.h"
--------------------------------------------------------------------------------
/packages/firebase-core/platforms/ios/src/UIApplicationDelegate+LaunchExtension.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface NSObject (TNSUIAppDelegateExt)
4 | - (BOOL)application:(nullable UIApplication *)application didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions;
5 | @end
--------------------------------------------------------------------------------
/packages/firebase-core/platforms/ios/src/UIApplicationDelegate+LaunchExtension.m:
--------------------------------------------------------------------------------
1 | #import "UIApplicationDelegate+LaunchExtension.h"
2 | #import "TNSFirebaseCore.h"
3 | #import
4 |
5 | @implementation NSObject (TNSUIAppDelegateExt)
6 | - (BOOL)application:(nullable UIApplication *)application didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions {
7 | LaunchCallback callback = [TNSFirebaseCore onAppFinishLaunchingCallback];
8 | if(callback != nil){
9 | callback();
10 | }
11 | return YES;
12 | }
13 | @end
14 |
--------------------------------------------------------------------------------
/packages/firebase-core/platforms/ios/src/module.modulemap:
--------------------------------------------------------------------------------
1 | module TNSFirebaseCore {
2 | umbrella header "TNSFirebaseCoreUmbrella.h"
3 | export *
4 | module * { export * }
5 | }
--------------------------------------------------------------------------------
/packages/firebase-core/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-core/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "angular"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-core/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-crashlytics/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-crashlytics/common.ts:
--------------------------------------------------------------------------------
1 | import { FirebaseApp } from '@nativescript/firebase-core';
2 | export interface ICrashlytics {
3 | readonly app: FirebaseApp;
4 | checkForUnsentReports(): Promise;
5 | crash(): void;
6 | deleteUnsentReports();
7 | didCrashOnPreviousExecution(): boolean;
8 | log(message: string): void;
9 | recordError(error: any): void;
10 | sendUnsentReports(): void;
11 | setAttribute(name: string, value: string | number | boolean);
12 | setAttributes(attributes: { [key: string]: string | number | boolean });
13 | setCrashlyticsCollectionEnabled(enabled: boolean);
14 | setUserId(userId: string);
15 | }
16 |
--------------------------------------------------------------------------------
/packages/firebase-crashlytics/nativescript.webpack.js:
--------------------------------------------------------------------------------
1 | module.exports = webpack => {
2 | webpack.chainWebpack((config) => {
3 | // fix import path for stacktrace-js
4 | config.resolve.alias.set(
5 | "stacktrace-js",
6 | "stacktrace-js/dist/stacktrace.js"
7 | );
8 | });
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-crashlytics/platforms/android/buildscript.gradle:
--------------------------------------------------------------------------------
1 | repositories {
2 | google()
3 | mavenCentral()
4 | }
5 |
6 | dependencies {
7 | classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.4'
8 | }
--------------------------------------------------------------------------------
/packages/firebase-crashlytics/platforms/android/firebase_crashlytics.aar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-crashlytics/platforms/android/firebase_crashlytics.aar
--------------------------------------------------------------------------------
/packages/firebase-crashlytics/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "33.13.0" }
3 | implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
4 | implementation 'com.google.firebase:firebase-crashlytics'
5 | implementation 'com.google.firebase:firebase-analytics'
6 | }
7 |
8 | apply plugin: 'com.google.firebase.crashlytics'
--------------------------------------------------------------------------------
/packages/firebase-crashlytics/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '13.0'
2 | pod 'Firebase/Crashlytics', '~>11.5.0'
3 |
--------------------------------------------------------------------------------
/packages/firebase-crashlytics/platforms/ios/src/TNSFirebaseCrashlytics.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface TNSFirebaseCrashlytics : NSObject
4 | + (void)crash;
5 | @end
--------------------------------------------------------------------------------
/packages/firebase-crashlytics/platforms/ios/src/TNSFirebaseCrashlytics.m:
--------------------------------------------------------------------------------
1 | #import "TNSFirebaseCrashlytics.h"
2 |
3 | @implementation TNSFirebaseCrashlytics
4 |
5 | + (void)crash {
6 | int* p = 0;
7 | *p = 0;
8 | }
9 |
10 | @end
--------------------------------------------------------------------------------
/packages/firebase-crashlytics/platforms/ios/src/module.modulemap:
--------------------------------------------------------------------------------
1 | module TNSFirebaseCrashlytics {
2 | header "TNSFirebaseCrashlytics.h"
3 | export *
4 | }
--------------------------------------------------------------------------------
/packages/firebase-crashlytics/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-crashlytics/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "angular", "src-native"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-crashlytics/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 |
--------------------------------------------------------------------------------
/packages/firebase-database/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-database/platforms/android/firebase_database.aar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-database/platforms/android/firebase_database.aar
--------------------------------------------------------------------------------
/packages/firebase-database/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "33.13.0" }
3 | implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
4 | implementation 'com.google.firebase:firebase-database'
5 | }
--------------------------------------------------------------------------------
/packages/firebase-database/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '13.0'
2 | pod 'Firebase/Database', '~>11.5.0'
3 |
--------------------------------------------------------------------------------
/packages/firebase-database/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-database/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "angular","src-native"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-database/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 |
--------------------------------------------------------------------------------
/packages/firebase-dynamic-links/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*", "typings/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-dynamic-links/platforms/android/firebase_dynamic_links.aar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-dynamic-links/platforms/android/firebase_dynamic_links.aar
--------------------------------------------------------------------------------
/packages/firebase-dynamic-links/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "33.13.0" }
3 | implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
4 | implementation 'com.google.firebase:firebase-dynamic-links'
5 | implementation 'com.google.firebase:firebase-analytics'
6 | }
--------------------------------------------------------------------------------
/packages/firebase-dynamic-links/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '13.0'
2 | pod 'Firebase/DynamicLinks', '~>11.5.0'
3 | pod 'GoogleUtilities/AppDelegateSwizzler', '~> 8.0.2'
4 |
--------------------------------------------------------------------------------
/packages/firebase-dynamic-links/platforms/ios/src/TNSFirebaseDynamicLinksLoader.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | @interface TNSFirebaseDynamicLinksLoader: NSObject
5 | @end
--------------------------------------------------------------------------------
/packages/firebase-dynamic-links/platforms/ios/src/TNSFirebaseDynamicLinksLoader.m:
--------------------------------------------------------------------------------
1 | #import "TNSFirebaseDynamicLinksLoader.h"
2 | #import
3 | @implementation TNSFirebaseDynamicLinksLoader : NSObject
4 | + (void)load {
5 | Class clazz = NSClassFromString(@"TNSFirebaseDynamicLinksAppDelegate");
6 | #pragma clang diagnostic push
7 | #pragma clang diagnostic ignored "-Warc-performSelector-leaks"
8 | [clazz performSelector: NSSelectorFromString(@"sharedInstance")];
9 | #pragma clang diagnostic pop
10 | }
11 | @end
12 |
--------------------------------------------------------------------------------
/packages/firebase-dynamic-links/platforms/ios/src/module.modulemap:
--------------------------------------------------------------------------------
1 | module TNSFirebaseDynamicLinksLoader {
2 | umbrella header "TNSFirebaseDynamicLinksLoader.h"
3 | export *
4 | module * { export * }
5 | }
--------------------------------------------------------------------------------
/packages/firebase-dynamic-links/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-dynamic-links/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "angular", "src-native"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-dynamic-links/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 | ///
5 |
--------------------------------------------------------------------------------
/packages/firebase-firestore/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-firestore/platforms/android/firebase_firestore.aar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-firestore/platforms/android/firebase_firestore.aar
--------------------------------------------------------------------------------
/packages/firebase-firestore/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "33.13.0" }
3 | implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
4 | implementation 'com.google.firebase:firebase-firestore'
5 | }
--------------------------------------------------------------------------------
/packages/firebase-firestore/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '13.0'
2 | pod 'Firebase/Firestore', '~>11.5.0'
3 |
--------------------------------------------------------------------------------
/packages/firebase-firestore/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-firestore/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "angular", "src-native"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-firestore/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 |
--------------------------------------------------------------------------------
/packages/firebase-firestore/typings/objc!FirebaseFirestore.d.ts:
--------------------------------------------------------------------------------
1 | declare var FirebaseFirestoreVersionNumber: number;
2 |
3 | declare var FirebaseFirestoreVersionString: interop.Reference;
4 |
--------------------------------------------------------------------------------
/packages/firebase-functions/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-functions/platforms/android/firebase_functions.aar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-functions/platforms/android/firebase_functions.aar
--------------------------------------------------------------------------------
/packages/firebase-functions/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "33.13.0" }
3 | implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
4 | implementation 'com.google.firebase:firebase-functions'
5 | }
6 |
--------------------------------------------------------------------------------
/packages/firebase-functions/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '13.0'
2 | pod 'Firebase/Functions', '~>11.5.0'
3 |
--------------------------------------------------------------------------------
/packages/firebase-functions/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-functions/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "angular"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-functions/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 |
--------------------------------------------------------------------------------
/packages/firebase-in-app-messaging/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-in-app-messaging/common.ts:
--------------------------------------------------------------------------------
1 | import { FirebaseApp } from '@nativescript/firebase-core';
2 |
3 | export interface IInAppMessagingBannerDisplay {}
4 |
5 | export interface IInAppMessaging {
6 | readonly app: FirebaseApp;
7 | isAutomaticDataCollectionEnabled: boolean;
8 | isMessagesDisplaySuppressed: boolean;
9 | triggerEvent(eventId: string);
10 | }
11 |
--------------------------------------------------------------------------------
/packages/firebase-in-app-messaging/index.d.ts:
--------------------------------------------------------------------------------
1 | import { FirebaseApp } from '@nativescript/firebase-core';
2 | import { IInAppMessaging } from './common';
3 |
4 | export declare class InAppMessaging implements IInAppMessaging {
5 | readonly app: FirebaseApp;
6 | isAutomaticDataCollectionEnabled: boolean;
7 | isMessagesDisplaySuppressed: boolean;
8 |
9 | triggerEvent(eventId: string);
10 | }
11 |
12 | declare module '@nativescript/firebase-core' {
13 | export interface Firebase extends FirebaseInAppMessaging {}
14 | }
15 |
16 | export interface FirebaseInAppMessaging {
17 | static inAppMessaging(): InAppMessaging;
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-in-app-messaging/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "33.13.0" }
3 | implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
4 | implementation 'com.google.firebase:firebase-inappmessaging-display'
5 | implementation 'com.google.firebase:firebase-analytics'
6 | }
--------------------------------------------------------------------------------
/packages/firebase-in-app-messaging/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '13.0'
2 | pod 'Firebase/InAppMessaging', '~>11.5.0'
3 |
--------------------------------------------------------------------------------
/packages/firebase-in-app-messaging/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-in-app-messaging/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "angular", "src-native"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-in-app-messaging/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-installations/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-installations/README.md:
--------------------------------------------------------------------------------
1 | # @nativescript/firebase-installations
2 |
3 | ```cli
4 | npm install @nativescript/firebase-installations
5 | ```
6 |
7 | ## What does it do
8 |
9 | The Firebase installations service:
10 |
11 | - provides a unique identifier for a Firebase installation
12 | - provides an auth token for a Firebase installation
13 | - provides an API to perform GDPR-compliant deletion of a Firebase installation.
14 | Each configured FirebaseApp has a corresponding single instance of Installations. An instance of the class provides access to the installation info for the FirebaseApp as well as the ability to delete it. A Firebase Installation is unique by FirebaseApp.name and FirebaseApp.options.googleAppID
15 |
16 |
17 | ## Usage
18 |
19 |
20 |
21 | ## License
22 |
23 | Apache License Version 2.0
24 |
--------------------------------------------------------------------------------
/packages/firebase-installations/common.ts:
--------------------------------------------------------------------------------
1 | import { FirebaseApp } from '@nativescript/firebase-core';
2 | export interface IInstallations {
3 | app: FirebaseApp;
4 | delete(): Promise;
5 | getId(): Promise;
6 | getToken(forceRefresh?: boolean): Promise;
7 | }
8 |
--------------------------------------------------------------------------------
/packages/firebase-installations/index.d.ts:
--------------------------------------------------------------------------------
1 | import { IInstallations } from './common';
2 | import { FirebaseApp } from '@nativescript/firebase-core';
3 |
4 | export declare class Installations implements IInstallations {
5 | readonly native;
6 | readonly android;
7 | readonly ios;
8 | readonly app: FirebaseApp;
9 |
10 | constructor(app?: FirebaseApp);
11 |
12 | delete(): Promise;
13 |
14 | getId(): Promise;
15 |
16 | getToken(forceRefresh: boolean = false): Promise;
17 | }
18 |
19 | declare module '@nativescript/firebase-core' {
20 | export interface Firebase extends FirebaseInstallations {}
21 | }
22 |
23 | export interface FirebaseInstallations {
24 | static installations(): Installations;
25 | }
26 |
--------------------------------------------------------------------------------
/packages/firebase-installations/platforms/android/firebase_installations.aar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-installations/platforms/android/firebase_installations.aar
--------------------------------------------------------------------------------
/packages/firebase-installations/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "33.13.0" }
3 | implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
4 | implementation 'com.google.firebase:firebase-installations'
5 | }
--------------------------------------------------------------------------------
/packages/firebase-installations/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '13.0'
2 | pod 'Firebase/Installations', '~>11.5.0'
3 |
--------------------------------------------------------------------------------
/packages/firebase-installations/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-installations/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "angular", "src-native"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-installations/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/common.d.ts:
--------------------------------------------------------------------------------
1 | export declare enum AuthorizationStatus {
2 | AUTHORIZED = 0,
3 | DENIED = 1,
4 | NOT_DETERMINED = 2,
5 | PROVISIONAL = 3,
6 | EPHEMERAL = 4,
7 | }
8 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/common.ts:
--------------------------------------------------------------------------------
1 | export enum AuthorizationStatus {
2 | AUTHORIZED,
3 | DENIED,
4 | NOT_DETERMINED,
5 | PROVISIONAL,
6 | EPHEMERAL,
7 | }
8 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/platforms/android/buildscript.gradle:
--------------------------------------------------------------------------------
1 | repositories {
2 | google()
3 | mavenCentral()
4 | }
5 |
6 | dependencies {
7 | classpath 'com.google.gms:google-services:4.3.10'
8 | }
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/platforms/android/firebase_messaging_core.aar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-messaging-core/platforms/android/firebase_messaging_core.aar
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | if (!project.hasProperty("tempBuild")) {
2 | apply plugin: 'com.google.gms.google-services'
3 | }
4 | dependencies {
5 | def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "33.13.0" }
6 | implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
7 | implementation 'com.google.firebase:firebase-messaging'
8 | }
9 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/platforms/ios/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | UIBackgroundModes
6 |
7 | fetch
8 | processing
9 | remote-notification
10 |
11 |
12 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | pod 'GoogleUtilities/AppDelegateSwizzler', '~> 8.0.2'
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/platforms/ios/app.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | aps-environment
6 | development
7 | com.apple.security.cs.allow-unsigned-executable-memory
8 |
9 | com.apple.security.network.client
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/platforms/ios/src/NSCFirebaseMessagingCoreLoader.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | @interface NSCFirebaseMessagingCoreLoader: NSObject
5 | @end
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/platforms/ios/src/NSCFirebaseMessagingCoreLoader.m:
--------------------------------------------------------------------------------
1 | #import "NSCFirebaseMessagingCoreLoader.h"
2 | #import
3 | @implementation NSCFirebaseMessagingCoreLoader : NSObject
4 | + (void)load {
5 | Class clazz = NSClassFromString(@"NSCNotificationHelper");
6 | #pragma clang diagnostic push
7 | #pragma clang diagnostic ignored "-Warc-performSelector-leaks"
8 | id sharedInstance = [clazz performSelector: NSSelectorFromString(@"sharedInstance")];
9 | [sharedInstance performSelector: NSSelectorFromString(@"observe")];
10 | #pragma clang diagnostic pop
11 | }
12 | @end
13 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/platforms/ios/src/NSCFirebaseMessagingCoreUmbrella.h:
--------------------------------------------------------------------------------
1 | #import "NSCFirebaseMessagingCore.h"
2 | #import "NSCFirebaseMessagingCoreLoader.h"
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/platforms/ios/src/module.modulemap:
--------------------------------------------------------------------------------
1 | module NSCFirebaseMessagingCore {
2 | umbrella header "NSCFirebaseMessagingCoreUmbrella.h"
3 | export *
4 | module * { export * }
5 | }
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 | .cxx
15 | local.properties
16 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/.idea/.name:
--------------------------------------------------------------------------------
1 | FirebaseMessagingDemo
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
19 |
20 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/androidTest/java/org/nativescript/firebase/firebasemessagingdemo/ExampleInstrumentedTest.kt:
--------------------------------------------------------------------------------
1 | package org.nativescript.firebase.firebasemessagingdemo
2 |
3 | import androidx.test.platform.app.InstrumentationRegistry
4 | import androidx.test.ext.junit.runners.AndroidJUnit4
5 |
6 | import org.junit.Test
7 | import org.junit.runner.RunWith
8 |
9 | import org.junit.Assert.*
10 |
11 | /**
12 | * Instrumented test, which will execute on an Android device.
13 | *
14 | * See [testing documentation](http://d.android.com/tools/testing).
15 | */
16 | @RunWith(AndroidJUnit4::class)
17 | class ExampleInstrumentedTest {
18 | @Test
19 | fun useAppContext() {
20 | // Context of the app under test.
21 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22 | assertEquals("org.nativescript.firebase.firebasemessagingdemo", appContext.packageName)
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
12 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/main/java/org/nativescript/firebase/firebasemessagingdemo/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package org.nativescript.firebase.firebasemessagingdemo
2 |
3 | import androidx.appcompat.app.AppCompatActivity
4 | import android.os.Bundle
5 |
6 | class MainActivity : AppCompatActivity() {
7 | override fun onCreate(savedInstanceState: Bundle?) {
8 | super.onCreate(savedInstanceState)
9 | setContentView(R.layout.activity_main)
10 | }
11 | }
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-messaging-core/src-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
11 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | FirebaseMessagingDemo
3 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
17 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/app/src/test/java/org/nativescript/firebase/firebasemessagingdemo/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | package org.nativescript.firebase.firebasemessagingdemo
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * See [testing documentation](http://d.android.com/tools/testing).
11 | */
12 | class ExampleUnitTest {
13 | @Test
14 | fun addition_isCorrect() {
15 | assertEquals(4, 2 + 2)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 | buildscript {
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 | dependencies {
8 | classpath "com.android.tools.build:gradle:7.0.0"
9 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20"
10 |
11 | // NOTE: Do not place your application dependencies here; they belong
12 | // in the individual module build.gradle files
13 | }
14 | }
15 |
16 | task clean(type: Delete) {
17 | delete rootProject.buildDir
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-messaging-core/src-native/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Tue Sep 14 08:22:48 AST 2021
2 | distributionBase=GRADLE_USER_HOME
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
4 | distributionPath=wrapper/dists
5 | zipStorePath=wrapper/dists
6 | zipStoreBase=GRADLE_USER_HOME
7 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/messaging/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/messaging/consumer-rules.pro:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-messaging-core/src-native/android/messaging/consumer-rules.pro
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/messaging/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/messaging/src/androidTest/java/org/nativescript/firebase/messaging/ExampleInstrumentedTest.kt:
--------------------------------------------------------------------------------
1 | package org.nativescript.firebase.messaging
2 |
3 | import androidx.test.platform.app.InstrumentationRegistry
4 | import androidx.test.ext.junit.runners.AndroidJUnit4
5 |
6 | import org.junit.Test
7 | import org.junit.runner.RunWith
8 |
9 | import org.junit.Assert.*
10 |
11 | /**
12 | * Instrumented test, which will execute on an Android device.
13 | *
14 | * See [testing documentation](http://d.android.com/tools/testing).
15 | */
16 | @RunWith(AndroidJUnit4::class)
17 | class ExampleInstrumentedTest {
18 | @Test
19 | fun useAppContext() {
20 | // Context of the app under test.
21 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22 | assertEquals("org.nativescript.firebase.messaging.test", appContext.packageName)
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/messaging/src/test/java/org/nativescript/firebase/messaging/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | package org.nativescript.firebase.messaging
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * See [testing documentation](http://d.android.com/tools/testing).
11 | */
12 | class ExampleUnitTest {
13 | @Test
14 | fun addition_isCorrect() {
15 | assertEquals(4, 2 + 2)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/src-native/android/settings.gradle:
--------------------------------------------------------------------------------
1 | dependencyResolutionManagement {
2 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
3 | repositories {
4 | google()
5 | mavenCentral()
6 | jcenter() // Warning: this repository is going to shut down soon
7 | }
8 | }
9 | rootProject.name = "FirebaseMessagingDemo"
10 | include ':app'
11 | include ':messaging'
12 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "**/*.test.ts", "angular"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-messaging-core/typings/objc!NSCFirebaseMessagingCore.d.ts:
--------------------------------------------------------------------------------
1 | declare class NSCFirebaseMessagingCore extends NSObject {
2 | static APNSTokenToString(tokenData: NSData): string;
3 |
4 | static alloc(): NSCFirebaseMessagingCore; // inherited from NSObject
5 |
6 | static new(): NSCFirebaseMessagingCore; // inherited from NSObject
7 |
8 | static onMessageCallback: (p1: NSDictionary, p2?: UNNotificationResponse) => void;
9 |
10 | static onNotificationTapCallback: (p1: NSDictionary, p2?: UNNotificationResponse) => void;
11 |
12 | static onTokenCallback: (p1: string) => void;
13 |
14 | static registerDeviceForRemoteMessagesCallback: (p1: boolean, p2: NSError) => void;
15 |
16 | static showNotificationsWhenInForeground: boolean;
17 | }
18 |
--------------------------------------------------------------------------------
/packages/firebase-messaging/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-messaging/assets/images/push-xcode-config.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-messaging/assets/images/push-xcode-config.png
--------------------------------------------------------------------------------
/packages/firebase-messaging/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "33.13.0" }
3 | implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
4 | implementation 'com.google.firebase:firebase-analytics'
5 | }
--------------------------------------------------------------------------------
/packages/firebase-messaging/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '13.0'
2 | pod 'Firebase/Messaging', '~>11.5.0'
3 |
--------------------------------------------------------------------------------
/packages/firebase-messaging/platforms/ios/src/NSCFIRMessagingUmbrella.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-messaging/platforms/ios/src/NSCFIRMessagingUmbrella.h
--------------------------------------------------------------------------------
/packages/firebase-messaging/platforms/ios/src/module.modulemap:
--------------------------------------------------------------------------------
1 | module NSCFIRMessaging {
2 | umbrella header "NSCFIRMessagingUmbrella.h"
3 | export *
4 | module * { export * }
5 | }
--------------------------------------------------------------------------------
/packages/firebase-messaging/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-messaging/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "angular"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-messaging/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 | ///
5 |
--------------------------------------------------------------------------------
/packages/firebase-messaging/typings/objc!FirebaseMessagingInterop.d.ts:
--------------------------------------------------------------------------------
1 | interface FIRMessagingInterop {
2 | FCMToken: string;
3 | }
4 | declare var FIRMessagingInterop: {
5 | prototype: FIRMessagingInterop;
6 | };
7 |
8 | declare var FirebaseMessagingInteropVersionNumber: number;
9 |
10 | declare var FirebaseMessagingInteropVersionString: interop.Reference;
11 |
--------------------------------------------------------------------------------
/packages/firebase-messaging/typings/objc!NSCFirebaseMessagingCore.d.ts:
--------------------------------------------------------------------------------
1 | declare class NSCFirebaseMessagingCore extends NSObject {
2 | static APNSTokenToString(tokenData: NSData): string;
3 |
4 | static alloc(): NSCFirebaseMessagingCore; // inherited from NSObject
5 |
6 | static new(): NSCFirebaseMessagingCore; // inherited from NSObject
7 |
8 | static onMessageCallback: (p1: NSDictionary, p2: () => void) => void;
9 |
10 | static onNotificationTapCallback: (p1: NSDictionary, p2: () => void) => void;
11 |
12 | static onTokenCallback: (p1: string) => void;
13 |
14 | static registerDeviceForRemoteMessagesCallback: (p1: boolean, p2: NSError) => void;
15 |
16 | static showNotificationsWhenInForeground: boolean;
17 | }
18 |
--------------------------------------------------------------------------------
/packages/firebase-performance/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-performance/platforms/android/buildscript.gradle:
--------------------------------------------------------------------------------
1 | repositories {
2 | google()
3 | mavenCentral()
4 | jcenter()
5 | }
6 |
7 | dependencies {
8 | classpath 'com.google.firebase:perf-plugin:1.4.2'
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-performance/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | repositories {
2 | google()
3 | mavenCentral()
4 | jcenter()
5 | }
6 |
7 | dependencies {
8 | def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "33.13.0" }
9 | implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
10 | implementation 'com.google.firebase:firebase-perf'
11 | }
12 |
--------------------------------------------------------------------------------
/packages/firebase-performance/platforms/android/rootbuildscript.gradle:
--------------------------------------------------------------------------------
1 | repositories {
2 | google()
3 | mavenCentral()
4 | jcenter()
5 | }
6 |
7 | dependencies {
8 | classpath 'com.google.firebase:perf-plugin:1.4.2'
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-performance/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '13.0'
2 | pod 'Firebase/Performance', '~>11.5.0'
3 |
--------------------------------------------------------------------------------
/packages/firebase-performance/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-performance/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "angular", "src-native"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-performance/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-remote-config/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-remote-config/platforms/android/firebase_remote_config.aar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-remote-config/platforms/android/firebase_remote_config.aar
--------------------------------------------------------------------------------
/packages/firebase-remote-config/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "33.13.0" }
3 | implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
4 | implementation 'com.google.firebase:firebase-config'
5 | implementation 'com.google.firebase:firebase-analytics'
6 | }
--------------------------------------------------------------------------------
/packages/firebase-remote-config/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '13.0'
2 | pod 'Firebase/RemoteConfig', '~>11.5.0'
3 |
--------------------------------------------------------------------------------
/packages/firebase-remote-config/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-remote-config/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "angular", "src-native"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-remote-config/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 |
--------------------------------------------------------------------------------
/packages/firebase-storage/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-storage/common.ts:
--------------------------------------------------------------------------------
1 | export enum TaskState {
2 | CANCELLED = 'cancelled',
3 | ERROR = 'error',
4 | PAUSED = 'paused',
5 | RUNNING = 'running',
6 | SUCCESS = 'success',
7 | UNKNOWN = 'unknown',
8 | }
9 |
10 | export enum TaskEvent {
11 | STATE_CHANGED = 'state_changed',
12 | }
13 |
14 | export enum StringFormat {
15 | BASE64 = 'base64',
16 | BASE64URL = 'base64url',
17 | DATA_URL = 'data_url',
18 | RAW = 'raw',
19 | }
20 |
--------------------------------------------------------------------------------
/packages/firebase-storage/platforms/android/firebase_storage.aar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-storage/platforms/android/firebase_storage.aar
--------------------------------------------------------------------------------
/packages/firebase-storage/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | def computeFirebaseBomVersion = { -> project.hasProperty("firebaseBomVersion") ? firebaseBomVersion : "33.13.0" }
3 | implementation platform("com.google.firebase:firebase-bom:${computeFirebaseBomVersion}")
4 | implementation 'com.google.firebase:firebase-storage'
5 | }
--------------------------------------------------------------------------------
/packages/firebase-storage/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '13.0'
2 | pod 'Firebase/Storage', '~>11.5.0'
3 |
--------------------------------------------------------------------------------
/packages/firebase-storage/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-storage/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "angular", "src-native"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-storage/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 |
--------------------------------------------------------------------------------
/packages/firebase-storage/utils.ts:
--------------------------------------------------------------------------------
1 | export function b64WithoutPrefix(b64) {
2 | return b64.split(',')[1];
3 | }
4 |
5 | export function getMIMEforBase64String(b64) {
6 | return b64.split(',')[0]?.replace(';base64', '')?.replace('data:', '') ?? 'application/octet-stream';
7 | }
8 |
--------------------------------------------------------------------------------
/packages/firebase-ui/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../../.eslintrc.json"],
3 | "ignorePatterns": ["!**/*", "node_modules/**/*"],
4 | "overrides": [
5 | {
6 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7 | "rules": {}
8 | },
9 | {
10 | "files": ["*.ts", "*.tsx"],
11 | "rules": {}
12 | },
13 | {
14 | "files": ["*.js", "*.jsx"],
15 | "rules": {}
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/packages/firebase-ui/common.ts:
--------------------------------------------------------------------------------
1 | import { IProvider, IUI } from '.';
2 |
3 | export class ProviderBase implements IProvider {
4 | getNative(ui: IUI): any {
5 | return null;
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/packages/firebase-ui/platforms/android/firebase_ui.aar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-ui/platforms/android/firebase_ui.aar
--------------------------------------------------------------------------------
/packages/firebase-ui/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | implementation 'com.firebaseui:firebase-ui-auth:7.2.0'
3 | }
--------------------------------------------------------------------------------
/packages/firebase-ui/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '13.0'
2 | pod 'FirebaseUI', '~> 14.2.0'
--------------------------------------------------------------------------------
/packages/firebase-ui/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/firebase-ui/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "**/*.test.ts", "angular"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/firebase-ui/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 | ///
5 | ///
6 | ///
7 | ///
8 | ///
9 | ///
10 | ///
11 | ///
12 | ///
13 | ///
14 | ///
15 |
--------------------------------------------------------------------------------
/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/app.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | constraints {
3 | implementation 'androidx.work:work-runtime:2.7.0'
4 | }
5 | }
6 |
7 | android {
8 | compileSdkVersion 34
9 | defaultConfig {
10 | minSdkVersion 23
11 | targetSdkVersion 34
12 | generatedDensities = []
13 | }
14 | aaptOptions {
15 | additionalParameters "--no-version-vectors"
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-hdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/Android/src/main/res/drawable-hdpi/background.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/Android/src/main/res/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-hdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/Android/src/main/res/drawable-hdpi/logo.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-ldpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/Android/src/main/res/drawable-ldpi/background.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/Android/src/main/res/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-ldpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/Android/src/main/res/drawable-ldpi/logo.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-mdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/Android/src/main/res/drawable-mdpi/background.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/Android/src/main/res/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-mdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/Android/src/main/res/drawable-mdpi/logo.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml:
--------------------------------------------------------------------------------
1 |
2 | -
3 |
4 |
5 | -
6 |
7 |
8 |
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-xhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/Android/src/main/res/drawable-xhdpi/background.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/values-v21/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3d5afe
4 |
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #F5F5F5
4 | #757575
5 | #33B5E5
6 | #272734
7 |
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchScreen-AspectFill.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchScreen-AspectFill@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchScreen-AspectFill@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchScreen-Center.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchScreen-Center@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchScreen-Center@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Podfile:
--------------------------------------------------------------------------------
1 | $NSFirebaseAnalyticsWithoutAdIdSupport=true
2 | post_install do |installer|
3 | installer.pods_project.targets.each do |target|
4 | target.build_configurations.each do |config|
5 | config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
6 | end
7 | end
8 | end
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/app.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | aps-environment
6 | development
7 | com.apple.security.cs.allow-unsigned-executable-memory
8 |
9 | com.apple.security.network.client
10 |
11 | com.apple.developer.associated-domains
12 |
13 | applinks:triniwiz.page.link
14 | applinks:nativescript.org
15 |
16 |
17 |
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/build.xcconfig:
--------------------------------------------------------------------------------
1 | // You can add custom settings here
2 | // for example you can uncomment the following line to force distribution code signing
3 | // CODE_SIGN_IDENTITY = iPhone Distribution
4 | // To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
5 | DEVELOPMENT_TEAM = TG7LSJHB64;
6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
7 | IPHONEOS_DEPLOYMENT_TARGET = 13.0;
8 |
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/icon.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/icon@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/assets/App_Resources/iOS/icon@2x.png
--------------------------------------------------------------------------------
/tools/assets/README.md:
--------------------------------------------------------------------------------
1 | Assets shared across multiple targets in the workspace to reduce filesize of the repo as well as reduce maintenance costs of duplicate assets.
2 |
3 | * `App_Resources`: All `e2e` app harnesses share the same App_Resources from here.
--------------------------------------------------------------------------------
/tools/assets/publishing/.npmignore:
--------------------------------------------------------------------------------
1 | __ivy_ngcc__
2 | *.__ivy_ngcc_bak
3 | *.tgz
--------------------------------------------------------------------------------
/tools/demo/firebase-analytics/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import { } from '@nativescript/firebase-analytics';
3 |
4 | export class DemoSharedFirebaseAnalytics extends DemoSharedBase {
5 |
6 | testIt() {
7 | console.log('test firebase-analytics!');
8 | }
9 | }
--------------------------------------------------------------------------------
/tools/demo/firebase-app-check-debug/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import { } from '@nativescript/firebase-app-check-debug';
3 |
4 | export class DemoSharedFirebaseAppCheckDebug extends DemoSharedBase {
5 |
6 | testIt() {
7 | console.log('test firebase-app-check-debug!');
8 | }
9 | }
--------------------------------------------------------------------------------
/tools/demo/firebase-app-check/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import { } from '@nativescript/firebase-app-check';
3 |
4 | export class DemoSharedFirebaseAppCheck extends DemoSharedBase {
5 |
6 | testIt() {
7 | console.log('test firebase-app-check!');
8 | }
9 | }
--------------------------------------------------------------------------------
/tools/demo/firebase-auth/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import { } from '@nativescript/firebase-auth';
3 |
4 | export class DemoSharedFirebaseAuth extends DemoSharedBase {
5 |
6 | testIt() {
7 | console.log('test firebase-auth!');
8 | }
9 | }
--------------------------------------------------------------------------------
/tools/demo/firebase-core/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import { } from '@nativescript/firebase-core';
3 |
4 | export class DemoSharedFirebaseCore extends DemoSharedBase {
5 |
6 | testIt() {
7 | console.log('test firebase-core!');
8 | }
9 | }
--------------------------------------------------------------------------------
/tools/demo/firebase-crashlytics/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import { } from '@nativescript/firebase-crashlytics';
3 |
4 | export class DemoSharedFirebaseCrashlytics extends DemoSharedBase {
5 |
6 | testIt() {
7 | console.log('test firebase-crashlytics!');
8 | }
9 | }
--------------------------------------------------------------------------------
/tools/demo/firebase-database/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import { } from '@nativescript/firebase-database';
3 |
4 | export class DemoSharedFirebaseDatabase extends DemoSharedBase {
5 |
6 | testIt() {
7 | console.log('test firebase-database!');
8 | }
9 | }
--------------------------------------------------------------------------------
/tools/demo/firebase-dynamic-links/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import { } from '@nativescript/firebase-dynamic-links';
3 |
4 | export class DemoSharedFirebaseDynamicLinks extends DemoSharedBase {
5 |
6 | testIt() {
7 | console.log('test firebase-dynamic-links!');
8 | }
9 | }
--------------------------------------------------------------------------------
/tools/demo/firebase-firestore/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import { } from '@nativescript/firebase-firestore';
3 |
4 | export class DemoSharedFirebaseFirestore extends DemoSharedBase {
5 |
6 | testIt() {
7 | console.log('test firebase-firestore!');
8 | }
9 | }
--------------------------------------------------------------------------------
/tools/demo/firebase-functions/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import { } from '@nativescript/firebase-functions';
3 |
4 | export class DemoSharedFirebaseFunctions extends DemoSharedBase {
5 |
6 | testIt() {
7 | console.log('test firebase-functions!');
8 | }
9 | }
--------------------------------------------------------------------------------
/tools/demo/firebase-in-app-messaging/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import { } from '@nativescript/firebase-in-app-messaging';
3 |
4 | export class DemoSharedFirebaseInAppMessaging extends DemoSharedBase {
5 |
6 | testIt() {
7 | console.log('test firebase-in-app-messaging!');
8 | }
9 | }
--------------------------------------------------------------------------------
/tools/demo/firebase-installations/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import { } from '@nativescript/firebase-installations';
3 |
4 | export class DemoSharedFirebaseInstallations extends DemoSharedBase {
5 |
6 | testIt() {
7 | console.log('test firebase-installations!');
8 | }
9 | }
--------------------------------------------------------------------------------
/tools/demo/firebase-messaging-core/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import {} from '@nativescript/firebase-messaging-core';
3 |
4 | export class DemoSharedFirebaseMessagingCore extends DemoSharedBase {
5 | testIt() {
6 | console.log('test firebase-messaging-core!');
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/tools/demo/firebase-messaging/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import { } from '@nativescript/firebase-messaging';
3 |
4 | export class DemoSharedFirebaseMessaging extends DemoSharedBase {
5 |
6 | testIt() {
7 | console.log('test firebase-messaging!');
8 | }
9 | }
--------------------------------------------------------------------------------
/tools/demo/firebase-performance/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import { } from '@nativescript/firebase-performance';
3 |
4 | export class DemoSharedFirebasePerformance extends DemoSharedBase {
5 |
6 | testIt() {
7 | console.log('test firebase-performance!');
8 | }
9 | }
--------------------------------------------------------------------------------
/tools/demo/firebase-remote-config/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import { } from '@nativescript/firebase-remote-config';
3 |
4 | export class DemoSharedFirebaseRemoteConfig extends DemoSharedBase {
5 |
6 | testIt() {
7 | console.log('test firebase-remote-config!');
8 | }
9 | }
--------------------------------------------------------------------------------
/tools/demo/firebase-storage/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import { } from '@nativescript/firebase-storage';
3 |
4 | export class DemoSharedFirebaseStorage extends DemoSharedBase {
5 |
6 | testIt() {
7 | console.log('test firebase-storage!');
8 | }
9 | }
--------------------------------------------------------------------------------
/tools/demo/firebase-ui/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import {} from '@nativescript/firebase-ui';
3 |
4 | export class DemoSharedFirebaseUi extends DemoSharedBase {
5 | testIt() {
6 | console.log('test firebase-ui!');
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/tools/demo/index.ts:
--------------------------------------------------------------------------------
1 | export * from './utils';
2 | export * from './firebase-analytics';
3 | export * from './firebase-app-check';
4 | export * from './firebase-app-check-debug';
5 | export * from './firebase-auth';
6 | export * from './firebase-core';
7 | export * from './firebase-crashlytics';
8 | export * from './firebase-database';
9 | export * from './firebase-dynamic-links';
10 | export * from './firebase-firestore';
11 | export * from './firebase-functions';
12 | export * from './firebase-in-app-messaging';
13 | export * from './firebase-installations';
14 | export * from './firebase-messaging';
15 | export * from './firebase-messaging-core';
16 | export * from './firebase-performance';
17 | export * from './firebase-remote-config';
18 | export * from './firebase-storage';
19 | export * from './firebase-ui';
20 |
--------------------------------------------------------------------------------
/tools/demo/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/tools/demo/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "baseUrl": ".",
5 | "paths": {
6 | "@nativescript/*": [
7 | "../../packages/*"
8 | ]
9 | }
10 | }
11 | }
--------------------------------------------------------------------------------
/tools/demo/utils/demo-base.ts:
--------------------------------------------------------------------------------
1 | import { Observable } from '@nativescript/core';
2 |
3 | export class DemoSharedBase extends Observable {
4 | // in case you want to globally control how your shared demo code works across whole workspace
5 | }
6 |
--------------------------------------------------------------------------------
/tools/demo/utils/index.ts:
--------------------------------------------------------------------------------
1 | export * from './demo-base';
2 |
--------------------------------------------------------------------------------
/tools/images/deadpool.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/images/deadpool.jpeg
--------------------------------------------------------------------------------
/tools/package-settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@nativescript",
3 | "repository": {
4 | "type": "git",
5 | "url": "https://github.com/NativeScript/firebase.git"
6 | },
7 | "keywords": ["NativeScript", "JavaScript", "TypeScript", "iOS", "Android"],
8 | "author": {
9 | "name": "NativeScript",
10 | "email": "oss@nativescript.org"
11 | },
12 | "bugs": {
13 | "url": "https://github.com/NativeScript/firebase/issues"
14 | },
15 | "license": "Apache-2.0",
16 | "homepage": "https://github.com/NativeScript/firebase"
17 | }
18 |
--------------------------------------------------------------------------------
/tools/schematics/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NativeScript/firebase/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/tools/schematics/.gitkeep
--------------------------------------------------------------------------------
/tools/tsconfig.tools.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../dist/out-tsc/tools",
5 | "rootDir": ".",
6 | "module": "commonjs",
7 | "target": "es5",
8 | "types": ["node"]
9 | },
10 | "include": ["**/*.ts"],
11 | "exclude": [
12 | "demo"
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------