- DATE:
- AUTHOR:
- JourneyApps Product Team
Runtime 4.90.7 (Latest Stable)
We are excited to announce that Runtime version 4.90.7 has been released.
Version 4.90 introduces View Templates: Now developers can define view XML as a standalone template, and reference it across views. What this means for developers:
Less code duplication across views.
Easier to maintain complex views, by breaking up the view XML into smaller snippets in templates.
Can introduce a better separation of concerns - a set of view components can be grouped into distinct templates.
Runtime version 4.90 additionally includes several smaller improvements and additions. Find the full changelog below.
You can use this version of the runtime by selecting it from the list of stable runtime versions under App Settings/Runtime Version in OXIDE.
4.90.7:
Fixed:
A regression where the text color in an
object-table
wasn't correctly inferred from the cell background color.
4.90.6:
Fixed:
A regression where icons from an app's Assets directory weren't displayed as expected in the navigation drawer.
An
object-table
column'saction
and row'saction
not inheriting the correct icon colors when their ownicon-color
isn't directly set.
4.90.5:
Added:
Ability to specify
mode="inline"
on thecapture-signature
component, to capture signatures in-line instead of using a dialog.Allow specifying the locale when using the translation API (
t({key, params, locale})
). The locale is the shortened name for the language e.g. 'ar' for Arabic. Example:
console.log(`Translate: ${t({key: 'Welcome', locale: 'de'})}`);
Improved:
Allow filtering on
object-table
boolean cells even if all values are the same.
Allow capturing signatures by calling the
captureMedia()
API even if thecapture-signature
component is hidden.
Fixed:
A regression causing the default color for
object-table
cell icons to not be respected.A regression where
object-table
cells didn't receive the correct padding.A regression with icons not being resolved when provided via the
from-js
attribute.An issue where components on a
dialog
would briefly display an error before thedialog
was closed.Added missing translations for the
capture-signature
component.
4.90.4:
Added:
You can now use
attachment
variables/fields with images to populateicons
in your apps. For example:
<!-- main.view.xml -->
<var name="my_icon" type="attachment" media="image/png" />
<button label="Click me!" icon="{my_icon}" on-press="$:doSomething()"/>
edit-select
in anobject-table
now supports passing the$object
parameter to theoptions
function attribute. This allows for generating dynamic options based on the specified object (table row).
Fixed:
A regression where
sidebar
would render blank when viewed on mobile devicesAn issue where an
object-list
component with anaction
caused the entire view or dialog body to not get rendered.
4.90.3:
Fixed:
A regression where the
dialog
component's validation would throw an error.A regression where
list-items
do not properly register when a template literal is present in thevalue
attribute.A memory leak caused by layer rendering.
The "Select language" sidebar item displaying, even when no additional languages are available for the app.
button
label alignment not being correctly applied if the label spans multiple lines.
4.90.2:
Fixed:
UI components inside a
dialog
body triggering validation on the entire view, instead of just on dialog.object-table
display cells having inconsistent padding.The
captureMedia()
method forcapture-photo
incorrectly throwing an "Invalid source" error.
4.90.1:
Fixed:
A regression with the
sidebar
component'son-press
function not being parsed correctly.A regression where
transform-value
parameters threw an error with anull
value.An issue with the NFC API interface.
4.90.0:
Added
View Templates, enabling developers to define a view XML template definition (
template-def
), and use it with thetemplate
component on views in their app. Learn how to use them here.Support for registering a shortcut (using the
shortcut
UI component orShortcutManager
in JS/TS) for the RealWear action button (with shortcut keybutton:rw_actionbutton
).Support for the
application/vnd.valvelink
mime type to upload.exp
files asAttachments
.
Improved
Underlying improvements to the
object-table
styling mechanism. This has no UI updates, but worth keeping an eye out for any edge cases or regressions on heavily-styled tables.TypeScript: As part of
runtime-build
version 2.4.5: When importing App Modules in a view, named imports are now possible, e.g.import { myFunction } from="~/lib/mylib"
Questions / Feedback 
Please share any questions or feedback about the features in Runtime version 4.90 via support@journeyapps.com or the developer forum. We'd love to hear from you.