Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Offline storage size API #5585

Merged
merged 1 commit into from
Jul 19, 2016
Merged

Offline storage size API #5585

merged 1 commit into from
Jul 19, 2016

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Jul 6, 2016

Added a property to MGLOfflineStorage that indicates the disk space occupied by all cached and offline resources.

Fixes the iOS side of #5580.

/cc @friedbunny @jfirebaugh @zugaldia

@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS offline labels Jul 6, 2016
@1ec5 1ec5 self-assigned this Jul 6, 2016
@1ec5 1ec5 added this to the ios-v3.3.1 milestone Jul 6, 2016
friedbunny added a commit that referenced this pull request Jul 7, 2016
We cannot guarantee that the offline/ambient tile cache (cache.db) will be created in a timely manner, so it's safer to set the backup exclusion key on its containing directory.

But, because we placed cache.db in the base of the app's Application Support directory (where backups are expected to be allowed), we need to move cache.db into a directory that we control and can exclude from backups with impunity.

This is an amalgam of #5578 (directory exclusion) and #5585 (refactored URL methods, but without the new database size method).

Also:
* Prefix mapbox subdirectory with dot, for extra safety
* Update changelog entry with new ticket, less speculation
@1ec5 1ec5 force-pushed the 1ec5-offline-size-5580 branch from 57dd3e3 to 3fb5a5d Compare July 10, 2016 22:28
Added a property to MGLOfflineStorage that indicates the disk space occupied by all cached and offline resources.

Fixes #5580.
@1ec5 1ec5 force-pushed the 1ec5-offline-size-5580 branch from 3fb5a5d to 1bc4f0e Compare July 19, 2016 05:04
@1ec5 1ec5 merged commit 1bc4f0e into master Jul 19, 2016
@1ec5
Copy link
Contributor Author

1ec5 commented Jul 19, 2016

Cherry-picked to the release-ios-v3.3.0 branch as e421180.

@1ec5 1ec5 deleted the 1ec5-offline-size-5580 branch July 19, 2016 05:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS offline
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant