-
-
Save MossoIsai/5890a80766786ea41a6bf7222f9d2864 to your computer and use it in GitHub Desktop.
Dagget-Hilt + KSP | build.gradle.kts π https://android.benigumo.com/20231104/hilt-ksp/
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
// Project | |
plugins { | |
alias(libs.plugins.ksp) apply false | |
alias(libs.plugins.hilt) apply false | |
} | |
// Module | |
plugins { | |
alias(libs.plugins.ksp) | |
alias(libs.plugins.hilt) | |
} | |
dependencies { | |
ksp(libs.hilt.android.compiler) | |
implementation(libs.hilt.android) | |
// kspAndroidTest(libs.hilt.android.compiler) | |
// androidTestImplementation(libs.hilt.android.testing) | |
} |
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
[versions] | |
android-gradle-plugin = "8.1.2" | |
kotlin = "1.9.10" | |
ksp = "1.9.10-1.0.13" | |
hilt = "2.48.1" | |
[plugins] | |
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" } | |
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" } | |
[libraries] | |
hilt-android-compiler = { group = "com.google.dagger", name = "hilt-android-compiler", version.ref = "hilt" } | |
hilt-android = { group = "com.google.dagger", name = "hilt-android", version.ref = "hilt" } | |
# hilt-android-testing = { group = "com.google.dagger", name = "hilt-android-testing", version.ref = "hilt" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment