Skip to content

Commit c753cef

Browse files
authored
Extracted Hilt from core Android libraries. (#37)
1 parent af67702 commit c753cef

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

core/src/main/kotlin/com/mitteloupe/cag/core/generation/architecture/ArchitectureModulesContentGenerator.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class ArchitectureModulesContentGenerator(
5555

5656
val libraries =
5757
LibraryConstants.CORE_ANDROID_LIBRARIES +
58+
LibraryConstants.HILT_LIBRARIES +
5859
LibraryConstants.TESTING_LIBRARIES +
5960
LibraryConstants.TEST_KOTLINX_COROUTINES +
6061
LibraryConstants.NETWORK_LIBRARIES +

core/src/main/kotlin/com/mitteloupe/cag/core/generation/bulk/ProjectTemplateFilesGenerator.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ class ProjectTemplateFilesGenerator(
7474
}
7575

7676
val libraries =
77-
LibraryConstants.CORE_ANDROID_LIBRARIES + LibraryConstants.TESTING_LIBRARIES +
77+
LibraryConstants.CORE_ANDROID_LIBRARIES +
78+
LibraryConstants.HILT_LIBRARIES +
79+
LibraryConstants.TESTING_LIBRARIES +
7880
if (enableCompose) {
7981
LibraryConstants.COMPOSE_LIBRARIES
8082
} else {

core/src/main/kotlin/com/mitteloupe/cag/core/generation/versioncatalog/DependencyConfiguration.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,11 +419,12 @@ object LibraryConstants {
419419
ANDROIDX_APPCOMPAT,
420420
KOTLINX_COROUTINES_CORE,
421421
MATERIAL,
422-
OKHTTP3,
423-
HILT_ANDROID,
424-
HILT_ANDROID_COMPILER
422+
OKHTTP3
425423
)
426424

425+
val HILT_LIBRARIES: List<LibraryRequirement>
426+
get() = listOf(HILT_ANDROID, HILT_ANDROID_COMPILER)
427+
427428
val VIEW_LIBRARIES: List<LibraryRequirement>
428429
get() =
429430
listOf(
@@ -483,7 +484,7 @@ object LibraryConstants {
483484
)
484485

485486
val ALL_LIBRARIES =
486-
CORE_ANDROID_LIBRARIES + VIEW_LIBRARIES + COMPOSE_LIBRARIES + TESTING_LIBRARIES + COMPOSE_TESTING_LIBRARIES +
487+
CORE_ANDROID_LIBRARIES + HILT_LIBRARIES + VIEW_LIBRARIES + COMPOSE_LIBRARIES + TESTING_LIBRARIES + COMPOSE_TESTING_LIBRARIES +
487488
NETWORK_LIBRARIES + TEST_MOCKITO_LIBRARIES + TEST_KOTLINX_COROUTINES
488489
}
489490

0 commit comments

Comments
 (0)