Commit Graph

76 Commits

Author SHA1 Message Date
Konstantin Käfer
95cef66e22 [core] change RapidJSON usage to use CrtAllocator and bump GeoJSON VT 2015-12-14 16:43:35 -08:00
Minh Nguyễn
e7d7add420 [ios] Strip OS X–specific APIs from iOS documentation
appledoc can’t understand conditional compilation. This is the best we can do until we move to Jazzy.
2015-12-13 17:26:53 -08:00
Minh Nguyễn
0cab7809eb [osx] Rewrote platform-osx and osxapp
platform-osx now vends a real NSView subclass, MGLMapView, that is readily embedded inside a Cocoa application for OS X. MGLMapView is backed by an NSOpenGLLayer for optimal performance and integration with other layer-backed views. It supports keyboard shortcuts and several gestures and hosts attribution, zooming, and rotation controls as subviews. osxapp is now a bona fide Cocoa application that embeds MGLMapView inside a XIB. osxapp has preferences and a share button for tight integration with custom styles.

Enabling asynchronous rendering would be more consistent with iOS but increases CPU usage so much, even when idle, that it isn’t worth any performance gain. The bigger issue is that VAOs aren’t being used.

make xpackage creates a static library similar to the one created by make ipackage. make clean cleans additional places where build output ends up.

The OS X minimum deployment target has been increased from 10.9 to 10.10. osxapp’s window has a full size content view, which requires 10.10. Lightweight generics require iOS 9+ and OS X 10.11 regardless, because it was only in that release that Foundation collection classes started adopting lightweight generics.

Shuffled files around and refactored annotations so that iOS and OS X share a good chunk of the annotations code, which now takes advantage of polymorphism. MGLMapView can now display annotations but cannot yet select them. In osxapp, a long press drops a pin, and so does the map view’s context menu.

