javiersantos / AppUpdater

A library that checks for your apps' updates on Google Play, GitHub, Amazon, F-Droid or your own server. API 9+ required.
Apache License 2.0
1.98k stars 412 forks source link

Using JSON object instead of file #138

Open ssakhavi opened 6 years ago

ssakhavi commented 6 years ago

Is it possible to use a JSON object directly instead of passing a saved JSON file as the argument when using the JSON mode?

In my case, I receive a JSON from the server to check whether there is an update or not.

javiersantos commented 6 years ago

If I understood correctly, the idea is to be able to use an Update object directly to check for updates, right?

The Update object should be manually initialized.

ssakhavi commented 6 years ago

Assume that we have aserver containing our updated APK.

I want to send a POST and receive a JSON object that has the same information used in the JSON file in this library. (Version code and name and etc.)

In the current version of your library, the JSON file must be stored somewhere and then a string referring to it is passed for the updater to check.

How we can the JSON object directly without having a saved JSON file.

javiersantos commented 6 years ago

I get it. Currently it is not supported by the library, but I will keep it in mind for future updates.