Commit Graph

7040 Commits

Author SHA1 Message Date
Tobrun
ca565a2cb2 [android] #4327 - OnDoubleTap needs to trigger camera invalidation after a zoom occurs 2016-03-21 15:08:06 +01:00
Minh Nguyễn
7155c9bb81 ios-v3.2.0-beta.2 2016-03-18 14:34:22 -07:00
Brad Leege
d33cee7fd8 [android] #4328 - Make Telemetry start only when savedInstanceState is null 2016-03-18 17:26:38 -04:00
Jesse Bounds
4f816dcfbe [iOS] Increase distance filter to 5 m 2016-03-18 14:20:18 -07:00
Minh Nguyễn
b493bdc649 [ios, osx] Unified offline and ambient caches
There is now only one instance of mbgl::OfflineFileSource, created when the shared MGLOfflineStorage object is initialized. Also create and use the shared MGLOfflineStorage object when initializing an MGLMapView object. The unified cache file is located in a subdirectory of Application Support, where the SDK has control over the file’s lifetime. The subdirectory is already named after the host application’s bundle identifier, ensuring that each Mapbox-powered application has an independent tile limit. If there’s an ambient cache in a subdirectory of Caches, delete it. If there’s an offline cache in a subdirectory of Documents on iOS or Caches on OS X, move it to the unified cache location in a subdirectory of Application Support.

Fixes the iOS/OS X side of #4338.
2016-03-18 14:02:32 -07:00
Brad Leege
fff13d0976 [android] #4294 - JavaDocs for Telemetry classes 2016-03-18 14:26:07 -04:00
Minh Nguyễn
0a26d8448a Merge pull request #4378 from mapbox/1ec5-offline-umbrella
Include offline headers in static umbrella header
2016-03-18 01:24:27 -07:00
Minh Nguyễn
3814f38c07 [ios] Updated changelog
ec072b437a was unintentionally committed directly to the release branch, so no PR was created.
2016-03-18 00:33:14 -07:00
Minh Nguyễn
ec072b437a [ios] Copy dynamic framework .dSYM into distribution 2016-03-18 00:29:58 -07:00
Minh Nguyễn
35e6aa70bc [ios] Include offline headers in static umbrella header
Include offline headers in the umbrella header used by the static framework. These includes are already present in the umbrella header used by the dynamic framework. jazzy relies on the static umbrella header to include all the headers, so the offline headers were also missing from documentation.
2016-03-18 00:15:36 -07:00
Thiago Marcos P. Santos
115a5d10f9 [core] Fix regression of prior expiration time not being respected 2016-03-18 00:10:50 -03:00
Jesse Bounds
bcb3bb0931 [core] Stop download when tile limit is reached
The tile limit guard (when used) stops a download from continuing
when the tile limit is reached. This wraps the guard in a method
and employs it in both places currently necessary to ensure the
guard has a chance to function. Tests have been updated to
ensure the fix works for a less trivial tile limit scenario.
2016-03-17 15:52:18 -07:00
John Firebaugh
5130ca8843 [core] Implement a vacuum strategy for the offline database
Enable `PRAGMA auto_vacuum = INCREMENTAL`, and perform a `PRAGMA incremental_vacuum` when deleting an offline region.
2016-03-17 14:17:59 -07:00
Jesse Bounds
aa60d29534 [iOS] Use CFBundleIdentifier instead of CFBundleName in UA string
Although often recommended, CFBundleName is not guaranteed to exist in
an app's configuration. As an identifier of telemetry data, even when
it is present it can be inconsistent because of localization.

CFBundleIdentifier, although possibly longer, will be consistent
across locales and for the lifetime of an app in the App Store even
if the app name changes in any locale.
2016-03-17 14:01:48 -07:00
Thiago Marcos P. Santos
a69df28d21 [android] Build ARMv8 on the apackage target
Follow-up of 51a3907.
2016-03-17 14:25:24 -04:00
Thiago Marcos P. Santos
fc0f32b6bf Bump mason
Fixes aarch64 build for android.

Fixes #1956
Fixes #3128
2016-03-17 14:25:07 -04:00
John Firebaugh
46830f1ea5 [core] Assert and guard against null std::exception_ptr in toString
We don't expect toString to be called with a null std::exception_ptr. But if it is, we'd prefer not to terminate the process in release builds.
2016-03-16 11:04:08 -07:00
Brad Leege
4c455f4053 [android] #4317 - Revert to 4.0.0-SNAPSHOT for development 2016-03-15 17:16:16 -04:00
Minh Nguyễn
2ab075b309 ios-v3.2.0-beta.1 2016-03-15 11:11:16 -07:00
Minh Nguyễn
1962fce1de [ios] Copy .der files into static framework
Fixes #4316.
2016-03-15 11:08:34 -07:00
Tobrun
4681d0b545 [android] #4320 - rename including to contains 2016-03-15 14:00:01 -04:00
Tobrun
93123e4d0e [android] #4318 - move min/max zoom level to MapboxMap 2016-03-15 13:56:53 -04:00
Brad Leege
f823021e0d [android] #4317 - Adding 4.0.0-beta.1 to CHANGELOG 2016-03-15 12:02:37 -04:00
Brad Leege
4a042a939e [android] #4317 - Updating release version and fabric version to 4.0.0-beta.1 2016-03-15 10:58:24 -04:00
Minh Nguyễn
76bb6b8746 ios-v3.2.0-pre.3 2016-03-14 15:38:19 -07:00
Minh Nguyễn
6f86bee283 [ios] Only set preferred action on iOS 9+
Fixed a crash on iOS 8 when presenting the Add Offline Pack dialog.

