Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- OutlinedButton
- ROOM
- textview
- 뷰바인딩
- RealtimeDB
- 안드로이드스튜디오
- ArrayList
- 안드로이드
- button
- MaterialButton
- lifecyclescope
- ButtonWithButton
- Activity
- Kotlin
- nav_graph
- EditText
- FRAGMENT
- firebasefunctions
- 코틀린
- 팝업액티비티
- 랜덤ID
- firebase
- androidstudio
- 밑줄
- 안드로이드 스튜디오
- Imageview
- ViewModel
- Android
- BottomSheetDialog
- Dialog
Archives
- Today
- Total
안드로이드 앱 개발
Firebase function 관련 본문
1. 안드로이드 스튜디오 내에서 firebase functions와 연결하기
Tools -> Firebase -> functions 설치와 연결 고고
-> 안드로이드 앱에서 직접 firebase에 요청하고 받아오는 경우인데
(잘 안쓴다고함, 대부분 retrofit을 사용)
2. 구글에 retrofit 검색
Download에 가서 implementation을 넣어줘야하는데
한 번에 template으로 아래 항목들 복/붙
// retrofit
def retrofit_version = "2.9.0"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit_version"
implementation "com.squareup.retrofit2:converter-scalars:$retrofit_version"
// okHttp
def ok_http_version = "4.5.0"
implementation "com.squareup.okhttp3:okhttp:$ok_http_version"
implementation "com.squareup.okhttp3:logging-interceptor:$ok_http_version"
//gson
implementation 'com.google.code.gson:gson:2.8.6'
'Firebase > Firebase functions' 카테고리의 다른 글
CallbackResponse class file을 만드는법 (0) | 2021.07.13 |
---|