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
- Click the Android icon or Add app to launch the setup workflow
- Enter android package name, app nickname and debug signing certificate SHA-1
Step 3. Add a Firebase configuration File
-
Download google-services.json file
-
Move the configuration file to the app's module directory (app-level)
-
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()
}
}
- 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
- Declare the dependenciesfor the Firebase products in app (build.gradle(App))
dependencies {
...
implementation 'com.google.firebase:firebase-database:19.4.0'
...
}
- Sync the app
This explanation is referenced.