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

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.32",
18
+ "react-native-acoustic-connect-beta": "16.0.34",
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",
@@ -11,75 +11,39 @@ require 'json'
11
11
  # prohibited.
12
12
  #--------------------------------------------------------------------------------------------
13
13
 
14
- pods_root = ARGV[0]
14
+ pods_root = ARGV[0]
15
15
  config_file = ARGV[1]
16
- $useRelease = false
17
- $dependencyName = "AcousticConnectReactNativeDebug"
18
- $podFolder = "DebugConnectReactNative"
19
-
20
- # def update_config(module_name, key, value)
21
-
22
- # if value.class.eql?("Hash") || !module_name.eql?("Connect")
23
- # return false
24
- # end
25
-
26
- # plist_path = "#{ARGV[0]}/#{$dependencyName}/SDKs/iOS/#{$podFolder}/TLFResources.bundle/ConnectBasicConfig.plist"
27
-
28
- # if File.exist?(plist_path)
29
- # `/usr/libexec/PlistBuddy -c \"Set :#{key} #{value}" #{plist_path}`
30
- # end
31
- # end
32
-
33
- # def update_layout(jsonData)
34
- # connectConfigOverride = jsonData["Connect"]["layoutConfig"]
35
-
36
- # path = "../../ios/Pods/#{$dependencyName}/SDKs/iOS/#{$podFolder}/TLFResources.bundle/ConnectLayoutConfig.json"
37
- # puts "Has new layoutConfig:#{connectConfigOverride}, then update ConnectLayoutConfig.json at #{path}"
38
-
39
- # if(connectConfigOverride)
40
- # connectConfigOverrideJson = JSON.generate(connectConfigOverride)
41
- # File.write(path,connectConfigOverrideJson)
42
- # puts JSON.pretty_generate(connectConfigOverrideJson)
43
- # end
44
- # end
45
-
46
- def update_config(jsonData)
47
- connectConfigOverride = jsonData["Connect"]
48
-
49
- path = "../../node_modules/react-native-acoustic-connect-beta/iOS/RNCxaConfig.json"
50
- puts "Update iOS Config:#{connectConfigOverride}, then update RNCxaConfig.json at #{path}"
51
-
52
- if(connectConfigOverride)
53
- connectConfigOverrideJson = JSON.generate(connectConfigOverride)
54
- File.write(path,connectConfigOverrideJson)
55
- puts JSON.pretty_generate(connectConfigOverrideJson)
56
- end
57
- end
16
+ lib_root = ARGV[2]
58
17
 
59
18
  begin
60
19
  config_path = "#{pods_root}/../../#{config_file}"
61
20
  if File.exist?(config_path)
21
+ puts "Read from ConnectConfig.json at:#{config_path}"
62
22
  json = JSON.parse(File.read(config_path))
23
+ puts JSON.pretty_generate(json)
63
24
  else
25
+ puts "ConnectConfig.json does not exist at:#{config_path}"
64
26
  exit
65
27
  end
66
28
 
67
- $useRelease = json["Connect"]["useRelease"]
68
- $dependencyName = $useRelease ? "ConnectReactNative" : $dependencyName
29
+ libConfigPath = "#{lib_root}/ios/RNCxaConfig.json"
30
+ if File.exist?(libConfigPath)
31
+ puts "Read from RNCxaConfig.json at:#{libConfigPath}"
32
+ libConfig = File.read(libConfigPath)
33
+ puts libConfig
69
34
 
70
- json.map do |module_name, value|
71
- if value.class.eql?("Hash")
72
- next
73
- end
74
-
75
- value.map do |config|
76
- config_key, config_value = config
77
- update_config(module_name, config_key, config_value)
35
+ File.open(libConfigPath, 'w') do |f|
36
+ f.write(JSON.pretty_generate(json))
78
37
  end
