Skip to content

Instantly share code, notes, and snippets.

View XilinJia's full-sized avatar

Xilin Jia XilinJia

View GitHub Profile
@draekko
draekko / androidx-convert.sh
Last active July 26, 2020 13:45 — forked from dlew/script.sh
Simple AndroidX Migration Script (updated to work with Linux and avoid xarg argument list too long)
#!/usr/bin/env bash
# I've found that the "Migrate to AndroidX" converter in Android Studio doesn't work very
# well, so I wrote my own script to do the simple job of converting package names.
#
# You can download a CSV of package names here: https://developer.android.com/topic/libraries/support-library/downloads/androidx-class-mapping.csv
#
# It'll run faster on a clean build because then there are fewer files to scan over.
#
# Uses `gsed` because I'm on a Mac. Can easily replace with `sed` if you don't have `gsed`.