Skip to content

Commit 0423cc9

Browse files
committed
fix: add connectivity check
1 parent 9ec92e6 commit 0423cc9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/repositories/drive_backup.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ Future<void> ifShouldBackup() async {
4848
0)) {
4949
ConnectivityResult connectivityResult =
5050
await (Connectivity().checkConnectivity());
51-
if (connectivityResult != ConnectivityResult.none && !backingUp) {
51+
if (connectivityResult != ConnectivityResult.none &&
52+
connectivityResult != ConnectivityResult.mobile &&
53+
!backingUp) {
5254
Sentry.addBreadcrumb(Breadcrumb(
5355
message: "Initiating auto back up", timestamp: DateTime.now()));
5456
backingUp = true;

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1515
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
1616
# Read more about iOS versioning at
1717
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18-
version: 1.24.0+96
18+
version: 1.24.1+97
1919

2020
environment:
2121
sdk: ">=2.12.0 <3.0.0"

0 commit comments

Comments
 (0)