1. Download Leegality Library from http://gitlab.leegality.com/leegality-public/android-sdk/blob/v3/leegality.aar
1. Download Leegality Library from http://gitlab.leegality.com/leegality-public/android-sdk/blob/v4/leegality.aar
2. Import Leegality Library to your project by following the steps laid down in https://developer.android.com/studio/projects/android-library.html#AddDependency.
3. To initialize signing, start activity Leegality provided by the Leegality Library.