Release Notes, 7.2.1
🚧 Minimum required:
@smartface/native v5.0.6 🚀
Android -> v7.2.1 🚀
iOS -> v7.2.1 🚀
Updated Modules
In order to fully migrate to the new version, you should update these packages:
- Builder -> 0.10.9
- Dispatcher -> Latest Version: 0.10.9
- Library Reader -> Latest Version: 0.10.9
- Marketplace Service -> Latest Version: 0.10.9
- TSC Watch -> Latest Version: 0.10.9
- 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.0.6
- Core -> Latest Version: 5.0.8
- Styling Context -> Latest Version: 5.0.8
- Mixins -> Latest version: 5.0.8
- Source-map -> Latest version: 5.0.8
- RTL -> Latest version: 5.0.8
- WebviewBridge -> Latest version: 5.0.8
- Security -> Latest version: 5.0.8
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
Changes in Android Dependencies
We have updated the Android dependencies to the latest versions. With this update, performance and stability of the applications have been improved, bugs have been fixed, and compatibility with the new Android versions has been ensured. Affected modules are as follows:
- VideoView
- MapView
- MaterialTextBox
- BottomSheet
- BottomTabbar
- TabbarItem
- Toast
- Switch
- Multimedia
- GifImageView
- ImageView
- BlurView
- WebSocket
- Http
- Xhr
- Location
- MapView
Permission
We have made changes to improve the user experience in using Permission API. We continue to support the legacy permission API.
New API | Legacy API | AndroidManifest Permission |
---|---|---|
Permissions.camera | Permissions.CAMERA | android.permission.CAMERA |
Permissions.location | Permissions.LOCATION | android.permission.ACCESS_FINE_LOCATION android.permission.ACCESS_COARSE_LOCATION |
Permissions.location.approximate | Permissions.ANDROID.ACCESS_COARSE_LOCATION | android.permission.ACCESS_COARSE_LOCATION |
Permissions.location.precise | Permissions.ANDROID.ACCESS_FINE_LOCATION | android.permission.ACCESS_FINE_LOCATION android.permission.ACCESS_COARSE_LOCATION |
Permissions.storage | #Android 13 and above #Android 12 and below | #Android 13 and above #Android 12 and below |
Permissions.storage.readImageAndVideo | #Android 13 and above #Android 12 and below | #Android 13 and above #Android 12 and below |
Permissions.storage.readAudio | #Android 13 and above #Android 12 and below | #Android 13 and above #Android 12 and below |
Permissions.android.bluetoothConnect | #Android 12 and above #Android 11 and below | #Android 12 and above #Android 11 and below |
Permissions.microphone | Permissions.ANDROID.RECORD_AUDIO | android.permission.RECORD_AUDIO |
Permissions.android.notification | #Android 13 and above | #Android 13 and above |
Permissions.android.phone | Permissions.ANDROID.READ_PHONE_STATE Permissions.ANDROID.CALL_PHONE Permissions.ANDROID.USE_SIP | android.permission.READ_PHONE_STATE android.permission.CALL_PHONE android.permission.USE_SIP |
Permissions.android.contact | Permissions.ANDROID.READ_CONTACTS Permissions.ANDROID.WRITE_CONTACTS Permissions.ANDROID.GET_ACCOUNTS | android.permission.READ_CONTACTS android.permission.WRITE_CONTACTS android.permission.GET_ACCOUNTS |
Permissions.android.sms | Permissions.ANDROID.SEND_SMS Permissions.ANDROID.READ_SMS Permissions.ANDROID.RECEIVE_SMS Permissions.ANDROID.RECEIVE_WAP_PUSH Permissions.ANDROID.RECEIVE_MMS | android.permission.SEND_SMS android.permission.READ_SMS android.permission.RECEIVE_SMS android.permission.RECEIVE_WAP_PUSH android.permission.RECEIVE_MMS |
New usage:
import Permission from "@smartface/native/device/permission";
import { Permissions } from "@smartface/native/device/permission/permission";
Permission.android.requestPermissions(Permissions.location.precise);
Old usage:
import Permission from "@smartface/native/device/permission";
import { Permissions } from "@smartface/native/device/permission/permission";
Permission.android.requestPermissions(Permissions.ANDROID.ACCESS_FINE_LOCATION);
Previously, then
was called even if the user denied permission.
Now if the user deny
the permission, catch will be called.
🆕 What's New
- Maintenance: [iOS] Minimum supported iOS version increased to iOS 13.
- Feature: [iOS] Ability to
maxLength
property ofTextBox
is added. - Feature: Ability to
iconSize
property ofBottomTabbar
is added. - Feature: Ability to
keyboardType
property ofAlertView
is added. - Deprecated [Android]
Textbox.android.maxLength
is deprecated. UseTextbox.maxLength
instead.
Note: From now, as minimum version, project builds requires to run on Xcode 13
🐞 Bug Fix
- Fixed [Android] Cannot set empty-title in
BottomTabbarItem
- Fixed [Android] Type Issues in
Location
module - Fixed [Android]
Timeout
property ofHttp
is not working - Fixed [Android]
WebView.onChangedUrl
won't be work as expected - Fixed [Android]
Header
property ofServiceCall
is not working - Fixed [Android]
pickFromMultipleFromGallery
method ofMultimedia
is not working with new photo picker - Fixed [iOS]
textColor
property ofTextView
is not working - Fixed [iOS]
ImageView.loadFromUrl
decode image issue has been fixed - Fixed [iOS]
transparent
property ofHeaderbar
is not working - Fixed [iOS]
itemColor
ofBottomtabbar
issue - Fixed [iOS]
icon
ofTabbarItem
seems non-scaled (original image) size - Fixed [iOS] The permission popup didn't appear when requesting permission from the user
- Fixed [iOS]
fontSize
property ofTextView
changes unexpectedly - Fixed [iOS] If the layout changes while the
Keyboard
indicating, an unexpected black area appears on the screen - Fixed [iOS] If
BottomSheet
is closed by pressing empty space,route
breaks down - Fixed [iOS]
Page.iOS.LargeTitleDisplayMode
is not working - Fixed [Native]
setFullScreenButtonImage
method ofVideoView
is incorrect type of method
📑 Documentation
The following docs are updated, you can have a look to see what's new:
- Permission usages have been changed.
- Added ImageFillType Picker to the documentation
- Added iconSize property to the documentation
- Added Android videoview fullscreen support to the documentation
- Added rootDetected to the documentation
- Fixed mistaken xml code in splash to the documentation
- Added some HTML issue and workaround in textview to the documentation
- Added Router Explorer to the documentation
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: Added Bottomtabbar component to Smartface IDE
- Feature: Added Tabbar Item component to Smartface IDE
- Feature: Added feature to extract font glyph as png
- Feature: Added Router explorer to Smartface IDE
🐞 Bug Fix
- Fixed Cannot go to method reference with cmd+enter
- Fixed Bottom panel tabs go fullscreen when the user double click on it
- Fixed UI component tabs (built-in & custom) come with the wrong sizing
- Fixed The file search bar results don't sort files on relevance