fix: snapshot catch blocks — logging, CancellationException, withTimeoutOrNull (v2.9.15) The inline snapshot catch blocks silently swallowed all exceptions with zero logging, making snapshot failures undiagnosable. - RelayAdoptionReceiver.kt receiver path: withTimeout → withTimeoutOrNull (timeout returns null instead of throwing CancellationException), explicit null-check with Log.i on timeout, Log.w with stack trace on other failures - RelayAdoptionReceiver.kt + RelayAdoptionHost.kt source paths: rethrow CancellationException (external coroutine cancellation must propagate), Log.w with stack trace on other failures - app/build.gradle: unitTests.returnDefaultValues = true (android.util.Log not mocked in JVM tests) Gate: full testDebugUnitTest + assembleRelease BUILD SUCCESSFUL.
$ koh steal kepr.uk/peach-android@877dd0a16304
·
parent: 9650c7059d5d
discussion
log in to leave a comment.