Remove the old location of the ICU data asset (flutter/engine#6170)
The tools are now placing icudtl.dat in the flutter_shared directory. It is no longer necessary to check for this asset at its previous path.
This commit is contained in:
@@ -262,15 +262,7 @@ public class FlutterMain {
|
||||
|
||||
sResourceExtractor = new ResourceExtractor(context);
|
||||
|
||||
// Search for the icudtl.dat file at the old and new locations.
|
||||
// TODO(jsimmons): remove the old location when all tools have been updated.
|
||||
Set<String> sharedAssets = listAssets(applicationContext, SHARED_ASSET_DIR);
|
||||
String icuAssetPath;
|
||||
if (sharedAssets.contains(SHARED_ASSET_ICU_DATA)) {
|
||||
icuAssetPath = SHARED_ASSET_DIR + File.separator + SHARED_ASSET_ICU_DATA;
|
||||
} else {
|
||||
icuAssetPath = SHARED_ASSET_ICU_DATA;
|
||||
}
|
||||
String icuAssetPath = SHARED_ASSET_DIR + File.separator + SHARED_ASSET_ICU_DATA;
|
||||
sResourceExtractor.addResource(icuAssetPath);
|
||||
sIcuDataPath = PathUtils.getDataDirectory(applicationContext) + File.separator + icuAssetPath;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user