Commit Graph

3081 Commits

Author SHA1 Message Date
Minh Nguyễn
4f40fceb72 Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.2-master 2016-11-03 13:16:27 -07:00
Minh Nguyễn
7c68d7773d [macos] Enabled runtime styling tests
Added the style layer tests to the test bundle target.

Set the access token to a bogus access token before running any tests. The macOS implementation of MGLMapView doesn’t even attempt to set a default style if the access token is missing, because in macosapp, the access token may be set asynchronously by the user when the preferences window appears.
2016-11-02 21:12:45 -07:00
Minh Nguyễn
0ee119ad76 [macos] Fixed color roundtripping
Fixed an issue that caused the runtime styling API to return colors in the sRGB color space instead of the calibrated RGB color space.
2016-11-02 21:12:45 -07:00
Minh Nguyễn
c38e743d45 [macos] Added MGLValueEvaluator to project
This header was missing from the project. The code was only compiling because the header was still on the search path.
2016-11-02 21:12:45 -07:00
Minh Nguyễn
f98a544886 [ios, macos] Share more tests
Moved MGLGeoJSONSourceTests and MGLTileSetTests into platform/darwin/test/ and added them to the macOS project. Also added a private header needed to compile the tests to the macOS project.
2016-11-02 21:12:45 -07:00
Jason Wray
b8a2fd390c Merge branch 'release-ios-v3.3.5' into master 2016-11-02 16:18:17 -04:00
Minh Nguyễn
2536ccc6a7 [ios] Fixed deprecation warnings 2016-11-02 12:40:40 -07:00
Minh Nguyễn
e2797d1f24 [ios, macos] Rationalized string enum names
Renamed MGLGeoJSONSourceOption and MGLOfflinePackUserInfoKey constants for clarity and to remove redundancy in the Swift-bridged names. Left the old MGLOfflinePackUserInfoKey constants in place as deprecated aliases.
2016-11-02 12:40:40 -07:00
Minh Nguyễn
c2e37f062b [ios, macos] Adopted string enumerations
Notification names and user info keys posted by MGLOfflineStorage, as well as MGLErrorDomain, are instances of string enumerations for ease of use in Swift. Added some shims for projects built with Xcode 7.x.

