mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
2822abd277
Signed-off-by: dy_study <dingyao5@huawei.com> Change-Id: I8b357b6c346f739358fbaab12e3133ef28ed17f0
33 lines
1.0 KiB
C++
33 lines
1.0 KiB
C++
/*
|
|
* Copyright (c) 2022 Huawei Device Co., Ltd.
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#include "js_module_searcher.h"
|
|
|
|
#include "file_path_utils.h"
|
|
#include "hilog_wrapper.h"
|
|
|
|
namespace OHOS {
|
|
namespace AbilityRuntime {
|
|
std::string JsModuleSearcher::GetBundleName() const
|
|
{
|
|
return bundleName_;
|
|
}
|
|
|
|
std::string JsModuleSearcher::operator()(const std::string& curJsModulePath, const std::string& newJsModuleUri) const
|
|
{
|
|
return NormalizeUri(bundleName_, curJsModulePath, newJsModuleUri);
|
|
}
|
|
} // namespace AbilityRuntime
|
|
} // namespace OHOS
|