Firebase 요금 정책 : https://firebase.google.com/pricing?hl=ko
이번에 사용할 서비스는 로그인 기능, 데이터베이스 기능인 Authentication, Firestore이다.
파이어베이스 홈페이지 : https://console.firebase.google.com/u/0/?hl=ko
Flutter 앱개발 - 5회차 pdf를 확인하자..
[Firesotre 관련 문서]( ChangeNotifierProvider(create: (context) => BucketService()),)
Firestore Adding Documents 관련 문서
//Ex)
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /bucket/{document} {
// document의 uid와 일치하는 유저만 RUD 가능
allow read, update, delete: if request.auth != null && request.auth.uid == resource.data.uid;
// Create의 경우, 로그인 되어있으면 가능
allow create: if request.auth != null;
}
}
}
이번 프로젝트를 실행하며 에러가 발생하여 한번 정리한다.
Error 내용 : M1에서의 Flutter 에러..
Error output from CocoaPods:
↳
Searching for inspections failed: undefined method `map' for nil:NilClass
-- 01. ffi를 설치한다
sudo arch -x86_64 gem install ffi
2. Flutter 내부의 ios위치로 이동, pod를 Install한다.
arch -x86_64 pod install