add JS Interface

Signed-off-by: toutes <zhaoruiyuan2@huawei.com>
This commit is contained in:
toutes
2021-09-10 22:13:55 +08:00
parent c26b35ffdd
commit bbc7fc692c
2 changed files with 10 additions and 1 deletions
+5 -1
View File
@@ -86,8 +86,12 @@
/**
* support device API for JS
*/
#define FEATURE_MODULE_DEVICE
#define FEATURE_MODULE_BATTERY
/**
* support device API for JS
*/
#define FEATURE_MODULE_DEVICE
/**
* timer module
*/
@@ -47,6 +47,11 @@
*/
#define FEATURE_TERMINATE_ABILITY
/**
* support device API for JS
*/
//#define FEATURE_MODULE_BATTERY
/**
* support screenOnVisible() API from JS
*/