Skip to content

Commit

Permalink
Merge branch 'release-4.16.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
christocracy committed Dec 3, 2024
2 parents 87852bc + 9cf7b31 commit aa7f16a
Show file tree
Hide file tree
Showing 50 changed files with 44 additions and 58 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# CHANGELOG

## 4.16.3 — 2024-11=12
## 4.16.5 — 2024-12-03
* [Android] Remove Android Setup Step for `proguard-rules.pro` in your `android/app/build.gradle`. The SDK is now able to automatically apply its required `proguard-rules.pro`.

## 4.16.4 — 2024-11-12
* [Android] Remove enforcement of minimum Geofence radius `150`
* [Android] Fix issue with `TSLocationManagerActivity` (responsible for showing location permission / authorization dialogs). Minimizing the app with an active permission dialog would cause the app's `MainActivity` to terminate on some devices.

Expand Down
1 change: 1 addition & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ android {
defaultConfig {
minSdkVersion 16
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'proguard-rules.pro'
}
lintOptions {
disable 'InvalidPackage'
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 @@
74bb14fd07fb16ee170c5ad3d07f817d
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6c1c89301376ea993978bc06f919edaaa29fb3fb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
961d0d90ccb09bf5731a3a297c4e7fbacb9f24d20bdaa9dabc79b729d5a109eb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
01e530f5a7f3db6a9d9d436f345093e5538421d16b663daf9682317829d67bb9a80d4a58de10e485235744793ae039267335c0dc680c54bdc814a7bc31d4f01f
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.6.3</version>
<version>3.6.4</version>
<packaging>aar</packaging>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
95c1c712873b163f6641ce4b071e7af7
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d003fdeb61221dbe7eccd3eae06a88464f4837ca
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7e76a8d9ad740486eed08130a444e02a80959b615d0ae87899af8e85a3e0aa8b
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
56a88d4d6a4ca5061f3061bd5bd950a0c6afa271c6bdc5cfa960d77c39092d902736ffc32c53c99c2e55c02ea85f27aeec646e1cc3baceb48160a54dd86fe9b2
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
<groupId>com.transistorsoft</groupId>
<artifactId>tslocationmanager-v21</artifactId>
<versioning>
<latest>3.6.3</latest>
<release>3.6.3</release>
<latest>3.6.4</latest>
<release>3.6.4</release>
<versions>
<version>3.6.0</version>
<version>3.6.1</version>
<version>3.6.2</version>
<version>3.6.3</version>
<version>3.6.4</version>
</versions>
<lastUpdated>20241112183131</lastUpdated>
<lastUpdated>20241203042324</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 @@
bd49466dd13ba67b82ab2752a1d71318
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d8523b683cf9d70e53317362389b81bebe6f1d9f
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
328f8a4a248f6d9d5ae95fad7d996eca1470e7e0d56bad5cba04d0fabf8c6632
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18b6dea8cdb386ac662f7bbeff3a0061fa4855ae63e717db14a6009ed3027090407cc6c0ed97b566a260b57e1f8facbcdeb8b4424c47a27c237d6985878d75dd
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.6.3</version>
<version>3.6.4</version>
<packaging>aar</packaging>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9a0e698b655e8d6b1de240345eb0bb1e
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d4c0e936144e9629f09726d231ffb65382d117f8
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
29f18c0813aab1f46f264aae982c92a937c752f9d347371d0504db62885c615a
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1710cfc5d6b4638db7eca4ba894a346d024f6041c79cbcdd165c3da68939eac4e1e1cb5c5b4ea7d933d6576fab4db08e79301efb42073186349a90bf00b283ed
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
<groupId>com.transistorsoft</groupId>
<artifactId>tslocationmanager</artifactId>
<versioning>
<latest>3.6.3</latest>
<release>3.6.3</release>
<latest>3.6.4</latest>
<release>3.6.4</release>
<versions>
<version>3.6.0</version>
<version>3.6.1</version>
<version>3.6.2</version>
<version>3.6.3</version>
<version>3.6.4</version>
</versions>
<lastUpdated>20241112183131</lastUpdated>
<lastUpdated>20241203042324</lastUpdated>
</versioning>
</metadata>
1 change: 0 additions & 1 deletion example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ android {
minifyEnabled true
shrinkResources false
proguardFiles "proguard-rules.pro"
proguardFiles "${background_geolocation.projectDir}/proguard-rules.pro"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ext {
kotlin_version = '1.7.10'
kotlin_version = '1.8.0'
compileSdkVersion = 34
targetSdkVersion = 34
minSdkVersion = 21
Expand Down
2 changes: 1 addition & 1 deletion example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Jun 05 10:14:12 EDT 2023
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
4 changes: 2 additions & 2 deletions example/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
id "com.android.application" version "8.1.0" apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
}

include ":app"
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PODS:
- CocoaLumberjack/Core (= 3.8.5)
- CocoaLumberjack/Core (3.8.5)
- Flutter (1.0.0)
- flutter_background_geolocation (4.16.1):
- flutter_background_geolocation (4.16.5):
- CocoaLumberjack (~> 3.8.5)
- Flutter
- shared_preferences_foundation (0.0.1):
Expand Down Expand Up @@ -41,7 +41,7 @@ SPEC CHECKSUMS:
background_fetch: 39f11371c0dce04b001c4bfd5e782bcccb0a85e2
CocoaLumberjack: 6a459bc897d6d80bd1b8c78482ec7ad05dffc3f0
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_background_geolocation: 16377d5a4d5b0114025ea50c3dfe22b2c2fb0ef3
flutter_background_geolocation: c0e4d97edf7770d4bfa36cc7171b5fcf7ae798ac
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe

Expand Down
22 changes: 2 additions & 20 deletions example/lib/advanced/home_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,27 +69,10 @@ class HomeViewState extends State<HomeView> with TickerProviderStateMixin<HomeVi
void didChangeAppLifecycleState(AppLifecycleState state) {
print("[home_view didChangeAppLifecycleState] : $state");
if (state == AppLifecycleState.paused) {

// Do nothing.
/* For testing location access in background on Android 12.
new Timer(Duration(seconds: 21), () async {
var location = await bg.BackgroundGeolocation.getCurrentPosition();
print("************ [location] $location");
});
*/

// paused. do nothing.
} else if (state == AppLifecycleState.resumed) {
// resumed. do nothing.
if (!_enabled!) return;

DateTime now = DateTime.now();
var _lastRequestedTemporaryFullAccuracy = this._lastRequestedTemporaryFullAccuracy;
if (_lastRequestedTemporaryFullAccuracy != null) {
Duration dt = _lastRequestedTemporaryFullAccuracy.difference(now);
if (dt.inSeconds < 10) return;
}
_lastRequestedTemporaryFullAccuracy = now;
bg.BackgroundGeolocation.requestTemporaryFullAccuracy("DemoPurpose");

}
}

Expand Down Expand Up @@ -157,7 +140,6 @@ 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
5 changes: 3 additions & 2 deletions example/lib/advanced/util/test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Test {
static void applyTestConfig() async {

// Circular Test Geofences
/*
List<dynamic> data = [
{
"identifier": "[Flutter] Home",
Expand Down Expand Up @@ -318,8 +319,8 @@ class Test {
}
}
];
*/

/*
// Polygon Test Geofences
List<dynamic> data = [{
"identifier": "home",
Expand Down Expand Up @@ -477,7 +478,7 @@ class Test {
}
}
}];
*/

List<bg.Geofence> geofences = [];

data.forEach((dynamic item) {
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_background_geolocation_example
description: Demonstrates how to use the flutter_background_geolocation plugin.
version: 4.16.0+60
version: 4.16.4+61
dependencies:
flutter:
sdk: flutter
Expand Down
2 changes: 0 additions & 2 deletions help/INSTALL-ANDROID.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ android {
.
minifyEnabled true
+ shrinkResources false
// background_geolocation requires custom Proguard Rules with minifyEnabled
+ proguardFiles "${background_geolocation.projectDir}/proguard-rules.pro"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_background_geolocation
description: The most sophisticated background location tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
version: 4.16.4
version: 4.16.5
homepage: https://github.com/transistorsoft/flutter_background_geolocation

dependencies:
Expand Down

0 comments on commit aa7f16a

Please sign in to comment.