diff --git a/.gitignore b/.gitignore index 8aea7b811e..341f3a3e51 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,9 @@ proguard/ #Android Studio files *.iml .idea/ + +# Eclipse files +.metadata + +# Mac OSX files +.DS_Store diff --git a/.travis.yml b/.travis.yml index 89d8c7e4ef..971ebba42e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,8 +8,8 @@ android: before_script: - echo yes | android update sdk -u -a -t tools - - echo yes | android update sdk -u -a -t build-tools-20.0.0,build-tools-19.1.0 - - echo yes | android update sdk -u -a -t android-20,android-19 + - echo yes | android update sdk -u -a -t build-tools-21.0.1,build-tools-20.0.0,build-tools-19.1.0 + - echo yes | android update sdk -u -a -t android-21,android-20,android-19 - echo yes | android update sdk -u -a -t extra-google-m2repository - echo yes | android update sdk -u -a -t extra-android-m2repository - echo yes | android update sdk -u -a -t extra-android-support,extra-google-google_play_services diff --git a/Android/.classpath b/Android/.classpath index a36b91f54c..695fcafa91 100644 --- a/Android/.classpath +++ b/Android/.classpath @@ -1,7 +1,5 @@ - - diff --git a/Android/AndroidManifest.xml b/Android/AndroidManifest.xml index 4ca6dab8b2..2afa8591d0 100644 --- a/Android/AndroidManifest.xml +++ b/Android/AndroidManifest.xml @@ -2,12 +2,12 @@ + android:targetSdkVersion="21" /> @@ -134,6 +134,12 @@ android:value=".android.activities.SettingsActivity"/> + + diff --git a/Android/assets/CameraInfo/GoPro Hero 4 Black.xml b/Android/assets/CameraInfo/GoPro Hero 4 Black.xml new file mode 100644 index 0000000000..ea9caadc97 --- /dev/null +++ b/Android/assets/CameraInfo/GoPro Hero 4 Black.xml @@ -0,0 +1,8 @@ + + + GoPro Hero 4 Black + 6.17 + 4.55 + 12.0 + 14 + diff --git a/Android/build.gradle b/Android/build.gradle index 509999f80d..d0b0fbb146 100644 --- a/Android/build.gradle +++ b/Android/build.gradle @@ -5,7 +5,6 @@ repositories { } dependencies { - compile 'com.android.support:support-v4:20.0.0' compile files('libs/droneapi-java.jar') compile 'com.google.android.gms:play-services:5.0.89' compile 'com.sothree.slidinguppanel:library:2.0.2' @@ -17,25 +16,29 @@ dependencies { transitive=true } + compile 'com.android.support:support-v4:20.0.0' + + compile project(':Core') + compile project(':Mavlink') + compile project(':Libraries:HorizontalVariableListView:HorizontalVariableListView') + compile files('libs/usbseriallibrary.jar') compile files('libs/j2xx.jar') compile files('libs/protobuf-java-2.5.0.jar') compile files('libs/jeromq-0.3.4.jar') - compile project(':Core') - compile project(':Mavlink') - compile project(':Libraries:HorizontalVariableListView:HorizontalVariableListView') compile project(':Libraries:PebbleKit') compile project(':Libraries:usb-serial-for-android:UsbSerialLibrary') } android { - compileSdkVersion 19 - buildToolsVersion '19.1.0' + compileSdkVersion 21 + buildToolsVersion "21.0.1" defaultConfig { + applicationId 'org.droidplanner' minSdkVersion 14 - targetSdkVersion 19 + targetSdkVersion 21 versionName getGitVersion() } diff --git a/Android/libs/droneapi-java.jar b/Android/libs/droneapi-java.jar index 7530a969d4..48510ddd15 100644 Binary files a/Android/libs/droneapi-java.jar and b/Android/libs/droneapi-java.jar differ diff --git a/Android/project.properties b/Android/project.properties index ef465002b6..c808d006df 100644 --- a/Android/project.properties +++ b/Android/project.properties @@ -11,12 +11,13 @@ #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt # Project target. -target=android-19 +target=android-21 android.library.reference.1=../Libraries/usb-serial-for-android/UsbSerialLibrary android.library.reference.2=../Libraries/HorizontalVariableListView/HorizontalVariableListView -android.library.reference.3=../Mavlink -android.library.reference.4=../Core -android.library.reference.5=../Libraries/google-play-services_lib -android.library.reference.6=../Libraries/PebbleKit -android.library.reference.7=../Libraries/mapbox-android-sdk/0.4.0 -android.library.reference.8=../Libraries/AndroidSlidingUpPanel-2.0.2/library +android.library.reference.3=../Libraries/google-play-services_lib +android.library.reference.4=../Libraries/PebbleKit +android.library.reference.5=../Libraries/mapbox-android-sdk/0.4.0 +android.library.reference.6=../Libraries/AndroidSlidingUpPanel-2.0.2/library +android.library.reference.7=../Libraries/EllipsoidFit/EllipsoidFit +android.library.reference.8=../Mavlink +android.library.reference.9=../Core diff --git a/Android/res/drawable-hdpi/.DS_Store b/Android/res/drawable-hdpi/.DS_Store deleted file mode 100644 index 5008ddfcf5..0000000000 Binary files a/Android/res/drawable-hdpi/.DS_Store and /dev/null differ diff --git a/Android/res/drawable-hdpi/ic_action_expand.png b/Android/res/drawable-hdpi/ic_action_expand.png new file mode 100644 index 0000000000..0d1f8e181f Binary files /dev/null and b/Android/res/drawable-hdpi/ic_action_expand.png differ diff --git a/Android/res/drawable-hdpi/ic_action_expand_blue.png b/Android/res/drawable-hdpi/ic_action_expand_blue.png new file mode 100644 index 0000000000..b882d9a77d Binary files /dev/null and b/Android/res/drawable-hdpi/ic_action_expand_blue.png differ diff --git a/Android/res/drawable-mdpi/.DS_Store b/Android/res/drawable-mdpi/.DS_Store deleted file mode 100644 index 5008ddfcf5..0000000000 Binary files a/Android/res/drawable-mdpi/.DS_Store and /dev/null differ diff --git a/Android/res/drawable-mdpi/ic_action_expand.png b/Android/res/drawable-mdpi/ic_action_expand.png new file mode 100644 index 0000000000..c6a8ebfb5b Binary files /dev/null and b/Android/res/drawable-mdpi/ic_action_expand.png differ diff --git a/Android/res/drawable-mdpi/ic_action_expand_blue.png b/Android/res/drawable-mdpi/ic_action_expand_blue.png new file mode 100644 index 0000000000..540ebff3d2 Binary files /dev/null and b/Android/res/drawable-mdpi/ic_action_expand_blue.png differ diff --git a/Android/res/drawable-mdpi/ic_locator_time.png b/Android/res/drawable-mdpi/ic_locator_time.png new file mode 100644 index 0000000000..d452aad78d Binary files /dev/null and b/Android/res/drawable-mdpi/ic_locator_time.png differ diff --git a/Android/res/drawable-xhdpi/.DS_Store b/Android/res/drawable-xhdpi/.DS_Store deleted file mode 100644 index f2aa7cdc15..0000000000 Binary files a/Android/res/drawable-xhdpi/.DS_Store and /dev/null differ diff --git a/Android/res/drawable-xhdpi/ic_action_expand.png b/Android/res/drawable-xhdpi/ic_action_expand.png new file mode 100644 index 0000000000..a0fc43c526 Binary files /dev/null and b/Android/res/drawable-xhdpi/ic_action_expand.png differ diff --git a/Android/res/drawable-xhdpi/ic_action_expand_blue.png b/Android/res/drawable-xhdpi/ic_action_expand_blue.png new file mode 100644 index 0000000000..1a35cb7b20 Binary files /dev/null and b/Android/res/drawable-xhdpi/ic_action_expand_blue.png differ diff --git a/Android/res/drawable-xxhdpi/ic_action_expand.png b/Android/res/drawable-xxhdpi/ic_action_expand.png new file mode 100644 index 0000000000..53a2181108 Binary files /dev/null and b/Android/res/drawable-xxhdpi/ic_action_expand.png differ diff --git a/Android/res/drawable-xxhdpi/ic_action_expand_blue.png b/Android/res/drawable-xxhdpi/ic_action_expand_blue.png new file mode 100644 index 0000000000..83f28a0f5e Binary files /dev/null and b/Android/res/drawable-xxhdpi/ic_action_expand_blue.png differ diff --git a/Android/res/drawable/button_green.xml b/Android/res/drawable/button_green_drawable.xml similarity index 80% rename from Android/res/drawable/button_green.xml rename to Android/res/drawable/button_green_drawable.xml index f040ed0bda..9c6d2e5e12 100644 --- a/Android/res/drawable/button_green.xml +++ b/Android/res/drawable/button_green_drawable.xml @@ -1,6 +1,7 @@ + \ No newline at end of file diff --git a/Android/res/drawable/button_grey.xml b/Android/res/drawable/button_grey.xml new file mode 100644 index 0000000000..a47abc2c32 --- /dev/null +++ b/Android/res/drawable/button_grey.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/Android/res/drawable/follow_me_sample.png b/Android/res/drawable/follow_me_sample.png deleted file mode 100644 index 5b141a0916..0000000000 Binary files a/Android/res/drawable/follow_me_sample.png and /dev/null differ diff --git a/Android/res/drawable/ic_expand.xml b/Android/res/drawable/ic_expand.xml new file mode 100644 index 0000000000..89279e1690 --- /dev/null +++ b/Android/res/drawable/ic_expand.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Android/res/drawable/ic_locator_button.xml b/Android/res/drawable/ic_locator_button.xml new file mode 100644 index 0000000000..d83ee09a5b --- /dev/null +++ b/Android/res/drawable/ic_locator_button.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Android/res/layout-land/fragment_setup_imu_main.xml b/Android/res/layout-land/fragment_setup_imu_main.xml new file mode 100644 index 0000000000..7f114634bc --- /dev/null +++ b/Android/res/layout-land/fragment_setup_imu_main.xml @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + + + +