๐Ÿ”ฅ Firebase Android ์ถœ์‹œ ์ •๋ณด

11190 ๋‹จ์–ด android
Firebase ์ฝ˜์†”, ๊ธฐํƒ€ Firebase ํ”Œ๋žซํผ ๋ฐ ๊ด€๋ จ SDK์˜ ์ถœ์‹œ ์ •๋ณด๋ฅผ ๊ฒ€ํ† ํ•˜๋ ค๋ฉด Firebase ์ถœ์‹œ ์ •๋ณด๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”.

์•ฑ์— ์ด๋Ÿฌํ•œ SDK๋ฅผ ์„ค์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ• ์•Œ์•„๋ณด๊ธฐ: Android ํ”„๋กœ์ ํŠธ์— Firebase ์ถ”๊ฐ€

์ตœ์‹  SDK ๋ฒ„์ „

build.gradle

buildscript {

  repositories {
    // Check that you have the following line (if not, add it):
    google()  // Google's Maven repository
  }

  dependencies {
    // ...

    // Add the following line:
    classpath 'com.google.gms:google-services:4.3.3'  // Google Services plugin
  }
}

allprojects {
  // ...

  repositories {
    // Check that you have the following line (if not, add it):
    google()  // Google's Maven repository
    // ...
  }
}


์•ฑ/๋นŒ๋“œ.gradle

apply plugin: 'com.android.application'
// Add the following line:
apply plugin: 'com.google.gms.google-services'  // Google Services plugin

android {
  // ...
}


์•ฑ/๋นŒ๋“œ.gradle

๋ถ„์„ ์‚ฌ์šฉ

dependencies {
  // ...

  // Add the Firebase SDK for Google Analytics
  implementation 'com.google.firebase:firebase-analytics:17.4.0'

  // Add the dependencies for any other Firebase products you want to use in your app
  // For example, to also use Firebase Authentication
  implementation 'com.google.firebase:firebase-auth:19.3.1'

  // Getting a "Could not find" error? Make sure that you've added
  // Google's Maven repository to your root-level build.gradle file
}


๋ถ„์„์ด ํ™œ์„ฑํ™”๋˜์ง€ ์•Š์Œ

dependencies {
  // ...

  // Add the dependencies for the Firebase products you want to use in your app
  // For example, to use Firebase Authentication
  implementation 'com.google.firebase:firebase-auth:19.3.1'

  // Getting a "Could not find" error? Make sure that you've added
  // Google's Maven repository to your root-level build.gradle file
}


์ž๋ฐ” ์•ˆ๋“œ๋กœ์ด๋“œ

์„œ๋น„์Šค ๋˜๋Š” ์ œํ’ˆ

AdMob

com.google.android.gms:play-services-ads:19.1.0 


ํ•ด์„ํ•™

com.google.firebase:firebase-analytics:17.4.0


์•ฑ ์ธ๋ฑ์‹ฑ

com.google.firebase:firebase-appindexing:19.1.0


์ž…์ฆ

com.google.firebase:firebase-auth:19.3.1


ํด๋ผ์šฐ๋“œ ํŒŒ์ด์–ด์Šคํ† ์–ด

com.google.firebase:firebase-firestore:21.4.3


Firebase ํด๋ผ์ด์–ธํŠธ SDK์šฉ Cloud Functions

com.google.firebase:firebase-functions:19.0.2


ํด๋ผ์šฐ๋“œ ๋ฉ”์‹œ์ง•

com.google.firebase:firebase-messaging:20.1.6


ํด๋ผ์šฐ๋“œ ์Šคํ† ๋ฆฌ์ง€

com.google.firebase:firebase-storage:19.1.1


Crashlytics

com.crashlytics.sdk.android:crashlytics:2.10.1


๋˜๋Š” Firebase Crashlytics SDK(๋ฒ ํƒ€)๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด ๋‹ค์Œ ์•ˆ๋‚ด๋ฅผ ๋”ฐ๋ฅด์„ธ์š”.

com.google.firebase:firebase-crashlytics:17.0.0


๋™์  ๋งํฌ

com.google.firebase:firebase-dynamic-links:19.1.0


์ธ์•ฑ ๋ฉ”์‹œ์ง€

com.google.firebase:firebase-inappmessaging:19.0.6


์ธ์•ฑ ๋ฉ”์‹œ์ง€ ํ‘œ์‹œ

com.google.firebase:firebase-inappmessaging-display:19.0.6


์„ฑ๋Šฅ ๋ชจ๋‹ˆํ„ฐ๋ง

com.google.firebase:firebase-perf:19.0.7


์‹ค์‹œ๊ฐ„ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค

com.google.firebase:firebase-database:19.3.0


์›๊ฒฉ ๊ตฌ์„ฑ

com.google.firebase:firebase-config:19.1.4


Firebase BOM(์ž์žฌ ๋ช…์„ธ์„œ)

com.google.firebase:firebase-bom:25.3.0


์ตœ์‹  Firebase BoM ๋ฒ„์ „์—๋Š” BoM ๋ฆด๋ฆฌ์Šค์—์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ๊ฐ Firebase Android ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ์ตœ์‹  ๋ฒ„์ „์ด ํฌํ•จ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ด์ „ BoM ๋ฒ„์ „์— ๋งคํ•‘๋œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋ฒ„์ „์˜ ๊ฒฝ์šฐ ํ•ด๋‹น ๋ฒ„์ „์˜ ๋ฆด๋ฆฌ์Šค ์ •๋ณด๋ฅผ ๊ฒ€ํ† ํ•˜์‹ญ์‹œ์˜ค.

Google Play ์„œ๋น„์Šค ํ”Œ๋Ÿฌ๊ทธ์ธ

com.google.gms:google-services:4.3.3

์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