From 341f82efc8a0d3305f7862ad826b7e95cfd31aea Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Tue, 28 Jul 2015 12:25:31 -0700 Subject: [PATCH] Compress assets in APKs This patch moves us back to compressing assets in APKs. We lost compression when we updated Chromium recently. This brings typical Sky APKs down to 7.2MB. Fixes #134 --- sky/build/sky_app.gni | 2 ++ sky/shell/BUILD.gn | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sky/build/sky_app.gni b/sky/build/sky_app.gni index 6890cf67ea4..a4380bf3b2a 100644 --- a/sky/build/sky_app.gni +++ b/sky/build/sky_app.gni @@ -75,6 +75,8 @@ template("sky_app") { native_libs = [ "libsky_shell.so" ] asset_location = "$target_gen_dir/assets" + extensions_to_not_compress = ".skyx" + deps = [ "//base:base_java", "//sky/shell:assets", diff --git a/sky/shell/BUILD.gn b/sky/shell/BUILD.gn index 47fc1b7ed27..05be30d319d 100644 --- a/sky/shell/BUILD.gn +++ b/sky/shell/BUILD.gn @@ -155,6 +155,8 @@ if (is_android) { native_libs = [ "libsky_shell.so" ] asset_location = "$root_build_dir/sky_shell/assets" + extensions_to_not_compress = ".skyx" + deps = [ ":assets", ":assets",