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

Replace old render cache API with new implementation. #401

Merged
merged 1 commit into from
Jun 8, 2021

Conversation

pengdev
Copy link
Member

@pengdev pengdev commented Jun 8, 2021

PRs must be submitted under the terms of our Contributor License Agreement CLA.
Fixes: < Link to related issues that will be fixed by this pull request, if they exist >

Pull request checklist:

  • Briefly describe the changes in this PR.
  • Include before/after visuals or gifs if this PR includes visual changes.
  • Write tests for all new functionality. If tests were not written, please explain why.
  • Add example if relevant.
  • Document any changes to public APIs.
  • Apply changelog label ('breaking change', 'bug 🪲', 'build', 'docs', 'feature 🍏', 'performance ⚡', 'testing 💯') or use the label 'skip changelog'
  • Add an entry inside this element for inclusion in the mapbox-maps-android changelog: <changelog>Removed the MapView#setRenderCacheandMapSurface#setRenderCacheAPI, and replaced them withMapboxMap#setRenderCacheOptionsandMapboxMap#getRenderCacheOptions.</changelog>.

Summary of changes

This PR removes the MapView#setRenderCache and MapSurface#setRenderCache API, and replaced them with MapboxMap#setRenderCacheOptions and MapboxMap#getRenderCacheOptions.

User impact (optional)

@pengdev pengdev self-assigned this Jun 8, 2021
@pengdev pengdev requested a review from a team June 8, 2021 09:52
@pengdev pengdev requested review from Chaoba and tobrun June 8, 2021 11:41
@pengdev pengdev marked this pull request as ready for review June 8, 2021 11:41
@pengdev pengdev force-pushed the peng-introduce-new-rendercache-api branch from e187609 to 209d441 Compare June 8, 2021 12:10
@pengdev pengdev merged commit 433cf01 into main Jun 8, 2021
@pengdev pengdev deleted the peng-introduce-new-rendercache-api branch June 8, 2021 12:55
UWDIEYN-NETWORK-DIGITAL-CENTER added a commit to UWDIEYN-NETWORK-DIGITAL-CENTER/mapbox-maps-android that referenced this pull request Jun 14, 2021
# 10.0.0-rc.1 June 14, 2021

**The Mapbox Maps SDK for Android has moved to release candidate status and is now ready for production use.**

## Breaking changes ⚠️
* Rename setter for `Light` object from `add` to `set`. This matches API from GL-JS and clarifies there is only 1 Light object. ([#387](mapbox#387))
* Rename setter for `Terrain` object from `add` to `set`. ([#391](mapbox#391))
* Remove `CacheManager`. In the following releases, an API to control temporary map data may be provided. ([mapbox#399](mapbox#399))
* Remove `ResourceOptions::cacheSize` and `DefaultAmbientCacheSize` constant. ([mapbox#399](mapbox#399))
* Replace `ResourceOptions::cachePath` with `ResourceOptions::dataPath` that accepts a folder in which the map stores offline style packages and temporary map data. ([mapbox#399](mapbox#399))
* Rename `TileStore::getInstance()` to `TileStore::create()`. ([mapbox#399](mapbox#399))
* Remove the `MapView#setRenderCache` and `MapSurface#setRenderCache` API and replaced them with experimental `MapboxMap#setRenderCacheOptions` and `MapboxMap#getRenderCacheOptions` APIs. ([mapbox#401](mapbox#401))
* Change the default `ResourceOptions#dataPath` to `${context.filesDir.absolutePath}/.mapbox/map_data/` and the database name from `ambient_cache.db` to `map_data.db`. ([mapbox#403](mapbox#403))
UWDIEYN-NETWORK-DIGITAL-CENTER added a commit to UWDIEYN-NETWORK-DIGITAL-CENTER/mapbox-maps-android that referenced this pull request Jun 14, 2021
# 10.0.0-rc.1 June 14, 2021

**The Mapbox Maps SDK for Android has moved to release candidate status and is now ready for production use.**

## Breaking changes ⚠️
* Rename setter for `Light` object from `add` to `set`. This matches API from GL-JS and clarifies there is only 1 Light object. ([#387](mapbox#387))
* Rename setter for `Terrain` object from `add` to `set`. ([#391](mapbox#391))
* Remove `CacheManager`. In the following releases, an API to control temporary map data may be provided. ([mapbox#399](mapbox#399))
* Remove `ResourceOptions::cacheSize` and `DefaultAmbientCacheSize` constant. ([mapbox#399](mapbox#399))
* Replace `ResourceOptions::cachePath` with `ResourceOptions::dataPath` that accepts a folder in which the map stores offline style packages and temporary map data. ([mapbox#399](mapbox#399))
* Rename `TileStore::getInstance()` to `TileStore::create()`. ([mapbox#399](mapbox#399))
* Remove the `MapView#setRenderCache` and `MapSurface#setRenderCache` API and replaced them with experimental `MapboxMap#setRenderCacheOptions` and `MapboxMap#getRenderCacheOptions` APIs. ([mapbox#401](mapbox#401))
* Change the default `ResourceOptions#dataPath` to `${context.filesDir.absolutePath}/.mapbox/map_data/` and the database name from `ambient_cache.db` to `map_data.db`. ([mapbox#403](mapbox#403))
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants