未验证 提交 81baff97 编写于 作者: M Martin Kustermann 提交者: GitHub

Switch all embedders to use platform_strong.dill instead of platform.dill (the...

Switch all embedders to use platform_strong.dill instead of platform.dill (the flutter_tester binary already does this) (#6024)
上级 ad5af2fc
......@@ -67,7 +67,7 @@ void FlutterMain::Init(JNIEnv* env,
// Check to see if the appropriate kernel files are present and configure
// settings accordingly.
auto platform_kernel_path =
fml::paths::JoinPaths({settings.assets_path, "platform.dill"});
fml::paths::JoinPaths({settings.assets_path, "platform_strong.dill"});
auto application_kernel_path =
fml::paths::JoinPaths({settings.assets_path, "kernel_blob.bin"});
......
......@@ -61,7 +61,7 @@ public class FlutterMain {
private static final String DEFAULT_FLX = "app.flx";
private static final String DEFAULT_SNAPSHOT_BLOB = "snapshot_blob.bin";
private static final String DEFAULT_KERNEL_BLOB = "kernel_blob.bin";
private static final String DEFAULT_PLATFORM_DILL = "platform.dill";
private static final String DEFAULT_PLATFORM_DILL = "platform_strong.dill";
private static final String DEFAULT_FLUTTER_ASSETS_DIR = "flutter_assets";
// Assets that are shared among all Flutter apps within an APK.
......
......@@ -16,7 +16,7 @@
#include "flutter/shell/platform/darwin/ios/framework/Headers/FlutterViewController.h"
static const char* kScriptSnapshotFileName = "snapshot_blob.bin";
static const char* kVMKernelSnapshotFileName = "platform.dill";
static const char* kVMKernelSnapshotFileName = "platform_strong.dill";
static const char* kApplicationKernelSnapshotFileName = "kernel_blob.bin";
static blink::Settings DefaultSettingsForProcess(NSBundle* bundle = nil) {
......
......@@ -148,7 +148,7 @@ FlutterResult FlutterEngineRun(size_t version,
// Check whether the assets path contains Dart 2 kernel assets.
const std::string kApplicationKernelSnapshotFileName = "kernel_blob.bin";
std::string platform_kernel_path =
fml::paths::JoinPaths({settings.assets_path, "platform.dill"});
fml::paths::JoinPaths({settings.assets_path, "platform_strong.dill"});
std::string application_kernel_path = fml::paths::JoinPaths(
{settings.assets_path, kApplicationKernelSnapshotFileName});
if (fml::IsFile(application_kernel_path)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册