守望者--AIR技术交流

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
热搜: ANE FlasCC 炼金术
查看: 1528|回复: 1

Fortumo (富途宝)移动支付服务ANE (Android)

[复制链接]
  • TA的每日心情
    擦汗
    2018-4-10 15:18
  • 签到天数: 447 天

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    562
    贡献
    29
    金币
    52622
    钢镚
    1422

    开源英雄守望者

    发表于 2015-1-30 13:12:48 | 显示全部楼层 |阅读模式
    应用下载
    应用名称: FortumoANE
    支持64位:
    当前版本: 未知
    运行平台: Android 
    开发语言: ActionScript 3 JAVA 
    应用类别: ANE-JAVA
    应用简介: Adobe Native Extension (ANE) for Fortumo (Android)
    FortumoANE

    Adobe Native Extension (ANE) for Fortumo (Android)

    Software installation (Windows):To compile ANE:
    • Edit ane\build.properties and update paths
    • In the ane folder run 'ant'
    To compile the Demo:
    • Open demo\demo.as3proj in FlashDevelop
    • Press F5 to run the application
    The demo was created by:
    • Project / New Project ... / AIR Mobile AS3 App
    • Follow instructions in AIR_Android/iOS_readme.txt
    • In application.xml change / add the contents of to:
      1. <application>
      2.     <!-- Activities -->
      3.     <activity android:name="com.fortumo.android.extension.CustomPaymentActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
      4.     <activity android:name="com.fortumo.android.FortumoActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
      5.     <!-- Service -->
      6.     <service android:name="com.fortumo.android.FortumoService" />
      7. </application>
      复制代码

      • In application.xml add before :com.fortumo.extension
      • In Packager.bat change:
      1. call adt -package -target %TYPE%%TARGET% %OPTIONS% %SIGNING_OPTIONS% "%OUTPUT%" "%APP_XML%" %FILE_OR_DIR%
      复制代码
      to:
      1. call adt -package -target %TYPE%%TARGET% %OPTIONS% %SIGNING_OPTIONS% "%OUTPUT%" "%APP_XML%" %FILE_OR_DIR% -extdir ext
      复制代码
    • In Run.bat replace:
      1. adl -screensize %SCREEN_SIZE% "%APP_XML%" "%APP_DIR%"
      复制代码
      with:
      1. rmdir /q /s ext_unpacked mkdir ext_unpacked\FortumoExtension.ane unzip -q ext\FortumoExtension.ane -d ext_unpacked\FortumoExtension.ane adl -screensize %SCREEN_SIZE% "%APP_XML%" "%APP_DIR%" -extdir ext_unpacked
      复制代码

    • In SetupSDK.bat add the variable JAVA_SDK
    • Add to Packager.bat:
      1. if "%PLATFORM%" NEQ "android" goto skip-fortumo-res call AddFortumoRes.bat if errorlevel 1 goto failed :skip-fortumo-res
      复制代码

    • Make sure the path to FortumoInApp-android-7.3.461.jar is correct in AddFortumoRes.bat
    • Add folder 'ext' and copy FortunoExtension.ane to it
      Right click FortunoExtension.ane and select 'Add To Library' Right click FortunoExtension.ane and select 'Options...' and select 'External Library (not included)'
    • Edited demo\src\com\fortumo\demo\Main.as, main payment code is:
      1. var f: Fortumo = new Fortumo(); f.setService("", ""); f.setConsumable(false); f.setDisplayString("This is a test purchase"); f.setProductName("TestProduct"); f.addEventListener(StatusEvent.STATUS, onStatusUpdate); f.makePayment();
      复制代码

      • Make sure you don't call NativeApplication.nativeApplication.exit() in your deactivation handler (activating the Fortumo screen calls this handler)
      • Make sure you're running Java 6 and not Java 7 (this will cause signing errors!)




        相关链接:
        https://github.com/jrouwe/FortumoANE


    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有帐号?立即注册

    x
    守望者AIR技术交流社区(www.airmyth.com)
    回复

    使用道具 举报

  • TA的每日心情
    擦汗
    2018-4-10 15:18
  • 签到天数: 447 天

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    562
    贡献
    29
    金币
    52622
    钢镚
    1422

    开源英雄守望者

     楼主| 发表于 2015-1-30 17:24:14 | 显示全部楼层
    守望者AIR技术交流社区(www.airmyth.com)
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    
    关闭

    站长推荐上一条 /4 下一条

    QQ|手机版|Archiver|网站地图|小黑屋|守望者 ( 京ICP备14061876号

    GMT+8, 2024-3-29 16:34 , Processed in 0.049957 second(s), 33 queries .

    守望者AIR

    守望者AIR技术交流社区

    本站成立于 2014年12月31日

    快速回复 返回顶部 返回列表