-
Notifications
You must be signed in to change notification settings - Fork 120
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
[android] - make changing base url a part of public API. #245
Conversation
@tobrun, thanks for your PR! By analyzing the history of the files in this pull request, we identified @cammace, @ivovandongen and @zugaldia to be potential reviewers. |
* Get the base url of the API. | ||
* | ||
* @return the base url used as endpoint. | ||
*/ |
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.
Missing @SInCE 2.0.0 tag
|
||
public abstract MapboxBuilder setAccessToken(String accessToken); | ||
|
||
public abstract String getAccessToken(); | ||
|
||
/** | ||
* Set the base url of the API. | ||
*/ |
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.
@@ -458,6 +442,11 @@ public MapboxDirections build() throws ServicesException { | |||
return new MapboxDirections(this); | |||
} | |||
|
|||
@Override |
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.
No need to expose this in Directions v4, it has been deprecated.
@@ -458,6 +444,11 @@ public Builder setClientAppName(String appName) { | |||
return this; | |||
} | |||
|
|||
public Builder setBaseUrl(String baseUrl) { |
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.
Javadoc? Looks like we are also missing javadoc for the method above: setClientAppName
@@ -277,6 +263,12 @@ public Builder setClientAppName(String appName) { | |||
return this; | |||
} | |||
|
|||
@Override |
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.
Javadoc
@@ -448,6 +434,12 @@ public Builder setClientAppName(String appName) { | |||
return this; | |||
} | |||
|
|||
@Override |
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.
Javadoc
@@ -318,6 +303,12 @@ public Builder setClientAppName(String appName) { | |||
return this; | |||
} | |||
|
|||
@Override |
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.
Javadoc
@@ -375,6 +373,12 @@ public Builder setClientAppName(String appName) { | |||
return this; | |||
} | |||
|
|||
@Override |
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.
Javadoc
Also, build is failing since we are now using 5.0.0 snapshot correct? |
thanks for the review, the build is failing since 4.2.0 snapshot doesn't exist anymore -> that is why I created #247. IMO we should avoid using snapshots between projects except for doing some testing. |
6e357ea
to
b0432db
Compare
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.
👌
Closes #244.