Installation Guide
Setting Up Google Services
For Android:
- Access the Firebase Console.
- Create a new application matching your application ID.
- Obtain the
google-services.jsonfile and replace the existing file at/android/app/google-services.jsonwith yours. - Modify the
applicationIdinandroid/app/build.gradleto match your application ID.
For iOS:
- Repeat the steps in the Android section and generate a
GoogleService-Info.plistfile instead.
Enabling Deep Links
- Navigate to
android/app/src/main/AndroidManifest.xml. - Locate
webguy69.comand replace it with your domain where the admin portal is hosted.
Updating the App Name
- For Android: Edit
android/app/src/main/res/values/strings.xmlto update theapp_namevalue. - For Arabic Support: Additionally, modify
android/app/src/main/res/values-ar/strings.xmlfor the app name in Arabic.
Server Integration
Edit lib/src/config/global.dart to configure:
serverUrl: Specify the server URL without trailing paths.apiKey: Enter the API Key obtainable from backend settings.primaryColor,primaryColorDark,primaryColorLight: Set these to your brand's primary colors.dividerColor: Choose a color for dividers within the app.
Prerequisites for Building the App
- Generate a JKS file for Android app signing.
- Create a
key.propertiesfile in/androidwith the following details, adjusting for your JKS file:storePassword=<password_here> keyPassword=<password_here> keyAlias=<key_alias> storeFile=<path_to_jks> - Refer to Flutter's deployment guide for JKS generation instructions.
