守望者--AIR技术交流

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
热搜: ANE FlasCC 炼金术
查看: 811|回复: 0

[打包发布] ANE创建向导插件

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

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

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

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

    开源英雄守望者

    发表于 2015-1-22 11:40:57 | 显示全部楼层 |阅读模式
    Set of tools to speed up the creation of Air Native Extension (ANE).


    ANE-Wizard

    This wizard is a set of tools to help Air Mobile developers build ANE (Air Native Extensions) faster.

    What does it do exactly?

    The wizard is composed of 4 tools:

    • a Python script that will create the appropriate folders hierarchy for your ANE, and setup an Ant script to let you compile the ANE quickly
    • an updated version of Divij Kumar's Xcode template (https://github.com/divijkumar/xcode-template-ane) that let you quickly setup the iOS part of your ANE
    • an Eclipse "New ANE Project" wizard that let you quickly setup the Android part of your ANE
    • a Flash Builder "New ANE Project" wizard that let you quickly setup the Actionscript part of your ANE

    Installation

    Note: the path below might change depending on your system. I assume you are on OSX.

    • Unzip ANE-Wizard-Xcode.zip in the following directory:~/Library/Developer/Xcode/Templates/Project Templates (then restart Xcode)
    • Copy ANE-Wizard-Eclipse.jar in the following directory: /Applications/eclipse/plugins (then restart Eclipse)
    • Copy ANE-Wizard-FlashBuilder.jar in the following directory: /Applications/Adobe Flash Builder 4.6/eclipse/plugins (then restart Flash Builder)

    Creating a new ANE

    Let's say you want to create an extension named MyExtension at the path ~/Projects/MyExtension

    • In the Terminal, go to the ANE-Wizard folder.
    • Run ./newANE.py MyExtension ~/Projects/MyExtensions (at this point you should see new folders at ~/Projects/MyExtension)
    • Create a new Xcode project: File -> New -> Project -> Air Native Extension -> Air Native Extension for iOS. When prompted to choose a folder, choose ~/Projects/MyExtension/NativeIOS
    • Create a new Eclipse project: File -> New -> Project -> Air Native Extension (ANE) -> ANE Project. When prompted to choose a folder, choose ~/Projects/MyExtension/NativeAndroid
    • Create a new Flash Builder project: File -> New -> Project -> Air Native Extension (ANE) -> ANE Project. When prompted to choose a folder, choose ~/Projects/MyExtension/AS
    • In the Terminal, go to ~/Projects/MyExtension.
    • Run ant (at this point your ANE is at ~/Projects/MyExtension/Binaries/MyExtension.ane)

    Work in progress

    This wizard is a work in progress. We use it at FreshPlanet to speed up the development of our own ANEs and thought it might be useful to other developers. We haven't taken the time to make it completely independent, so you might want to update some of the auto-generated files.

    For example, the Eclipse and Flash Builder wizards use the com.freshplanet.ane package. You might want to replace it with your own. Also, the build.properties and NativeAndroid/.classpath files link to a Air SDK path that might be different on your machine.

    Problems / Feedback

    If you encounter an issue using this wizard, you can create a new Issue on Github. We'll do our best to help you, but don't guarantee we'll have time to do it promptly.

    If you need more information about ANEs, we recommand you read the following articles:













    相关链接:




    https://github.com/freshplanet/ANE-Wizard


    下载

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

    
    关闭

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

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

    GMT+8, 2019-10-22 06:48 , Processed in 0.039547 second(s), 32 queries .

    守望者AIR

    守望者AIR技术交流社区

    本站成立于 2014年12月31日

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