Skip to main content
Version: 7.2.1

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:


  • 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

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:

Permission

We have made changes to improve the user experience in using Permission API. We continue to support the legacy permission API.

New APILegacy APIAndroidManifest Permission
Permissions.cameraPermissions.CAMERAandroid.permission.CAMERA
Permissions.locationPermissions.LOCATIONandroid.permission.ACCESS_FINE_LOCATION
android.permission.ACCESS_COARSE_LOCATION
Permissions.location.approximatePermissions.ANDROID.ACCESS_COARSE_LOCATIONandroid.permission.ACCESS_COARSE_LOCATION
Permissions.location.precisePermissions.ANDROID.ACCESS_FINE_LOCATIONandroid.permission.ACCESS_FINE_LOCATION
android.permission.ACCESS_COARSE_LOCATION
Permissions.storage

#Android 13 and above
Permissions.ANDROID.READ_MEDIA_IMAGES
Permissions.ANDROID.READ_MEDIA_AUDIO
Permissions.ANDROID.READ_MEDIA_VIDEO

#Android 12 and below
Permissions.ANDROID.READ_EXTERNAL_STORAGE
Permissions.ANDROID.WRITE_EXTERNAL_STORAGE

#Android 13 and above
android.permission.READ_MEDIA_IMAGES
android.permission.READ_MEDIA_AUDIO
android.permission.READ_MEDIA_VIDEO

#Android 12 and below
android.permission.READ_EXTERNAL_STORAGE
android.permission.WRITE_EXTERNAL_STORAGE

Permissions.storage.readImageAndVideo

#Android 13 and above
Permissions.ANDROID.READ_MEDIA_IMAGES
Permissions.ANDROID.READ_MEDIA_VIDEO

#Android 12 and below
Permissions.ANDROID.READ_EXTERNAL_STORAGE
Permissions.ANDROID.WRITE_EXTERNAL_STORAGE

#Android 13 and above
android.permission.READ_MEDIA_IMAGES
android.permission.READ_MEDIA_VIDEO

#Android 12 and below
android.permission.READ_EXTERNAL_STORAGE
android.permission.WRITE_EXTERNAL_STORAGE

Permissions.storage.readAudio

#Android 13 and above
Permissions.ANDROID.READ_MEDIA_AUDIO

#Android 12 and below
Permissions.ANDROID.READ_EXTERNAL_STORAGE
Permissions.ANDROID.WRITE_EXTERNAL_STORAGE

#Android 13 and above
android.permission.READ_MEDIA_AUDIO

#Android 12 and below
android.permission.READ_EXTERNAL_STORAGE
android.permission.WRITE_EXTERNAL_STORAGE

Permissions.android.bluetoothConnect

#Android 12 and above
Permissions.ANDROID.BLUETOOTH_CONNECT

#Android 11 and below
Permissions.ANDROID.BLUETOOTH

#Android 12 and above
android.permission.BLUETOOTH_CONNECT

#Android 11 and below
android.permission.BLUETOOTH

Permissions.microphonePermissions.ANDROID.RECORD_AUDIOandroid.permission.RECORD_AUDIO
Permissions.android.notification

#Android 13 and above
Permissions.ANDROID.POST_NOTIFICATIONS

#Android 13 and above
android.permission.POST_NOTIFICATIONS

Permissions.android.phonePermissions.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.contactPermissions.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.smsPermissions.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);
info

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 of TextBox is added.
  • Feature: Ability to iconSize property of BottomTabbar is added.
  • Feature: Ability to keyboardType property of AlertView is added.
  • Deprecated [Android] Textbox.android.maxLength is deprecated. Use Textbox.maxLength instead.
caution

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 of Http is not working
  • Fixed [Android] WebView.onChangedUrl won't be work as expected
  • Fixed [Android] Header property of ServiceCall is not working
  • Fixed [Android] pickFromMultipleFromGallery method of Multimedia is not working with new photo picker
  • Fixed [iOS] textColor property of TextView is not working
  • Fixed [iOS] ImageView.loadFromUrl decode image issue has been fixed
  • Fixed [iOS] transparent property of Headerbar is not working
  • Fixed [iOS] itemColor of Bottomtabbar issue
  • Fixed [iOS] icon of TabbarItem seems non-scaled (original image) size
  • Fixed [iOS] The permission popup didn't appear when requesting permission from the user
  • Fixed [iOS] fontSize property of TextView 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 of VideoView is incorrect type of method

📑 Documentation

The following docs are updated, you can have a look to see what's new:

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