Release Notes, 7.3.3
π§ Minimum required:
@smartface/native v5.1.4 π
Android -> v7.3.3 π
iOS -> v7.3.3 π
Smartface IDE -> 0.13.0 π
Updated Modulesβ
In order to fully migrate to the new version, you should update these packages:
- Builder -> 0.12.1
- Dispatcher -> Latest Version: 0.12.1
- Library Reader -> Latest Version: 0.12.1
- Marketplace Service -> Latest Version: 0.12.1
- TSC Watch -> Latest Version: 0.12.1
- 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.4
- Core -> Latest Version: 5.1.7
- Styling Context -> Latest Version: 5.1.7
- Mixins -> Latest version: 5.1.7
- Source-map -> Latest version: 5.1.7
- RTL -> Latest version: 5.1.7
- WebviewBridge -> Latest version: 5.1.7
- Security -> Latest version: 5.1.7
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β
Added Calendar Event Moduleβ
We can now add events to the native calendar. Below is an example code snippet:
import CalendarEvent from "@smartface/native/device/calendarevent";
CalendarEvent.presentEventCreatingDialog({
title: "Event Title",
description: "Event Description",
location: "Ankara, Etimesgut, TΓΌrkiye",
startDate: "2023-05-26T07:10:42.616+03:00",
endDate: "2023-05-26T13:30:42.616+03:00",
allDay: false,
});
To use this module on iOS, you need to request permission.
Custom Sound for Push Notifications on Androidβ
To add a custom sound to Push Notifications in Android, you need to create a notification channel. You can also delete this channel if needed. Below is an example code snippet:
import { Notifications } from "@smartface/native/global";
this.btnCreateNotificationChannel.on("press", () => {
Notifications.android.createNotificationChannel({
id: "101",
name: "name",
description: "description",
sound: "sound",
});
});
this.btnDeleteNotificationChannel.on("press", () => {
Notifications.android.deleteNotificationChannel("101");
});
Please add the sound
file to the config/resources
directory.
When sending a notification, you need to provide the channel ID.
curl --location 'https://fcm.googleapis.com/fcm/send' \
--header 'Content-Type: application/json' \
--header 'Authorization: key=YOUR_KEY' \
--data '{
"to":"TOKEN",
"notification": {
"title": " This is my title new ",
"body": " This is the body of my message ",
"android_channel_id": "101"
}
}'
When obtaining a build, it is necessary to update the CLI version to 7.2.0
.
π What's Newβ
- Maintenance: [Android] The default value for
imageFillType
property ofImageView
has been changed toNORMAL
. - Maintenance: [Android] The
Share
module API has been updated. - Feature: [Android] An API has been provided for Custom Notification Sound.
- Feature: The
CalendarEvent
module has been added.
π Bug Fixβ
- Fixed [Android] The
systemIcon
property ofTabbarItem
component does not work. - Fixed [Android] When the ImageView.image is assigned to another ImageView, it throws an error.
- Fixed [Android] Sometimes, the application crashes when the
onOrientationChange
method is triggered. - Fixed [iOS]
pagination
property ofGridView
does not provide smooth functionality when scrolling to the right. - Fixed [iOS] If the
backgroundColor
value ofbadge
is assigned after thetext
, thebackgroundColor
value will not be applied. - Fixed [iOS] If a
gif
added toGifImageView
usingloadFromUrl
orfetchFromUrl
methods, the methods ofGifImageView
will not work.(Such asstartAnimation
,stopAnimation
). - Fixed [iOS] In the
ImageView
, thefetchFromUrl
method assigns the image without waiting for theonSuccess
callback to execute. - Fixed Unable to change the
font
property ofTabbarItem
component.
π Documentationβ
The following docs are updated, you can have a look to see what's new:
The code examples in the following links have been updated.
A info has been added for the "tintColor" property.
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 Basicsπ What's Newβ
- Feature: The
dependency manager panel
has been added.
π Bug Fixβ
- Fixed The
imageView
normal filltype handling