@capacitor-firebase/performance 8.5.1 → 8.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,8 +3,8 @@
3
3
  Unofficial Capacitor plugin for [Firebase Performance Monitoring](https://firebase.google.com/docs/perf-mon).[^1]
4
4
 
5
5
  <div class="capawesome-z29o10a">
6
- <a href="https://cloud.capawesome.io/" target="_blank">
7
- <img alt="Deliver Live Updates to your Capacitor app with Capawesome Cloud" src="https://cloud.capawesome.io/assets/banners/cloud-build-and-deploy-capacitor-apps.png?t=1" />
6
+ <a href="https://capawesome.io/" target="_blank">
7
+ <img alt="Ship a fix in one command with Capawesome Cloud Live Updates, no store review" src="https://capawesome.io/assets/banners/cloud-ship-a-fix-in-one-command.png" />
8
8
  </a>
9
9
  </div>
10
10
 
@@ -27,6 +27,11 @@ The Firebase Performance Monitoring plugin is typically used to gain insight int
27
27
  | 5.x.x | 5.x.x | Deprecated |
28
28
  | 1.x.x | 4.x.x | Deprecated |
29
29
 
30
+ ## Guides
31
+
32
+ - [Monitor App Performance in Capacitor with Firebase](https://capawesome.io/blog/capacitor-firebase-performance-monitoring-guide/): Automatic and custom traces for app start, rendering, and network calls with this plugin.
33
+ - [How to Use Firebase in a Capacitor App](https://capawesome.io/blog/how-to-use-firebase-in-a-capacitor-app/): The whole plugin family in one guide, with performance monitoring as one half of app health.
34
+
30
35
  ## Installation
31
36
 
32
37
  You can use our **AI-Assisted Setup** to install the plugin.
@@ -1,5 +1,6 @@
1
1
  import Foundation
2
2
 
3
+ import Capacitor
3
4
  import FirebaseCore
4
5
  import FirebasePerformance
5
6
 
@@ -8,6 +9,10 @@ import FirebasePerformance
8
9
 
9
10
  override init() {
10
11
  if FirebaseApp.app() == nil {
12
+ guard FirebaseOptions.defaultOptions() != nil else {
13
+ CAPLog.print("[FirebasePerformance] Firebase was not configured: GoogleService-Info.plist is missing from the app bundle.")
14
+ return
15
+ }
11
16
  FirebaseApp.configure()
12
17
  }
13
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor-firebase/performance",
3
- "version": "8.5.1",
3
+ "version": "8.6.0",
4
4
  "description": "Capacitor plugin for Firebase Performance Monitoring on Android, iOS, and Web.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",