commit 6e34b0453fbd25a0cac50dcf5ab9e80f99c25f66 Author: Nick Bisby Date: Tue Jan 29 22:19:27 2019 -0600 Add the hello world Roku app as a base diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..b1cbca53 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +# +# Copyright (c) 2015 Roku, Inc. All rights reserved. +# Simple Makefile for Roku Channel Development +# + +APPNAME = hello-world +IMPORTS = + +APPSROOT = .. +include $(APPSROOT)/app.mk diff --git a/components/helloworld.xml b/components/helloworld.xml new file mode 100644 index 00000000..dea9b8a2 --- /dev/null +++ b/components/helloworld.xml @@ -0,0 +1,37 @@ + + + + + + + + diff --git a/images/channel-poster_fhd.png b/images/channel-poster_fhd.png new file mode 100644 index 00000000..a100334c Binary files /dev/null and b/images/channel-poster_fhd.png differ diff --git a/images/channel-poster_hd.png b/images/channel-poster_hd.png new file mode 100644 index 00000000..c60faa50 Binary files /dev/null and b/images/channel-poster_hd.png differ diff --git a/images/channel-poster_sd.png b/images/channel-poster_sd.png new file mode 100644 index 00000000..fe04d88d Binary files /dev/null and b/images/channel-poster_sd.png differ diff --git a/images/splash-screen_fhd.jpg b/images/splash-screen_fhd.jpg new file mode 100644 index 00000000..2ea271f2 Binary files /dev/null and b/images/splash-screen_fhd.jpg differ diff --git a/images/splash-screen_hd.jpg b/images/splash-screen_hd.jpg new file mode 100644 index 00000000..dabb190a Binary files /dev/null and b/images/splash-screen_hd.jpg differ diff --git a/images/splash-screen_sd.jpg b/images/splash-screen_sd.jpg new file mode 100644 index 00000000..6749d138 Binary files /dev/null and b/images/splash-screen_sd.jpg differ diff --git a/manifest b/manifest new file mode 100644 index 00000000..6730bfc4 --- /dev/null +++ b/manifest @@ -0,0 +1,27 @@ +# +# Copyright (c) 2015 Roku, Inc. All rights reserved. +# Roku Channel Manifest File +# Full spec at bit.ly/roku-manifest-file +# + +## Channel Details +title=Hello World +major_version=1 +minor_version=0 +build_version=00001 + +## Channel Assets +### Main Menu Icons / Channel Poster Artwork +#### Image sizes are FHD: 540x405px | HD: 290x218px | SD: 214x144px +mm_icon_focus_fhd=pkg:/images/channel-poster_fhd.png +mm_icon_focus_hd=pkg:/images/channel-poster_hd.png +mm_icon_focus_sd=pkg:/images/channel-poster_sd.png + +### Splash Screen + Loading Screen Artwork +#### Image sizes are FHD: 1920x1080px | HD: 1280x720px | SD: 720x480px +splash_screen_fhd=pkg:/images/splash-screen_fhd.jpg +splash_screen_hd=pkg:/images/splash-screen_hd.jpg +splash_screen_sd=pkg:/images/splash-screen_sd.jpg + +splash_color=#000000 +splash_min_time=1 diff --git a/source/Main.brs b/source/Main.brs new file mode 100644 index 00000000..32c4186a --- /dev/null +++ b/source/Main.brs @@ -0,0 +1,27 @@ +'************************************************************* +'** Hello World example +'** Copyright (c) 2015 Roku, Inc. All rights reserved. +'** Use of the Roku Platform is subject to the Roku SDK Licence Agreement: +'** https://docs.roku.com/doc/developersdk/en-us +'************************************************************* + +sub Main() + print "in showChannelSGScreen" + 'Indicate this is a Roku SceneGraph application' + screen = CreateObject("roSGScreen") + m.port = CreateObject("roMessagePort") + screen.setMessagePort(m.port) + + 'Create a scene and load /components/helloworld.xml' + scene = screen.CreateScene("HelloWorld") + screen.show() + + while(true) + msg = wait(0, m.port) + msgType = type(msg) + if msgType = "roSGScreenEvent" + if msg.isScreenClosed() then return + end if + end while +end sub +