@entrig/capacitor 0.0.4 → 0.0.5

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.
@@ -1,11 +1,18 @@
1
1
  import Foundation
2
2
  import Capacitor
3
3
  import UserNotifications
4
+
5
+ #if canImport(Entrig)
6
+ // SPM - specific imports to avoid module/class name collision
4
7
  import class Entrig.Entrig
5
8
  import struct Entrig.EntrigConfig
6
9
  import struct Entrig.NotificationEvent
7
10
  import protocol Entrig.OnNotificationReceivedListener
8
11
  import protocol Entrig.OnNotificationClickListener
12
+ #else
13
+ // CocoaPods - module is EntrigSDK, no name collision
14
+ import EntrigSDK
15
+ #endif
9
16
 
10
17
  @objc(EntrigPlugin)
11
18
  public class EntrigPlugin: CAPPlugin, CAPBridgedPlugin, OnNotificationReceivedListener, OnNotificationClickListener {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entrig/capacitor",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Push Notifications for Supabase",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",