fwcd / fwcd/d2

Rename `clientName` to `platformName`

Open
#141 0 comments 0 reactions 0 assignees View on GitHub
refactoring
Dominant language
Swift
Stars
17
Forks
5
PR merge metrics
No merged PRs in 30d

Description

This would improve clarity, as a follow-up to #140. The reason this was left out of the PR is that we'd need to:

- Perform the rename in code
- Add a migration mechanism to automatically migrate the `local` folder to `platformName`
- Perhaps write a small script that only renames JSON keys (`clientName` -> `platformName`) and invoke it at startup?
- Maybe we could collect migration scripts in a `Migrations` folder, named by their version and then apply them in order
- We'd probably want some form of versioning, e.g. a `local/.version.json` that records the "schema version"

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.