mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Prior to this the Android embedder code would extract the icudtl.dat asset out of the APK and write it to local disk during the first startup of the app. This change will make that work unnecessary and eliminate the risk of ICU failures due to errors in the extraction process.
24 lines
550 B
C++
24 lines
550 B
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.
|
|
|
|
#ifndef FLUTTER_FML_ICU_UTIL_H_
|
|
#define FLUTTER_FML_ICU_UTIL_H_
|
|
|
|
#include <string>
|
|
|
|
#include "flutter/fml/macros.h"
|
|
#include "flutter/fml/mapping.h"
|
|
|
|
namespace fml {
|
|
namespace icu {
|
|
|
|
void InitializeICU(const std::string& icu_data_path = "");
|
|
|
|
void InitializeICUFromMapping(std::unique_ptr<Mapping> mapping);
|
|
|
|
} // namespace icu
|
|
} // namespace fml
|
|
|
|
#endif // FLUTTER_FML_ICU_UTIL_H_
|