From 358e66e61201176c1c422bd4283976b4b1c282ba Mon Sep 17 00:00:00 2001 From: krille-chan Date: Sun, 19 Nov 2023 14:27:19 +0100 Subject: [PATCH] chore: Do not ship unused emoji font for android and iOS --- .github/workflows/main_deploy.yaml | 4 ++++ .github/workflows/release.yaml | 8 ++++++++ scripts/release-ios-testflight.sh | 2 ++ 3 files changed, 14 insertions(+) diff --git a/.github/workflows/main_deploy.yaml b/.github/workflows/main_deploy.yaml index a29d49a92..f6ad95bc8 100644 --- a/.github/workflows/main_deploy.yaml +++ b/.github/workflows/main_deploy.yaml @@ -60,6 +60,10 @@ jobs: run: gem install fastlane -NV - name: Apply Google Services Patch run: git apply ./scripts/enable-android-google-services.patch + - name: Remove Emoji Font + run: | + rm -rf fonts/NotoEmoji + yq -i 'del( .flutter.fonts[] | select(.family == "NotoEmoji") )' pubspec.yaml - run: flutter pub get - name: Prepare Android Release Build env: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5f950ea01..3c87c2c94 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -57,6 +57,10 @@ jobs: cache: true - name: Apply Google Services Patch run: git apply ./scripts/enable-android-google-services.patch + - name: Remove Emoji Font + run: | + rm -rf fonts/NotoEmoji + yq -i 'del( .flutter.fonts[] | select(.family == "NotoEmoji") )' pubspec.yaml - run: flutter pub get - name: Prepare Android Release Build env: @@ -120,6 +124,10 @@ jobs: run: gem install fastlane -NV - name: Apply Google Services Patch run: git apply ./scripts/enable-android-google-services.patch + - name: Remove Emoji Font + run: | + rm -rf fonts/NotoEmoji + yq -i 'del( .flutter.fonts[] | select(.family == "NotoEmoji") )' pubspec.yaml - run: flutter pub get - name: Prepare Android Release Build env: diff --git a/scripts/release-ios-testflight.sh b/scripts/release-ios-testflight.sh index a30d3e5a4..e3f1a109a 100755 --- a/scripts/release-ios-testflight.sh +++ b/scripts/release-ios-testflight.sh @@ -1,5 +1,7 @@ #!/bin/sh -ve git apply ./scripts/enable-android-google-services.patch +rm -rf fonts/NotoEmoji +yq -i 'del( .flutter.fonts[] | select(.family == "NotoEmoji") )' pubspec.yaml flutter clean flutter pub get cd ios