-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding UX SDK v5 Beta 1 code and documentation
- Loading branch information
Showing
219 changed files
with
29,222 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# built application files | ||
*.apk | ||
*.ap_ | ||
|
||
# files for the dex VM | ||
*.dex | ||
|
||
# Java class files | ||
*.class | ||
|
||
# generated files | ||
bin/ | ||
gen/ | ||
obj/ | ||
build/ | ||
captures/ | ||
lint.xml | ||
|
||
# Local configuration file (sdk/lib path, etc) | ||
/local.properties | ||
/project.properties | ||
|
||
# Eclipse project files | ||
/.classpath | ||
.settings/ | ||
.gradle/ | ||
.idea/ | ||
|
||
# Intellij project files | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
*.iml | ||
|
||
# Mac files | ||
.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
language: android | ||
sudo: required | ||
|
||
env: | ||
global: | ||
- ANDROID_API_LEVEL=28 | ||
- ANDROID_BUILD_TOOLS_VERSION=28.0.3 | ||
- ANDROID_ABI=armeabi-v7a | ||
|
||
android: | ||
components: | ||
- tools | ||
- platform-tools | ||
- tools | ||
- extra-android-m2repository | ||
licenses: | ||
- 'android-sdk-preview-license-52d11cd2' | ||
- 'android-sdk-license-.+' | ||
- 'google-gdk-license-.+' | ||
|
||
before_install: | ||
- touch $HOME/.android/repositories.cfg | ||
- yes | sdkmanager "platforms;android-28" | ||
- yes | sdkmanager "build-tools;28.0.3" | ||
|
||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/ | ||
|
||
cache: | ||
directories: | ||
- $HOME/.gradle/caches/ | ||
- $HOME/.gradle/wrapper/ | ||
- $HOME/.android/build-cache | ||
|
||
before_script: | ||
- chmod +x gradlew | ||
|
||
script: | ||
- ./gradlew clean build | ||
- ./gradlew test | ||
|
||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2018-2019 DJI | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,32 @@ | ||
# Open-Source-UXSDK-Android | ||
DJI Android UXSDK Open Source | ||
# DJI Android UX SDK | ||
|
||
The DJI UX SDK speeds up development time by providing UI elements for all core functionalities, and by using it in conjunction with the [DJI Mobile SDK](https://developer.dji.com/mobile-sdk/) you can create a customized mobile app to unlock the full potential of your DJI aerial platform. Using the default UX SDK, an application can be created with no additional lines of code; you can also pick and choose which elements you want to use for maximum UI flexibility. | ||
|
||
With the UX SDK 5 Beta 1 version we are introducing an easy way to customize all the UI elements, as well as extend the base classes to build your own custom widgets. For more details, see the [UX SDK 5.0 overview](https://github.com/dji-sdk/Mobile-UXSDK-Beta-Android/wiki/UX-SDK-5.0-Overview). | ||
|
||
Check out our sample app code in this repository with instructions on how to get started [here](https://github.com/dji-sdk/Mobile-UXSDK-Beta-Android/wiki/Sample-Application-Tutorial). | ||
|
||
## Installation | ||
|
||
Read the [documentation for installation](https://github.com/dji-sdk/Mobile-UXSDK-Beta-Android/wiki/Installation) to learn more about including this library in your applications. | ||
|
||
## Documentation | ||
|
||
You can find the UX SDK documentation on the [wiki](https://github.com/dji-sdk/Mobile-UXSDK-Beta-Android/wiki). This includes - | ||
* UX SDK 5.0 overview and main concepts | ||
* Documentation for all the individual widgets | ||
* Sample app tutorial | ||
* Contribution guidelines | ||
* Where to get support | ||
|
||
## How to Contribute | ||
|
||
As always, the DJI Dev Team is committed to improving your developer experience. Please follow our guidelines on the [How to Contribute](https://github.com/dji-sdk/Mobile-UXSDK-Beta-Android/wiki/How-to-Contribute) page on our wiki for filling out any bugs or feature requests, or contributing to the code base. If you have any other questions, please send an email to [email protected]. We recommend frequently checking the Github repositories for changes and new releases. | ||
|
||
## License | ||
Mobile-UXSDK-Beta-Android is available under the the MIT license. Please see the `LICENSE.txt` file for more info. | ||
|
||
## Future Plans | ||
This Beta 1 release only contains a small subset of UX SDK elements. We are eager to give you a sneak peek, and are very interested in receiving your feedback and suggestions. Please refer to the wiki or the release notes for the full list of elements that the Beta 1 version makes available. | ||
|
||
Our long-term plan is for this framework to reach feature parity with the UX SDK 4.10 release. The core team is currently working on porting the remaining widgets and other APIs to the new architecture and we will open source them in additional future Beta releases as they are completed. We welcome your feedback on the architecture and your ideas for addional widgets, including those not included in prior UX SDK releases, as well as your contributions and PRs for any ***currently open-sourced features***. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
/* | ||
* Copyright (c) 2018-2019 DJI | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
*/ | ||
|
||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 27 | ||
defaultConfig { | ||
applicationId "com.dji.ux.beta.sample" | ||
minSdkVersion 16 | ||
targetSdkVersion 27 | ||
multiDexEnabled true | ||
vectorDrawables.useSupportLibrary = true | ||
ndk { | ||
// On x86 devices that run Android API 23 or above, if the application is targeted with API 23 or | ||
// above, FFmpeg lib might lead to runtime crashes or warnings. | ||
abiFilters 'armeabi-v7a', 'x86', 'arm64-v8a' | ||
} | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
dexOptions { | ||
javaMaxHeapSize "3g" | ||
} | ||
lintOptions{ | ||
abortOnError false | ||
} | ||
packagingOptions{ | ||
doNotStrip "*/*/libdjivideo.so" | ||
doNotStrip "*/*/libSDKRelativeJNI.so" | ||
doNotStrip "*/*/libFlyForbid.so" | ||
doNotStrip "*/*/libduml_vision_bokeh.so" | ||
doNotStrip "*/*/libyuv2.so" | ||
doNotStrip "*/*/libGroudStation.so" | ||
doNotStrip "*/*/libFRCorkscrew.so" | ||
doNotStrip "*/*/libUpgradeVerify.so" | ||
doNotStrip "*/*/libFR.so" | ||
doNotStrip "*/*/libDJIFlySafeCore.so" | ||
doNotStrip "*/*/libdjifs_jni.so" | ||
doNotStrip "*/*/libsfjni.so" | ||
|
||
pickFirst 'lib/*/libstlport_shared.so' | ||
pickFirst 'lib/*/libRoadLineRebuildAPI.so' | ||
pickFirst 'lib/*/libGNaviUtils.so' | ||
pickFirst 'lib/*/libGNaviMapex.so' | ||
pickFirst 'lib/*/libGNaviData.so' | ||
pickFirst 'lib/*/libGNaviMap.so' | ||
pickFirst 'lib/*/libGNaviSearch.so' | ||
pickFirst 'lib/*/libDJIFlySafeCore.so' | ||
pickFirst 'lib/*/libdjifs_jni.so' | ||
pickFirst 'lib/*/libsfjni.so' | ||
exclude 'META-INF/rxjava.properties' | ||
} | ||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
configurations.all { | ||
resolutionStrategy.force 'com.android.support:support-annotations:27.0.0' | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation ('com.dji:dji-uxsdk:4.10') | ||
implementation ('com.dji:dji-sdk:4.10', { | ||
// Uncomment the following line if your app does not need Anti Distortion for | ||
// Mavic 2 Pro and Mavic 2 Zoom. It will greatly reducing the size of the APK: | ||
// exclude module: 'library-anti-distortion' | ||
}) | ||
compileOnly ('com.dji:dji-sdk-provided:4.10') | ||
|
||
implementation 'com.android.support:appcompat-v7:27.0.0' | ||
implementation 'com.android.support:support-v4:27.0.0' | ||
implementation 'com.android.support:recyclerview-v7:27.0.0' | ||
implementation 'com.android.support.constraint:constraint-layout:1.1.2' | ||
implementation 'com.android.support:support-annotations:27.0.0' | ||
|
||
implementation 'com.jakewharton:butterknife:8.8.1' | ||
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1' | ||
implementation 'com.amap.api:map2d:5.2.0' | ||
implementation 'com.amap.api:3dmap:5.5.0' | ||
implementation 'com.amap.api:search:5.5.0' | ||
implementation 'com.amap.api:location:3.6.1' | ||
implementation files('libs/HERE-sdk-3.8.0.aar') | ||
implementation project(":android-uxsdk-beta") | ||
implementation 'android.arch.lifecycle:extensions:1.1.0' | ||
api 'com.google.android.gms:play-services-base:16.0.0' | ||
api 'com.google.android.gms:play-services-maps:16.0.0' | ||
api 'com.mapbox.mapboxsdk:mapbox-android-sdk:5.5.1' | ||
implementation ('com.mapbox.mapboxsdk:mapbox-sdk-services:4.0.0'){ | ||
exclude module:'gson' | ||
} | ||
|
||
testImplementation 'junit:junit:4.12' | ||
testImplementation 'org.mockito:mockito-core:2.18.3' | ||
androidTestImplementation 'org.mockito:mockito-android:2.6.2' | ||
androidTestImplementation 'com.android.support.test:runner:1.0.2' | ||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' | ||
androidTestImplementation 'com.android.support.test:rules:1.0.2' | ||
testImplementation 'org.robolectric:robolectric:3.8' | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
Oops, something went wrong.