Fixes #6791.
2016-11-02 12:40:40 -07:00
Jesse Bounds
14663a5185 [ios] Fix bad merge in iosapp
Although functionality was not affected, a previous merge garbled
the language test with a temporary test done for annotation view
performance improvement.
2016-11-02 11:33:39 -07:00
Jason Wray
f41421ff77 ios-v3.3.5 2016-11-02 13:13:47 -04:00
Tobrun
7534aa1594 [android] - fix public xml api for drawables, fixup QueryRenderedFeatursBoxSymbolCountActivity (#6879) 2016-11-02 16:20:47 +01:00
Tobrun
4d0c42e36a Prefix library resources to avoid naming conflicts (#6878)
* [android] - add library resource prefix

* update SDK resources with prefix

* fixup tests
2016-11-02 12:41:22 +01:00
Ivo van Dongen
9ad5dd1585 [android] add test activity for symbol querying 2016-11-02 13:38:07 +02:00
Minh Nguyễn
6338a3e7f9 [ios, macos] Updated changelogs 2016-11-01 19:13:47 -07:00
Cameron Mace
53610ee378 removes sdk manager plugin (#6865)
* removes sdk manager plugin

* removed rest of sdk manager plugin
2016-11-01 17:15:09 -04:00
Jesse Bounds
b96c20b481 [ios] Update podspecs for beta 2 2016-11-01 12:37:25 -07:00
Jesse Bounds
41f2c8204a [ios, macos] Update changelogs for visible annotations API 2016-11-01 12:10:06 -07:00
Jesse Bounds
2901bc0f68 Optimize annotation view updates (#5987)
Use queryPointAnnotations to drive annotation view updates

- Get sets of visible and offscreen annotations using the mbgl query 
mechanism and updates and enqueues as required
- Query viewport adjusted if tilted (avoid apparent issue with
queryPointAnnotations when the query box is larger than the actual
viewport)
- Add a small debugging display in iOS app to see annotations going in
and out of the reuse queue

This also works around a performance issue that made getting an annotation
context expensive by implementing a map of annotations to tags. It works 
around another issue with the underlying mbgl query so that even if it (rarely) 
returns an incorrect result, the correct visual effect still occurs and the reuse 
queue is added to and drained as expected.

Finally, this refactors MGLMapView viewForAnnotation: to use the maps to
access the requested annotation context and view. This avoids a more
expensive lookup done previously.

Along for the ride: sync up the ios and macos names (and types) for
MGLAnnotationTagContextMap
2016-11-01 11:48:09 -07:00
Konstantin Käfer
0208dc2833 [core] satisfy Xcode project upgrader 2016-11-01 18:46:49 +01:00
Justin R. Miller
8ffd1f6925 [ios, macos] document custom API URL & add Info.plist guide (#6833)
Also support base URL nullability in order to use default value.
2016-11-01 10:29:33 -07:00
Konstantin Käfer
f7801e5d82 [core] correctly set the framebuffer size on retina screens
Also asserts in Debug mode that the internal state and the OpenGL state are identical
2016-11-01 10:46:04 +01:00
Justin R. Miller
dfd4057121 [ios, macos] document custom API URL & add Info.plist guide (#6833)
Also support base URL nullability in order to use default value.
2016-10-31 22:34:01 -07:00
Cameron Mace
8bee27381c updated directions example in testapp to v5 (#6843) 2016-10-31 12:14:04 -04:00
Tobrun
ccc3964270 Android Nougat compatibility: onstart/onstop on MapView (#6830)
* introduce onstart/onstop on MapView

* update wear module

* update fragments

* update changeling
2016-10-31 13:17:56 +01:00
Tobrun
38ee3408c2 [android] - prevent null pointer when receiving connectivity change events while destroying the underlying map (#6858) 2016-10-31 10:59:18 +01:00
Jason Wray
300720c8c7 [ios] Do iosapp token handling in viewDidLoad
Doing this work in viewDidAppear meant that it happened every time the
modal debug settings view disappeared (and the map view reappeared).
2016-10-28 18:02:53 -07:00
Jason Wray
2242e5484c [ios] Add country label language toggle demo
- Select best language based on locale setting and our support.
2016-10-28 18:02:53 -07:00
Bruno de Oliveira Abinader
fa96612888 [Qt] Fix viewport size for Linux on Qt5 2016-10-28 14:36:07 +03:00
Konstantin Käfer
62b56b799a [core] change std::array<uint16_t, 2> to mbgl::Size 2016-10-27 18:30:58 -07:00
Jesse Bounds
95ae833244 [ios] Add simulator dSYM slices to build output. (#5740)
Our release builds for device (with lipoed simulator binary) create
a dSYM files for both the device and simulator. However the script
only copied the device dSYM file to the output location.

This adds a step to lipo together both the device and simulator dSYM files.
Mapbox.framework.dSYM now holds armv7 and arm64 slices.
2016-10-27 18:30:51 -07:00
Jesse Bounds
d5af9b680b [ios, macos] Introduce visible annotations API (#6061)
Add visibleAnnotations API to make it easier for clients of MGLMapView
to query for all visible annotations in the map or all visible annotations
in a subsection of the map.
2016-10-26 17:13:38 -07:00
Jesse Bounds
67ffc9685e [ios, macos] Make source ownership consistent and GeoJSON content properties writable
Use common initialization logic to create an unique pointer to an mbgl
source object, up front, when a MGL source is created. Keep a raw
pointer to the unique pointer that is pointed at the mbgl source
instance when a MGL source is created or when a MGL source is
obtained by identifier from MGLStyle. Once the transfer of ownership of the 
mbgl source takes place, the unique ptr is null. The raw pointer can be used 
internally for future work that involves mutating the source.

This also changes the URL, features, and geoJSONData content 
properties for MGLGeoJSON source to be writable. If they are set with
valid data after a source has been added to the map then the map will
update to reflect the new data.
2016-10-26 17:08:27 -07:00
Minh Nguyễn
12093c10ad [ios, macos] Added Swift MGLStyleValue tests
Added tests of MGLStyleValue written in Swift, along with bridging headers just in case they become needed in the future.
2016-10-26 15:16:15 -07:00
Minh Nguyễn
62647a013f [ios, macos] Corrected MGLStyleValue inheritance
MGLStyleConstantValue and MGLStyleFunction now inherit from MGLStyleValue with a generic argument matching the child class’s own generic argument.

Fixes #6823.
2016-10-26 15:16:15 -07:00
Tobrun
e7bfa7849e [android] - Update to Android Studio 2.2.2 with tools/dependencies (#6390)
* [android] - update android gradle tools, update test app version number, update target sdk to nougat, update support lib versions to latest

* new tools generated an aligned test apk, breaks CI integration

* update to Nougat release 7.1, update related tooling, update version code test app to 5.0.0.

* update wear module

* update gradle.properties
2016-10-26 16:09:51 +02:00
Minh Nguyễn
dc884cd6c3 [ios, macos] Fixed syntax error in documentation comment (#6822)
Fixes #6821.
2016-10-26 00:36:23 -07:00
Jesse Bounds
0a1d9849fa [ios] Guard against nil data task (#5932) 2016-10-25 22:42:06 -07:00
Jesse Bounds
392450786d [ios] Observer that app did become active instead of will foreground (#6600) 2016-10-25 22:40:21 -07:00
Jesse Bounds
32be7b6cc3 [ios] Optimize event uploading (#6737)
Upload any events collected when the app was in use for apps that only
have "when in use" location permissions. Also, for all apps, avoid
posting event data if there is only a single event.
2016-10-25 22:39:26 -07:00
Jason Wray
36738c0025 [ios] Don't specify Swift version for jazzy doc generation (#6377) 2016-10-25 22:38:17 -07:00
Jason Wray
47f73d3f64 [ios][build] Validate dSYM and framework UUIDs 2016-10-25 22:35:01 -07:00
Jason Wray
5cacbb4505 [ios][build] Generate debug symbols for all builds
Fixes the issue where our stripped dynamic build did not have a valid dSYM.

Disabling GCC_GENERATE_DEBUGGING_SYMBOLS for SYMBOLS=NO builds meant
that those builds had no debug symbols to strip or add to a dSYM.
2016-10-25 22:34:50 -07:00
Jesse Bounds
dbfa8dcc89 Merge branch 'master' into boundsj-release-ios-3.4.0-merge-master 2016-10-25 15:48:29 -07:00
Konstantin Käfer
a4d259c33f [core] move gl::Context to Backend and refactor View 2016-10-25 13:52:36 -07:00
Konstantin Käfer
5cc390d694 [core] separate Backend from View for headless rendering 2016-10-25 13:52:36 -07:00
Cameron Mace
45f4dc0166 removed brew cask install android studio instruction (#6723)
* removed brew cask install android studio instruction

* link to download JDK

* made fixes to instruction
2016-10-25 16:44:03 -04:00
Tobrun
3457eb1144 [android] - MarkerView is responsible for managing height and width of a Marker (opposed to the recycled view). (#6809) 2016-10-25 17:36:26 +02:00
Tobrun
b0485bccd9 [android] - remove timer from compassView, make fading when facing north optional. (#6786)
save state for recreating map view

fix review comments

unit test covering default value for fading and setting a new value

fixup setter, fix default value
2016-10-25 15:53:16 +02:00
Tobrun
94b1a53f06 [android] - move marker view click handling to core (#5639) 2016-10-25 15:11:49 +02:00