@ua/react-native-airship 25.3.1 → 26.0.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 (76) hide show
  1. package/README.md +150 -21
  2. package/android/build.gradle +8 -29
  3. package/android/gradle.properties +2 -2
  4. package/android/src/main/java/com/urbanairship/reactnative/AirshipModule.kt +5 -3
  5. package/android/src/main/java/com/urbanairship/reactnative/AirshipPackage.kt +4 -2
  6. package/android/src/{newarch → main}/java/com/urbanairship/reactnative/AirshipSpec.kt +2 -0
  7. package/android/src/main/java/com/urbanairship/reactnative/DataMigrator.kt +2 -0
  8. package/android/src/main/java/com/urbanairship/reactnative/ManifestUtils.kt +0 -10
  9. package/android/src/main/java/com/urbanairship/reactnative/ReactAutopilot.kt +9 -26
  10. package/android/src/{newarch → main}/java/com/urbanairship/reactnative/ReactContextExtensions.kt +2 -0
  11. package/android/src/main/java/com/urbanairship/reactnative/ReactEmbeddedView.kt +0 -4
  12. package/android/src/main/java/com/urbanairship/reactnative/ReactMessageView.kt +5 -7
  13. package/android/src/main/java/com/urbanairship/reactnative/ReactMessageViewManager.kt +4 -21
  14. package/android/src/main/java/com/urbanairship/reactnative/ReactNotificationProvider.kt +1 -1
  15. package/android/src/main/java/com/urbanairship/reactnative/Utils.kt +1 -3
  16. package/ios/AirshipPluginLoader.swift +2 -5
  17. package/ios/AirshipReactNative.swift +6 -13
  18. package/ios/RNAirship.h +1 -1
  19. package/ios/RNAirship.mm +9 -6
  20. package/ios/RNAirshipEmbeddedView.mm +4 -4
  21. package/ios/RNAirshipMessageView.mm +4 -4
  22. package/lib/module/NativeRNAirship.js.map +1 -1
  23. package/lib/module/RNAirshipEmbeddedViewNativeComponent.ts +1 -2
  24. package/lib/module/RNAirshipMessageViewNativeComponent.ts +1 -2
  25. package/lib/typescript/src/NativeRNAirship.d.ts +1 -1
  26. package/lib/typescript/src/NativeRNAirship.d.ts.map +1 -1
  27. package/lib/typescript/src/RNAirshipEmbeddedViewNativeComponent.d.ts +1 -1
  28. package/lib/typescript/src/RNAirshipEmbeddedViewNativeComponent.d.ts.map +1 -1
  29. package/lib/typescript/src/RNAirshipMessageViewNativeComponent.d.ts +1 -1
  30. package/lib/typescript/src/RNAirshipMessageViewNativeComponent.d.ts.map +1 -1
  31. package/package.json +23 -34
  32. package/react-native-airship.podspec +5 -4
  33. package/src/NativeRNAirship.ts +1 -2
  34. package/src/RNAirshipEmbeddedViewNativeComponent.ts +1 -2
  35. package/src/RNAirshipMessageViewNativeComponent.ts +1 -2
  36. package/android/generated/java/com/facebook/react/viewmanagers/RNAirshipEmbeddedViewManagerDelegate.java +0 -32
  37. package/android/generated/java/com/facebook/react/viewmanagers/RNAirshipEmbeddedViewManagerInterface.java +0 -18
  38. package/android/generated/java/com/facebook/react/viewmanagers/RNAirshipMessageViewManagerDelegate.java +0 -32
  39. package/android/generated/java/com/facebook/react/viewmanagers/RNAirshipMessageViewManagerInterface.java +0 -18
  40. package/android/generated/java/com/urbanairship/reactnative/NativeRNAirshipSpec.java +0 -413
  41. package/android/generated/jni/CMakeLists.txt +0 -28
  42. package/android/generated/jni/RNAirshipSpec-generated.cpp +0 -590
  43. package/android/generated/jni/RNAirshipSpec.h +0 -31
  44. package/android/generated/jni/react/renderer/components/RNAirshipSpec/ComponentDescriptors.cpp +0 -23
  45. package/android/generated/jni/react/renderer/components/RNAirshipSpec/ComponentDescriptors.h +0 -25
  46. package/android/generated/jni/react/renderer/components/RNAirshipSpec/EventEmitters.cpp +0 -54
  47. package/android/generated/jni/react/renderer/components/RNAirshipSpec/EventEmitters.h +0 -52
  48. package/android/generated/jni/react/renderer/components/RNAirshipSpec/Props.cpp +0 -76
  49. package/android/generated/jni/react/renderer/components/RNAirshipSpec/Props.h +0 -49
  50. package/android/generated/jni/react/renderer/components/RNAirshipSpec/RNAirshipSpecJSI-generated.cpp +0 -665
  51. package/android/generated/jni/react/renderer/components/RNAirshipSpec/RNAirshipSpecJSI.h +0 -908
  52. package/android/generated/jni/react/renderer/components/RNAirshipSpec/ShadowNodes.cpp +0 -18
  53. package/android/generated/jni/react/renderer/components/RNAirshipSpec/ShadowNodes.h +0 -43
  54. package/android/generated/jni/react/renderer/components/RNAirshipSpec/States.cpp +0 -16
  55. package/android/generated/jni/react/renderer/components/RNAirshipSpec/States.h +0 -22
  56. package/android/src/main/java/com/urbanairship/reactnative/AirshipExtender.kt +0 -16
  57. package/android/src/oldarch/java/com/facebook/react/viewmanagers/RNAirshipEmbeddedViewManagerInterface.java +0 -17
  58. package/android/src/oldarch/java/com/facebook/react/viewmanagers/RNAirshipMessageViewManagerInterface.java +0 -17
  59. package/android/src/oldarch/java/com/urbanairship/reactnative/AirshipSpec.kt +0 -475
  60. package/android/src/oldarch/java/com/urbanairship/reactnative/ReactContextExtensions.kt +0 -10
  61. package/ios/generated/RNAirshipSpec/ComponentDescriptors.cpp +0 -23
  62. package/ios/generated/RNAirshipSpec/ComponentDescriptors.h +0 -25
  63. package/ios/generated/RNAirshipSpec/EventEmitters.cpp +0 -54
  64. package/ios/generated/RNAirshipSpec/EventEmitters.h +0 -52
  65. package/ios/generated/RNAirshipSpec/Props.cpp +0 -76
  66. package/ios/generated/RNAirshipSpec/Props.h +0 -49
  67. package/ios/generated/RNAirshipSpec/RCTComponentViewHelpers.h +0 -24
  68. package/ios/generated/RNAirshipSpec/RNAirshipSpec-generated.mm +0 -690
  69. package/ios/generated/RNAirshipSpec/RNAirshipSpec.h +0 -293
  70. package/ios/generated/RNAirshipSpec/ShadowNodes.cpp +0 -18
  71. package/ios/generated/RNAirshipSpec/ShadowNodes.h +0 -43
  72. package/ios/generated/RNAirshipSpec/States.cpp +0 -16
  73. package/ios/generated/RNAirshipSpec/States.h +0 -22
  74. package/ios/generated/RNAirshipSpecJSI-generated.cpp +0 -665
  75. package/ios/generated/RNAirshipSpecJSI.h +0 -908
  76. package/react-native.config.js +0 -12
