Skip to content

Commit

Permalink
Merge branch 'main' into fix-ios-worker
Browse files Browse the repository at this point in the history
  • Loading branch information
ABausG authored Jul 10, 2024
2 parents effc06b + 90589e8 commit 97a6f0b
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 3 deletions.
98 changes: 98 additions & 0 deletions .github/workflows/flutter-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: Build Flutter Beta

on:
push:
branches:
- flutter-beta
pull_request:
branches:
- flutter-beta

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
quality:
name: Quality Checks
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: subosito/flutter-action@v1
with:
channel: beta
- name: Get Packages
run: flutter pub get
- name: Analyze
run: flutter analyze
- name: Format
run: dart format . --set-exit-if-changed
- name: Publishability
run: flutter pub publish --dry-run
- name: Test
run: flutter test --coverage
- name: Archieve Golden Failures
if: failure()
uses: actions/upload-artifact@v3
with:
name: Golden failures
retention-days: 2
path: |
**/test/**/failures/**/*.*
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- uses: VeryGoodOpenSource/[email protected]

android:
name: Android Integration Tests
needs: quality
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: beta
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
- name: Run Android Integration Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
working-directory: example
script: flutter test integration_test/android_test.dart -d emulator-5554

# iOS Test based on https://medium.com/flutter-community/run-flutter-driver-tests-on-github-actions-13c639c7e4ab
# by @kate_sheremet
ios:
name: iOS Integration Tests
needs: quality
strategy:
matrix:
device:
- "iPhone 14"
fail-fast: false
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest
- name: Download iOS 17
run: xcodebuild -downloadPlatform ios
- uses: subosito/flutter-action@v1
with:
channel: beta
- uses: futureware-tech/simulator-action@v1
id: simulator
with:
model: ${{ matrix.device }}
- name: "Run iOS integration tests"
run: flutter test integration_test/ios_test.dart -d ${{steps.simulator.outputs.udid}}
working-directory: example
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- main
- dev
pull_request:
branches:
- main
- dev

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.6.0
* Require Flutter 3.20+ due to changes in `ViewConfiguration`

## 0.5.0
**Breaking Changes**
* The package now uses a library pattern so you should only import `'package:home_widget/home_widget.dart'`
Expand Down
2 changes: 1 addition & 1 deletion lib/src/home_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class HomeWidget {
child: repaintBoundary,
),
configuration: ViewConfiguration(
size: logicalSize,
logicalConstraints: BoxConstraints.tight(logicalSize),
devicePixelRatio: 1.0,
),
);
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: home_widget
description: A plugin to provide a common interface for creating HomeScreen Widgets for Android and iOS.
version: 0.5.0
version: 0.6.0
repository: https://github.com/ABausG/home_widget

environment:
sdk: '>=2.12.0 <4.0.0'
flutter: ">=1.17.0"
flutter: '>=3.20.0-1.2.pre'

dependencies:
flutter:
Expand Down

0 comments on commit 97a6f0b

Please sign in to comment.