All notable changes to InAppUpdater will be documented in this file.
- Add progress Listener to Flexible Update
- Add listener to return the number of staleness days after an update is notified Above features were added with the new play core library update 1.7.2
- Use Lifecycle observer to resume updates. No need to call
continueUpdate
in your activities - You need to use UpdateInfoListener instead of onVersionCheckListener
mUpdateManager.addUpdateInfoListener(new UpdateInfoListener() {
@Override
public void onReceiveVersionCode(final int code) {
// You can get the available version code of the apk in Google Play
// Do something here
}
@Override
public void onReceiveStalenessDays(final int days) {
// Number of days passed since the user was notified of an update through the Google Play
// If the user hasn't notified this will return -1 as days
// You can decide the type of update you want to call
}
});
- Add Lifecycle observer to unregister the update state listener
- Fix fading of Material TextInputLayout
- Fix Send Intent Exception
- Fix Jitpack release issue
- Method to get the Version code of the Available Update
- Pass the Activity to the
Builder()
instead ofstart()
mUpdateManager = UpdateManager.Builder(this);
- No need to pass Activity to
continueUpdate()
You can find these codes in the demo app
- Debug Logs to the UpdateManager
- Package name
🎉 Initial Release