Skip to content

Commit

Permalink
Merge pull request #1566 from DroidPlanner/release-3.2.0
Browse files Browse the repository at this point in the history
Release 3.2.0
  • Loading branch information
m4gr3d committed Oct 5, 2015
2 parents 2c54f59 + bd9c35b commit 38f3e8e
Show file tree
Hide file tree
Showing 919 changed files with 10,195 additions and 4,808 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android:

before_script:
- echo yes | android update sdk -u -a -t tools
- echo yes | android update sdk -u -a -t build-tools-22.0.1
- echo yes | android update sdk -u -a -t android-22,android-21,android-20
- echo yes | android update sdk -u -a -t build-tools-23.0.1,build-tools-22.0.1
- echo yes | android update sdk -u -a -t android-23,android-22,android-21,android-20
- 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
Expand Down
3 changes: 3 additions & 0 deletions Android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ proguard/
*.iws
.idea/

# Fabric project files
fabric.properties

*.pydevproject
#.project
.metadata
Expand Down
21 changes: 20 additions & 1 deletion Android/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.droidplanner.android">
package="org.droidplanner.android"
android:installLocation="auto">

<supports-screens
android:requiresSmallestWidthDp="320"/>
Expand All @@ -14,6 +15,7 @@
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />

<uses-feature android:name="android.hardware.screen.portrait"/>

Expand Down Expand Up @@ -59,6 +61,10 @@
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>

<meta-data
android:name="io.fabric.ApiKey"
android:value="5ee4471ba6e8cd8858006c8166469bba33d64b2f" />

<activity
android:name=".activities.AccountActivity"
android:launchMode="singleTop"
Expand Down Expand Up @@ -119,6 +125,17 @@
android:launchMode="singleTop"
android:theme="@style/CustomActionBarTheme.Transparent"/>

<activity
android:name=".activities.WidgetActivity"
android:launchMode="singleTop"
android:parentActivityName=".activities.FlightActivity"
>
<!-- Parent activity meta-data to support API level 7+ -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.FlightActivity"/>
</activity>

<activity
android:name=".activities.helpers.BluetoothDevicesActivity"
android:noHistory="true"
Expand All @@ -133,6 +150,8 @@
android:theme="@style/CustomActionBarTheme.Transparent"
android:launchMode="singleTask"/>

<service android:name=".AppService" />

</application>

</manifest>
74 changes: 55 additions & 19 deletions Android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
apply plugin: 'com.android.application'
// This does not break the build when Android Studio is missing the JRebel for Android plugin.
apply plugin: 'com.zeroturnaround.jrebel.android'
apply plugin: 'io.fabric'
apply plugin: 'kotlin-android'

dependencies {
compile 'com.google.android.gms:play-services-maps:7.3.0'
compile 'com.google.android.gms:play-services-location:7.3.0'
compile 'com.google.android.gms:play-services-analytics:7.3.0'
compile 'com.google.android.gms:play-services-maps:7.8.0'
compile 'com.google.android.gms:play-services-location:7.8.0'
compile 'com.google.android.gms:play-services-analytics:7.8.0'

compile 'com.sothree.slidinguppanel:library:2.0.2'

compile 'com.android.support:support-v4:22.1.1'
compile 'com.android.support:appcompat-v7:22.1.1'
compile 'com.android.support:cardview-v7:22.1.0'
compile 'com.android.support:recyclerview-v7:22.1.0'
compile 'com.android.support:support-v4:23.0.1'
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:cardview-v7:23.0.1'
compile 'com.android.support:recyclerview-v7:23.0.1'
compile 'com.android.support:design:23.0.1'

compile 'com.o3dr.android:dronekit-android:2.3.34'
//DroneKit-Android client library.
compile 'com.o3dr.android:dronekit-android:2.6.6'

compile 'me.grantland:autofittextview:0.2.1'
compile(name:'shimmer-android-release', ext:'aar')
Expand All @@ -22,25 +27,49 @@ dependencies {
compile files('libs/j2xx.jar')
compile files('libs/protobuf-java-2.5.0.jar')
compile files('libs/jeromq-0.3.4.jar')
compile files('libs/sius-0.3.2-SNAPSHOT.jar')
compile files('libs/sius-0.3.0-SNAPSHOT.jar')

compile 'com.squareup.okhttp:okhttp:2.3.0'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.3.0'

compile 'com.jakewharton.timber:timber:3.1.0'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile('com.crashlytics.sdk.android:crashlytics:2.5.0@aar') {
transitive = true;
}

//Charts and graph library
compile 'com.github.lecho:hellocharts-library:1.5.5@aar'
}

//Decomposed version name and code (https://plus.google.com/+JakeWharton/posts/6f5TcVPRZij)
def versionMajor = 3
def versionMinor = 2
def versionPatch = 0
def versionBuild = 7 //bump for dogfood builds, public betas, etc.

//Logging levels
def logLevelVerbose = 2;
def logLevelDebug = 3;
def logLevelInfo = 4;
def logLevelWarn = 5;
def logLevelError = 6;
def logLevelAssert = 7;

android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
applicationId 'org.droidplanner.android'
minSdkVersion 14
targetSdkVersion 22
versionCode 30106
versionName getGitVersion()
versionCode versionMajor * 100000 + versionMinor * 1000 + versionPatch * 100 + versionBuild
versionName "Tower-v${versionMajor}.${versionMinor}.${versionPatch}"

buildConfigField "boolean", "WRITE_LOG_FILE", "true"
buildConfigField "int", "LOG_FILE_LEVEL", "$logLevelDebug"
buildConfigField "boolean", "ENABLE_CRASHLYTICS", "false"
}

