Android in-app upgrader
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.Zxilly:upgrader:master-SNAPSHOT'
}
create a class implements Checker
, and
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
Upgrader.init(yourCheckerInstance, this)
}
}
By default, it will auto check for update. You can also check for update manually.
Upgrader.getInstance()?.tryUpgrade()
You can find some checker in dev.zxilly.upgrader.checker
.