Skip to content

Commit a955893

Browse files
committed
init for 5.0.0 beta1
1 parent a14deae commit a955893

File tree

241 files changed

+17205
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+17205
-24
lines changed

.gitignore

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Built application files
22
*.apk
3-
*.aar
43
*.ap_
54
*.aab
65

@@ -83,3 +82,15 @@ lint/generated/
8382
lint/outputs/
8483
lint/tmp/
8584
# lint/reports/
85+
86+
# Android Profiling
87+
*.hprof
88+
89+
*.DS_Store
90+
91+
# ivtTest
92+
android-sdk-v5-ivt/tools/*_testfile.txt
93+
android-sdk-v5-ivt/tools/results/
94+
95+
.idea/
96+
.userinfo

LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,29 @@
1-
# Mobile-SDK-Android-V5
2-
MSDK V5 Sample
1+
# DJI Mobile SDK for Android V5 Latest Version 5.0.0 beta1
2+
3+
## What Is This?
4+
5+
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.
6+
7+
## Integration
8+
9+
For further detail on how to integrate the DJI Android SDK into your Android Studio project, please check the [Integrate SDK into Application] tutorial.
10+
11+
## License
12+
13+
The DJI Android SDK is dynamically linked with unmodified libraries of <a href=http://ffmpeg.org>FFmpeg</a> licensed under the <a href=https://www.gnu.org/licenses/lgpl-3.0.html.en>LGPLv3.0</a>. The source code of these FFmpeg libraries, the compilation instructions, and the LGPL v3.0 license are provided in [Github](https://github.com/dji-sdk/FFmpeg).
14+
15+
The DJI Android SDK is dynamically linked with unmodified libraries of <a href=https://mvnrepository.com/artifact/com.vividsolutions/jts/1.8>JTS Topology Suite</a> licensed under the <a href=https://www.gnu.org/licenses/lgpl-3.0.html.en>LGPLv3.0</a>.
16+
17+
## Support
18+
19+
You can get support from DJI with the following methods:
20+
21+
- Post questions in DJI Developer Forums:
22+
[**Chinese Forum**](https://djisdksupport.zendesk.com/hc/zh-cn/community/topics)
23+
, [**English Forum**](https://djisdksupport.zendesk.com/hc/en-us/community/topics)
24+
25+
## Join Us
26+
27+
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 send your resume to <[email protected]>. For more details, and list of all our global offices, please check <https://we.dji.com/jobs_en.html>.
28+
29+
DJI 招软件工程师啦,based在深圳,如果你想和我们一起把DJI产品做得更好,请发送简历到 <[email protected]>. 或者在这里提交您的简历:https://we.dji.com/zh-CN/position/detail?positionId=1382258951346253824 更多岗位详情请浏览 <https://we.dji.com/zh-CN/social>.

android-sdk-v5-as/build.gradle

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
apply from: rootProject.file('dependencies.gradle')
3+
4+
buildscript {
5+
repositories {
6+
google()
7+
jcenter()
8+
mavenCentral()
9+
maven { url 'https://maven.fabric.io/public' }
10+
maven { url 'https://plugins.gradle.org/m2/' }
11+
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
12+
}
13+
14+
dependencies {
15+
classpath 'com.android.tools.build:gradle:4.2.2'
16+
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'
17+
classpath 'com.github.kezong:fat-aar:1.3.6'
18+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
19+
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.1.1'
20+
classpath "org.jacoco:org.jacoco.core:0.8.7"
21+
}
22+
}
23+
24+
allprojects {
25+
repositories {
26+
google()
27+
jcenter()
28+
mavenCentral()
29+
maven {
30+
url SAFEROOM_MAVEN
31+
}
32+
maven {
33+
url KOTLIN_MAVEN
34+
}
35+
repositories {
36+
flatDir {
37+
dirs new File(rootProject.projectDir.getAbsolutePath() + '/libs')
38+
}
39+
}
40+
}
41+
}
42+
43+
task clean(type: Delete) {
44+
delete rootProject.buildDir
45+
}

android-sdk-v5-as/dependencies.gradle

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
ext {
2+
deps = [:]
3+
// 三方依赖库
4+
deps.amUtilViewpager = 'am.util:viewpager:25.1.0'
5+
deps.bcpkix = 'org.bouncycastle:bcpkix-jdk15on:1.57'
6+
deps.bcprov = 'org.bouncycastle:bcprov-jdk15on:1.57'
7+
deps.eventbusProcessor = 'org.greenrobot:eventbus-annotation-processor:3.0.1'
8+
deps.eventbus = 'org.greenrobot:eventbus:3.0.0'
9+
deps.gson = 'com.google.code.gson:gson:2.8.5'
10+
deps.hugo = 'com.jakewharton.hugo:hugo-annotations:1.2.1'
11+
deps.mapbox = 'com.mapbox.mapboxsdk:mapbox-android-sdk:9.2.0'
12+
deps.mapboxService = 'com.mapbox.mapboxsdk:mapbox-sdk-services:4.0.0'
13+
deps.mapboxTurf = 'com.mapbox.mapboxsdk:mapbox-sdk-turf:4.0.0'
14+
deps.mapzenLost = 'com.mapzen.android:lost:3.0.4'
15+
deps.okhttpLoggingInterceptor = 'com.squareup.okhttp3:logging-interceptor:3.14.9'
16+
deps.okio = 'com.squareup.okio:okio:1.15.0'
17+
deps.firebaseAnalytics = 'com.google.firebase:firebase-analytics'
18+
deps.firebaseCore = 'com.google.firebase:firebase-core'
19+
deps.rx3Android = 'io.reactivex.rxjava3:rxandroid:3.0.0'
20+
deps.rx3Java = 'io.reactivex.rxjava3:rxjava:3.0.0'
21+
deps.room_safe = 'com.commonsware.cwac:saferoom.x:1.3.0'
22+
deps.tagtabstrip = 'am.widget:tagtabstrip:25.1.0'
23+
deps.wire = 'com.squareup.wire:wire-runtime:2.2.0'
24+
deps.websocket = 'org.java-websocket:Java-WebSocket:1.5.1'
25+
deps.amap3DMap = 'com.amap.api:3dmap:7.3.0'
26+
deps.amapSearch = 'com.amap.api:search:7.3.0'
27+
deps.amapLocation = 'com.amap.api:location:4.9.0'
28+
deps.protobufJava = 'com.google.protobuf:protobuf-java:3.8.0'
29+
deps.okhttp3 = 'com.squareup.okhttp3:okhttp:3.14.9'
30+
31+
//androidx
32+
deps.fragment = 'androidx.fragment:fragment:1.2.0'
33+
deps.aacCommon = 'androidx.arch.core:core-common:2.1.0'
34+
deps.aacRuntime = 'androidx.arch.core:core-runtime:2.1.0'
35+
deps.annotation = 'androidx.annotation:annotation:1.1.0'
36+
deps.appcompat = 'androidx.appcompat:appcompat:1.2.0'
37+
deps.cardview = 'androidx.cardview:cardview:1.0.0'
38+
deps.constraintLayout = 'androidx.constraintlayout:constraintlayout:1.1.3'
39+
deps.multidex = 'androidx.multidex:multidex:2.0.1'
40+
deps.testEspresso = 'androidx.test.espresso:espresso-core:3.1.0'
41+
deps.recyclerview = 'androidx.recyclerview:recyclerview:1.1.0'
42+
deps.paging = 'androidx.paging:paging-runtime:2.1.2'
43+
deps.lifecycleExtensions = 'androidx.lifecycle:lifecycle-extensions:2.3.1'
44+
deps.lifecycleJava8 = 'androidx.lifecycle:lifecycle-common-java8:2.3.1'
45+
deps.lifecycleRuntime = 'androidx.lifecycle:lifecycle-runtime:2.3.1'
46+
deps.lifecycleViewModel = 'androidx.lifecycle:lifecycle-viewmodel:2.3.1'
47+
deps.lifecycleLiveData = 'androidx.lifecycle:lifecycle-livedata:2.3.1'
48+
deps.lifecycleProcess = 'androidx.lifecycle:lifecycle-process:2.3.1'
49+
deps.room = 'androidx.room:room-runtime:2.2.6'
50+
deps.room_rxjava = 'androidx.room:room-rxjava2:2.1.0'
51+
deps.room_compiler = 'androidx.room:room-compiler:2.2.6'
52+
deps.legacySupport = 'androidx.legacy:legacy-support-v4:1.0.0'
53+
deps.media = 'androidx.media:media:1.0.0'
54+
55+
//kotlin
56+
deps.kotlinLib = "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$KOTLIN_VERSION"
57+
deps.ktxCore = "androidx.core:core-ktx:1.3.2"
58+
deps.ktxFrag = "androidx.fragment:fragment-ktx:1.3.3"
59+
deps.ktxNavigation = "androidx.navigation:navigation-fragment-ktx:2.2.1"
60+
deps.ktxNavigationUi = "androidx.navigation:navigation-ui-ktx:2.2.1"
61+
62+
deps.networkRtkHelper = "com.dji:library-networkrtk-helper:2.0.2"
63+
64+
//测试
65+
deps.junit4 = "junit:junit:4.12"
66+
deps.jnitCore = 'androidx.test:core:1.0.0'
67+
deps.robolectric = 'org.robolectric:robolectric:4.6.1'
68+
deps.testRunner = 'androidx.test:runner:1.4.0'
69+
deps.junitExt = 'androidx.test.ext:junit:1.1.2'
70+
deps.espressoCore = 'androidx.test.espresso:espresso-core:3.3.0'
71+
}

android-sdk-v5-as/gradle.properties

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#gralde build config
2+
org.gradle.daemon=true
3+
org.gradle.parallel=true
4+
org.gradle.configureondemand=true
5+
org.gradle.jvmargs=-Xmx4608M
6+
7+
#use androidX
8+
android.useAndroidX=true
9+
android.enableJetifier=true
10+
11+
#build config
12+
ANDROID_MIN_SDK_VERSION=21
13+
ANDROID_TARGET_SDK_VERSION=29
14+
ANDROID_COMPILE_SDK_VERSION=29
15+
KOTLIN_VERSION = 1.6.10
16+
#NDK_VERSION = 21.3.6528147
17+
18+
#msdk api key
19+
AIRCRAFT_API_KEY = Please add you app key here.
20+
21+
#maven
22+
KOTLIN_MAVEN = https://dl.bintray.com/kotlin/kotlin-eap
23+
SAFEROOM_MAVEN = https://s3.amazonaws.com/repo.commonsware.com
24+
25+
#msdk aar 本地依赖配置
26+
#aar版本
27+
MSDK_VERSION = 5.0.0_beta1_322
28+
29+
#网络库
30+
NETWORK_IMP_RELEASE = android-sdk-v5-as/libs/networkImp/networkImp-release-
31+
32+
#默认:依赖加固包时
33+
PROVIDED_FILE_TYPE = .jar
34+
AAR_FILE_TYPE = _sec.aar
35+
AIRCRAFT_PROVIDED = android-sdk-v5-as/libs/aircraft/aircraft-provided-
36+
AIRCRAFT_RELEASE = android-sdk-v5-as/libs/aircraft/aircraft-release-
37+
38+
#依赖非加固包时
39+
#PROVIDED_FILE_TYPE = .aar
40+
#AAR_FILE_TYPE = .aar
41+
#AIRCRAFT_PROVIDED = android-sdk-v5-as/libs/aircraft/aircraft-release-
42+
#AIRCRAFT_RELEASE = android-sdk-v5-as/libs/aircraft/aircraft-release-
52.4 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Wed Mar 31 21:01:35 CST 2021
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip

0 commit comments

Comments
 (0)