5#ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_CLIENT_WRAPPER_INCLUDE_FLUTTER_DART_PROJECT_H_
6#define FLUTTER_SHELL_PLATFORM_WINDOWS_CLIENT_WRAPPER_INCLUDE_FLUTTER_DART_PROJECT_H_
46 const std::wstring& icu_data_path,
47 const std::wstring& aot_library_path) {
48 assets_path_ = assets_path;
49 icu_data_path_ = icu_data_path;
50 aot_library_path_ = aot_library_path;
62 assets_path_ =
path + L
"\\flutter_assets";
63 icu_data_path_ =
path + L
"\\icudtl.dat";
64 aot_library_path_ =
path + L
"\\app.so";
74 if (entrypoint.empty()) {
77 dart_entrypoint_ = entrypoint;
86 dart_entrypoint_arguments_ = std::move(arguments);
92 return dart_entrypoint_arguments_;
106 ui_thread_policy_ =
policy;
122 const std::wstring& assets_path()
const {
return assets_path_; }
123 const std::wstring& icu_data_path()
const {
return icu_data_path_; }
124 const std::wstring& aot_library_path()
const {
return aot_library_path_; }
127 std::wstring assets_path_;
129 std::wstring icu_data_path_;
132 std::wstring aot_library_path_;
134 std::string dart_entrypoint_;
136 std::vector<std::string> dart_entrypoint_arguments_;
void set_dart_entrypoint(const std::string &entrypoint)
void set_ui_thread_policy(UIThreadPolicy policy)
void set_gpu_preference(GpuPreference gpu_preference)
DartProject(const std::wstring &assets_path, const std::wstring &icu_data_path, const std::wstring &aot_library_path)
const std::vector< std::string > & dart_entrypoint_arguments() const
const std::string & dart_entrypoint() const
DartProject(const std::wstring &path)
void set_dart_entrypoint_arguments(std::vector< std::string > arguments)
UIThreadPolicy ui_thread_policy() const
GpuPreference gpu_preference() const
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network policy