@capacitor-firebase/functions 8.5.0 → 8.5.2

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/Package.swift CHANGED
@@ -22,10 +22,6 @@ let package = Package(
22
22
  .product(name: "FirebaseCore", package: "firebase-ios-sdk"),
23
23
  .product(name: "FirebaseFunctions", package: "firebase-ios-sdk")
24
24
  ],
25
- path: "ios/Plugin"),
26
- .testTarget(
27
- name: "FirebaseFunctionsPluginTests",
28
- dependencies: ["FirebaseFunctionsPlugin"],
29
- path: "ios/PluginTests")
25
+ path: "ios/Plugin")
30
26
  ]
31
27
  )
package/README.md CHANGED
@@ -24,6 +24,11 @@ The Firebase Cloud Functions plugin is typically used to run backend logic from
24
24
  | 8.x.x | >=8.x.x | Active support |
25
25
  | 7.x.x | 7.x.x | Deprecated |
26
26
 
27
+ ## Guides
28
+
29
+ - [Call Firebase Cloud Functions from a Capacitor App](https://capawesome.io/blog/capacitor-firebase-cloud-functions-guide/): Call serverless backend logic by name or URL, including local emulator testing, with this plugin.
30
+ - [How to Use Firebase in a Capacitor App](https://capawesome.io/blog/how-to-use-firebase-in-a-capacitor-app/): Which plugins pair naturally with your backend logic, from sign-in to the database it reads.
31
+
27
32
  ## Installation
28
33
 
29
34
  You can use our **AI-Assisted Setup** to install the plugin.
@@ -1,4 +1,5 @@
1
1
  import Foundation
2
+ import Capacitor
2
3
  import FirebaseCore
3
4
  import FirebaseFunctions
4
5
 
@@ -9,6 +10,10 @@ import FirebaseFunctions
9
10
  self.plugin = plugin
10
11
  super.init()
11
12
  if FirebaseApp.app() == nil {
13
+ guard FirebaseOptions.defaultOptions() != nil else {
14
+ CAPLog.print("[FirebaseFunctions] Firebase was not configured: GoogleService-Info.plist is missing from the app bundle.")
15
+ return
16
+ }
12
17
  FirebaseApp.configure()
13
18
  }
14
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor-firebase/functions",
3
- "version": "8.5.0",
3
+ "version": "8.5.2",
4
4
  "description": "Capacitor plugin for Firebase Cloud Functions on Android, iOS, and Web.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",