mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 12:57:04 +05:30
feat(android): migrate to NAPT
This commit is contained in:
parent
2623377027
commit
91c8033d71
3 changed files with 11 additions and 3 deletions
|
@ -1,14 +1,19 @@
|
|||
@file:Suppress("DSL_SCOPE_VIOLATION", "UnstableApiUsage")
|
||||
|
||||
import dagger.hilt.android.plugin.HiltExtension
|
||||
|
||||
plugins {
|
||||
id("dev.msfjarvis.claw.android-application")
|
||||
id("dev.msfjarvis.claw.rename-artifacts")
|
||||
id("dev.msfjarvis.claw.kotlin-android")
|
||||
id("dev.msfjarvis.claw.kotlin-kapt")
|
||||
id("dev.msfjarvis.claw.versioning-plugin")
|
||||
alias(libs.plugins.hilt)
|
||||
alias(libs.plugins.napt)
|
||||
}
|
||||
|
||||
// Hilt's aggregating task fails with NAPT
|
||||
extensions.getByType<HiltExtension>().enableAggregatingTask = false
|
||||
|
||||
android {
|
||||
namespace = "dev.msfjarvis.claw.android"
|
||||
defaultConfig { applicationId = "dev.msfjarvis.claw.android" }
|
||||
|
@ -34,8 +39,8 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
kapt(libs.androidx.hilt.compiler)
|
||||
kapt(libs.dagger.hilt.compiler)
|
||||
annotationProcessor(libs.androidx.hilt.compiler)
|
||||
annotationProcessor(libs.dagger.hilt.compiler)
|
||||
implementation(projects.api)
|
||||
implementation(projects.common)
|
||||
implementation(projects.coroutineUtils)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue