Skip to content

Commit

Permalink
일부 기기에서 TransactionTooLargeException 발생하는 이슈 (#673)
Browse files Browse the repository at this point in the history
* targetLargeTool implementation (for error catch)

* container savedStateHandle 처리하지 않음
  • Loading branch information
riflockle7 authored Nov 19, 2023
1 parent e95c566 commit 5575ad6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ dependencies {
libs.login.kakao, // for KakaoSDK initialization
libs.quack.ui.components, // for debug setting
libs.logging.timber,
libs.logging.toolargetool,
projects.presentation, // for launch IntroActivity
projects.feature.examResult,
projects.feature.solveProblem,
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/kotlin/team/duckie/app/android/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ package team.duckie.app.android

import android.app.Application
import androidx.datastore.preferences.core.edit
import com.gu.toolargetool.TooLargeTool
import com.kakao.sdk.common.KakaoSdk
import dagger.hilt.android.HiltAndroidApp
import kotlinx.coroutines.runBlocking
Expand All @@ -29,6 +30,7 @@ class App : Application() {

override fun onCreate() {
super.onCreate()
TooLargeTool.startLogging(this)
if (BuildConfig.DEBUG) {
Timber.plant(Timber.DebugTree())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,8 @@ internal class OnboardViewModel @AssistedInject constructor(

/* ----- Variable ----- */

override val container = container<OnboardState, OnboardSideEffect>(
initialState = OnboardState(),
savedStateHandle = savedStateHandle,
)
// TODO(riflockle7): 추후 savedStateHandle 처리할 수 있는 방법 고민하기 (회원가입 도중 끊기면 마음 아프니까)
override val container = container<OnboardState, OnboardSideEffect>(OnboardState())

private val duckieUserProfileImageTemporaryFile =
File.createTempFile("temporary-duckie-user-profile-image", ".png", context.cacheDir)
Expand Down
5 changes: 5 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ test-turbine = "0.12.3"
# logging
logging-timber = "5.0.1"

# logging-toolargetool
logging-toolargetool = "0.3.0"

[plugins]
gms-google-service = { id = "com.google.gms.google-services", version.ref = "plugin-build-google-service" }

Expand Down Expand Up @@ -279,6 +282,8 @@ logging-timber = { module = "com.jakewharton.timber:timber", version.ref = "logg

detekt-plugin-formatting = { module = "io.gitlab.arturbosch.detekt:detekt-formatting", version.ref = "plugin-code-detekt" }

logging-toolargetool = { module = "com.gu.android:toolargetool", version.ref = "logging-toolargetool" }

# Dependencies of the included build-logic
ksp-gradlePlugin = { group = "com.google.devtools.ksp", name = "com.google.devtools.ksp.gradle.plugin", version.ref = "plugin-kotlin-ksp" }

Expand Down

0 comments on commit 5575ad6

Please sign in to comment.