Skip to content

Commit 2e46538

Browse files
authored
chore: Firebase �환경 세팅 (#3)
* chore: Firebase 라이브러리 추가 * chore: Firebase Realtime Database 라이브러리 제거 * chore: google-services.json 파일 .gitignore에 추가
1 parent df451b1 commit 2e46538

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414
.externalNativeBuild
1515
.cxx
1616
local.properties
17+
/app/google-services.json

app/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
plugins {
22
id 'com.android.application'
33
id 'org.jetbrains.kotlin.android'
4+
id 'com.google.gms.google-services'
5+
id 'com.google.firebase.crashlytics'
46
}
57

68
def localProperties = new Properties()
@@ -56,4 +58,12 @@ dependencies {
5658
exclude group: 'com.android.support'
5759
}
5860
implementation 'com.google.android.gms:play-services-location:16.0.0'
61+
62+
// Firebase
63+
implementation platform('com.google.firebase:firebase-bom:31.3.0')
64+
implementation 'com.google.firebase:firebase-analytics-ktx'
65+
implementation 'com.google.firebase:firebase-firestore-ktx'
66+
implementation 'com.google.firebase:firebase-messaging-ktx'
67+
implementation 'com.google.firebase:firebase-crashlytics-ktx'
68+
implementation 'com.google.firebase:firebase-config-ktx'
5969
}

build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
buildscript {
3+
repositories {
4+
// Make sure that you have the following two repositories
5+
google() // Google's Maven repository
6+
7+
mavenCentral() // Maven Central repository
8+
9+
}
10+
dependencies {
11+
// Add the dependency for the Google services Gradle plugin
12+
classpath 'com.google.gms:google-services:4.3.15'
13+
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.4'
14+
}
15+
}
16+
217
plugins {
318
id 'com.android.application' version '7.4.2' apply false
419
id 'com.android.library' version '7.4.2' apply false

0 commit comments

Comments
 (0)