Update plugin com.android.application to v8.5.1 #1672
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Backward compatibility | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches-ignore: | |
- release/beta | |
- release/master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
test: | |
strategy: | |
matrix: | |
package: | |
- core | |
- enhanced | |
- fwfh_cached_network_image | |
- fwfh_chewie | |
- fwfh_just_audio | |
- fwfh_svg | |
- fwfh_url_launcher | |
- fwfh_webview | |
name: ${{ matrix.package }} | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
defaults: | |
run: | |
working-directory: packages/${{ matrix.package }} | |
env: | |
GOLDEN_SKIP: "yes" | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Update pubspec.yaml | |
run: | | |
set -e | |
sudo snap install yq | |
# delete all overrides and use pub.dev versions | |
yq e 'del(.dependency_overrides)' -i pubspec.yaml | |
# back up SDK constraint | |
_sdkVersion=$( yq e .environment.sdk pubspec.yaml ) | |
# replace: | |
# foo: ^1.0.0 | |
# bar: ^2.0.0-0 | |
# into: | |
# foo: 1.0.0 | |
# bar: ^2.0.0-0 (unchanged) | |
sed -i'' -e 's#^\( [^:]*\): ^\([0-9.]*\)$#\1: \2#' pubspec.yaml | |
# replace: | |
# foo: ">=1.0.0" | |
# bar: ">=2.0.0 <4.0.0" | |
# yolo: ">=3.0.0-0" | |
# into: | |
# foo: 1.0.0 | |
# bar: 2.0.0 | |
# yolo: ">=3.0.0-0" (unchanged) | |
sed -i'' -e 's#^\( [^:]*\): ">=\([0-9.]*\)\( <.*\)\{0,1\}"$#\1: \2#' pubspec.yaml | |
# restore SDK constraint | |
yq e ".environment.sdk = \"${_sdkVersion}\"" -i pubspec.yaml | |
# extract Flutter version to install later | |
_flutterVersion=$( yq e '.environment.flutter' pubspec.yaml | sed -e 's/^>=//' | sed -e 's/-0$//' ) | |
echo "FLUTTER_VERSION=${_flutterVersion}" >> $GITHUB_ENV | |
# output for debugging | |
cat pubspec.yaml | |
- name: Setup Flutter | |
uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 # v2.16.0 | |
with: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
- run: flutter test | |
core: | |
strategy: | |
matrix: | |
channel: | |
- beta | |
- master | |
- stable | |
# In case one of these fails, create a new PR against the `release/*` branch | |
name: core@${{ matrix.channel }} | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
defaults: | |
run: | |
working-directory: packages/core | |
env: | |
GOLDEN_SKIP: "yes" | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Update pubspec.yaml | |
run: | | |
set -e | |
sudo snap install yq | |
# delete all overrides and use pub.dev versions | |
yq e 'del(.dependency_overrides)' -i pubspec.yaml | |
# output for debugging | |
cat pubspec.yaml | |
- name: Setup Flutter | |
uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 # v2.16.0 | |
with: | |
channel: ${{ matrix.channel }} | |
- run: flutter test | |
html_flex: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Verify hashes | |
run: | | |
set -e | |
_scripts=$( cat packages/core/lib/src/widgets/html_flex.dart | head -n 22 | tail -n 21 ) | |
bash -c "$_scripts" |