1 /* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #include "core/common/dynamic_module_helper.h" 17 18 namespace OHOS::Ace { 19 class JsonValue; 20 GetInstance()21DynamicModuleHelper& DynamicModuleHelper::GetInstance() 22 { 23 static DynamicModuleHelper instance; 24 return instance; 25 } 26 DynamicModuleHelper()27DynamicModuleHelper::DynamicModuleHelper() {} 28 ~DynamicModuleHelper()29DynamicModuleHelper::~DynamicModuleHelper() {} 30 GetLoaderByName(const char * name)31std::unique_ptr<ComponentLoader> DynamicModuleHelper::GetLoaderByName(const char* name) 32 { 33 return nullptr; 34 } 35 CreateCanvasRenderingContextModel(bool isOffscreen)36void* DynamicModuleHelper::CreateCanvasRenderingContextModel(bool isOffscreen) 37 { 38 return nullptr; 39 } 40 CreateCanvasBridge(CanvasBridgeParams & params)41void* DynamicModuleHelper::CreateCanvasBridge(CanvasBridgeParams& params) 42 { 43 return nullptr; 44 } 45 LoadLibrary()46bool DynamicModuleHelper::LoadLibrary() 47 { 48 return false; 49 } 50 CloseLibrary()51void DynamicModuleHelper::CloseLibrary() {} 52 LoadSymbol(const char * symName)53void* DynamicModuleHelper::LoadSymbol(const char* symName) 54 { 55 return nullptr; 56 } 57 } // namespace OHOS::Ace 58