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

Sergio Casero

12/11/2018, 10:15 AM
Hi guys, if you have any issues when you are migrating to AndroidX, (remember that XMLs crash in runtime), you could use this linux command:
Copy code
grep -rnw '.' -e 'android.support'
It returns each ocurrency, with the file and the line
Copy code
./layout/activity_new_incident.xml:33:    <android.support.design.widget.FloatingActionButton
(edited) I don't know if we can improve the command, moving into a script (in order to add it to CI or whatever) If anyone have any suggestions, feel free to post any updates -> https://gist.github.com/sergiocasero/fab62dfbeb303b49c1991b909cb3cf19 PD: I know this is an easy command, it just for sharing 🙂
👍 4
👍🏾 9
r

robertoestivill

12/12/2018, 10:25 AM
Little suggestion: I ran it on top of my multi-module build and I was getting a lot of hits from files inside the /build folders of the different modules. Just added an extra grep at the end to only get hits from src folder 🙂
grep -rnw '.' -e 'android.support' | grep "/src/"
😍 1