- Fork our repository.
- Go to your forked repo settings and make it private. (Most important step, DON'T skip it)
- Clone the repository.
- Decide an application name in format -
{your_website_domain}.{your_website_name}.{app_name}
. - Change the applicationId to your chosen name in
./android/app/build.gradle
. - Change it in
./android/app/src/debug/AndroidManifest.xml
. - Change it in
./android/app/src/main/AndroidManifest.xml
. - Change the directory tree in
./android/app/src/main/kotlin/
folder -
Before -
./android/app/src/main/kotlin/team/dscbvppune/dsc/MainActivity.kt
After -
./android/app/src/main/kotlin/{your_website_domain}/{your_website_name}/{app_name}/MainActivity.kt
- Change it in
./android/app/src/main/kotlin/{your_website_domain}/{your_website_name}/{app_name}/MainActivity.kt
.
- Open the workflow file -
./.github/workflows/build-release-apk.yml
. - Goto the
Generating debug.keystore ...
step and change the-dname
parameter values according to your needs.
- Open Firebase Console and create a new project.
- For Android refer to Firebase docs: Add Firebase to your Android project.
- For iOS refer to the Firebase docs: Add Firebase to your iOS project.
- Make sure the package name of the project you entered is exactly the same as that of your app name.
- Download the
google-services.json
file of your project. - Place the
google-services.json
file in./android/app/
folder.
- Remove the
google-services.json
from.gitignore
file to make sure that the file gets commited and pushed to remote. - Run
git add . && git commit -m "App Init"
. This will save your changes locally. Before running this command, make sure yourgit
is setup correctly. - Create release tag by running
git tag v1.0
. - Proceeed in this step with CAUTION !
Double check that your repo is private then only push to remote.
Run
git push --tags
to push your tagged changes to remote repo. - This will start the workflow automatically as new tag is detected.
- Wait for appox. 10 minutes or so. In the meantime you can goto the
Actions
tab of your repo and check the workflow progress. - After the workflow completes, a release will be there in your releases page.
- You can find two assets in the release - APK & SHA1 file.
- Download the SHA1 text file and enter it in your Firebase project settings under
SHA certificate fingerprints
section.
- Download your dsc app and install it in your android device.
- Open the app and login with the gmail ID of your DSC(admin) account that will have create, delete and update rights.
- App will automatically initialize cloud firestore database for your website.
- Add details of your team members, events organized by your DSC and the Code of Conduct of your DSC.
- You're good to go !!
NOTE : Don't ever make your repository public again, it will expose your Firebase's credentials. You can just delete the repo completely or change the google-services.json in your Firebase project.
Read further details in other docs.