@@ -1,18 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateShadowNodeCpp.js
9
- */
10
-
11
- #include "ShadowNodes.h"
12
-
13
- namespace facebook::react {
14
-
15
- extern const char RNAirshipEmbeddedViewComponentName[] = "RNAirshipEmbeddedView";
16
- extern const char RNAirshipMessageViewComponentName[] = "RNAirshipMessageView";
17
-
18
- } // namespace facebook::react
@@ -1,43 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateShadowNodeH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include "EventEmitters.h"
14
- #include "Props.h"
15
- #include "States.h"
16
- #include <react/renderer/components/view/ConcreteViewShadowNode.h>
17
- #include <jsi/jsi.h>
18
-
19
- namespace facebook::react {
20
-
21
- JSI_EXPORT extern const char RNAirshipEmbeddedViewComponentName[];
22
-
23
- /*
24
- * `ShadowNode` for <RNAirshipEmbeddedView> component.
25
- */
26
- using RNAirshipEmbeddedViewShadowNode = ConcreteViewShadowNode<
27
- RNAirshipEmbeddedViewComponentName,
28
- RNAirshipEmbeddedViewProps,
29
- RNAirshipEmbeddedViewEventEmitter,
30
- RNAirshipEmbeddedViewState>;
31
-
32
- JSI_EXPORT extern const char RNAirshipMessageViewComponentName[];
33
-
34
- /*
35
- * `ShadowNode` for <RNAirshipMessageView> component.
36
- */
37
- using RNAirshipMessageViewShadowNode = ConcreteViewShadowNode<
38
- RNAirshipMessageViewComponentName,
39
- RNAirshipMessageViewProps,
40
- RNAirshipMessageViewEventEmitter,
41
- RNAirshipMessageViewState>;
42
-
43
- } // namespace facebook::react
@@ -1,16 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateStateCpp.js
9
- */
10
- #include "States.h"
11
-
12
- namespace facebook::react {
13
-
14
-
15
-
16
- } // namespace facebook::react
@@ -1,22 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateStateH.js
8
- */
9
- #pragma once
10
-
11
- #include <react/renderer/core/StateData.h>
12
- #ifdef RN_SERIALIZABLE_STATE
13
- #include <folly/dynamic.h>
14
- #endif
15
-
16
- namespace facebook::react {
17
-
18
- using RNAirshipEmbeddedViewState = StateData;
19
-
20
- using RNAirshipMessageViewState = StateData;
21
-
22
- } // namespace facebook::react
@@ -1,16 +0,0 @@
1
- /* Copyright Urban Airship and Contributors */
2
-
3
- package com.urbanairship.reactnative
4
-
5
- import android.content.Context
6
- import com.urbanairship.UAirship
7
-
8
- /**
9
- * Extender that will be called during takeOff to customize the airship instance.
10
- * Register the extender fully qualified class name in the manifest under the key
11
- * `com.urbanairship.reactnative.AIRSHIP_EXTENDER`.
12
- */
13
- @Deprecated("Use com.urbanairship.android.framework.proxy.AirshipPluginExtender instead and register it under the manifest key `com.urbanairship.plugin.extender`")
14
- interface AirshipExtender {
15
- fun onAirshipReady(context: Context, airship: UAirship)
16
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GeneratePropsJavaInterface.js
8
- */
9
-
10
- package com.facebook.react.viewmanagers;
11
-
12
- import android.view.View;
13
- import androidx.annotation.Nullable;
14
-
15
- public interface RNAirshipEmbeddedViewManagerInterface<T extends View> {
16
- void setEmbeddedId(T view, @Nullable String value);
17
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GeneratePropsJavaInterface.js
8
- */
9
-
10
- package com.facebook.react.viewmanagers;
11
-
12
- import android.view.View;
13
- import androidx.annotation.Nullable;
14
-
15
- public interface RNAirshipMessageViewManagerInterface<T extends View> {
16
- void setMessageId(T view, @Nullable String value);
17
- }
@@ -1,475 +0,0 @@
1
- package com.urbanairship.reactnative
2
-
3
- import com.facebook.react.bridge.*
4
-
5
- abstract class AirshipSpec internal constructor(context: ReactApplicationContext) :
6
- ReactContextBaseJavaModule(context) {
7
-
8
- @ReactMethod
9
- @com.facebook.proguard.annotations.DoNotStrip
10
- abstract fun takeOff(config: ReadableMap?, promise: Promise)
11
-
12
- @ReactMethod
13
- @com.facebook.proguard.annotations.DoNotStrip
14
- abstract fun isFlying(promise: Promise)
15
-
16
- @ReactMethod
17
- @com.facebook.proguard.annotations.DoNotStrip
18
- abstract fun airshipListenerAdded(eventName: String?)
19
-
20
- @ReactMethod
21
- @com.facebook.proguard.annotations.DoNotStrip
22
- abstract fun takePendingEvents(
23
- eventName: String?,
24
- isHeadlessJS: Boolean,
25
- promise: Promise
26
- )
27
-
28
- @ReactMethod
29
- @com.facebook.proguard.annotations.DoNotStrip
30
- abstract fun addListener(eventType: String?)
31
-
32
- @ReactMethod
33
- @com.facebook.proguard.annotations.DoNotStrip
34
- abstract fun removeListeners(count: Double)
35
-
36
- @ReactMethod
37
- @com.facebook.proguard.annotations.DoNotStrip
38
- abstract fun channelEnableChannelCreation(promise: Promise)
39
-
40
- @ReactMethod
41
- @com.facebook.proguard.annotations.DoNotStrip
42
- abstract fun channelAddTag(tag: String?, promise: Promise)
43
-
44
- @ReactMethod
45
- @com.facebook.proguard.annotations.DoNotStrip
46
- abstract fun channelRemoveTag(tag: String?, promise: Promise)
47
-
48
- @ReactMethod
49
- @com.facebook.proguard.annotations.DoNotStrip
50
- abstract fun channelGetTags(promise: Promise)
51
-
52
- @ReactMethod
53
- @com.facebook.proguard.annotations.DoNotStrip
54
- abstract fun channelGetChannelId(promise: Promise)
55
-
56
- @ReactMethod
57
- @com.facebook.proguard.annotations.DoNotStrip
58
- abstract fun channelWaitForChannelId(promise: Promise)
59
-
60
- @ReactMethod
61
- @com.facebook.proguard.annotations.DoNotStrip
62
- abstract fun channelGetSubscriptionLists(promise: Promise)
63
-
64
- @ReactMethod
65
- @com.facebook.proguard.annotations.DoNotStrip
66
- abstract fun channelEditTagGroups(
67
- operations: ReadableArray?,
68
- promise: Promise
69
- )
70
-
71
- @ReactMethod
72
- @com.facebook.proguard.annotations.DoNotStrip
73
- abstract fun channelEditTags(
74
- operations: ReadableArray?,
75
- promise: Promise
76
- )
77
-
78
- @ReactMethod
79
- @com.facebook.proguard.annotations.DoNotStrip
80
- abstract fun channelEditAttributes(
81
- operations: ReadableArray?,
82
- promise: Promise
83
- )
84
-
85
- @ReactMethod
86
- @com.facebook.proguard.annotations.DoNotStrip
87
- abstract fun channelEditSubscriptionLists(
88
- operations: ReadableArray?,
89
- promise: Promise
90
- )
91
-
92
- @ReactMethod
93
- @com.facebook.proguard.annotations.DoNotStrip
94
- abstract fun pushSetUserNotificationsEnabled(
95
- enabled: Boolean,
96
- promise: Promise
97
- )
98
-
99
- @ReactMethod
100
- @com.facebook.proguard.annotations.DoNotStrip
101
- abstract fun pushIsUserNotificationsEnabled(promise: Promise)
102
-
103
- @ReactMethod
104
- @com.facebook.proguard.annotations.DoNotStrip
105
- abstract fun pushEnableUserNotifications(options: ReadableMap?, promise: Promise)
106
-
107
- @ReactMethod
108
- @com.facebook.proguard.annotations.DoNotStrip
109
- abstract fun pushGetNotificationStatus(promise: Promise)
110
-
111
- @ReactMethod
112
- @com.facebook.proguard.annotations.DoNotStrip
113
- abstract fun pushGetRegistrationToken(promise: Promise)
114
-
115
- @ReactMethod
116
- @com.facebook.proguard.annotations.DoNotStrip
117
- abstract fun pushGetActiveNotifications(promise: Promise)
118
-
119
- @ReactMethod
120
- @com.facebook.proguard.annotations.DoNotStrip
121
- abstract fun pushClearNotifications()
122
-
123
- @ReactMethod
124
- @com.facebook.proguard.annotations.DoNotStrip
125
- abstract fun pushClearNotification(identifier: String?)
126
-
127
- @ReactMethod
128
- @com.facebook.proguard.annotations.DoNotStrip
129
- abstract fun pushIosSetForegroundPresentationOptions(
130
- options: ReadableArray?,
131
- promise: Promise
132
- )
133
-
134
- @ReactMethod
135
- @com.facebook.proguard.annotations.DoNotStrip
136
- abstract fun pushIosSetNotificationOptions(
137
- options: ReadableArray?,
138
- promise: Promise
139
- )
140
-
141
- @ReactMethod
142
- @com.facebook.proguard.annotations.DoNotStrip
143
- abstract fun pushIosSetAutobadgeEnabled(
144
- enabled: Boolean,
145
- promise: Promise
146
- )
147
-
148
- @ReactMethod
149
- @com.facebook.proguard.annotations.DoNotStrip
150
- abstract fun pushIosIsAutobadgeEnabled(promise: Promise)
151
-
152
- @ReactMethod
153
- @com.facebook.proguard.annotations.DoNotStrip
154
- abstract fun pushIosSetBadgeNumber(
155
- badgeNumber: Double,
156
- promise: Promise
157
- )
158
-
159
- @ReactMethod
160
- @com.facebook.proguard.annotations.DoNotStrip
161
- abstract fun pushIosGetBadgeNumber(promise: Promise)
162
-
163
- @ReactMethod
164
- @com.facebook.proguard.annotations.DoNotStrip
165
- abstract fun pushIosIsOverridePresentationOptionsEnabled(enabled: Boolean)
166
-
167
- @ReactMethod
168
- @com.facebook.proguard.annotations.DoNotStrip
169
- abstract fun pushIosOverridePresentationOptions(requestId: String?, options: ReadableArray?)
170
-
171
- @ReactMethod
172
- @com.facebook.proguard.annotations.DoNotStrip
173
- abstract fun pushAndroidIsNotificationChannelEnabled(
174
- channel: String?,
175
- promise: Promise
176
- )
177
-
178
- @ReactMethod
179
- @com.facebook.proguard.annotations.DoNotStrip
180
- abstract fun pushAndroidSetNotificationConfig(config: ReadableMap?)
181
-
182
- @ReactMethod
183
- @com.facebook.proguard.annotations.DoNotStrip
184
- abstract fun pushAndroidIsOverrideForegroundDisplayEnabled(enabled: Boolean)
185
-
186
- @ReactMethod
187
- @com.facebook.proguard.annotations.DoNotStrip
188
- abstract fun pushAndroidOverrideForegroundDisplay(requestId: String?, shouldDisplay: Boolean)
189
-
190
-
191
- @ReactMethod
192
- @com.facebook.proguard.annotations.DoNotStrip
193
- abstract fun contactIdentify(namedUser: String?, promise: Promise)
194
-
195
- @ReactMethod
196
- @com.facebook.proguard.annotations.DoNotStrip
197
- abstract fun contactReset(promise: Promise)
198
-
199
- @ReactMethod
200
- @com.facebook.proguard.annotations.DoNotStrip
201
- abstract fun contactNotifyRemoteLogin(promise: Promise)
202
-
203
- @ReactMethod
204
- @com.facebook.proguard.annotations.DoNotStrip
205
- abstract fun contactGetNamedUserId(promise: Promise)
206
-
207
- @ReactMethod
208
- @com.facebook.proguard.annotations.DoNotStrip
209
- abstract fun contactGetSubscriptionLists(promise: Promise)
210
-
211
- @ReactMethod
212
- @com.facebook.proguard.annotations.DoNotStrip
213
- abstract fun contactEditTagGroups(
214
- operations: ReadableArray?,
215
- promise: Promise
216
- )
217
-
218
- @ReactMethod
219
- @com.facebook.proguard.annotations.DoNotStrip
220
- abstract fun contactEditAttributes(
221
- operations: ReadableArray?,
222
- promise: Promise
223
- )
224
-
225
- @ReactMethod
226
- @com.facebook.proguard.annotations.DoNotStrip
227
- abstract fun contactEditSubscriptionLists(
228
- operations: ReadableArray?,
229
- promise: Promise
230
- )
231
-
232
- @ReactMethod
233
- @com.facebook.proguard.annotations.DoNotStrip
234
- abstract fun analyticsTrackScreen(screen: String?, promise: Promise)
235
-
236
- @ReactMethod
237
- @com.facebook.proguard.annotations.DoNotStrip
238
- abstract fun analyticsAssociateIdentifier(
239
- key: String?,
240
- identifier: String?,
241
- promise: Promise
242
- )
243
-
244
- @ReactMethod
245
- @com.facebook.proguard.annotations.DoNotStrip
246
- abstract fun analyticsGetSessionId(
247
- promise: Promise
248
- )
249
-
250
- @ReactMethod
251
- @com.facebook.proguard.annotations.DoNotStrip
252
- abstract fun addCustomEvent(
253
- event: ReadableMap?,
254
- promise: Promise
255
- )
256
-
257
- @ReactMethod
258
- @com.facebook.proguard.annotations.DoNotStrip
259
- abstract fun actionRun(
260
- action: ReadableMap,
261
- promise: Promise
262
- )
263
-
264
- @ReactMethod
265
- @com.facebook.proguard.annotations.DoNotStrip
266
- abstract fun privacyManagerSetEnabledFeatures(
267
- features: ReadableArray?,
268
- promise: Promise
269
- )
270
-
271
- @ReactMethod
272
- @com.facebook.proguard.annotations.DoNotStrip
273
- abstract fun privacyManagerGetEnabledFeatures(promise: Promise)
274
-
275
- @ReactMethod
276
- @com.facebook.proguard.annotations.DoNotStrip
277
- abstract fun privacyManagerEnableFeature(
278
- features: ReadableArray?,
279
- promise: Promise
280
- )
281
-
282
- @ReactMethod
283
- @com.facebook.proguard.annotations.DoNotStrip
284
- abstract fun privacyManagerDisableFeature(
285
- features: ReadableArray?,
286
- promise: Promise
287
- )
288
-
289
- @ReactMethod
290
- @com.facebook.proguard.annotations.DoNotStrip
291
- abstract fun privacyManagerIsFeatureEnabled(
292
- features: ReadableArray?,
293
- promise: Promise
294
- )
295
-
296
- @ReactMethod
297
- @com.facebook.proguard.annotations.DoNotStrip
298
- abstract fun inAppSetDisplayInterval(
299
- milliseconds: Double,
300
- promise: Promise
301
- )
302
-
303
- @ReactMethod
304
- @com.facebook.proguard.annotations.DoNotStrip
305
- abstract fun inAppGetDisplayInterval(promise: Promise)
306
-
307
- @ReactMethod
308
- @com.facebook.proguard.annotations.DoNotStrip
309
- abstract fun inAppSetPaused(paused: Boolean, promise: Promise)
310
-
311
- @ReactMethod
312
- @com.facebook.proguard.annotations.DoNotStrip
313
- abstract fun inAppIsPaused(promise: Promise)
314
-
315
- @ReactMethod
316
- @com.facebook.proguard.annotations.DoNotStrip
317
- abstract fun inAppResendPendingEmbeddedEvent()
318
-
319
- @ReactMethod
320
- @com.facebook.proguard.annotations.DoNotStrip
321
- abstract fun messageCenterGetUnreadCount(promise: Promise)
322
-
323
- @ReactMethod
324
- @com.facebook.proguard.annotations.DoNotStrip
325
- abstract fun messageCenterDismiss(promise: Promise)
326
-
327
- @ReactMethod
328
- @com.facebook.proguard.annotations.DoNotStrip
329
- abstract fun messageCenterDisplay(
330
- messageId: String?,
331
- promise: Promise
332
- )
333
-
334
- @ReactMethod
335
- @com.facebook.proguard.annotations.DoNotStrip
336
- abstract fun messageCenterGetMessages(promise: Promise)
337
-
338
- @ReactMethod
339
- @com.facebook.proguard.annotations.DoNotStrip
340
- abstract fun messageCenterDeleteMessage(
341
- messageId: String?,
342
- promise: Promise
343
- )
344
-
345
- @ReactMethod
346
- @com.facebook.proguard.annotations.DoNotStrip
347
- abstract fun messageCenterMarkMessageRead(
348
- messageId: String?,
349
- promise: Promise
350
- )
351
-
352
- @ReactMethod
353
- @com.facebook.proguard.annotations.DoNotStrip
354
- abstract fun messageCenterRefresh(promise: Promise)
355
-
356
- @ReactMethod
357
- @com.facebook.proguard.annotations.DoNotStrip
358
- abstract fun messageCenterSetAutoLaunchDefaultMessageCenter(enabled: Boolean)
359
-
360
- @ReactMethod
361
- @com.facebook.proguard.annotations.DoNotStrip
362
- abstract fun messageCenterShowMessageCenter(messageId: String?, promise: Promise)
363
-
364
- @ReactMethod
365
- @com.facebook.proguard.annotations.DoNotStrip
366
- abstract fun messageCenterShowMessageView(messageId: String?, promise: Promise)
367
-
368
- @ReactMethod
369
- @com.facebook.proguard.annotations.DoNotStrip
370
- abstract fun preferenceCenterDisplay(
371
- preferenceCenterId: String?,
372
- promise: Promise
373
- )
374
-
375
- @ReactMethod
376
- @com.facebook.proguard.annotations.DoNotStrip
377
- abstract fun preferenceCenterGetConfig(
378
- preferenceCenterId: String?,
379
- promise: Promise
380
- )
381
-
382
- @ReactMethod
383
- @com.facebook.proguard.annotations.DoNotStrip
384
- abstract fun preferenceCenterAutoLaunchDefaultPreferenceCenter(
385
- preferenceCenterId: String?,
386
- autoLaunch: Boolean
387
- )
388
-
389
- @ReactMethod
390
- @com.facebook.proguard.annotations.DoNotStrip
391
- abstract fun localeSetLocaleOverride(
392
- localeIdentifier: String?,
393
- promise: Promise
394
- )
395
-
396
- @ReactMethod
397
- @com.facebook.proguard.annotations.DoNotStrip
398
- abstract fun localeGetLocale(promise: Promise)
399
-
400
- @ReactMethod
401
- @com.facebook.proguard.annotations.DoNotStrip
402
- abstract fun localeClearLocaleOverride(promise: Promise)
403
-
404
- @ReactMethod
405
- @com.facebook.proguard.annotations.DoNotStrip
406
- abstract fun pushIosGetAuthorizedNotificationSettings(promise: Promise)
407
-
408
- @ReactMethod
409
- @com.facebook.proguard.annotations.DoNotStrip
410
- abstract fun pushIosGetAuthorizedNotificationStatus(promise: Promise)
411
-
412
- @ReactMethod
413
- @com.facebook.proguard.annotations.DoNotStrip
414
- abstract fun featureFlagManagerFlag(flagName: String, useResultCache: Boolean, promise: Promise)
415
-
416
- @ReactMethod
417
- @com.facebook.proguard.annotations.DoNotStrip
418
- abstract fun featureFlagManagerTrackInteraction(flag: ReadableMap, promise: Promise)
419
-
420
- @ReactMethod
421
- @com.facebook.proguard.annotations.DoNotStrip
422
- abstract fun featureFlagManagerResultCacheGetFlag(flagName: String, promise: Promise)
423
-
424
- @ReactMethod
425
- @com.facebook.proguard.annotations.DoNotStrip
426
- abstract fun featureFlagManagerResultCacheSetFlag(flag: ReadableMap, ttl: Double, promise: Promise)
427
-
428
- @ReactMethod
429
- @com.facebook.proguard.annotations.DoNotStrip
430
- abstract fun featureFlagManagerResultCacheRemoveFlag(flagName: String, promise: Promise)
431
-
432
- @ReactMethod
433
- @com.facebook.proguard.annotations.DoNotStrip
434
- abstract fun liveActivityListAll(promise: Promise)
435
-
436
- @ReactMethod
437
- @com.facebook.proguard.annotations.DoNotStrip
438
- abstract fun liveActivityList(request: ReadableMap?, promise: Promise)
439
-
440
- @ReactMethod
441
- @com.facebook.proguard.annotations.DoNotStrip
442
- abstract fun liveActivityStart(request: ReadableMap?, promise: Promise)
443
-
444
- @ReactMethod
445
- @com.facebook.proguard.annotations.DoNotStrip
446
- abstract fun liveActivityUpdate(request: ReadableMap?, promise: Promise)
447
-
448
- @ReactMethod
449
- @com.facebook.proguard.annotations.DoNotStrip
450
- abstract fun liveActivityEnd(request: ReadableMap?, promise: Promise)
451
-
452
- @ReactMethod
453
- @com.facebook.proguard.annotations.DoNotStrip
454
- abstract fun liveUpdateListAll(promise: Promise)
455
-
456
- @ReactMethod
457
- @com.facebook.proguard.annotations.DoNotStrip
458
- abstract fun liveUpdateList(request: ReadableMap?, promise: Promise)
459
-
460
- @ReactMethod
461
- @com.facebook.proguard.annotations.DoNotStrip
462
- abstract fun liveUpdateStart(request: ReadableMap?, promise: Promise)
463
-
464
- @ReactMethod
465
- @com.facebook.proguard.annotations.DoNotStrip
466
- abstract fun liveUpdateUpdate(request: ReadableMap?, promise: Promise)
467
-
468
- @ReactMethod
469
- @com.facebook.proguard.annotations.DoNotStrip
470
- abstract fun liveUpdateEnd(request: ReadableMap?, promise: Promise)
471
-
472
- @ReactMethod
473
- @com.facebook.proguard.annotations.DoNotStrip
474
- abstract fun liveUpdateClearAll(promise: Promise)
475
- }
@@ -1,10 +0,0 @@
1
- package com.urbanairship.reactnative
2
-
3
- import com.facebook.react.bridge.ReactContext
4
- import com.facebook.react.uimanager.events.RCTEventEmitter
5
- import com.facebook.react.bridge.WritableMap
6
-
7
- internal fun ReactContext.airshipDispatchEvent(nativeTag: Int, eventName: String, event: WritableMap) {
8
- this.getJSModule(RCTEventEmitter::class.java)
9
- .receiveEvent(nativeTag, eventName, event)
10
- }
@@ -1,23 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateComponentDescriptorCpp.js
9
- */
10
-
11
- #include "ComponentDescriptors.h"
12
- #include <react/renderer/core/ConcreteComponentDescriptor.h>
13
- #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
14
-
15
- namespace facebook::react {
16
-
17
- void RNAirshipSpec_registerComponentDescriptorsFromCodegen(
18
- std::shared_ptr<const ComponentDescriptorProviderRegistry> registry) {
19
- registry->add(concreteComponentDescriptorProvider<RNAirshipEmbeddedViewComponentDescriptor>());
20
- registry->add(concreteComponentDescriptorProvider<RNAirshipMessageViewComponentDescriptor>());
21
- }
22
-
23
- } // namespace facebook::react
@@ -1,25 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateComponentDescriptorH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include "ShadowNodes.h"
14
- #include <react/renderer/core/ConcreteComponentDescriptor.h>
15
- #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
16
-
17
- namespace facebook::react {
18
-
19
- using RNAirshipEmbeddedViewComponentDescriptor = ConcreteComponentDescriptor<RNAirshipEmbeddedViewShadowNode>;
20
- using RNAirshipMessageViewComponentDescriptor = ConcreteComponentDescriptor<RNAirshipMessageViewShadowNode>;
21
-
22
- void RNAirshipSpec_registerComponentDescriptorsFromCodegen(
23
- std::shared_ptr<const ComponentDescriptorProviderRegistry> registry);
24
-
25
- } // namespace facebook::react