Giter Site home page Giter Site logo

heyzapane's Introduction

HeyzapANE

Adobe Native Extension (ANE) for Heyzap with support for iOS/Android

Software installation (Windows):

To compile ANE:

  • Edit ane\build.properties and update paths (build.properties.mac and build.properties.win are example files)

  • In the ane folder run 'ant'

  • If you want to recompile the iOS library (needs MacOS), run:

    ant ios_compile

To compile the Demo:

  • Open demo\demo.as3proj in FlashDevelop
  • Press F5 to run the application

The demo was created by:

  • In FlashDevelop: Project / New Project ... / AIR Mobile AS3 App

  • Follow instructions in AIR_Android/iOS_readme.txt

  • In SetupApplication.bat set the certificates:

    set IOS_DIST_CERT_FILE=cert\iPhone.p12 set IOS_DEV_CERT_FILE=cert\iPhone.p12 set IOS_DEV_CERT_PASS=fd set IOS_PROVISION=cert\iPhone.mobileprovision

  • In application.xml change / add the contents of to:

(Setting minSdkVersion will give an error if you don't have that SDK version downloaded with the Android SDK manager)

  • In application.xml add to and change the name of the scheme 'mycoolscheme' to something application specific:

    CFBundleURLTypes CFBundleTypeRole Editor CFBundleURLIconFile Icon CFBundleURLName mycoolscheme CFBundleURLSchemes mycoolscheme

  • In application.xml add before :

    com.heyzap.extension
  • In Packager.bat change:

    call adt -package -target %TYPE%%TARGET% %OPTIONS% %SIGNING_OPTIONS% "%OUTPUT%" "%APP_XML%" %FILE_OR_DIR%

    to:

    call adt -package -target %TYPE%%TARGET% %OPTIONS% %SIGNING_OPTIONS% "%OUTPUT%" "%APP_XML%" %FILE_OR_DIR% -extdir ext

  • In Run.bat replace:

    adl -screensize %SCREEN_SIZE% "%APP_XML%" "%APP_DIR%"

    with:

    rmdir /q /s ext_unpacked mkdir ext_unpacked\HeyzapExtension.ane unzip -q ext\HeyzapExtension.ane -d ext_unpacked\HeyzapExtension.ane adl -screensize %SCREEN_SIZE% "%APP_XML%" "%APP_DIR%" -extdir ext_unpacked

  • In SetupSDK.bat add the variable JAVA_SDK

  • Add folder 'ext' and copy HeyzapExtension.ane to it

    Right HeyzapExtension.ane and select 'Add To Library' Right HeyzapExtension.ane and select 'Options...' and select 'External Library (not included)'

  • Copy the Heyzap.framework folder to the lib folder

  • Edited demo\src\com\heyzap\demo\Main.as, main code is:

    var h : Heyzap = new Heyzap(); h.load(, , );

  • Do a checkin using:

    h.checkin("Checking text goes here!");

  • Make sure you don't call NativeApplication.nativeApplication.exit() in your deactivation handler (activating Heyzap deactivates your app)

  • Make sure you're running Java 6 and not Java 7 (this will cause signing errors!)

heyzapane's People

Contributors

jrouwe avatar

Watchers

Jianshuai avatar James Cloos avatar

Forkers

alchymi simsgj

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.