Home - GameDistribution/GD-iOS-AIR GitHub Wiki

Integrate API

Include Required Files

There are three required files to use our API:

  • GdAPi_iOS_v1.00.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_iOS_v1.00.swc, after clicking "+(plus) button" click "add .swc library button(the button which orange square points)" and locate the path where your GdAPi_iOS_v1.00.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.

XML Configuration

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.
  <iPhone>
    <InfoAdditions><![CDATA[
  <key>UIDeviceFamily</key>
  <array>
    <string>1</string>
    <string>2</string>
  </array>
  <key>NSAppTransportSecurity</key>
  <dict>
    <key>NSExceptionDomains</key>
    <dict>
      <key>submityourgame.com</key>
      <dict>
        <!--Include to allow subdomains-->
        <key>NSIncludesSubdomains</key>
        <true/>
        <!--Include to allow HTTP requests-->
        <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
        <true/>
        <!--Include to specify minimum TLS version-->
        <key>NSTemporaryExceptionMinimumTLSVersion</key>
        <string>TLSv1.1</string>
      </dict>
      <key>vooxe.com</key>
      <dict>
        <!--Include to allow subdomains-->
        <key>NSIncludesSubdomains</key>
        <true/>
        <!--Include to allow HTTP requests-->
        <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
        <true/>
        <!--Include to specify minimum TLS version-->
        <key>NSTemporaryExceptionMinimumTLSVersion</key>
        <string>TLSv1.1</string>
      </dict>
    </dict>
  </dict>
]]></InfoAdditions>
    <requestedDisplayResolution>high</requestedDisplayResolution>
  </iPhone>  

  • 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>
⚠️ **GitHub.com Fallback** ⚠️