summaryrefslogtreecommitdiff
path: root/platform/darwin
Commit message (Collapse)AuthorAgeFilesLines
* [ios] Set backup exclusion flag after initializing DefaultFileSource (#5124)Jason Wray2016-05-242-7/+30
| | | Speculatively fixes #511, where apps mistakenly backup the offline/ambient cache.
* [ios] Make MGLCoordinateInCoordinateBounds() public (#5053)Jason Wray2016-05-173-5/+29
| | | Bounds should always be in NE, SW order — any other coordinate order (e.g., NW, SE) will give false results.
* [core] move from microsecond precision timestamp to integer second precisionKonstantin Käfer2016-05-131-2/+2
|
* Merge branch 'release-ios-v3.2.2' into 1ec5-release-ios-v3.2.2-masterMinh Nguyễn2016-05-101-0/+6
|\
| * [ios, osx] Revised style descriptionsMinh Nguyễn2016-05-061-9/+9
| | | | | | | | | | | | Revised style descriptions to be more consistent with how the styles are described on www.mapbox.com. Cherry-picked from 5035dc8418d931551bd58360bc82de2ae34cb066.
| * [ios, osx] Renamed version constant, linked to more infoMinh Nguyễn2016-05-063-37/+41
| | | | | | | | | | | | | | | | Renamed MGLStyleCurrentVersion to MGLStyleDefaultVersion to emphasize the constant’s role as an indicator of the default version used by SDK classes, which may be behind depending on release schedules. In the documentation for each style URL method, include the actual version number instead of the constant. In unit tests, verify that this documentation is in sync with the constant. Link each style URL method’s documentation to a forthcoming webpage on mapbox.com that describes the style in rich detail. Cherry-picked from 2ec95bc490c5793b7b8a3aa9999f48d196ca8085.
| * [ios, osx] Renamed Hybrid to Satellite StreetsMinh Nguyễn2016-05-062-7/+17
| | | | | | | | | | | | The style ID has also changed, but the unversioned method will continue to point to the old v8 style ID. Cherry-picked from 5ccb43477fc1d2028aef283d0db64848ebc9a347.
| * [ios, osx] Pin unversioned style URL APIs to v8 stylesMinh Nguyễn2016-05-062-7/+7
| | | | | | | | Cherry-picked from 4a112c00f1634be40d10aa4797ac8e9262b8711a.
| * [core, ios, osx] Version default style URL APIs; deprecated EmeraldMinh Nguyễn2016-05-063-28/+110
| | | | | | | | | | | | | | | | | | | | | | | | Updated default styles from v8 to v9. Deprecated the MGLMapView class methods in favor of new methods that take a version parameter. Deprecated Emerald outright in favor of Outdoors. Replaced usage of the unversioned MGLStyle methods with the corresponding versioned methods and MGLStyleCurrentVersion to ensure consistency. Expanded MGLStyle unit tests to also assert that MGLStyle has the right number of style URL methods and that they’re all public. Linked the OS X SDK unit test bundle to libmbgl-core.a. Removed an unnecessary dependency on osxapp. Replaced Emerald with Outdoors in iosapp and osxapp. Fixes the iOS and OS X side of #4577 and #4702. Cherry-picked from 2a4eeadb295775236fe1a89b50f9179b790b127a.
| * [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. Cherry-picked from de0705c7ede7fea5980ed220a1160085630bd89e.
* | [ios, osx] Reformatted documentation commentsMinh Nguyễn2016-05-1011-72/+228
| | | | | | | | Reformatted documentation comments in public headers in the OS X SDK and public headers shared between the iOS and OS X SDKs to wrap at column 80 and avoid excessive indentation that causes SourceKitten to detect code blocks.
* | [ios, osx] Revised style descriptionsMinh Nguyễn2016-05-061-9/+9
| | | | | | | | Revised style descriptions to be more consistent with how the styles are described on www.mapbox.com.
* | [ios, osx] Renamed version constant, linked to more infoMinh Nguyễn2016-05-065-52/+74
| | | | | | | | | | | | Renamed MGLStyleCurrentVersion to MGLStyleDefaultVersion to emphasize the constant’s role as an indicator of the default version used by SDK classes, which may be behind depending on release schedules. In the documentation for each style URL method, include the actual version number instead of the constant. In unit tests, verify that this documentation is in sync with the constant. Link each style URL method’s documentation to a forthcoming webpage on mapbox.com that describes the style in rich detail.
* | [ios, osx] Renamed Hybrid to Satellite StreetsMinh Nguyễn2016-05-063-8/+18
| | | | | | | | The style ID has also changed, but the unversioned method will continue to point to the old v8 style ID.
* | [ios, osx] Pin unversioned style URL APIs to v8 stylesMinh Nguyễn2016-05-063-12/+12
| |
* | [core, ios, osx] Version default style URL APIs; deprecated EmeraldMinh Nguyễn2016-05-066-35/+172
| | | | | | | | | | | | | | | | | | | | Updated default styles from v8 to v9. Deprecated the MGLMapView class methods in favor of new methods that take a version parameter. Deprecated Emerald outright in favor of Outdoors. Replaced usage of the unversioned MGLStyle methods with the corresponding versioned methods and MGLStyleCurrentVersion to ensure consistency. Expanded MGLStyle unit tests to also assert that MGLStyle has the right number of style URL methods and that they’re all public. Linked the OS X SDK unit test bundle to libmbgl-core.a. Removed an unnecessary dependency on osxapp. Replaced Emerald with Outdoors in iosapp and osxapp. Fixes the iOS and OS X side of #4577 and #4702.
* | [core] Use geometry.hpp feature typeJohn Firebaugh2016-05-031-1/+0
| |
* | [ios] Updated offline pack testsMinh Nguyễn2016-04-272-4/+9
| | | | | | | | Updated the MGLOfflinePackProgress boxing test to test the two new fields. Wordsmithed the documentation a bit. Updated the changelog.
* | [ios, osx] Add countOfTilesCompleted bindingJohn Firebaugh2016-04-272-0/+6
| |
* | [ios, osx] Add a property for bytes used by offline tilesBrent Whitman2016-04-272-1/+6
| |
* | [ios, osx] Fixed direction formatter edge casesMinh Nguyễn2016-04-244-2/+35
| | | | | | | | Fixed an issue causing angles that are multiples of 360°, such as 720°, to be described as 0 o’clock. Fixed a crash when a compass direction is close enough to 360° to round up to 360°.
* | [ios, osx] Made OS X SDK localizableMinh Nguyễn2016-04-242-0/+345
| | | | | | | | Replaced the iOS-specific ilocalize make rule with a genstrings make rule that creates iOS, OS X, and shared strings files. Moved the override English .stringsdict file under darwin/resources/. Made the default OS X callout view XIB localizable. Made some hard-coded strings in the OS X SDK source localizable.
* | [ios, osx] Corrected quarter wind abbreviationsMinh Nguyễn2016-04-242-33/+33
| |
* | [ios, osx] Made localizable strings unique; unlocalized iosappMinh Nguyễn2016-04-244-97/+101
| | | | | | | | | | | | Assigned unique IDs to localizable English strings in code. Made iosapp non-localizable. For the time being, it isn’t worth the trouble to localize more strings for this demo application than for the SDK itself.
* | [ios, osx] Corrected clock, coordinate formatsMinh Nguyễn2016-04-248-167/+290
| | | | | | | | | | | | | | | | Long unit style isn’t intended to be spelled out, so the clock and coordinate direction formatters now use numerals for long unit style, differing from medium unit style in less drastic ways. The locale no longer needs to be exposed, since it’ll always match the overall string’s locale. Added support to the coordinate formatter for different unit styles. Made minutes and seconds of arc optional. Maintain strings for darwin/ formatter classes in a separate Foundation strings table that can be shared between the iOS and OS X SDKs. Added an English .stringsdict override that correctly pluralizes units. Capitalize osxapp window titles, now that they spell out the directions.
* | [ios] Made SDK and iosapp localizableMinh Nguyễn2016-04-244-0/+24
| | | | | | | | | | | | | | | | | | | | Made storyboards and strings throughout the SDK and iosapp localizable. Replaced the compass image with an unlabeled image. Draw a localizable string atop it at runtime. Redefined NSLocalizedString() and NSLocalizedStringFromTable() macros to look at the SDK bundle rather than the main application bundle. This redefinition has no effect on the host application, because it’s in an internal header. That header must be included in all files that contain localizable strings. See NSBundle+MGLAdditions.h for a full explanation. Added a make rule that runs genstrings and ensures UTF-8 output (since genstrings insists on UTF-16). Use MGLCoordinateFormatter in iosapp for dropped pin callouts. Rely on subclasses of MGLPointAnnotation instead of annotation titles to distinguish between different kinds of point annotations.
* | [ios, osx] Eliminated platform/{ios,osx}/includeMinh Nguyễn2016-04-2320-0/+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-2210-115/+134
| | | | | | | | 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-227-177/+216
| | | | | | | | 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-223-0/+355
| | | | | | | | 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-224-0/+131
| | | | | | | | | | | | 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-222-0/+84
| | | | | | | | | | | | 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.
* | [build/osx] Fix missing generated header include pathBruno de Oliveira Abinader2016-04-181-1/+1
| |
* | [ios, osx] Include app/OS name/version in user agentMinh Nguyễn2016-04-171-2/+94
| | | | | | | | Fixes #3997.
* | [ios, osx] Took advantage of C99Minh Nguyễn2016-04-166-39/+20
| | | | | | | | 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] Fixed make test-iosMinh Nguyễn2016-04-162-17/+17
| | | | | | | | | | | | For some reason, the SDK tests are less accurate when run on the command line than when run in Xcode or on OS X. Also fixed unused variable warnings in the tests.
* | [ios, osx] Shared test bundleMinh Nguyễn2016-04-165-0/+288
| | | | | | | | | | | | The iOS and OS X SDKs now share a non-UI test bundle. Moved the iOS UI test bundle into a uitest/ subdirectory and moved the OS X SDK tests into the darwin/ subdirectory. Upgraded KIF to v3.4.2.
* | [ios] Removed alternative to -ObjCMinh Nguyễn2016-04-167-22/+0
| | | | | | | | | | | | Xcode’s static library template comes with the -ObjC linker flag by default. Instead of removing that flag, this change removes the various imperfect workarounds we’ve been using to ensure that private SDK categories link. Given the size decrease in this static library since #2966 was fixed, we should have room to spare for the more straightforward approach. Moreover, an application that uses MGLMapView in a storyboard no longer needs to add -ObjC to the application target, which bloated the entire application, including other frameworks that had no need for -ObjC. -ObjC isn’t even needed for dynamic frameworks, and the OS X SDK is only built as a dynamic framework.
* | [ios] Moved SDK from gyp into Xcode projectMinh Nguyễn2016-04-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a new Cocoa Touch dynamic framework target and Cocoa Touch static library target to the main iOS Xcode project. The targets are based on the templates provided by Xcode. They contain headers and source files in the darwin/ and ios/ subdirectories. Headers are explicitly marked public or project-internal instead of implicitly by subdirectory. The SDK targets have a few dependencies that are managed by mason. Transform the config.gypi generated by configure into an .xcconfig file that Xcode uses to fill in compiler and linker flags. Removed the iossdk target from platform.gypi and pared down the platform-lib target. make iproj opens the overall Xcode workspace instead of just the core project. Resolved some warnings that are only now appearing because we’re using the standard warning and error flags instead of the pedantic and somewhat inappropriate flags that were forced by the gyp configuration files. Removed a console message informing developers of a long-ago deleted delegate method; the message was triggering a “selector not found” warning. Conditionalized some deprecated symbol usage that’s still needed for the static framework but not the dynamic framework, due to differing minimum deployment targets. Added a build phase to the static library target that copies headers for use with the static library itself. This would allow us to potentially include a header in the dynamic framework but not the static library and vice-versa. Updated the changelog to note that unused SVG files have been removed from the distribution.
* | [all] Replace HTTPContextBase/HTTPRequestBase with FileSourceJohn Firebaugh2016-04-142-243/+228
| |
* | [core] Render from the main threadJohn Firebaugh2016-04-142-2/+2
| | | | | | | | Do not create a thread for the MapContext anymore.
* | [darwin] use CFRunLoopSourceInvalidate() to also cancel any pending ↵Konstantin Käfer2016-04-121-1/+1
| | | | | | | | AsyncTask invocations
* | [ios, osx] Compile http_request_nsurl.mm with ARCJohn Firebaugh2016-04-051-26/+2
| |
* | [ios, osx] Replace libuv with native implementationsJohn Firebaugh2016-04-013-0/+182
| |
* | [ios, osx, linux] Remove unused "applicationRoot" functionJohn Firebaugh2016-03-311-18/+0
| |
* | Merge branch 'release-ios-3.2.0-android-4.0.0'John Firebaugh2016-03-3010-133/+482
|\ \ | |/
| * [ios, osx] Require progress to be requested manuallyMinh Nguyễn2016-03-294-23/+29
| | | | | | | | 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-294-7/+70
| | | | | | | | 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-292-1/+55
| | | | | | | | Implemented NSSecureCoding and NSCopying protocols for MGLTilePyramidOfflineRegion so that it can be used more fluidly by client code.