Skip to content

Commit 368df63

Browse files
authored
Merge pull request #51 from projects200/feat/monitoring-49
Feat/monitoring 49
2 parents e5624e9 + 77bc031 commit 368df63

File tree

8 files changed

+174
-5
lines changed

8 files changed

+174
-5
lines changed

.gitignore

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
### Android ###
12
# Gradle files
23
.gradle/
34
build/
@@ -32,6 +33,154 @@ google-services.json
3233
# Android Profiling
3334
*.hprof
3435

36+
### Android Patch ###
37+
gen-external-apklibs
38+
39+
# Replacement of .externalNativeBuild directories introduced
40+
# with Android Studio 3.5.
41+
42+
### Kotlin ###
43+
# Compiled class file
44+
*.class
45+
46+
# Log file
47+
48+
# BlueJ files
49+
*.ctxt
50+
51+
# Mobile Tools for Java (J2ME)
52+
.mtj.tmp/
53+
54+
# Package Files #
55+
*.jar
56+
*.war
57+
*.nar
58+
*.ear
59+
*.zip
60+
*.tar.gz
61+
*.rar
62+
63+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
64+
hs_err_pid*
65+
replay_pid*
66+
67+
### AndroidStudio ###
68+
# Covers files to be ignored for android development using Android Studio.
69+
70+
# Built application files
71+
*.ap_
72+
*.aab
73+
74+
# Files for the ART/Dalvik VM
75+
*.dex
76+
77+
# Java class files
78+
79+
# Generated files
80+
bin/
81+
gen/
82+
out/
83+
84+
# Gradle files
85+
.gradle
86+
87+
# Signing files
88+
.signing/
89+
90+
# Local configuration file (sdk path, etc)
91+
92+
# Proguard folder generated by Eclipse
93+
proguard/
94+
95+
# Log Files
96+
97+
# Android Studio
98+
/*/build/
99+
/*/local.properties
100+
/*/out
101+
/*/*/build
102+
/*/*/production
103+
.navigation/
104+
*.ipr
105+
*~
106+
*.swp
107+
108+
# Keystore files
109+
110+
# Google Services (e.g. APIs or Firebase)
111+
# google-services.json
112+
113+
# Android Patch
114+
115+
# External native build folder generated in Android Studio 2.2 and later
116+
.externalNativeBuild
117+
118+
# NDK
119+
obj/
120+
121+
# IntelliJ IDEA
122+
*.iws
123+
/out/
124+
125+
# User-specific configurations
126+
.idea/caches/
127+
.idea/libraries/
128+
.idea/shelf/
129+
.idea/workspace.xml
130+
.idea/tasks.xml
131+
.idea/.name
132+
.idea/compiler.xml
133+
.idea/copyright/profiles_settings.xml
134+
.idea/encodings.xml
135+
.idea/misc.xml
136+
.idea/modules.xml
137+
.idea/scopes/scope_settings.xml
138+
.idea/dictionaries
139+
.idea/vcs.xml
140+
.idea/jsLibraryMappings.xml
141+
.idea/datasources.xml
142+
.idea/dataSources.ids
143+
.idea/sqlDataSources.xml
144+
.idea/dynamic.xml
145+
.idea/uiDesigner.xml
146+
.idea/assetWizardSettings.xml
147+
.idea/gradle.xml
148+
.idea/jarRepositories.xml
149+
.idea/navEditor.xml
150+
151+
# Legacy Eclipse project files
152+
.classpath
153+
.project
154+
.cproject
155+
.settings/
156+
157+
# Mobile Tools for Java (J2ME)
158+
159+
# Package Files #
160+
161+
# virtual machine crash logs (Reference: http://www.java.com/en/download/help/error_hotspot.xml)
162+
163+
## Plugin-specific files:
164+
165+
# mpeltonen/sbt-idea plugin
166+
.idea_modules/
167+
168+
# JIRA plugin
169+
atlassian-ide-plugin.xml
170+
171+
# Mongo Explorer plugin
172+
.idea/mongoSettings.xml
173+
174+
# Crashlytics plugin (for Android Studio and IntelliJ)
175+
com_crashlytics_export_strings.xml
176+
crashlytics.properties
177+
crashlytics-build.properties
178+
fabric.properties
179+
180+
### AndroidStudio Patch ###
181+
182+
!/gradle/wrapper/gradle-wrapper.jar
183+
35184
# DS Store
36185
.DS_Store
37186
._.DS_Store

build-logic/convention/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies {
1717
compileOnly(libs.kotlin.gradle.plugin)
1818
compileOnly(libs.ksp.gradle.plugin)
1919
compileOnly(libs.hilt.gradle.plugin)
20+
implementation(libs.firebase.performance.plugin)
2021
}
2122

