Skip to content

Version 0.0.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@javiersantos javiersantos released this 25 Jan 16:06
· 208 commits to master since this release
  • Updated the code for Google Play Licensing library from their GitHub site.
  • Added required permission to AndroidManifest.xml
<uses-permission android:name="com.android.vending.CHECK_LICENSE"/>
  • The callback method has been updated to manage license check errors.
.callback(new PiracyCheckerCallback() {
    @Override
    public void allow() {
        // Do something when the user is allowed to use the app
    }

    @Override
    public void dontAllow(PiracyCheckerError error) {
        // You can either do something specific when the user is not allowed to use the app
        // Or manage the error, using the 'error' parameter, yourself (Check errors at {@link PiracyCheckerError}).
    }

    @Override
    public void onError(PiracyCheckerError error) {
        // This method is not required to be implemented/overriden but...
        // You can either do something specific when an error occurs while checking the license,
        // Or manage the error, using the 'error' parameter, yourself (Check errors at {@link PiracyCheckerError}).
    }
})
  • The minimum API level is now 9 (Gingerbread).
  • Updated ProGuard rules.

Huge thanks to @jahirfiquitiva for his PR #11.