react-native-acoustic-connect-beta 16.0.10 → 16.0.12

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.
@@ -39,7 +39,8 @@ newArchEnabled=false
39
39
 
40
40
  # Use this property to enable or disable the Hermes JS engine.
41
41
  # If set to false, you will be using JSC instead.
42
- hermesEnabled=true
42
+ # hermesEnabled=true
43
+ hermesEnabled=false
43
44
 
44
45
  # Enable GIF support in React Native images (~200 B increase)
45
46
  expo.gif.enabled=true
@@ -15,7 +15,7 @@
15
15
  "react": "18.2.0",
16
16
  "react-dom": "18.2.0",
17
17
  "react-native": "0.72.10",
18
- "react-native-acoustic-connect-beta": "16.0.10",
18
+ "react-native-acoustic-connect-beta": "16.0.12",
19
19
  "react-native-gesture-handler": "~2.12.0",
20
20
  "react-native-keyboard-aware-scroll-view": "^0.9.5",
21
21
  "react-native-reanimated": "~3.3.0",
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
2
2
  import { NavigationContainer } from '@react-navigation/native';
3
3
  import { Box, useColorModeValue, useToken } from 'native-base';
4
4
  import { RootStack } from '../../src/navigators/rootNavigator';
5
- // import { Connect, ConnectProfiler } from 'react-native-acoustic-connect-beta';
5
+ import { Connect, ConnectProfiler } from 'react-native-acoustic-connect-beta';
6
6
  import { useRef } from 'react';
7
7
 
