Skip to content

Commit 13e595a

Browse files
committed
Fix switches.cc patch
1 parent 4f6000a commit 13e595a

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

switches.patch

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,4 @@
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](
@@ -36,7 +15,7 @@
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] {

0 commit comments

Comments
 (0)