Skip to content

Commit 022bbe0

Browse files
authored
v10.1.1: fix import/export operations on iOS (#180)
1 parent 77bd6da commit 022bbe0

File tree

7 files changed

+422
-404
lines changed

7 files changed

+422
-404
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ Many thanks to my sponsors, no matter how much or how little they donated. Spons
1818

1919
# Changelog
2020

21+
## [10.1.1] - 2025/02/03
22+
23+
* Fixed bug where import operation fatally crashed on some iOS devices
24+
This appears to be an [ObjectBox issue](https://github.com/objectbox/objectbox-dart/issues/654) where streaming the results of a database query caused the crash. Instead, FMTC now uses a custom chunking system to avoid streaming and also avoid loading potentially many tiles into memory.
25+
* Improved performance of import operation
26+
2127
## [10.1.0] - 2025/02/02
2228

2329
* Added support for flutter_map v8

example/lib/src/screens/import/stages/progress.dart

+2-6
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,9 @@ class _ImportProgressStageState extends State<ImportProgressStage> {
6262
style: Theme.of(context).textTheme.titleLarge,
6363
textAlign: TextAlign.center,
6464
),
65-
const SizedBox(height: 16),
65+
const SizedBox(height: 8),
6666
const Text(
67-
'This could take a while.\n'
68-
"We don't recommend leaving this screen. The import will "
69-
'continue, but performance could be affected.\n'
70-
'Closing the app will stop the import operation in an '
71-
'indeterminate (but stable) state.',
67+
"This could take a while. Don't leave this screen.",
7268
textAlign: TextAlign.center,
7369
),
7470
],

example/pubspec.yaml

+12-14
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,37 @@
11
name: fmtc_demo
22
description: The demo app for 'flutter_map_tile_caching', showcasing its functionality and use-cases.
33
publish_to: "none"
4-
version: 10.1.0
4+
version: 10.1.1
55

66
environment:
77
sdk: ">=3.6.0 <4.0.0"
88
flutter: ">=3.27.0"
99

1010
dependencies:
11-
async: ^2.12.0
11+
async: ^2.13.0
1212
auto_size_text: ^3.0.0
1313
badges: ^3.1.2
14-
collection: ^1.18.0
15-
file_picker: 8.1.4 # Compatible with 3.27!
14+
collection: ^1.19.1
15+
file_picker: ^9.0.2
1616
flutter:
1717
sdk: flutter
18-
flutter_map:
19-
flutter_map_animations: ^0.8.0
18+
flutter_map: ^8.1.1
19+
flutter_map_animations: ^0.9.0
2020
flutter_map_tile_caching:
21-
flutter_slidable: ^3.1.2
21+
flutter_slidable: ^4.0.0
2222
google_fonts: ^6.2.1
2323
gpx: ^2.3.0
24-
http: ^1.2.2
25-
intl: ^0.19.0
24+
http: ^1.3.0
25+
intl: ^0.20.2
2626
latlong2: ^0.9.1
2727
path: ^1.9.1
2828
path_provider: ^2.1.5
2929
provider: ^6.1.2
30-
share_plus: ^10.1.3
31-
shared_preferences: ^2.3.3
32-
stream_transform: ^2.1.0
30+
share_plus: ^10.1.4
31+
shared_preferences: ^2.5.2
32+
stream_transform: ^2.1.1
3333

3434
dependency_overrides:
35-
flutter_map:
36-
git: https://github.com/fleaflet/flutter_map.git
3735
flutter_map_tile_caching:
3836
path: ../
3937

lib/src/backend/impls/objectbox/backend/backend.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ import 'dart:isolate';
99
import 'dart:math';
1010

1111
import 'package:collection/collection.dart';
12-
import 'package:flutter/material.dart';
12+
import 'package:flutter/foundation.dart';
1313
import 'package:flutter/services.dart';
14-
import 'package:meta/meta.dart';
1514
import 'package:path/path.dart' as path;
1615
import 'package:path_provider/path_provider.dart';
1716

0 commit comments

Comments
 (0)