Coder Social home page Coder Social logo

Comments (8)

kolbasa avatar kolbasa commented on July 27, 2024 1

The compression rate depends entirely on the structure of the app. For other apps, the savings can be substantial.

But I get the idea. I'm sure many others will see it that way as well.

I'll add that to the backlog.
But it's low priority for now, there are other important issues I need to solve at the moment.

from cordova-plugin-apkupdater.

kolbasa avatar kolbasa commented on July 27, 2024

The basic idea is actually just that the APK file is offered for download in a compressed form.
You can just generate one chunk, that would simply be the compressed APK in an archive. Multiple chunks are really only interesting if you want to implement background download.

You can also easily offer multiple versions for download. Each version simply needs its own manifest file.
The app just needs to know which versions exist and where the appropriate update is located.
The plugin itself does not decide which version is newer than the other. So you don't have to install the latest version at all.
You can even install third party apps this way. Just note that version downgrades are not possible.

Your use case would be covered by this, or am I misunderstanding?
Or is it simply that the additional compression step is annoying?

from cordova-plugin-apkupdater.

capc0 avatar capc0 commented on July 27, 2024

I tested it with just one chunk and it is working very well.

Or is it simply that the additional compression step is annoying?

yes.

The APK file format is already pretty compressed. In my example the APK is 14 MB and the ZIP with one chunk ~13.5 MB.

When releasing a new version of the App, I have to

  1. Upload the APK. This is e.g. needed for new users who never downloaded the App before (and of course want to start with the newest version, why bother downloading a outdated verison?)
  2. Upload the chunked ZIP. For users who already have an older version installed and are getting the update from within the app.
  3. Upload the manifest.json

Step 2 seems rather unnecessary in my opinion.

Nevertheless this plugin is working great, thanks for your efforts!

from cordova-plugin-apkupdater.

kolbasa avatar kolbasa commented on July 27, 2024

I've been thinking about this. You are right. I overengineered the plugin way too much.
This also made it difficult to maintain.

I have simplified the plugin and removed all the manifest logic.
I still have to write a proper documentation, but on the refactoring-branch you can already test the version.
You can now directly download and install the APK. Zipped files are also supported.

v2.0.0:
https://github.com/kolbasa/cordova-plugin-apkupdater/tree/refactoring

Demo-Apk:
https://github.com/kolbasa/cordova-plugin-apkupdater-demo

from cordova-plugin-apkupdater.

capc0 avatar capc0 commented on July 27, 2024

hi, thanks for the update.

I will definitely try this once I find some time for it.

from cordova-plugin-apkupdater.

kolbasa avatar kolbasa commented on July 27, 2024

I think I can close this now. Let me know if you have problems with the new version.

from cordova-plugin-apkupdater.

capc0 avatar capc0 commented on July 27, 2024

just a quick follow up: we migrated to the newest plugin version and everything is looking good so far.
thank you!

from cordova-plugin-apkupdater.

kolbasa avatar kolbasa commented on July 27, 2024

Glad to hear that. If there are any problems or suggestions for improvement, just write. 👍

from cordova-plugin-apkupdater.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.