Skip to content
This repository has been archived by the owner on Oct 11, 2020. It is now read-only.

Implementation Notes

Aviv Eyal edited this page Oct 8, 2018 · 2 revisions
  • Each internal component should be well defined by an interface and support different concrete implementations (facade pattern). For Examples, LocalStorage should expose a single interface to other components but be implemented based on the current runtime platform. e.g. Electron, Web, iOS or Android as each platform has different local storage APIs.

  • All common support code should go into the Cosmic repo and get pulled into the App repo so our work on the App improves Cosmic and the App only includes app-specific logic. For example, the LocalStorage component should go to Cosmic as well as an Asset component that allows a unified API to assets regardless of the runtime platform.