- 플러터로 구현한 퀴즈 어플리케이션
- 2023-09-20 ver1 배포(파이어베이스 호스팅)
dart pub global activate flutterfire_cli
firebase login
flutterfire configure --project=flutter-quiz-3e78b
flutter pub add firebase_core
flutter pub add firebase_auth
firebase init
Hosting: Configure files for Firebase Hosting and (optionally) set up GitHub Action deploys
선택Use an exising project
선택- 파이어베이스에 만들어둔 프로젝트 선택
- What do you want to use as your public directory? public
- Configure as a single-page app (rewrite all urls to /index.html)? Yes
- Set up automatic builds and deploys with GitHub? No
firebase.json
에서"public": "public"
을"public": "build/web"
으로 수정flutter build web
firebase deploy
flutter build apk --release --target-platform=android-arm64
build/app/outputs/apk/relase/app-relase.apk
- project / android / app / build.gradle 파일을 찾는다
- 파일에서 defaultConfig 항목을 찾는다. multiDexEnabled true 추가
defaultConfig {
versionName flutterVersionName
multiDexEnabled true
}