Skip to content

splitting up healthkitmetrics for maintainability#741

Open
krugerk wants to merge 2 commits intobeeminder:masterfrom
krugerk:bugfix/hard-to-maintain-healthkitmetrics
Open

splitting up healthkitmetrics for maintainability#741
krugerk wants to merge 2 commits intobeeminder:masterfrom
krugerk:bugfix/hard-to-maintain-healthkitmetrics

Conversation

@krugerk
Copy link
Contributor

@krugerk krugerk commented Feb 21, 2026

Summary

split the long list up for easier oversight

@krugerk krugerk requested a review from a team as a code owner February 21, 2026 20:33
@krugerk krugerk requested review from theospears and removed request for a team February 21, 2026 20:33
import HealthKit

public class ActivityHealthKitMetrics {
public static let shared = ActivityHealthKitMetrics()
Copy link
Collaborator

@theospears theospears Feb 23, 2026

Choose a reason for hiding this comment

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

What is gained by making all of these singletons rather than just using statics. They seem like read only configuration constants.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was just one shot at how else these things might be organized. Rather than the single long list of before there are now several, mostly shorter, lists.
They are also all now implemented as lazy var, though the big list from before could have been as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants