Step 0: Rename the app in Android Studio

Clone the repo and open it in Android Studio. Rename the package to cs371m.YOUR_EID.demofirebase. To do so in Android Studio follow these pictures which walk you through doing this with Android Studio's refactoring tools.
Android studio hides empty directories by default, to rename the middle part of the package we have to turn this feature off (temporarily). To do so look for this button with a gear on it and uncheck the "Hide Empty Middle Packages" option.



Right click the directory named "witchel" and go to Refactor, then Rename.



We want to update all package names luckily Android Studio let's us do that easily.



Replace "witchel" with your eid.



Hit refactor to make the changes.



Alas, the refactor is not perfect. To complete our change we have to open this gradle file...



...and modify this "applicationId" string to match our new package name.



Changing a gradle file means we have to sync, so make sure to do that before we try to build. You might also need to check the AndroidManifest.xml file. Make sure the android:name has the correct eid there.




Step 1: Add Firebase to your app