Integrate SDK

Xcode Demo Project

This demo app demonstrates a barebone application that includes the iOS SDK libraries required. No drone is necessary for this demo.

Create a New Application

  1. Open Xcode 8.0+.
  2. Create a new project: Select File -> New -> Project.
  3. Select the 'Single View Application' template.
  4. Click Next.screenShot

     

  5. Use a Product Name of your choice.

  6. Leave all the other settings as default and click on Create to open the project.

Import Framework

The iOS SDK framework is imported with Carthage, a simple dependency manager for Cocoa.

 

  1. Install Carthage
    brew install carthage

     

  2. To add the Dronecode Swift SDK and Yuneec-MFiAdapter frameworks, create the file Cartfile in your app’s repository with the lines below:

    
    github "Dronecode/DronecodeSDK-Swift" ~> 0.2.1
    github "YUNEEC/Yuneec-MFiAdapter" "master"
    
  3. Download the frameworks using the command below.
    carthage update 
  4. This project also requires other frameworks, which can be downloaded
    • Either from MFiAdapter repository
    • Or by downloading the frameworks from the H520 update page
    • More information regarding this can be found in README of the example app

     

  5. Click on the project and select the General tab. Click on '+' in the Embedded Binaries section.Xcode Setup

     

  6. Click 'Add Other...' on the popup dialog and go to Carthage/Build/iOS/.

     

  7. Select all the frameworks required for the project.

     

  8. Hurray! The frameworks are now imported.

     

Android Studio

Import Yuneec Android SDK Library in Android Studio Project 

To integrate with the Yuneec Android SDK in your Android application, you should add the following to the root build.grade:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Then, add the below dependency to the app's build.gradle:

compile 'com.github.YUNEEC:Yuneec-SDK-Android:vX.Y.Z'

where X.Y.Z is the version to select.

To see all the available versions, go to Jitpack. In the look up box paste YUNEEC/Yuneec-SDK-Android. 

Please choose the latest version of the SDK to integrate with your project.