compileOptions {
Expand All @@ -59,11 +88,6 @@ android {
assets.srcDirs = ['assets']
}

// Move the tests to tests/java, tests/res, etc...
androidTest {
java.srcDirs = ['test']
}

// Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under src/<type>/... which would
Expand Down Expand Up @@ -102,11 +126,23 @@ android {
buildTypes {
debug {
applicationIdSuffix ".debug"
versionNameSuffix ".debug"
versionNameSuffix ".debug.${versionBuild}"
resValue "string", "app_title", "Tower Dev"
}

beta {
signingConfig signingConfigs.release
applicationIdSuffix ".beta"
versionNameSuffix ".beta.${versionBuild}"
resValue "string", "app_title", "Tower Beta"
buildConfigField "boolean", "ENABLE_CRASHLYTICS", "true"
}

release {
signingConfig signingConfigs.release
resValue "string", "app_title", "Tower"
buildConfigField "boolean", "WRITE_LOG_FILE", "false"
buildConfigField "boolean", "ENABLE_CRASHLYTICS", "true"
}
}
}
Expand Down
Binary file not shown.
9 changes: 9 additions & 0 deletions Android/res/color/flight_action_row_bg_selector.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@android:color/holo_blue_light" android:state_pressed="true" />
<item android:color="@android:color/holo_blue_light" android:state_focused="true" />
<item android:color="@android:color/holo_blue_light" android:state_selected="true" />
<item android:color="@android:color/holo_blue_light" android:state_hovered="true" />
<item android:color="@android:color/holo_blue_light" android:state_activated="true" />
<item android:color="@android:color/white" />
</selector>
Binary file removed Android/res/drawable-hdpi/blue.png
Binary file not shown.
Binary file added Android/res/drawable-hdpi/debug_step_out.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Android/res/drawable-hdpi/debug_step_over.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Android/res/drawable-hdpi/ic_camera_alt_blue.png
Binary file added Android/res/drawable-hdpi/ic_cancel_red_500_18dp.png
Binary file added Android/res/drawable-hdpi/ic_cancel_red_500_24dp.png
Binary file added Android/res/drawable-hdpi/ic_help_grey_600_18dp.png
Binary file added Android/res/drawable-hdpi/ic_home_grey_700_18dp.png
Binary file added Android/res/drawable-hdpi/ic_home_grey_700_24dp.png
Binary file added Android/res/drawable-hdpi/ic_launch_black_18dp.png
Binary file added Android/res/drawable-hdpi/ic_pause_white_24dp.png
Binary file added Android/res/drawable-hdpi/ic_person_red_500_18dp.png
Binary file added Android/res/drawable-hdpi/ic_replay_white_24dp.png
Binary file added Android/res/drawable-hdpi/ic_save_grey_700_24dp.png
Binary file added Android/res/drawable-hdpi/ic_schedule_black_18dp.png
Binary file added Android/res/drawable-hdpi/ic_signal_0_bar.png
Binary file added Android/res/drawable-hdpi/ic_signal_0_bar_18dp.png
Binary file added Android/res/drawable-hdpi/ic_signal_0_bar_24dp.png
Binary file added Android/res/drawable-hdpi/ic_signal_1_bar.png
Binary file added Android/res/drawable-hdpi/ic_signal_1_bar_18dp.png
Binary file added Android/res/drawable-hdpi/ic_signal_1_bar_24dp.png
Binary file added Android/res/drawable-hdpi/ic_signal_2_bar.png
Binary file added Android/res/drawable-hdpi/ic_signal_2_bar_18dp.png
Binary file added Android/res/drawable-hdpi/ic_signal_2_bar_24dp.png
Binary file added Android/res/drawable-hdpi/ic_signal_3_bar.png
Binary file added Android/res/drawable-hdpi/ic_signal_3_bar_18dp.png
Binary file added Android/res/drawable-hdpi/ic_signal_3_bar_24dp.png
Binary file added Android/res/drawable-hdpi/ic_signal_4_bar.png
Binary file added Android/res/drawable-hdpi/ic_signal_4_bar_18dp.png
Binary file added Android/res/drawable-hdpi/ic_signal_4_bar_24dp.png
Binary file added Android/res/drawable-hdpi/ic_signal_5_bar.png
Binary file added Android/res/drawable-hdpi/ic_signal_5_bar_18dp.png
Binary file added Android/res/drawable-hdpi/ic_signal_5_bar_24dp.png
Binary file added Android/res/drawable-hdpi/ic_undo_grey_700_24dp.png
Binary file added Android/res/drawable-hdpi/ic_videocam_black_36dp.png
Binary file modified Android/res/drawable-hdpi/ic_wp_home.png
Binary file added Android/res/drawable-hdpi/ic_wp_home_selected.png
Binary file added Android/res/drawable-hdpi/user_location.png
Binary file removed Android/res/drawable-mdpi/blue.png
Diff not rendered.
Binary file added Android/res/drawable-mdpi/debug_step_out.png
Binary file added Android/res/drawable-mdpi/debug_step_over.png
Binary file added Android/res/drawable-mdpi/ic_camera_alt_blue.png
Binary file added Android/res/drawable-mdpi/ic_cancel_red_500_18dp.png
Binary file added Android/res/drawable-mdpi/ic_cancel_red_500_24dp.png
Binary file added Android/res/drawable-mdpi/ic_help_grey_600_18dp.png
Binary file added Android/res/drawable-mdpi/ic_home_grey_700_18dp.png
Binary file added Android/res/drawable-mdpi/ic_home_grey_700_24dp.png
Binary file added Android/res/drawable-mdpi/ic_launch_black_18dp.png
Binary file added Android/res/drawable-mdpi/ic_pause_white_24dp.png
Binary file added Android/res/drawable-mdpi/ic_person_red_500_18dp.png
Binary file added Android/res/drawable-mdpi/ic_replay_white_24dp.png
Binary file added Android/res/drawable-mdpi/ic_save_grey_700_24dp.png
Binary file added Android/res/drawable-mdpi/ic_schedule_black_18dp.png
Binary file added Android/res/drawable-mdpi/ic_signal_0_bar.png
Binary file added Android/res/drawable-mdpi/ic_signal_0_bar_18dp.png
Binary file added Android/res/drawable-mdpi/ic_signal_0_bar_24dp.png
Binary file added Android/res/drawable-mdpi/ic_signal_1_bar.png
Binary file added Android/res/drawable-mdpi/ic_signal_1_bar_18dp.png
Binary file added Android/res/drawable-mdpi/ic_signal_1_bar_24dp.png
Binary file added Android/res/drawable-mdpi/ic_signal_2_bar.png
Binary file added Android/res/drawable-mdpi/ic_signal_2_bar_18dp.png
Binary file added Android/res/drawable-mdpi/ic_signal_2_bar_24dp.png
Binary file added Android/res/drawable-mdpi/ic_signal_3_bar.png
Binary file added Android/res/drawable-mdpi/ic_signal_3_bar_18dp.png
Binary file added Android/res/drawable-mdpi/ic_signal_3_bar_24dp.png
Binary file added Android/res/drawable-mdpi/ic_signal_4_bar.png
Binary file added Android/res/drawable-mdpi/ic_signal_4_bar_18dp.png
Binary file added Android/res/drawable-mdpi/ic_signal_4_bar_24dp.png
Binary file added Android/res/drawable-mdpi/ic_signal_5_bar.png
Binary file added Android/res/drawable-mdpi/ic_signal_5_bar_18dp.png
Binary file added Android/res/drawable-mdpi/ic_signal_5_bar_24dp.png
Binary file added Android/res/drawable-mdpi/ic_undo_grey_700_24dp.png
Binary file added Android/res/drawable-mdpi/ic_videocam_black_36dp.png
Binary file modified Android/res/drawable-mdpi/ic_wp_home.png
Binary file added Android/res/drawable-mdpi/ic_wp_home_selected.png
Binary file added Android/res/drawable-mdpi/user_location.png
Binary file removed Android/res/drawable-xhdpi/blue.png
Diff not rendered.
Binary file added Android/res/drawable-xhdpi/debug_step_out.png
Binary file added Android/res/drawable-xhdpi/debug_step_over.png
Loading

0 comments on commit 38f3e8e

Please sign in to comment.