Skip to content

build: Remove Preferences.framework dependency#86

Open
teslamint wants to merge 1 commit into
NeoFreeBird:masterfrom
teslamint:remove-preferences-framework
Open

build: Remove Preferences.framework dependency#86
teslamint wants to merge 1 commit into
NeoFreeBird:masterfrom
teslamint:remove-preferences-framework

Conversation

@teslamint
Copy link
Copy Markdown

SettingsViewController was superseded by ModernSettingsViewController and had become dead code, but its Preferences.framework consumers were still being compiled and linked. Remove all traces:

  • Drop PSListController and PSSpecifier imports from Tweak.x
  • Remove HBForceCepheiPrefs hook from Tweak.x (no target once CepheiPrefs is unlinked)
  • Drop SettingsViewController.h import from BHTManager.m
  • Exclude SettingsViewController.m from build via filter-out in Makefile
  • Remove BHTwitter_PRIVATE_FRAMEWORKS = Preferences from Makefile
  • Remove BHTwitter_EXTRA_FRAMEWORKS (Cephei, CepheiPrefs, CepheiUI) from Makefile

BHTManager already reads all preferences via NSUserDefaults directly and BHTSettingsWithAccount: already returns ModernSettingsViewController, so no behaviour changes.

Assisted-by: Claude Sonnet 4.5 via Claude Code

SettingsViewController was superseded by ModernSettingsViewController and
had become dead code, but its Preferences.framework consumers were still
being compiled and linked. Remove all traces:

- Drop PSListController and PSSpecifier imports from Tweak.x
- Remove HBForceCepheiPrefs hook from Tweak.x (no target once CepheiPrefs
  is unlinked)
- Drop SettingsViewController.h import from BHTManager.m
- Exclude SettingsViewController.m from build via filter-out in Makefile
- Remove BHTwitter_PRIVATE_FRAMEWORKS = Preferences from Makefile
- Remove BHTwitter_EXTRA_FRAMEWORKS (Cephei, CepheiPrefs, CepheiUI) from
  Makefile

BHTManager already reads all preferences via NSUserDefaults directly and
BHTSettingsWithAccount: already returns ModernSettingsViewController, so
no behaviour changes.

Assisted-by: Claude Sonnet 4.5 via Claude Code
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