summaryrefslogtreecommitdiff
path: root/platform/darwin/include
Commit message (Collapse)AuthorAgeFilesLines
* [ios] Static analysis fix tweaks - part 2 (#14572)Julian Rex2019-05-021-2/+0
|
* [android,darwin,ios,qt] Remove unused codeThiago Marcos P. Santos2019-02-121-22/+0
| | | | These files are no longer needed after the new GL abstraction.
* [build] rework platform/default directory and add -files.txt for vendored libsKonstantin Käfer2018-12-143-0/+129
|
* [ios, osx] Eliminated platform/{ios,osx}/includeMinh Nguyễn2016-04-2320-1242/+0
| | | | | | Also updated various project references to be group-relative, so Xcode chooses the right directory by default when adding a new file. Fixes #4770.
* [ios, osx] Updated build system for jazzyMinh Nguyễn2016-04-224-63/+80
| | | | Consolidated NSValue categories to work around realm/jazzy#539. Documented MGLErrorCode. Moved jazzy configuration file into platform/ios/. Removed redundant include/Mapbox.h that was only being used by jazzy, now that the static frameworks’s umbrella header is based on that of the dynamic framework. Moved framework/Mapbox.h to include/Mapbox.h for consistency.
* [ios, osx] Split MGLDirectionFormatter in twoMinh Nguyễn2016-04-223-77/+94
| | | | Split MGLDirectionFormatter into MGLClockDirectionFormatter, which specializes in clock positions, and MGLCompassDirectionFormatter, which boxes the compass. This neatly avoids any confusion that might arise if the developer fails to read the documentation and thinks the original unified formatter can convert between the two types of directions.
* [ios, osx] Direction formatterMinh Nguyễn2016-04-221-0/+77
| | | | Implemented an NSFormatter for formatting CLLocationDirection values as localizable display strings. The formatter supports both absolute compass directions, such as “south”, and relative “clock” directions, such as “6 o’clock”.
* [ios, osx] Coordinate formatterMinh Nguyễn2016-04-221-0/+31
| | | | | | Added a degree-minute-second coordinate formatter for general use. Use this formatter in iosapp and osxapp. Added unit tests for the coordinate formatter and for round-tripping geometry types through NSValue.
* [ios, osx] Geometry value methodsMinh Nguyễn2016-04-221-0/+49
| | | | | | Added category methods on NSValue for converting to and from the structure types defined in MGLGeometry.h. Fixes #4485.
* [ios, osx] Use HTML links in documentationMinh Nguyễn2016-04-202-10/+11
| | | | | | Replaced Markdown syntax with HTML syntax for hyperlinks in documentation comments. HTML links work both inside Xcode (whether Objective-C or Swift) and on the Web (via jazzy). Fixes #3961.
* [ios, osx] Took advantage of C99Minh Nguyễn2016-04-161-21/+18
| | | | Now that #4641 has removed the prohibition against C99 extensions, this change removes many pragma statements that suppress warnings about variadic macros and designated initializers. Designated initializers and Elvis operators have been introduced wherever appropriate.
* [ios, osx] Require progress to be requested manuallyMinh Nguyễn2016-03-291-9/+25
| | | | Requesting progress is expensive, so it is once again computed only on demand, rather than automatically at launch. Moved progress requesting back to iosapp and osxapp.
* [ios, osx] Include progress in progress change notificationMinh Nguyễn2016-03-292-6/+50
| | | | An MGLOfflinePackProgressChangedNotification notification now includes the pack’s state and progress values, which match the values in the corresponding MGLOfflinePack properties. Implemented NSValue category methods to store MGLOfflinePackProgress inside a dictionary.
* [ios, osx] Secure coding, copying for offline regionsMinh Nguyễn2016-03-291-1/+1
| | | | Implemented NSSecureCoding and NSCopying protocols for MGLTilePyramidOfflineRegion so that it can be used more fluidly by client code.
* [ios, osx] Clarified documentationMinh Nguyễn2016-03-291-6/+7
| | | | Updated MGLTilePyramidOfflineRegion documentation to note that local files can’t be used as style URLs. Added documentation for private offline methods.
* [ios, osx] Allow creating invalid offline packsMinh Nguyễn2016-03-291-2/+4
| | | | | | Removed NS_UNAVAILABLE attribute from -[MGLOfflinePack init]. Packs initialized with this initializer are doomed to invalidity. Fixes #4421.
* [ios, osx] More accurate KVO, private delegate, descriptive fallback name, ↵Minh Nguyễn2016-03-292-85/+138
| | | | | | | | | | | | fewer reloads Made MGLOfflineStorage.packs strong rather than copy so that KVO notifications on that key path include index paths. Replaced custom KVO mutable collection methods with calls to -mutableArrayValueForKey:, avoiding redundant casts. Privatized MGLOfflinePackDelegate and made its methods required, since MGLOfflineStorage is the only conforming implementation. Require a pack to be explicitly invalidated before deallocation by its owner (MGLOfflineStorage). Added a method to reload the canonical collection of packs. Previously, if the user adds an offline pack without specifying a name in the alert, the pack would be named “Untitled n” for the nth pack created since the application was launched. This logic could result in identically named packs (for example, if the user relaunches and creates another unnamed pack). Instead, use the visible coordinate bounds as a placeholder and fallback name. Resume a pack upon successful addition. Removed an extraneous weakSelf/strongSelf dance. When possible, update individual labels in a cell instead of reloading the entire cell. That way, if the user swipes to the left to reveal the Delete accessory button while the pack is actively downloading, the accessory button remains on screen as progress updates come in.
* [ios, osx] Centralized offline pack managementMinh Nguyễn2016-03-292-29/+17
| | | | | | MGLOfflineStorage now maintains a centralized, strongly held, KVO-compliant collection of all extant offline packs. MGLOfflineStorage issues notifications for progress updates. Client code can now react to the successful addition of an offline pack either via the completion block or via a KVO insertion. Fixes #4287.
* [ios] Define C nullability block type qualifiers for Xcode 6.4Minh Nguyễn2016-03-251-0/+2
| | | | This change fixes the build in Xcode 6.4.
* [ios, osx] Allow null completion handlers in MGLOfflineStorageMinh Nguyễn2016-03-141-2/+2
| | | | Cherry-picked from f6c21a0efebbda69591fa922de4af96c59933d2f.
* [ios, osx] Renamed MGLOfflineTask to MGLOfflinePackMinh Nguyễn2016-03-104-246/+247
| | | | “Offline pack” more effectively communicates the persistent nature of the downloaded content.
* [ios, osx] Distinguish between unknown and inactive stateMinh Nguyễn2016-03-101-13/+30
|
* [ios, osx] Invalidate task immediately upon removalMinh Nguyễn2016-03-101-2/+7
|
* [ios, osx] Documented offline APIsMinh Nguyễn2016-03-104-7/+287
| | | | Also categorized offline symbols for jazzy and moved styleURL from MGLOfflineRegion to MGLTilePyramidOfflineRegion, since you never know if there will be a region type not constrained by a style in the future.
* [ios, osx] Renamed offline classesMinh Nguyễn2016-03-106-82/+82
| | | | Renamed SDK classes related to offline viewing to more closely match the terminology used by mbgl and the Android SDK while remaining consistent with Cocoa naming principles.
* [osx] Added OS X support for offline downloadsMinh Nguyễn2016-03-101-0/+49
|
* [ios] Implemented offline API in iOS SDKMinh Nguyễn2016-03-105-0/+118
| | | | Fixes #3892.
* [ios] Add description strings to constituent classesJason Wray2016-03-101-1/+1
|
* Fix coordinate bounds documentation.Tom MacWright2016-02-151-2/+1
| | | | 4-space indentation was being intepreted as a Markdown code block
* [ios, osx] Consolidate remaining files in platform/{ios,osx}John Firebaugh2016-02-1211-0/+478