!63 【mgr】特性裁剪使用部件名称作为前缀

Merge pull request !63 from WoHoo/master
This commit is contained in:
openharmony_ci 2024-07-03 03:51:32 +00:00 committed by Gitee
commit 73a488f5d6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 5 additions and 3 deletions

View File

@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
declare_args() {
cut_link_convert = false
app_domain_verify_cut_link_convert = false
}
ability_runtime_napi_path =

View File

@ -13,7 +13,7 @@
"name": "app_domain_verify",
"subsystem": "bundlemanager",
"syscap": [],
"features": [],
"features": ["app_domain_verify_cut_link_convert"],
"adapted_system_type": [
"standard"
],

View File

@ -47,7 +47,7 @@ config("app_domain_verify_agent_client_config") {
"-ffunction-sections",
"-Os",
]
if (cut_link_convert) {
if (app_domain_verify_cut_link_convert) {
cflags += [ "-D_CUT_LINK_CONVERT_" ]
}
cflags_cc = [ "-Os" ]

View File

@ -26,10 +26,12 @@ namespace AppDomainVerify {
std::mutex AppDomainVerifyMgrClient::proxyLock_;
sptr<IAppDomainVerifyMgrService> AppDomainVerifyMgrClient::appDomainVerifyMgrServiceProxy_;
AppDomainVerifyMgrClient::StaticDestoryMonitor AppDomainVerifyMgrClient::staticDestoryMonitor_;
#ifndef _CUT_LINK_CONVERT_
static const std::string SCHEME_HTTPS("https");
static const char* PATTEN = "^[a-zA-Z0-9_-]{1,99}$";
constexpr int REG_ERR_BUF = 1024;
constexpr int NM = 10;
#endif
AppDomainVerifyMgrClient::AppDomainVerifyMgrClient()
{
APP_DOMAIN_VERIFY_HILOGD(APP_DOMAIN_VERIFY_MGR_MODULE_CLIENT, "new instance created.");