summaryrefslogtreecommitdiff
path: root/platform/ios/resources
Commit message (Collapse)AuthorAgeFilesLines
* Replace embedded telem implementation with mapbox-mobile-events library (#10698)Jesse Bounds2018-02-205-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios] Introduce mobile events dependency This adds the mobile events dependency including the events library's namespaced header file so that the related compiled symbols are prefixed to make them specific to the maps SDK. A pre-compiled header file is added so that the namespaced header file is added in all places where it is needed (most importantly every events library file). * [ios] Use new events library for telemetry events This makes the following significant changes: Refactors the MGLMapboxEvents singleton to delegate internally to an instance of MMEEventsManager that it keeps for itself. The MGLMapboxEvents public API is refactored to reflect this. Note: MGLMapboxEvents continues to handle checking for opt out Uses that new events API in MGLMapboxEvents to send all telem events (and turnstile) All embedded certs are removed since the new telem library uses public key info pinning Legacy telemetry utility classes for location and networking are removed since those are implemented in the telem library * [ios] Update submodules initialized by cmake We no longer bring in SMCalloutView as a submodule so it is removed. We now vendor the telemetry events library as a submodule so it is added. * Update mapbox-mobile-events * Update mobile events lib * Set events options with MGL user defaults values For options that historically could be set with user defaults in the Maps SDK, collect them and set the appropriate property values in the new events library. Also, check the existence of two new optional configuration values MGLTelemetryAccessToken and MGLTelemetryBaseURL so that the events endpoint and access token can be configured and the access token can easily be set dynamically and apart from the access token for the maps API. MGLTelemetryBaseURL replaces the legacy MGLTelemetryTestServerURL. This is ok because this value was never intended to be used by client applications. The new name better reflects the fact that the URL can be changed to any backend stack, not just a test server. Because it is possible for the configuration values to be read from user defaults before the events manager is fully set up, this also adds a local cache for the baseURL and accessToken values so that they can be stored and applied once it is time to setup the the events manager. * Update mapbox-mobile-events mapbox-mobile-events was forced pushed to include https://github.com/mapbox/mapbox-events-ios/pull/28 * Rename MGLMapboxEvents singleton access method Manager is not in the name of the class. Just call it an instance. * Update mapbox-mobile-events * Add comments about config value loading * Guard against creating events for IB * Refactor user defaults update handler This updates the handling logic for user defaults to break apart config changes that require a check for pausing or resuming the events lib’s telemetry collection from config changes that can happen with no update to the pause/resume state. It also ports the optimization from https://github.com/mapbox/mapbox-gl-native/pull/10803 so that the call to pause and resume is not performed unless the user defaults store has new values that have not yet been applied to the events library. * Update mapbox-mobile-events * Rename events submodule folder * Fix incorrect events library refs * Update mapbox-mobile-events * Update user user agent id value This value aligns with our schme of {source-sdk-platform} and will be used by the events library in the user agent and vendorid. * Update mapbox-mobile-events Pin to v3.0.0 (d522b18) * Improve code comments * [ios] Fixed a broken file reference to MGLTelemetryConfig.
* [ios, macos] Added Danish localizationMinh Nguyễn2018-02-072-0/+171
|
* [ios] Updated Swedish translationsMinh Nguyễn2018-02-071-9/+29
|
* [android, ios, macos] Updated Russian translationsMinh Nguyễn2018-02-072-30/+78
|
* [ios, macos] Converted strings files to UTF-8Minh Nguyễn2018-01-192-0/+0
|
* [android, ios, macos] Updated Ukrainian translationsMinh Nguyễn2018-01-192-27/+73
|
* [android, ios, macos] Updated Swedish translationsMinh Nguyễn2018-01-191-17/+41
|
* [android, ios, macos] Updated French translationsMinh Nguyễn2018-01-192-30/+74
|
* [android, ios, macos] Added Hebrew localizationMinh Nguyễn2018-01-191-0/+117
|
* Update iOS, macOS SDK translations (#10738)Minh Nguyễn2017-12-204-25/+66
| | | | | | | | * [ios, macos] Updated Bulgarian, Spanish, Vietnamese localizations * [ios, macos] Added Arabic localization * [ios, macos] Updated localizations
* [ios, macos] Cleaned up base localization filesMinh Nguyễn2017-12-181-0/+0
| | | | Localizable strings in Darwin classes need to specify “Foundation” as the table so that NSBundle consults the right .strings files. Reran make genstrings to add some missing strings to the base localizations and undo some manual edits to the base localizations that contained errors.
* [ios, macos] Rename the iOS and macOS SDKs (#10610)Jordan Kiley2017-12-0616-41/+41
|
* [ios, macos] Update the attribution format for small snapshots.Fabian Guerra2017-11-173-0/+367
|
* [ios] Updated Spanish, Vietnamese translationsMinh Nguyễn2017-11-144-21/+101
|
* Make places and roads accessible to VoiceOver (#9950)Minh Nguyễn2017-11-032-11/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios] Summarize places, roads after zooming with VoiceOver After zooming, MGLMapView’s accessibility value now indicates the number of visible roads and lists out a few places visible in the current viewport, starting with the features at the highest z-index (not necessarily the largest or the closest to the center of the view). Avoid saying that no annotations are visible. * [ios] Allow VoiceOver to navigate among place features Split out a separate header for the various accessibility elements tied to MGLMapView. Wrap place features in accessibility elements and insert them into the narration order after the visible annotations but before the attribution button. Refactored MGLMapView’s accessibility code to rely on ranges to avoid off-by-one errors. * [ios] Post layout change notification when fully rendered Post a layout change notification when fully finishing a map render. * [ios, macos] Moved MGLVectorSource+MGLAdditions to more specific group * [ios] Localize accessibility feature names * [ios] Find place feature accessibility elements by identifier * [ios] Refactored accessibility traits Also created a new MGLPlaceFeatureAccessibilityElement class. * [ios] Sort accessibility elements by screen distance from center Sort annotation accessibility elements by screen distance, not the hypotenuse of coordinates, which can yield incorrect results when the map is rotated or tilted or when the user is located at high latitudes. Sort place feature accessibility elements by screen distance as well. * [ios] Create a place feature accessibility element, not an abstract feature accessibility element * [ios] Only query for visible place features once per camera Improved accessibility performance after changing the map camera. MGLMapView no longer queries the map for place features once per place feature. * [ios] Made roads accessible Wrap visible road features in accessibility elements described by the road name, route number, and general direction of travel. * [ios] Cleaned up radian conversions * [ios] Thickened road accessibility elements * [ios] Made unioned roads accessible * [ios] Consistently sort accessibility elements Also fixed an issue causing road feature accessibility elements to get treated like place feature accessibility elements. * [ios] Announce direction of divided roads Announce the direction of a divided road based on the direction of its first polyline. * [ios] Refined announced elevation units * [ios] Romanize feature names * [ios] Updated changelog * [ios] Delay zoom announcement A 100-millisecond delay is enough for the post-zooming announcement to reflect the new zoom level rather than the previous zoom level. * [ios] Consolidated geometry functions Adopted MGLGeometry_Private.h in the accessibility code, forcing a conversion to Objective-C++. Avoid inlining some of the more complex geometric functions. * [ios] Fixed feature name romanization in accessibility labels NSLocale.scriptCode is only set when the locale identifier explicitly specifies a script. Use NSOrthography to identify the dominant orthography regardless of locale. Also added a unit test of feature accessibility element labels. * [ios] Added tests for place, road accessibility values * [ios] Announce one-way roads A road feature’s accessibility value now indicates whether the road is a one-way road.
* [android, ios, macos] Added Bulgarian localizationMinh Nguyễn2017-10-272-0/+127
|
* [ios, macos] Updated Brazilian Portuguese localizationMinh Nguyễn2017-10-271-4/+22
|
* [android, ios, macos] Updated translationsMinh Nguyễn2017-09-224-10/+28
| | | | Updated Catalan, Spanish, Swedish, Traditional Chinese, Ukrainian, and Vietnamese.
* [android, ios, macos] Russian, Ukrainian, Hungarian and other localization ↵Minh Nguyễn2017-09-126-23/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | updates (#9945) * [android, ios, macos] Updated Russian localization Added a Russian localization of the Android SDK. Updated the iOS and macOS Russian localizations. * [android, ios, macos] Updated Ukrainian localization Added a Ukrainian localization of the Android SDK. Updated the iOS and macOS Ukrainian localizations. * [ios, macos] Updated Traditional Chinese localization * [macos] Added Hungarian localization * [android] corrected typos * [ios, macos] Updated Ukrainian localization * [android, ios, macos] Configured Foundation.stringsdict on Transifex * [ios, macos] Pulled in Foundation.stringsdict from Transifex Updated the German, Lithuanian, and Vietnamese localizations with Foundation.stringsdict files matching Transifex.
* [android, ios, macos] Updated French localizationMinh Nguyễn2017-07-191-0/+18
| | | | Updated French localization on iOS and macOS and added French localization on Android.
* [ios, macos] Fix size and color of default marker imageJason Wray2017-06-261-0/+0
|
* [ios] Updated German localizationMinh Nguyễn2017-06-221-0/+18
|
* [ios] Added Hungarian localization from TransifexMinh Nguyễn2017-06-221-0/+93
|
* [ios] Update telemetry cert pinning (#9292)Jesse Bounds2017-06-194-0/+0
|
* [ios] Move image resources to an asset catalog & switch to PDFsJason Wray2017-05-2316-0/+42
|
* [ios, macos] Updated localizations from TransifexMinh Nguyễn2017-05-0812-20/+221
| | | | | | Pulled various translations from Transifex. Although Transifex supports the stringsdict format, it doesn’t allow translators to customize the format. This change splits out a separate “level” key for the same format string and moves any prefixes and suffixes into the “level” and “count” keys. For now, each localization has been updated manually, but future updates will come from Transifex.
* [ios, macos] Corrected map a11y value format stringsMinh Nguyễn2017-05-023-6/+6
| | | | Corrected MGLMapView accessibility value format strings in Catalan, Russian, and Swedish.
* [ios] Added sv stringsdictFredrik Karlsson2017-05-021-0/+23
|
* [ios, macos] Updated ca, es, sv, vi, zh-Hans localizations from TransifexMinh Nguyễn2017-05-024-11/+74
|
* [ios, macos] Update MGLMapView logo view (#8771)Minh Nguyễn2017-04-243-0/+0
| | | | | | * [ios, macos] Updated logo view to new Mapbox logo * [default] Updated attribution logo SVG
* [ios] Localized map view proxy accessibility hintMinh Nguyễn2017-03-301-3/+5
|
* Merge branch 'release-ios-v3.5.0-android-v5.0.0'John Firebaugh2017-03-216-4/+136
|\
| * [ios, macos] Russian, Catalan, Lithuanian, Finnish, Dutch (#8256)Minh Nguyễn2017-03-084-4/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Updated Russian translations * [ios, macos] Added Catalan translation * [ios, macos] Completed Lithuanian translation * [ios, macos] Added Finnish translation * [ios, macos] Fixed Polish, Ukrainian declension * [ios, macos] Updated changelogs * [ios, macos] Added Dutch localization
| * [ios] Add SDK version update checking/notificationJason Wray2017-03-072-0/+6
| |
* | [ios, macos] Fix map load error descriptions (#8466)Minh Nguyễn2017-03-181-0/+12
|/ | | | | | | | * [ios, macos] Corrected map load error descriptions Ensured the uniqueness of localizable string IDs. Ran make genstrings to add the -[MGLMapViewDelegate mapViewDidFailToLoad:withError:] error description strings to the base localization. * [ios, macos] Moved failure error changelog entry to new release
* [ios, macos] Added Lithuanian localizationMinh Nguyễn2017-02-201-0/+75
|
* [ios, macos] Polish, Russian, Spanish, Ukrainian translationsMinh Nguyễn2017-02-203-0/+225
|
* [ios] Add partial Japanese localizationJason Wray2017-02-091-0/+75
|
* [ios, macos] Brazilian Portuguese, French, German, Japanese, Swedish, VietnameseMinh Nguyễn2017-02-098-0/+444
| | | | Pulled translations from Transifex. Added locales with at least one file translated 80% or more.
* [ios, macos] Traditional Chinese localizationMinh Nguyễn2017-02-031-0/+84
|
* Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.5-masterMinh Nguyễn2016-12-201-9/+0
|\ | | | | | | Also reran make style-code and manually discarded anything related to fill extrusion layers.
| * [ios, macos] Source-driven attribution (#5999)Minh Nguyễn2016-12-081-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Source-driven attribution Refactored MGLSource initialization. Implemented a new private class, MGLAttributionInfo, that parses an HTML attribution string from TileJSON and stores the resulting structured data. Added methods to MGLTileSet and MGLStyle to aggregate MGLAttributionInfos. On macOS, update the attribution view as soon as the source attribution changes. On iOS, fetch the current attribution information when displaying the action sheet. Removed hard-coded attribution strings. * [macos] Respect inline formatting in attribution HTML Apply a default font and color to attribution HTML as it is imported into an attributed string. Pass the attributed string into MGLAttributionButton as is, without stripping formatting. Avoid overriding the font and color after importing the HTML, in case these attributes are explicitly specified rather than intrinsic to a hyperlink. Constrain the top of the attribution view to all the attribution buttons, in case one of them needs additional headspace. * [ios, macos] Display unlinked attribution strings Unlinked attribution strings are represented on macOS as buttons that have the default cursor and do nothing when clicked. On iOS, they are action sheet buttons that do nothing but dismiss the action sheet. * [macos] Fixed random Auto Layout exception Auto Layout randomly finds itself unable to satisfy constraints when updating attribution, due to some spurious constraints between attribution buttons. Regenerate the entire attribution view every time the source attribution changes. * [ios, macos] Thoroughly dedupe attribution infos Also added a test to verify parity with the GL JS implementation. This implementation avoids sorting. * [ios, macos] Trim whitespace from attribution strings Also added parsing tests. * [ios, macos] Added attribution parsing tests for styles Included an emoji test to ensure that attribution strings are interpreted as UTF-8, to avoid mojibake. Included a test of removing the underline from a leading copyright symbol. * [ios, macos] Derive feedback link from source MGLAttributionInfo now detects feedback links in the attribution HTML code, and it is responsible for tailoring the feedback URL to the current viewport. Removed the hard-coded feedback action from the attribution sheet on iOS in favor of a source-derived feedback title and URL. Moved the feedback action from macosapp to MGLMapView; applications are now expected to hook an Improve This Map menu item to an MGLMapView action.
* | Simplified Chinese localization (#7316)YunjieLi2016-12-091-0/+84
|/ | | | | | | | | | * translated into Chinese * light edits to translations * update two changelogs; remove .stringsdict files * remove update from macos changelog
* [ios, android] Move der files to ios platformJesse Bounds2016-11-303-0/+0
| | | | | | | .der files are used only by the iOS platform for SSL pinning. This moves them out of the `platform/default/resources` directory and into `platform/ios/resources`. The make configuration for Android is updated so that it stops attempting to copy the files at all.
* [ios] Corrected map accessibility valueMinh Nguyễn2016-05-041-8/+4
| | | | | | Corrected the English override strings for the map view’s accessibility value. Prior to this change, the accessibility value would say “0 annotation” instead of “0 annotations” for some reason. The zoom level in the map view’s accessibility value is off by two.
* [ios] Moved .stringsdict from Base.lproj to en.lprojMinh Nguyễn2016-04-261-0/+0
| | | | .stringsdict overrides need to be in real language .lprojs, not Base.lproj.
* [ios] Announce zoom level, visible annotations after zoomingMinh Nguyễn2016-04-262-0/+30
| | | | | | Announce the zoom level and number of visible annotations after zooming using VoiceOver’s swipe up or swipe down gesture. Works toward #4821.
* [ios] Fixed ℹ️, user dot accessibilityMinh Nguyễn2016-04-261-1/+1
| | | | The user location annotation view is created lazily, so if the user dot isn’t within view at launch, it doesn’t exist by the time UIKit first queries MGLMapView for child accessibility elements. This caused console spew about missing accessibility elements and prevented the ℹ️ from being visible to XCUITest.
* [ios] Added accessibility labels, hints, gesturesMinh Nguyễn2016-04-251-1/+4
| | | | | | | | | | Fixed an issue where the “return to map” accessibility element lacked a label. Always update the title and subtitle of an annotation accessibility element, in case the title or subtitle changes from one showing to the next. Added a hint for annotations. Use declarative rather than imperative for hints. Marked the map view and its annotations as adjustable so that swiping up and down with VoiceOver zooms out and in, respectively. Added accessibility values to toolbar buttons in iosapp.
* [ios] Made compass and user dot accessibleMinh Nguyễn2016-04-251-4/+7
| | | | | | Made the compass behave like a button when visible. Added accessibility values and hints. The compass’s accessibility value uses the compass direction formatter. Turned off direct interaction with the map because it obscures the ornaments. The user dot now reports the current coordinates. Its accessibility label now reflects its annotation’s title instead of the hardcoded label “User location”. (It’d be weird to address the VoiceOver user as “user”.)