Skip to content

Instantly share code, notes, and snippets.


Andreas M. AndiMiko

  • Microsoft
  • Seattle
View GitHub Profile
AndiMiko /
Created Feb 8, 2019
Replaces the pairs in androidx-class-mapping.csv (get it here: to migrate Android support to AndroidX
import glob
import csv
dictCSV = "C:/path/to/androidx-class-mapping.csv"
projectPath = "C:/path/to/project/src/"
def replace_all(text, dic):
for i, j in dic.items():
text = text.replace(i, j)
return text