Skip to content

beyond21299/Mobile-SDK-Android-V5

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DJI Mobile SDK for Android V5 Latest Version 5.1.0

中文版

What is DJI Mobile SDK V5?

DJI Mobile SDK V5 has a series of APIs to control the software and hardware interfaces of an aircraft. We provide an open source production sample and a tutorial for developers to develop a more competitive drone solution on mobile device. This improves the experience and efficiency of MSDK App development.

Supported Product:

Project Directory Introduction

├── Docs
│   ├── API-Diff
│   │   ├── 5.0.0_5.1.0_android_diff.html
│   │   ├── 5.0.0_beta2_5.0.0_beta3_android_diff.html
│   │   └── 5.0.0_beta3_5.0.0_android_diff.html
│   └── Android_API
│       ├── cn
│       └── en
├── LICENSE.txt
├── README.md
├── README_CN.md
└── SampleCode-V5
    ├── android-sdk-v5-as
    │   ├── build
    │   ├── build.gradle
    │   ├── dependencies.gradle
    │   ├── gradle
    │   ├── gradle.properties
    │   ├── gradlew
    │   ├── gradlew.bat
    │   ├── libs
    │   ├── local.properties
    │   ├── msdkkeystore.jks
    │   ├── proguard-relative
    │   └── settings.gradle
    ├── android-sdk-v5-sample
    │   ├── app-aircraft
    │   ├── app-all
    │   ├── app-handheld
    │   ├── module-aircraft
    │   ├── module-common
    │   └── module-handheld
    └── android-sdk-v5-uxsdk
        ├── build
        ├── build.gradle
        └── src


API Difference

Offline Documentation

Software License

The DJI Android SDK is dynamically linked with unmodified libraries of FFmpeg licensed under the LGPLv3.0. The source code of these FFmpeg libraries, the compilation instructions, and the LGPL v3.0 license are provided in Github. The DJI Sample Code V5 in this repo is offered under MIT License.

Sample Explanation

Sample can be divided into three parts:

  • Basic module: Provides basic operation of every poduct package.
  • Scenographic Sample: Provides scenographic sample support of aircraft.
  • App Module: Used to configure three Apps, which are aircraft, handheld product and all products.

For detailed configuration, please refer to settings.gradle.

Basic module:

  • sample-module-common: Common code of aircraft App and handheld App.
  • sample-module-aircraft: Unique code of aircraft App, which depends on sample-module-common.
  • sample-module-handheld:Unique code of handheld App, which depends on sample-module-common.

Scenographic Sample:

  • uxsdk: Scenographic Sample. Currently only aircraft(dji-sdk-v5-aircraft or dji-sdk-v5-all) are supported.

App module:

  • sample-app-aircraft:Compile aircraft App, which depends on sample-module-aircraft, uxsdk.
  • sample-app-handheld:Compile handheld App, which depends on sample-module-handheld.
  • sample-app-all:Compile all product App, which depends on sample-module-aircraft, sample-module-handheld, uxsdk.

Integration

For further detail on how to integrate the DJI Android SDK into your Android Studio project, please check the tutorial:

AAR Explanation

Notice: sdkVersion = 5.1.0

SDK package
Explanation
How to use
dji-sdk-v5-aircraft Aircraft main package, which provides support for MSDK to control the aircraft. implementation 'com.dji:dji-sdk-v5-aircraft:{sdkVersion}'
dji-sdk-v5-aircraft-provided Aircraft compilation package, which provides interfaces related to the aircraft package. compileOnly 'com.dji:dji-sdk-v5-aircraft-provided:{sdkVersion}'
dji-sdk-v5-handheld
(Not official released version)
Handheld main package, which provides support for MSDK to control handheld product. implementation 'com.dji:dji-sdk-v5-handheld:{sdkVersion}'
dji-sdk-v5-handheld-provided
(Not official released version)
Handheld compilation package, which provides interfaces related to handheld package. compileOnly 'com.dji:dji-sdk-v5-handheld-provided:{sdkVersion}'
dji-sdk-v5-all
(Not official released version)
Main package of all product, which provides support for MSDK to control aircraft and handheld product. implementation 'com.dji:dji-sdk-v5-all:{sdkVersion}'
dji-sdk-v5-all-provided
(Not official released version)
Compilation package of all product, which provides interfaces related to all product. compileOnly 'com.dji:dji-sdk-v5-all-provided:{sdkVersion}'
dji-sdk-v5-networkImp Network library package, which provides network connection ability for MSDK. Without this dependency, all network functions of MSDK will not work, but the interfaces of hardware control can be used normally. runtimeOnly 'com.dji:dji-sdk-v5-networkImp:{sdkVersion}'
  • If only the aircraft product is in need to support, please use:

    implementation 'com.dji:dji-sdk-v5-aircraft:{sdkVersion}'
    compileOnly 'com.dji:dji-sdk-v5-aircraft-provided:{sdkVersion}'
  • If only the handheld product is in need to support, please use:

    implementation 'com.dji:dji-sdk-v5-handheld:{sdkVersion}'
    compileOnly 'com.dji:dji-sdk-v5-handheld-provided:{sdkVersion}'
  • If the aircraft and handheld product are in need to support, please use:

    implementation 'com.dji:dji-sdk-v5-all:{sdkVersion}'
    compileOnly 'com.dji:dji-sdk-v5-all-provided:{sdkVersion}'
  • If the MSDK have to use network(required by default), please use:

    runtimeOnly 'com.dji:dji-sdk-v5-networkImp:{sdkVersion}'

Support

You can get support from DJI with the following method:

Join Us

DJI is looking for all kinds of Software Engineers to continue building the Future of Possible. Available positions in Shenzhen, China and around the world. If you are interested, please:

For more details, and list of all our global offices, please check https://we.dji.com/jobs_en.html.

About

MSDK V5 Sample

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 58.1%
  • Java 41.8%
  • HTML 0.1%