Is there a way to use kapt for the androidtest scope? Currently I am migrating from com.neenbedankt.gradle.plugins android-apt to kapt - which works fine - but I am not sure how to do it for the androidTest scope - so replacing:
apt "com.github.hotchemi:permissionsdispatcher-processor:$permissiondispatcher_version" apt "com.google.dagger:dagger-compiler:$dagger_version"
with
kapt "com.github.hotchemi:permissionsdispatcher-processor:$permissiondispatcher_version" kapt "com.google.dagger:dagger-compiler:$dagger_version"
works fine - but I found no way to migrate:
androidTestApt "com.google.dagger:dagger-compiler:$dagger_version"
What is KAPT used for? The answer to this is straight, it is used for annotation processing in Kotlin.
app: Original kapt is deprecated.
KAPT is Kotlin Annotation Processing Tool. Annotations used in Kotlin code are processed using KAPT tool. KAPT performs additional code generation or it can perform other actions based on annotations. Kotlin-Kapt Plugin allows us to use these generated classes inside our project.
As described in the documentation, it's kaptAndroidTest
(and kaptTest
for unit tests).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With