Skip to content

Commit db5a86b

Browse files
wziebaclaude
andcommitted
Add Hilt and KSP configuration to commons module
The commons module now uses Hilt's @entrypoint for FileLoggerEntryPoint, which requires the Hilt plugin and KSP to generate the necessary code. Without these plugins, tests in other modules (like WooCommerce) fail with ClassCastException when trying to access the FileLoggerEntryPoint. This fixes the issue introduced when WooLog was moved to the commons module. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 0fd2bc2 commit db5a86b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs/commons/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ plugins {
22
alias(libs.plugins.android.library)
33
alias(libs.plugins.kotlin.android)
44
alias(libs.plugins.kotlin.parcelize)
5+
alias(libs.plugins.google.dagger.hilt)
6+
alias(libs.plugins.ksp)
57
alias(libs.plugins.dependency.analysis)
68
}
79

@@ -29,6 +31,7 @@ dependencies {
2931
implementation(libs.automattic.tracks.crashlogging)
3032
implementation(libs.androidx.lifecycle.process)
3133
implementation(libs.google.dagger.hilt.android.main)
34+
ksp(libs.google.dagger.hilt.compiler)
3235
implementation(libs.wordpress.utils)
3336

3437
testImplementation(libs.kotlinx.coroutines.test)

0 commit comments

Comments
 (0)