Fixes #4305.
2016-03-14 13:30:11 -07:00
Tobrun
e04fea8409 [android] #4304 - logo visibility fix for attributes defined in xml 2016-03-14 16:25:18 -04:00
Minh Nguyễn
922269cd7c [ios] Immediately remove offline pack from table
Remove all references to an offline pack before the call to -removePackWithCompletionHander:.

Cherry-picked from d64b8ad25c.
2016-03-14 12:54:10 -07:00
Minh Nguyễn
ac54129060 [ios, osx] Allow null completion handlers in MGLOfflineStorage
Cherry-picked from f6c21a0efe.
2016-03-14 12:54:02 -07:00
Minh Nguyễn
caef1785eb [ios, osx] Removed pack nil check from MGLOfflineRegionObserver
Due to ARC, MGLOfflinePack can be deallocated at any time following its initialization. -dealloc ensures that the offline region observer is unset, but that step is asynchronous; there is no guarantee that it completes before the first status change update. In fact, the pack is deallocated before the first status change update unless it is captured outside of the MGLOfflinePackAdditionCompletionHandler. The pack nil check is unnecessary because the subsequent code would be a no-op.
2016-03-14 11:54:50 -07:00
Jason Wray
a396c6a7f0 [ios] Fix incorrect issue link in v3.1.0 section
[skip ci]
2016-03-13 13:36:47 -04:00
Tobrun
d64652f9be [android] #3749 - added javadoc 2016-03-12 19:57:27 -05:00
Tobrun
a980f725b8 [android] #4252 - close concurrent window fix 2016-03-11 22:29:48 -05:00
Tobrun
45e6ee1372 [android] #4283 - enable strict mode in test app + fix strict mode warning related to releasing the surface 2016-03-11 20:07:56 -05:00
John Firebaugh
c39bd344b5 [core] Set mapbox::DEFAULT_OFFLINE_TILE_COUNT_LIMIT to 6000 2016-03-11 16:36:58 -08:00
Tobrun
ad2ebc6cf6 [android] #4270 - library resource prefix espresso update 2016-03-11 17:37:19 -05:00
Minh Nguyễn
3b225d57d9 ios-v3.2.0-pre.2 2016-03-11 13:50:06 -08:00
Minh Nguyễn
14993ed477 [ios] Copyedited changelog entries 2016-03-11 12:01:59 -08:00
Minh Nguyễn
4748973c04 [core] Deactivate offline region upon completion 2016-03-11 11:43:32 -08:00
Bruno de Oliveira Abinader
694a064cdd [core] Fix non-anchored Transform::setAngle
This reverts a line change from b33b2f15, because we explicitely want
the anchor to be invalid.
2016-03-11 16:53:36 +02:00
Bruno de Oliveira Abinader
f73beb5913 [core] Fix screen coordinates when crossing the antimeridian (#2)
Added missing case. Really fixes #4155 this time.
2016-03-11 12:34:21 +02:00
Minh Nguyễn
4bcc24d5af [ios] Fixed iosapp build
MBXDownloadsTableViewController.{h,m} had been renamed MBXOfflinePacksTableViewController.{h,m}, but the project had not been.
2016-03-10 20:22:19 -08:00
Minh Nguyễn
3622c2d25c [ios] MGLOfflinePack in jazzy config 2016-03-10 20:17:16 -08:00
Minh Nguyễn
1ee7264b0e [ios, osx] Updated changelog 2016-03-10 17:14:15 -08:00
Minh Nguyễn
641c31507d [ios] Renamed downloads to offline packs in iosapp 2016-03-10 17:14:14 -08:00
Minh Nguyễn
ff9c3a57b0 [ios, osx] Renamed MGLOfflineTask to MGLOfflinePack
“Offline pack” more effectively communicates the persistent nature of the downloaded content.
2016-03-10 17:14:14 -08:00
Minh Nguyễn
ee20fd8fd8 [ios, osx] Avoid unregistering observer for invalid task 2016-03-10 17:14:14 -08:00
Minh Nguyễn
7fa3b92429 [ios, osx] Tightened offline task state
Fixed a race condition that could occur if a progress update comes after a call to remove the task but before the removal is complete. Avoid synchronously setting the task’s state inside -resume and -suspend; instead, rely on the observer to set the state asynchronously.
2016-03-10 17:14:14 -08:00
Minh Nguyễn
77d99584ce [ios, osx] Distinguish between unknown and inactive state 2016-03-10 17:08:58 -08:00
Minh Nguyễn
68ba0712f7 [ios, osx] Privatized offline region observer 2016-03-10 17:08:58 -08:00