Skip to content

未使用になった Firebase 関連コードと設定を撤去 - #6247

Merged
TinyKitten merged 1 commit into
devfrom
chore/remove-firebase
Jun 16, 2026
Merged

TinyKitten merged 1 commit into
devfrom
chore/remove-firebase

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Jun 16, 2026 •

Copy link
Copy Markdown
Member

概要

Cloudflare 全面移行により Firebase は使用しなくなったため、各所に残っていた Firebase 関連のコード・設定を撤去します。AppClip ターゲットで #import <Firebase.h> が見つからずビルドが失敗していた問題も解消します。

変更の種類

  • バグ修正
  • 新機能
  • リファクタリング
  • ドキュメント
  • CI/CD
  • その他

変更内容

  • iOS ネイティブから Firebase 初期化を撤去
    • ios/AppDelegate.swift: import Firebase と FirebaseApp.configure() を削除
    • ios/CanaryAppClip/AppDelegate.m / ios/ProdAppClip/AppDelegate.m: #import <Firebase.h> と [FIRApp configure] を削除(ビルドエラーの直接原因)
  • ios/TrainLCD.xcodeproj/project.pbxproj から GoogleService-Info.plist の参照を全撤去(実ファイルは削除済みで宙に浮いた参照になっていた)
  • EAS ワークフロー(.eas/workflows/create-production-builds.yml / create-development-builds.yml)から google-services.json・GoogleService-Info.plist のデコードステップを削除
  • .gitignore の # Firebase ブロックを削除

CocoaPods 生成の Podfile.lock / [CP] Copy Pods Resources 内 Firebase エントリは @react-native-firebase/* が依存から外れているため、Mac/CI で pod install を実行すれば自動で再生成・除去される。

テスト

JS(src/**)への変更がないため、npm run lint / npm test / npm run typecheck は省略。

  • npm run lint が通ること
  • npm test が通ること
  • npm run typecheck が通ること

関連Issue

スクリーンショット(任意)

Summary by CodeRabbit

Chores

  • Firebase統合をSentry統合に置き換えました。EASビルドワークフロー、iOSプロジェクト設定、およびアプリケーション初期化処理からFirebase関連の処理を削除し、Sentryのプロパティファイル処理に統一しました。

@TinyKitten TinyKitten self-assigned this Jun 16, 2026
@github-actions github-actions Bot added the ios label Jun 16, 2026
@coderabbitai

coderabbitai Bot commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 952cea2f-e254-4269-8f19-68653c8a2336

📥 Commits

Reviewing files that changed from the base of the PR and between e62cc89 and 998df8a.

📒 Files selected for processing (7)
  • .eas/workflows/create-development-builds.yml
  • .eas/workflows/create-production-builds.yml
  • .gitignore
  • ios/AppDelegate.swift
  • ios/CanaryAppClip/AppDelegate.m
  • ios/ProdAppClip/AppDelegate.m
  • ios/TrainLCD.xcodeproj/project.pbxproj
💤 Files with no reviewable changes (7)
  • .gitignore
  • .eas/workflows/create-development-builds.yml
  • ios/CanaryAppClip/AppDelegate.m
  • ios/AppDelegate.swift
  • ios/ProdAppClip/AppDelegate.m
  • ios/TrainLCD.xcodeproj/project.pbxproj
  • .eas/workflows/create-production-builds.yml

📝 Walkthrough

Walkthrough

iOSのAppDelegate(メインアプリ・CanaryAppClip・ProdAppClip)からFirebaseのimportと初期化呼び出しを削除し、XcodeプロジェクトからGoogleService-Info.plistのビルド参照を除去し、EAS CIワークフローのGoogle設定ファイル復号ステップを削除し、.gitignoreのFirebase関連パターンを削除する。

Changes

Firebase完全削除

Layer / File(s) Summary
iOSネイティブコードからFirebase初期化を削除
ios/AppDelegate.swift, ios/CanaryAppClip/AppDelegate.m, ios/ProdAppClip/AppDelegate.m
3つのAppDelegateファイルからFirebaseのimport文とFIRApp configure/FirebaseApp.configure()の呼び出しをそれぞれ削除する。
XcodeプロジェクトからGoogleService-Info.plist参照を削除
ios/TrainLCD.xcodeproj/project.pbxproj
PBXBuildFile・PBXFileReference・PBXGroup・PBXResourcesBuildPhaseの各セクションからDev/Prod両スキームのGoogleService-Info.plistエントリを削除し、リソースとしてバンドルされないようにする。
EAS CIワークフローと.gitignoreのFirebase設定を削除
.eas/workflows/create-development-builds.yml, .eas/workflows/create-production-builds.yml, .gitignore
developmentおよびproductionビルドワークフローからAndroid/iOSのGoogle設定ファイルBase64復号ステップを削除し、.gitignoreのFirebase関連無視パターンブロックを削除する。

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 Firebaseよ、さようなら
plistもjsonも消えていく
CIのステップも整理され
ウサギの足跡、すっきりと
新しい朝に跳ねていくよ 🌸

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed PRのタイトルは、変更内容の主要な部分である未使用になったFirebase関連コードと設定の撤去を正確かつ簡潔に要約している。
Description check ✅ Passed PR説明は、変更の種類・変更内容・テストについて具体的に記載されており、テンプレートの主要なセクションが適切に埋められている。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/remove-firebase

Comment @coderabbitai help to get the list of available commands and usage tips.

@TinyKitten
TinyKitten merged commit cac6e07 into dev Jun 16, 2026
4 checks passed
@TinyKitten
TinyKitten deleted the chore/remove-firebase branch June 16, 2026 22:12
@TinyKitten TinyKitten mentioned this pull request Jun 16, 2026
6 of 9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant