mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
3c9a22c778
libapp.so contains compiled application Dart code. On most Android systems,
this library can be loaded by calling dlopen("libapp.so"), which will search
Android's default library directories.
On some Android devices this does not work as expected. As a workaround, this
patch provides a fallback path to libapp.so based on ApplicationInfo.nativeLibraryDir.
Fixes https://github.com/flutter/flutter/issues/35838
64 lines
2.6 KiB
C++
64 lines
2.6 KiB
C++
// Copyright 2013 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "flutter/common/settings.h"
|
|
|
|
#include <sstream>
|
|
|
|
namespace flutter {
|
|
|
|
constexpr FrameTiming::Phase FrameTiming::kPhases[FrameTiming::kCount];
|
|
|
|
Settings::Settings() = default;
|
|
|
|
Settings::Settings(const Settings& other) = default;
|
|
|
|
Settings::~Settings() = default;
|
|
|
|
std::string Settings::ToString() const {
|
|
std::stringstream stream;
|
|
stream << "Settings: " << std::endl;
|
|
stream << "vm_snapshot_data_path: " << vm_snapshot_data_path << std::endl;
|
|
stream << "vm_snapshot_instr_path: " << vm_snapshot_instr_path << std::endl;
|
|
stream << "isolate_snapshot_data_path: " << isolate_snapshot_data_path
|
|
<< std::endl;
|
|
stream << "isolate_snapshot_instr_path: " << isolate_snapshot_instr_path
|
|
<< std::endl;
|
|
stream << "application_library_path:" << std::endl;
|
|
for (const auto& path : application_library_path) {
|
|
stream << " " << path << std::endl;
|
|
}
|
|
stream << "temp_directory_path: " << temp_directory_path << std::endl;
|
|
stream << "dart_flags:" << std::endl;
|
|
for (const auto& dart_flag : dart_flags) {
|
|
stream << " " << dart_flag << std::endl;
|
|
}
|
|
stream << "start_paused: " << start_paused << std::endl;
|
|
stream << "trace_skia: " << trace_skia << std::endl;
|
|
stream << "trace_startup: " << trace_startup << std::endl;
|
|
stream << "trace_systrace: " << trace_systrace << std::endl;
|
|
stream << "dump_skp_on_shader_compilation: " << dump_skp_on_shader_compilation
|
|
<< std::endl;
|
|
stream << "endless_trace_buffer: " << endless_trace_buffer << std::endl;
|
|
stream << "enable_dart_profiling: " << enable_dart_profiling << std::endl;
|
|
stream << "disable_dart_asserts: " << disable_dart_asserts << std::endl;
|
|
stream << "enable_observatory: " << enable_observatory << std::endl;
|
|
stream << "observatory_host: " << observatory_host << std::endl;
|
|
stream << "observatory_port: " << observatory_port << std::endl;
|
|
stream << "use_test_fonts: " << use_test_fonts << std::endl;
|
|
stream << "enable_software_rendering: " << enable_software_rendering
|
|
<< std::endl;
|
|
stream << "log_tag: " << log_tag << std::endl;
|
|
stream << "icu_initialization_required: " << icu_initialization_required
|
|
<< std::endl;
|
|
stream << "icu_data_path: " << icu_data_path << std::endl;
|
|
stream << "assets_dir: " << assets_dir << std::endl;
|
|
stream << "assets_path: " << assets_path << std::endl;
|
|
stream << "frame_rasterized_callback set: " << !!frame_rasterized_callback
|
|
<< std::endl;
|
|
return stream.str();
|
|
}
|
|
|
|
} // namespace flutter
|