mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 12:43:16 -04:00
IssueNo:#I5LTVG
Signed-off-by: zhoushicheng <zhoushicheng2@huawei.com> Change-Id: I46199b1274903bbe4e05da1eb98a99480980b9b1
This commit is contained in:
+6
-1
@@ -12,7 +12,12 @@
|
||||
"component": {
|
||||
"name": "ability_runtime",
|
||||
"subsystem": "ability",
|
||||
"syscap": [],
|
||||
"syscap": [
|
||||
"SystemCapability.Ability.AbilityRuntime.Core",
|
||||
"SystemCapability.Ability.AbilityRuntime.FAModel",
|
||||
"SystemCapability.Ability.AbilityRuntime.AbilityCore",
|
||||
"SystemCapability.Ability.AbilityRuntime.Mission"
|
||||
],
|
||||
"features": [
|
||||
"ability_runtime_graphics",
|
||||
"ability_runtime_power"
|
||||
|
||||
@@ -122,7 +122,6 @@ public:
|
||||
private:
|
||||
sptr<OHOS::AppExecFwk::IAppMgr> appManager_ = nullptr;
|
||||
sptr<OHOS::AAFwk::IAbilityManager> abilityManager_ = nullptr;
|
||||
sptr<JSApplicationStateObserver> observer = nullptr;
|
||||
|
||||
NativeValue* OnRegisterApplicationStateObserver(NativeEngine& engine, NativeCallbackInfo& info)
|
||||
{
|
||||
@@ -139,9 +138,7 @@ private:
|
||||
static int64_t serialNumber = 0;
|
||||
std::vector<std::string> bundleNameList;
|
||||
// unwarp observer
|
||||
if (observer == nullptr) {
|
||||
observer = new JSApplicationStateObserver(engine);
|
||||
}
|
||||
sptr<JSApplicationStateObserver> observer = new JSApplicationStateObserver(engine);
|
||||
observer->SetJsObserverObject(info.argv[INDEX_ZERO]);
|
||||
if (info.argc == ARGC_TWO) {
|
||||
AppExecFwk::UnwrapArrayStringFromJS(reinterpret_cast<napi_env>(&engine),
|
||||
|
||||
+3
-1
@@ -12,7 +12,9 @@
|
||||
"component": {
|
||||
"name": "ability_tools",
|
||||
"subsystem": "ability",
|
||||
"syscap": [],
|
||||
"syscap": [
|
||||
"SystemCapability.Ability.AbilityTools.AbilityAssistant"
|
||||
],
|
||||
"features": [],
|
||||
"adapted_system_type": [
|
||||
"standard"
|
||||
|
||||
Reference in New Issue
Block a user