mirror of
https://gitee.com/openharmony/appexecfwk_standard
synced 2024-12-12 15:25:59 +00:00
Delete undefine item
Signed-off-by: hanhaibin <hanhaibin@huawei.com>
This commit is contained in:
parent
99e1cf81bd
commit
2945d4c380
@ -35,13 +35,6 @@ NativeValue* CreateJsHapModuleInfo(NativeEngine& engine, AppExecFwk::HapModuleIn
|
||||
// object->SetProperty("srcPath", CreateJsValue(engine, hapModuleInfo.srcPath)); // d.ts no have
|
||||
object->SetProperty("supportedModes", CreateJsValue(engine, hapModuleInfo.supportedModes));
|
||||
|
||||
// At present, the C++ data structure does not support the following structures, so pass in empty
|
||||
NativeValue* nullValue = nullptr;
|
||||
object->SetProperty("descriptionId", nullValue);
|
||||
object->SetProperty("labelId", nullValue);
|
||||
object->SetProperty("iconId", nullValue);
|
||||
object->SetProperty("installationFree", engine.CreateBoolean(false));
|
||||
|
||||
NativeValue *capArrayValue = engine.CreateArray(hapModuleInfo.reqCapabilities.size());
|
||||
NativeArray *capArray = ConvertNativeValueTo<NativeArray>(capArrayValue);
|
||||
if (capArray != nullptr) {
|
||||
|
Loading…
Reference in New Issue
Block a user