Skip to content

Commit

Permalink
patches: remove dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed Sep 7, 2024
1 parent 4b05af4 commit d3d0139
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/android-play-store.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
restore-keys: |
${{ runner.OS }}-ricochlime-ubuntu-
- name: Remove simulator dependency
run: ./patches/remove_simulator_dependency.sh
- name: Remove dev dependencies
run: ./patches/remove_dev_dependencies.sh

- name: Setup Flutter
uses: subosito/flutter-action@v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
restore-keys: |
${{ runner.OS }}-ricochlime-ubuntu-
- name: Remove simulator dependency
run: ./patches/remove_simulator_dependency.sh
- name: Remove dev dependencies
run: ./patches/remove_dev_dependencies.sh

- name: Install Flutter
uses: subosito/flutter-action@v2
Expand Down Expand Up @@ -91,8 +91,8 @@ jobs:
run: |
./patches/foss.sh
- name: Remove simulator dependency
run: ./patches/remove_simulator_dependency.sh
- name: Remove dev dependencies
run: ./patches/remove_dev_dependencies.sh

- name: Install Flutter
uses: subosito/flutter-action@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
restore-keys: |
${{ runner.OS }}-ricochlime-macos-
- name: Remove simulator dependency
run: ./patches/remove_simulator_dependency.sh
- name: Remove dev dependencies
run: ./patches/remove_dev_dependencies.sh

- name: Install Flutter
uses: subosito/flutter-action@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
restore-keys: |
${{ runner.OS }}-ricochlime-ubuntu-
- name: Remove simulator dependency
run: ./patches/remove_simulator_dependency.sh
- name: Remove dev dependencies
run: ./patches/remove_dev_dependencies.sh

- name: Setup Flutter
uses: subosito/flutter-action@v2
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
chown -R nonroot .
echo Removing simulator dependency
./patches/remove_simulator_dependency.sh
./patches/remove_dev_dependencies.sh
echo Building
sudo -u nonroot /opt/flutter/bin/flutter build linux --target-platform linux-arm64
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
restore-keys: |
${{ runner.OS }}-ricochlime-macos-
- name: Remove simulator dependency
run: ./patches/remove_simulator_dependency.sh
- name: Remove dev dependencies
run: ./patches/remove_dev_dependencies.sh

- name: Install Flutter
uses: subosito/flutter-action@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
restore-keys: |
${{ runner.OS }}-ricochlime-ubuntu-
- name: Remove simulator dependency
run: ./patches/remove_simulator_dependency.sh
- name: Remove dev dependencies
run: ./patches/remove_dev_dependencies.sh

- name: Install Flutter
uses: subosito/flutter-action@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ jobs:
restore-keys: |
${{ runner.OS }}-ricochlime-windows-
- name: Remove simulator dependency
- name: Remove dev dependencies
shell: bash
run: ./patches/remove_simulator_dependency.sh
run: ./patches/remove_dev_dependencies.sh

- name: Setup Flutter
uses: subosito/flutter-action@v2
Expand Down
10 changes: 10 additions & 0 deletions patches/remove_dev_dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

DEPS=(simulator golden_screenshot)
for dep in "${DEPS[@]}"; do
echo "Removing $dep from pubspec.yaml"
sed -i -e "/$dep/d" pubspec.yaml
done

echo Deleting the \`main_simulator.dart\` entry point
rm lib/main_simulator.dart
7 changes: 0 additions & 7 deletions patches/remove_simulator_dependency.sh

This file was deleted.

0 comments on commit d3d0139

Please sign in to comment.