Skip to content

Commit

Permalink
Merge branch 'release-4.16.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
christocracy committed Oct 22, 2024
2 parents 4c8ab37 + ac0fa90 commit 51a0124
Show file tree
Hide file tree
Showing 83 changed files with 431 additions and 253 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# CHANGELOG

## Unreleased
## 4.16.1 — 2024-10-21
* [Android] Implement `Service.onTimeout` to handle `foregroundServiceType="shortService"` timeouts.
* [iOS] Add new `Config.activityType` `ACTIVITY_TYPE_AIRBORNE`.
* [iOS] Implement `Config.triggerActivities` for iOS.
* [Android] Guard against `NullPointerException` receiving a null location in `PolygonGeofenceService` event.
* [Android] Remove unused `import`s related to Flutter V1 Embedding.

* [Android] Address possible leak of `Activity` reference when terminating the app. Ensure internal reference to `Activity` is nullified when app is terminated.
* [Android] Add improvements to Android geofencing-only mode with `goefenceModeHighAccuracy: true` where motion-activity updates disabled.
* [Android] Add error-checking in polygon-geofencing to handle a possible `NullPointerException`.
* [iOS] Fix broken linking to Settings screen in `locationAuthorizationAlert` on iOS 18.

## 4.16.0 — 2024-09-04
* [iOS] Fix bug in iOS *Polygon Geofencing* when running in geofences-only mode (`.startGeofences`). iOS would mistakenly turn off location updates exactly 3 samples into the containing circular geofence of a polygon.
* Implement `notifyOnDwell` for polygon-geofences.
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ apply plugin: 'com.android.library'
def DEFAULT_COMPILE_SDK_VERSION = 31
def DEFAULT_PLAY_SERVICES_LOCATION_VERSION = "20.0.0"
def DEFAULT_HMS_LOCATION_VERSION = "6.9.0.300"
def DEFAULT_APP_COMPAT_VERSION = "1.4.1"
def DEFAULT_APP_COMPAT_VERSION = "1.6.1"
def DEFAULT_OK_HTTP_VERSION = "3.12.13"
def DEFAULT_ANDROID_PERMISSIONS_VERSION = "2.1.6"
def DEFAULT_LOCAL_BROADCAST_MANAGER_VERSION = "1.1.0"
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ca1be2a219123b212918f89d450c14c5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6ca48470bbbaabcc5b1b1a942c6145d4dc755b55
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
562326cc6252297c15059b2b277c388a15bdabe5611ca7b9523610634d9ba185
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e4ac41609d82caaf9aa82e7f182c418a3a94bbe82a516c7821a249e2f98bc0062fb55a630daddfcab0c07f062a6751ee87c061ebf2e5eb6cc89f95f2149d9b87
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.transistorsoft</groupId>
<artifactId>tslocationmanager-v21</artifactId>
<version>3.5.5</version>
<version>3.6.1</version>
<packaging>aar</packaging>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0929ebea38fba03ae51b75b6c33bd804
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d787595b85b24e37644e3ef107ca7924bd0049d5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
610f4de659ce6860d3a6462857fdab5eb148d02e11d0896da257c2abe17b7259
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
58087a3b2d97c83265ee6e07d65de136cc1947741b3860f401410918568d09c2160072104a556e226b129820c3a95c6574548c75da20fc382ee7a5c8ca6e2e41
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@
<groupId>com.transistorsoft</groupId>
<artifactId>tslocationmanager-v21</artifactId>
<versioning>
<latest>3.5.5</latest>
<release>3.5.5</release>
<latest>3.6.1</latest>
<release>3.6.1</release>
<versions>
<version>3.4.6</version>
<version>3.5.0</version>
<version>3.5.1</version>
<version>3.5.2</version>
<version>3.5.3</version>
<version>3.5.4</version>
<version>3.5.5</version>
<version>3.6.0</version>
<version>3.6.1</version>
</versions>
<lastUpdated>20240828142616</lastUpdated>
<lastUpdated>20241022153017</lastUpdated>
</versioning>
</metadata>

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4b56cb390b9e805041252e9e304ad011
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10cc3789e76f52d72f47ef66bd53f0e3917e3d42
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
32412481cbc44ea641126ec07fabf333d5aad3c83671b8d1ac78e3df0a4ce88d
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
02fb70b81ed41d47a6fde25de0c61ba2773d810f0c0d27d6ac0183e4704f001f0f528d20853ea349551a2385e01cb425d8e545d4f98a91fa8433d1c0a48092b9
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.transistorsoft</groupId>
<artifactId>tslocationmanager</artifactId>
<version>3.5.5</version>
<version>3.6.1</version>
<packaging>aar</packaging>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f29450699b339b5021f0464f45f86b1d
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
57e3e19b0ffc165370c825047550f5274cd723a7
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a67b251794a4e9a36be01e25a48c041afc3c594c3f10add078ade521cefd0931
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
260c955ccfe9afaf0b2cbf38b09c95ddc4fe4bba4b7140c91edc7e34d324381efd8c7af592a03790886e575210f4549eb1dc85ffe41fc2fc31a3f23e9735b023
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@
<groupId>com.transistorsoft</groupId>
<artifactId>tslocationmanager</artifactId>
<versioning>
<latest>3.5.5</latest>
<release>3.5.5</release>
<latest>3.6.1</latest>
<release>3.6.1</release>
<versions>
<version>3.4.6</version>
<version>3.5.0</version>
<version>3.5.1</version>
<version>3.5.2</version>
<version>3.5.3</version>
<version>3.5.4</version>
<version>3.5.5</version>
<version>3.6.0</version>
<version>3.6.1</version>
</versions>
<lastUpdated>20240828142616</lastUpdated>
<lastUpdated>20241022153017</lastUpdated>
</versioning>
</metadata>
3 changes: 1 addition & 2 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.transistorsoft.flutter.backgroundgeolocation">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>
1 change: 1 addition & 0 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,5 @@ flutter {
dependencies {
def multidex_version = "2.0.1"
implementation "androidx.multidex:multidex:$multidex_version"
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.14'
}
1 change: 1 addition & 0 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
android:allowBackup="true"
android:label="Flutter Background Geolocation"
android:usesCleartextTraffic="true"

android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
Expand Down
4 changes: 2 additions & 2 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ ext {
compileSdkVersion = 34
targetSdkVersion = 34
minSdkVersion = 21
appCompatVersion = "1.4.2"
playServicesLocationVersion = "21.1.0"
appCompatVersion = "1.6.1"
playServicesLocationVersion = "21.3.0"
hmsLocationVersion = "6.12.0.300" //<-- this version invokes StrictMode crash "Explicit termination method 'end' not called" from its own okhttp requests!!
removeBackgroundGeolocationDebugSoundsInRelease = false
}
Expand Down
8 changes: 4 additions & 4 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
PODS:
- background_fetch (1.3.5):
- background_fetch (1.3.7):
- Flutter
- CocoaLumberjack (3.8.5):
- CocoaLumberjack/Core (= 3.8.5)
- CocoaLumberjack/Core (3.8.5)
- Flutter (1.0.0)
- flutter_background_geolocation (4.15.5):
- flutter_background_geolocation (4.16.1):
- CocoaLumberjack (~> 3.8.5)
- Flutter
- shared_preferences_foundation (0.0.1):
Expand Down Expand Up @@ -38,10 +38,10 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/url_launcher_ios/ios"

SPEC CHECKSUMS:
background_fetch: f73d045fee3d313ea8c0afa205317bff8a6bf8d2
background_fetch: 39f11371c0dce04b001c4bfd5e782bcccb0a85e2
CocoaLumberjack: 6a459bc897d6d80bd1b8c78482ec7ad05dffc3f0
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_background_geolocation: 41cddc9ed0aac0b674bb6642690efd28df57ca6d
flutter_background_geolocation: 16377d5a4d5b0114025ea50c3dfe22b2c2fb0ef3
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe

Expand Down
2 changes: 1 addition & 1 deletion example/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
<array>
<string>audio</string>
<string>fetch</string>
<string>location</string>
<string>processing</string>
<string>location</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
Expand Down
5 changes: 3 additions & 2 deletions example/lib/advanced/home_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class HomeViewState extends State<HomeView> with TickerProviderStateMixin<HomeVi
bg.BackgroundGeolocation.onNotificationAction(_onNotificationAction);

bg.BackgroundGeolocation.onAuthorization((bg.AuthorizationEvent event) {
print("********************** Authorization: $event");
print("[onAuthorization] $event");
});

bg.TransistorAuthorizationToken token = await bg.TransistorAuthorizationToken.findOrCreate(orgname, username, ENV.TRACKER_HOST);
Expand Down Expand Up @@ -157,6 +157,7 @@ class HomeViewState extends State<HomeView> with TickerProviderStateMixin<HomeVi
)).then((bg.State state) async {
print('[ready] ${state.toMap()}');
print('[didDeviceReboot] ${state.didDeviceReboot}');

if (state.schedule!.isNotEmpty) {
bg.BackgroundGeolocation.startSchedule();
}
Expand Down Expand Up @@ -344,7 +345,7 @@ class HomeViewState extends State<HomeView> with TickerProviderStateMixin<HomeVi

void _onProviderChange(bg.ProviderChangeEvent event) async {
print('[${bg.Event.PROVIDERCHANGE}] - $event');

if ((event.status == bg.ProviderChangeEvent.AUTHORIZATION_STATUS_ALWAYS) && (event.accuracyAuthorization == bg.ProviderChangeEvent.ACCURACY_AUTHORIZATION_REDUCED)) {
// Supply "Purpose" key from Info.plist as 1st argument.
bg.BackgroundGeolocation.requestTemporaryFullAccuracy("DemoPurpose").then((int accuracyAuthorization) {
Expand Down
5 changes: 5 additions & 0 deletions example/lib/advanced/settings_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ class _SettingsViewState extends State<SettingsView> {
_state = state;
});
});

bg.BackgroundGeolocation.geofences.then((geofences) {
print("Geofences: $geofences");
});

}

_onClickClose() {
Expand Down
Loading

0 comments on commit 51a0124

Please sign in to comment.