mirror of
https://gitee.com/openharmony/bundlemanager_bundle_framework
synced 2024-11-27 01:11:15 +00:00
commit
aeabd1adba
@ -3349,14 +3349,6 @@ void CreateProfileTypeObject(napi_env env, napi_value value)
|
||||
NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, value, "INTENT_PROFILE", nIntentProfile));
|
||||
}
|
||||
|
||||
void CreateApplicationReservedFlagObject(napi_env env, napi_value value)
|
||||
{
|
||||
napi_value nEncryptedApplication;
|
||||
NAPI_CALL_RETURN_VOID(env, napi_create_int32(
|
||||
env, static_cast<int32_t>(ApplicationReservedFlag::ENCRYPTED_APPLICATION), &nEncryptedApplication));
|
||||
NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, value, "ENCRYPTED_APPLICATION", nEncryptedApplication));
|
||||
}
|
||||
|
||||
ErrCode InnerGetAppProvisionInfo(
|
||||
const std::string &bundleName, int32_t userId, AppProvisionInfo &appProvisionInfo)
|
||||
{
|
||||
|
@ -276,7 +276,6 @@ void CreateModuleTypeObject(napi_env env, napi_value value);
|
||||
void CreateBundleTypeObject(napi_env env, napi_value value);
|
||||
void CreateCompatiblePolicyObject(napi_env env, napi_value value);
|
||||
void CreateProfileTypeObject(napi_env env, napi_value value);
|
||||
void CreateApplicationReservedFlagObject(napi_env env, napi_value value);
|
||||
void RegisterClearCacheListener();
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
|
@ -82,10 +82,6 @@ static napi_value BundleManagerExport(napi_env env, napi_value exports)
|
||||
NAPI_CALL(env, napi_create_object(env, &nProfileType));
|
||||
CreateProfileTypeObject(env, nProfileType);
|
||||
|
||||
napi_value nApplicationReservedFlag = nullptr;
|
||||
NAPI_CALL(env, napi_create_object(env, &nApplicationReservedFlag));
|
||||
CreateApplicationReservedFlagObject(env, nApplicationReservedFlag);
|
||||
|
||||
napi_property_descriptor desc[] = {
|
||||
DECLARE_NAPI_FUNCTION("getBundleArchiveInfo", GetBundleArchiveInfo),
|
||||
DECLARE_NAPI_FUNCTION("getBundleArchiveInfoSync", GetBundleArchiveInfoSync),
|
||||
@ -146,7 +142,6 @@ static napi_value BundleManagerExport(napi_env env, napi_value exports)
|
||||
DECLARE_NAPI_FUNCTION("verifyAbc", VerifyAbc),
|
||||
DECLARE_NAPI_PROPERTY("ProfileType", nProfileType),
|
||||
DECLARE_NAPI_FUNCTION("getRecoverableApplicationInfo", GetRecoverableApplicationInfo),
|
||||
DECLARE_NAPI_PROPERTY("ApplicationReservedFlag", nApplicationReservedFlag),
|
||||
DECLARE_NAPI_FUNCTION("setAdditionalInfo", SetAdditionalInfo),
|
||||
};
|
||||
|
||||
|
@ -1249,11 +1249,6 @@ void CommonFunc::ConvertApplicationInfo(napi_env env, napi_value objAppInfo, con
|
||||
&nAppProvisionType));
|
||||
NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, objAppInfo, "appProvisionType", nAppProvisionType));
|
||||
|
||||
napi_value nApplicationReservedFlag;
|
||||
NAPI_CALL_RETURN_VOID(env, napi_create_uint32(env, appInfo.applicationReservedFlag, &nApplicationReservedFlag));
|
||||
NAPI_CALL_RETURN_VOID(
|
||||
env, napi_set_named_property(env, objAppInfo, "applicationReservedFlag", nApplicationReservedFlag));
|
||||
|
||||
napi_value nIsSystemApp;
|
||||
NAPI_CALL_RETURN_VOID(env, napi_get_boolean(env, appInfo.isSystemApp, &nIsSystemApp));
|
||||
NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, objAppInfo, "systemApp", nIsSystemApp));
|
||||
|
Loading…
Reference in New Issue
Block a user