summaryrefslogtreecommitdiff
path: root/platform/ios/framework
Commit message (Collapse)AuthorAgeFilesLines
* Simplified Chinese localization (#7316)YunjieLi2016-12-091-0/+3
| | | | | | | | | | * translated into Chinese * light edits to translations * update two changelogs; remove .stringsdict files * remove update from macos changelog
* [ios] Use base localization for Settings.bundleMinh Nguyễn2016-04-243-3/+6
| | | | Also converted the bundle’s strings file from UTF-16 encoding to UTF-8 encoding for better diffability.
* [ios] Streamlined resource bundlingMinh Nguyễn2016-04-242-1/+31
| | | | | | | | Added a target that produces Mapbox.bundle. Replaced $BUNDLE_RESOURCES and $PLACE_RESOURCE_BUNDLES_OUTSIDE_FRAMEWORK with a single variable, $SELF_CONTAINED, that determines whether the output static framework is self-contained – that is, whether it contains Mapbox.bundle, Settings.bundle, and LICENSE.md. Eliminated the ability to produce a static framework that has the same layout as a dynamic framework. Now, resources are always in Mapbox.bundle; self-containment only determines where that bundle resides. Added a separate source Info.plist to be placed in both the static framework and its resource bundle, but only after we give the build system a chance to expand variables within it. Now nearly all the Info.plist keys are filled in by the build system rather than using plutil in package.sh.
* [ios, osx] Updated build system for jazzyMinh Nguyễn2016-04-221-33/+0
| | | | 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-221-1/+2
| | | | 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/+1
| | | | 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/+1
| | | | | | 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] Removed alternative to -ObjCMinh Nguyễn2016-04-161-32/+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-162-8/+10
| | | | | | | | | | | | | | 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.
* [build] Refactor and simplify build systemJohn Firebaugh2016-04-071-71/+0
| | | | | | | | | | | | | | * Main gyp files are now standardized as platform/<platform>/platform.gyp. * Each platform gyp file defines appropriate loop_lib and headless_lib variables. * Each platform gyp file includes mbgl.gypi, which defines base targets which may be useful to all platforms. * CI targets are consistent across platforms: `make $(PLATFORM) && make test-$(PLATFORM)`. * Renamed the "linux" test app to "glfw". It's now built in OS X CI. * Android build flakiness is fixed. * iOS CI builds the bench and iosapp targets. * Mesa version is now in one place. * CI scripts use bash "strict mode" and correct error handling. * All build output goes to the build directory. * Removed vestigial iOS/OS X/Android Travis scripts.
* [ios, osx] Renamed MGLOfflineTask to MGLOfflinePackMinh Nguyễn2016-03-102-2/+2
| | | | “Offline pack” more effectively communicates the persistent nature of the downloaded content.
* [ios, osx] Renamed offline classesMinh Nguyễn2016-03-102-7/+7
| | | | 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.
* [ios] Implemented offline API in iOS SDKMinh Nguyễn2016-03-102-0/+7
| | | | Fixes #3892.
* [ios] Non-embedded static frameworkMinh Nguyễn2016-03-081-0/+2
| | | | | | Added a new ifabric Make target for packaging up a static framework similar to the one released as 3.0.1. Place artwork and certificate assets inside Mapbox.bundle inside Mapbox.framework. Link SystemConfiguration in the umbrella header. Distinguish between the framework bundle and the resources bundle. For the dynamic frameworks and embedded static frameworks, the two are the same; for the non-embedded static framework, the latter resides inside the former.
* [ios] Moved static include fileMinh Nguyễn2016-02-271-0/+3
| | | | This file was originally added on the release-ios-v3.1.0 branch, before #3913 merged ios/ into platform/ios/. When the release branch was merged back into master in 17f44d7bd99f2c44e45eadc36d671dc29c88c64d, the file was left in the old ios/ directory.
* Merge branch 'release-ios-v3.1.0'Minh Nguyễn2016-02-241-0/+1
|
* [ios, osx] Consolidate remaining files in platform/{ios,osx}John Firebaugh2016-02-128-0/+260