Setup & Importing Android Studio Project


What Android Studio version is needed?

Latest Android Studio version is recommended, which can be downloaded from here

How to open the project in Android Studio?

  1. Open Android Studio > Open an existing Android Studio Project >Choose the folder FireApp - Android App > OK
  2. wait for 'gradle build' to finish
  3. Then go to 'Build' Menu and choose Clean Project

{primary} after build finishes you will get an error google-services.json is missing ,to solve this you have to Setup Firebase after changing Package Name

How to Add Server URL?

Go to Config.kt file > and change SERVER_URLs value to your server url.

eg. https://example.com

How to change the package name?

go to build.gradle and change applicationId value then click 'Sync Now' at the top

image

How to change app name?

go to build.gradle and change app_name value, also you might want to change app_folder_name value to change the actual folder name in the Phone then click 'Sync Now' at the top

How to change Links in About Page?

you can do that by going to build.gradle and change twitter_account , website , email values to what you want , then click 'Sync Now' at the top

How to Enable Calls?

Go to 'Agora's website and create an account, then create a new app in Agora Console if you didn't do that already. Get your appId and paste it in build.gradle -> agora_app_id

Click on sync now to apply changes.

How to add more stickers?

if you want to add your own stickers go to app\src\main\assets\stickers and paste all stickers images in this folder (should be in png or jpg)

How to change app icon?

in Android Studio on the left panel select app folder > right click > new > Image Asset > make sure Launcher Icons(Adaptive and Legacy) is selected choose your asset, adjust background color if needed > next > finish

image