Skip to content

Installation Guide

Setting Up Google Services

For Android:

  1. Access the Firebase Console.
  2. Create a new application matching your application ID.
  3. Obtain the google-services.json file and replace the existing file at /android/app/google-services.json with yours.
  4. Modify the applicationId in android/app/build.gradle to match your application ID.

For iOS:

  • Repeat the steps in the Android section and generate a GoogleService-Info.plist file instead.
  1. Navigate to android/app/src/main/AndroidManifest.xml.
  2. Locate webguy69.com and 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.xml to update the app_name value.
  • For Arabic Support: Additionally, modify android/app/src/main/res/values-ar/strings.xml for 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.properties file in /android with 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.