Thanks to visit codestin.com
Credit goes to lib.haxe.org

extension-lvl

Google Play License Verification extension
https://github.com/HaxeExtension/extension-lvl

To install, run:

haxelib install extension-lvl 0.0.1 

See using Haxelib in Haxelib documentation for more information.

README.md

Introduction

Haxe extension for Google License verification.

More info about Google License Verification Library: https://developer.android.com/google/play/licensing

Platforms

Android (with Google Play)

Installation

You can easily install Google LVL extension using haxelib:

haxelib install extension-lvl

To add it to a Haxe project, add this to your project file:

<haxelib name="extension-lvl" />

Usage

Add the following line with Base64-encoded RSA public key from your Google Play Console app's page (Development tools -> Services and APIs) to your project.xml file:

<set name="LVL_PUBLIC_KEY" value="[YOUR_APP_PUBLIC_KEY]" />
import extension.lvl.ExtensionLVL;

...

var res:Int = ExtensionLVL.isLicensed();
if(res == ExtensionLVL.LICENSED)
{
	//app is licensed, continue
}
else if(res == ExtensionLVL.NOT_LICENSED)
{
	//show licensing dialog, redirect to Google Play, close app, whatever
}

License

Google License Verification extension is free, open-source software under the MIT license.

Contributors
pozirk
Version
0.0.1
Published
5 years ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub