Skip to content

Customize app for new institute

Akshay Kumar edited this page Jun 24, 2019 · 4 revisions

Changes needed to build app for new institute

  1. Checkout new branch from master(git checkout -b newInstituteName)
  2. Download google-services.json file & replace with existing file in app(app/google-services.json).
  3. Replace custom images for institute.
  4. Update config.json file with institute details(Fields must needs to update testpress_site_subdomain, package_name, app_name, primary_color, share_message).
  5. Optionally update allow_anonymous_user, etc.

Check this diff for further clarification https://github.com/testpress/android/compare/arise.

Additional changes needed for white labeled institutes

  1. Add below lines in AndroidManifest.xml file at <intent-filter> on SplashScreenActivity to support deep linking white labeled URL also.
    <data android:scheme="https" android:host="@string/white_labeled_host_url" />
    <data android:scheme="http" android:host="@string/white_labeled_host_url" />
  1. Update white_labeled_host_url, facebook_app_id, server_client_id in config.json file. Get facebook_app_id, server_client_id from testpress site settings-> Apps -> Social login if already social login enabled, else enable it.

Check this diff for further clarification https://github.com/testpress/android/compare/mathiit.