Skip to content

Commit

Permalink
updated common library version.
Browse files Browse the repository at this point in the history
updated method to retrieve the valid follow types.
update client library version.
  • Loading branch information
m4gr3d committed Jan 7, 2015
1 parent d6c42b6 commit cbf02b3
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 6 deletions.
4 changes: 2 additions & 2 deletions AidlLib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 21
versionCode 20024
versionName '2.0.24'
versionCode 20025
versionName '2.0.25'
}

defaultPublishConfig "release"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
* Created by fhuya on 11/5/14.
*/
Expand All @@ -27,6 +30,11 @@ public String getTypeLabel() {
return typeLabel;
}

@Override
public String toString(){
return getTypeLabel();
}

@Override
public int describeContents() {
return 0;
Expand All @@ -37,6 +45,23 @@ public void writeToParcel(Parcel dest, int flags) {
dest.writeString(name());
}

public static List<FollowType> getFollowTypes(boolean includeAdvanced){
List<FollowType> followTypes = new ArrayList<>();
followTypes.add(LEASH);
followTypes.add(LEAD);
followTypes.add(RIGHT);
followTypes.add(LEFT);
followTypes.add(CIRCLE);
followTypes.add(ABOVE);

if(includeAdvanced){
followTypes.add(SPLINE_LEASH);
followTypes.add(SPLINE_ABOVE);
}

return followTypes;
}

public static final Parcelable.Creator<FollowType> CREATOR = new Parcelable.Creator<FollowType>() {
public FollowType createFromParcel(Parcel source) {
return FollowType.valueOf(source.readString());
Expand Down
4 changes: 2 additions & 2 deletions ClientLib/mobile/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'

ext {
PUBLISH_ARTIFACT_ID = '3dr-services-lib'
PUBLISH_VERSION = '2.1.34'
PUBLISH_VERSION = '2.1.35'
PROJECT_DESCRIPTION = "3DR Services Client Library"
PROJECT_LABELS = ['3DR', '3DR Services', 'DroneAPI', 'Android']
PROJECT_LICENSES = ['Apache-2.0']
Expand All @@ -15,7 +15,7 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 21
versionCode 20134
versionCode 20135
versionName PUBLISH_VERSION
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ public void changeRadius(Double radius) {
}

public enum FollowModes {
LEASH("Leash"), LEAD("Lead"), RIGHT("Right"), LEFT("Left"), CIRCLE("Orbit"), ABOVE("Above"),
SPLINE_LEASH("Spline Leash"), SPLINE_ABOVE("Spline Above");
LEASH("Leash"),
LEAD("Lead"),
RIGHT("Right"),
LEFT("Left"),
CIRCLE("Orbit"),
ABOVE("Above"),
SPLINE_LEASH("Spline Leash"),
SPLINE_ABOVE("Spline Above");

private String name;

Expand Down

0 comments on commit cbf02b3

Please sign in to comment.