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:
- Builder -> Minimum Version: 0.9.1
- Dispatcher -> Minimum version: 0.9.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 -> Minimum Version: 5.0.2
- Styling Context -> Minimum version: 5.0.3
- Mixins -> Minimum version: 5.0.3
- Source-map -> Minimum version: 5.0.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:
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:
- BarcodeScanner Documentation
- ListViewIndex
- SpriteView
- ZoomableImageView
- Router
- Emulator Clean Start
- Android Emulator Widget
IDE Changesโ
IDE Releases are held in its respective place. You can reach it under:
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)