File tree Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change 11+++ switches.cc
2- @@ -66,20 +66,6 @@
3- // Include again for struct definition.
4- #include "flutter/shell/common/switches.h"
5-
6- - // Define symbols for the ICU data that is linked into the Flutter library on
7- - // Android. This is a workaround for crashes seen when doing dynamic lookups
8- - // of the engine's own symbols on some older versions of Android.
9- - #if OS_ANDROID
10- - extern uint8_t _binary_icudtl_dat_start[];
11- - extern uint8_t _binary_icudtl_dat_end[];
12- -
13- - static std::unique_ptr<fml::Mapping> GetICUStaticMapping() {
14- - return std::make_unique<fml::NonOwnedMapping>(
15- - _binary_icudtl_dat_start,
16- - _binary_icudtl_dat_end - _binary_icudtl_dat_start);
17- - }
18- - #endif
19- -
20- namespace flutter {
21-
22- void PrintUsage(const std::string& executable_name) {
232@@ -185,9 +171,9 @@
243
254 auto lookup_symbol = [&mapping, &size, symbol_prefix](
3615 command_line.GetOptionValue(FlagForSwitch(Switch::ICUNativeLibPath),
3716 &native_lib_path);
3817
39- - #if OS_ANDROID
18+ - #if FML_OS_ANDROID
4019- settings.icu_mapper = GetICUStaticMapping;
4120- #else
4221 settings.icu_mapper = [icu_symbol_prefix, native_lib_path] {
You can’t perform that action at this time.
0 commit comments