Commit Graph

7032 Commits

Author SHA1 Message Date
Mike Morris
a3284ad7e2 node-v3.0.1 2016-01-26 11:10:54 -08:00
Jason Wray
9418f9a987 [ios] Avoid the blue background location status bar
Apps with `whenInUse` location permission will show a blue status bar
when they continue to use location services after leaving the
foreground. This is worrying and to be avoided, so let's disable telemetry
location services in this situation.

Fixes #2945
2016-01-25 14:59:38 -05:00
Bruno de Oliveira Abinader
2f86467586 Cleanup std::chrono usage
Use mbgl::Duration and mbgl::{,Milli}Seconds whenever possible.
2016-01-25 15:11:18 +02:00
Minh Nguyễn
cc47da5a15 [ios] Allow removing never-added annotations
https://github.com/mapbox/mapbox-gl-native/issues/3159#issuecomment-174422048
2016-01-24 23:19:15 -08:00
Minh Nguyễn
759b207bf1 [ios] Updated changelog 2016-01-24 11:35:04 -08:00
Minh Nguyễn
bdc8e3dfad [ios] Quoted umbrella header imports
Fixes #3300.
2016-01-24 11:07:34 -08:00
Jason Wray
d559c19e95 [ios] Update IB designables message to remove Settings.bundle mention
Settings.bundle is no longer a requirement to get started.

[skipci]
2016-01-22 21:50:40 -05:00
John Firebaugh
a877b9b192 [core] Include prior values of caching headers in Resource
This allows the FileSource interface itself to support revalidation. We could (and probably should) now rewrite HTTPContextBase implementations as FileSource implementations.
2016-01-22 18:42:53 -08:00
John Firebaugh
27134df2e4 [core] Use notModified to check for style change 2016-01-22 18:42:53 -08:00
John Firebaugh
73ddff60ad [core] Avoid storing raw glyph data in addition to parsed representation 2016-01-22 18:42:53 -08:00
John Firebaugh
bf48467b8c [core] Remove unused parts of chrono.hpp 2016-01-22 18:41:54 -08:00
John Firebaugh
fa894d7cbc [core] Polyfill std::chrono::abs 2016-01-22 18:41:54 -08:00
John Firebaugh
cef5c331fe [core] Merge rfc1123, iso8601, and parse_date into chrono.hpp and fix their API 2016-01-22 18:41:54 -08:00
Ansis Brammanis
5cd123422e [core] fix missing icon collision boxes
port https://github.com/mapbox/mapbox-gl-js/pull/1981
2016-01-22 18:00:49 -08:00
Minh Nguyễn
556690fae8 [ios] No manual rotating in heading/course tracking mode
Manually rotating the map in heading or course tracking mode now kicks the user back into location tracking mode.
2016-01-22 15:35:58 -08:00
Minh Nguyễn
c062494536 [ios] Disable user tracking in -setVisibleCoordinates:
Programmatic modification of the viewport should kick the user out of user tracking mode.
2016-01-22 15:35:58 -08:00
Minh Nguyễn
31120ea41b [ios] Settings.bundle no longer required 2016-01-22 14:45:58 -08:00
Minh Nguyễn
f65ff9ef30 [ios] Split API index from package readme
The API index page serves a different purpose than the readme. It doesn’t need installation instructions, but it does need a brief What’s New section.
2016-01-22 14:45:58 -08:00
Minh Nguyễn
83deed6a88 [ios] make idocument
Split API documentation generation into a separate make target that can be run independently of building the SDK.
2016-01-22 14:45:58 -08:00
Minh Nguyễn
5d516c3603 [ios] Split changelog out from readme
CocoaPods dings this pod for not having a separate changelog.
2016-01-22 14:45:58 -08:00
Minh Nguyễn
9427ddd373 [ios] Polished package readme
Omit setup instructions for package formats not included in the build output.
2016-01-22 14:45:58 -08:00
Minh Nguyễn
5213abbde5 [ios] Rewrote package readme
The build output’s readme now explains in full detail the installation process, rather than linking to an online resource that may not match the current version. Also cleaned up the tag-finding code to better handle double-digit situations.
2016-01-22 14:45:58 -08:00
Minh Nguyễn
1ddce4cb3a [ios] Documented make targets 2016-01-22 14:45:58 -08:00
Minh Nguyễn
8eb3489f1b [ios] Updated podspec for 3.1.0-pre.1 and iOS 8+
The pod now requires iOS 8 and above, since iOS 7 lacks support for dynamic frameworks. iOS 7 support can be obtained by downloading and installing the framework manually. Bumped the version number.
2016-01-22 14:45:57 -08:00
Minh Nguyễn
1d395e72bd [ios] Derive Fabric versioning from Info.plist
Avoid hard-coding the bundle identifier and version string.
2016-01-22 14:45:57 -08:00
Minh Nguyễn
7338db692d [ios] Refactored build scripts
package.sh now recognizes several environment variables through make that influence the build settings and targets. Info.plist variables are substituted with the correct values in both the static and dynamic frameworks.

