react-native-acoustic-connect-beta 16.0.34 → 16.0.35

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.
@@ -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.34",
18
+ "react-native-acoustic-connect-beta": "16.0.35",
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",
package/ios/RNCxa.m CHANGED
@@ -31,11 +31,40 @@
31
31
 
32
32
  @implementation RNConnectDynamicLoad
33
33
  + (void)load {
34
- [[EOApplicationHelper sharedInstance] setConfigItem:kConfigurableItemSetGestureDetector value:@"false" forModuleName:@"Connect"];
35
- [[EOApplicationHelper sharedInstance] setConfigItem:kConfigurableItemLogViewLayoutOnScreenTransition value:@"false" forModuleName:@"Connect"];
34
+ [self loadConnectConfig];
35
+ [[EOApplicationHelper sharedInstance] setConfigItem:kConfigurableItemSetGestureDetector value:@"false" forModuleName:kTLFCoreModule];
36
+ [[EOApplicationHelper sharedInstance] setConfigItem:kConfigurableItemLogViewLayoutOnScreenTransition value:@"false" forModuleName:kTLFCoreModule];
36
37
  [[ConnectApplicationHelper sharedInstance] enableFramework];
37
38
  [[ConnectApplicationHelper sharedInstance] isReactNative:YES];
38
39
  }
