@ua/capacitor-airship 2.2.0 → 2.4.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.
Files changed (33) hide show
  1. package/UaCapacitorAirship.podspec +2 -12
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/com/airship/capacitor/AirshipCapacitorVersion.kt +1 -1
  4. package/android/src/main/java/com/airship/capacitor/AirshipPlugin.kt +31 -1
  5. package/android/src/main/java/com/airship/capacitor/CapacitorAutopilot.kt +1 -3
  6. package/dist/esm/AirshipLiveActivityManager.d.ts +44 -0
  7. package/dist/esm/AirshipLiveActivityManager.js +56 -0
  8. package/dist/esm/AirshipLiveActivityManager.js.map +1 -0
  9. package/dist/esm/AirshipLiveUpdateManager.d.ts +43 -0
  10. package/dist/esm/AirshipLiveUpdateManager.js +55 -0
  11. package/dist/esm/AirshipLiveUpdateManager.js.map +1 -0
  12. package/dist/esm/AirshipRoot.d.ts +18 -0
  13. package/dist/esm/AirshipRoot.js +14 -0
  14. package/dist/esm/AirshipRoot.js.map +1 -1
  15. package/dist/esm/EventType.d.ts +4 -2
  16. package/dist/esm/EventType.js +1 -0
  17. package/dist/esm/EventType.js.map +1 -1
  18. package/dist/esm/index.d.ts +2 -0
  19. package/dist/esm/index.js +2 -0
  20. package/dist/esm/index.js.map +1 -1
  21. package/dist/esm/types.d.ts +230 -0
  22. package/dist/esm/types.js.map +1 -1
  23. package/dist/plugin.cjs.js +125 -0
  24. package/dist/plugin.cjs.js.map +1 -1
  25. package/dist/plugin.js +125 -0
  26. package/dist/plugin.js.map +1 -1
  27. package/ios/Plugin/AirshipCapacitorAutopilot.swift +1 -4
  28. package/ios/Plugin/AirshipCapacitorVersion.swift +1 -1
  29. package/ios/Plugin/AirshipPlugin.swift +50 -2
  30. package/ios/Plugin/AirshipPluginLoader.swift +11 -0
  31. package/package.json +1 -1
  32. package/ios/Bootloader/AirshipCapacitorBootstrap.m +0 -25
  33. package/ios/Bootloader/Public/AirshipCapacitorBootstrap.h +0 -8
@@ -13,16 +13,6 @@ Pod::Spec.new do |s|
13
13
  s.ios.deployment_target = '14.0'
14
14
  s.dependency 'Capacitor'
15
15
  s.swift_version = '5.1'
16
- s.dependency "AirshipFrameworkProxy", "8.1.0"
17
- s.default_subspecs = ["Bootloader", "Plugin"]
18
-
19
-
20
- s.subspec "Bootloader" do |bootloader|
21
- bootloader.source_files = 'ios/Bootloader/**/*.{swift,h,m,c,cc,mm,cpp}'
22
- end
23
-
24
-
25
- s.subspec "Plugin" do |plugin|
26
- plugin.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
27
- end
16
+ s.dependency "AirshipFrameworkProxy", "10.1.0"
17
+ s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
28
18
  end
@@ -1,5 +1,5 @@
1
1
  ext {
2
- airshipProxyVersion = project.hasProperty('airshipProxyVersion') ? rootProject.ext.airshipProxyVersion : '8.1.0'
2
+ airshipProxyVersion = project.hasProperty('airshipProxyVersion') ? rootProject.ext.airshipProxyVersion : '10.1.0'
3
3
  }
4
4
 
5
5
 
@@ -3,5 +3,5 @@
3
3
  package com.airship.capacitor
4
4
 
5
5
  object AirshipCapacitorVersion {
6
- var version = "2.2.0"
6
+ var version = "2.4.0"
7
7
  }
@@ -15,6 +15,7 @@ import com.urbanairship.android.framework.proxy.events.EventEmitter
15
15
  import com.urbanairship.android.framework.proxy.proxies.AirshipProxy
16
16
  import com.urbanairship.android.framework.proxy.proxies.EnableUserNotificationsArgs
17
17
  import com.urbanairship.android.framework.proxy.proxies.FeatureFlagProxy
18
+ import com.urbanairship.android.framework.proxy.proxies.LiveUpdateRequest
18
19
  import com.urbanairship.json.JsonList
19
20
  import com.urbanairship.json.JsonMap
20
21
  import com.urbanairship.json.JsonSerializable
@@ -183,7 +184,7 @@ class AirshipPlugin : Plugin() {
183
184
 
184
185
  "messageCenter#markMessageRead" -> call.resolveResult(method) { proxy.messageCenter.markMessageRead(arg.requireString()) }
185
186
  "messageCenter#deleteMessage" -> call.resolveResult(method) { proxy.messageCenter.deleteMessage(arg.requireString()) }
186
- "messageCenter#getUnreadMessageCount" -> call.resolveResult(method) { proxy.messageCenter.getUnreadMessagesCount() }
187
+ "messageCenter#getUnreadCount" -> call.resolveResult(method) { proxy.messageCenter.getUnreadMessagesCount() }
187
188
  "messageCenter#setAutoLaunchDefaultMessageCenter" -> call.resolveResult(method) { proxy.messageCenter.setAutoLaunchDefaultMessageCenter(arg.requireBoolean()) }
188
189
  "messageCenter#refreshMessages" -> call.resolveDeferred(method) { resolveCallback ->
189
190
  proxy.messageCenter.refreshInbox().addResultCallback {
@@ -246,6 +247,35 @@ class AirshipPlugin : Plugin() {
246
247
  }
247
248
  }
248
249
 
250
+ // Live Update
251
+ "liveUpdateManager#list" -> call.resolveSuspending(method) {
252
+ val request = LiveUpdateRequest.List.fromJson(arg)
253
+ proxy.liveUpdateManager.list(request)
254
+ }
255
+
256
+ "liveUpdateManager#listAll" -> call.resolveSuspending(method) {
257
+ proxy.liveUpdateManager.listAll()
258
+ }
259
+
260
+ "liveUpdateManager#start" -> call.resolveSuspending(method) {
261
+ val request = LiveUpdateRequest.Start.fromJson(arg)
262
+ proxy.liveUpdateManager.start(request)
263
+ }
264
+
265
+ "liveUpdateManager#update" -> call.resolveSuspending(method) {
266
+ val request = LiveUpdateRequest.Update.fromJson(arg)
267
+ proxy.liveUpdateManager.update(request)
268
+ }
269
+
270
+ "liveUpdateManager#end" -> call.resolveSuspending(method) {
271
+ val request = LiveUpdateRequest.End.fromJson(arg)
272
+ proxy.liveUpdateManager.end(request)
273
+ }
274
+
275
+ "liveUpdateManager#clearAll" -> call.resolveSuspending(method) {
276
+ proxy.liveUpdateManager.clearAll()
277
+ }
278
+
249
279
  else -> call.reject("Not implemented")
250
280
  }
251
281
  }
