You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
maintenance(platform): 쓰지 않는 hilt-navigation-compose 의존과 미적용 feature 컨벤션 플러그인을 걷는다 (#1702 분리) #2247
androidx.hilt:hilt-navigation-compose 는 Navigation 2 런타임을 끌어오는 산출물인데, app·afternote·receiver·setting 은 이 산출물이 주는 androidx.hilt.navigation.* 를 main·test·androidTest 어디서도 import 하지 않는다. hiltViewModel 은 네 모듈 모두 Hilt 컨벤션(AndroidHiltConventionPlugin)이 넣는 hilt-lifecycle-viewmodel-compose 에서 받는다. 같은 산출물을 넣는 AndroidFeatureConventionPlugin 은 적용하는 모듈이 0개다.
#1702 완료 조건 5(불필요한 Navigation 2 의존성 제거)가 이 줄들을 지울 예정이지만, #1702 는 #1696·#1697(← #959)을 기다린다. 이 줄은 지금의 Nav2 코드도 쓰지 않아 루트 전환과 상관없이 지울 수 있고, 지워 두면 #1702 가 다시 쓸 줄이 없다. 기준은 origin/developca1c18d8e 다.
대상
app/build.gradle.kts:231, feature/afternote/presentation/build.gradle.kts:35, feature/receiver/presentation/build.gradle.kts:29, feature/setting/presentation/build.gradle.kts:34 의 implementation(libs.androidx.hilt.navigation.compose)
build-logic/src/main/kotlin/AndroidFeatureConventionPlugin.kt 와 build-logic/build.gradle.kts 의 등록, ExplicitApiModulePolicyKonsistTest 의 afternote.android.feature 항목
남기는 것
onboarding 의 같은 줄과 버전 카탈로그 항목(onboarding 은 담당이 다르다).
afternote.android.navigation 컨벤션의 android-navigation-compose. app·mindrecord·timeletter 의 Nav2 코드가 쓴다.
완료 조건
네 모듈의 build.gradle.kts 에 libs.androidx.hilt.navigation.compose 가 없고, debugRuntimeClasspath 에 hilt-navigation-compose 가 직접 의존으로 나오지 않는다.
AndroidFeatureConventionPlugin 과 그 등록, konsist 목록 항목이 없다.
assembleDebug, :app:compileDebugUnitTestKotlin, :app:compileDebugAndroidTestKotlin, 네 모듈 유닛 테스트, :konsist:test, build-logic 테스트가 통과한다.
루트 Nav2 아래 화면의 hiltViewModel 생성이 그대로 동작한다(androidTest 또는 실기동 1회).
Activity