IDEMSInternational / open-app-builder

PLH App Frontend
GNU General Public License v3.0
5 stars 24 forks source link

Feat!: templated android config #2252

Closed chrismclarke closed 3 months ago

chrismclarke commented 3 months ago

PR Checklist

Breaking Changes

Description

Refactor android configuration to allow any deployment to be built or run as an android app locally, and provide a template for future ios deployment-based configuration.

Existing support for building deployment apps has been refactored to work in the same way as local development, removing a lot of the existing hardcoded configurations and shell scripting requirements.

The main changes by feature are:

Deployment Config

Workflows

Github Actions

reusable-android-build.yml - no longer required APP_ID and APP_NAME variables, android config shell scripts removed reusable-app-build.yml - no longer required APP_ID and APP_NAME variables, android config shell scripts removed reusable-content-sync.yml - versioning now handled by script

Android Folder

Other Changes

Review Notes

Android configuration

Note this will also run the splash and logo workflows, to just run the config can instead use yarn workflow android configure

Content Versioning Prompt config.ts content version update via

yarn scripts version --content

Auto-update config.ts content version via

yarn scripts version --content --auto-patch

Github Actions Not easy to test, ideally we should create a debug_app play store entry which can be used to test from the debug_app content repo once merged

Follow-up tasks

Git Issues

Closes #2136 Closes #2119 Closes #1768

Screenshots/Videos

Example android workflow variable replacements (splash fails on debug, but rest of files configured) image

Example running debug_app independently on device (previous used plh_teens) image

image