In March 2021, the Accompanist project moved from github.com/chrisbanes/accompanist to github.com/google/accompanist. At the same time we migrated the libraries over to a new package name and Maven group ID.
As a summary:
dev.chrisbanes.accompanist
root package to com.google.accompanist
package.dev.chrisbanes.accompanist
to com.google.accompanist
.The following methods below are available for your information only, but may help if you need to migrate from the old package name.
!!! warning Use these at your own risk, but they have worked on multiple projects from my testing. It‘s a good idea to make sure that you’ve made a backup or committed any changes before running these.
You can use the Replace in Path pane (⇧⌘R on Mac) in Android Studio to do a project-wide search and replace.
dev.chrisbanes.accompanist
com.google.accompanist
*.kt
so that only Kotlin files are searched. Repeat for *.gradle
.Similar can be achieved in Visual Studio Code. Other IDEs / text editors are available.
These commands while automatically replace any imports and Gradle dependencies for the project in the current directory.
find . -type f \( -name '*.kt' -or -name '*.gradle*' \) \ -exec sed -i '' 's/dev\.chrisbanes\.accompanist/com\.google\.accompanist/' {} \;
find . -type f \( -name '*.kt' -or -name '*.gradle*' \) \ -exec sed -i 's/dev\.chrisbanes\.accompanist/com\.google\.accompanist/' {} \;