https://kotlinlang.org logo
#android
Title
# android
t

tseisel

07/03/2022, 2:25 PM
Does anyone successfully used the
testFixtures
feature of the Android Gradle Plugin introduced in AGP 7.2.0 ? I can't get it working. Kotlin sources under
testFixtures
does not seem to get compiled. I'm using Kotlin 1.6.21.
m

MR3Y

07/03/2022, 2:45 PM
Kotlin gradle plugin doesn't support it yet, https://youtrack.jetbrains.com/issue/KT-50667
t

tseisel

07/03/2022, 3:29 PM
Thank you! I wonder if I could create a Gradle plugin that sets this up until the Kotlin Gradle Plugin supports it ...
m

MR3Y

07/03/2022, 3:48 PM
honestly, I haven't tried to do it myself, but if you're in an urgent need for this feature. you can try working around it by creating a temporary third party plugin, Also use the hints mentioned at the end of the issue description as a starting point.
390 Views