summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLOfflineStorage.h
Commit message (Collapse)AuthorAgeFilesLines
* [ios, macos] Renamed ambient cache prewarming methodupstream/1ec5-offline-put-renameMinh Nguyễn2018-11-071-17/+20
| | | | Renamed the method for prewarming the ambient cache to conform to Cocoa and Swift naming conventions.
* [darwin,test] Add "must-revalidate" support to putResourceWithURLChris Loer2018-10-171-1/+2
| | | | | Testing must-revalidate: true required an expiration date in the future, which exposed a round-tripping problem from translating NSDate to time_point based on now(). Use epoch of 1970 instead (although technically it's not guaranteed to be the epoch for system_clock until C++20)
* [darwin] Add MGLOfflineStorage putResourceForURLChris Loer2018-10-171-0/+20
| | | | Useful for pre-warming the ambient cache
* [ios, macos] Offline regions merge. (#12791)Fabian Guerra Soto2018-09-171-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Add offline regions merge. * [ios, macos] Update changelogs. * [ios, macos] Fix refreshing the offline packs after new content is added. * [ios, macos] Update MGLOfflineStorage's add contents of file documentation. * [ios, macos] Add MGLOfflineStorage test cases for adding file contents. * [ios, macos] Add offline merge test database. * [ios, macos] Add packs parameter to MGLBatchedOfflinePackAdditionCompletionHandler. * [core] Fix a query mege duplication. * [ios, macos] Remove unnecessary pack iteration. * [ios, macos] Fix packs update KVO notifications. * [ios, macos] Add localization strings. * [core] Fix query readability. * [ios, macos] Fix MGLOfflineStorageTest, cleanup the cache database after the test. * [ios, macos] Fix offline packs, updating triggers a crash.
* [ios] Standardize exception definitionsJason Wray2018-08-091-0/+2
|
* [darwin] Use FOUNDATION_EXTERN instead of plain externJason Wray2018-07-241-11/+11
| | | | FOUNDATION_EXTERN is an alias for extern in most cases, but also covers us in the event that a method could be mismangled by the compiler as C++ (when we want C-style mangling, for Obj-C compatibility).
* [ios, macos] Update minimum deployment versions to iOS 9, macOS 10.11 (#11776)Jason Wray2018-04-271-1/+1
| | | | | | | | | | | | | | | | | | | * [ios] Remove iOS 8 conditionals * [ios, macos] Bump pod deployment targets * [ios, macos] Add changelog entries * [ios, macos] Update docs * Remove unnecessary selector-based version checks * Update SQLite note * [ios, macos] Replace lightweight generics macros with direct use Lightweight generics for Foundation collections are available everywhere with the bump to iOS 9 and macOS 10.11. * Update deprecated macOS method
* [ios, macos] Convert various class methods to class propertiesJason Wray2018-04-161-1/+1
| | | | This improves the Swift interface while having no effect on Obj-C usage.
* [ios, macos] Mark deprecated methods as unavailable (#11205)Jordan Kiley2018-02-161-4/+4
| | | Fixes #10735
* [iOS][macOS] Export `MGLImageSource`, add and update documentation. Use ↵Asheem Mamoowala2017-06-191-1/+1
| | | | animated ImageSource demo in iOS test app
* [iOS][macOS] Add ImageSource bindingsAsheem Mamoowala2017-06-191-0/+2
|
* [macos,ios] expose callback for transforming URLsKonstantin Käfer2017-02-201-0/+60
|
* [core] remove trailing whitespace, add trailing newlines, add space after //Konstantin Käfer2017-01-271-23/+23
|
* Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.7Minh Nguyễn2017-01-161-3/+11
|\
| * [ios] Document that offline pack resource removal is not guaranteed (#7522)Jason Wray2016-12-231-2/+9
| | | | | | Text adapted from: https://www.mapbox.com/help/mobile-offline/#removing-offline-regions
| * [ios, macos] Update and reformat documentation for runtime styling (#7475)Minh Nguyễn2016-12-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Optimized changelog for runtime styling Changelog entries related to style JSON now lead off with the analogous portion of the runtime styling API. * [ios, macos] Autolink cross-class property references in docs jazzy can autolink `Class.property` references in documentation comments. * [ios, macos] Removed extra blank lines * [ios, macos] Corrected typo in MGLMultiPoint docs * [ios, macos] Rewrote shape and feature docs Rewrote documentation about MGLShape, its subclasses, and MGLFeature to emphasize runtime styling uses over annotation uses, associate each type with real-world concepts, cross-reference related style layer classes, and cross-reference related or easily confused shape classes. Links to the GeoJSON specification have been updated to RFC 7946. * [ios, macos] Expanded style layer docs With this change, documentation about style layer classes is nominally based on the documentation in the style specification. However, all the existing layer types’ documentation has been overridden to explain what the layer looks like, relate the layer to a real-world concept, and cross-reference related geometry classes. This change also corrects the description of MGLBackgroundStyleLayer, which erroneously stated that the identifier must be “background”, whereas that only happens to be true by default for Studio template styles. * [ios, macos] Wrap style layer docs * [ios, macos] Removed unused code * [ios, macos] Corrected symbol references in docs * [ios, macos] Corrected typo in abstract class exception
* | [build] add -fvisibility=hidden to macOS dynamic framework and export ↵Konstantin Käfer2017-01-041-11/+13
|/ | | | required symbols
* [ios, macos] Rationalized string enum namesMinh Nguyễn2016-11-021-7/+15
| | | | Renamed MGLGeoJSONSourceOption and MGLOfflinePackUserInfoKey constants for clarity and to remove redundancy in the Swift-bridged names. Left the old MGLOfflinePackUserInfoKey constants in place as deprecated aliases.
* [ios, macos] Adopted string enumerationsMinh Nguyễn2016-11-021-7/+12
| | | | | | Notification names and user info keys posted by MGLOfflineStorage, as well as MGLErrorDomain, are instances of string enumerations for ease of use in Swift. Added some shims for projects built with Xcode 7.x. Fixes #6791.
* [ios, macos] Offline storage size APIMinh Nguyễn2016-07-181-0/+8
| | | | | | Added a property to MGLOfflineStorage that indicates the disk space occupied by all cached and offline resources. Fixes #5580.
* [ios, osx] Eliminated platform/{ios,osx}/includeMinh Nguyễn2016-04-231-0/+222
Also updated various project references to be group-relative, so Xcode chooses the right directory by default when adding a new file. Fixes #4770.