summaryrefslogtreecommitdiff
path: root/platform
Commit message (Collapse)AuthorAgeFilesLines
* [ios] Moved static include fileMinh Nguyễn2016-02-271-0/+3
| | | | This file was originally added on the release-ios-v3.1.0 branch, before #3913 merged ios/ into platform/ios/. When the release branch was merged back into master in 17f44d7bd99f2c44e45eadc36d671dc29c88c64d, the file was left in the old ios/ directory.
* [android] #4126 - make zoom package privateTobrun2016-02-271-33/+2
|
* Introduce MGLLocation ManagerJesse Bounds2016-02-265-129/+234
| | | | | | | | | | | | | | | | | | | https://github.com/mapbox/mapbox-gl-native/pull/4115 This change makes background data gathering more efficient by disabling standard location updates when the device has been stationary for at least five minutes. It also establishes region monitoring and significant location change monitoring so that if the device appears to be in motion again then background telemetry data collection can resume. All of this reduces the amount of time required for telemetry data collection to the time the device is in motion only. It also only applies to host apps that already run in the background and have the always location permission from their users. This also includes some changes to make the internal pause/resume API of the MGLMapboxEvents class less complex and autonomous. The side effects of the map view waking or sleeping are no longer required for mapbox events to work as intended.
* [android] #4066 - Implementing flush events when app terminates functionalityBrad Leege2016-02-262-2/+28
|
* [android] Use the new camera api instead of hardcoded valuesAntonio Zugaldia2016-02-263-44/+64
| | | | Fixes #4124
* [ios] Clarified schemes and destinationsMinh Nguyễn2016-02-261-1/+1
|
* [android] #3888 - Setting SHA1 Certificate Pins for Staging, Prod Geotrust, ↵Brad Leege2016-02-261-0/+22
| | | | and Prod DigiCert
* [android] Remove invoke to DeleteGlobalRef to avoid client crashAntonio Zugaldia2016-02-261-6/+3
| | | | See #4121
* # This is a combination of 8 commits.Antonio Zugaldia2016-02-2622-43/+2568
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # The first commit's message is: # This is a combination of 2 commits. # The first commit's message is: # This is a combination of 3 commits. # The first commit's message is: # This is a combination of 2 commits. # The first commit's message is: # This is a combination of 21 commits. # The first commit's message is: [android] - Implements Android bindings for offline API Fixes #3891 # The 2nd commit message will be skipped: # [android] #3891 - rename OFFLINE_MAX_CACHE_SIZE to DEFAULT_MAX_CACHE_SIZE and adjust value # The 3rd commit message will be skipped: # [android] #3891 - makes de documentation more relevant to the current android implementation # The 4th commit message will be skipped: # [android] #3891 - rename isRequiredResourceCountIsIndeterminate() to isRequiredResourceCountPrecise() # The 5th commit message will be skipped: # [android] #3891 - rename complete() to isComplete() # The 6th commit message will be skipped: # [android] #3891 - rename OfflineRegionDefinition to OfflineTilePyramidRegionDefinition and make OfflineRegionDefinition an interface. Docs for corresponding classes updated. # The 7th commit message will be skipped: # [android] #3891 - make reason a more idiomatic ErrorReason Android IntDef and remove unnecessary constructor # The 8th commit message will be skipped: # [android] #3891 - reuse the calling object instead of creating a new manager # The 9th commit message will be skipped: # [android] #3891 - location, location, location # The 10th commit message will be skipped: # [android] #3891 - simpler list regions iteration # The 11th commit message will be skipped: # [android] #3891 - proper indeterminate -> precise transition # The 12th commit message will be skipped: # [android] #3891 - improve description for DEFAULT_MAX_CACHE_SIZE # The 13th commit message will be skipped: # [android] #3891 - delete global refs for obj and listCallback # The 14th commit message will be skipped: # [android] #3891 - simplify metadata conversion and fix metadata object # The 15th commit message will be skipped: # [android] - Implements Android bindings for offline API # Fixes #3891 # The 16th commit message will be skipped: # [android] #3891 - avoid exposing the int reason value in the public API # The 17th commit message will be skipped: # [android] #3891 - delete global refs for remaining callbacks and observer # The 18th commit message will be skipped: # [android] #3891 - remove unused offlineManagerClassConstructorId together with unnecessary private java constructor # The 19th commit message will be skipped: # [android] #3891 - remove non-relevant line # The 20th commit message will be skipped: # [android] #3891 - handle requiredResourceCountIsIndeterminate -> requiredResourceCountIsPrecise rename # The 21st commit message will be skipped: # [android] #3891 - revert map changes to allow rebase # The 2nd commit message will be skipped: # [android] #3891 - avoid exposing the int reason value in the public API # The 2nd commit message will be skipped: # [android] #3891 - rename complete() to isComplete() # The 3rd commit message will be skipped: # [android] #3891 - rename OfflineRegionDefinition to OfflineTilePyramidRegionDefinition and make OfflineRegionDefinition an interface. Docs for corresponding classes updated. # The 2nd commit message will be skipped: # [android] #3891 - location, location, location # The 2nd commit message will be skipped: # [android] #3891 - improve description for DEFAULT_MAX_CACHE_SIZE # The 3rd commit message will be skipped: # [android] #3891 - delete global refs for obj and listCallback # The 4th commit message will be skipped: # [android] #3891 - simplify metadata conversion and fix metadata object # The 5th commit message will be skipped: # [android] #3891 - delete global refs for remaining callbacks and observer # The 6th commit message will be skipped: # [android] #3891 - remove unused offlineManagerClassConstructorId together with unnecessary private java constructor # The 7th commit message will be skipped: # [android] #3891 - remove non-relevant line # The 8th commit message will be skipped: # [android] #3891 - handle requiredResourceCountIsIndeterminate -> requiredResourceCountIsPrecise rename
* [core] Build fixThiago Marcos P. Santos2016-02-261-1/+1
| | | | Fix no viable conversion on OSX.
* [core] Add timeout for clock skewThiago Marcos P. Santos2016-02-261-13/+49
| | | | | | | | | | If the server keeps sending replies considered from the client in the past (there is no way to tell if the server or client clock is wrong), the client will try to interpolate a valid expiration time based on the delta of the expiration intervals sent by the server. If the intervals are always the same, exponential backoff kicks in until we get a different expiration time from what we already have.
* [core] Add retry delay on expired tilesThiago Marcos P. Santos2016-02-261-3/+16
| | | | | | | | | When we receive an expired tile, we don't immediately retry because in case the server keeps serving an expired tile, that would cause an infinite retry cycle. Now we add an exponential delay, similarly to what we do for connection errors.
* [android] #4077 - DocumentingBrad Leege2016-02-252-3/+5
|
* [android] #4077 - Creating configureAndStartMapboxEventManager() to minimize ↵Brad Leege2016-02-253-19/+32
| | | | paramaters needs on getMapboxEventManager()
* [android] #4063 - fix update point annotation brokenTobrun2016-02-252-1/+2
|
* [android] #4021 - fix up library resource prefixTobrun2016-02-2516-42/+38
|
* [android] #4097 - update javadoc maps packageTobrun2016-02-2521-569/+100
| | | | [android] #4097 - update visibility compassclickclistener fix
* [android] #4071 - Android Telemetry Initial ImplementationBrad Leege2016-02-244-73/+177
|
* [android] #4083 - rename locationserviceTobrun2016-02-244-20/+20
|
* [ios] Introduce API ClientJesse Bounds2016-02-243-165/+240
| | | | | | | | | | | Addresses https://github.com/mapbox/mapbox-gl-native/issues/3704 This introduces a new utility class that wraps networking via NSURLSession. All related code that used to live inside the telemetry MGLMapboxEvents class has been pulled into the new MGLAPIClient. An API client instance is used as a service by telemetry and can be reused in the future when and if our networking needs grow or become more complex.
* [core] Limit total number of offline Mapbox tilesJohn Firebaugh2016-02-244-15/+128
|
* [core] Enforce foreign key constraints in the offline databaseJohn Firebaugh2016-02-244-14/+16
|
* [core] Fix subtle bug in OfflineDatabase with updated resourcesJohn Firebaugh2016-02-243-74/+172
| | | | | | SQLite REPLACE is *not* UPSERT. If a conflict occurs, it first deletes the existing row, then inserts a new row. This means that AUTOINCREMENT primary keys change. This will break foreign keys to that value, which we use. Instead we must try an UPDATE, and fall back to an INSERT if the UPDATE changes zero rows.
* [core] status.requiredResourceCountIsIndeterminate ⇢ ↵John Firebaugh2016-02-241-5/+5
| | | | | | status.requiredResourceCountIsPrecise Change the name and reverse the sense. Naming things in the positive is better than naming them in the negative.
* [ios] Deleted redundant certificatesMinh Nguyễn2016-02-243-0/+0
| | | | These certificates were copied to platform/default/resources/ in 4719b73ac7ea6f5c09c8378ea6f6bb193b866084 but remained here, producing build warnings about duplicate build rules.
* [ios] Reduce async complexityJesse Bounds2016-02-242-513/+299
|
* Merge branch 'release-ios-v3.1.0'Minh Nguyễn2016-02-249-67/+138
|\
| * [ios] Restored framework dependencies to static installation instructionsMinh Nguyễn2016-02-221-0/+11
| | | | | | | | Backed out documentation about #4029 because it doesn’t apply when using a storyboard, and the installation instructions use a storyboard.
| * [ios] Refactor MGLMapView's location servicesJason Wray2016-02-191-29/+44
| | | | | | | | | | | | | | | | - Pause location services when the app goes to sleep; address iOS 8 blue bar issue. - Only ask for location permissions if not already granted/denied. - Cleanup usage of `.isDormant` → `.dormant` Partially addresses #2945, for which a full and complete fix waits until #4030.
| * [ios] Removed manual framework linking from installation instructionsMinh Nguyễn2016-02-181-6/+0
| | | | | | | | Even these three are no longer needed, now that the umbrella header pulls them in.
| * [ios] Import required frameworks with static framework umbrellaMinh Nguyễn2016-02-182-7/+4
| | | | | | | | The umbrella header inside the static framework now imports the required iOS SDK frameworks so manual linking is unnecessary. This change corrects a regression introduced in #3183, when the umbrella header used in version 3.0.1 was removed.
| * [ios] Distinguish between AGV and semverMinh Nguyễn2016-02-131-1/+7
| | | | | | | | | | | | Distinguish between Apple Generic Versioning and Semantic Versioning in Info.plist. Also fill in the build number in the dynamic framework. Fixes #3911.
| * [ios] Update linked library extension to .tbdJason Wray2016-02-121-3/+3
| | | | | | | | [skip ci]
| * [ios, osx] Exclude misses from nearby annotationsMinh Nguyễn2016-02-102-2/+5
| | | | | | | | | | | | After filtering out elements of a vector using std::remove_if(), it’s apparently necessary to resize the vector. Otherwise, removing only has the effect of shifting the non-matching items to the end of the vector. This change reduces the annotation tap target back to almost what it was before #3261, except that these days the target is centered around the annotation image rather than the center point. There remains a much smaller slop area around the annotation, but nothing close to the effective padding before this change. Fixes #3880.
| * [core, ios, osx] Only constrain after adding to a windowMinh Nguyễn2016-02-102-11/+21
| | | | | | | | | | | | Introduced a setter/getter for constrain mode. On iOS and OS X, the zoom level inspectable causes the zoom level to be set independently from the longitude and latitude. Thus, the latitude inspectable had no effect because the latitude was constrained to 0 at z0. Temporarily removing the heightwise constraint allows the map to center on the intended location before zooming, which is the usual case for storyboards and XIBs. On iOS, the only guarantee we have timing-wise is that all the inspectables are applied after initialization but before the view is added to a window. So we reimpose the heightwise constraint as soon as the view is added to a window, that is, before the user has a chance to pan the map out of bounds. Fixes #3868.
| * [ios, osx] Fixed crash reselecting annotationMinh Nguyễn2016-02-102-12/+27
| | | | | | | | | | | | Handle the case where the currently selected annotation isn’t one of the nearby annotations. This hasn’t come up before on OS X because clicking an annotation while another annotation is selected only dismisses the callout popover. Fixes #3284.
| * [ios] Conform to SMCalloutViewDelegateMinh Nguyễn2016-02-091-0/+9
| | | | | | | | | | | | #3322 #3456 replaced SMCalloutViewDelegate conformance with MGLCalloutViewDelegate conformance. Unfortunately, the two protocols differ in some symbols. This change restores SMCalloutViewDelegate methods alongside MGLCalloutViewDelegate methods. Fixes #3871.
| * [ios] Load categories in MGLAccountManager for FabricMinh Nguyễn2016-02-091-0/+10
| | | | | | | | These categories need to be loaded explicitly so that they’re linked into the application binary. In the dynamic framework, they’re loaded inside the InitializeMapbox() framework initializer; for static frameworks, we recommend setting the -ObjC flag. Fabric uses the static framework without setting the -ObjC flag, so these redundant calls are needed.
* | [ios] fix benchmark appKonstantin Käfer2016-02-243-13/+47
| |
* | [android] #4094 - bring back view packageTobrun2016-02-248-39/+87
| |
* | [node] Add test that explicitly doesn call map.release()Thiago Marcos P. Santos2016-02-241-0/+16
| | | | | | | | | | Make sure mbgl.Map is not holding any references to the node's main loop and thus preventing the node from exit.
* | Revert "[node] Destroy the RunLoop with the last Map object"Thiago Marcos P. Santos2016-02-244-18/+10
| | | | | | | | This reverts commit 3633fd7ebdb2f406f17cf05320f9480a73455e09.
* | Revert "[core] libuv unref() not really needed"Thiago Marcos P. Santos2016-02-243-1/+30
| | | | | | | | This reverts commit 8a53c1a881c6a5272b647ca267d40fbc435d11d9.
* | [android] #4089 - remove mapboxmapsettings integrationTobrun2016-02-243-132/+0
| |
* | [android] #3755 - fix package visibility issue with camera package, added ↵Tobrun2016-02-2426-54/+85
| | | | | | | | javadoc and general cleanup
* | [android] #4083 - relax permissions check + renamed location services + code ↵Tobrun2016-02-244-48/+59
| | | | | | | | clean + javadoc
* | [android] #4038 - fix crash on polygons and polylines with empty points + ↵Tobrun2016-02-232-23/+54
| | | | | | | | formatting commit
* | [android] Fix crash on HTTP 200 with no dataThiago Marcos P. Santos2016-02-231-0/+2
| |
* | [ios] Fixed zoom level for map feedback toolMinh Nguyễn2016-02-221-1/+1
| | | | | | | | The map feedback tool uses mapbox.js, so its zoom levels are one off the zoom levels used by Mapbox GL.
* | [andriod] #4051 - add callback to move camera apiTobrun2016-02-221-0/+15
| |