提交 5515d3e2 编写于 作者: C Chinmay Garde 提交者: GitHub

Don't initialize the ZIP asset bundle as a directory. (#2932)

Regression introduced in https://github.com/flutter/engine/commit/cee7fef7
上级 d786dc91
......@@ -90,7 +90,7 @@ void Engine::RunFromSource(const std::string& main,
if (packages_path.empty())
packages_path = FindPackagesPath(main);
if (!bundle.empty())
ConfigureDirectoryAssetBundle(bundle);
ConfigureZipAssetBundle(bundle);
ConfigureRuntime(main);
runtime_->dart_controller()->RunFromSource(main, packages_path);
}
......
......@@ -92,8 +92,6 @@ class Engine : public UIDelegate,
void RunFromSnapshotStream(const std::string& script_uri,
mojo::ScopedDataPipeConsumerHandle snapshot);
void SetupAssetBundle(const mojo::String& bundle_path);
void StopAnimator();
void StartAnimatorIfPossible();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册