react-native-acoustic-connect-beta 16.0.32 → 16.0.33
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.
|
|
18
|
+
"react-native-acoustic-connect-beta": "16.0.33",
|
|
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
|
|
14
|
+
pods_root = ARGV[0]
|
|
15
15
|
config_file = ARGV[1]
|
|
16
|
-
|
|
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
|
-
|
|
68
|
-
|
|
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
|
-
|
|
71
|
-
|
|
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
|
package/ios/RNCxaConfig.json
CHANGED
|
@@ -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
|
@@ -29,10 +29,14 @@ Pod::Spec.new do |s|
|
|
|
29
29
|
|
|
30
30
|
s.source = { :git => repository, :tag => s.version }
|
|
31
31
|
s.preserve_paths = 'README.md', 'package.json', '*.js'
|
|
32
|
-
s.source_files = "ios/**/*.{h,m}"
|
|
32
|
+
s.source_files = "ios/**/*.{h,m,json}"
|
|
33
33
|
|
|
34
34
|
s.dependency 'React'
|
|
35
35
|
s.xcconfig = { 'HEADER_SEARCH_PATHS' => '../../../ios/Pods/** ' }
|
|
36
36
|
s.dependency "#{dependencyName}#{dependencyVersion}"
|
|
37
|
-
s.
|
|
37
|
+
s.script_phase = {
|
|
38
|
+
:name => 'Build Config',
|
|
39
|
+
:script => %("${PODS_TARGET_SRCROOT}/ios/ConnectConfig/Build_Config.rb" "${PODS_ROOT}" "ConnectConfig.json" "${PODS_TARGET_SRCROOT}"),
|
|
40
|
+
:execution_position => :before_compile,
|
|
41
|
+
}
|
|
38
42
|
end
|