Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

externalize the versioning of platform #1295

Merged
merged 4 commits into from
Jul 7, 2021
Merged

Conversation

gre
Copy link
Contributor

@gre gre commented Jul 7, 2021

usecase:
as LLD/LLM are implementers of the platform, they are the one to provide the version, it's not a constant
it allows a true loosely coupling of these parts

impact:

LLD/LLM must adapt this:

when there are code that do setSupportedCurrencies you also must add setPlatformVersion

usecase:
as LLD/LLM are implementers of the platform, they are the one to provide the version, it's not a constant
it allows a true loosely coupling of these parts
@gre gre requested a review from a team July 7, 2021 14:39
@vercel
Copy link

vercel bot commented Jul 7, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/ledgerhq/ledger-live-common/7C1avZDpQgxBzruDsbDPvm5A5U25
✅ Preview: https://ledger-live-common-git-platform-versioning-exte-0d1cec-ledgerhq.vercel.app

@gre gre requested a review from IAmMorrow July 7, 2021 15:56
Comment on lines +12 to +14
import { setPlatformVersion } from "../platform/version";

setPlatformVersion("0.0.1");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

walletconnect and platform are not related 🤔

They could be factorized in the future 👍

@gre gre merged commit c0eb6fc into master Jul 7, 2021
@gre gre deleted the platform-versioning-externalized branch July 20, 2021 16:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants