lessgreen / OpenPUDO

Open PUDO Software Platform
GNU Affero General Public License v3.0
2 stars 1 forks source link

Align common resources #51

Open puffetto opened 2 years ago

puffetto commented 2 years ago

The file "localization.json" was maintained in the old OpenPUDO repository and then somehow copied in the two private repositories backend/frontend. Now the repositories have been merged, and I suppose that two copies of the localization.json file exist around, this should be fixed and only one location should exist for the OAS principle (One Authoritative Source). I suppose the same applies for the API interface definition/documentation.

GilGalaad commented 2 years ago

The file backend/src/main/resources/localization/app_localization.json contains the most recent app localization that will be served via rest api. This file will evolve more frequently than app releases, and will allow the app labels to be updated at runtime without making a new submission. The same file, contained in the app source directory, is the fallback that will be bundled inside the mobile app and that will be used if the rest api is not available (offline mode for example). Ideally, this file should be ONLY in the backend, and should be copied in the app build process, assuring to include the latest version on each build. Ideally, it sould be a symlink in the app folder, but committing a symlik is really not a portable solution.