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

Mark Lurie

01/19/2023, 1:41 PM
Hi, i’ve migrated Dagger 2 -> Hilt. I want to write a check/test/script/whatever to verify that all Android classes (Fragment/Activity/Service) have the newly needed @AndroidEntryPoint. Any ideas how?
😶 4
t

Thiago

01/19/2023, 1:43 PM
plugin compiler or KSP visitor
c

Chris

01/19/2023, 1:45 PM
Sounds like a lint check to me
t

Thiago

01/19/2023, 1:46 PM
Yep. can be done as a lint too
m

Mark Lurie

01/19/2023, 1:51 PM
I’m trying to add lint, but i get an annoying issue: 'android.support.design.widget' that cannot be safely rewritten But i’m not using any. do you guys know or have an example of how to?
By the way, I wrote a lint rule check just unable to add the library dependency at the moment.
c

Chris

01/19/2023, 1:55 PM
are there any dependencies which still use a support library? use gradle to check the dependency tree
m

Mark Lurie

01/19/2023, 1:59 PM
nop
8 Views