2223
gradlePlugin {

build-logic/convention/src/main/java/com/project200/convention/AndroidApplicationConventionPlugin.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ class AndroidApplicationConventionPlugin : Plugin<Project> {
1111
with(target) {
1212
pluginManager.apply(libs.plugin("android-application").get().pluginId)
1313
pluginManager.apply(libs.plugin("kotlin-android").get().pluginId)
14+
pluginManager.apply(libs.plugin("google-services").get().pluginId)
15+
pluginManager.apply(libs.plugin("firebase-performance").get().pluginId)
1416
pluginManager.apply("convention.android.hilt")
1517

1618
// Android 애플리케이션 공통 설정
@@ -33,7 +35,6 @@ class AndroidApplicationConventionPlugin : Plugin<Project> {
3335
)
3436
}
3537
debug {
36-
applicationIdSuffix = ".debug"
3738
isDebuggable = true
3839
}
3940
}
@@ -46,6 +47,10 @@ class AndroidApplicationConventionPlugin : Plugin<Project> {
4647
"implementation"(libs.library("androidx-core-ktx"))
4748
"implementation"(libs.library("timber"))
4849

50+
"implementation"(platform(libs.library("firebase-bom")))
51+
"implementation"(libs.library("firebase-analytics"))
52+
"implementation"(libs.library("firebase-performance"))
53+
4954
"testImplementation"(libs.library("junit"))
5055
"androidTestImplementation"(libs.library("androidx-test-ext-junit"))
5156
"androidTestImplementation"(libs.library("androidx-test-espresso-core"))

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ plugins {
66
alias(libs.plugins.hilt) apply false
77
alias(libs.plugins.ksp) apply false
88
alias(libs.plugins.navigation.safeargs) apply false
9+
alias(libs.plugins.google.services) apply false
910
}

common/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
android {
6-
namespace = "com.project200.myapp.common"
6+
namespace = "com.project200.undabang.common"
77

88
buildFeatures {
99
viewBinding = true

data/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
android {
7-
namespace = "com.project200.myapp.data"
7+
namespace = "com.project200.undabang.data"
88
}
99

1010
dependencies {

gradle/libs.versions.toml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ minSdk = "26"
1010
targetSdk = "34"
1111
versionCode = "1"
1212
versionName = "1.0"
13+
firebaseBom = "32.7.0"
14+
googleServicesPlugin = "4.4.2"
15+
firebasePerfPlugin = "1.4.2"
1316

1417
# AndroidX Core & UI (SDK 34 호환 버전으로 조정)
1518
androidxCore = "1.13.1"
@@ -60,7 +63,7 @@ kotlin-gradle-plugin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-p
6063
ksp-gradle-plugin = { group = "com.google.devtools.ksp", name = "com.google.devtools.ksp.gradle.plugin", version.ref = "ksp"}
6164
# Hilt 플러그인 아티팩트
6265
hilt-gradle-plugin = { group = "com.google.dagger", name = "hilt-android-gradle-plugin", version.ref = "hilt"}
63-
66+
firebase-performance-plugin = { group = "com.google.firebase", name = "perf-plugin", version.ref = "firebasePerfPlugin" }
6467

6568
# Kotlin
6669
kotlin-stdlib = { group = "org.jetbrains.kotlin", name = "kotlin-stdlib", version.ref = "kotlin" }
@@ -125,6 +128,12 @@ turbine = { group = "app.cash.turbine", name = "turbine", version.ref = "turbine
125128
javax-inject = { group = "javax.inject", name = "javax.inject", version.ref = "javaxInject" }
126129
androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" } # 원래 있던 정의 유지
127130

131+
# Firebase BoM
132+
firebase-bom = { group = "com.google.firebase", name = "firebase-bom", version.ref = "firebaseBom" }
133+
# Firebase SDKs
134+
firebase-analytics = { group = "com.google.firebase", name = "firebase-analytics-ktx" }
135+
firebase-performance = { group = "com.google.firebase", name = "firebase-perf-ktx" }
136+
128137

129138
[plugins]
130139
# Android Gradle Plugins
@@ -143,3 +152,7 @@ hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
143152

144153
# Navigation Safe Args Plugin
145154
navigation-safeargs = { id = "androidx.navigation.safeargs.kotlin", version.ref = "androidxNavigation" }
155+
156+
# Firebase 플러그인
157+
google-services = { id = "com.google.gms.google-services", version.ref = "googleServicesPlugin" }
158+
firebase-performance = { id = "com.google.firebase.firebase-perf", version.ref = "firebasePerfPlugin" }

presentation/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
android {
8-
namespace = "com.project200.myapp.presentation"
8+
namespace = "com.project200.undabang.presentation"
99

1010
buildFeatures {
1111
viewBinding = true

0 commit comments

Comments
 (0)