Better question: Can your library work with either...
# android
m
Better question: Can your library work with either androidX or the old support packages with no changes? If so, can you wrap the support packages/androidX so the library is not aware of which version is using?