40
+
41
+ + (void)loadConnectConfig {
42
+ NSArray *eocoreKeys = @[@"CachingLevel", @"DoPostAppComesFromBackground", @"DoPostAppGoesToBackground", @"DoPostAppGoesToClose", @"DoPostAppIsLaunched", @"DoPostOnIntervals", @"DynamicConfigurationEnabled", @"HasToPersistLocalCache", @"LoggingLevel", @"ManualPostEnabled", @"PostMessageLevelCellular", @"PostMessageLevelWiFi", @"PostMessageTimeIntervals", @"CachedFileMaxBytesSize", @"CompressPostMessage", @"DefaultOrientation", @"LibraryVersion", @"MaxNumberOfFilesToCache", @"MessageVersion", @"PostMessageMaxBytesSize", @"PostMessageTimeout",@"TurnOffCorrectOrientationUpdates"];
43
+ NSArray *tealeafKeys = @[@"AppKey", @"DisableAutoInstrumentation", @"GetImageDataOnScreenLayout", @"JavaScriptInjectionDelay", @"KillSwitchEnabled", @"KillSwitchMaxNumberOfTries",@"KillSwitchTimeInterval", @"KillSwitchTimeout", @"KillSwitchUrl", @"UseWhiteList", @"WhiteListParam", @"LogLocationEnabled", @"MaxStringsLength", @"PercentOfScreenshotsSize", @"PercentToCompressImage", @"ScreenShotPixelDensity", @"PostMessageUrl", @"DoPostOnScreenChange", @"printScreen", @"ScreenshotFormat", @"SessionTimeout", @"SessionizationCookieName", @"CookieSecure", @"disableTLTDID",@"SetGestureDetector", @"AddGestureRecognizerUIButton", @"AddGestureRecognizerUIDatePicker", @"AddGestureRecognizerUIPageControl", @"AddGestureRecognizerUIPickerView", @"AddGestureRecognizerUIScrollView", @"AddGestureRecognizerUISegmentedControl", @"AddGestureRecognizerUISwitch", @"AddGestureRecognizerUITextView", @"AddGestureRecognizerWKWebView", @"AddMessageTypeHeader", @"DisableAlertAutoCapture", @"DisableAlertBackgroundForDisabledLogViewLayout", @"DisableKeyboardCapture", @"EnableWebViewInjectionForDisabledAutoCapture", @"FilterMessageTypes", @"InitialZIndex", @"IpPlaceholder", @"LibraryVersion", @"LogFullRequestResponsePayloads", @"LogViewLayoutOnScreenTransition", @"MessageTypeHeader", @"MessageTypes", @"RemoveIp", @"RemoveSwiftUIDuplicates", @"SubViewArrayZIndexIncrementTrigger", @"SwiftUICaptureNonVariadic", @"TextFieldBeingEditedUseSender", @"TreatJsonDictionariesAsString", @"UICPayload", @"UIKeyboardCaptureTouches", @"UseJPGForReplayImagesExtension", @"UseXpathId", @"actionSheet:buttonIndex", @"actionSheet:show", @"alertView:buttonIndex", @"alertView:show", @"autolog:pageControl", @"autolog:textBox:_searchFieldEndEditing", @"button:click", @"button:load", @"canvas:click", @"connection", @"customEvent", @"datePicker:dateChange", @"exception", @"gestures", @"label:load", @"label:textChange", @"layout", @"location", @"mobileState", @"orientation", @"pageControl:valueChanged", @"pickerView:valueChanged", @"screenChangeLevel", @"scroller:scrollChange", @"selectList:UITableViewSelectionDidChangeNotification", @"selectList:load", @"selectList:valueChange", @"slider:valueChange", @"stepper:valueChange", @"textBox:_searchFieldBeginChanged", @"textBox:_searchFieldBeginEditing", @"textBox:_searchFieldEditingChanged", @"textBox:textChange", @"textBox:textChanged", @"textBox:textFieldDidChange", @"toggleButton:click"];
44
+
45
+ NSBundle *bundle = [NSBundle bundleForClass:self.classForCoder];
46
+ NSURL *bundleURL = [[bundle resourceURL] URLByAppendingPathComponent:@"RNCxaConfig.bundle"];
47
+ NSBundle *resourceBundle = [NSBundle bundleWithURL:bundleURL];
48
+ NSString *path = [resourceBundle pathForResource:@"RNCxaConfig" ofType:@"json"];
49
+ NSData *data = [NSData dataWithContentsOfFile:path];
50
+ NSDictionary *jsonData = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil];
51
+
52
+ if (jsonData != nil) {
53
+ NSDictionary *connectData = [jsonData objectForKey:@"Connect"];
54
+ for (NSString* key in connectData) {
55
+ id value = connectData[key];
56
+
57
+ if ([tealeafKeys containsObject:key]) {
58
+ [[EOApplicationHelper sharedInstance] setConfigItem:key value:value forModuleName:kTLFCoreModule];
59
+ } else if ([eocoreKeys containsObject:key]) {
60
+ [[EOApplicationHelper sharedInstance] setConfigItem:key value:value forModuleName:kEOCoreModule];
61
+ } else if ([key isEqualToString:@"layoutConfig"]) {
62
+ [[EOApplicationHelper sharedInstance] setConfigItem:@"AutoLayout" value:value forModuleName:kTLFCoreModule];
63
+ }
64
+ }
65
+ }
66
+
67
+ }
39
68
  @end
40
69
 
41
70
  @implementation RNCxa
package/package.json CHANGED
@@ -40,5 +40,5 @@
40
40
  "verifyConnectSetup": "node scripts/verifyConnectSetup.js $INIT_CWD"
41
41
  },
42
42
  "summary": "react-native ios android tealeaf connect cxa wxca er enhanced-replay",
43
- "version": "16.0.34"
43
+ "version": "16.0.35"
44
44
  }
@@ -30,9 +30,10 @@ Pod::Spec.new do |s|
30
30
  s.source = { :git => repository, :tag => s.version }
31
31
  s.preserve_paths = 'README.md', 'package.json', '*.js'
32
32
  s.source_files = "ios/**/*.{h,m,json}"
33
- s.resource_bundles = {
34
- 'RNCxaConfig' => ['RNCxaConfig.json'],
33
+ s.resource_bundle = {
34
+ 'RNCxaConfig' => ['ios/RNCxaConfig.json'],
35
35
  }
36
+ s.resource = 'ios/RNCxaConfig.json'
36
37
 
37
38
  s.dependency 'React'
38
39
  s.xcconfig = { 'HEADER_SEARCH_PATHS' => '../../../ios/Pods/** ' }