roku_builder 4.29.4 → 4.29.7
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.
- checksums.yaml +4 -4
- data/lib/roku_builder/config_parser.rb +12 -0
- data/lib/roku_builder/plugins/linker.rb +9 -2
- data/lib/roku_builder/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a70824117e5993d1c97135aa2ca527e4c24acd462520f5a602b7bb30bd951498
|
4
|
+
data.tar.gz: c4e916020854f907ae533640adcb25d7cfbee05723ad22879e6db39297d37a10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc67d446e88e8a672f289ca56e4312a46c6a7fe788f84eb146a2258e3d9fbf59143e9e58c0b2ae3282df937123be019fc8540a62f9f5b2a70d7267d487af6023
|
7
|
+
data.tar.gz: 483489cf278804bb6e2a83207abae7ad8cc7c40f66bc9c97a85b80326e58af916de41e61cb42303bd4b89f47d1990b1070074f76f379a0790bad6b4cb9648cd6
|
@@ -26,11 +26,13 @@ module RokuBuilder
|
|
26
26
|
setup_project
|
27
27
|
setup_in_out_file
|
28
28
|
setup_project_config
|
29
|
+
setup_build_dir
|
29
30
|
setup_stage_config
|
30
31
|
setup_key_config
|
31
32
|
setup_root_dir
|
32
33
|
setup_input_mappings
|
33
34
|
setup_console_log
|
35
|
+
setup_deeplinks
|
34
36
|
end
|
35
37
|
|
36
38
|
def process_in_argument
|
@@ -169,6 +171,11 @@ module RokuBuilder
|
|
169
171
|
@parsed[:project][:stage_method] = :working if @options[:working]
|
170
172
|
end
|
171
173
|
|
174
|
+
def setup_build_dir
|
175
|
+
if @options[:build_dir].nil? and parsed[:project] and not @parsed[:project][:build_dir].nil?
|
176
|
+
@options[:build_dir] = File.expand_path(@parsed[:project][:build_dir], @parsed[:project][:directory])
|
177
|
+
end
|
178
|
+
end
|
172
179
|
|
173
180
|
def setup_stage_config
|
174
181
|
if project_required
|
@@ -222,5 +229,10 @@ module RokuBuilder
|
|
222
229
|
def setup_console_log
|
223
230
|
@parsed[:console_log] = @config[:console_log]
|
224
231
|
end
|
232
|
+
|
233
|
+
def setup_deeplinks
|
234
|
+
@parsed[:deeplinks] = @config[:deeplinks]
|
235
|
+
end
|
236
|
+
|
225
237
|
end
|
226
238
|
end
|
@@ -16,10 +16,10 @@ module RokuBuilder
|
|
16
16
|
|
17
17
|
def self.parse_options(parser:, options:)
|
18
18
|
parser.separator "Commands:"
|
19
|
-
parser.on("-o", "--deeplink OPTIONS", "Launch and Deeplink into app. Define options as keypairs
|
19
|
+
parser.on("-o", "--deeplink OPTIONS", "Launch and Deeplink into app. Define options as keypairs (eg. \"a:b, c:d,e:f\") or name (eg. \"name\"). To use named deeplinks, including them in your config file: \"deeplinks\": { \"name\": \"a:b, c:d, e:f\" }") do |o|
|
20
20
|
options[:deeplink] = o
|
21
21
|
end
|
22
|
-
parser.on("-i", "--input OPTIONS", "Deeplink into app. Define options as keypairs
|
22
|
+
parser.on("-i", "--input OPTIONS", "Deeplink into app. Define options as keypairs (eg. \"a:b, c:d,e:f\") or name (eg. \"name\"). To use named deeplinks, including them in your config file: \"deeplinks\": { \"name\": \"a:b, c:d, e:f\" }") do |o|
|
23
23
|
options[:input] = o
|
24
24
|
end
|
25
25
|
parser.on("-A", "--app-list", "List currently installed apps") do
|
@@ -80,6 +80,13 @@ module RokuBuilder
|
|
80
80
|
unless payload.keys.count > 0
|
81
81
|
@logger.warn "No options sent to launched app"
|
82
82
|
else
|
83
|
+
deeplinks = @config.deeplinks
|
84
|
+
firstKey = payload.keys.first
|
85
|
+
if !deeplinks.nil?
|
86
|
+
if !deeplinks[firstKey].nil?
|
87
|
+
payload = RokuBuilder.options_parse(options: deeplinks[firstKey])
|
88
|
+
end
|
89
|
+
end
|
83
90
|
payload = parameterize(payload)
|
84
91
|
path = "#{path}?#{payload}"
|
85
92
|
@logger.info "Deeplink:"
|
data/lib/roku_builder/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roku_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.29.
|
4
|
+
version: 4.29.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- greeneca
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -671,7 +671,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
671
671
|
- !ruby/object:Gem::Version
|
672
672
|
version: '0'
|
673
673
|
requirements: []
|
674
|
-
rubygems_version: 3.
|
674
|
+
rubygems_version: 3.5.9
|
675
675
|
signing_key:
|
676
676
|
specification_version: 4
|
677
677
|
summary: Build Tool for Roku Apps
|