패스트캠퍼스 챌린지

[패스트캠퍼스 챌린지 25일차] Android tinder app 설정

틴더 앱을 만들기위해서 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

본 포스팅은 패스트캠퍼스 환급 챌린지 참여를 위해 작성되었습니다.