Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Cherry-pick release water (#372)
Browse files Browse the repository at this point in the history
* Bump telemetry to 5.0.1, core to 2.0.1 (#370)


(cherry picked from commit 9d5b1f6)

* Rollback to System.loadLibrary to load native library. (#368)

* Rollback to System.loadLibrary if SoLoader failed to load library.

* Remove soloader.

(cherry picked from commit 01f1b1e)

* Update changelog for 9.2.0 (#371)

* Update changelog for 9.2.0

* Update changelog for 9.2.0

* Update changelog for 9.2.0

* Update changelog for 9.2.0

(cherry picked from commit ea7acd6)
  • Loading branch information
Kevin Li authored May 7, 2020
1 parent ee808fd commit 14b615a
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 56 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Mapbox welcomes participation and contributions from everyone. Please read [`Contributing Guide`](https://github.com/mapbox/mapbox-gl-native/blob/master/CONTRIBUTING.md) to get started.

## 9.2.0-beta.1 - April 30, 2020
## 9.2.0 - May 7, 2020
### Features
- Added the `distance` expression for calculating the shortest distance between an evaluated feature and a given GeoJSON object. ([#339](https://github.com/mapbox/mapbox-gl-native-android/pull/339))
- The [`SymbolLayer.iconTextFit`](https://docs.mapbox.com/android/api/map-sdk/9.2.0-beta.1/com/mapbox/mapboxsdk/style/layers/PropertyFactory.html#iconTextFit-com.mapbox.mapboxsdk.style.expressions.Expression-) property now respects the stretch metadata of any nine-part stretchable image passed into the `style.addImage` method. You can define the stretchable area of an image by configuring the `stretchX`, `stretchY`, `content` options on `Style.addImage` to append the requisite [metadata](https://github.com/mapbox/mapbox-gl-js/issues/8917). ([#314](https://github.com/mapbox/mapbox-gl-native-android/pull/314))
Expand All @@ -25,7 +25,11 @@ Mapbox welcomes participation and contributions from everyone. Please read [`Con
- Fixed a crash when encountering an invalid polyline. ([#16409](https://github.com/mapbox/mapbox-gl-native/pull/16409))
- Certain logging statements no longer run on the main thread. ([#16325](https://github.com/mapbox/mapbox-gl-native/pull/16325))

## 9.1.0
### Other changes
- Rollback to `System.loadLibrary` to fix SoLoader fails to load the native library on x86 devices. ([#368](https://github.com/mapbox/mapbox-gl-native-android/pull/368))
- Worked around crashes caused by `JobIntentService` on devices >= API 26 by using a network request to report errors instead. ([#472](https://github.com/mapbox/mapbox-events-android/pull/472)

## 9.1.0 - April 7, 2020
### Features
- Added `within` expression for testing whether an evaluated feature lies within a given GeoJSON object. `within` accepts `Feature`, `FeatureCollection`, `Polygon`, and `MultiPolygon` as valid GeoJSON objects. ([#198](https://github.com/mapbox/mapbox-gl-native-android/pull/198))
- Added `in` expression for testing whether an item exists in an array or a substring exists in a string. ([#171](https://github.com/mapbox/mapbox-gl-native-android/pull/171))
Expand Down
18 changes: 0 additions & 18 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,24 +218,6 @@ License: [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)

===========================================================================

Mapbox GL uses portions of SoLoader.
URL: [https://github.com/facebook/soloader](https://github.com/facebook/soloader)
License: [Apache-2](https://github.com/facebook/soloader/blob/master/LICENSE)

===========================================================================

Mapbox GL uses portions of SoLoader.
URL: [https://github.com/facebook/soloader](https://github.com/facebook/soloader)
License: [Apache-2](https://github.com/facebook/soloader/blob/master/LICENSE)

===========================================================================

Mapbox GL uses portions of SoLoader.
URL: [https://github.com/facebook/soloader](https://github.com/facebook/soloader)
License: [Apache-2](https://github.com/facebook/soloader/blob/master/LICENSE)

===========================================================================

Mapbox GL uses portions of VersionedParcelable and friends.
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
Expand Down
1 change: 0 additions & 1 deletion MapboxGLAndroidSDK/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ dependencies {
implementation dependenciesList.supportAnnotations
implementation dependenciesList.supportFragmentV4
implementation dependenciesList.okhttp3
implementation dependenciesList.soLoader
testImplementation dependenciesList.junit
testImplementation dependenciesList.mockito
testImplementation dependenciesList.mockk
Expand Down
8 changes: 1 addition & 7 deletions MapboxGLAndroidSDK/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,4 @@
# while we don't include this dependency directly
# a large amount of users combine it with our SDK
# we aren't able to provide a proguard config in that project (jar vs aar)
-dontwarn com.sun.xml.internal.ws.spi.db.*

# config for SoLoader https://github.com/mapbox/mapbox-gl-native-android/issues/60,
# https://github.com/facebook/SoLoader/blob/master/java/com/facebook/soloader/soloader.pro
-keep class com.facebook.soloader.SysUtil$LollipopSysdeps {
public <methods>;
}
-dontwarn com.sun.xml.internal.ws.spi.db.*
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Loads the mapbox-gl shared library
* <p>
* By default uses SoLoader from https://github.com/facebook/SoLoader
* By default uses System.loadLibrary
* use {@link #setLibraryLoader(LibraryLoader)} to provide an alternative library loading hook.
* </p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,10 @@

import com.mapbox.mapboxsdk.LibraryLoader;
import com.mapbox.mapboxsdk.LibraryLoaderProvider;
import com.mapbox.mapboxsdk.Mapbox;
import com.mapbox.mapboxsdk.exceptions.MapboxConfigurationException;
import com.mapbox.mapboxsdk.log.Logger;

import static com.facebook.soloader.SoLoader.init;
import static com.facebook.soloader.SoLoader.loadLibrary;

/**
* Concrete implementation of a native library loader.
* <p>
* Uses SoLoader from https://github.com/facebook/SoLoader.
* </p>
*/
public class LibraryLoaderProviderImpl implements LibraryLoaderProvider {
Expand All @@ -24,27 +17,16 @@ public class LibraryLoaderProviderImpl implements LibraryLoaderProvider {
*/
@Override
public LibraryLoader getDefaultLibraryLoader() {
return new SoLibraryLoader();
return new SystemLibraryLoader();
}

/**
* Concrete implementation of a LibraryLoader using SoLoader.
* Concrete implementation of a LibraryLoader using System.loadLibrary.
*/
private static class SoLibraryLoader extends LibraryLoader {

private static final String TAG = "SoLibraryLoader";

private static class SystemLibraryLoader extends LibraryLoader {
@Override
public void load(String name) {
try {
// nativeExopackage = false, https://buck.build/article/exopackage.html
init(Mapbox.getApplicationContext(), false);
loadLibrary(name);
} catch (MapboxConfigurationException exception) {
Logger.e(TAG, "Couldn't load so file with relinker, application context missing, "
+ "call Mapbox.getInstance(Context context, String accessToken) first");
throw new UnsatisfiedLinkError(exception.getMessage());
}
System.loadLibrary(name);
}
}
}
6 changes: 2 additions & 4 deletions gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ ext {

versions = [
mapboxServices : '5.0.0',
mapboxTelemetry : '5.0.0',
mapboxCore : '2.0.0',
mapboxTelemetry : '5.0.1',
mapboxCore : '2.0.1',
mapboxGestures : '0.7.0',
mapboxAccounts : '0.7.0',
appCompat : '1.0.0',
Expand All @@ -35,7 +35,6 @@ ext {
androidPublish : '3.6.2',
lint : '26.4.2',
gms : '16.0.0',
soLoader : '0.8.0',
jacoco : '0.8.4',
appcenter : '1.4',
ktlint : '0.34.0',
Expand Down Expand Up @@ -74,7 +73,6 @@ ext {
okhttp3 : "com.squareup.okhttp3:okhttp:${versions.okhttp}",
leakCanaryDebug : "com.squareup.leakcanary:leakcanary-android:${versions.leakCanary}",
leakCanaryRelease : "com.squareup.leakcanary:leakcanary-android-no-op:${versions.leakCanary}",
soLoader : "com.facebook.soloader:soloader:${versions.soLoader}",

kotlinLib : "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}",
kotlinPlugin : "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}",
Expand Down
2 changes: 1 addition & 1 deletion vendor/mapbox-events-android
Submodule mapbox-events-android updated 18 files
+12 −6 CHANGELOG.md
+1 −1 gradle/dependencies.gradle
+1 −1 libcore/gradle.properties
+17 −7 liblocation/src/main/java/com/mapbox/android/core/location/LocationEngineResult.java
+85 −0 liblocation/src/test/java/com/mapbox/android/core/location/LocationEngineResultTest.java
+1 −1 libtelemetry/gradle.properties
+25 −25 ...ry/src/androidTestFull/java/com/mapbox/android/telemetry/errors/ErrorReporterClientInstrumentationTest.java
+11 −14 ...metry/src/androidTestFull/java/com/mapbox/android/telemetry/errors/ErrorReporterEngineInstrumentedTest.java
+14 −0 ...roidTestFull/java/com/mapbox/android/telemetry/errors/ErrorReporterJobIntentServiceInstrumentationTest.java
+1 −1 ...droidTestFull/java/com/mapbox/android/telemetry/errors/TokenChangeBroadcastReceiverInstrumentationTest.java
+1 −1 libtelemetry/src/full/AndroidManifest.xml
+17 −17 libtelemetry/src/full/java/com/mapbox/android/telemetry/MapboxTelemetry.java
+0 −71 libtelemetry/src/full/java/com/mapbox/android/telemetry/crash/CrashReporterJobIntentService.java
+7 −7 libtelemetry/src/full/java/com/mapbox/android/telemetry/errors/ErrorReporterClient.java
+81 −0 libtelemetry/src/full/java/com/mapbox/android/telemetry/errors/ErrorReporterEngine.java
+33 −0 libtelemetry/src/full/java/com/mapbox/android/telemetry/errors/ErrorReporterJobIntentService.java
+2 −2 libtelemetry/src/full/java/com/mapbox/android/telemetry/errors/TokenChangeBroadcastReceiver.java
+1 −1 libtelemetry/src/full/java/com/mapbox/android/telemetry/provider/MapboxTelemetryInitProvider.java

0 comments on commit 14b615a

Please sign in to comment.