kiwix / kiwix-xulrunner

[ARCHIVED] Legacy Kiwix desktop solution for Windows/macOS/Linux
https://download.kiwix.org/release/kiwix-xulrunner/
GNU General Public License v3.0
111 stars 28 forks source link

Add customapp json field specifying expansion version code #332

Closed mhutti1 closed 7 years ago

mhutti1 commented 7 years ago

Google Play supports uploading an app to use a previous expansion file. A json field should be added to specify which expansion version custom apps should use or left blank to indicate using the current version code. Then the app should look for the correct file by editing the FileUtils class to point to the correct expansion file.

mhutti1 commented 7 years ago

0b6f57666e9c6e63f86eba523001de439012da0e

mhutti1 commented 7 years ago

The original file must still be in content.zim otherwise there will be a file size mismatch and we will assume that the app is corrupt.

kelson42 commented 7 years ago

@mhutti1 Thx. That said not sure to fully understand how that shoudl work, should I simply increment the "code_version" but not the "content_version" to get a new APK reusing already upload/available companion file?

mhutti1 commented 7 years ago

@kelson42 "content_version_code" is optional. If you don't include it then the app will use its "version_code" as its content_version_code. If you do include it though you can override this to allow you to select a previous ZIM as you expansion.