From f094a05277b2b84afa4c1ada861549b3a56c8e02 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Sat, 19 Jul 2025 11:25:59 +0200 Subject: [PATCH] build: Make ios debug job run without secrets --- .github/workflows/integrate.yaml | 6 +++-- ios/Runner/GoogleService-Info.plist | 34 +++++++++++++++++++++++++++++ scripts/release-ios-testflight.sh | 1 - 3 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 ios/Runner/GoogleService-Info.plist diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index 31464b8d5..1f06e5059 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -96,7 +96,9 @@ jobs: xcode-version: latest - run: brew install sqlcipher - uses: moonrepo/setup-rust@v1 - - name: Add Firebase Key - run: echo '${{secrets.GOOGLE_SERVICES_INFO_PLIST}}' | base64 -d > ios/Runner/GoogleService-Info.plist + - name: Add Firebase Messaging + run: | + flutter pub add fcm_shared_isolate:0.1.0 + sed -i '' 's,//,,g' lib/utils/background_push.dart - run: flutter pub get - run: flutter build ios --no-codesign diff --git a/ios/Runner/GoogleService-Info.plist b/ios/Runner/GoogleService-Info.plist new file mode 100644 index 000000000..917ea3b2d --- /dev/null +++ b/ios/Runner/GoogleService-Info.plist @@ -0,0 +1,34 @@ + + + + + CLIENT_ID + 865731724731-ofdr7e6m04murgb1bvchlj9oaos0q5i3.apps.googleusercontent.com + REVERSED_CLIENT_ID + com.googleusercontent.apps.865731724731-ofdr7e6m04murgb1bvchlj9oaos0q5i3 + API_KEY + AIzaSyA8ZUBcuny0HjPwF2Q2fvDyQTC5dG2VHlE + GCM_SENDER_ID + 865731724731 + PLIST_VERSION + 1 + BUNDLE_ID + im.fluffychat.app + PROJECT_ID + fluffychat-ef3e8 + STORAGE_BUCKET + fluffychat-ef3e8.appspot.com + IS_ADS_ENABLED + + IS_ANALYTICS_ENABLED + + IS_APPINVITE_ENABLED + + IS_GCM_ENABLED + + IS_SIGNIN_ENABLED + + GOOGLE_APP_ID + 1:865731724731:ios:79fd983ce46cb40c64309e + + \ No newline at end of file diff --git a/scripts/release-ios-testflight.sh b/scripts/release-ios-testflight.sh index f34f6c826..14e6ea08d 100755 --- a/scripts/release-ios-testflight.sh +++ b/scripts/release-ios-testflight.sh @@ -1,7 +1,6 @@ #!/bin/sh -ve flutter pub add fcm_shared_isolate:0.1.0 sed -i '' 's,//,,g' lib/utils/background_push.dart -yq eval '.dependencies.fcm_shared_isolate = "0.1.0"' -i pubspec.yaml # Workaround: 0.2.0 does not work on iOS flutter clean flutter pub get cd ios