https://kotlinlang.org logo
#gradle
Title
# gradle
j

Jan Skrasek

12/07/2023, 12:43 PM
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

p-schneider

12/07/2023, 1:24 PM
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

Jan Skrasek

12/07/2023, 2:13 PM
sorry, just typo.
👍 1
p

p-schneider

12/07/2023, 2:15 PM
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

Jan Skrasek

12/07/2023, 2:16 PM
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.