8
8
  export const Root = () => {
@@ -14,7 +14,7 @@ export const Root = () => {
14
14
  );
15
15
  const bgColor = useColorModeValue(lightBg, darkBg);
16
16
  return (
17
- // <Connect>
17
+ <Connect>
18
18
  <NavigationContainer
19
19
  ref={navigationRef}
20
20
  theme={{
@@ -37,6 +37,6 @@ export const Root = () => {
37
37
  <RootStack />
38
38
  </Box>
39
39
  </NavigationContainer>
40
- // </Connect>
40
+ </Connect>
41
41
  );
42
42
  };
@@ -74,7 +74,6 @@ public class RNCxaModule extends ReactContextBaseJavaModule implements Lifecycle
74
74
  updateResult(result, promise);
75
75
  }
76
76
 
77
- // TODO fix
78
77
  /**
79
78
  * @param readableMap
80
79
  * @param moduleName
@@ -82,10 +81,23 @@ public class RNCxaModule extends ReactContextBaseJavaModule implements Lifecycle
82
81
  */
83
82
  @ReactMethod
84
83
  public void updateConfigWithData(final ReadableMap readableMap, final String moduleName, final Promise promise) {
85
- // TODO: Is it required for Android?
86
84
  updateResult(null, promise);
87
85
  }
88
86
 
87
+ /**
88
+ * Sets the module's boolean configuration item from AdvancedConfig.json or BasicConfig.properties that matches the specified key.
89
+ *
90
+ * @param key Map Key.
91
+ * @param value Boolean Value.
92
+ * @param moduleName The class name of the module's EOLifecycleObject for which the configuration item is referencing.
93
+ * @param promise Javascript Promise interface.
94
+ */
95
+ @ReactMethod
96
+ public void setBooleanConfigItemForKey(final String key, final Boolean value, final String moduleName, final Promise promise) {
97
+ boolean result = EOCore.updateConfig(key, value.toString(), EOCore.getLifecycleObject(moduleName));
98
+ updateResult(result, promise);
99
+ }
100
+
89
101
  /**
90
102
  * Gets the module's configuration item from AdvancedConfig.json or BasicConfig.properties that matches the specified key as a BOOL value.
91
103
  *
@@ -99,6 +111,20 @@ public class RNCxaModule extends ReactContextBaseJavaModule implements Lifecycle
99
111
  updateResult(result, promise);
100
112
  }
101
113
 
114
+ /**
115
+ * Sets the module's string configuration item from AdvancedConfig.json or BasicConfig.properties that matches the specified key.
116
+ *
117
+ * @param key Map Key.
118
+ * @param value String Value.
119
+ * @param moduleName The class name of the module's EOLifecycleObject for which the configuration item is referencing.
120
+ * @param promise Javascript Promise interface.
121
+ */
122
+ @ReactMethod
123
+ public void setStringItemForKey(final String key, final String value, final String moduleName, final Promise promise) {
124
+ boolean result = EOCore.updateConfig(key, value.toString(), EOCore.getLifecycleObject(moduleName));
125
+ updateResult(result, promise);
126
+ }
127
+
102
128
  /**
103
129
  * Gets the module's configuration item from AdvancedConfig.json or BasicConfig.properties that matches the specified key.
104
130
  *
@@ -116,6 +142,20 @@ public class RNCxaModule extends ReactContextBaseJavaModule implements Lifecycle
116
142
  updateResult(result, promise);
117
143
  }
118
144
 
145
+ /**
146
+ * Sets the module's number configuration item from AdvancedConfig.json or BasicConfig.properties that matches the specified key.
147
+ *
148
+ * @param key Map Key.
149
+ * @param value Number Value.
150
+ * @param moduleName The class name of the module's EOLifecycleObject for which the configuration item is referencing.
151
+ * @param promise Javascript Promise interface.
152
+ */
153
+ @ReactMethod
154
+ public void setNumberItemForKey(final String key, final Double value, final String moduleName, final Promise promise) {
155
+ boolean result = EOCore.updateConfig(key, value.toString(), EOCore.getLifecycleObject(moduleName));
156
+ updateResult(result, promise);
157
+ }
158
+
119
159
  /**
120
160
  * Gets the module's configuration item from AdvancedConfig.json or BasicConfig.properties that matches the specified key.
121
161
  *
@@ -126,8 +166,7 @@ public class RNCxaModule extends ReactContextBaseJavaModule implements Lifecycle
126
166
  */
127
167
  @ReactMethod
128
168
  public void getNumberItemForKey(final int theDefault, final String key, final String moduleName, final Promise promise) {
129
- //TODO: Do we need getConfigItemLong?
130
- int result = EOCore.getConfigItemInt(key, EOCore.getLifecycleObject(moduleName));
169
+ Double result = EOCore.getConfigItemDouble(key, EOCore.getLifecycleObject(moduleName));
131
170
  updateResult(result, promise);
132
171
  }
133
172
 
@@ -223,7 +262,7 @@ public class RNCxaModule extends ReactContextBaseJavaModule implements Lifecycle
223
262
  * @param promise Javascript Promise interface.
224
263
  */
225
264
  @ReactMethod
226
- public void logLocationUpdateWithLatitude(final double lat, final double lng, final int logLevel, final Promise promise) {
265
+ public void logLocationWithLatitudeLongitude(final double lat, final double lng, final int logLevel, final Promise promise) {
227
266
  final boolean result = Connect.INSTANCE.logLocationUpdateEventWithLatitude(lat, lng, logLevel);
228
267
  updateResult(result, promise);
229
268
  }
@@ -372,6 +411,18 @@ public class RNCxaModule extends ReactContextBaseJavaModule implements Lifecycle
372
411
  }
373
412
  }
374
413
 
414
+ /**
415
+ * Log ScreenView Page event.
416
+ *
417
+ * @param logicalPageName Page name or title e.g. "Login View Controller"; Must not be empty.
418
+ * @param promise Javascript Promise interface.
419
+ */
420
+ @ReactMethod
421
+ public void logScreenViewPageName(final String logicalPageName, final Promise promise) {
422
+ final boolean result = Connect.INSTANCE.logScreenview(Objects.requireNonNull(getCurrentActivity()), logicalPageName, ScreenviewType.LOAD);
423
+ updateResult(result, promise);
424
+ }
425
+
375
426
  /**
376
427
  * Requests that the framework logs an screen load event.
377
428
  *
package/package.json CHANGED
@@ -38,5 +38,5 @@
38
38
  "verifyConnectSetup": "node scripts/verifyConnectSetup.js $INIT_CWD"
39
39
  },
40
40
  "summary": "react-native ios android tealeaf connect cxa wxca er enhanced-replay",
41
- "version": "16.0.10"
41
+ "version": "16.0.12"
42
42
  }