mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-11-23 15:20:34 +00:00
IssueNo: #I5Y6PR
Description: 使用UIAbility Sig: SIG_ApplicationFramework Feature or Bugfix: Feature Binary Source: No Signed-off-by: yangzk <yangzhongkai@huawei.com> Change-Id: If595c1028cdb63e05d111309033b9269ea48cf60
This commit is contained in:
parent
ea2e283a6b
commit
8fcab90168
@ -16,8 +16,8 @@ import("//foundation/ability/ability_runtime/ability_runtime.gni")
|
||||
|
||||
group("napi_packages") {
|
||||
deps = [
|
||||
"${ability_runtime_napi_path}/ability:ability",
|
||||
"${ability_runtime_napi_path}/ability:ability_napi",
|
||||
"${ability_runtime_napi_path}/ability:uiability",
|
||||
"${ability_runtime_napi_path}/ability_constant:abilityconstant",
|
||||
"${ability_runtime_napi_path}/ability_constant:abilityconstant_napi",
|
||||
"${ability_runtime_napi_path}/ability_context:abilitycontext_napi",
|
||||
|
@ -59,7 +59,7 @@ ohos_ability_napi("ability_napi") {
|
||||
relative_install_dir = "module/application"
|
||||
}
|
||||
|
||||
ohos_ability_napi("ability") {
|
||||
ohos_ability_napi("uiability") {
|
||||
relative_install_dir = "module/app/ability"
|
||||
defines = [ "ENABLE_ERRCODE" ]
|
||||
}
|
||||
|
@ -22,11 +22,11 @@ extern const char _binary_ability_abc_end[];
|
||||
|
||||
#ifdef ENABLE_ERRCODE
|
||||
extern "C" __attribute__((constructor))
|
||||
void NAPI_app_ability_Ability_AutoRegister()
|
||||
void NAPI_app_ability_UIAbility_AutoRegister()
|
||||
{
|
||||
auto moduleManager = NativeModuleManager::GetInstance();
|
||||
NativeModule newModuleInfo = {
|
||||
.name = "app.ability.Ability",
|
||||
.name = "app.ability.UIAbility",
|
||||
.fileName = "app/ability/libability.so/ability.js",
|
||||
};
|
||||
|
||||
@ -34,7 +34,7 @@ void NAPI_app_ability_Ability_AutoRegister()
|
||||
}
|
||||
|
||||
extern "C" __attribute__((visibility("default")))
|
||||
void NAPI_app_ability_Ability_GetJSCode(const char **buf, int *bufLen)
|
||||
void NAPI_app_ability_UIAbility_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_ability_js_start;
|
||||
@ -47,7 +47,7 @@ void NAPI_app_ability_Ability_GetJSCode(const char **buf, int *bufLen)
|
||||
|
||||
// ability JS register
|
||||
extern "C" __attribute__((visibility("default")))
|
||||
void NAPI_app_ability_Ability_GetABCCode(const char **buf, int *buflen)
|
||||
void NAPI_app_ability_UIAbility_GetABCCode(const char **buf, int *buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_ability_abc_start;
|
||||
|
Loading…
Reference in New Issue
Block a user