Commit Graph

1553 Commits

Author SHA1 Message Date
John Firebaugh
6cb606b4ed [ios] Remove redundant lines from ios/scripts/defaults.md
MASON_PLATFORM=$(HOST) and MASON_PLATFORM_VERSION=$(HOST_VERSION) are set by main.mk; there's no need to set them here.
2016-03-16 17:48:37 -07:00
Tobrun
9494fa7253 [android] #4308 - add some simple gesture tests 2016-03-15 14:07:24 -04:00
Minh Nguyễn
d64b8ad25c [ios] Immediately remove offline pack from table
Remove all references to an offline pack before the call to -removePackWithCompletionHander:.
2016-03-14 11:56:27 -07:00
Minh Nguyễn
f6c21a0efe [ios, osx] Allow null completion handlers in MGLOfflineStorage 2016-03-14 11:54:31 -07:00
Minh Nguyễn
7e4dce0ca4 [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:24:31 -07:00
Tobrun
55a1bb8365 [android] #4301 - added robotium testing framework to perform integration testing 2016-03-14 11:45:54 -04:00
Bruno de Oliveira Abinader
7a509b0369 [linux] Added world tour to GLFW test app 2016-03-14 11:51:37 +02:00
Bruno de Oliveira Abinader
8e30a4a080 [core] Harden Transform anchor & padding usage
Use optional values for anchor & padding in Map and Transform functions
instead of NaNs. Added unit tests to stress some edge cases.
2016-03-13 21:38:20 +02: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
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
4748973c04 [core] Deactivate offline region upon completion 2016-03-11 11:43:32 -08: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
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
Minh Nguyễn
c335847451 [ios, osx] Invalidate task immediately upon removal 2016-03-10 17:08:58 -08:00
Minh Nguyễn
e218728f3a [ios, osx] Fixed crash interacting with MGLOfflineTask
Added a missing conditional to the invalidation checking macro that I factored out at the last minute.
2016-03-10 17:08:58 -08:00
Minh Nguyễn
8824237e2d [ios, osx] Documented offline APIs
Also categorized offline symbols for jazzy and moved styleURL from MGLOfflineRegion to MGLTilePyramidOfflineRegion, since you never know if there will be a region type not constrained by a style in the future.
2016-03-10 17:08:58 -08:00
Minh Nguyễn
0348c1ee96 [ios] Tap to pause/resume
Tapping on a download now pauses or resumes it. Tapping on a completed download navigates to the downloaded region and switches to the downloaded style.
2016-03-10 17:08:58 -08:00
Minh Nguyễn
f5ac63dfec [ios, osx] Renamed offline classes
Renamed SDK classes related to offline viewing to more closely match the terminology used by mbgl and the Android SDK while remaining consistent with Cocoa naming principles.
2016-03-10 17:08:58 -08:00
Minh Nguyễn
e36218a866 [osx] Added OS X support for offline downloads 2016-03-10 17:08:58 -08:00
Minh Nguyễn
081ee9fbef [ios] Added download manager to iosapp 2016-03-10 17:08:58 -08:00
Minh Nguyễn
77657b3896 [ios] Implemented offline API in iOS SDK
Fixes #3892.
2016-03-10 17:08:58 -08:00
Minh Nguyễn
a65730803e [ios] Converted iosapp to use storyboard 2016-03-10 17:08:58 -08:00
Minh Nguyễn
29688e2cd8 [ios] Disable implicit animation of user dot bounds
ref #1125
2016-03-10 12:03:26 -08:00
Tobrun
d04d6d8f93 [androd] #4269 - polyline activity crash fix 2016-03-10 15:01:19 -05:00
Tobrun
4cb75a5c36 [android] #4263 - fix null pointer on MapboxMapEventManager 2016-03-10 14:59:33 -05:00
Jason Wray
64b163ee5d [ios] Add description strings to constituent classes 2016-03-10 13:48:00 -05:00
Tobrun
d03e87fa4d [android] #4263 - have the ability to define multiple callbacks for OnMapReady 2016-03-10 10:49:37 -05:00
John Firebaugh
bbfd2c3d5a [android] Route exceptions in HTTPRequest constructor to onFailure 2016-03-10 10:38:00 -05:00
Tobrun
808bf7004a [android] #4076 - MapboxMapOptions fix 2016-03-09 17:46:00 -05:00
John Firebaugh
7cceca4b45 [core] Deactivate OfflineDownload when the tile count limit is hit
This is a better behavior than sending hundreds or thousands of tileCountLimitExceeded notifications.
2016-03-09 13:40:00 -08:00
Tobrun
be00dfd367 [android] #4253 - remove MapboxMapActivity 2016-03-09 16:30:29 -05:00
Tobrun
3679dc254f [android] #4076 - MapboxMapOptions initial version 2016-03-09 16:00:35 -05:00
Brad Leege
9c4192411a [android] #4183 - Moving QuickZoom event recording to single finger, double tap, and drag processing 2016-03-08 16:27:05 -06:00
Minh Nguyễn
c2cd9335e9 [ios] Non-embedded static framework
Added a new ifabric Make target for packaging up a static framework similar to the one released as 3.0.1. Place artwork and certificate assets inside Mapbox.bundle inside Mapbox.framework. Link SystemConfiguration in the umbrella header.

Distinguish between the framework bundle and the resources bundle. For the dynamic frameworks and embedded static frameworks, the two are the same; for the non-embedded static framework, the latter resides inside the former.
2016-03-08 11:20:12 -08:00
John Firebaugh
e49c1e3da3 [core] Fix offline status reporting regressions
The core of the change is ensuring that ensureResource doesn't release Zalgo: it should be consistently async, rather than async in the case that the resource doesn't exist in the database, but sync if it does.

This ensures that status is reported in a more consistent sequence, regardless of the database state.
2016-03-08 10:28:33 -08:00
John Firebaugh
8fee0f33c0 [core] Fix RunLoop::run() behavior when called a second time 2016-03-08 10:28:01 -08:00
Thiago Marcos P. Santos
672727f773 [core] Make OnlineFileSource respect the NetworkStatus
The user can now force the Offline mode and set it back
to Online, triggering the requests waiting for network connection.
2016-03-08 10:31:01 -03:00
Thiago Marcos P. Santos
b8b283588f [core] Remove goOffline() from DefaultFileSource
Use the newly added NetworkStatus::Set().
2016-03-08 10:31:01 -03:00
Tobrun
20c3706536 [android] #4240 - add flag to resize only when needed. 2016-03-08 08:06:55 -05:00
John Firebaugh
a3791b2325 [core] Ensure OfflineRegionStatus::downloadState is accurately reported 2016-03-07 19:08:03 -08:00
Dan Swick
c5f85bf9e7 Update TooManyIconsException.java 2016-03-07 21:53:03 -05:00
Dan Swick
e54ceec950 Update IconBitmapChangedException.java 2016-03-07 21:53:03 -05:00