<commit_before>OUYA In App Purchases with OpenFL
===============

A simple example that shows how to get the product list, receipts and purchase a product.

Using: 
  * Haxe 3
  * https://github.com/openfl/openfl
  * https://github.com/openfl/openfl-ouya
  

Example:
=======

What the current example does:
* fetch the test product information and receipts
* display a large O icon, unless you have purchased the test product
* press any OUYA controller button to purchase the product
* hide the O icon on successful purchase

There are no other visuals, you'll have to watch the console output using 'adb logcat'.


Getting started:
=======

You will need:
 * your OUYA developer UUID - get it at https://devs.ouya.tv/developers in one of the lower paragraphs
 * .der key file - create new game and get Signing Key file https://devs.ouya.tv/developers/games
 * test product - create one at https://devs.ouya.tv/developers/products
 * your OpenFL app package ID must match the one entered at https://devs.ouya.tv/developers/games
 
Enter the above mentioned into the Main.hx.

IAPHandler.hx class defines multiple callback methods (onProductListReceived, onPurchaseSuccess, etc.).
Subclass it and override the methods with your own handlers.<commit_msg>comment createInterface<commit_after>OUYA In App Purchases with OpenFL
===============

A simple example that shows how to get the product list, receipts and purchase a product.

Using: 
  * Haxe 3
  * https://github.com/openfl/openfl
  * https://github.com/openfl/openfl-ouya
  

Example:
=======

What the current example does:
* fetch the test product information and receipts
* display a large O icon, unless you have purchased the test product
* press any OUYA controller button to purchase the product
* hide the O icon on successful purchase

There are no other visuals, you'll have to watch the console output using 'adb logcat'.


Getting started:
=======

You will need:
 * your OUYA developer UUID - get it at https://devs.ouya.tv/developers in one of the lower paragraphs
 * .der key file - create new game and get Signing Key file https://devs.ouya.tv/developers/games
 * test product - create one at https://devs.ouya.tv/developers/products
 * your OpenFL app package ID must match the one entered at https://devs.ouya.tv/developers/games
 
Enter the above mentioned into the Main.hx.

The latest version of openfl/openfl-native is missing the "createInterface" method - 
I guess jgranick had it in his working copy but did not push to the repo.
As a temporary solution, you will have to comment out every reference to "createInterface" within
"C:\HaxeToolkit\haxe\lib\openfl-ouya/1,0,2/tv/ouya/console/api/OuyaResponseListener.hx" or any other class using it.

IAPHandler.hx class defines multiple callback methods (onProductListReceived, onPurchaseSuccess, etc.).
Subclass it and override the methods with your own handlers.
{'fraction_non_alphanumeric': 0.085348997926745, 'fraction_numerical': 0.0017277125086385626, 'mean_word_length': 4.169642857142857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1385160', 'n_tokens_mistral': 849, 'n_tokens_neox': 805, 'n_words': 364}