Fixes #3656.
2016-01-22 14:45:57 -08:00
Minh Nguyễn
f986417f5c [ios] Put static library inside framework bundle 2016-01-22 14:45:57 -08:00
Minh Nguyễn
26578ea9d5 [ios] Look for resources in static framework bundle
The library is packaged as a static framework, so there isn’t a separate resource bundle anymore. Instead, look for the static framework inside the Frameworks folder.
2016-01-22 14:45:57 -08:00
Minh Nguyễn
f9360c3f4f [ios] Strip Simulator content when archiving
Copied strip-frameworks.sh from realm/realm-cocoa@7cc31db631 for realm/realm-cocoa#2759. This script, which is embedded in the dynamic framework, strips out content for invalid architectures from any embedded framework and specifically strips out Simulator content when archiving to work around an App Store bug.

Rewrote the iOS setup documentation. In particular, the MAPBOX_ACCESS_TOKEN environment variable is only for use with the iosapp demo application and doesn’t work in third-party applications.
2016-01-22 14:45:57 -08:00
Minh Nguyễn
9350d3f78c [ios] Converted iOS SDK into dynamic framework
make iproj now produces a target that pulls together static libraries like core and platform-ios into a real dynamic framework. iosapp is pretty much just a regular iOS application that links Mapbox.framework (except for the inclusion of default_styles.hpp). iosapp runs fine in the Simulator and on a device, and the same is true for any application linking against Mapbox.framework.

The ipackage target produces both a Bitcode-disabled static framework and a Bitcode-enabled dynamic framework, eliminating the need for a separate framework.sh. It disables code signing, since that happens on copy when the framework is embedded inside the application bundle. It also merges the device and simulator builds into a single fat framework.

Also bumped itest minimum deployment target to iOS 8.0, the first version that supports linking frameworks.

Fixes #828.
2016-01-22 14:45:56 -08:00
Ansis Brammanis
ded8b62c91 [core] use nearest neigbour for some line icons
Use nearest neighbour texture filtering to draw sharper icons when the
icons are aligned with the viewport. This matches -js.
2016-01-22 14:02:09 -08:00
Ansis Brammanis
0101fc0c89 [core] trigger repaint after placement is redone
fixes #3140

This also fixes a bug where placement could be redone with a stale
PlacementConfig after the tile first finishes loading.
2016-01-22 13:57:33 -08:00
Konstantin Käfer
9cfe64a122 [build] replace jpeg library with libjpeg-turbo 2016-01-22 16:00:51 +01:00
Konstantin Käfer
b22073a5b2 [core] don't use expensive fmod to get fractional part 2016-01-22 12:03:14 +01:00
Konstantin Käfer
d3967e7b05 [core] don't copy stops by value when recalculating StyleParameters 2016-01-22 12:03:14 +01:00
Tobrun
6b633d5ff3 [android] #3664 - reverse direction fix + formatting commit 2016-01-22 11:52:17 +01:00
Cameron Mulhern
a5889409cc [ios] Updates configure to work when project is a submodule 2016-01-22 02:20:49 -08:00
Tobrun
488fa3a4c5 [android] #3661 - GPS heading with extra rotation fix 2016-01-22 08:57:33 +01:00
Minh Nguyễn
874ff24d8c [ios] Removed testDelegateRegionDidChange
Also failing randomly on Bitrise.

/ref #3555
2016-01-21 14:09:36 -08:00
Minh Nguyễn
698eb674a7 Update INSTALL.md
These changes dropped out of #3416 somehow. The screenshots only make sense inside the gyp-generated project, which is irrelevant in this case.
2016-01-21 13:50:00 -08:00
John Firebaugh
fd847bca9e [android] Fix semantics in absence of response headers
Absence of response headers should result in null etag/modified/expires optionals, not present-but-0-or-"" optionals.
2016-01-21 11:22:11 -08:00
John Firebaugh
1c21d0fd4c [core] Use better types for modified / expires / etag 2016-01-21 11:22:11 -08:00
John Firebaugh
c33ed50c98 [core] Eliminate Response::stale and inline Response::isExpired()
Response::isExpired() had subtle and potentially confusing behavior around Seconds::zero(). It's best to inline it and comment why.
2016-01-21 11:22:11 -08:00
John Firebaugh
1766d7dcbf [core] Eliminate RequestBase
HTTPRequestBase can now itself be the base class.
2016-01-21 11:22:11 -08:00
Mike Morris
0a2e4af4c5 node-v3.0.0 2016-01-21 12:03:41 -05:00
Ansis Brammanis
ed0488d2e0 [core] improve text-max-angle check
Instead of using the absolute value of the sum of angles, use the sum of
the absolute values of angles.

This helps avoid labels on lines with sharp zig zags.

for example, the "Central Campus Mall" label in issue #2998
2016-01-20 16:58:24 -08:00
Ansis Brammanis
0fda834397 [core] implement symbol-avoid-edges
ref #3582

if `symbol-avoid-edges` is true, this prevents symbols from colliding
with tile edges.
2016-01-20 16:10:38 -08:00
Jason Wray
f9c9ee9351 Reorganize and wrap LICENSE file 2016-01-20 18:57:43 -05:00
Jason Wray
4a3adddf3f [ios] add telemetry debug logging
You SHOULD NOT be using telemetry logging on any persons' devices who do
not explicitly understand the privacy implications of handling location
data.
2016-01-20 18:57:43 -05:00
John Firebaugh
27271768bd [node] Drop 0.10 from build; require v4+ 2016-01-20 15:20:24 -08:00