본문 바로가기

전체 글37

Android SHA-1 간단한 추출법 android와 firebase 연동 시 SHA-1를 등록해줘야 한다. (선택이긴 하지만 fcm 테스트시, 다이나믹링크나 핸드폰인증 사용 시 필요해서 그냥 필수로 해놓는 편임.) SHA-1 키가 필요할 때 마다 Android Studio를 켜서 찾는 방법으로 진행했었는데, 이번에 FlutterFire 문서를 보다가 더 편한 방법을 찾아서 적어둠. 프로젝트에 .android 폴더의 상위폴더로 가서 cd android && ./gradlew siginingReport 명령어를 입력하면 완료. debugAndroidTest 칸에 있는 SHA-1 값을 쓰면 된다 출처 : https://firebase.flutter.dev/docs/installation/android/ Android Installation | .. 2021. 9. 1.
Custom Button으로 Drawer 여는법 https://www.youtube.com/watch?v=WRj86iHihgY Custom Drawer를 만드는 방법 해당 영상을 보다보면 Drawer를 다른 버튼에서 열어야 할 때 Scaffold.of(context).openDrawer(); 라는 메소드를 사용해서 열면 된다고 알려준다. import 'package:flutter/material.dart'; class TestPage extends StatelessWidget { const TestPage({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return Scaffold( drawer: Drawer(), body: SafeArea( child: Cen.. 2021. 8. 27.
WKWebView 관련 버전 문제 프로젝트 중 webview를 사용할 일이 생겼다. WKWebView를 적용했는데 WKWebView before ios 11.0 (NSCoding support was broken in previous versions) 에러 발생. => 빌드 시 버전을 ios11.0 보다 높게 설정하면 간단하게 해결 프로젝트 General 설정에 Deplyment Info에서 버전을 iOS 9 -> iOS 11.0으로 해줬다. ios를 처음 다루다보니 단순한 에러도 어렵게 느껴진다. 2021. 8. 26.
M1에서 Firebase 사용시 오류 현재 macbook air M1칩을 사용중인 나에게 Firebase 관련 오류가 발생했다. [!] CocoaPods could not find compatible versions for pod "Firebase/Firestore": In Podfile: cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 2.5.0, which depends on Firebase/Firestore (= 8.5.0) None of your spec sources contain a spec satisfying the dependency: `Firebase/Firestore (= 8.5.0)`. You have either: * out-o.. 2021. 8. 22.