We need to manually run a rake task to add an organization branding record to the database when a new organization is created:
Local development environment:
docker-compose run --rm web bundle exec rake 'Content:add_organisation_branding[<ORG_ID>]' RAILS_ENV=development
Staging and production (via Heroku bash console):
bundle exec rake 'Content:add_organisation_branding[<ORG_ID>]' RAILS_ENV=<ENVIRONMENT>
To add the organization’s branding assets to the portal app, follow the following steps:
This process applies to all environments. Staging portal: portal.rekindleapps.com Production portal: portal.rekindlelearning.com
clients/
<CLIENT_SHORTNAME>/
app_icons/
adaptive/
images/
app_icons/adaptive directory, add the following files:ic_launcher_background.xmlic_launcher_foreground.xmlimages directory, add the following files (Google Drive):app_icon.pngbg.jpglogo.pngribbon.pngsplash_tablet.jpgsplash.jpgNote: Each image in the client folder needs to be a specific size in order for Android to build correctly.
To add the new client for Android, modify the android/app/build.gradle file:
productFlavors sectionproductFlavors blockTo configure the launch settings for the client in Visual Studio Code:
.vscode/launch.json fileNote: To ensure the app loads properly, make sure to add the required assets for the organization before proceeding to the next step