Skip to content

Remove migration step 1 and the legacy UserDefaults framework#698

Open
bjorkert wants to merge 1 commit into
devfrom
remove-migration-step-1
Open

Remove migration step 1 and the legacy UserDefaults framework#698
bjorkert wants to merge 1 commit into
devfrom
remove-migration-step-1

Conversation

@bjorkert

@bjorkert bjorkert commented Jul 8, 2026

Copy link
Copy Markdown
Member

Step 1 shipped in v3.0.0 (2025-07-07), so its one-year removal window has passed.

Deleting migrateStep1() (and its 21 private alarm migrations) retires the whole legacy storage stack it was the last consumer of:

  • UserDefaultsValue / ObservableUserDefaultsValue
  • UserDefaultsValueGroups
  • ObservableUserDefaults (only held the old_* keys)
  • ObservationToken, AnyConvertible
  • HKQuantity+AnyConvertible — already an orphan, not in the pbxproj, referencing a UserDefaultsRepository type that no longer exists

Also drops an unused ObservableUserDefaults.shared property in ContactSettingsViewModel and AppConstants.APP_GROUP_ID, whose only readers were the deleted value classes. Nothing in Swift reads the app-group UserDefaults suite now; the entitlements are left untouched.

Reminder: step 2 expires 2026-07-21 and can be removed then.

… alive

Step 1 shipped in v3.0.0 (2025-07-07) and its one-year window has passed.
It was already unreachable: migrationStep defaults to 9, so any user without
a stored migrationStep skips every step, and users who have one are at >= 1.

Removing migrateStep1() also retires its exclusive dependencies: the
UserDefaultsValue / ObservableUserDefaultsValue stack, UserDefaultsValueGroups,
ObservableUserDefaults, ObservationToken, AnyConvertible, and the orphaned
HKQuantity+AnyConvertible. Nothing in Swift reads the app-group UserDefaults
suite anymore, so AppConstants.APP_GROUP_ID goes too.
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.

1 participant