Skip to content

Commit afc18a9

Browse files
authored
Merge branch 'master' into dont-use-progressDialog
2 parents ac3ab20 + fb6fdbe commit afc18a9

File tree

322 files changed

+2172
-1108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

322 files changed

+2172
-1108
lines changed

.github/workflows/build-prod.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Save old manifest version
3232
run: echo "oldManVersion=${{ env.oldMajor }}.${{ env.oldMinor }}.${{ env.oldBuild }}" >> $GITHUB_ENV
3333
- name: Save old Makefile version
34-
run: awk 'BEGIN { FS=" = " } /^VERSION/ { print "oldMakeVersion="$2; }' Makefile >> $GITHUB_ENV
34+
run: awk 'BEGIN { FS=" := " } /^VERSION/ { print "oldMakeVersion="$2; }' Makefile >> $GITHUB_ENV
3535
- name: Checkout PR branch
3636
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
3737
- name: Save new package.json version
@@ -51,7 +51,7 @@ jobs:
5151
if: env.oldManVersion == env.newManVersion
5252
run: exit 1
5353
- name: Save new Makefile version
54-
run: awk 'BEGIN { FS=" = " } /^VERSION/ { print "newMakeVersion="$2; }' Makefile >> $GITHUB_ENV
54+
run: awk 'BEGIN { FS=" := " } /^VERSION/ { print "newMakeVersion="$2; }' Makefile >> $GITHUB_ENV
5555
- name: Makefile version must be updated
5656
if: env.oldMakeVersion == env.newMakeVersion
5757
run: exit 1

.github/workflows/deploy-api-docs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232
- name: Checkout
3333
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
3434
- name: Setup Pages
35-
uses: actions/configure-pages@f156874f8191504dae5b037505266ed5dda6c382 # v3
35+
uses: actions/configure-pages@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d # v4
3636
- name: Upload artifact
3737
uses: actions/upload-pages-artifact@a753861a5debcf57bf8b404356158c8e1e33150c # v2
3838
with:
3939
# Only upload the api docs folder
4040
path: "docs/api"
4141
- name: Deploy to GitHub Pages
4242
id: deployment
43-
uses: actions/deploy-pages@9dbe3824824f8a1377b8e298bafde1a50ede43e5 # v2
43+
uses: actions/deploy-pages@77d7344265e1f960dab5c00dbff52287a70b0d4f # v3

.github/workflows/roku-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
if: env.BRANCH_NAME == 'master'
2828
run: npm run build-prod
2929
- name: Use Java 17
30-
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3
30+
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4
3131
with:
3232
distribution: "temurin"
3333
java-version: "17"

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"docs/api/**": true
1919
},
2020
"brightscriptcomment.addExtraAtStartAndEnd": false
21-
}
21+
}

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# If you want to get_images, you'll also need convert from ImageMagick
44
##########################################################################
55

6-
VERSION := 1.6.6
6+
VERSION := 2.0.0
77

88
## usage
99

components/ItemGrid/ItemGrid.bs

+2-1
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,9 @@ end sub
569569
'
570570
'Load next set of items
571571
sub loadMoreData()
572-
startLoadingSpinner(false)
573572
if m.Loading = true then return
573+
574+
startLoadingSpinner(false)
574575
m.Loading = true
575576
m.loadItemsTask.startIndex = m.loadedItems
576577
m.loadItemsTask.observeField("content", "ItemDataLoaded")

components/ItemGrid/MovieLibraryView.bs

+2-1
Original file line numberDiff line numberDiff line change
@@ -687,8 +687,9 @@ end sub
687687
'
688688
'Load next set of items
689689
sub loadMoreData()
690-
startLoadingSpinner(false)
691690
if m.Loading = true then return
691+
692+
startLoadingSpinner(false)
692693
m.Loading = true
693694
m.loadItemsTask.startIndex = m.loadedItems
694695
m.loadItemsTask.observeField("content", "ItemDataLoaded")

components/ItemGrid/MusicLibraryView.bs

+3-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ end sub
108108
'Load initial set of Data
109109
sub loadInitialItems()
110110
m.loadItemsTask.control = "stop"
111-
startLoadingSpinner()
111+
startLoadingSpinner(false)
112112

113113
if LCase(m.top.parentItem.json.Type) = "collectionfolder"
114114
m.top.HomeLibraryItem = m.top.parentItem.Id
@@ -550,8 +550,9 @@ end sub
550550
'
551551
'Load next set of items
552552
sub loadMoreData()
553-
startLoadingSpinner(false)
554553
if m.Loading = true then return
554+
555+
startLoadingSpinner(false)
555556
m.Loading = true
556557
m.loadItemsTask.startIndex = m.loadedItems
557558
m.loadItemsTask.observeField("content", "ItemDataLoaded")

