Coder Social home page Coder Social logo

samsung-iap's Introduction

ANE for Samsung's IAP 2.0

=========================== How to use ===================================

Find the ready to use SWC and ANE inside the /build folder.

Add the following nodes to your application.xml:
<extensions>
	<extensionID>com.eldhelm.samsung.iap.InAppPurchase</extensionID>
</extensions>

Also add the following nodes to manifestAdditions in your application.xml:
<application android:enabled="true">
	<activity android:name="com.eldhelm.samsung.iap.InAppAccountActivity" android:theme="@android:style/Theme.NoDisplay"></activity>
	<activity android:name="com.eldhelm.samsung.iap.InAppPaymentActivity"></activity>
</application>

The Samsung IAP API uses activities, currently i haven't found a way of doing interacting with the API without implementing activities, and they must be allowed as shown above.

=========================== What's inside ================================

The /as folder contains a FlashDevelop project for developing the action script part of the extension and may be creating a testbench (in the future).
The /java folder contains a ADT (Eclipse) project with the native java source code.
The /platform folder conatins all the files that are needed to package the extension.

=========================== Building =====================================

To build the stuff yourself using the current setup you need: ADT, FlashDevelop and Perl 
1) Open the Eclipse project and export the jar file into the /platfrom/Android folder
2) Building the SWC and the ANE is automatic and is configured as a post-build instruction of the FlashDevelop project. It is done by a perl script - as/package_extension.pl. You just run the build command in FlashDevelop (F8).

It is advised that you visit this page: http://developer.samsung.com/in-app-purchase and become familiar with the application flow of the samsung API as the extension is transparent.

The extension is built so that it will run on any system with the Action Script iplementation only (for debuging purposes, without throwing exceptions). You should check ADL's documentaion here: http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-6fa6d7e0128cca93d31-8000.html

samsung-iap's People

Contributors

wastedabuser avatar

Stargazers

 avatar Jakub Wagner avatar William avatar Dima N avatar Jacob (jsh4) avatar

Watchers

 avatar James Cloos avatar Jacob (jsh4) avatar

Forkers

spo-tn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.