틴더 앱을 만들기위해서 firebase의 인증기능과 real time database 기능을 이용할 수 있도록 설정해주었습니다.
apply plugin: 'com.google.gms.google-services'
dependencies {
implementation platform('com.google.firebase:firebase-bom:29.0.0')
implementation 'com.google.firebase:firebase-analytics-ktx'
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.3"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.0"
classpath 'com.google.gms:google-services:4.3.10'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
gradle을 수정해준 뒤 firebase에서 json 파일을 받아와 앱에 추가해주었습니다.
{
"project_info": {
"project_number": "454022170065",
"firebase_url": "https://tinder-demo-bafef-default-rtdb.firebaseio.com",
"project_id": "tinder-demo-bafef",
"storage_bucket": "tinder-demo-bafef.appspot.com"
},"client": [
{
"client_info": {
"mobilesdk_app_id": "1:454022170065:android:9dfa8d48a41f49f8f4ccf0",
"android_client_info": {
"package_name": "com.han.tinder_demo"
}
},
"oauth_client": [
{
"client_id": "454022170065-s5sa9q27r6f22a9h03us6kc9k6f3qcvb.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyDZ1OLsPivKcoNFiSEtPUzg72QXTH_qzp8"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "454022170065-s5sa9q27r6f22a9h03us6kc9k6f3qcvb.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
패스트캠퍼스 바로가기 -> https://bit.ly/3FVdhDa
본 포스팅은 패스트캠퍼스 환급 챌린지 참여를 위해 작성되었습니다.
'패스트캠퍼스 챌린지' 카테고리의 다른 글
[패스트캠퍼스 캠퍼스 27일차] Android tinder Facebook Login (0) | 2021.11.27 |
---|---|
[패스트캠퍼스 챌린지 26일차] Android Tinder 앱 UI 및 로그인 기능 (0) | 2021.11.26 |
[패스트캠퍼스 챌린지 24일차] Android book review 마무리 (0) | 2021.11.24 |
[패스트캠퍼스 챌린지 23일차] Android book review (0) | 2021.11.23 |
[패스트캠퍼스챌린지 22일차] Android book review (0) | 2021.11.22 |