roku_builder 3.13.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG +12 -0
- data/Gemfile.lock +22 -7
- data/Guardfile +3 -3
- data/README.md +22 -398
- data/bin/roku +1 -194
- data/config.json.example +1 -1
- data/intergration/roku_builder/test_core.rb +52 -0
- data/intergration/roku_builder/test_files/core_intergration_test/manifest_template +7 -0
- data/intergration/roku_builder/test_files/core_intergration_test/test.pkg +0 -0
- data/intergration/roku_builder/test_files/inspector_intergration_test/components/rectanglescene.xml +28 -0
- data/intergration/roku_builder/test_files/inspector_intergration_test/images/rde_mm_focus_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/inspector_intergration_test/images/rde_mm_focus_sd.jpg +0 -0
- data/intergration/roku_builder/test_files/inspector_intergration_test/images/rde_splash_fhd.jpg +0 -0
- data/intergration/roku_builder/test_files/inspector_intergration_test/images/rde_splash_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/inspector_intergration_test/images/rde_splash_sd.jpg +0 -0
- data/intergration/roku_builder/test_files/inspector_intergration_test/images/rsgde_bg_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/inspector_intergration_test/images/rsgde_mm_focus_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/inspector_intergration_test/images/rsgde_splash_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/inspector_intergration_test/manifest +21 -0
- data/intergration/roku_builder/test_files/inspector_intergration_test/source/main.brs +23 -0
- data/intergration/roku_builder/test_files/inspector_intergration_test/test.pkg +0 -0
- data/intergration/roku_builder/test_files/linker_intergration_test/components/rectanglescene.xml +29 -0
- data/intergration/roku_builder/test_files/linker_intergration_test/images/rde_mm_focus_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/linker_intergration_test/images/rde_mm_focus_sd.jpg +0 -0
- data/intergration/roku_builder/test_files/linker_intergration_test/images/rde_splash_fhd.jpg +0 -0
- data/intergration/roku_builder/test_files/linker_intergration_test/images/rde_splash_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/linker_intergration_test/images/rde_splash_sd.jpg +0 -0
- data/intergration/roku_builder/test_files/linker_intergration_test/images/rsgde_bg_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/linker_intergration_test/images/rsgde_mm_focus_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/linker_intergration_test/images/rsgde_splash_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/linker_intergration_test/manifest +21 -0
- data/intergration/roku_builder/test_files/linker_intergration_test/source/main.brs +21 -0
- data/intergration/roku_builder/test_files/linker_intergration_test/test.pkg +0 -0
- data/intergration/roku_builder/test_files/loader_intergration_test/components/rectanglescene.xml +29 -0
- data/intergration/roku_builder/test_files/loader_intergration_test/images/rde_mm_focus_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/loader_intergration_test/images/rde_mm_focus_sd.jpg +0 -0
- data/intergration/roku_builder/test_files/loader_intergration_test/images/rde_splash_fhd.jpg +0 -0
- data/intergration/roku_builder/test_files/loader_intergration_test/images/rde_splash_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/loader_intergration_test/images/rde_splash_sd.jpg +0 -0
- data/intergration/roku_builder/test_files/loader_intergration_test/images/rsgde_bg_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/loader_intergration_test/images/rsgde_mm_focus_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/loader_intergration_test/images/rsgde_splash_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/loader_intergration_test/manifest +21 -0
- data/intergration/roku_builder/test_files/loader_intergration_test/source/main.brs +21 -0
- data/intergration/roku_builder/test_files/loader_intergration_test/test.pkg +0 -0
- data/intergration/roku_builder/test_files/monitor_intergration_test/components/rectanglescene.xml +29 -0
- data/intergration/roku_builder/test_files/monitor_intergration_test/images/rde_mm_focus_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/monitor_intergration_test/images/rde_mm_focus_sd.jpg +0 -0
- data/intergration/roku_builder/test_files/monitor_intergration_test/images/rde_splash_fhd.jpg +0 -0
- data/intergration/roku_builder/test_files/monitor_intergration_test/images/rde_splash_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/monitor_intergration_test/images/rde_splash_sd.jpg +0 -0
- data/intergration/roku_builder/test_files/monitor_intergration_test/images/rsgde_bg_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/monitor_intergration_test/images/rsgde_mm_focus_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/monitor_intergration_test/images/rsgde_splash_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/monitor_intergration_test/manifest +21 -0
- data/intergration/roku_builder/test_files/monitor_intergration_test/source/main.brs +21 -0
- data/intergration/roku_builder/test_files/monitor_intergration_test/test.pkg +0 -0
- data/intergration/roku_builder/test_files/navigator_intergration_test/components/rectanglescene.xml +29 -0
- data/intergration/roku_builder/test_files/navigator_intergration_test/images/rde_mm_focus_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/navigator_intergration_test/images/rde_mm_focus_sd.jpg +0 -0
- data/intergration/roku_builder/test_files/navigator_intergration_test/images/rde_splash_fhd.jpg +0 -0
- data/intergration/roku_builder/test_files/navigator_intergration_test/images/rde_splash_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/navigator_intergration_test/images/rde_splash_sd.jpg +0 -0
- data/intergration/roku_builder/test_files/navigator_intergration_test/images/rsgde_bg_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/navigator_intergration_test/images/rsgde_mm_focus_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/navigator_intergration_test/images/rsgde_splash_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/navigator_intergration_test/manifest +21 -0
- data/intergration/roku_builder/test_files/navigator_intergration_test/source/main.brs +21 -0
- data/intergration/roku_builder/test_files/navigator_intergration_test/test.pkg +0 -0
- data/intergration/roku_builder/test_files/packager_intergration_test/components/rectanglescene.xml +29 -0
- data/intergration/roku_builder/test_files/packager_intergration_test/images/rde_mm_focus_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/packager_intergration_test/images/rde_mm_focus_sd.jpg +0 -0
- data/intergration/roku_builder/test_files/packager_intergration_test/images/rde_splash_fhd.jpg +0 -0
- data/intergration/roku_builder/test_files/packager_intergration_test/images/rde_splash_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/packager_intergration_test/images/rde_splash_sd.jpg +0 -0
- data/intergration/roku_builder/test_files/packager_intergration_test/images/rsgde_bg_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/packager_intergration_test/images/rsgde_mm_focus_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/packager_intergration_test/images/rsgde_splash_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/packager_intergration_test/manifest +21 -0
- data/intergration/roku_builder/test_files/packager_intergration_test/source/main.brs +21 -0
- data/intergration/roku_builder/test_files/packager_intergration_test/test.pkg +0 -0
- data/intergration/roku_builder/test_files/profiler_intergration_test/components/rectanglescene.xml +29 -0
- data/intergration/roku_builder/test_files/profiler_intergration_test/images/rde_mm_focus_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/profiler_intergration_test/images/rde_mm_focus_sd.jpg +0 -0
- data/intergration/roku_builder/test_files/profiler_intergration_test/images/rde_splash_fhd.jpg +0 -0
- data/intergration/roku_builder/test_files/profiler_intergration_test/images/rde_splash_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/profiler_intergration_test/images/rde_splash_sd.jpg +0 -0
- data/intergration/roku_builder/test_files/profiler_intergration_test/images/rsgde_bg_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/profiler_intergration_test/images/rsgde_mm_focus_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/profiler_intergration_test/images/rsgde_splash_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/profiler_intergration_test/manifest +21 -0
- data/intergration/roku_builder/test_files/profiler_intergration_test/source/main.brs +21 -0
- data/intergration/roku_builder/test_files/profiler_intergration_test/test.pkg +0 -0
- data/intergration/roku_builder/test_files/scripter_intergration_test/components/rectanglescene.xml +29 -0
- data/intergration/roku_builder/test_files/scripter_intergration_test/images/rde_mm_focus_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/scripter_intergration_test/images/rde_mm_focus_sd.jpg +0 -0
- data/intergration/roku_builder/test_files/scripter_intergration_test/images/rde_splash_fhd.jpg +0 -0
- data/intergration/roku_builder/test_files/scripter_intergration_test/images/rde_splash_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/scripter_intergration_test/images/rde_splash_sd.jpg +0 -0
- data/intergration/roku_builder/test_files/scripter_intergration_test/images/rsgde_bg_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/scripter_intergration_test/images/rsgde_mm_focus_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/scripter_intergration_test/images/rsgde_splash_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/scripter_intergration_test/manifest +21 -0
- data/intergration/roku_builder/test_files/scripter_intergration_test/source/main.brs +21 -0
- data/intergration/roku_builder/test_files/scripter_intergration_test/test.pkg +0 -0
- data/intergration/roku_builder/test_files/tester_intergration_test/components/rectanglescene.xml +29 -0
- data/intergration/roku_builder/test_files/tester_intergration_test/images/rde_mm_focus_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/tester_intergration_test/images/rde_mm_focus_sd.jpg +0 -0
- data/intergration/roku_builder/test_files/tester_intergration_test/images/rde_splash_fhd.jpg +0 -0
- data/intergration/roku_builder/test_files/tester_intergration_test/images/rde_splash_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/tester_intergration_test/images/rde_splash_sd.jpg +0 -0
- data/intergration/roku_builder/test_files/tester_intergration_test/images/rsgde_bg_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/tester_intergration_test/images/rsgde_mm_focus_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/tester_intergration_test/images/rsgde_splash_hd.jpg +0 -0
- data/intergration/roku_builder/test_files/tester_intergration_test/manifest +21 -0
- data/intergration/roku_builder/test_files/tester_intergration_test/source/main.brs +21 -0
- data/intergration/roku_builder/test_files/tester_intergration_test/test.pkg +0 -0
- data/intergration/roku_builder/test_helper.rb +138 -0
- data/intergration/roku_builder/test_inspector.rb +35 -0
- data/intergration/roku_builder/test_linker.rb +32 -0
- data/intergration/roku_builder/test_loader.rb +38 -0
- data/intergration/roku_builder/test_monitor.rb +21 -0
- data/intergration/roku_builder/test_navigator.rb +34 -0
- data/intergration/roku_builder/test_packager.rb +41 -0
- data/intergration/roku_builder/test_profiler.rb +48 -0
- data/intergration/roku_builder/test_scripter.rb +38 -0
- data/intergration/roku_builder/test_tester.rb +21 -0
- data/lib/roku_builder.rb +143 -154
- data/lib/roku_builder/config.rb +17 -40
- data/lib/roku_builder/config_parser.rb +49 -200
- data/lib/roku_builder/config_validator.rb +1 -1
- data/lib/roku_builder/errors.rb +12 -0
- data/lib/roku_builder/git.rb +28 -0
- data/lib/roku_builder/hash.rb +8 -0
- data/lib/roku_builder/manifest.rb +121 -0
- data/lib/roku_builder/options.rb +68 -29
- data/lib/roku_builder/plugin.rb +30 -0
- data/lib/roku_builder/plugins/core.rb +117 -0
- data/lib/roku_builder/plugins/inspector.rb +104 -0
- data/lib/roku_builder/{linker.rb → plugins/linker.rb} +38 -12
- data/lib/roku_builder/plugins/loader.rb +152 -0
- data/lib/roku_builder/{monitor.rb → plugins/monitor.rb} +20 -9
- data/lib/roku_builder/{navigator.rb → plugins/navigator.rb} +136 -88
- data/lib/roku_builder/plugins/packager.rb +194 -0
- data/lib/roku_builder/plugins/profiler.rb +135 -0
- data/lib/roku_builder/plugins/scripter.rb +53 -0
- data/lib/roku_builder/{tester.rb → plugins/tester.rb} +28 -19
- data/lib/roku_builder/stager.rb +48 -12
- data/lib/roku_builder/string.rb +20 -0
- data/lib/roku_builder/util.rb +10 -34
- data/lib/roku_builder/version.rb +1 -1
- data/rakefile +5 -1
- data/roku_builder.gemspec +2 -0
- data/test/roku_builder/plugins/test_core.rb +112 -0
- data/test/roku_builder/plugins/test_inspector.rb +165 -0
- data/test/roku_builder/plugins/test_linker.rb +123 -0
- data/test/roku_builder/plugins/test_loader.rb +115 -0
- data/test/roku_builder/plugins/test_monitor.rb +141 -0
- data/test/roku_builder/plugins/test_navigator.rb +274 -0
- data/test/roku_builder/plugins/test_packager.rb +202 -0
- data/test/roku_builder/plugins/test_profiler.rb +127 -0
- data/test/roku_builder/plugins/test_scripter.rb +110 -0
- data/test/roku_builder/plugins/test_tester.rb +109 -0
- data/test/roku_builder/test_config.rb +51 -35
- data/test/roku_builder/test_config_parser.rb +76 -154
- data/test/roku_builder/test_config_validator.rb +18 -1
- data/test/roku_builder/test_files/{loader_test/manifest → config_parser_test/test.pkg} +0 -0
- data/test/roku_builder/test_files/config_test/config.json +3 -0
- data/test/roku_builder/test_files/controller_commands_test/manifest_template +7 -0
- data/test/roku_builder/test_files/core_test/manifest_template +7 -0
- data/test/roku_builder/test_files/core_test/test.pkg +0 -0
- data/test/roku_builder/test_files/inspector_test/manifest +6 -0
- data/test/roku_builder/test_files/inspector_test/test.pkg +0 -0
- data/test/roku_builder/test_files/linker_test/manifest +6 -0
- data/test/roku_builder/test_files/linker_test/test.pkg +0 -0
- data/test/roku_builder/test_files/loader_test/manifest_template +6 -0
- data/test/roku_builder/test_files/loader_test/test.pkg +0 -0
- data/test/roku_builder/test_files/loader_test/test.zip +0 -0
- data/test/roku_builder/test_files/manifest_test/manifest_comments +6 -0
- data/test/roku_builder/test_files/manifest_test/manifest_template +7 -0
- data/test/roku_builder/test_files/manifest_test/test.zip +0 -0
- data/test/roku_builder/test_files/packager_test/manifest +6 -0
- data/test/roku_builder/test_files/packager_test/scripter_test/manifest +6 -0
- data/test/roku_builder/test_files/packager_test/test.pkg +0 -0
- data/test/roku_builder/test_files/roku_builder_test/config.json +32 -0
- data/test/roku_builder/test_files/scripter_test/manifest +6 -0
- data/test/roku_builder/test_files/scripter_test/test.pkg +0 -0
- data/test/roku_builder/test_files/stager_test/test.pkg +0 -0
- data/test/roku_builder/test_files/tester_test/manifest +6 -0
- data/test/roku_builder/test_files/tester_test/test.pkg +0 -0
- data/test/roku_builder/test_helper.rb +44 -11
- data/test/roku_builder/test_logger.rb +1 -0
- data/test/roku_builder/test_manifest.rb +99 -0
- data/test/roku_builder/test_options.rb +106 -77
- data/test/roku_builder/test_options_plugins.rb +111 -0
- data/test/roku_builder/test_plugin.rb +48 -0
- data/test/roku_builder/test_roku_builder.rb +239 -0
- data/test/roku_builder/test_stager.rb +49 -101
- data/test/roku_builder/test_util.rb +19 -4
- metadata +241 -47
- data/lib/roku_builder/controller.rb +0 -98
- data/lib/roku_builder/controller_commands.rb +0 -224
- data/lib/roku_builder/error_handler.rb +0 -142
- data/lib/roku_builder/inspector.rb +0 -82
- data/lib/roku_builder/keyer.rb +0 -106
- data/lib/roku_builder/loader.rb +0 -131
- data/lib/roku_builder/manifest_manager.rb +0 -126
- data/lib/roku_builder/packager.rb +0 -43
- data/lib/roku_builder/profiler.rb +0 -96
- data/lib/roku_builder/scripter.rb +0 -39
- data/test/roku_builder/test_controller.rb +0 -70
- data/test/roku_builder/test_controller_commands.rb +0 -465
- data/test/roku_builder/test_error_handler.rb +0 -90
- data/test/roku_builder/test_inspector.rb +0 -298
- data/test/roku_builder/test_keyer.rb +0 -176
- data/test/roku_builder/test_linker.rb +0 -110
- data/test/roku_builder/test_loader.rb +0 -337
- data/test/roku_builder/test_manifest_manager.rb +0 -103
- data/test/roku_builder/test_monitor.rb +0 -137
- data/test/roku_builder/test_navigator.rb +0 -280
- data/test/roku_builder/test_packager.rb +0 -127
- data/test/roku_builder/test_profiler.rb +0 -35
- data/test/roku_builder/test_scripter.rb +0 -102
- data/test/roku_builder/test_tester.rb +0 -130
data/intergration/roku_builder/test_files/loader_intergration_test/components/rectanglescene.xml
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
<?xml version = "1.0" encoding = "utf-8" ?>
|
2
|
+
|
3
|
+
<!--********** Copyright 2016 Roku Corp. All Rights Reserved. **********-->
|
4
|
+
|
5
|
+
<component name = "RectangleExample" extends = "Scene" >
|
6
|
+
<script type = "text/brightscript" uri = "uuid.brs" />
|
7
|
+
<script type = "text/brightscript" >
|
8
|
+
<![CDATA[
|
9
|
+
sub init()
|
10
|
+
m.top.backgroundURI = "pkg:/images/rsgde_bg_hd.jpg"
|
11
|
+
example = m.top.findNode("exampleRectangle")
|
12
|
+
examplerect = example.boundingRect()
|
13
|
+
centerx = (1280 - examplerect.width) / 2
|
14
|
+
centery = (720 - examplerect.height) / 2
|
15
|
+
example.translation = [ centerx, centery ]
|
16
|
+
m.top.setFocus(true)
|
17
|
+
print uuid()
|
18
|
+
print m.global.externalParams.uuid
|
19
|
+
end sub
|
20
|
+
]]>
|
21
|
+
</script>
|
22
|
+
<children >
|
23
|
+
<Rectangle
|
24
|
+
id = "exampleRectangle"
|
25
|
+
width = "512"
|
26
|
+
height = "288"
|
27
|
+
color = "0x1010EBFF" />
|
28
|
+
</children>
|
29
|
+
</component>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/intergration/roku_builder/test_files/loader_intergration_test/images/rsgde_mm_focus_hd.jpg
ADDED
Binary file
|
Binary file
|
@@ -0,0 +1,21 @@
|
|
1
|
+
'********** Copyright 2016 Roku Corp. All Rights Reserved. **********
|
2
|
+
|
3
|
+
title=Rectangle Example
|
4
|
+
subtitle=A Roku Scene Graph Development Example
|
5
|
+
major_version=1
|
6
|
+
minor_version=0
|
7
|
+
build_version=00000
|
8
|
+
|
9
|
+
mm_icon_focus_hd=pkg:/images/rsgde_mm_focus_hd.jpg
|
10
|
+
mm_icon_focus_sd=pkg:/images/rde_mm_focus_sd.jpg
|
11
|
+
|
12
|
+
splash_screen_sd=pkg:/images/rde_splash_sd.jpg
|
13
|
+
|
14
|
+
splash_screen_hd=pkg:/images/rsgde_splash_hd.jpg
|
15
|
+
|
16
|
+
splash_screen_fhd=pkg:/images/rde_splash_fhd.jpg
|
17
|
+
|
18
|
+
splash_color=#662D91
|
19
|
+
splash_min_time=1000
|
20
|
+
|
21
|
+
ui_resolutions = "hd"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
'********** Copyright 2016 Roku Corp. All Rights Reserved. **********
|
2
|
+
|
3
|
+
sub Main(externalParams)
|
4
|
+
|
5
|
+
screen = CreateObject("roSGScreen")
|
6
|
+
m.port = CreateObject("roMessagePort")
|
7
|
+
screen.setMessagePort(m.port)
|
8
|
+
scene = screen.CreateScene("RectangleExample")
|
9
|
+
screen.getGlobalNode().addFields({externalParams: externalParams})
|
10
|
+
|
11
|
+
screen.show()
|
12
|
+
while(true)
|
13
|
+
msg = wait(0, m.port)
|
14
|
+
msgType = type(msg)
|
15
|
+
|
16
|
+
if msgType = "roSGScreenEvent"
|
17
|
+
if msg.isScreenClosed() then return
|
18
|
+
end if
|
19
|
+
end while
|
20
|
+
|
21
|
+
end sub
|
data/intergration/roku_builder/test_files/monitor_intergration_test/components/rectanglescene.xml
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
<?xml version = "1.0" encoding = "utf-8" ?>
|
2
|
+
|
3
|
+
<!--********** Copyright 2016 Roku Corp. All Rights Reserved. **********-->
|
4
|
+
|
5
|
+
<component name = "RectangleExample" extends = "Scene" >
|
6
|
+
<script type = "text/brightscript" uri = "uuid.brs" />
|
7
|
+
<script type = "text/brightscript" >
|
8
|
+
<![CDATA[
|
9
|
+
sub init()
|
10
|
+
m.top.backgroundURI = "pkg:/images/rsgde_bg_hd.jpg"
|
11
|
+
example = m.top.findNode("exampleRectangle")
|
12
|
+
examplerect = example.boundingRect()
|
13
|
+
centerx = (1280 - examplerect.width) / 2
|
14
|
+
centery = (720 - examplerect.height) / 2
|
15
|
+
example.translation = [ centerx, centery ]
|
16
|
+
m.top.setFocus(true)
|
17
|
+
print uuid()
|
18
|
+
print m.global.externalParams.uuid
|
19
|
+
end sub
|
20
|
+
]]>
|
21
|
+
</script>
|
22
|
+
<children >
|
23
|
+
<Rectangle
|
24
|
+
id = "exampleRectangle"
|
25
|
+
width = "512"
|
26
|
+
height = "288"
|
27
|
+
color = "0x1010EBFF" />
|
28
|
+
</children>
|
29
|
+
</component>
|
data/intergration/roku_builder/test_files/monitor_intergration_test/images/rde_mm_focus_hd.jpg
ADDED
Binary file
|
data/intergration/roku_builder/test_files/monitor_intergration_test/images/rde_mm_focus_sd.jpg
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/intergration/roku_builder/test_files/monitor_intergration_test/images/rsgde_mm_focus_hd.jpg
ADDED
Binary file
|
data/intergration/roku_builder/test_files/monitor_intergration_test/images/rsgde_splash_hd.jpg
ADDED
Binary file
|
@@ -0,0 +1,21 @@
|
|
1
|
+
'********** Copyright 2016 Roku Corp. All Rights Reserved. **********
|
2
|
+
|
3
|
+
title=Rectangle Example
|
4
|
+
subtitle=A Roku Scene Graph Development Example
|
5
|
+
major_version=1
|
6
|
+
minor_version=0
|
7
|
+
build_version=00000
|
8
|
+
|
9
|
+
mm_icon_focus_hd=pkg:/images/rsgde_mm_focus_hd.jpg
|
10
|
+
mm_icon_focus_sd=pkg:/images/rde_mm_focus_sd.jpg
|
11
|
+
|
12
|
+
splash_screen_sd=pkg:/images/rde_splash_sd.jpg
|
13
|
+
|
14
|
+
splash_screen_hd=pkg:/images/rsgde_splash_hd.jpg
|
15
|
+
|
16
|
+
splash_screen_fhd=pkg:/images/rde_splash_fhd.jpg
|
17
|
+
|
18
|
+
splash_color=#662D91
|
19
|
+
splash_min_time=1000
|
20
|
+
|
21
|
+
ui_resolutions = "hd"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
'********** Copyright 2016 Roku Corp. All Rights Reserved. **********
|
2
|
+
|
3
|
+
sub Main(externalParams)
|
4
|
+
|
5
|
+
screen = CreateObject("roSGScreen")
|
6
|
+
m.port = CreateObject("roMessagePort")
|
7
|
+
screen.setMessagePort(m.port)
|
8
|
+
scene = screen.CreateScene("RectangleExample")
|
9
|
+
screen.getGlobalNode().addFields({externalParams: externalParams})
|
10
|
+
|
11
|
+
screen.show()
|
12
|
+
while(true)
|
13
|
+
msg = wait(0, m.port)
|
14
|
+
msgType = type(msg)
|
15
|
+
|
16
|
+
if msgType = "roSGScreenEvent"
|
17
|
+
if msg.isScreenClosed() then return
|
18
|
+
end if
|
19
|
+
end while
|
20
|
+
|
21
|
+
end sub
|
data/intergration/roku_builder/test_files/navigator_intergration_test/components/rectanglescene.xml
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
<?xml version = "1.0" encoding = "utf-8" ?>
|
2
|
+
|
3
|
+
<!--********** Copyright 2016 Roku Corp. All Rights Reserved. **********-->
|
4
|
+
|
5
|
+
<component name = "RectangleExample" extends = "Scene" >
|
6
|
+
<script type = "text/brightscript" uri = "uuid.brs" />
|
7
|
+
<script type = "text/brightscript" >
|
8
|
+
<![CDATA[
|
9
|
+
sub init()
|
10
|
+
m.top.backgroundURI = "pkg:/images/rsgde_bg_hd.jpg"
|
11
|
+
example = m.top.findNode("exampleRectangle")
|
12
|
+
examplerect = example.boundingRect()
|
13
|
+
centerx = (1280 - examplerect.width) / 2
|
14
|
+
centery = (720 - examplerect.height) / 2
|
15
|
+
example.translation = [ centerx, centery ]
|
16
|
+
m.top.setFocus(true)
|
17
|
+
print uuid()
|
18
|
+
print m.global.externalParams.uuid
|
19
|
+
end sub
|
20
|
+
]]>
|
21
|
+
</script>
|
22
|
+
<children >
|
23
|
+
<Rectangle
|
24
|
+
id = "exampleRectangle"
|
25
|
+
width = "512"
|
26
|
+
height = "288"
|
27
|
+
color = "0x1010EBFF" />
|
28
|
+
</children>
|
29
|
+
</component>
|
data/intergration/roku_builder/test_files/navigator_intergration_test/images/rde_mm_focus_hd.jpg
ADDED
Binary file
|
data/intergration/roku_builder/test_files/navigator_intergration_test/images/rde_mm_focus_sd.jpg
ADDED
Binary file
|
data/intergration/roku_builder/test_files/navigator_intergration_test/images/rde_splash_fhd.jpg
ADDED
Binary file
|
data/intergration/roku_builder/test_files/navigator_intergration_test/images/rde_splash_hd.jpg
ADDED
Binary file
|
data/intergration/roku_builder/test_files/navigator_intergration_test/images/rde_splash_sd.jpg
ADDED
Binary file
|
Binary file
|
data/intergration/roku_builder/test_files/navigator_intergration_test/images/rsgde_mm_focus_hd.jpg
ADDED
Binary file
|
data/intergration/roku_builder/test_files/navigator_intergration_test/images/rsgde_splash_hd.jpg
ADDED
Binary file
|
@@ -0,0 +1,21 @@
|
|
1
|
+
'********** Copyright 2016 Roku Corp. All Rights Reserved. **********
|
2
|
+
|
3
|
+
title=Rectangle Example
|
4
|
+
subtitle=A Roku Scene Graph Development Example
|
5
|
+
major_version=1
|
6
|
+
minor_version=0
|
7
|
+
build_version=00000
|
8
|
+
|
9
|
+
mm_icon_focus_hd=pkg:/images/rsgde_mm_focus_hd.jpg
|
10
|
+
mm_icon_focus_sd=pkg:/images/rde_mm_focus_sd.jpg
|
11
|
+
|
12
|
+
splash_screen_sd=pkg:/images/rde_splash_sd.jpg
|
13
|
+
|
14
|
+
splash_screen_hd=pkg:/images/rsgde_splash_hd.jpg
|
15
|
+
|
16
|
+
splash_screen_fhd=pkg:/images/rde_splash_fhd.jpg
|
17
|
+
|
18
|
+
splash_color=#662D91
|
19
|
+
splash_min_time=1000
|
20
|
+
|
21
|
+
ui_resolutions = "hd"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
'********** Copyright 2016 Roku Corp. All Rights Reserved. **********
|
2
|
+
|
3
|
+
sub Main(externalParams)
|
4
|
+
|
5
|
+
screen = CreateObject("roSGScreen")
|
6
|
+
m.port = CreateObject("roMessagePort")
|
7
|
+
screen.setMessagePort(m.port)
|
8
|
+
scene = screen.CreateScene("RectangleExample")
|
9
|
+
screen.getGlobalNode().addFields({externalParams: externalParams})
|
10
|
+
|
11
|
+
screen.show()
|
12
|
+
while(true)
|
13
|
+
msg = wait(0, m.port)
|
14
|
+
msgType = type(msg)
|
15
|
+
|
16
|
+
if msgType = "roSGScreenEvent"
|
17
|
+
if msg.isScreenClosed() then return
|
18
|
+
end if
|
19
|
+
end while
|
20
|
+
|
21
|
+
end sub
|
data/intergration/roku_builder/test_files/packager_intergration_test/components/rectanglescene.xml
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
<?xml version = "1.0" encoding = "utf-8" ?>
|
2
|
+
|
3
|
+
<!--********** Copyright 2016 Roku Corp. All Rights Reserved. **********-->
|
4
|
+
|
5
|
+
<component name = "RectangleExample" extends = "Scene" >
|
6
|
+
<script type = "text/brightscript" uri = "uuid.brs" />
|
7
|
+
<script type = "text/brightscript" >
|
8
|
+
<![CDATA[
|
9
|
+
sub init()
|
10
|
+
m.top.backgroundURI = "pkg:/images/rsgde_bg_hd.jpg"
|
11
|
+
example = m.top.findNode("exampleRectangle")
|
12
|
+
examplerect = example.boundingRect()
|
13
|
+
centerx = (1280 - examplerect.width) / 2
|
14
|
+
centery = (720 - examplerect.height) / 2
|
15
|
+
example.translation = [ centerx, centery ]
|
16
|
+
m.top.setFocus(true)
|
17
|
+
print uuid()
|
18
|
+
print m.global.externalParams.uuid
|
19
|
+
end sub
|
20
|
+
]]>
|
21
|
+
</script>
|
22
|
+
<children >
|
23
|
+
<Rectangle
|
24
|
+
id = "exampleRectangle"
|
25
|
+
width = "512"
|
26
|
+
height = "288"
|
27
|
+
color = "0x1010EBFF" />
|
28
|
+
</children>
|
29
|
+
</component>
|
data/intergration/roku_builder/test_files/packager_intergration_test/images/rde_mm_focus_hd.jpg
ADDED
Binary file
|
data/intergration/roku_builder/test_files/packager_intergration_test/images/rde_mm_focus_sd.jpg
ADDED
Binary file
|
data/intergration/roku_builder/test_files/packager_intergration_test/images/rde_splash_fhd.jpg
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/intergration/roku_builder/test_files/packager_intergration_test/images/rsgde_mm_focus_hd.jpg
ADDED
Binary file
|
data/intergration/roku_builder/test_files/packager_intergration_test/images/rsgde_splash_hd.jpg
ADDED
Binary file
|
@@ -0,0 +1,21 @@
|
|
1
|
+
'********** Copyright 2016 Roku Corp. All Rights Reserved. **********
|
2
|
+
|
3
|
+
title=Rectangle Example
|
4
|
+
subtitle=A Roku Scene Graph Development Example
|
5
|
+
major_version=1
|
6
|
+
minor_version=0
|
7
|
+
build_version=00000
|
8
|
+
|
9
|
+
mm_icon_focus_hd=pkg:/images/rsgde_mm_focus_hd.jpg
|
10
|
+
mm_icon_focus_sd=pkg:/images/rde_mm_focus_sd.jpg
|
11
|
+
|
12
|
+
splash_screen_sd=pkg:/images/rde_splash_sd.jpg
|
13
|
+
|
14
|
+
splash_screen_hd=pkg:/images/rsgde_splash_hd.jpg
|
15
|
+
|
16
|
+
splash_screen_fhd=pkg:/images/rde_splash_fhd.jpg
|
17
|
+
|
18
|
+
splash_color=#662D91
|
19
|
+
splash_min_time=1000
|
20
|
+
|
21
|
+
ui_resolutions = "hd"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
'********** Copyright 2016 Roku Corp. All Rights Reserved. **********
|
2
|
+
|
3
|
+
sub Main(externalParams)
|
4
|
+
|
5
|
+
screen = CreateObject("roSGScreen")
|
6
|
+
m.port = CreateObject("roMessagePort")
|
7
|
+
screen.setMessagePort(m.port)
|
8
|
+
scene = screen.CreateScene("RectangleExample")
|
9
|
+
screen.getGlobalNode().addFields({externalParams: externalParams})
|
10
|
+
|
11
|
+
screen.show()
|
12
|
+
while(true)
|
13
|
+
msg = wait(0, m.port)
|
14
|
+
msgType = type(msg)
|
15
|
+
|
16
|
+
if msgType = "roSGScreenEvent"
|
17
|
+
if msg.isScreenClosed() then return
|
18
|
+
end if
|
19
|
+
end while
|
20
|
+
|
21
|
+
end sub
|
data/intergration/roku_builder/test_files/profiler_intergration_test/components/rectanglescene.xml
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
<?xml version = "1.0" encoding = "utf-8" ?>
|
2
|
+
|
3
|
+
<!--********** Copyright 2016 Roku Corp. All Rights Reserved. **********-->
|
4
|
+
|
5
|
+
<component name = "RectangleExample" extends = "Scene" >
|
6
|
+
<script type = "text/brightscript" uri = "uuid.brs" />
|
7
|
+
<script type = "text/brightscript" >
|
8
|
+
<![CDATA[
|
9
|
+
sub init()
|
10
|
+
m.top.backgroundURI = "pkg:/images/rsgde_bg_hd.jpg"
|
11
|
+
example = m.top.findNode("exampleRectangle")
|
12
|
+
examplerect = example.boundingRect()
|
13
|
+
centerx = (1280 - examplerect.width) / 2
|
14
|
+
centery = (720 - examplerect.height) / 2
|
15
|
+
example.translation = [ centerx, centery ]
|
16
|
+
m.top.setFocus(true)
|
17
|
+
print uuid()
|
18
|
+
print m.global.externalParams.uuid
|
19
|
+
end sub
|
20
|
+
]]>
|
21
|
+
</script>
|
22
|
+
<children >
|
23
|
+
<Rectangle
|
24
|
+
id = "exampleRectangle"
|
25
|
+
width = "512"
|
26
|
+
height = "288"
|
27
|
+
color = "0x1010EBFF" />
|
28
|
+
</children>
|
29
|
+
</component>
|
data/intergration/roku_builder/test_files/profiler_intergration_test/images/rde_mm_focus_hd.jpg
ADDED
Binary file
|
data/intergration/roku_builder/test_files/profiler_intergration_test/images/rde_mm_focus_sd.jpg
ADDED
Binary file
|
data/intergration/roku_builder/test_files/profiler_intergration_test/images/rde_splash_fhd.jpg
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|