Skip to content

Commit 4a300ba

Browse files
committed
firebase Firebase Crashlytics
1 parent 26c7dc7 commit 4a300ba

7 files changed

Lines changed: 68 additions & 2 deletions

File tree

app/build.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ plugins {
33
kotlin("android")
44
id("dagger.hilt.android.plugin")
55
id("kotlin-kapt")
6+
id("com.google.gms.google-services")
7+
id("com.google.firebase.crashlytics")
68
}
79

810
android {
@@ -77,11 +79,15 @@ dependencies {
7779
implementation(Google.materialIconsExtended)
7880
implementation(Google.gson)
7981

82+
implementation(platform(Firebase.bom))
83+
implementation(Firebase.analytics)
84+
implementation(Firebase.crashlytics)
85+
8086
implementation(Room.runtime)
8187
kapt(Room.compiler)
8288
implementation(Room.ktx)
8389

84-
implementation("com.github.commandiron:HandyCompose:1.0.3")
90+
implementation(HandyCompose.handyCompose)
8591

8692
testImplementation(Testing.junit)
8793

app/google-services.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"project_info": {
3+
"project_number": "954474646555",
4+
"project_id": "checkpack-f2bb6",
5+
"storage_bucket": "checkpack-f2bb6.appspot.com"
6+
},
7+
"client": [
8+
{
9+
"client_info": {
10+
"mobilesdk_app_id": "1:954474646555:android:29a77351bf45641949fcbe",
11+
"android_client_info": {
12+
"package_name": "com.commandiron.vacationchecklist"
13+
}
14+
},
15+
"oauth_client": [
16+
{
17+
"client_id": "954474646555-is8keins8qi823ts0u5gp582t555sk7v.apps.googleusercontent.com",
18+
"client_type": 3
19+
}
20+
],
21+
"api_key": [
22+
{
23+
"current_key": "AIzaSyDOMmB8D9bygIqgrnXx-UplPkmjW9j3GPE"
24+
}
25+
],
26+
"services": {
27+
"appinvite_service": {
28+
"other_platform_oauth_client": [
29+
{
30+
"client_id": "954474646555-is8keins8qi823ts0u5gp582t555sk7v.apps.googleusercontent.com",
31+
"client_type": 3
32+
}
33+
]
34+
}
35+
}
36+
}
37+
],
38+
"configuration_version": "1"
39+
}

app/src/main/java/com/commandiron/vacationchecklist/presentation/checklist/ChecklistScreen.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,10 @@ fun ChecklistScreen(
130130
GridItem(
131131
modifier = Modifier
132132
.aspectRatio(1f)
133-
.clickable { viewModel.onEvent(ChecklistUserEvent.OnCheck(index, checklistItem)) }
133+
.clickable {
134+
viewModel.onEvent(ChecklistUserEvent.OnCheck(index,
135+
checklistItem))
136+
}
134137
.padding(spacing.spaceExtraSmall),
135138
gridCellsCount = state.gridCellsCount,
136139
checklistItem = checklistItem

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ buildscript {
77
classpath(Build.androidBuildTools)
88
classpath(Build.kotlinGradlePlugin)
99
classpath(DaggerHilt.hiltAndroidGradlePlugin)
10+
classpath(Google.services)
11+
classpath(Firebase.crashlyticsPlugin)
1012
}
1113
}
1214

buildSrc/src/main/java/Firebase.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
object Firebase {
2+
private const val bomVersion = "30.2.0"
3+
const val bom = "com.google.firebase:firebase-bom:$bomVersion"
4+
const val analytics = "com.google.firebase:firebase-analytics-ktx"
5+
const val crashlytics = "com.google.firebase:firebase-crashlytics-ktx"
6+
7+
private const val crashlyticsPluginVersion = "2.9.1"
8+
const val crashlyticsPlugin = "com.google.firebase:firebase-crashlytics-gradle:$crashlyticsPluginVersion"
9+
}

buildSrc/src/main/java/Google.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ object Google {
1313

1414
private const val gsonVersion = "2.9.1"
1515
const val gson = "com.google.code.gson:gson:$gsonVersion"
16+
17+
private const val servicesVersion = "4.3.13"
18+
const val services = "com.google.gms:google-services:$servicesVersion"
1619
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
object HandyCompose {
2+
private const val handyComposeVersion = "1.0.3"
3+
const val handyCompose = "com.github.commandiron:HandyCompose:$handyComposeVersion"
4+
}

0 commit comments

Comments
 (0)