Commit Graph

351 Commits

Author SHA1 Message Date
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
Tobrun
20c3706536 [android] #4240 - add flag to resize only when needed. 2016-03-08 08:06:55 -05: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
Tobrun
0306a94e53 [android] #4078 - improved instructions of exception message 2016-03-07 21:53:03 -05:00
Cameron Mace
6a31aa2910 [android] #4078 Gave help directly in logcat instead of refering to install.md 2016-03-07 21:51:05 -05:00
Tobrun
e9b7cd724f [android] #3631 - resize fix issue 2016-03-07 21:47:40 -05:00
Tobrun
46986c665e [android] #2996 - test workaround for device not sharing context 2016-03-07 21:46:11 -05:00
Brad Leege
30c753e7c4 [android] #4220 - Removing WAKE_LOCK from TestApp. Lowering log level to debug for Telemetry Location and Send to Server log lines. 2016-03-07 17:38:48 -06:00
Thiago Marcos P. Santos
fe811bd38e [android] Do not reach native if the HTTPContext was invalidated
Native will get destroyed before the Java HTTPRequest and asynchronous
requests might still get answered.

If the request gets canceled, we now clear the reference to the native
code and it will never reach it.

Lock is needed because OkHTTP replies on its own thread, so we need to
guard the access to the variable we use for checking if the Request was
canceled. In the future we could remove the lock and use Runnable when
we move Android main loop to Looper instead of libuv.

Like the other implementations of HTTPRequest on Mapbox GL Native, the
request is destroyed synchronously on ::cancel().
2016-03-07 19:13:56 -03:00
Tobrun
12fa5679ac [android] #4217 - fix build warning casting a varargs 2016-03-07 16:27:02 -05:00
Antonio Zugaldia
ecbe99ecec [android] Reporting is no longer an issue
Part of #4200
2016-03-07 15:05:15 -05:00
Antonio Zugaldia
e920a272e1 [android] Remove GSON From Offline Example TestApp
Fixes #4172
2016-03-07 13:32:24 -05:00
John Firebaugh
b318903ab9 [android] Don't crash if someone tries to use OfflineRegion after delete 2016-03-07 09:31:16 -08:00
John Firebaugh
c8b100ffe4 [android] Remove redundant arguments from offline native methods
`this` is automatically provided as the first argument to a native method.
2016-03-07 09:31:16 -08:00
John Firebaugh
6aa8be56f6 [android] destroyOfflineRegion must not delete an already-deleted peer 2016-03-07 09:31:16 -08:00
John Firebaugh
0386aeea22 [android] Don't call util::toString() on a null exception_ptr 2016-03-07 09:31:16 -08:00
Tobrun
d39ba766e5 [android] #4206 - property animation example 2016-03-06 14:23:47 -05:00
Tobrun
4a3beeddba [android] #4211 - avoid crashes when NativeMapView is being destroyed 2016-03-06 13:29:26 -05:00
John Firebaugh
cce49c147d [android] Don't leak global references to OfflineRegionObservers 2016-03-04 18:45:38 -08:00
Sascha Peilicke
661e9e7f49 Add package 'offline' to proguard keeps
To avoid release build crashes at runtime due to missing classes.
2016-03-04 16:00:13 -08:00
John Firebaugh
dbffe1dfab [android] Use jni.hpp low-level wrappers 2016-03-04 15:33:32 -08:00
John Firebaugh
068998cf8a [android] Remove JNI_OnUnload; it is in practice never called
http://bleaklow.com/2006/02/18/jni_onunload_mostly_useless.html
2016-03-04 15:33:32 -08:00
John Firebaugh
edbd4284f2 [android] Remove JNICALL; it's a no-op macro 2016-03-04 15:33:32 -08:00
John Firebaugh
f321bf2514 [android] Remove unnecessary declarations from jni.hpp 2016-03-04 15:33:32 -08:00
John Firebaugh
235f4ee6f6 [android] Use jni.hpp in http_request_android.cpp 2016-03-04 15:33:32 -08:00
John Firebaugh
9e0be736fc [android] Add jni.hpp headers to build 2016-03-04 15:33:32 -08:00
Antonio Zugaldia
ee12824c83 [android] Make listOfflineRegions include definitions
Fixes #4165
2016-03-03 13:14:56 -05:00
Tobrun
bc63d75227 [android] #3867 - performance improvement for invalidating the camera 2016-03-03 13:28:01 +01:00
Tobrun
e2da260a8e [android] #4149 - added a drop pin example to the GeocoderActivity 2016-03-03 08:48:49 +01:00
Tobrun
d994f2de0f [android] #4166 - move style url to map view for improved async loading 2016-03-03 07:38:23 +01:00
Tobrun
7d0dea8dad [android] #4157 - handle null icon when using parceable on MarkerOptions 2016-03-02 08:21:57 +01:00
Bruno de Oliveira Abinader
c17e954983 [android|ios|osx] Fix return type for pixelForLatLng 2016-03-01 20:58:54 +00:00
Bruno de Oliveira Abinader
4994b3dc57 [core] PrecisionPoint is now ScreenCoordinate 2016-03-01 20:58:54 +00:00
Brad Leege
5ac6fc523d [android] #4145 - Updating to OkHttp 3.2.0 and switching Telemetry Certificate Pins to SHA256 2016-02-29 13:48:47 -06:00
Brad Leege
c990aa8bf3 [android] #4142 - Removing Partial Wake Lock 2016-02-29 13:21:35 -06:00
Antonio Zugaldia
55cacfafd4 [android] Simplify offline metadata API on Android
Fixes #4139
2016-02-29 13:45:08 -05:00
Antonio Zugaldia
bef7fe76ff [android] Set log level of successful HTTP requests to verbose
Fixes #4120
2016-02-29 10:35:46 -05:00
Tobrun
826849a6dc [android] #4126 - make zoom package private 2016-02-27 08:48:39 +01:00
Brad Leege
b3adb96e4a [android] #4066 - Implementing flush events when app terminates functionality 2016-02-26 15:26:47 -06:00
Antonio Zugaldia
3ed9f4336c [android] Use the new camera api instead of hardcoded values
Fixes #4124
2016-02-26 15:05:55 -05:00
Brad Leege
1ff9073b4d [android] #3888 - Setting SHA1 Certificate Pins for Staging, Prod Geotrust, and Prod DigiCert 2016-02-26 10:11:11 -06:00
Antonio Zugaldia
11d3eff173 [android] Remove invoke to DeleteGlobalRef to avoid client crash
See #4121
2016-02-26 10:05:47 -05:00
Antonio Zugaldia
01e55f183e # This is a combination of 8 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 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
2016-02-26 09:13:17 -05:00
Brad Leege
e5e1fa8139 [android] #4077 - Documenting 2016-02-25 14:22:56 -06:00
Brad Leege
3ee6fd7a35 [android] #4077 - Creating configureAndStartMapboxEventManager() to minimize paramaters needs on getMapboxEventManager() 2016-02-25 14:19:37 -06:00
Tobrun
a5b39f5ae1 [android] #4063 - fix update point annotation broken 2016-02-25 11:40:07 +01:00
Tobrun
c7285b0368 [android] #4021 - fix up library resource prefix 2016-02-25 10:51:30 +01:00