@@ -16,9 +16,7 @@ import com.urbanairship.json.JsonValue
16
16
 
17
17
  class CapacitorAutopilot : BaseAutopilot() {
18
18
 
19
- override fun onAirshipReady(airship: UAirship) {
20
- super.onAirshipReady(airship)
21
-
19
+ override fun onReady(context: Context, airship: UAirship) {
22
20
  Log.i("CapacitorAutopilot", "onAirshipReady")
23
21
  airship.analytics.registerSDKExtension(Extension.CAPACITOR, AirshipCapacitorVersion.version)
24
22
  }
@@ -0,0 +1,44 @@
1
+ import { LiveActivity, LiveActivityListRequest, LiveActivityStartRequest, LiveActivityUpdateRequest, LiveActivityEndRequest, LiveActivitiesUpdatedEvent } from './types';
2
+ import type { AirshipPluginWrapper } from './AirshipPlugin';
3
+ import { PluginListenerHandle } from '@capacitor/core';
4
+ /**
5
+ * Live Activity manager.
6
+ */
7
+ export declare class AirshipLiveActivityManager {
8
+ private readonly plugin;
9
+ constructor(plugin: AirshipPluginWrapper);
10
+ /**
11
+ * Lists any Live Activities for the request.
12
+ * @param request The request options.
13
+ * @returns A promise with the result.
14
+ */
15
+ list(request: LiveActivityListRequest): Promise<LiveActivity[]>;
16
+ /**
17
+ * Lists all Live Activities.
18
+ * @param request The request options.
19
+ * @returns A promise with the result.
20
+ */
21
+ listAll(): Promise<LiveActivity[]>;
22
+ /**
23
+ * Starts a Live Activity.
24
+ * @param request The request options.
25
+ * @returns A promise with the result.
26
+ */
27
+ start(request: LiveActivityStartRequest): Promise<LiveActivity>;
28
+ /**
29
+ * Updates a Live Activity.
30
+ * @param request The request options.
31
+ * @returns A promise with the result.
32
+ */
33
+ update(request: LiveActivityUpdateRequest): Promise<void>;
34
+ /**
35
+ * Ends a Live Activity.
36
+ * @param request The request options.
37
+ * @returns A promise with the result.
38
+ */
39
+ end(request: LiveActivityEndRequest): Promise<void>;
40
+ /**
41
+ * Adds a Live Activity listener.
42
+ */
43
+ onLiveActivityUpdates(listener: (event: LiveActivitiesUpdatedEvent) => void): Promise<PluginListenerHandle>;
44
+ }
@@ -0,0 +1,56 @@
1
+ import { EventType } from './EventType';
2
+ /**
3
+ * Live Activity manager.
4
+ */
5
+ export class AirshipLiveActivityManager {
6
+ constructor(plugin) {
7
+ this.plugin = plugin;
8
+ }
9
+ /**
10
+ * Lists any Live Activities for the request.
11
+ * @param request The request options.
12
+ * @returns A promise with the result.
13
+ */
14
+ list(request) {
15
+ return this.plugin.perform('liveActivityManager#list', request);
16
+ }
17
+ /**
18
+ * Lists all Live Activities.
19
+ * @param request The request options.
20
+ * @returns A promise with the result.
21
+ */
22
+ listAll() {
23
+ return this.plugin.perform('liveActivityManager#listAll');
24
+ }
25
+ /**
26
+ * Starts a Live Activity.
27
+ * @param request The request options.
28
+ * @returns A promise with the result.
29
+ */
30
+ start(request) {
31
+ return this.plugin.perform('liveActivityManager#start', request);
32
+ }
33
+ /**
34
+ * Updates a Live Activity.
35
+ * @param request The request options.
36
+ * @returns A promise with the result.
37
+ */
38
+ update(request) {
39
+ return this.plugin.perform('liveActivityManager#update', request);
40
+ }
41
+ /**
42
+ * Ends a Live Activity.
43
+ * @param request The request options.
44
+ * @returns A promise with the result.
45
+ */
46
+ end(request) {
47
+ return this.plugin.perform('liveActivityManager#end', request);
48
+ }
49
+ /**
50
+ * Adds a Live Activity listener.
51
+ */
52
+ onLiveActivityUpdates(listener) {
53
+ return this.plugin.addListener(EventType.IOSLiveActivitiesUpdated, listener);
54
+ }
55
+ }
56
+ //# sourceMappingURL=AirshipLiveActivityManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AirshipLiveActivityManager.js","sourceRoot":"","sources":["../../src/AirshipLiveActivityManager.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC;;GAEG;AACH,MAAM,OAAO,0BAA0B;IACrC,YAA6B,MAA4B;QAA5B,WAAM,GAAN,MAAM,CAAsB;IAAG,CAAC;IAE7D;;;;OAIG;IACI,IAAI,CAAC,OAAgC;QAC1C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,0BAA0B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;OAIG;IACI,OAAO;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,OAAiC;QAC5C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,OAAkC;QAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;OAIG;IACI,GAAG,CAAC,OAA+B;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACI,qBAAqB,CAC1B,QAAqD;QAErD,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAC5B,SAAS,CAAC,wBAAwB,EAClC,QAAQ,CACT,CAAC;IACJ,CAAC;CACF","sourcesContent":["import {\n LiveActivity,\n LiveActivityListRequest,\n LiveActivityStartRequest,\n LiveActivityUpdateRequest,\n LiveActivityEndRequest,\n LiveActivitiesUpdatedEvent,\n} from './types';\n\nimport type { AirshipPluginWrapper } from './AirshipPlugin';\nimport { EventType } from './EventType';\nimport { PluginListenerHandle } from '@capacitor/core';\n\n/**\n * Live Activity manager.\n */\nexport class AirshipLiveActivityManager {\n constructor(private readonly plugin: AirshipPluginWrapper) {}\n\n /**\n * Lists any Live Activities for the request.\n * @param request The request options.\n * @returns A promise with the result.\n */\n public list(request: LiveActivityListRequest): Promise<LiveActivity[]> {\n return this.plugin.perform('liveActivityManager#list', request);\n }\n\n /**\n * Lists all Live Activities.\n * @param request The request options.\n * @returns A promise with the result.\n */\n public listAll(): Promise<LiveActivity[]> {\n return this.plugin.perform('liveActivityManager#listAll');\n }\n\n /**\n * Starts a Live Activity.\n * @param request The request options.\n * @returns A promise with the result.\n */\n public start(request: LiveActivityStartRequest): Promise<LiveActivity> {\n return this.plugin.perform('liveActivityManager#start', request);\n }\n\n /**\n * Updates a Live Activity.\n * @param request The request options.\n * @returns A promise with the result.\n */\n public update(request: LiveActivityUpdateRequest): Promise<void> {\n return this.plugin.perform('liveActivityManager#update', request);\n }\n\n /**\n * Ends a Live Activity.\n * @param request The request options.\n * @returns A promise with the result.\n */\n public end(request: LiveActivityEndRequest): Promise<void> {\n return this.plugin.perform('liveActivityManager#end', request);\n }\n\n /**\n * Adds a Live Activity listener.\n */\n public onLiveActivityUpdates(\n listener: (event: LiveActivitiesUpdatedEvent) => void,\n ): Promise<PluginListenerHandle> {\n return this.plugin.addListener(\n EventType.IOSLiveActivitiesUpdated,\n listener,\n );\n }\n}\n"]}
@@ -0,0 +1,43 @@
1
+ import { LiveUpdate, LiveUpdateListRequest, LiveUpdateStartRequest, LiveUpdateUpdateRequest, LiveUpdateEndRequest } from './types';
2
+ import type { AirshipPluginWrapper } from './AirshipPlugin';
3
+ /**
4
+ * Live Update manager.
5
+ */
6
+ export declare class AirshipLiveUpdateManager {
7
+ private readonly plugin;
8
+ constructor(plugin: AirshipPluginWrapper);
9
+ /**
10
+ * Lists any Live Updates for the request.
11
+ * @param request The request options.
12
+ * @returns A promise with the result.
13
+ */
14
+ list(request: LiveUpdateListRequest): Promise<LiveUpdate[]>;
15
+ /**
16
+ * Lists all Live Updates.
17
+ * @returns A promise with the result.
18
+ */
19
+ listAll(): Promise<LiveUpdate[]>;
20
+ /**
21
+ * Starts a Live Update.
22
+ * @param request The request options.
23
+ * @returns A promise with the result.
24
+ */
25
+ start(request: LiveUpdateStartRequest): Promise<void>;
26
+ /**
27
+ * Updates a Live Update.
28
+ * @param request The request options.
29
+ * @returns A promise with the result.
30
+ */
31
+ update(request: LiveUpdateUpdateRequest): Promise<void>;
32
+ /**
33
+ * Ends a Live Update.
34
+ * @param request The request options.
35
+ * @returns A promise with the result.
36
+ */
37
+ end(request: LiveUpdateEndRequest): Promise<void>;
38
+ /**
39
+ * Clears all Live Updates.
40
+ * @returns A promise with the result.
41
+ */
42
+ clearAll(): Promise<void>;
43
+ }
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Live Update manager.
3
+ */
4
+ export class AirshipLiveUpdateManager {
5
+ constructor(plugin) {
6
+ this.plugin = plugin;
7
+ }
8
+ /**
9
+ * Lists any Live Updates for the request.
10
+ * @param request The request options.
11
+ * @returns A promise with the result.
12
+ */
13
+ list(request) {
14
+ return this.plugin.perform('liveUpdateManager#list', request);
15
+ }
16
+ /**
17
+ * Lists all Live Updates.
18
+ * @returns A promise with the result.
19
+ */
20
+ listAll() {
21
+ return this.plugin.perform('liveUpdateManager#listAll');
22
+ }
23
+ /**
24
+ * Starts a Live Update.
25
+ * @param request The request options.
26
+ * @returns A promise with the result.
27
+ */
28
+ start(request) {
29
+ return this.plugin.perform('liveUpdateManager#start', request);
30
+ }
31
+ /**
32
+ * Updates a Live Update.
33
+ * @param request The request options.
34
+ * @returns A promise with the result.
35
+ */
36
+ update(request) {
37
+ return this.plugin.perform('liveUpdateManager#update', request);
38
+ }
39
+ /**
40
+ * Ends a Live Update.
41
+ * @param request The request options.
42
+ * @returns A promise with the result.
43
+ */
44
+ end(request) {
45
+ return this.plugin.perform('liveUpdateManager#end', request);
46
+ }
47
+ /**
48
+ * Clears all Live Updates.
49
+ * @returns A promise with the result.
50
+ */
51
+ clearAll() {
52
+ return this.plugin.perform('liveUpdateManager#clearAll');
53
+ }
54
+ }
55
+ //# sourceMappingURL=AirshipLiveUpdateManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AirshipLiveUpdateManager.js","sourceRoot":"","sources":["../../src/AirshipLiveUpdateManager.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,MAAM,OAAO,wBAAwB;IACnC,YAA6B,MAA4B;QAA5B,WAAM,GAAN,MAAM,CAAsB;IAAG,CAAC;IAE7D;;;;OAIG;IACI,IAAI,CAAC,OAA8B;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;OAGG;IACI,OAAO;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAC1D,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,OAA+B;QAC1C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,OAAgC;QAC5C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,0BAA0B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;OAIG;IACI,GAAG,CAAC,OAA6B;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;OAGG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC;IAC3D,CAAC;CACF","sourcesContent":["import {\n LiveUpdate,\n LiveUpdateListRequest,\n LiveUpdateStartRequest,\n LiveUpdateUpdateRequest,\n LiveUpdateEndRequest,\n} from './types';\n\nimport type { AirshipPluginWrapper } from './AirshipPlugin';\n\n/**\n * Live Update manager.\n */\nexport class AirshipLiveUpdateManager {\n constructor(private readonly plugin: AirshipPluginWrapper) {}\n\n /**\n * Lists any Live Updates for the request.\n * @param request The request options.\n * @returns A promise with the result.\n */\n public list(request: LiveUpdateListRequest): Promise<LiveUpdate[]> {\n return this.plugin.perform('liveUpdateManager#list', request);\n }\n\n /**\n * Lists all Live Updates.\n * @returns A promise with the result.\n */\n public listAll(): Promise<LiveUpdate[]> {\n return this.plugin.perform('liveUpdateManager#listAll');\n }\n\n /**\n * Starts a Live Update.\n * @param request The request options.\n * @returns A promise with the result.\n */\n public start(request: LiveUpdateStartRequest): Promise<void> {\n return this.plugin.perform('liveUpdateManager#start', request);\n }\n\n /**\n * Updates a Live Update.\n * @param request The request options.\n * @returns A promise with the result.\n */\n public update(request: LiveUpdateUpdateRequest): Promise<void> {\n return this.plugin.perform('liveUpdateManager#update', request);\n }\n\n /**\n * Ends a Live Update.\n * @param request The request options.\n * @returns A promise with the result.\n */\n public end(request: LiveUpdateEndRequest): Promise<void> {\n return this.plugin.perform('liveUpdateManager#end', request);\n }\n\n /**\n * Clears all Live Updates.\n * @returns A promise with the result.\n */\n public clearAll(): Promise<void> {\n return this.plugin.perform('liveUpdateManager#clearAll');\n }\n}\n\n"]}
@@ -12,6 +12,8 @@ import { AirshipPrivacyManager } from './AirshipPrivacyManager';
12
12
  import { AirshipPush } from './AirshipPush';
13
13
  import type { AirshipPluginWrapper } from './AirshipPlugin';
14
14
  import type { AirshipConfig, DeepLinkEvent } from './types';
15
+ import { AirshipLiveActivityManager } from './AirshipLiveActivityManager';
16
+ import { AirshipLiveUpdateManager } from './AirshipLiveUpdateManager';
15
17
  /**
16
18
  * Airship
17
19
  */
@@ -28,6 +30,14 @@ export declare class AirshipRoot {
28
30
  readonly privacyManager: AirshipPrivacyManager;
29
31
  readonly push: AirshipPush;
30
32
  readonly featureFlagManager: AirshipFeatureFlagManager;
33
+ /**
34
+ * iOS only accessors
35
+ */
36
+ readonly iOS: AirshipRootIOS;
37
+ /**
38
+ * iOS only accessors
39
+ */
40
+ readonly android: AirshipRootAndroid;
31
41
  constructor(plugin: AirshipPluginWrapper);
32
42
  /**
33
43
  * Calls takeOff. If Airship is already configured for
@@ -47,3 +57,11 @@ export declare class AirshipRoot {
47
57
  */
48
58
  onDeepLink(listener: (event: DeepLinkEvent) => void): Promise<PluginListenerHandle>;
49
59
  }
60
+ export declare class AirshipRootIOS {
61
+ readonly liveActivityManager: AirshipLiveActivityManager;
62
+ constructor(plugin: AirshipPluginWrapper);
63
+ }
64
+ export declare class AirshipRootAndroid {
65
+ readonly liveUpdateManager: AirshipLiveUpdateManager;
66
+ constructor(plugin: AirshipPluginWrapper);
67
+ }
@@ -10,6 +10,8 @@ import { AirshipPreferenceCenter } from './AirshipPreferenceCenter';
10
10
  import { AirshipPrivacyManager } from './AirshipPrivacyManager';
11
11
  import { AirshipPush } from './AirshipPush';
12
12
  import { EventType } from './EventType';
13
+ import { AirshipLiveActivityManager } from './AirshipLiveActivityManager';
14
+ import { AirshipLiveUpdateManager } from './AirshipLiveUpdateManager';
13
15
  /**
14
16
  * Airship
15
17
  */
@@ -27,6 +29,8 @@ export class AirshipRoot {
27
29
  this.privacyManager = new AirshipPrivacyManager(plugin);
28
30
  this.push = new AirshipPush(plugin);
29
31
  this.featureFlagManager = new AirshipFeatureFlagManager(plugin);
32
+ this.iOS = new AirshipRootIOS(plugin);
33
+ this.android = new AirshipRootAndroid(plugin);
30
34
  }
31
35
  /**
32
36
  * Calls takeOff. If Airship is already configured for
@@ -52,4 +56,14 @@ export class AirshipRoot {
52
56
  return this.plugin.addListener(EventType.DeepLink, listener);
53
57
  }
54
58
  }
59
+ export class AirshipRootIOS {
60
+ constructor(plugin) {
61
+ this.liveActivityManager = new AirshipLiveActivityManager(plugin);
62
+ }
63
+ }
64
+ export class AirshipRootAndroid {
65
+ constructor(plugin) {
66
+ this.liveUpdateManager = new AirshipLiveUpdateManager(plugin);
67
+ }
68
+ }
55
69
  //# sourceMappingURL=AirshipRoot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AirshipRoot.js","sourceRoot":"","sources":["../../src/AirshipRoot.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;A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CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;IAED;;;OAGG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC;IAED;;OAEG;IACI,UAAU,CAAC,QAAwC;QACxD,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAC9D,CAAC;CACF","sourcesContent":["import type { PluginListenerHandle } from '@capacitor/core';\n\nimport { AirshipActions } from './AirshipActions';\nimport { AirshipAnalytics } from './AirshipAnalytics';\nimport { AirshipChannel } from './AirshipChannel';\nimport { AirshipContact } from './AirshipContact';\nimport { AirshipFeatureFlagManager } from './AirshipFeatureFlagManager';\nimport { AirshipInApp } from './AirshipInApp';\nimport { AirshipLocale } from './AirshipLocale';\nimport { AirshipMessageCenter } from './AirshipMessageCenter';\nimport { AirshipPreferenceCenter } from './AirshipPreferenceCenter';\nimport { AirshipPrivacyManager } from './AirshipPrivacyManager';\nimport { AirshipPush } from './AirshipPush';\nimport { EventType } from './EventType';\nimport type { AirshipPluginWrapper } from './AirshipPlugin';\nimport type { AirshipConfig , DeepLinkEvent } from './types';\n\n/**\n * Airship\n */\nexport class AirshipRoot {\n public readonly actions: AirshipActions;\n public readonly analytics: AirshipAnalytics;\n public readonly channel: AirshipChannel;\n public readonly contact: AirshipContact;\n public readonly inApp: AirshipInApp;\n public readonly locale: AirshipLocale;\n public readonly messageCenter: AirshipMessageCenter;\n public readonly preferenceCenter: AirshipPreferenceCenter;\n public readonly privacyManager: AirshipPrivacyManager;\n public readonly push: AirshipPush;\n public readonly featureFlagManager: AirshipFeatureFlagManager;\n\n constructor(private readonly plugin: AirshipPluginWrapper) {\n this.actions = new AirshipActions(plugin);\n this.analytics = new AirshipAnalytics(plugin);\n this.channel = new AirshipChannel(plugin);\n this.contact = new AirshipContact(plugin);\n this.inApp = new AirshipInApp(plugin);\n this.locale = new AirshipLocale(plugin);\n this.messageCenter = new AirshipMessageCenter(plugin);\n this.preferenceCenter = new AirshipPreferenceCenter(plugin);\n this.privacyManager = new AirshipPrivacyManager(plugin);\n this.push = new AirshipPush(plugin);\n this.featureFlagManager = new AirshipFeatureFlagManager(plugin);\n }\n\n /**\n * Calls takeOff. If Airship is already configured for\n * the app session, the new config will be applied on the next\n * app init.\n * @param config The config.\n * @returns A promise with the result. `true` if airship is ready.\n */\n public takeOff(config: AirshipConfig): Promise<boolean> {\n return this.plugin.perform('takeOff', config);\n }\n\n /**\n * Checks if Airship is ready.\n * @returns A promise with the result.\n */\n public isFlying(): Promise<boolean> {\n return this.plugin.perform('isFlying');\n }\n\n /**\n * Adds a deep link listener.\n */\n public onDeepLink(listener: (event: DeepLinkEvent) => void): Promise<PluginListenerHandle> {\n return this.plugin.addListener(EventType.DeepLink, listener)\n }\n}\n"]}
1
+ {"version":3,"file":"AirshipRoot.js","sourceRoot":"","sources":["../../src/AirshipRoot.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,S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M,CAAC,CAAC;IAChD,CAAC;IAED;;;OAGG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC;IAED;;OAEG;IACI,UAAU,CACf,QAAwC;QAExC,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC/D,CAAC;CACF;AAED,MAAM,OAAO,cAAc;IAGzB,YAAY,MAA4B;QACtC,IAAI,CAAC,mBAAmB,GAAG,IAAI,0BAA0B,CAAC,MAAM,CAAC,CAAC;IACpE,CAAC;CACF;AAED,MAAM,OAAO,kBAAkB;IAG7B,YAAY,MAA4B;QACtC,IAAI,CAAC,iBAAiB,GAAG,IAAI,wBAAwB,CAAC,MAAM,CAAC,CAAC;IAChE,CAAC;CACF","sourcesContent":["import type { PluginListenerHandle } from '@capacitor/core';\n\nimport { AirshipActions } from './AirshipActions';\nimport { AirshipAnalytics } from './AirshipAnalytics';\nimport { AirshipChannel } from './AirshipChannel';\nimport { AirshipContact } from './AirshipContact';\nimport { AirshipFeatureFlagManager } from './AirshipFeatureFlagManager';\nimport { AirshipInApp } from './AirshipInApp';\nimport { AirshipLocale } from './AirshipLocale';\nimport { AirshipMessageCenter } from './AirshipMessageCenter';\nimport { AirshipPreferenceCenter } from './AirshipPreferenceCenter';\nimport { AirshipPrivacyManager } from './AirshipPrivacyManager';\nimport { AirshipPush } from './AirshipPush';\nimport { EventType } from './EventType';\nimport type { AirshipPluginWrapper } from './AirshipPlugin';\nimport type { AirshipConfig, DeepLinkEvent } from './types';\nimport { AirshipLiveActivityManager } from './AirshipLiveActivityManager';\nimport { AirshipLiveUpdateManager } from './AirshipLiveUpdateManager';\n\n/**\n * Airship\n */\nexport class AirshipRoot {\n public readonly actions: AirshipActions;\n public readonly analytics: AirshipAnalytics;\n public readonly channel: AirshipChannel;\n public readonly contact: AirshipContact;\n public readonly inApp: AirshipInApp;\n public readonly locale: AirshipLocale;\n public readonly messageCenter: AirshipMessageCenter;\n public readonly preferenceCenter: AirshipPreferenceCenter;\n public readonly privacyManager: AirshipPrivacyManager;\n public readonly push: AirshipPush;\n public readonly featureFlagManager: AirshipFeatureFlagManager;\n\n /**\n * iOS only accessors\n */\n public readonly iOS: AirshipRootIOS;\n\n /**\n * iOS only accessors\n */\n public readonly android: AirshipRootAndroid;\n\n constructor(private readonly plugin: AirshipPluginWrapper) {\n this.actions = new AirshipActions(plugin);\n this.analytics = new AirshipAnalytics(plugin);\n this.channel = new AirshipChannel(plugin);\n this.contact = new AirshipContact(plugin);\n this.inApp = new AirshipInApp(plugin);\n this.locale = new AirshipLocale(plugin);\n this.messageCenter = new AirshipMessageCenter(plugin);\n this.preferenceCenter = new AirshipPreferenceCenter(plugin);\n this.privacyManager = new AirshipPrivacyManager(plugin);\n this.push = new AirshipPush(plugin);\n this.featureFlagManager = new AirshipFeatureFlagManager(plugin);\n this.iOS = new AirshipRootIOS(plugin);\n this.android = new AirshipRootAndroid(plugin);\n }\n\n /**\n * Calls takeOff. If Airship is already configured for\n * the app session, the new config will be applied on the next\n * app init.\n * @param config The config.\n * @returns A promise with the result. `true` if airship is ready.\n */\n public takeOff(config: AirshipConfig): Promise<boolean> {\n return this.plugin.perform('takeOff', config);\n }\n\n /**\n * Checks if Airship is ready.\n * @returns A promise with the result.\n */\n public isFlying(): Promise<boolean> {\n return this.plugin.perform('isFlying');\n }\n\n /**\n * Adds a deep link listener.\n */\n public onDeepLink(\n listener: (event: DeepLinkEvent) => void,\n ): Promise<PluginListenerHandle> {\n return this.plugin.addListener(EventType.DeepLink, listener);\n }\n}\n\nexport class AirshipRootIOS {\n public readonly liveActivityManager: AirshipLiveActivityManager;\n\n constructor(plugin: AirshipPluginWrapper) {\n this.liveActivityManager = new AirshipLiveActivityManager(plugin);\n }\n}\n\nexport class AirshipRootAndroid {\n public readonly liveUpdateManager: AirshipLiveUpdateManager;\n\n constructor(plugin: AirshipPluginWrapper) {\n this.liveUpdateManager = new AirshipLiveUpdateManager(plugin);\n }\n}\n"]}
@@ -1,4 +1,4 @@
1
- import type { ChannelCreatedEvent, NotificationResponseEvent, PushReceivedEvent, DeepLinkEvent, MessageCenterUpdatedEvent, PushNotificationStatusChangedEvent, iOS, DisplayMessageCenterEvent, DisplayPreferenceCenterEvent, PushTokenReceivedEvent } from './types';
1
+ import type { ChannelCreatedEvent, NotificationResponseEvent, PushReceivedEvent, DeepLinkEvent, MessageCenterUpdatedEvent, PushNotificationStatusChangedEvent, iOS, DisplayMessageCenterEvent, DisplayPreferenceCenterEvent, PushTokenReceivedEvent, LiveActivitiesUpdatedEvent } from './types';
2
2
  export declare enum EventType {
3
3
  ChannelCreated = "channel_created",
4
4
  NotificationResponse = "notification_response_received",
@@ -9,7 +9,8 @@ export declare enum EventType {
9
9
  DisplayMessageCenter = "display_message_center",
10
10
  DisplayPreferenceCenter = "display_preference_center",
11
11
  PushTokenReceived = "push_token_received",
12
- IOSAuthorizedNotificationSettingsChanged = "ios_authorized_notification_settings_changed"
12
+ IOSAuthorizedNotificationSettingsChanged = "ios_authorized_notification_settings_changed",
13
+ IOSLiveActivitiesUpdated = "ios_live_activities_updated"
13
14
  }
14
15
  export interface EventTypeMap {
15
16
  [EventType.ChannelCreated]: ChannelCreatedEvent;
@@ -22,4 +23,5 @@ export interface EventTypeMap {
22
23
  [EventType.DisplayMessageCenter]: DisplayMessageCenterEvent;
23
24
  [EventType.DisplayPreferenceCenter]: DisplayPreferenceCenterEvent;
24
25
  [EventType.PushTokenReceived]: PushTokenReceivedEvent;
26
+ [EventType.IOSLiveActivitiesUpdated]: LiveActivitiesUpdatedEvent;
25
27
  }
@@ -10,5 +10,6 @@ export var EventType;
10
10
  EventType["DisplayPreferenceCenter"] = "display_preference_center";
11
11
  EventType["PushTokenReceived"] = "push_token_received";
12
12
  EventType["IOSAuthorizedNotificationSettingsChanged"] = "ios_authorized_notification_settings_changed";
13
+ EventType["IOSLiveActivitiesUpdated"] = "ios_live_activities_updated";
13
14
  })(EventType || (EventType = {}));
14
15
  //# sourceMappingURL=EventType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventType.js","sourceRoot":"","sources":["../../src/EventType.ts"],"names":[],"mappings":"AAaA,MAAM,CAAN,IAAY,SAWX;AAXD,WAAY,SAAS;IACnB,+CAAkC,CAAA;IAClC,oEAAuD,CAAA;IACvD,2CAA8B,CAAA;IAC9B,4CAA+B,CAAA;IAC/B,4DAA+C,CAAA;IAC/C,gFAAmE,CAAA;IACnE,4DAA+C,CAAA;IAC/C,kEAAqD,CAAA;IACrD,sDAAyC,CAAA;IACzC,sGAAyF,CAAA;AAC3F,CAAC,EAXW,SAAS,KAAT,SAAS,QAWpB","sourcesContent":["import type {\n ChannelCreatedEvent,\n NotificationResponseEvent,\n PushReceivedEvent,\n DeepLinkEvent,\n MessageCenterUpdatedEvent,\n PushNotificationStatusChangedEvent,\n iOS,\n DisplayMessageCenterEvent,\n DisplayPreferenceCenterEvent,\n PushTokenReceivedEvent,\n} from './types';\n\nexport enum EventType {\n ChannelCreated = 'channel_created',\n NotificationResponse = 'notification_response_received',\n PushReceived = 'push_received',\n DeepLink = 'deep_link_received',\n MessageCenterUpdated = 'message_center_updated',\n PushNotificationStatusChangedStatus = 'notification_status_changed',\n DisplayMessageCenter = 'display_message_center',\n DisplayPreferenceCenter = 'display_preference_center',\n PushTokenReceived = 'push_token_received',\n IOSAuthorizedNotificationSettingsChanged = 'ios_authorized_notification_settings_changed',\n}\n\nexport interface EventTypeMap {\n [EventType.ChannelCreated]: ChannelCreatedEvent;\n [EventType.NotificationResponse]: NotificationResponseEvent;\n [EventType.PushReceived]: PushReceivedEvent;\n [EventType.DeepLink]: DeepLinkEvent;\n [EventType.MessageCenterUpdated]: MessageCenterUpdatedEvent;\n [EventType.PushNotificationStatusChangedStatus]: PushNotificationStatusChangedEvent;\n [EventType.IOSAuthorizedNotificationSettingsChanged]: iOS.AuthorizedNotificationSettingsChangedEvent;\n [EventType.DisplayMessageCenter]: DisplayMessageCenterEvent;\n [EventType.DisplayPreferenceCenter]: DisplayPreferenceCenterEvent;\n [EventType.PushTokenReceived]: PushTokenReceivedEvent;\n}\n"]}
1
+ {"version":3,"file":"EventType.js","sourceRoot":"","sources":["../../src/EventType.ts"],"names":[],"mappings":"AAcA,MAAM,CAAN,IAAY,SAYX;AAZD,WAAY,SAAS;IACnB,+CAAkC,CAAA;IAClC,oEAAuD,CAAA;IACvD,2CAA8B,CAAA;IAC9B,4CAA+B,CAAA;IAC/B,4DAA+C,CAAA;IAC/C,gFAAmE,CAAA;IACnE,4DAA+C,CAAA;IAC/C,kEAAqD,CAAA;IACrD,sDAAyC,CAAA;IACzC,sGAAyF,CAAA;IACzF,qEAAwD,CAAA;AAC1D,CAAC,EAZW,SAAS,KAAT,SAAS,QAYpB","sourcesContent":["import type {\n ChannelCreatedEvent,\n NotificationResponseEvent,\n PushReceivedEvent,\n DeepLinkEvent,\n MessageCenterUpdatedEvent,\n PushNotificationStatusChangedEvent,\n iOS,\n DisplayMessageCenterEvent,\n DisplayPreferenceCenterEvent,\n PushTokenReceivedEvent,\n LiveActivitiesUpdatedEvent,\n} from './types';\n\nexport enum EventType {\n ChannelCreated = 'channel_created',\n NotificationResponse = 'notification_response_received',\n PushReceived = 'push_received',\n DeepLink = 'deep_link_received',\n MessageCenterUpdated = 'message_center_updated',\n PushNotificationStatusChangedStatus = 'notification_status_changed',\n DisplayMessageCenter = 'display_message_center',\n DisplayPreferenceCenter = 'display_preference_center',\n PushTokenReceived = 'push_token_received',\n IOSAuthorizedNotificationSettingsChanged = 'ios_authorized_notification_settings_changed',\n IOSLiveActivitiesUpdated = 'ios_live_activities_updated',\n}\n\nexport interface EventTypeMap {\n [EventType.ChannelCreated]: ChannelCreatedEvent;\n [EventType.NotificationResponse]: NotificationResponseEvent;\n [EventType.PushReceived]: PushReceivedEvent;\n [EventType.DeepLink]: DeepLinkEvent;\n [EventType.MessageCenterUpdated]: MessageCenterUpdatedEvent;\n [EventType.PushNotificationStatusChangedStatus]: PushNotificationStatusChangedEvent;\n [EventType.IOSAuthorizedNotificationSettingsChanged]: iOS.AuthorizedNotificationSettingsChangedEvent;\n [EventType.DisplayMessageCenter]: DisplayMessageCenterEvent;\n [EventType.DisplayPreferenceCenter]: DisplayPreferenceCenterEvent;\n [EventType.PushTokenReceived]: PushTokenReceivedEvent;\n [EventType.IOSLiveActivitiesUpdated]: LiveActivitiesUpdatedEvent;\n}\n"]}
@@ -10,6 +10,8 @@ export { AirshipMessageCenter } from './AirshipMessageCenter';
10
10
  export { AirshipPreferenceCenter } from './AirshipPreferenceCenter';
11
11
  export { AirshipPrivacyManager } from './AirshipPrivacyManager';
12
12
  export { AirshipFeatureFlagManager } from './AirshipFeatureFlagManager';
13
+ export { AirshipLiveActivityManager } from './AirshipLiveActivityManager';
14
+ export { AirshipLiveUpdateManager } from './AirshipLiveUpdateManager';
13
15
  export { AirshipPush, AirshipPushAndroid, AirshipPushIOS } from './AirshipPush';
14
16
  export { SubscriptionListEditor } from './SubscriptionListEditor';
15
17
  export { TagGroupEditor } from './TagGroupEditor';
package/dist/esm/index.js CHANGED
@@ -12,6 +12,8 @@ export { AirshipMessageCenter } from './AirshipMessageCenter';
12
12
  export { AirshipPreferenceCenter } from './AirshipPreferenceCenter';
13
13
  export { AirshipPrivacyManager } from './AirshipPrivacyManager';
14
14
  export { AirshipFeatureFlagManager } from './AirshipFeatureFlagManager';
15
+ export { AirshipLiveActivityManager } from './AirshipLiveActivityManager';
16
+ export { AirshipLiveUpdateManager } from './AirshipLiveUpdateManager';
15
17
  export { AirshipPush, AirshipPushAndroid, AirshipPushIOS } from './AirshipPush';
16
18
  export { SubscriptionListEditor } from './SubscriptionListEditor';
17
19
  export { TagGroupEditor } from './TagGroupEditor';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CA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Plugin } from '@capacitor/core';\n\nimport { AirshipRoot } from './AirshipRoot';\nimport type { AirshipPlugin } from './AirshipPlugin';\nimport { AirshipPluginWrapper } from './AirshipPlugin';\n\nexport { AirshipRoot } from './AirshipRoot';\nexport { AirshipActions } from './AirshipActions';\nexport { AirshipAnalytics } from './AirshipAnalytics';\nexport { AirshipChannel } from './AirshipChannel';\nexport { AirshipContact } from './AirshipContact';\nexport { AirshipInApp } from './AirshipInApp';\nexport { AirshipLocale } from './AirshipLocale';\nexport { AirshipMessageCenter } from './AirshipMessageCenter';\nexport { AirshipPreferenceCenter } from './AirshipPreferenceCenter';\nexport { AirshipPrivacyManager } from './AirshipPrivacyManager';\nexport { AirshipFeatureFlagManager } from './AirshipFeatureFlagManager';\n\nexport { AirshipPush, AirshipPushAndroid, AirshipPushIOS } from './AirshipPush';\nexport { SubscriptionListEditor } from './SubscriptionListEditor';\nexport { TagGroupEditor } from './TagGroupEditor';\nexport { ScopedSubscriptionListEditor } from './ScopedSubscriptionListEditor';\nexport { AttributeEditor } from './AttributeEditor';\n\nexport * from './types';\n\nconst plugin = registerPlugin<AirshipPlugin>('Airship', {});\n\nconst sharedAirship = new AirshipRoot(new AirshipPluginWrapper(plugin));\n\nconst Airship = sharedAirship;\nexport { Airship };\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,cAAc,SAAS,CAAC;AAExB,MAAM,MAAM,GAAG,cAAc,CAAgB,SAAS,EAAE,EAAE,CAAC,CAAC;AAE5D,MAAM,aAAa,GAAG,IAAI,WAAW,CAAC,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC;AAExE,MAAM,OAAO,GAAG,aAAa,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,CAAC","sourcesContent":["\nimport { registerPlugin } from '@capacitor/core';\n\nimport { AirshipRoot } from './AirshipRoot';\nimport type { AirshipPlugin } from './AirshipPlugin';\nimport { AirshipPluginWrapper } from './AirshipPlugin';\n\nexport { AirshipRoot } from './AirshipRoot';\nexport { AirshipActions } from './AirshipActions';\nexport { AirshipAnalytics } from './AirshipAnalytics';\nexport { AirshipChannel } from './AirshipChannel';\nexport { AirshipContact } from './AirshipContact';\nexport { AirshipInApp } from './AirshipInApp';\nexport { AirshipLocale } from './AirshipLocale';\nexport { AirshipMessageCenter } from './AirshipMessageCenter';\nexport { AirshipPreferenceCenter } from './AirshipPreferenceCenter';\nexport { AirshipPrivacyManager } from './AirshipPrivacyManager';\nexport { AirshipFeatureFlagManager } from './AirshipFeatureFlagManager';\nexport { AirshipLiveActivityManager } from './AirshipLiveActivityManager';\nexport { AirshipLiveUpdateManager } from './AirshipLiveUpdateManager';\n\nexport { AirshipPush, AirshipPushAndroid, AirshipPushIOS } from './AirshipPush';\nexport { SubscriptionListEditor } from './SubscriptionListEditor';\nexport { TagGroupEditor } from './TagGroupEditor';\nexport { ScopedSubscriptionListEditor } from './ScopedSubscriptionListEditor';\nexport { AttributeEditor } from './AttributeEditor';\n\nexport * from './types';\n\nconst plugin = registerPlugin<AirshipPlugin>('Airship', {});\n\nconst sharedAirship = new AirshipRoot(new AirshipPluginWrapper(plugin));\n\nconst Airship = sharedAirship;\nexport { Airship };\n"]}