Skip to content

Commit fc092bf

Browse files
[Android] Added extra logic in a location error-handler to mitigate against a possible edge-case where a location-error fetching the onMotionChange position could possibly result in an infinite loop, causing a stackoverflow exception
1 parent 86960cc commit fc092bf

13 files changed

+31
-11
lines changed

CHANGELOG.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,29 @@
11
# Change Log
22

3-
## 4.11.0 — 2023-02-18
3+
## 4.11.0 — 2023-03-29
44
* [Android] Introduce __Huawei HMS Support__. Requires a separate license key [purchased here](https://shop.transistorsoft.com/collections/frontpage/products/huawei-background-geolocation).
55
* [iOS] Fix for iOS 16.4. iOS 16.4 introduces changes to CoreLocation behaviour when using Config.showsBackgroundLocationIndi
66
cator: false.
7+
* [Android] Added extra logic in a location error-handler to mitigate against a possible edge-case where a location-error fetching the onMotionChange position could possibly result in an infinite loop, causing a stackoverflow exception:
8+
```
9+
at com.transistorsoft.locationmanager.service.TrackingService.changePace(TrackingService.java:264)
10+
at com.transistorsoft.locationmanager.service.TrackingService$c.onError(TrackingService.java:69)
11+
at com.transistorsoft.locationmanager.location.SingleLocationRequest.onError(SingleLocationRequest.java:18)
12+
at com.transistorsoft.locationmanager.location.SingleLocationRequest.start(SingleLocationRequest.java:71)
13+
at com.transistorsoft.locationmanager.location.TSLocationManager.getCurrentPosition(TSLocationManager.java:3)
14+
at com.transistorsoft.locationmanager.service.TrackingService.changePace(TrackingService.java:321)
15+
at com.transistorsoft.locationmanager.service.TrackingService$c.onError(TrackingService.java:69)
16+
at com.transistorsoft.locationmanager.location.SingleLocationRequest.onError(SingleLocationRequest.java:18)
17+
at com.transistorsoft.locationmanager.location.SingleLocationRequest.start(SingleLocationRequest.java:71)
18+
at com.transistorsoft.locationmanager.location.TSLocationManager.getCurrentPosition(TSLocationManager.java:3)
19+
at com.transistorsoft.locationmanager.service.TrackingService.changePace(TrackingService.java:321)
20+
at com.transistorsoft.locationmanager.service.TrackingService$c.onError(TrackingService.java:69)
21+
at com.transistorsoft.locationmanager.location.SingleLocationRequest.onError(SingleLocationRequest.java:18)
22+
at com.transistorsoft.locationmanager.location.SingleLocationRequest.start(SingleLocationRequest.java:71)
23+
.
24+
.
25+
.
26+
```
727

828
## 4.10.0 — 2023-02-01
929
* [Fixed][Android] Implement support for `play-services-location v21` (`ext.playServicesLocationVersion` in your `android/build.gradle`). The plugin can now work with either `<= v20` or `>= v21`.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a9ee060bdada74fa04d958de650a52da
1+
698e1c71f30dd8815cd1e3e7065942d8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e967662e0b341424bced98bfcf58e27e12f2f40f
1+
06db0e27efe59adbc6027273a0891ac1aab569cb
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a6d986a13b3f7e5e10fab4ff28cf673e1a509866f9bc663820453ee400d6e700
1+
7461e70dc314d6f6cdb1239b289060769785eb9b6c4a35003b176a12c1e28169
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1a1d760effd7be3358abe705b2e85e9a00ead6bee8555668634d1822769da67ac7641375ec3cf27facac3b1803c4d3d83a80ad05705300c2ead5a7f5669cdf12
1+
3408b8a7569637de2ee6cbf9df9ed2a2a015325bd7ea771b3961deb6c985873827867e90925b6ba46d547225a07364b00bca8e7c53f89ce99ba360397f45a8f5

android/libs/com/transistorsoft/tslocationmanager-v21/maven-metadata.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
<versions>
99
<version>3.4.0</version>
1010
</versions>
11-
<lastUpdated>20230321125759</lastUpdated>
11+
<lastUpdated>20230329131939</lastUpdated>
1212
</versioning>
1313
</metadata>
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1c48aa382be677d679315ea49fdd7095
1+
ddaeb1f78609e90acb64b61179b62a4f
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
23de172009eb9e3466bc03c51af671c1b926b0db
1+
a0219fe44e792f920aaac2d60e36f1907b689654

0 commit comments

Comments
 (0)