Repository navigation
refactor(core): runCatchingCancellable 을 core:domain 으로 옮기고 core:common 은 위임만 남긴다 (#2260) - #2261
Merged
Merged
Conversation
Sadturtleman
approved these changes
Oct 5, 2026
This was referenced Oct 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
먼저
core/common/.../RunCatchingCancellable.kt(위임과@Deprecated),core/domain/.../RunCatchingCancellable.kt(옮긴 본체와 KDoc 추가 단락)를 읽어 주세요.📌𝘐𝘴𝘴𝘶𝘦𝘴
📎𝘞𝘰𝘳𝘬 𝘋𝘦𝘴𝘤𝘳𝘪𝘱𝘵𝘪𝘰𝘯
runCatchingCancellable본체와 KDoc 을 core:common(Android 라이브러리)에서 core:domain(JVM)의com.afternote.core.domain.result로 옮겼습니다. feature domain 모듈은 core:common 에 의존할 수 없어, UseCase 마다try / catch (CancellationException) { throw } / catch (Throwable)를 손으로 다시 짜고 있었습니다(develop 의CreateTimeLetterUseCase, refactor(setting): 수신자 저장 정책을 UseCase로 분리 (#1691) #2124 의UpdateReceiverInfoUseCase).@Deprecated(ReplaceWith(...))를 붙였습니다. 기존 호출처 55개 파일은 바뀌지 않고, core 밖 프로덕션 diff 는 0줄입니다.RunCatchingCancellableTest를 core:domain 으로 옮겼습니다. 동작 변경은 없습니다.UpdateReceiverInfoUseCase포함). 위임 함수 제거는 refactor(core): core:common 의 Deprecated runCatchingCancellable 위임 함수를 지운다 #2268 입니다.검증
:core:domain:test(옮긴 테스트 4건 통과),:core:common:compileDebugKotlin,:core:domain:ktlintCheck,:core:common:ktlintCheck:feature:mindrecord:data의 단위 테스트(77건 통과),:app:compileDebugKotlin,:app:compileDebugUnitTestKotlin,:konsist:test(56건 통과)verify-kdoc-links.mjs끊김 0개🧪 CI Test Plan
{ "androidTest": { "mode": "none", "reason": "core 유틸 함수의 모듈 위치만 바꾸고 기존 경로는 위임으로 남겨 동작이 같다. 화면·네비게이션·매니페스트·androidTest 소스 변경이 없어 계측으로 새로 볼 경로가 없다.", "tests": [] } }📷𝘚𝘤𝘳𝘦𝘦𝘯𝘴𝘩𝘰𝘵
화면 변경 없음
💬𝘛𝘰 𝘙𝘦𝘷𝘪𝘦𝘸𝘦𝘳𝘴
위임 함수는 inline 끼리 호출이라 호출 모듈 바이트코드에 core:domain 참조가 남지 않습니다. core:domain 에 의존하지 않는
feature/mindrecord/data가 그대로 컴파일되는 것으로 확인했습니다.