Skip to content

Commit

Permalink
Bumped min Dart SDK to 3.3.0, fixed some vexing dependency constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinbjornt committed May 30, 2024
1 parent 95392df commit 37cd357
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion lib/session.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ class SessionRouteState extends State<SessionRoute> with SingleTickerProviderSta
// Start observing connectivity changes. If we lose connectivity while
// a session is active, stop the session and let the user know that
// the device has gone offline.
Connectivity().onConnectivityChanged.listen((ConnectivityResult event) async {
Connectivity().onConnectivityChanged.listen((List<ConnectivityResult> events) async {
var event = events.last;
dlog("Connectivity changed: $event");
if (event == ConnectivityResult.none && session != null && session!.isActive()) {
await session!.stop();
Expand Down
20 changes: 10 additions & 10 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ homepage: https://embla.is
repository: https://github.com/mideind/EmblaFlutterApp

environment:
sdk: '>=3.0.0 <4.0.0'
flutter: ">=3.10.0"
sdk: '>=3.3.0 <4.0.0'
flutter: ">=3.22.0"

dependencies:
flutter:
sdk: flutter
# Third-party
http: '>=1.0.0'
shared_preferences: '^2.2.2'
http: '>=1.2.1'
shared_preferences: '^2.2.3'
geolocator: '^11.0.0'
package_info_plus: '4.0.2'
device_info_plus: '^9.1.2'
Expand All @@ -23,10 +23,10 @@ dependencies:
git:
url: https://github.com/tommysolsen/platform_device_id.git
path: platform_device_id
connectivity_plus: ^5.0.2
connectivity_plus: '>=5.0.2'
flutter_inappwebview: '^5.7.2+3'
path_provider: '^2.1.2'
wakelock_plus: '1.1.1'
wakelock_plus: '>=1.1.1'
permission_handler: '^10.2.0'
flutter_fgbg: '^0.3.0'
logger: '^2.0.1'
Expand All @@ -51,10 +51,10 @@ dependencies:


dev_dependencies:
flutter_test:
sdk: flutter
test: '>=1.15.4'
flutter_lints: '>=2.0.1'
# flutter_test:
# sdk: flutter
test: '^1.21.5'
flutter_lints: '^4.0.0'

# The following section is specific to Flutter.
flutter:
Expand Down

0 comments on commit 37cd357

Please sign in to comment.