Then select the global you wish to use and click OK: To use a global library ANE simply go to the Dependencies tab of your module settings, select add a dependency and select Project or Global Library: Then simply navigate to an ANE and select it. To add a new global, click the + button at the top and select Actionscript/Flex: Having them defined as globals makes it much easier to add them to your projects. In the list above you can see all the Google Play Services, Android support and Core ANEs which we use in just about every project. To add a global library, open your module settings and select Global Libraries: This is particularly useful for ANEs that are used across all projects, such as the Google Play Services ANEs, Android Support ANEs and the Core ANE. This allows you to setup the path to ANEs (or SWCs) that you use regularly as a global reference and then just select them from the list of globals when adding to a project. Specifying ANEs as Global Libraries Ī useful feature of IntelliJ is being able to setup global libraries. You will now be able to package and use the extension in your application. If you have any concerns drop a question in github and we will clear up any confusion. The extension id is the first part of the filename without the variant: i.e. With the distriqt extensions the extension id is the name of the ANE file, eg for the Battery ANE the file is and the extension id is .Įxtensions that have multiple versions, eg PushNotifications, where there are multiple files: To add the extension id, open up your application descriptor and add the extension id to the extensions node as below: The extension id should be provided by the developer of the ANE. The extension id is a string that is used to identify the ANE and correctly package and create the extension. IntelliJ requires that you manually add the extension id to your application descriptor. For example in the following screen shot we have added the Battery ANE: Navigate to the location of your ANE and once selected it should appear in the window as a dependency. This lists all the libraries that your project depends on including SWCs, ANEs and other build configurations.Īt the bottom of the window, select the + icon to add a dependency and select New library. Open the project you wish to use the ANE and open the module settings of the main module for your application. We are assuming you have already been through the process of getting AIR development setup in IntelliJ including: You don’t need access to a separate SWC file or to the source code to be able to use the ANE. This file contains all of the native and actionscript libraries that are implemented by this extension. This tutorial will guide you the process of adding an ANE to your AIR application project in IntelliJ IDEA.Īn AIR Native Extension (ANE) is a single file with the extension ane.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |