From fe69081576017200c02d54425ebf7bf2aa30e68a Mon Sep 17 00:00:00 2001 From: Mathias Scherer Date: Fri, 3 Nov 2017 12:08:30 +0100 Subject: [PATCH 1/3] adds supported file extensions Android Expansion files adds mp4 as the only supported file extension for Android Expansion files --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 597b71ec0e..62fe5ba9c3 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,7 @@ var styles = StyleSheet.create({ - * *For iOS you also need to specify muted for this to work* ## Android Expansion File Usage - +Only supports .mp4 files ```javascript // Within your render function, assuming you have a file called // "background.mp4" in your expansion file. Just add your main and (if applicable) patch version From 132d420b6ad28f54652778c08b762b4dfca372cc Mon Sep 17 00:00:00 2001 From: Mathias Scherer Date: Mon, 6 Nov 2017 13:17:56 +0100 Subject: [PATCH 2/3] updates readme with additional infos for expansion files adds the info that the mp4 files inside expansion files have not to be compressed to get it working --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 62fe5ba9c3..55a759281c 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,12 @@ var styles = StyleSheet.create({ - * *For iOS you also need to specify muted for this to work* ## Android Expansion File Usage -Only supports .mp4 files +Only supports .mp4 files. +The video files have not to be compressed. +Linux command example to exclude .mp4 files from zip compression: +```bash +zip -r -n.mp4 *.mp4 main.1.com.exmample.com +``` ```javascript // Within your render function, assuming you have a file called // "background.mp4" in your expansion file. Just add your main and (if applicable) patch version From 39efb5203ccab700220fdea9fa5f7e77fc5fb747 Mon Sep 17 00:00:00 2001 From: Hampton Maxwell Date: Sun, 24 Jun 2018 12:15:43 -0700 Subject: [PATCH 3/3] Clean up wording about Android expansion files --- README.md | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 55a759281c..a8f58be6ea 100644 --- a/README.md +++ b/README.md @@ -195,27 +195,18 @@ var styles = StyleSheet.create({ - * *For iOS you also need to specify muted for this to work* ## Android Expansion File Usage -Only supports .mp4 files. -The video files have not to be compressed. -Linux command example to exclude .mp4 files from zip compression: +Expansions files allow you to ship assets that don't need to be updated each time you push an app update. + +This only supports mp4 files and they must not be compressed. Example command line for preventing compression: ```bash -zip -r -n.mp4 *.mp4 main.1.com.exmample.com +zip -r -n .mp4 *.mp4 player.video.example.com ``` + ```javascript // Within your render function, assuming you have a file called // "background.mp4" in your expansion file. Just add your main and (if applicable) patch version