@@ -9,12 +9,12 @@ import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants
99import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.ANDROIDX_CORE_KTX_VERSION
1010import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.ANDROIDX_FRAGMENT_KTX_VERSION
1111import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.ANDROIDX_LIFECYCLE_RUNTIME_KTX_VERSION
12- import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.ANDROIDX_NAVIGATION_FRAGMENT_KTX_VERSION
1312import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.ANDROIDX_RECYCLER_VIEW_VERSION
1413import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.ANDROID_GRADLE_PLUGIN_VERSION
14+ import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.ANDROID_NAVIGATION_VERSION
1515import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.COMPOSE_BOM_VERSION
16- import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.COMPOSE_NAVIGATION_VERSION
1716import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.DETEKT_VERSION
17+ import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.HILT_VERSION
1818import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.JUNIT4_VERSION
1919import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.KOTLINX_COROUTINES_VERSION
2020import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.KOTLIN_VERSION
@@ -24,10 +24,9 @@ import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants
2424import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.MATERIAL_VERSION
2525import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.OKHTTP3_VERSION
2626import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.RETROFIT_VERSION
27- import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.TEST_ANDROIDX_ESPRESSO_CORE_VERSION
27+ import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.TEST_ANDROIDX_ESPRESSO_VERSION
2828import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.TEST_ANDROIDX_JUNIT_VERSION
2929import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.TEST_ANDROIDX_RULES_VERSION
30- import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.TEST_ANDROID_HILT_VERSION
3130import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.TEST_ANDROID_UI_AUTOMATOR_VERSION
3231import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.TEST_MOCKITO_ANDROID_VERSION
3332import com.mitteloupe.cag.core.generation.versioncatalog.VersionCatalogConstants.TEST_MOCKITO_CORE_VERSION
@@ -41,80 +40,72 @@ data class DependencyConfiguration(
4140)
4241
4342object VersionCatalogConstants {
44- internal val KOTLIN_VERSION = VersionRequirement (key = " kotlin" , version = " 2.2.10 " )
43+ internal val KOTLIN_VERSION = VersionRequirement (key = " kotlin" , version = " 2.2.20 " )
4544 internal val COMPILE_SDK_VERSION = VersionRequirement (key = " compileSdk" , version = " 36" )
4645 internal val MIN_SDK_VERSION = VersionRequirement (key = " minSdk" , version = " 24" )
4746 internal val TARGET_SDK_VERSION = VersionRequirement (key = " targetSdk" , version = " 36" )
4847
49- internal val ANDROID_GRADLE_PLUGIN_VERSION = VersionRequirement (key = " androidGradlePlugin" , version = " 8.12.2 " )
48+ internal val ANDROID_GRADLE_PLUGIN_VERSION = VersionRequirement (key = " androidGradlePlugin" , version = " 8.13.0 " )
5049
5150 internal val COMPOSE_BOM_VERSION : VersionRequirement
52- get() = VersionRequirement (key = " composeBom" , version = getVersionForKey(" composeBom" , " 2025.08.01" ))
53- internal val COMPOSE_NAVIGATION_VERSION : VersionRequirement
54- get() = VersionRequirement (key = " composeNavigation" , version = getVersionForKey(" composeNavigation" , " 2.9.3" ))
51+ get() = versionRequirement(key = " composeBom" , defaultValue = " 2025.10.00" )
5552
5653 internal val JUNIT4_VERSION : VersionRequirement
57- get() = VersionRequirement (key = " junit4" , version = getVersionForKey( " junit4 " , " 4.13.2" ) )
54+ get() = versionRequirement (key = " junit4" , defaultValue = " 4.13.2" )
5855 internal val KSP_VERSION : VersionRequirement
59- get() = VersionRequirement (key = " ksp" , version = getVersionForKey( " ksp " , " 2.2.10 -2.0.2 " ) )
56+ get() = versionRequirement (key = " ksp" , defaultValue = " 2.2.20 -2.0.4 " )
6057
6158 internal val KTLINT_VERSION : VersionRequirement
62- get() = VersionRequirement (key = " ktlint" , version = getVersionForKey( " ktlint " , " 13.1.0" ) )
59+ get() = versionRequirement (key = " ktlint" , defaultValue = " 13.1.0" )
6360 internal val DETEKT_VERSION : VersionRequirement
64- get() = VersionRequirement (key = " detekt" , version = getVersionForKey( " detekt " , " 1.23.6 " ) )
61+ get() = versionRequirement (key = " detekt" , defaultValue = " 1.23.8 " )
6562
6663 internal val ANDROIDX_CORE_KTX_VERSION : VersionRequirement
67- get() = VersionRequirement (key = " androidxCoreKtx" , version = getVersionForKey( " androidxCoreKtx " , " 1.12 .0" ) )
64+ get() = versionRequirement (key = " androidxCoreKtx" , defaultValue = " 1.17 .0" )
6865 internal val ANDROIDX_LIFECYCLE_RUNTIME_KTX_VERSION : VersionRequirement
69- get() = VersionRequirement (key = " androidxLifecycleRuntimeKtx" , version = getVersionForKey( " androidxLifecycleRuntimeKtx " , " 2.7.0 " ) )
66+ get() = versionRequirement (key = " androidxLifecycleRuntimeKtx" , defaultValue = " 2.9.4 " )
7067 internal val KOTLINX_COROUTINES_VERSION : VersionRequirement
71- get() = VersionRequirement (key = " kotlinxCoroutines" , version = getVersionForKey( " kotlinxCoroutines " , " 1.7.3 " ) )
68+ get() = versionRequirement (key = " kotlinxCoroutines" , defaultValue = " 1.10.2 " )
7269 internal val MATERIAL_VERSION : VersionRequirement
73- get() = VersionRequirement (key = " material" , version = getVersionForKey( " material " , " 1.11 .0" ) )
70+ get() = versionRequirement (key = " material" , defaultValue = " 1.13 .0" )
7471 internal val OKHTTP3_VERSION : VersionRequirement
75- get() = VersionRequirement (key = " okhttp3" , version = getVersionForKey( " okhttp3 " , " 4.12.0 " ) )
72+ get() = versionRequirement (key = " okhttp3" , defaultValue = " 5.2.1 " )
7673 internal val ANDROIDX_APPCOMPAT_VERSION : VersionRequirement
77- get() = VersionRequirement (key = " androidxAppcompat" , version = getVersionForKey( " androidxAppcompat " , " 1.6 .1" ) )
74+ get() = versionRequirement (key = " androidxAppcompat" , defaultValue = " 1.7 .1" )
7875 internal val HILT_VERSION : VersionRequirement
79- get() = VersionRequirement (key = " hilt" , version = getVersionForKey( " hilt " , " 2.57.2" ) )
76+ get() = versionRequirement (key = " hilt" , defaultValue = " 2.57.2" )
8077 internal val ANDROIDX_RECYCLER_VIEW_VERSION : VersionRequirement
81- get() = VersionRequirement (key = " androidxRecyclerView" , version = getVersionForKey( " androidxRecyclerView " , " 1.3.2 " ) )
78+ get() = versionRequirement (key = " androidxRecyclerView" , defaultValue = " 1.4.0 " )
8279 internal val ANDROIDX_FRAGMENT_KTX_VERSION : VersionRequirement
83- get() = VersionRequirement (key = " androidxFragmentKtx" , version = getVersionForKey(" androidxFragmentKtx" , " 1.6.2" ))
84- internal val ANDROIDX_NAVIGATION_FRAGMENT_KTX_VERSION : VersionRequirement
85- get() =
86- VersionRequirement (
87- key = " androidxNavigationFragmentKtx" ,
88- version = getVersionForKey(" androidxNavigationFragmentKtx" , " 2.7.6" )
89- )
80+ get() = versionRequirement(key = " androidxFragmentKtx" , defaultValue = " 1.8.9" )
81+ internal val ANDROID_NAVIGATION_VERSION : VersionRequirement
82+ get() = versionRequirement(key = " androidNavigation" , defaultValue = " 2.9.5" )
9083 internal val ANDROIDX_CONSTRAINT_LAYOUT_VERSION : VersionRequirement
91- get() = VersionRequirement (key = " androidxConstraintLayout" , version = getVersionForKey( " androidxConstraintLayout " , " 2.1.4 " ) )
84+ get() = versionRequirement (key = " androidxConstraintLayout" , defaultValue = " 2.2.1 " )
9285
9386 internal val ANDROIDX_ACTIVITY_COMPOSE_VERSION : VersionRequirement
94- get() = VersionRequirement (key = " androidxActivityCompose" , version = getVersionForKey( " androidxActivityCompose " , " 1.8.2 " ) )
87+ get() = versionRequirement (key = " androidxActivityCompose" , defaultValue = " 1.11.0 " )
9588
9689 internal val KTOR_VERSION : VersionRequirement
97- get() = VersionRequirement (key = " ktor" , version = getVersionForKey( " ktor " , " 3.0.3 " ) )
90+ get() = versionRequirement (key = " ktor" , defaultValue = " 3.3.1 " )
9891 internal val RETROFIT_VERSION : VersionRequirement
99- get() = VersionRequirement (key = " retrofit" , version = getVersionForKey( " retrofit " , " 2.11 .0" ) )
92+ get() = versionRequirement (key = " retrofit" , defaultValue = " 3.0 .0" )
10093
10194 internal val TEST_MOCKITO_CORE_VERSION : VersionRequirement
102- get() = VersionRequirement (key = " mockitoCore" , version = getVersionForKey( " mockitoCore " , " 5.20.0" ) )
95+ get() = versionRequirement (key = " mockitoCore" , defaultValue = " 5.20.0" )
10396 internal val TEST_MOCKITO_KOTLIN_VERSION : VersionRequirement
104- get() = VersionRequirement (key = " mockitoKotlin" , version = getVersionForKey( " mockitoKotlin " , " 6.0 .0" ) )
97+ get() = versionRequirement (key = " mockitoKotlin" , defaultValue = " 6.1 .0" )
10598 internal val TEST_MOCKITO_ANDROID_VERSION : VersionRequirement
106- get() = VersionRequirement (key = " mockitoAndroid" , version = getVersionForKey( " mockitoAndroid " , " 2.28.6" ) )
99+ get() = versionRequirement (key = " mockitoAndroid" , defaultValue = " 2.28.6" )
107100
108101 internal val TEST_ANDROIDX_JUNIT_VERSION : VersionRequirement
109- get() = VersionRequirement (key = " androidxJunit" , version = getVersionForKey(" androidxJunit" , " 1.1.5" ))
110- internal val TEST_ANDROIDX_ESPRESSO_CORE_VERSION : VersionRequirement
111- get() = VersionRequirement (key = " androidxEspressoCore" , version = getVersionForKey(" androidxEspressoCore" , " 3.5.1" ))
112- internal val TEST_ANDROID_HILT_VERSION : VersionRequirement
113- get() = VersionRequirement (key = " androidHilt" , version = getVersionForKey(" androidHilt" , " 2.48" ))
102+ get() = versionRequirement(key = " androidxJunit" , defaultValue = " 1.3.0" )
103+ internal val TEST_ANDROIDX_ESPRESSO_VERSION : VersionRequirement
104+ get() = versionRequirement(key = " androidxEspresso" , defaultValue = " 3.7.0" )
114105 internal val TEST_ANDROID_UI_AUTOMATOR_VERSION : VersionRequirement
115- get() = VersionRequirement (key = " androidxUiautomator" , version = getVersionForKey( " androidxUiautomator " , " 2.2 .0" ) )
106+ get() = versionRequirement (key = " androidxUiautomator" , defaultValue = " 2.3 .0" )
116107 internal val TEST_ANDROIDX_RULES_VERSION : VersionRequirement
117- get() = VersionRequirement (key = " androidxTestRules" , version = getVersionForKey( " androidxTestRules " , " 1.5 .0" ) )
108+ get() = versionRequirement (key = " androidxTestRules" , defaultValue = " 1.7 .0" )
118109
119110 val ANDROID_VERSIONS =
120111 listOf (
@@ -123,6 +114,11 @@ object VersionCatalogConstants {
123114 TARGET_SDK_VERSION ,
124115 ANDROID_GRADLE_PLUGIN_VERSION
125116 )
117+
118+ private fun versionRequirement (
119+ key : String ,
120+ defaultValue : String
121+ ) = VersionRequirement (key = key, version = getVersionForKey(key, defaultValue))
126122}
127123
128124object LibraryConstants {
@@ -199,7 +195,7 @@ object LibraryConstants {
199195 LibraryRequirement (
200196 key = " compose-navigation" ,
201197 module = " androidx.navigation:navigation-compose" ,
202- version = COMPOSE_NAVIGATION_VERSION
198+ version = ANDROID_NAVIGATION_VERSION
203199 )
204200
205201 val TEST_JUNIT : LibraryRequirement
@@ -223,15 +219,15 @@ object LibraryConstants {
223219 LibraryRequirement (
224220 key = " test-androidx-espresso-core" ,
225221 module = " androidx.test.espresso:espresso-core" ,
226- version = TEST_ANDROIDX_ESPRESSO_CORE_VERSION
222+ version = TEST_ANDROIDX_ESPRESSO_VERSION
227223 )
228224
229225 val TEST_ANDROID_HILT : LibraryRequirement
230226 get() =
231227 LibraryRequirement (
232228 key = " test-android-hilt" ,
233229 module = " com.google.dagger:hilt-android-testing" ,
234- version = TEST_ANDROID_HILT_VERSION
230+ version = HILT_VERSION
235231 )
236232
237233 val TEST_ANDROID_UI_AUTOMATOR : LibraryRequirement
@@ -286,15 +282,15 @@ object LibraryConstants {
286282 LibraryRequirement (
287283 key = " hilt-android" ,
288284 module = " com.google.dagger:hilt-android" ,
289- version = VersionCatalogConstants . HILT_VERSION
285+ version = HILT_VERSION
290286 )
291287
292288 val HILT_ANDROID_COMPILER : LibraryRequirement
293289 get() =
294290 LibraryRequirement (
295291 key = " hilt-android-compiler" ,
296292 module = " com.google.dagger:hilt-android-compiler" ,
297- version = VersionCatalogConstants . HILT_VERSION
293+ version = HILT_VERSION
298294 )
299295
300296 val ANDROIDX_APPCOMPAT : LibraryRequirement
@@ -326,7 +322,7 @@ object LibraryConstants {
326322 LibraryRequirement (
327323 key = " androidx-navigation-fragment-ktx" ,
328324 module = " androidx.navigation:navigation-fragment-ktx" ,
329- version = ANDROIDX_NAVIGATION_FRAGMENT_KTX_VERSION
325+ version = ANDROID_NAVIGATION_VERSION
330326 )
331327
332328 val ANDROIDX_UI_TOOLING : LibraryRequirement
@@ -521,7 +517,7 @@ object PluginConstants {
521517 PluginRequirement (
522518 key = " hilt" ,
523519 id = " com.google.dagger.hilt.android" ,
524- version = VersionCatalogConstants . HILT_VERSION
520+ version = HILT_VERSION
525521 )
526522
527523 val COMPOSE_COMPILER : PluginRequirement
0 commit comments