Commit Graph

2282 Commits

Author SHA1 Message Date
Julian Rex
823670ea35 [ios, macos] Optionally include a developer xcconfig file in generated config.xcconfig file. (#14766) 2019-06-14 16:47:48 -04:00
Jason Wray
9872416c1f [build, darwin] Enable aggressive API usage warnings 2019-06-14 09:20:10 -07:00
Fabian Guerra
d7ac45da33 [ios] Bump podspec to v5.1.0-beta.1 2019-06-13 15:44:51 -07:00
Nadia Barbosa
92f282b52d [iosapp] Introduce map state manager (#14591) 2019-06-13 09:35:41 -07:00
Mikhail Pozdnyakov
6b7d3a16c0 [android][mac][ios] Update changelogs 2019-06-12 20:39:03 +03:00
Konstantin Käfer
d372124219 [ios] fix benchmark app 2019-06-12 18:08:18 +02:00
Julian Rex
edd04d31eb [ios] Added offline query parameter (#14857) 2019-06-11 18:22:20 -04:00
Fredrik Karlsson
ad1b448da5 [ios] get sku token return value 2019-06-11 18:35:07 +02:00
Fabian Guerra
75659e26b8 [ios] Bump podspec to v5.1.0-alpha.2 2019-06-06 14:59:45 -07:00
Alf Watt
9ebd831e32 [ios] Integrate Mapbox Mobile Events 0.9.4 (#14868)
* [ios] Mapbox Events 0.9.4

* Run `scripts/generate-file-lists.js`

* Explicitly use the shared manager instead of init

* There can be only one `Scripts`
2019-06-06 13:43:23 -07:00
Jason Wray
bd3d19f5bd [ios] Update libmbxaccounts for navigation SDK override (#14802)
* Use a stringy selector... yerg.
* Bump to libmbxaccounts 1.0.0
2019-06-05 23:13:34 -07:00
Alexander Shalamov
a5f7f73dfe [ios] Update changelog for #14810 2019-06-05 00:03:13 -07:00
Alexander Shalamov
a71ccae141 [ios] Add integtation test that verifies MGLMapViewImpl size 2019-06-05 00:03:13 -07:00
Alexander Shalamov
0ba0b8c040 [ios] Calculate size of a MGLMapViewOpenGLImpl renderable from MGLMapView bounds
Fixes: #14807
2019-06-05 00:03:13 -07:00
Jason Wray
015a64b2a2 [ios] Fix undeclared selector warning in MGLAnnotationView
`setCoordinate:` isn't available to regular MGLAnnotation, only MGLPointAnnotation.
2019-06-03 16:49:42 -07:00
Fabian Guerra Soto
402645109f [ios] Fix content insets with custom edge padding. (#14813)
* [ios] Fix content insets with custom edge padding.

* [ios, macos] Consolidated edge insets math

* [macos] Add content insets to edge padding when setting camera

* [ios, macos] Updated changelogs

* [ios, macos] Clarify setCamera:withDuration:animationTimingFunction:edgePadding method documentation.
2019-06-03 07:32:20 -07:00
Aleksandar Stojiljkovic
1637a4b694 [ios] Content insets border case fix and comment.
Allows changing camera when user duplicates content insets.

Related to previous patch and comment:
https://github.com/mapbox/mapbox-gl-native/pull/14664#pullrequestreview-243004376
Thanks @1ec5
2019-06-03 08:55:39 +03:00
Fabian Guerra Soto
316584fabc [ios] Bump podspec to v5.1.0-alpha.1 (#14800)
* [ios] Podspec bump to v5.1.0-alpha.1

* [ios] Update changelog.
2019-05-29 14:29:11 -07:00
Konstantin Käfer
9eb43a587b [ios,macos] refactor MGLMapViewImpl 2019-05-29 18:27:42 +02:00
Aleksandar Stojiljkovic
e5431d0181 Asymmetric viewport changelog entry
Check edge insets difference, in addition to isEqualToMapCamera in all the places in MGLMapView before map.easeTo/map.flyTo.
2019-05-28 14:38:01 +03:00
Aleksandar Stojiljkovic
9809c9f8f5 [core] Offset viewport center when edge insets are specified
The change is implemented in TransformState::getProjMatrix, the rest of the code is making sure that existing API contracts stay and there are tests verifyingrendering and render query processing only items within screen and given tolerance around screen edges.

MapView: don't bake edge insets into relalculated camera center. Keep edge insets as property of camera in TransformState (similar to pitch, zoom, bearing) independent from specified camera center. Interpolate edge insets in animation.

iOS Demo app: "Turn On/Off Content Insets" pitch the camera and navigate to convenient location in Denver, where streets are parallel to cardinal directions, to illustrate viewport center offset when edge insets are set.

Tests:
ViewFrustumCulling: although Annotations are deprecated, queryRenderedFeatures related tests in Annotations would need to get ported and decided to add the edge insets related query tests next to them. Verify frustum culling (render+queryRenderedFeatures) With different camera and edge insets setups. TODO: port Annotations tests.

Transform.Padding: Verify that coordinates take proper place on screen after applying edge insets.

LocalGlyphRasterizer: verify text rendering when applying padding.

Related to #11882: both use projection matrix elements [8] and [9].

Alternative approach to this was to increase and offset map origin so that the screen would be a sub-rectangle in larger map viewport. This approach has a drawback of unecessary processing the items that are outside screen area.

Fixes #12107, #12728, navigation-sdks/issues/120
2019-05-28 14:38:01 +03:00
Jason Wray
9229556dd9 [ios, build] Specify Mapbox development team for project iOS apps 2019-05-24 13:28:11 -07:00
Nadia Barbosa
a4380fd08c [ios] Add missing tick to Podspec specification (#14729)
* [ios] Add missing tick to Podspec specification

* [ios] Remove unnecessary parenthesis from link in changelog
2019-05-22 15:00:31 -07:00
Nadia Barbosa
e2ed9833c4 [ios] Podspec & changelog updates for v5.0.0 (#14717)
* [ios] Podspec bumps for v5.0.0

* [ios] Update changelog for 5.0.0
2019-05-21 17:42:33 -07:00
Jason Wray
29140f5b11 [ios] Enable SKU tokens for all requests
Removes conditional code that relied on a plist flag. Other small cleanups.
2019-05-20 22:49:50 -07:00
Aleksandar Stojiljkovic
3cd8c6c1fd [core] Refactor HeadlessFrontend/Backend: GL separation and factory (#14692)
Refactor out HeadlessFrontend and HeadlessBackend gl independent code to gfx.
Define gl::HeadlessBackend as subclass, instantiated by gfx::HeadlessBackend static factory method.
GL dependent tests are still using gl::HeadlessBackend directly (not through gfx).
2019-05-21 07:37:49 +03:00
Nadia Barbosa
a0467ca76d [ios] Podspec updates for v4.12.0-beta.1 2019-05-16 15:03:54 -07:00
Jason Wray
6e92ca5de3 [ios] Update to libmbxaccounts 0.0.5 (#14683) 2019-05-16 09:43:42 -04:00
Sam Fader
163c085c38 [ios, macos] clarified documentation for newCamera param of the shouldChangeFromCamera delegate (#14680)
* [ios, macos] clarified documentation for newCamera in shouldChangeFromCamera

* [ios, macos] clarified documentation for newCamera param of the shouldChangeFromCamera delegate part 2
2019-05-15 18:30:28 -07:00
Fabian Guerra
295ce38f2b [ios] Update podspec to v4.11.0. 2019-05-15 14:34:54 -07:00
Minh Nguyễn
615c5387fc [macos] Copyedited changelog
Synchronized the changelog with the iOS changelog. Removed some entries about internal changes or iOS-only changes. Recategorized entries.
2019-05-10 08:08:51 -07:00
Thiago Marcos P. Santos
06f1dc48a2 [core] Make the BackgroundScheduler a singleton
- Do not carry it over everywhere as parameter, it is a shared
  instance anyway and the lifecycle is pretty much the app lifecycle
  from the moment we instantiate a map.
- Rename to BackgroundScheduler because it is a Scheduler that will
  do tasks in the background, we don't make assumptions if it is a
  thread pool or a single thread.
- Most importantly, remove the dependency from `core` on `platform`.
2019-05-10 14:20:38 +03:00
Jason Wray
49b8e0a626 [ios] Remove obsolete telemetry gesture events 2019-05-09 14:52:44 -07:00
Nadia Barbosa
fc218f8209 [ios] Podspec & changelog updates for v4.12.0-alpha.2 2019-05-08 12:55:12 -07:00
Minh Nguyễn
e69efb996d [ios] Interpret negative direction as unchanged when setting visible coordinates (#14575)
* [ios] Fixed negative direction when setting visible coordinates

* [ios] Document behavior of negative direction
2019-05-03 09:02:03 -07:00
Julian Rex
359f2bb743 [ios] Uppercase'd "string" to remove cmake warning (#14576) 2019-05-03 10:45:11 -04:00
Julian Rex
f7915fdc51 [ios] Static analysis fix tweaks - part 2 (#14572) 2019-05-02 14:08:48 -04:00
Nadia Barbosa
3e4afbc788 [iosapp] Move token setting to build script
[ios] Switch to script-based token insertion for benchmarking app

[ios] Update Developing.md

[iosapp, benchmark app] Look for token file outside of version-controlled directory

[iosapp, benchmark app] Remove remaining code for access token checking from app delegates

Feedback edits for @friedbunny
2019-05-01 18:30:46 -07:00
Nadia Barbosa
8b91a4a037 [ios] Add changelog header for v4.12.0-alpha.1 2019-05-01 16:12:15 -07:00
Nadia Barbosa
5b28c1eb9c [ios] Update Podspecs for v4.12.0-alpha.1 2019-05-01 15:15:12 -07:00
Julian Rex
d5822ab386 [ios] Update podspecs for 4.11.0-beta.2 (#14556) 2019-05-01 15:10:53 -04:00
Julian Rex
9bd59bf041 [ios, macos] Fixes for static analyzer warnings (#14453) 2019-04-30 17:08:37 -04:00
Julian Rex
b15b78346f [ios] Check for valid superview to avoid crash on iOS 9 (#14529) 2019-04-30 16:11:14 -04:00
Jason Wray
7263c7973b [ios] Remove events=true from new SKU requests 2019-04-29 15:12:38 -07:00
Jason Wray
9ad89cf8d7 [ios] Update to libmbxaccounts-v0.0.4 2019-04-29 15:12:38 -07:00
Julian Rex
12428ef05d [ios] Preparation for v4.11.0-beta.1 release. (#14503) 2019-04-24 16:56:28 -04:00
Julian Rex
43553c37e9 [ios] Enable/Disable sku token handling (#14467) 2019-04-24 14:40:45 -04:00
Fabian Guerra Soto
88a6525427 [ios] Make MGLLocationManager protocol swift friendly. (#14477)
Improved MGLLocationManager protocol bridging to swift.

* [ios] Make MGLLocationManager protocol swift friendly.

* [ios] Update changelog.
2019-04-24 09:12:45 -07:00
Jason Wray
a46957e0c7 [ios, build] Update to libmbxaccounts v0.0.2 (#14462) 2019-04-19 09:58:53 -04:00
Jason Wray
d5569f4b01 [ios] Add SKU tokens to all Mapbox requests (#14421) 2019-04-17 18:27:54 -07:00