Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

Commit

Permalink
Merge branch 'release-ios-v3.6.0-android-v5.1.0' into merge_mapbox_v5…
Browse files Browse the repository at this point in the history
….1.4

* release-ios-v3.6.0-android-v5.1.0: (36 commits)
  [android] [auto] Update properties to version 5.1.4 in preparation for build.
  [android] - latLngBounds test
  [android] - update changelog for 5.1.4 release.
  bump MAS version number to 2.2.3 (mapbox#9901)
  [android] fix is download complete (a download is complete when count and required resources match and the download state is inactive) (mapbox#9913)
  [android] - avoid adding duplicate points to bounds
  [android] Clear out mapCallback's OnMapReadyCallbacks on onDestroy
  [android] - harden offline region deletion
  Do not check connection if it is local request
  [android] - disable rotation gesture when pinch zooming
  macos-v0.5.1
  [ios] Bump podspec to 3.6.4 (mapbox#10059)
  [android, ios, macos] Updated translations
  [core] make sure tiles are not treated as complete until all worker operations completed
  [core] keep tiles renderable even if a subsequent error occurs
  [ios] Be sure to get a BOOL value for nullable dict keys
  iosv3.6.3 podspec bump (mapbox#10008)
  [ios, macos] Deprecate trafficDayStyleURL and trafficNightStyleURL (mapbox#9918)
  [ios] Use constraints to manage ornament view placement (again)  (mapbox#9995)
  [ios] Canned spam coming from Transifex
  ...

# Conflicts:
#	platform/android/MapboxGLAndroidSDK/proguard-rules.pro
#	platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapGestureDetector.java
  • Loading branch information
Tien TRAN-THUONG authored and Tien TRAN-THUONG committed Oct 3, 2017
2 parents 6830b3a + 3f52377 commit b07482a
Show file tree
Hide file tree
Showing 89 changed files with 1,985 additions and 595 deletions.
7 changes: 7 additions & 0 deletions .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ source_file = platform/darwin/resources/Base.lproj/Foundation.strings
source_lang = en
type = STRINGS

[mapbox-gl-native.foundationstringsdict-darwin]
file_filter = platform/darwin/resources/<lang>.lproj/Foundation.stringsdict
lang_map = pt_BR: pt-BR, pt_PT: pt-PT, zh_CN: zh-Hans, zh_TW: zh-Hant
source_file = platform/darwin/resources/en.lproj/Foundation.stringsdict
source_lang = en
type = STRINGSDICT

[mapbox-gl-native.localizablestrings-ios]
file_filter = platform/ios/resources/<lang>.lproj/Localizable.strings
lang_map = pt_BR: pt-BR, pt_PT: pt-PT, zh_CN: zh-Hans, zh_TW: zh-Hant
Expand Down
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,4 @@ jobs:
- deploy:
name: Publish to Maven
command: |
if [ "${CIRCLE_BRANCH}" == "release-ios-v3.6.0-android-v5.1.0" ]; then make run-android-upload-archives ; fi
if [ "${CIRCLE_BRANCH}" == "master" ]; then make run-android-upload-archives ; fi
20 changes: 20 additions & 0 deletions platform/android/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@

Mapbox welcomes participation and contributions from everyone. If you'd like to do so please see the [`Contributing Guide`](https://github.com/mapbox/mapbox-gl-native/blob/master/CONTRIBUTING.md) first to get started.

## 5.1.4

* Russian and Ukrainian localizations [#9945](https://github.com/mapbox/mapbox-gl-native/pull/9945)

### 5.1.4 - September 25, 2017

* Update translations [#10033](https://github.com/mapbox/mapbox-gl-native/pull/10033) & [#9945](https://github.com/mapbox/mapbox-gl-native/pull/9945)
* Continue rendering tiles despite erros [#10012](https://github.com/mapbox/mapbox-gl-native/pull/10012)
* Fix layer z-fighting [#9942](https://github.com/mapbox/mapbox-gl-native/pull/9942)
* Align line vertex to 4-byte boundary [#9943](https://github.com/mapbox/mapbox-gl-native/pull/9943)
* Bump proguard config for OkHttp [#9970](https://github.com/mapbox/mapbox-gl-native/pull/9970)
* Remove database on schema downgrade [#9837](https://github.com/mapbox/mapbox-gl-native/pull/9837)
* Disable rotation gesture when pinch zooming [#10026](https://github.com/mapbox/mapbox-gl-native/pull/10026)
* Do not check if connection is local request [#9968](https://github.com/mapbox/mapbox-gl-native/pull/9968)
* Harden offline region deletion [#9967](https://github.com/mapbox/mapbox-gl-native/pull/9967)
* Clear out mapCallback's OnMapReadyListeners on destroy [#9957](https://github.com/mapbox/mapbox-gl-native/pull/9957)
* Avoid adding duplicate points to bounds [#9955](https://github.com/mapbox/mapbox-gl-native/pull/9955)
* Download is complete fix [#9913](https://github.com/mapbox/mapbox-gl-native/pull/9913)
* MAS 2.2.3 [#9901](https://github.com/mapbox/mapbox-gl-native/pull/9901)

## 5.1.3 - August 18, 2017

* Use separate attribute component for line normals [#9753](https://github.com/mapbox/mapbox-gl-native/pull/9753)
Expand Down
2 changes: 1 addition & 1 deletion platform/android/MapboxGLAndroidSDK/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GROUP=com.mapbox.mapboxsdk
VERSION_NAME=5.1.4-SNAPSHOT
VERSION_NAME=5.1.4

POM_DESCRIPTION=Mapbox GL Android SDK
POM_URL=https://github.com/mapbox/mapbox-gl-native
Expand Down
9 changes: 6 additions & 3 deletions platform/android/MapboxGLAndroidSDK/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
-keep interface com.mapbox.mapboxsdk.** { *; }
-keep class com.mapbox.services.android.telemetry.** { *; }
-keep class com.mapbox.services.commons.** { *;}
-keep class com.google.** { *; }
-dontwarn com.google.**
-keep class com.google.gson.** { *; }
-keep class com.google.gson.** { *; }

# config for okhttp 3.8.0, https://github.com/square/okhttp/pull/3354
-dontwarn okio.**
-dontwarn javax.annotation.Nullable
-dontwarn javax.annotation.ParametersAreNonnullByDefault
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ public TwoFingerGestureDetector(Context context) {

ViewConfiguration config = ViewConfiguration.get(context);

// We divide edge slop by 2 to make rotation gesture happen more easily #6870
edgeSlop = config.getScaledEdgeSlop() / 2;
edgeSlop = config.getScaledEdgeSlop();
}

@Override
Expand Down Expand Up @@ -222,4 +221,4 @@ public float getFocusY() {
return focus.y;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ public LatLngBounds build() {
*/
public Builder includes(List<LatLng> latLngs) {
for (LatLng point : latLngs) {
latLngList.add(point);
include(point);
}
return this;
}
Expand All @@ -462,7 +462,9 @@ public Builder includes(List<LatLng> latLngs) {
* @return this
*/
public Builder include(@NonNull LatLng latLng) {
latLngList.add(latLng);
if (!latLngList.contains(latLng)) {
latLngList.add(latLng);
}
return this;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,14 @@ private HTTPRequest(long nativePtr, String resourceUrl, String etag, String modi
mNativePtr = nativePtr;

try {
// Don't try a request if we aren't connected
if (!Mapbox.isConnected()) {
HttpUrl httpUrl = HttpUrl.parse(resourceUrl);
final String host = httpUrl.host().toLowerCase(MapboxConstants.MAPBOX_LOCALE);

// Don't try a request to remote server if we aren't connected
if (!Mapbox.isConnected() && !host.equals("127.0.0.1") && !host.equals("localhost")) {
throw new NoRouteToHostException("No Internet connection available.");
}

HttpUrl httpUrl = HttpUrl.parse(resourceUrl);
final String host = httpUrl.host().toLowerCase(MapboxConstants.MAPBOX_LOCALE);
if (host.equals("mapbox.com") || host.endsWith(".mapbox.com") || host.equals("mapbox.cn")
|| host.endsWith(".mapbox.cn")) {
if (httpUrl.querySize() == 0) {
Expand Down
Loading

0 comments on commit b07482a

Please sign in to comment.