Commit Graph

46 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
Justin R. Miller
4806f7f0a5 fixes #1650: default to no symbols for release builds, but build both 2015-06-17 12:55:10 -07:00
Justin R. Miller
73737445ec fixes #1650: default to no symbols for release builds, but build both 2015-06-17 12:48:11 -07:00
Justin R. Miller
8dbf2bf8da refs #1483: move to simple tagging scheme, but preserve platform in publish command 2015-06-15 22:19:34 -07:00
Justin R. Miller
7ac767226f point to better appledoc install method 2015-06-03 09:36:38 -07:00
Mike Morris
3034d9d704 Revert "Revert "Merge pull request #1429 from mapbox/travis-setup""
This reverts commit 3ccb0b5610.

Conflicts:
	.travis.yml
2015-05-12 11:51:46 -04:00
John Firebaugh
3ccb0b5610 Revert "Merge pull request #1429 from mapbox/travis-setup"
This reverts commit 9a233c7ed2, reversing
changes made to 642024af6d.
2015-05-11 22:03:46 -07:00
Justin R. Miller
834e59722c fixes #1503: add changelog w/ notes to appledoc index 2015-05-11 13:01:09 -07:00
Mike Morris
6b90079139 break out setup.sh from run.sh
chmod +x

drop travis_helper from android and ios

source travis_helper.sh before_install

only run setup.sh if file exists

explicitly local paths

explicit if statement in before_install

source setup.sh
2015-05-07 15:50:46 -04:00
Justin R. Miller
4ec34cd1fb refs #1426: add dummy source file to workaround CocoaPods 0.37.0 bug 2015-05-06 09:41:20 -07:00
Justin R. Miller
8cb146fa02 don't doc or package private headers 2015-05-05 15:13:39 -07:00
Justin R. Miller
a104b3de3b no longer link iOS HTML docs since missing CSS 2015-05-05 12:18:18 -07:00
Justin R. Miller
8151a1e17f add HTML docs generation to iOS packaging script 2015-05-04 16:07:08 -07:00
Justin R. Miller
72b7e96ea2 fix linking for device/sim decision 2015-04-29 10:49:05 -04:00
Justin R. Miller
0995930d90 fixes #1361: split iOS device & sim builds (sim-only for tests) 2015-04-28 17:47:59 -04:00
Konstantin Käfer
fe85bcd737 bump up the number of concurrent jobs on iOS builds 2015-04-28 11:11:33 +02:00
Konstantin Käfer
2b633cc51c build on Travis' sudo: false infrastructure 2015-04-28 10:43:13 +02:00