-
Notifications
You must be signed in to change notification settings - Fork 117
Split Directions models from the implementation into a separate module #1104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
bd3ae29
e5fdf90
7381cbe
648e216
641b1f8
dbffe1f
721fa0d
e406ae4
cee0fd9
09feb7a
6c168d6
643dc64
989f5bd
307f188
1d4f9e3
cc3371c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /build |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| apply plugin: 'java-library' | ||
|
|
||
| dependencies { | ||
| api project(":services-geojson") | ||
|
|
||
| // Annotations | ||
| implementation dependenciesList.supportAnnotation | ||
|
|
||
| // AutoValue | ||
| compileOnly dependenciesList.autoValue | ||
| compileOnly dependenciesList.autoValueGson | ||
|
|
||
| // Test Dependencies | ||
| testImplementation dependenciesList.okhttp3Mockwebserver | ||
| testImplementation project(path: ':services-core', configuration: 'testOutput') | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| POM_ARTIFACT_ID=mapbox-sdk-directions-models | ||
| POM_DESCRIPTION=Mapbox Directions Services Models | ||
| POM_PACKAGING=jar |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,13 +2,13 @@ | |
|
|
||
| import androidx.annotation.NonNull; | ||
| import androidx.annotation.Nullable; | ||
|
|
||
| import com.google.auto.value.AutoValue; | ||
| import com.google.gson.Gson; | ||
| import com.google.gson.GsonBuilder; | ||
| import com.google.gson.TypeAdapter; | ||
| import com.google.gson.annotations.SerializedName; | ||
| import com.mapbox.api.directions.v5.DirectionsAdapterFactory; | ||
| import com.mapbox.api.directions.v5.MapboxDirections; | ||
|
|
||
| import java.util.List; | ||
|
|
||
|
|
@@ -152,9 +152,9 @@ public static Builder builder() { | |
| public abstract List<VoiceInstructions> voiceInstructions(); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AutoValueImmutableFields: AutoValue instances should be deeply immutable. Therefore, we recommend returning ImmutableList instead. Read more at http://goo.gl/qWo9sC There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AutoValueImmutableFields: AutoValue instances should be deeply immutable. Therefore, we recommend returning ImmutableList instead. Read more at http://goo.gl/qWo9sC There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AutoValueImmutableFields: AutoValue instances should be deeply immutable. Therefore, we recommend returning ImmutableList instead. Read more at http://goo.gl/qWo9sC There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AutoValueImmutableFields: AutoValue instances should be deeply immutable. Therefore, we recommend returning ImmutableList instead. Read more at http://goo.gl/qWo9sC There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AutoValueImmutableFields: AutoValue instances should be deeply immutable. Therefore, we recommend returning ImmutableList instead. Read more at http://goo.gl/qWo9sC |
||
|
|
||
| /** | ||
| * If in your request you set {@link MapboxDirections#bannerInstructions()} to true, you'll | ||
| * receive a list of {@link BannerInstructions} which encompasses all information necessary for | ||
| * creating a visual cue about a given {@link LegStep}. | ||
| * If in your request you set <tt>MapboxDirections.Builder#bannerInstructions()</tt> to true, | ||
| * you'll receive a list of {@link BannerInstructions} which encompasses all information necessary | ||
| * for creating a visual cue about a given {@link LegStep}. | ||
| * | ||
| * @return a list of {@link BannerInstructions}s which help display visual cues | ||
| * inside your application | ||
|
|
@@ -361,9 +361,9 @@ public abstract static class Builder { | |
| public abstract Builder voiceInstructions(@NonNull List<VoiceInstructions> voiceInstructions); | ||
|
|
||
| /** | ||
| * If in your request you set {@link MapboxDirections#bannerInstructions()} to true, you'll | ||
| * receive a list of {@link BannerInstructions} which encompasses all information necessary for | ||
| * creating a visual cue about a given {@link LegStep}. | ||
| * If in your request you set <tt>MapboxDirections.Builder#bannerInstructions()</tt> to true, | ||
| * you'll receive a list of {@link BannerInstructions} which encompasses all information | ||
| * necessary for creating a visual cue about a given {@link LegStep}. | ||
| * | ||
| * @param bannerInstructions a list of {@link BannerInstructions}s which help display visual | ||
| * cues inside your application | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| /** | ||
| * Contains models mapping to Mapbox Directions API. | ||
| */ | ||
| package com.mapbox.api.directions.v5.models; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| /** | ||
| * Contains classes for accessing the Mapbox Directions API. | ||
| * | ||
| * @since 1.0.0 | ||
| */ | ||
| package com.mapbox.api.directions.v5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AutoValueImmutableFields: AutoValue instances should be deeply immutable. Therefore, we recommend returning ImmutableList instead. Read more at http://goo.gl/qWo9sC