Skip to content
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

Upgrade Mapzen Android SDK #822

Merged
merged 4 commits into from
Jun 23, 2017
Merged

Upgrade Mapzen Android SDK #822

merged 4 commits into from
Jun 23, 2017

Conversation

sarahsnow1
Copy link
Member

Overview

Upgrades EM to the latest release of the Mapzen Android SDK (1.4.0)

Proposed Changes

  • Upgrades to Kotlin 1.1.2
  • Upgrades to Gradle 2.3.3
  • Creates temporary TileHttpHandler superclass TmpHttpHandler to allow for customizing headers in tile requests. This class will be removed and TileHttpHandler will be updated to inherit from Tangram class when dependent work is completed (Allow customization of request headers in HttpHandler #821)

Closes #816

@tallytalwar
Copy link
Member

Checking this today.

@msmollin
Copy link
Member

I'll also give this a whirl. Gonna toss this on a shiny new S8.

Copy link
Member

@tallytalwar tallytalwar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. To me testing on s7edge, network requests were a bit slow, when I was playing around. But it could be choppy internet connection also.

@@ -116,7 +126,7 @@ public AndroidModule(EraserMapApplication application) {

@Override public Map<String, String> queryParamsForRequest() {
Map<String, String> params = new HashMap<>();
params.put(ApiKeyConstants.API_KEY, apiKeys.getApiKey());
params.put(Http.PARAM_API_KEY, apiKeys.getApiKey());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe requires more changes (than we want with EM), but probably we should use sceneUpdate with sceneLoad for consistency with SDK usage.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for interaction with Pelias so we need to append the api key. When mapzen/android#412 merges, we can use the new MapzenSearchHttpRequestHandler to append only the DNT header (the api key will be handled by the SDK)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh, yes make sense. 👍

@sarahsnow1
Copy link
Member Author

@tallytalwar I created this SDK issue to investigate tile request speed: mapzen/android#413

@sarahsnow1 sarahsnow1 merged commit 1e1b083 into master Jun 23, 2017
@sarahsnow1 sarahsnow1 deleted the 816-upgrade-sdk branch June 23, 2017 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants