Skip to content

Commit

Permalink
Merge pull request #964 from Lyokone/bump_min_flutter
Browse files Browse the repository at this point in the history
Bump min flutter
  • Loading branch information
bartekpacia authored Jun 28, 2024
2 parents 31f80a2 + 2ec6679 commit bcdb23c
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 34 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/location-prepare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
flutter-version: ["3.16.x", "3.19.x"]
flutter-version: ["3.22.x"]

steps:
- name: Clone repository
Expand Down Expand Up @@ -53,13 +53,13 @@ jobs:
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 3.16.x
flutter-version: 3.22.x

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
java-version: 21

- name: Build example app
working-directory: packages/location/example
Expand All @@ -80,7 +80,7 @@ jobs:
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 3.16.x
flutter-version: 3.22.x

- name: Install tools
run: brew install clang-format
Expand Down
5 changes: 5 additions & 0 deletions packages/location/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 7.0.0

- Bump minimum Dart version to 3.4, minimum Flutter version to 3.22
- Bump dependencies

## 6.0.2

- Fix bugs #620 and #864 (#889)
Expand Down
32 changes: 14 additions & 18 deletions packages/location/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,25 +90,21 @@ class _MyHomePageState extends State<MyHomePage> {
body: SingleChildScrollView(
child: Container(
padding: const EdgeInsets.all(32),
// FIXME: This ignore can be removed when we drop support for Flutter 3.10.
// ignore: prefer_const_constructors
child: Column(
// FIXME: This ignore can be removed when we drop support for Flutter 3.10.
// ignore: prefer_const_literals_to_create_immutables
child: const Column(
children: [
const PermissionStatusWidget(),
const Divider(height: 32),
const ServiceEnabledWidget(),
const Divider(height: 32),
const GetLocationWidget(),
const Divider(height: 32),
const ListenLocationWidget(),
const Divider(height: 32),
const ChangeSettings(),
const Divider(height: 32),
const EnableInBackgroundWidget(),
const Divider(height: 32),
const ChangeNotificationWidget(),
PermissionStatusWidget(),
Divider(height: 32),
ServiceEnabledWidget(),
Divider(height: 32),
GetLocationWidget(),
Divider(height: 32),
ListenLocationWidget(),
Divider(height: 32),
ChangeSettings(),
Divider(height: 32),
EnableInBackgroundWidget(),
Divider(height: 32),
ChangeNotificationWidget(),
],
),
),
Expand Down
10 changes: 5 additions & 5 deletions packages/location/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: location
description: Cross-platform plugin for easy access to device's location in real-time.
version: 6.0.2
version: 6.0.3
homepage: https://docs.page/Lyokone/flutterlocation
repository: https://github.com/Lyokone/flutterlocation
issue_tracker: https://github.com/Lyokone/flutterlocation/issues

environment:
sdk: ">=3.1.0 <4.0.0"
flutter: ">=3.16.0"
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"

flutter:
plugin:
Expand All @@ -29,8 +29,8 @@ dependencies:
location_web: ^5.0.0
dev_dependencies:
async: ^2.11.0
build_runner: ^2.4.9
build_runner: ^2.4.11
flutter_test:
sdk: flutter
leancode_lint: ^3.0.0
leancode_lint: ^13.0.0
mockito: ^5.4.4
5 changes: 5 additions & 0 deletions packages/location_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 5.0.0

- Bump minimum Dart version to 3.4, minimum Flutter version to 3.22
- Bump dependencies

## 4.0.0

- Bump minimum Dart version to 3.1, minimum Flutter version to 3.16
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
library location_platform_interface;
library;

import 'dart:async';
import 'dart:io';
Expand Down
8 changes: 4 additions & 4 deletions packages/location_platform_interface/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ version: 4.0.0
homepage: https://github.com/Lyokone/flutterlocation

environment:
sdk: ">=3.1.0 <4.0.0"
flutter: ">=3.16.0"
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"

dependencies:
flutter:
Expand All @@ -14,8 +14,8 @@ dependencies:

dev_dependencies:
async: ^2.11.0
build_runner: ^2.4.9
build_runner: ^2.4.11
flutter_test:
sdk: flutter
leancode_lint: ^3.0.0
leancode_lint: ^13.0.0
mockito: ^5.4.4
4 changes: 2 additions & 2 deletions packages/location_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ repository: https://github.com/Lyokone/flutterlocation
issue_tracker: https://github.com/Lyokone/flutterlocation/issues

environment:
sdk: ">=3.1.0 <4.0.0"
flutter: ">=3.16.0"
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"

dependencies:
flutter:
Expand Down

0 comments on commit bcdb23c

Please sign in to comment.