first commit
David Blume

David Blume commited on 2016-01-29 23:04:42
Showing 8 changed files, with 142 additions and 0 deletions.

... ...
@@ -0,0 +1,14 @@
1
+            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2
+                    Version 2, December 2004
3
+
4
+ Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
5
+
6
+ Everyone is permitted to copy and distribute verbatim or modified
7
+ copies of this license document, and changing it is allowed as long
8
+ as the name is changed.
9
+
10
+            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
11
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12
+
13
+  0. You just DO WHAT THE FUCK YOU WANT TO.
14
+
... ...
@@ -0,0 +1,13 @@
1
+.PHONY: clean
2
+ZIPFILE=ip_tagger.zip
3
+
4
+all: $(ZIPFILE)
5
+	curl -s -S --user rokudev:$(DEVPASSWORD) --digest -F "archive=@$(ZIPFILE)" \
6
+	-F "mysubmit=Install" --output /dev/null --write-out "%{http_code}" \
7
+	http://$(ROKU_DEV_TARGET)/plugin_install
8
+
9
+$(ZIPFILE):  manifest source/*.brs images/*.jpg
10
+	zip $@ manifest source/*.* images/*.*
11
+
12
+clean:
13
+	rm $(ZIPFILE)
... ...
@@ -0,0 +1,32 @@
1
+# IP Tagger
2
+
3
+IP Tagger is a test [channel for Roku devices](http://sdkdocs.roku.com/display/sdkdoc/Getting+Started).
4
+It uses the BrightScript language.
5
+
6
+# Getting the project
7
+
8
+You can get a copy of this project by clicking on the
9
+[ZIP](http://git.dlma.com/roku_ip_tagger.git/zipball/master)
10
+or [TAR](http://git.dlma.com/roku_ip_tagger.git/tarball/master) buttons
11
+near the top right of the GitList web page.
12
+
13
+If you're me, and you want to contribute to the repo, then you can clone it like so:
14
+
15
+    git clone ssh://USERNAME@dlma.com/~/git/roku_ip_tagger.git
16
+
17
+# Building it
18
+
19
+[Ensure you can sideload a dev channel](http://sdkdocs.roku.com/display/sdkdoc/Loading+and+Running+Your+Application+Walkthrough).
20
+Then see the "build_systems" command in ip_tagger.sublime-project to see how the channel is zipped and deployed.
21
+
22
+# Is it any good?
23
+
24
+[Yes](https://news.ycombinator.com/item?id=3067434).
25
+
26
+# To Do
27
+
28
+1. Try the new SDK
29
+
30
+# Licence
31
+
32
+This software uses the [WTFPL](http://www.wtfpl.net/).
... ...
@@ -0,0 +1,41 @@
1
+{
2
+	"build_systems":
3
+	[
4
+		{
5
+			"name": "Run",
6
+			"linux": {
7
+				"shell_cmd": "make all",
8
+			},
9
+			"working_dir": "$project_path"
10
+		},
11
+		{
12
+			"name": "Zip",
13
+			"working_dir": "$project_path",
14
+			"windows": {
15
+				"cmd": "\"C:\\Program Files\\7-Zip\\7z.exe\" a -tzip \"$project_base_name.zip\" manifest source/*.* images"
16
+			},
17
+			"osx": {
18
+				"shell_cmd": "zip \"$project_base_name.zip\" manifest source/*.* images/*.*"
19
+			},
20
+			"linux": {
21
+				"shell_cmd": "zip \"$project_base_name.zip\" manifest source/*.* images/*.*"
22
+			}
23
+		}
24
+	],
25
+	"folders":
26
+	[
27
+		{
28
+			"path": ".",
29
+			"file_exclude_patterns":
30
+			[
31
+				"tags",
32
+				"*.zip",
33
+				"*.sublime-project"
34
+			],
35
+			"folder_exclude_patterns":
36
+			[
37
+				"obj"
38
+			],
39
+		}
40
+	]
41
+}
... ...
@@ -0,0 +1,8 @@
1
+title=IP Tagger
2
+major_version=1
3
+minor_version=0
4
+build_version=0
5
+mm_icon_focus_hd=pkg:/images/mm_icon_focus_hd.png
6
+mm_icon_focus_sd=pkg:/images/mm_icon_focus_sd.png
7
+ndk_instant_on=1
8
+ndk_instant_on_background=1
... ...
@@ -0,0 +1,34 @@
1
+sub RunUserInterface(params As Object)
2
+    if params.contentID <> invalid
3
+        contentID = params.contentID
4
+    else
5
+        contentID = ""
6
+    end if
7
+
8
+    if params.options <> invalid
9
+        options = params.options
10
+    else
11
+        options = ""
12
+    end if
13
+
14
+    showScreen(contentID, options)
15
+end sub
16
+
17
+
18
+sub showScreen(contentID As String, options As String)
19
+    screen = CreateObject("roParagraphScreen")
20
+    port = CreateObject("roMessagePort")
21
+    screen.SetMessagePort(port)
22
+
23
+    screen.addParagraph("contentID = " + contentID)
24
+    screen.addParagraph("options = " + options)
25
+
26
+    screen.Show()
27
+
28
+    while true
29
+        msg = wait(0, port)
30
+        if msg <> invalid
31
+            exit while
32
+        end if
33
+    end while
34
+end sub
0 35