38
+
39
+ libConfig = File.read(libConfigPath)
40
+ puts "Update #{libConfigPath} to"
41
+ puts "#{libConfig}"
42
+ else
43
+ puts "RNCxaConfig.json does not exist at:#{libConfigPath}"
44
+ exit
79
45
  end
80
46
 
81
- update_layout(json)
82
-
83
47
  rescue Errno::ENOENT
84
48
  exit
85
49
  end
@@ -1,40 +1 @@
1
- {
2
- "AutoLayout": {
3
- "GlobalScreenSettings":{
4
- "ScreenChange": true,
5
- "DisplayName": "",
6
- "CaptureLayoutDelay": 500,
7
- "ScreenShot": true,
8
- "NumberOfWebViews": 0,
9
- "CaptureUserEvents": true,
10
- "CaptureScreenVisits": false,
11
- "CaptureLayoutOn": 2,
12
- "CaptureScreenshotOn": 2,
13
- "Masking": {
14
- "HasMasking": true,
15
- "HasCustomMask": true,
16
- "Sensitive": {
17
- "capitalCaseAlphabet": "X",
18
- "number": "9",
19
- "smallCaseAlphabet": "x",
20
- "symbol": "#"
21
- },
22
- "MaskIdList": [
23
- ],
24
- "MaskValueList": [
25
- ]
26
- }
27
- }
28
- },
29
- "AppendMapIds": {
30
- "[w,9290],[v,0]": {
31
- "mid": "ASimpleUIView"
32
- },
33
- "tag2999999": {
34
- "mid": "giveAdditionalId1"
35
- },
36
- "idxPathValue": {
37
- "mid": "giveAdditionalId2"
38
- }
39
- }
40
- }
1
+ {}
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.32"
43
+ "version": "16.0.34"
44
44
  }
@@ -18,21 +18,28 @@ puts "connectDependency:#{dependencyName}#{dependencyVersion}"
18
18
  puts "***************************************************************"
19
19
 
20
20
  Pod::Spec.new do |s|
21
- s.name = package["name"]
22
- s.version = package["version"]
23
- s.description = package["description"]
24
- s.homepage = package["homepage"]
25
- s.summary = package["summary"]
26
- s.license = package["license"]
27
- s.authors = package["author"]
28
- s.platforms = { :ios => "13.0" }
21
+ s.name = package["name"]
22
+ s.version = package["version"]
23
+ s.description = package["description"]
24
+ s.homepage = package["homepage"]
25
+ s.summary = package["summary"]
26
+ s.license = package["license"]
27
+ s.authors = package["author"]
28
+ s.platforms = { :ios => "13.0" }
29
29
 
30
- s.source = { :git => repository, :tag => s.version }
31
- s.preserve_paths = 'README.md', 'package.json', '*.js'
32
- s.source_files = "ios/**/*.{h,m}"
30
+ s.source = { :git => repository, :tag => s.version }
31
+ s.preserve_paths = 'README.md', 'package.json', '*.js'
32
+ s.source_files = "ios/**/*.{h,m,json}"
33
+ s.resource_bundles = {
34
+ 'RNCxaConfig' => ['RNCxaConfig.json'],
35
+ }
33
36
 
34
37
  s.dependency 'React'
35
- s.xcconfig = { 'HEADER_SEARCH_PATHS' => '../../../ios/Pods/** ' }
38
+ s.xcconfig = { 'HEADER_SEARCH_PATHS' => '../../../ios/Pods/** ' }
36
39
  s.dependency "#{dependencyName}#{dependencyVersion}"
37
- s.resource = "../../ConnectConfig.json"
40
+ s.script_phase = {
41
+ :name => 'Build Config',
42
+ :script => %("${PODS_TARGET_SRCROOT}/ios/ConnectConfig/Build_Config.rb" "${PODS_ROOT}" "ConnectConfig.json" "${PODS_TARGET_SRCROOT}"),
43
+ :execution_position => :before_compile,
44
+ }
38
45
  end