Skip to content

Commit

Permalink
Fix/flutter 3.29 (#2530)
Browse files Browse the repository at this point in the history
* Fix dispose semantics issue on Android

* Update changelog

* Update Flutter version to 3.29.x in Android emulator workflows

* Remove reversed changes from changelog

---------

Co-authored-by: piotruela <piotr.maszota@leancode.co>
  • Loading branch information
piotruela and piotruela authored Feb 20, 2025
1 parent c08611a commit 5d1c503
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-android-emulator-webview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
fail-fast: false
matrix:
flutter-version: ["3.24.x"]
flutter-version: ["3.29.x"]
flutter-channel: ["stable"]

defaults:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-android-emulator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
fail-fast: false
matrix:
flutter-version: ["3.24.x"]
flutter-version: ["3.29.x"]
flutter-channel: ["stable"]

defaults:
Expand Down
3 changes: 1 addition & 2 deletions packages/patrol/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
## Unreleased

- Remove adding build phases from iOS and macOS setup. (#2510)
- Remove build phases from the example app. (#2510)
- Bump patrol plugin iOS and macOS deployment targets to 12.0. (#2514)
- Bump Gradle version in the example app so it's possible to build them on the
latest JDK 23 (#2503)
- Fix `$.native.tap()` not working with `Selector` having `instance` set. (#2501)
- Fix not disposed semantics issue in Flutter 3.29.0 (#2530)

## 3.14.0

Expand Down
15 changes: 6 additions & 9 deletions packages/patrol/lib/src/common.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'dart:developer';
import 'dart:io' as io;

import 'package:boolean_selector/boolean_selector.dart';
import 'package:flutter/foundation.dart';
Expand Down Expand Up @@ -126,14 +125,12 @@ void patrolTest(
return;
}
}
if (!kIsWeb && io.Platform.isIOS) {
widgetTester.binding.platformDispatcher.onSemanticsEnabledChanged = () {
// This callback is empty on purpose. It's a workaround for tests
// failing on iOS.
//
// See https://github.com/leancodepl/patrol/issues/1474
};
}
widgetTester.binding.platformDispatcher.onSemanticsEnabledChanged = () {
// This callback is empty on purpose. It's a workaround for tests
// failing on iOS and (from Flutter 3.29.0) on Android.
//
// See https://github.com/leancodepl/patrol/issues/1474
};
await automator.configure();
// We don't have to call this line because automator.configure() does the same.
// await automator2.configure();
Expand Down

0 comments on commit 5d1c503

Please sign in to comment.