1. プロジェクト作成
flutter create hogehoge
2. githubとプロジェクトを繋ぐ
- Create a new repository
-
…or push an existing repository from the command line
をコピー
git init
git add -A
git commit -m "first commit"
コピーしたやつを貼り付け
3. 不要なプラットフォームを削除
macos
, windows
などのフォルダをそのまま消してOK
4. launch.jsonファイルを作成(ボタンでデバッグを実行できるようにする)
デバッグメニューから launch.jsonファイルを作成
→ Dart & Flutter
5. firebaseのプロジェクトを作成(ターミナルから作成)
flutter pub add firebase_core
dart pub global activate flutterfire_cli
flutterfire configure
- create a new project からプロジェクト名を入力し、新規作成
6. firebaseの初期化
リファレンスを参照
7. iosビルド時間の改善
-
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '最新バージョン'
を追加 -
platform :ios, '16.0'
のコメントアウトを外して、適切なバージョンに cd ios
pod install
8. プロジェクトごとの設定
Auth, storege, firestoreなどの設定を行う
9. 使用するパッケージをpub add
する
念の為、再度pod install
を実行しておく