Annotations have NSPopovers as callouts, and their view controllers can be customized. Annotation image alignment rects are respected for hit testing purposes and for positioning the callout anchor. Callouts in osxapp demonstrate the use of bindings to keep callouts in sync with underlying model objects.
2015-12-13 17:17:35 -08:00
Konstantin Käfer
8d711e9c80 [test] update test suite to include more comprehensive GeoJSON tests 2015-12-11 16:23:43 -08:00
Konstantin Käfer
da7b6bb8b9 [core] upgrade to GeoJSON VT 3.0.0 2015-12-10 12:54:58 -08:00
Justin R. Miller
032e3a66f3 fixes #3181: move from vendored lib to framework
- Add license file to framework build step to satisfy CocoaPods linting.
- Log version when rolling framework (refs #3046).
- fixes #1426: get rid of dummy file since we make our own framework.
2015-12-07 12:14:29 -08:00
Justin R. Miller
8d25d9ab1a Merge branch 'release-ios-v3.0.0' 2015-11-30 11:10:27 -08:00
Justin R. Miller
c6edcf69b3 reduce framework binary size with more stripping 2015-11-23 12:49:33 -08:00
Justin R. Miller
8a774ad9a9 show current version changelog section in docs & link externally to full
This is going to fail and output nothing for -pre and -rc tags for now
until #3046 is addressed. We can't yet grab those but still have final
releases sort after them.
2015-11-23 11:15:10 -08:00
Justin R. Miller
f2a28f095b refs #2380: plop Settings.bundle inside of framework distribution 2015-11-18 18:41:14 -08:00
Justin R. Miller
ce679eea40 refs #2380: plop Settings.bundle inside of framework distribution 2015-11-18 18:29:34 -08:00
Justin R. Miller
01b4f160d4 static framework target for iOS 2015-11-16 11:58:33 -08:00
Justin R. Miller
42a60a6661 static framework target for iOS 2015-11-16 11:53:00 -08:00
Minh Nguyễn
57574badb0 Publish Bitcode-less build for Xcode 6.4
Publish a Release-configuration, symbol-laden, Bitcode-less build in tandem with the other builds.

Fixes #2332.
2015-11-11 11:01:47 -08:00
Minh Nguyễn
28ec908a3f Updated references to old build docs
Fixes #2871.
2015-11-09 10:15:53 -08:00
Minh Nguyễn
9ab4cb8886 [iOS] Fetch tags on install, not ipackage
This change removes a git command that requires a network connection from the ipackage target. It was used to ensure that CI has a tag to version the appledoc documentation with, so the same command has been added to install.sh, where a network connection is otherwise expected.

Fixes #2320.
2015-11-09 10:08:15 -08:00
Mike Morris
dfb36d6231 [core] move mbgl.gyp to gyp directory
So npm won't clobber binding.gyp, refs
https://github.com/npm/npm/issues/10243
2015-11-04 11:34:35 -05:00
Minh Nguyễn
dda99fb4b6 Force Bitcode in make ipackage
`make ipackage` now performs a Bitcode-enabled archive build for devices.
2015-11-02 16:09:50 -08:00
Mike Morris
79a5a96037 [core] mason geojsonvt-2.1.6.3
- [osx] set -fvisibility-inlines-hidden in gyp/common.gypi to silence
  mismatched visibility linker warnings
- [linux] set cxx_host in GYP_FLAGS to set -fabi-version=0 on gcc builds
  to use clang-built mason binaries
- [ios] update symbol visibility for iOS tests
- [ios] link libgeojsonvt.a in iOS tests xcodeproj
  - add libgeojsonvt.a to General -> Linked Frameworks and Libraries
  - add mason_packages (recursive) to Build Settings -> Library Search Path
- [ios] add libuv and geojsonvt first in iOS libtool smush to ensure symbols
  are found by later compilation units where they are undefined
2015-11-02 18:41:34 -05:00
Justin R. Miller
444fb2a2ec don't use xcpretty 2015-11-02 13:14:14 -08:00
Leith Bade
abf93c008b [core] Remove bundled styles.
Fixes #2239
2015-10-30 13:09:04 -07:00
Justin R. Miller
e0194901eb more explicitly name build configs & do Debug for sim/testing 2015-10-27 10:40:52 -07:00
Leith Bade
77b0e240a3 [android] [ios] [linux] [osx] Update many mason modules 2015-10-24 19:33:42 +11:00
Leith Bade
f71d61fa91 [android] Add missing satellite streets style to Android and iOS.
As well as default_styles.cpp
Fixes #2739
Fixes #2740
2015-10-23 14:09:24 +11:00
Mike Morris
62595a9b39 [core] bump libuv to 1.7.5 across all platforms
UV_ASYNC_PARAMS and UV_TIMER_PARAMS for libuv <= 0.10 compatibility

use st_mtim.tv_sec in libuv > 0.10.x
2015-10-14 11:36:28 -04:00
Jason Wray
709c4fdcee [build] update appledoc install error URL 2015-10-08 15:54:15 -04:00
Justin R. Miller
a0244601ca [ios] patch up iOS version-deducing scripts 2015-10-01 15:26:47 -07:00
John Firebaugh
2066295e35 Install RapidJSON from mason 2015-10-01 11:40:47 -07:00
Mike Morris
b46c102eb0 mason variant@1.0 2015-09-30 15:34:40 -07:00
Lucas Wojciechowski
311bf93abe Revert "[node] Enable npm to build mapbox-gl-native package from source"
This reverts commit 4e1ead344b.
2015-09-16 16:27:53 -07:00
Lucas Wojciechowski
4e1ead344b [node] Enable npm to build mapbox-gl-native package from source
- Allow node bindings to be built if git submodules cannot be checked out
 - Made geojsonvt a mason package instead of a git submodule
 - Use globally installed mason if it cannot be checked out via git submodules
2015-09-15 11:17:53 -07:00
Minh Nguyễn
6ec8b2805d Upgraded to iOS Simulator 9.0, KIF 3.3.0
Upgraded the test project. Rolled back part of 69cf6ed3d2 to work around facebook/xctool#528.
2015-09-15 11:05:46 -07:00
Justin R. Miller
b29ef4011e fix typo in iOS script 2015-09-07 14:45:11 -07:00
Justin R. Miller
15a5532d76 updates for "iOS SDK" series releases 2015-08-24 21:05:02 -07:00
John Firebaugh
0451aca37e Merge branch 'v8' 2015-08-24 10:47:30 -07:00
Justin R. Miller
4a4ca9b061 rename zip product 2015-08-21 11:18:51 -07:00
Justin R. Miller
3f99f5e712 GL is the library, SDK is the product 2015-08-21 11:01:07 -07:00
John Firebaugh
8d7d770bbc Update styles 2015-08-20 11:59:07 -07:00
Konstantin Käfer
e6053aa547 Make build system architecture agnostic to remove Android special case 2015-08-04 14:08:58 +02:00
Minh Nguyễn
368369ba60 Moved mapbox/mapbox-gl-styles to mb-pages branch
When packaging, filter to just the desired styles.
2015-07-21 16:36:03 -07:00
Minh Nguyễn
27bd305b1b Include iOS README in binary pod 2015-07-13 14:25:10 -07:00
Minh Nguyễn
482b8bde63 Fetch tags before relying on a list of them 2015-07-13 09:32:34 -07:00
Justin R. Miller
b70e6f518a test on Xcode 6.4 / iOS 8.4 2015-07-08 22:30:52 -07:00
Justin R. Miller
0955dfc19f Merge branch 'release-v0.4.0' 2015-06-19 15:56:53 -07:00
Justin R. Miller
cfa0890d82 Screenshot II: The Return of Screenshot 2015-06-19 15:53:58 -07:00
Justin R. Miller
18d8d4475e avoid release candidates in determining version 2015-06-19 12:57:42 -07:00
Justin R. Miller
54f766cd68 remove problematic screenshot URL from HTML docs 2015-06-18 17:20:36 -07:00
Justin R. Miller
a2fa372678 fix appledoc version parsing 2015-06-18 15:39:24 -07:00
Justin R. Miller
3e5caba7a2 refs #1483: update Travis script for potential semver suffixes 2015-06-17 21:55:34 -07:00
Minh Nguyễn
91641ffb01 Lightweight generics
Added lightweight generics annotations to collection-typed method and protocol signatures to streamline usage of these members in Swift. Lightweight generic type specifiers are wrapped in conditionally-compiled macros for compatibility with Xcode 6.x.

Manually preprocess the NS_*_OF() macros in a temporary copy of each header before appledoc sees the headers. Also removed the --ignore flag because we no longer have a private headers folder under include/mbgl/ios/.
2015-06-17 15:33:00 -07:00