dependencies {
compile 'com.github.guitoun3:update-reminder:1.2.0'
}
new UpdateReminder.Builder(this)
.setBaseUrl("http://yourdomain.com/")
.setPath("config.json")
.build()
.checkUpdate();
This file must be placed on http://yourdomain.com/config.json
{
"update_reminder": {
"enabled": true,
"versionCode": "3",
"force_update": false,
"message": "Your custom message for users"
},
"your_config_key1": "12",
"your_other_config_stuff": "value"
}