Skip to main content
Version: 7.0.1

Release Notes, 7.0.1

🚧 Minimum required:

@smartface/native v5.0.2 🚀
Android -> v7.0.1 🚀
iOS -> v7.0.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

🆕 What's New

  • Feature: Added Fetch support to the native module. Fetch is a modern replacement for XMLHttpRequest.
  • Feature: [Android] Migration to Switch Material from Switch.
    • [Android / iOS] Added thumbOffColor and toggleOffColor property to the switch.
    • [Android] Deprecated the switch.android.thumbOffColor and switch.android.toggleOffColor properties.
  • Feature: [Android] Migrate Dialog Theme from Holo to Material
    • DialogStyle.ThemeNoHeaderBarWithOverscan deprecated.
danger

Migration to Switch Material from Switch breaks the backward compatibility. So you need to use @smartface/native v5.0.2 and Android/iOS 7.0.1 as minimum version.

🐞 Bug Fix

  • [Android] Fixed Assets folder inaccessible after the build
  • [Android] Event Triggers at the wrong page when modal page is open
  • [Android] Fix thumbOnColor & thumbOffColor issues
  • [Android] TextView doesnt scroll on android by default
  • [iOS] When assigned on bottomtabbar, badge is not shown on iOS
  • [iOS] ios & and thumbOnColor makes off thumb's color as well
  • [iOS] RowAnimation.AUTOMATIC crashes on iOS
  • [iOS] Textbox & MaterialTextBox cursor behavior is abnormal when set the textAligment mid-center
  • [iOS] MaterialTextBox onTextChanged doesn't trigger on iOS
  • Event Types as string do not appear on some components

Project Structure Changes

New Typing Changes on Modules

tsconfig Changes

In tsconfig.json:


{
"compilerOptions": {
"allowJs": true,
"checkJs": false,
"skipLibCheck": true,
"sourceMap": true,
"noEmit": false,
"target": "ES5",
"outDir": "./dist",
"moduleResolution": "Node",
"module": "CommonJS",
"resolveJsonModule": true,
"isolatedModules": false,
"esModuleInterop": true,
"baseUrl": "scripts",
"rootDir": "scripts",
"lib": ["ES2015", "ES2017"]
},
"exclude": ["./dist"],
"include": [
"./scripts",
"./scripts/**/*.json",
"./typings.d.ts",
"./scripts/node_modules/@smartface/native/**/index.d.ts",
"./scripts/node_modules/@smartface/native/.types/index.d.ts",
"./scripts/node_modules/@smartface/contx/index.d.ts",
"./scripts/node_modules/@smartface/styler/index.d.ts",
"./scripts/node_modules/@smartface/styling-context/index.d.ts"
]
}

typings.d.ts Changes

Remove everything from typings.d.ts from the project except custom declarations.

📑 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 new component (MaterialTextBox) to the list of available components.
  • Feature: Added Margin Padding GUI input to the Properties Panel
  • Feature: Added icons of aligment properties like a justify-content, align-self etc. to the Properties Panel
  • Feature: Added iOS simulator connection to the IDE (it requires iOS simulator to be installed on your machine)