Firebase - person-in-hangang/HanRiver GitHub Wiki

Firebase

Firebase is a mobile application development platform owned by Google. It stores data in JSON form in a fast and easy NoSQL cloud database and synchronizes it to the client in real time. It also supports Real Timestream Protocol (RTSP) databases, unlike other databases. And Firebase provides a server administrator page, or console, to increase convenience at the app server management level.

Add Firebase to Android project

Step 1. Create a Firebase project

Make new project in Firebase Console

Step 2. Register App with Firebase

  1. Click the Android icon or Add app to launch the setup workflow
  1. Enter android package name, app nickname and debug signing certificate SHA-1

Step 3. Add a Firebase configuration File

  1. Download google-services.json file

  2. Move the configuration file to the app's module directory (app-level)

  3. Set build.gradle(Project)

buildscript {
    
    repositories {
        google()
        jcenter()

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.6.3'
        classpath 'com.google.gms:google-services:4.3.3'


        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        
    }
}
  1. Set build.gradle(App)
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'  // Google Service Plugin

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.3"

Step 4. Add Firebase SDKs to app

  1. Declare the dependenciesfor the Firebase products in app (build.gradle(App))
dependencies {
    ...

    implementation 'com.google.firebase:firebase-database:19.4.0'
    ...
}
  1. Sync the app

This explanation is referenced.