Skip to content

Zxilly/upgrader

Repository files navigation

upgrader

Android in-app upgrader

Installation

repositories {
    maven { url 'https://jitpack.io' }
}

dependencies {
    implementation 'com.github.Zxilly:upgrader:master-SNAPSHOT'
}

Usage

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.

License

MIT