Home - GameDistribution/GD-Android-AIR GitHub Wiki
There are three required files to use our API:
- GdAPi_v2.05.swc
- com.vooxe.air.ane
- com.vooxe.playerservices.ane
To include all files, it is required to click script settings (the button which orange square points at the picture below).
After opening script settings, at "Library path" section we need to locate our required files. The picture below illustrates this window. To import GDApi_v2.05.swc, after clicking "+(plus) button" click "add .swc library button(the button which orange square points)" and locate the path where your GDApi_v2.05.swc file is. To import com.vooxe.air.ane and com.vooxe.playerservices.ane, after clicking "+(plus) button" click "add .ane files" button(the button which red square points)" and locate the path where your ane files are.
To integrate our API properly, we need to make some configuration at your app.xml file.
- Add manifest additions. Copy and paste code block below into anywhere between application tags at your app.xml file.
<android>
<manifestAdditions><![CDATA[<manifest>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="19" />
<application>
<!-- this meta-data tag is required for AdMob -->
<meta-data android:name="com.google.android.gms.version" android:value="9877000"/>
<!-- this activity is required for AdMob -->
<activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
</application>
</manifest>]]></manifestAdditions>
</android>
- Make sure your app.xml file includes the code block below after importing required .ane files.
<extensions>
<extensionID>com.vooxe.air.extension</extensionID>
<extensionID>com.vooxe.playservices.GoogleServices</extensionID>
</extensions>