Skip to main content
Version: 7.0.0

Release Notes, 6.17.1-beta.2

๐Ÿšง Minimum required:

@smartface/native v4.4.1-beta.2 ๐Ÿš€
Android -> v6.17.1-beta.2 ๐Ÿš€
iOS -> v6.17.1-beta.2 ๐Ÿš€

Updated Modulesโ€‹

In order to fully migrate to the new version, you should update these packages:

For further information about versions, check the boilerplate project of Smartface for updated versions and match yours with the new ones:

GitHub - smartface/helloworld-boilerplate
Contribute to smartface/helloworld-boilerplate development by creating an account on GitHub.
GitHub - smartface/helloworld-boilerplate favicon https://github.com/smartface/helloworld-boilerplate
GitHub - smartface/helloworld-boilerplate

Changes on the Project Sideโ€‹

  • With the new beta release, we can now get rid of the error-by-sourcemap.ts file under the scripts/ folder. To do this, delete the error-by-sourcemap.ts file and add the new @smartface/source-map module to your project as a dependency.
# Script Folder
yarn add @smartface/source-map
  • The following packages can now be removed from the dependencies under the scripts/package.json file. Usage won't be affected in any way.

    • @smartface/contx
    • @smartface/styler
    • @smartface/core
  • If you added the new @smartface/source-map dependency to your project, the source-map dependency under the scripts/package.json file can now be removed too.

Styling-Context Changesโ€‹

To add your newly-created and styled view's as a child to a ViewGroup from the code, styleableComponentMixin and styleableContainerComponentMixin have been added to the styling-context.

Usage:

import PageSampleDesign from "generated/pages/pageSample";
import FlexLayout from "@smartface/native/ui/flexlayout";
import Button from "@smartface/native/ui/button";
import { withDismissAndBackButton } from "@smartface/mixins";
import { Route, Router } from "@smartface/router";
import {
styleableComponentMixin,
styleableContainerComponentMixin
} from "@smartface/styling-context";

class StyleableButton extends styleableComponentMixin(Button) {} // For a View, styleableComponentMixin is used.
class StyleableFlexLayout extends styleableContainerComponentMixin(
FlexLayout
) {} // For a ViewGroup, styleableContainerComponentMixin is used.

export default class Page1 extends withDismissAndBackButton(PageSampleDesign) {
myFlexLayout: StyleableFlexLayout;
myButton: StyleableButton;
constructor(private router?: Router, private route?: Route) {
super({});
}

createComponents() {
this.myFlexLayout = new StyleableFlexLayout();
this.myButton = new StyleableButton();
this.myFlexLayout.addChild(this.myButton, "uniqueButtonID", ".sf-button");
}

onShow() {
super.onShow();
}

onLoad() {
super.onLoad();
this.createComponents();
}
}

IDE Changesโ€‹

IDE Releases are held in its respective place. You can reach it under:

Releases ยท smartface/smartface-ide-releases
Smartface ide releases. Contribute to smartface/smartface-ide-releases development by creating an account on GitHub.
Releases ยท smartface/smartface-ide-releases favicon https://github.com/smartface/smartface-ide-releases/releases
Releases ยท smartface/smartface-ide-releases

Native and Framework Changesโ€‹

๐Ÿ†• What's Newโ€‹

  • Feature: Added deviceType to System module. From now on, you can get running device information type (tablet, phone etc.) via System.deviceType
  • Feature: Added Toast component. From now on, messages can be shown for a period of time on the screen.
Toast

iOS Changesโ€‹

  • Feature: Emulator app version added to the settings page. To reach out you can go to Settings > Smartface.

Android Changesโ€‹

  • Feature: Added manual cache invalidation for ImageView. Memory and disk caches can be invalidate via unique cache signature parameter on loadFromUrl, fetchFromUrl and loadFromFile.
  • Improvement: HeaderBarItem's color now overrides the HeaderBar's itemColor property.
  • Improvement: Syntax and runtime errors on Javascript are handled more properly on the Java/C++ layer to prevent crashes on the app's startup.

๐Ÿž Bug Fixโ€‹

  • Fixed unexpected behaviour on clear action for iOS Emulator.
  • Fixed fade animation on images while scrolling through listview items for iOS.
  • Fixed SearchView background color assignment with alpha value for iOS.
  • Fixed alerts getting closed suddenly on iOS.
  • Fixed InputView opens keyboard twice some cases.
  • Fixed the fetchfromurl fails if no onFailure method is defined on Android.
  • Fixed some parameters of fetchFromUrl method are not optional on Android.
  • Fixed the shimmering stops at a random place when the stopShimmering method gets called on Android.

๐Ÿ“‘ Documentationโ€‹

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