Hello everyone, I'm currently working on migrating...
# multiplatform
d
Hello everyone, I'm currently working on migrating a really large Android only project to KMP and during the build and CI setup process I ran into some small issues regarding the new
com.android.kotlin.multiplatform.library
AGP plugin. I'm trying to setup Android Lint to run on CI on modules applying this plugin (I got it running in the IDE okay) but I'm unable to determine the correct task to run. Can anyone help me figure this out?
t
Could you provide more details about your problem?
d
Sure, what I'm trying to do is run Android Lint via command line for a project that uses the new androidMultiplatformLibrary plugin. I've setup lint with the extension function on the androidLibrary target, but I'm unable to find the task that actually runs lint, I can see compile tasks, but none for reporting... the closest task I found was
lintAnalyzeAndroidHostTest
but that appears to focus on the wrong sourceSet. I've actually open a issue for it: https://youtrack.jetbrains.com/issue/KMT-1196/No-configured-lint-task-when-using-androidMultiplatformLibrary-plugin
thank you color 1
t
This is the bug in
com.android.kotlin.multiplatform.library
plugin which Google folks will address in future releases
1
JiC: current workaround is to also apply
id("com.android.lint")
plugin in the project
thank you color 1