<commit_before># About
air-extension-inappbilling is an Adobe AIR native extension (ANE) to purchase products for multiple Android markets (locals and global).<br />
[...........راهنمــــــای فـــــــارسی..........](https://github.com/manjav/air-extension-inappbilling/edit/master/README_FA.md)

We prepared 2 type projects template:
1. [Adobe Flash Professional ( Animate ) template](https://github.com/manjav/air-extension-inappbilling/edit/master/README_FA.md) for Flash Designers.
2. [Pure Action Script template](https://github.com/manjav/air-extension-inappbilling/edit/master/README_FA.md) for Flash Developers to use Flash Builder, Flash Develop or Intellij Idea.

![Test Project](https://github.com/manjav/air-extension-inappbilling/blob/master/files/TrivialDrive_EN.png)

It uses Google Play In-app Billing version 3 API.<br />
Supported functionality:<br />
- purchase of items;<br />
- restoration of previously purchased items;<br />
- consumption of items;<br />
- subscriptions (not tested).<br />

# Docs
Please, read docs and try ANE before asking any questions.<br />
http://developer.android.com/google/play/billing/index.html<br />
http://help.adobe.com/en_US/air/extensions/index.html<br />


# Step 1 : Insert ANE file into your Adobe AIR Project
Add [iabilling.ane](https://github.com/manjav/air-extension-inappbilling/blob/master/package/iabilling.ane) file from package folder to your Adobe AIR project.<br />


# Step 2 : Initializing based on selected market:
Insert All uses items into '_items' array

Get base64key from market console and replace with '==5AMP1E8A5E64KE7=='
Also if you want add new market, you had to added new case with 'bindeURL' and 'packageURL'.
```actionscript
import com.gerantech.extensions.iab.Iab;
import com.gerantech.extensions.iab.Purchase;
import com.gerantech.extensions.iab.events.IabEvent;
...

// provide all sku items<commit_msg>added put ane tutorial<commit_after># About
air-extension-inappbilling is an Adobe AIR native extension (ANE) to purchase products for multiple Android markets (locals and global).<br />
[...........راهنمــــــای فـــــــارسی..........](https://github.com/manjav/air-extension-inappbilling/edit/master/README_FA.md)

We prepared 2 type projects template:
1. [Adobe Flash Professional ( Animate ) template](https://github.com/manjav/air-extension-inappbilling/edit/master/README_FA.md) for Flash Designers.
2. [Pure Action Script template](https://github.com/manjav/air-extension-inappbilling/edit/master/README_FA.md) for Flash Developers to use Flash Builder, Flash Develop or Intellij Idea.

![Test Project](https://github.com/manjav/air-extension-inappbilling/blob/master/files/TrivialDrive_EN.png)

It uses Google Play In-app Billing version 3 API.<br />
Supported functionality:<br />
- purchase of items;<br />
- restoration of previously purchased items;<br />
- consumption of items;<br />
- subscriptions (not tested).<br />

# Docs
Please, read docs and try ANE before asking any questions.<br/>
http://developer.android.com/google/play/billing/index.html<br />
http://help.adobe.com/en_US/air/extensions/index.html<br />


# Step 1 : Insert ANE file into your Adobe AIR Project
Add [iabilling.ane](https://github.com/manjav/air-extension-inappbilling/blob/master/package/iabilling.ane) file from package folder to your Adobe AIR project.<br />
<b>Tutorial:</b> [How to embed ANEs into FlashBuilder, FlashCC and FlashDevelop](https://www.youtube.com/watch?v=Oubsb_3F3ec&list=PL_mmSjScdnxnSDTMYb1iDX4LemhIJrt1O)

# Step 2 : Initializing based on selected market:
Insert All uses items into '_items' array.

Get base64key from market console and replace with '==5AMP1E8A5E64KE7=='.<br />
Also if you want add new market, you had to added new case with 'bindeURL' and 'packageURL'.
```actionscript
import com.gerantech.extensions.iab.Iab;
import com.gerantech.extensions.iab.Purchase;
import com.gerantech.extensions.iab.events.IabEvent;
...

// provide all sku items
{'fraction_non_alphanumeric': 0.12603982858583312, 'fraction_numerical': 0.008822788001008318, 'mean_word_length': 4.620396600566572, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 28, 'https://': 11, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4054041', 'n_tokens_mistral': 1314, 'n_tokens_neox': 1269, 'n_words': 344}