From 4b8101398c642bf289d5423237a0c4dc327e5d3d Mon Sep 17 00:00:00 2001 From: Simon Gough Date: Wed, 14 Sep 2016 12:28:06 +0100 Subject: [PATCH] Added Android Expansion File Support (#142) * Add Android Expansion File Support * Added notes for usage with Android Expansion file * Update README.md Added notes re: expansion file usage. * formatting issue fixes --- README.md | 32 ++ Video.js | 2 + .../expansion/zipfile/APEZProvider.java | 287 ++++++++++++ .../zipfile/APKExpansionSupport.java | 81 ++++ .../expansion/zipfile/ZipResourceFile.java | 428 ++++++++++++++++++ .../com/brentvatne/react/ReactVideoView.java | 61 ++- .../react/ReactVideoViewManager.java | 30 +- 7 files changed, 908 insertions(+), 13 deletions(-) create mode 100644 android/src/main/java/com/android/vending/expansion/zipfile/APEZProvider.java create mode 100644 android/src/main/java/com/android/vending/expansion/zipfile/APKExpansionSupport.java create mode 100644 android/src/main/java/com/android/vending/expansion/zipfile/ZipResourceFile.java diff --git a/README.md b/README.md index 320e5902..4595438f 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,38 @@ var styles = StyleSheet.create({ }); ``` + +## Android Expansion File Usage + +```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 +