From 4fcb1520ed6c381d93965fb008ed77dbbce04ac9 Mon Sep 17 00:00:00 2001 From: Emmanuel Garcia Date: Mon, 3 Jun 2019 23:44:46 -0700 Subject: [PATCH] Revert change by mistake: extract resources (flutter/engine#9180) --- .../android/io/flutter/view/FlutterMain.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterMain.java b/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterMain.java index d0c496ad42..cb965fb40b 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterMain.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterMain.java @@ -188,11 +188,7 @@ public class FlutterMain { return; } try { - // There are resources to extract. For example, the AOT blobs from the `assets` directory. - // `sResourceExtractor` is `null` if there isn't any AOT blob to extract. - if (sResourceExtractor != null) { - sResourceExtractor.waitForCompletion(); - } + sResourceExtractor.waitForCompletion(); List shellArgs = new ArrayList<>(); shellArgs.add("--icu-symbol-prefix=_binary_icudtl_dat"); @@ -313,13 +309,6 @@ public class FlutterMain { * This is required by the Dart runtime, so it can read the blobs. */ private static void initResources(@NonNull Context applicationContext) { - // When the AOT blobs are contained in the native library directory, - // we don't need to extract them manually because they are - // extracted by the Android Package Manager automatically. - if (!sSnapshotPath.equals(PathUtils.getDataDirectory(applicationContext))) { - return; - } - new ResourceCleaner(applicationContext).start(); final String dataDirPath = PathUtils.getDataDirectory(applicationContext);