I have a Kotlin multiplatform module. How can I ap...
# gradle
j
I have a Kotlin multiplatform module. How can I apply Android Lint custom
lintChecks
to the multiplatform code? It seems it doesn't work when put into the "top-level" dependencies.
p
Multiple gradle modules like in the usual Multiplatform App Setup (shared+androidApp) or just one gradle module?
I see you wrote
linkChecks
instead of
lintChecks
- just a typo or the source of your problem? AFAIK those android lint checks are not menat to be used in normal code. For normal kotlin code ktlint would normally be used.
j
sorry, just typo.
👍 1
p
I haven't used custom android lint rules in kotlin mutliplaform yet, so I don't think I can help here. At first I thought you're talking about custom ktlint rules, which I have used before in KMP.
j
It seems that it is possible: • https://github.com/slackhq/slack-gradle-plugin/pull/612/fileshttps://github.com/ZacSweers/CatchUp/pull/1032 but I don't see practically how to set it up.