Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

alexfu/phoenix

Repository files navigation

Phoenix

Phoenix is a small library that offers update hooks for when a user updates your app. This is useful for when you need to handle some logic when updating from version to version.

NOTE: Since v1.0.0, Phoenix operates asynchronously, however, Phoenix.Callback is still executed on the main thread.

Usage

public MyApplication extends Application implements Phoenix.Callback {
  @Override
  public void onCreate() {
    super.onCreate();
    Phoenix.rise(this, this);
  }

  @Override
  public void onUpdate(int oldVersion, int newVersion) {
    // Handle logic here, such as migrating SharedPreferences
  }
}

Installation

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

dependencies {
  compile 'com.github.alexfu:Phoenix:1.0.0'
}

About

Android app update hooks

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages