Skip to content

Commit

Permalink
use latest Flutter master on CI
Browse files Browse the repository at this point in the history
ktlint format

s
  • Loading branch information
bartekpacia committed Nov 9, 2023
1 parent 47b6efa commit 13c57c0
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/patrol-prepare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.x'
flutter-version: '3.17.0-5.0.pre.20'
channel: master

- name: Set up Java
uses: actions/setup-java@v3
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/patrol_cli-prepare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
flutter-version: ['3.3.x', '3.7.x', '3.10.x', '3.13.x']
flutter-version: ['3.17.0-5.0.pre.20']
flutter-channel: ['master']

defaults:
run:
Expand All @@ -29,6 +30,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.flutter-version }}
channel: ${{ matrix.flutter-channel }}

- name: Run flutter tool (to dismiss the first run experience)
run: flutter
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/patrol_devtools_extension-prepare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
strategy:
fail-fast: false
matrix:
flutter-version: ['3.3.x', '3.7.x', '3.10.x', '3.13.x']
flutter-version: ['3.17.0-5.0.pre.20']
flutter-channel: ['master']

defaults:
run:
Expand All @@ -28,6 +29,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.flutter-version }}
channel: ${{ matrix.flutter-channel }}

- name: flutter pub get
run: flutter pub get
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/patrol_finders-prepare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
strategy:
fail-fast: false
matrix:
flutter-version: ['3.3.x', '3.7.x', '3.10.x', '3.13.x']
flutter-version: ['3.17.0-5.0.pre.20']
flutter-channel: ['master']

defaults:
run:
Expand All @@ -28,6 +29,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.flutter-version }}
channel: ${{ matrix.flutter-channel }}

- name: flutter pub get
run: flutter pub get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Automator private constructor() {
uiDevice = UiDevice.getInstance(instrumentation)
}
if (!this::uiAutomation.isInitialized) {
uiAutomation = instrumentation.uiAutomation;
uiAutomation = instrumentation.uiAutomation
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ package pl.leancode.patrol
import pl.leancode.patrol.contracts.Contracts.ConfigureRequest
import pl.leancode.patrol.contracts.Contracts.DarkModeRequest
import pl.leancode.patrol.contracts.Contracts.EnterTextRequest
import pl.leancode.patrol.contracts.Contracts.GetNativeUITreeRequest
import pl.leancode.patrol.contracts.Contracts.GetNativeUITreeRespone
import pl.leancode.patrol.contracts.Contracts.GetNativeViewsRequest
import pl.leancode.patrol.contracts.Contracts.GetNativeViewsResponse
import pl.leancode.patrol.contracts.Contracts.GetNotificationsRequest
import pl.leancode.patrol.contracts.Contracts.GetNotificationsResponse
import pl.leancode.patrol.contracts.Contracts.HandlePermissionRequest
import pl.leancode.patrol.contracts.Contracts.GetNativeUITreeRespone
import pl.leancode.patrol.contracts.Contracts.GetNativeUITreeRequest
import pl.leancode.patrol.contracts.Contracts.HandlePermissionRequestCode
import pl.leancode.patrol.contracts.Contracts.OpenAppRequest
import pl.leancode.patrol.contracts.Contracts.OpenQuickSettingsRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ private fun getWindowRoots(uiDevice: UiDevice, uiAutomation: UiAutomation): Arra
}

// Support multi-window searches for API level 21 and up.
val apiLevelActual = (Build.VERSION.SDK_INT
+ if ("REL" == Build.VERSION.CODENAME) 0 else 1)
val apiLevelActual = (
Build.VERSION.SDK_INT +
if ("REL" == Build.VERSION.CODENAME) 0 else 1
)
if (apiLevelActual >= Build.VERSION_CODES.LOLLIPOP) {
for (window in uiAutomation.windows) {
val root = window.root
Expand Down Expand Up @@ -61,4 +63,4 @@ private fun fromUiAccessibilityNodeInfo(obj: AccessibilityNodeInfo): NativeView
applicationPackage = obj.packageName?.toString(),
children = children
)
}
}

0 comments on commit 13c57c0

Please sign in to comment.