Release Notes, 7.3.1
🚧 Minimum required:
@smartface/native v5.1.1 🚀
Android -> v7.3.1 🚀
iOS -> v7.3.1 🚀
Updated Modules
In order to fully migrate to the new version, you should update these packages:
- Builder -> 0.12.0
- Dispatcher -> Latest Version: 0.12.0
- Library Reader -> Latest Version: 0.12.0
- Marketplace Service -> Latest Version: 0.12.0
- TSC Watch -> Latest Version: 0.12.0
- You have to restart builder after updating the dependencies.
- To restart the builder, select Run Builder from the Run menu.
In root
of the project run the following command:
yarn install
- Native -> Latest Version: 5.1.1
- Core -> Latest Version: 5.1.3
- Styling Context -> Latest Version: 5.1.3
- Mixins -> Latest version: 5.1.3
- Source-map -> Latest version: 5.1.3
- RTL -> Latest version: 5.1.3
- WebviewBridge -> Latest version: 5.1.3
- Security -> Latest version: 5.1.3
In /scripts
folder run the following command:
yarn install
For further information about versions, check the boilerplate project of Smartface for updated versions and match yours with the new ones:
https://github.com/smartface/helloworld-boilerplate
Native and Framework Changes
Save to Files on Android
With this new feature, users can easily save files directly from our app to their device's internal or external storage. This means they can share their files easily.
Here's a code example in JavaScript for the Save to Files
feature on Android using Smartface's Share
module:
import File from "@smartface/native/io/file";
import { Share } from "@smartface/native/global";
const file = new File({ path: "images://smartface.png" });
Share.android.saveToFiles(file, this);
We then create a new File
object using the file path images://smartface.png
.
Next, we call the Share.android.saveToFiles()
method with the File
object and the current page (this
) as parameters. This will save the file to the user's device storage and allow them to share it easily.
As with the previous example, this is just a basic example and you may need to modify it to fit your specific use case.
🆕 What's New
- Maintenance: [Android] The default value of visibility for
Badge
property ofTabbar
has been changed tofalse
. - Maintenance: [Android] The default value for
maxLines
property ofLabel
has been changed to1
. - Maintenance: [iOS] The default value of visibility for
refreshEnabled
property ofGridView
has been changed totrue
. - Feature: [Android] The
android.includeFontPadding
property has been added toLabel
. - Feature: [iOS] Custom sound support has been added to
Push Notification
. - Feature: Added
borderRadiusEdges
property to components that haveborderRadius
property. - Deprecated: The
autoSizeEnabled
property ofScrollView
has been deprecated. - Deprecated:
individual borderRadius
has been deprecated. UseborderRadiusEdges
instead.
🐞 Bug Fix
- Fixed [Android] The obfuscation does not work if package name is different from the io.smartface.*.
- Fixed [iOS] An error is thrown when the
Font
value is not entered inBadge
propery ofTabbar
. - Fixed [iOS]
TextView
does not appear when add it dynamically inListView
. - Fixed [iOS] When the
BottomSheet
is opened, the display of theListView
on back page is distorted. - Fixed [iOS] We fixed an issue on iOS where using the
restart
method of theApplication
was causing the app to freeze. - Fixed [iOS]
exit
method ofApplication
is throwing an error. - Fixed [iOS] The
Icon
resolution is not correct when theIcon
is added to theTabbar
. - Fixed [iOS] Even if the device is cleared,
setInterval
method is still working. - Fixed [iOS] Shadow disappears when the state of
switch
changes. - Fixed [iOS] When label's maxLine value is set to null or undefined, it should take the default value.
- Fixed If the
borderRadius
value is defined after themaskedBorder
, theborderRadius
value is not applied.
📑 Documentation
The following docs are updated, you can have a look to see what's new:
- SearchView
- Added the use of Styles for iOS.
- Push Notification
- Added the use of
Custom Sound
for iOS.
- Added the use of
- Page
- Added the use of
padding
.
- Added the use of
- GridView
- Added the behavior of
refreshEnabled
property for horizontal orientation.
- Added the behavior of
IDE Changes
IDE Releases are held in its respective place. You can reach it under:
https://github.com/smartface/smartface-ide-releases/releases
For IDE Documentation & Usage, you can refer to this documentation:
UI Editor BasicsAutosizing for Components
We're excited to announce that Smartface IDE now supports autosizing for components! With this feature, you no longer need to manually specify the height and width of your components. Instead, Smartface IDE will automatically adjust the size of the component based on its content and layout constraints.
Here are some of the benefits of using autosizing for components:
- Improved visual design: Components will now adapt to the content they hold, resulting in a cleaner and more aesthetically pleasing interface.
- Reduced development time: You no longer need to spend time manually adjusting the size of each component. Instead, the framework will handle it for you.
We hope you enjoy this new feature and look forward to your feedback. As always, if you have any questions or issues, please don't hesitate to contact our support team.
🆕 What's New
- Feature: Added pagination to
Glyphs Picker
. - Feature: Added
hint
property of theTextArea
. - Feature: Added hint property when displaying CombinedStyle.
- Feature: Added reference number to track object in the
JSON Viewer
. - Feature: Added clone from git option when creating a new project.
- Maintenance: When
StackRouter
is added to theRouter Explorer
, it includes default theRoute
in theRouter Explorer
tree. - Maintenance: Performans improvements have been made adding class.
- Maintenance: All icons come by default in the
Glyphs Picker
. - Deprecated:
Font Size
,Font Family
andcolor
values forTextView
have been removed from class.
🐞 Bug Fix
- Fixed It not possible to changed the
color
of theTextView
component's text in theLibrary
. - Fixed Keyboard shortcuts are not working in the
Router Explorer
. - Fixed
backgroundColor
value of theScrollView
layout is not applied. - Fixed When the
align
property of theScrollView
changes, theScrollView
is not updated. - Fixed
Router Explorer
is not updated when thePage
added. - Fixed Variables part in
ColorPicker
is not working in theTextView
. - Fixed Behavior does not cancel when adding component to the
Page
. - Fixed Keyboard shortcuts are not working in the
TextView
. - Fixed Image resoluton is not correct when the
ImageView
is added to thePage
. - Fixed Does not draw the
border
to theSearchView
component. - Fixed An error is thrown when selecting
borderColor
from variables in theTextbox
. - Fixed When the
color
property of theStatusbar
is changed on thePage
, it changed accross the application. - Fixed Customheader's
backgroundColor
is not applied.