components/WhatsNewDialog.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sub init()
55

66
m.top.id = "OKDialog"
77
m.top.height = 900
8-
m.top.title = "What's New?"
8+
m.top.title = m.global.app.version + " - " + tr("What's New?")
99
m.top.buttons = [tr("OK")]
1010

1111
dialogStyles = {
@@ -21,7 +21,7 @@ sub init()
2121
}
2222
}
2323

24-
whatsNewList = ParseJSON(ReadAsciiFile("pkg:/source/static/whatsNew.json"))
24+
whatsNewList = ParseJSON(ReadAsciiFile("pkg:/source/static/whatsNew/" + m.global.app.version.ToStr().trim() + ".json"))
2525

2626
for each item in whatsNewList
2727
textLine = m.content.CreateChild("StdDlgMultiStyleTextItem")

components/data/SceneManager.bs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import "pkg:/source/roku_modules/log/LogMixin.brs"
2+
import "pkg:/source/utils/misc.bs"
23

34
sub init()
45
m.log = log.Logger("SceneManager")
@@ -120,7 +121,7 @@ sub popScene()
120121
' Exit app if the stack is empty after removing group
121122
m.scene.exit = true
122123
end if
123-
124+
stopLoadingSpinner()
124125
end sub
125126

126127

components/home/Home.bs

+9-2
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,25 @@ sub init()
99
m.top.optionsAvailable = true
1010
m.postTask = createObject("roSGNode", "PostTask")
1111

12+
m.homeRows = m.top.findNode("homeRows")
13+
14+
m.fadeInFocusBitmap = m.top.findNode("fadeInFocusBitmap")
15+
1216
if m.global.session.user.settings["ui.home.splashBackground"] = true
1317
m.backdrop = m.top.findNode("backdrop")
1418
m.backdrop.uri = buildURL("/Branding/Splashscreen?format=jpg&foregroundLayer=0.15&fillWidth=1280&width=1280&fillHeight=720&height=720&tag=splash")
1519
end if
1620
end sub
1721

1822
sub refresh()
19-
m.top.findNode("homeRows").callFunc("updateHomeRows")
23+
m.homeRows.focusBitmapBlendColor = "0xFFFFFFFF"
24+
m.homeRows.callFunc("updateHomeRows")
2025
end sub
2126

2227
sub loadLibraries()
23-
m.top.findNode("homeRows").callFunc("loadLibraries")
28+
m.homeRows.focusBitmapBlendColor = "0xFFFFFF00"
29+
m.homeRows.callFunc("loadLibraries")
30+
m.fadeInFocusBitmap.control = "start"
2431
end sub
2532

2633
' JFScreen hook that gets ran as needed.

components/home/Home.xml

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
<component name="Home" extends="JFScreen">
33
<children>
44
<Poster id="backdrop" loadDisplayMode="scaleToZoom" width="1920" height="1200" />
5-
<HomeRows id="homeRows" />
5+
<HomeRows id="homeRows" focusBitmapBlendColor="0xFFFFFF00" />
66
<OptionsSlider id="options" />
7+
8+
<Animation id="fadeInFocusBitmap" delay="1" duration=".2" repeat="false" easeFunction="inQuad">
9+
<ColorFieldInterpolator id="fadeInFocusBitmapInterpolator" key="[0.0, 1.0]" keyValue="[0xFFFFFF00, 0xFFFFFFFF]" fieldToInterp="homeRows.focusBitmapBlendColor" />
10+
</Animation>
711
</children>
812
<interface>
913
<field id="selectedItem" alias="homeRows.selectedItem" />

components/home/HomeItem.bs

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ end sub
2828

2929

3030
sub itemContentChanged()
31+
m.unplayedCount.visible = false
3132
itemData = m.top.itemContent
3233
if itemData = invalid then return
3334

@@ -65,6 +66,10 @@ sub itemContentChanged()
6566

6667
' Format the Data based on the type of Home Data
6768
if itemData.type = "CollectionFolder" or itemData.type = "UserView" or itemData.type = "Channel"
69+
m.itemText.font.size = 35
70+
m.itemText.height = 64
71+
m.itemText.horizAlign = "center"
72+
m.itemText.vertAlign = "bottom"
6873
m.itemText.text = itemData.name
6974
m.itemPoster.uri = itemData.widePosterURL
7075
return

components/home/HomeRow.xml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<component name="HomeRow" extends="ContentNode">
33
<interface>
44
<field id="imageWidth" type="integer" value="464" />
5+
<field id="cursorSize" type="array" value="[464, 331]" />
56
<field id="usePoster" type="bool" value="false" />
67
</interface>
78
</component>

0 commit comments

Comments
 (0)