mirror of
https://github.com/openharmony/ace_ace_engine.git
synced 2026-07-19 22:54:50 -04:00
添加stage模型下minsdkVersion
Signed-off-by: yangfan <yangfan229@huawei.com> Change-Id: Ia5676be807dbad4a9d59de7c8f71cc70f3f20ab8
This commit is contained in:
@@ -475,6 +475,14 @@ void UIContentImpl::CommonInitialize(OHOS::Rosen::Window* window, const std::str
|
||||
Platform::AceContainer::SetView(flutterAceView, density, 0, 0, window_->GetWindowId(), callback);
|
||||
Platform::FlutterAceView::SurfaceChanged(flutterAceView, 0, 0, deviceHeight >= deviceWidth ? 0 : 1);
|
||||
auto nativeEngine = reinterpret_cast<NativeEngine*>(runtime_);
|
||||
// Set sdk version in module json mode
|
||||
if (isModelJson) {
|
||||
auto pipeline = container->GetPipelineContext();
|
||||
if (pipeline && appInfo) {
|
||||
LOGI("SetMinPlatformVersion code is %{public}d", appInfo->minCompatibleVersionCode);
|
||||
pipeline->SetMinPlatformVersion(appInfo->minCompatibleVersionCode);
|
||||
}
|
||||
}
|
||||
if (!storage) {
|
||||
container->SetLocalStorage(nullptr, context->GetBindingObject()->Get<NativeReference>());
|
||||
} else {
|
||||
|
||||
@@ -1306,7 +1306,9 @@ void FrontendDelegateDeclarative::LoadPage(
|
||||
page->FlushCommands();
|
||||
// just make sure the pipelineContext is created.
|
||||
auto pipeline = delegate->pipelineContextHolder_.Get();
|
||||
pipeline->SetMinPlatformVersion(delegate->GetMinPlatformVersion());
|
||||
if (delegate->GetMinPlatformVersion() > 0) {
|
||||
pipeline->SetMinPlatformVersion(delegate->GetMinPlatformVersion());
|
||||
}
|
||||
delegate->taskExecutor_->PostTask(
|
||||
[weak, page] {
|
||||
auto delegate = weak.Upgrade();
|
||||
|
||||
@@ -1144,7 +1144,9 @@ void FrontendDelegateImpl::LoadPage(int32_t pageId, const std::string& url, bool
|
||||
LOGE("the pipeline context is nullptr");
|
||||
return;
|
||||
}
|
||||
pipelineContext->SetMinPlatformVersion(delegate->GetMinPlatformVersion());
|
||||
if (delegate->GetMinPlatformVersion() > 0) {
|
||||
pipelineContext->SetMinPlatformVersion(delegate->GetMinPlatformVersion());
|
||||
}
|
||||
delegate->taskExecutor_->PostTask(
|
||||
[weak, page] {
|
||||
auto delegate = weak.Upgrade();
|
||||
|
||||
Reference in New Issue
Block a user