Skip to content

Commit 7855dcd

Browse files
authored
Merge pull request #5 from xBambusekD/main
update – jpeg synchronized stream and virtual sticks support
2 parents a419ffd + 6aad419 commit 7855dcd

21 files changed

+1278
-603
lines changed

DjiStreamer/.idea/compiler.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DjiStreamer/.idea/gradle.xml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DjiStreamer/.idea/jarRepositories.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DjiStreamer/.idea/misc.xml

Lines changed: 19 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DjiStreamer/app/build.gradle

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ repositories {
77

88
android {
99
compileSdkVersion 32
10-
buildToolsVersion '29.0.3'
1110
useLibrary 'org.apache.http.legacy'
1211

1312
defaultConfig {
@@ -62,6 +61,10 @@ android {
6261
doNotStrip "*/*/libAMapSDK_MAP_v6_9_2.so"
6362
doNotStrip "*/*/libDJIMOP.so"
6463
exclude 'META-INF/rxjava.properties'
64+
exclude 'META-INF/INDEX.LIST'
65+
exclude 'META-INF/LICENSE'
66+
exclude 'META-INF/NOTICE'
67+
exclude 'META-INF/io.netty.versions.properties'
6568
}
6669

6770
compileOptions {
@@ -74,27 +77,45 @@ android {
7477
dependencies {
7578
implementation 'androidx.multidex:multidex:2.0.0'
7679
implementation 'com.squareup:otto:1.3.8'
77-
implementation('com.dji:dji-sdk:4.16.4', {
80+
implementation('com.dji:dji-sdk:4.17', {
7881
/**
7982
* Uncomment the "library-anti-distortion" if your app does not need Anti Distortion for Mavic 2 Pro and Mavic 2 Zoom.
8083
* Uncomment the "fly-safe-database" if you need database for release, or we will download it when DJISDKManager.getInstance().registerApp
8184
* is called.
8285
* Both will greatly reducing the size of the APK.
8386
*/
8487
exclude module: 'library-anti-distortion'
85-
//exclude module: 'fly-safe-database'
88+
exclude module: 'fly-safe-database'
8689
})
87-
compileOnly 'com.dji:dji-sdk-provided:4.16.4'
90+
compileOnly 'com.dji:dji-sdk-provided:4.17'
8891

8992
implementation 'androidx.appcompat:appcompat:1.0.0'
9093
implementation 'androidx.core:core:1.0.0'
9194
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
9295
implementation 'androidx.recyclerview:recyclerview:1.0.0'
9396
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0-rc01'
9497
implementation 'androidx.annotation:annotation:1.0.0'
95-
implementation 'com.dji:dji-uxsdk:4.15'
98+
implementation ('com.dji:dji-uxsdk:4.16.2', {
99+
/**
100+
* Comment the "library-anti-distortion" if your app does need Anti Distortion for Mavic 2 Pro and Mavic 2 Zoom.
101+
* Comment the "fly-safe-database" if you do not need database for release, or we will download it when DJISDKManager.getInstance().registerApp
102+
* is called.
103+
* Both will greatly reduce the size of the APK.
104+
*/
105+
exclude module: 'library-anti-distortion'
106+
exclude module: 'fly-safe-database'
107+
108+
/**
109+
* Uncomment the following line to exclude amap from the app.
110+
* Note that Google Play Store does not allow APKs that include this library.
111+
*/
112+
// exclude group: 'com.amap.api'
113+
})
114+
compileOnly ('com.dji:dji-sdk-provided:4.16.2')
115+
implementation 'io.projectreactor.netty:reactor-netty-core:1.1.21'
116+
implementation 'io.projectreactor.netty:reactor-netty-http:1.1.21'
96117

97-
implementation fileTree(include: ['*.jar'], dir: 'libs')
118+
implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
98119
testImplementation 'junit:junit:4.12'
99120

100121
//implementation 'tech.gusavila92:java-android-websocket-client:1.2.2'

DjiStreamer/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
android:icon="@mipmap/ic_launcher"
3636
android:label="@string/app_name"
3737
android:supportsRtl="true"
38-
android:theme="@style/AppTheme">
38+
android:theme="@style/AppTheme"
39+
android:networkSecurityConfig="@xml/network_security_config">
3940

4041
<!-- DJI SDK -->
4142
<uses-library android:name="com.android.future.usb.accessory" />

0 commit comments

Comments
 (0)