Installation
This page describe how-to add mzfw to your ZeppOS application
project, or start a new one.
Start new project using zeusx
WIP
Connect mzfw to exiting ZeppOS (zeus) project
warning
mzfw_zeus supports only ZeppOS 1.0-targeting applications.
You can't use it inside projects with runtime.apiVersion >= 2 for
now. If you're starting a new project with support of modern Amazfit
smartwatches, consider to use zeusx & @zosx.
- Install latest version
mzfw_zeusinto your project. Command bellow will alias this package tomzfwfor better experience:
npm i --save-dev mzfw@npm:mzfw_zeus
- Connect polyfill's. Add this line to your
app.js:
import "mzfw/device_polyfill";
App({
// ...
});
- Copy/symlink asset files from
mzfwto your projects.
- Copy
node_modules/mzfw/assetstoassets/<your_target_name>/mzfw; - Copy
node_modules/mzfw/assets_rawtoassets/raw/mzfw;
- Now, you're ready to import & use features from
mzfwin your app.