Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.
C
refactor: sort the sources into Shared, Native, Redesigned and App layers
Vojtěch Škopekaf40f21e14f7
diff --git a/.gitignore b/.gitignoreindex 093514cf..0f9efe8c 100644--- a/.gitignore+++ b/.gitignore@@ -12,6 +12,6 @@ trees/*.txttweak/.theos/tweak/obj/tweak/packages/-tweak/Sources/Features/Flags/SGFlagList.m+tweak/Sources/Shared/Flags/SGFlagList.m/trees/continuous/trees/cleandiff --git a/Makefile b/Makefileindex d82ab295..de250524 100644--- a/Makefile+++ b/Makefile@@ -29,5 +29,5 @@ session: ## record clean trees screen by screen into trees/clean/, Enter per sn./scripts/record-session.py $(SCREENS)log: ## stream the tweak's log lines from the phone./scripts/dump-log.sh-flags: ## regenerate tweak/Sources/Features/Flags/SGFlagList.m, Spotify's remote-config flags, from the IPA+flags: ## regenerate tweak/Sources/Shared/Flags/SGFlagList.m, Spotify's remote-config flags, from the IPA./scripts/extract-flags.py $(IPA)diff --git a/scripts/extract-flags.py b/scripts/extract-flags.pyindex 95bac9af..4563ba09 100755--- a/scripts/extract-flags.py+++ b/scripts/extract-flags.py@@ -1,5 +1,5 @@#!/usr/bin/env python3-"""Write tweak/Sources/Features/Flags/SGFlagList.m, the table of Spotify's remote-config flags, from a decrypted IPA.+"""Write tweak/Sources/Shared/Flags/SGFlagList.m, the table of Spotify's remote-config flags, from a decrypted IPA.Every generated SPT*ImplProperties class reads its flags in initWithConfigurationProvider: throughboolValueForId:defaultValue:, intValueForId:lower:upper:defaultValue: or@@ -252,7 +252,7 @@ def main():kind, value, lower, upper = flags[key]lines.append(f' {{"{key}", SGFlag{kind}, {signed(value)}, {signed(lower)}, {signed(upper)}}},')lines += ['};', 'const NSUInteger SGFlagCount = sizeof(SGFlagTable) / sizeof(*SGFlagTable);', '']- out = ROOT / 'tweak/Sources/Features/Flags/SGFlagList.m'+ out = ROOT / 'tweak/Sources/Shared/Flags/SGFlagList.m'out.write_text('\n'.join(lines))typed = sum(1 for f in flags.values() if f[0] != 'Unknown')print(f'{out.relative_to(ROOT)}: {len(flags)} flags, {typed} with a type and default')diff --git a/scripts/pipeline.sh b/scripts/pipeline.shindex 193e8832..419ed920 100755--- a/scripts/pipeline.sh+++ b/scripts/pipeline.sh@@ -62,7 +62,7 @@ OUT="${OUT:-$ROOT/out/Spotify-$VERSION-glass.ipa}"echo "==> Spotify $VERSION -> $OUT"# The flag table is generated rather than committed, so it always matches the IPA being built.-if [ ! -f "$ROOT/tweak/Sources/Features/Flags/SGFlagList.m" ]; then+if [ ! -f "$ROOT/tweak/Sources/Shared/Flags/SGFlagList.m" ]; thenecho "==> extracting the flag table (once, about 40 s)""$ROOT/scripts/extract-flags.py" "$IN"fidiff --git a/tweak/Makefile b/tweak/Makefileindex 9e46cac1..81376dbe 100644--- a/tweak/Makefile+++ b/tweak/Makefile@@ -8,7 +8,7 @@ TWEAK_NAME := spotifyglassSG_VERSION := $(shell sed -n 's/^Version: //p' control)-# Every source under Sources/, so a new feature needs no Makefile edit. Features/Flags/SGFlagList.m+# Every source under Sources/, so a new feature needs no Makefile edit. Shared/Flags/SGFlagList.m# is generated from the IPA by scripts/extract-flags.py.spotifyglass_FILES := $(shell find Sources -name '*.m' -o -name '*.x' -o -name '*.swift' | sort)spotifyglass_CFLAGS := -fobjc-arc -ISources -DSG_VERSION=\"$(SG_VERSION)\"diff --git a/tweak/Sources/Settings/SGModSettings.x b/tweak/Sources/App/ModSettings.xsimilarity index 96%rename from tweak/Sources/Settings/SGModSettings.xrename to tweak/Sources/App/ModSettings.xindex 9e08eea7..60dfedd0 100644--- a/tweak/Sources/Settings/SGModSettings.x+++ b/tweak/Sources/App/ModSettings.x@@ -12,16 +12,16 @@// x 48, 12pt chevron on the right. A pushed page (trees/settings notifications opened.txt) is a// UITableView bg #121212: header with an 11pt grey description at (16, 24), 53pt cells with the#import "Core/SGCore.h"-#import "SGPage.h"-#import "SGPageStyle.h"-#import "SGModPage.h"-#import "Features/Appearance/Appearance.h"-#import "Features/Navbar/Navbar.h"-#import "Features/Home/Home.h"-#import "Features/NowPlaying/NowPlaying.h"-#import "Features/AdBlock/AdBlock.h"-#import "Features/Flags/Flags.h"-#import "Features/About/About.h"+#import "Settings/SGPage.h"+#import "Settings/SGPageStyle.h"+#import "Settings/SGModPage.h"+#import "Native/Appearance/Appearance.h"+#import "Native/Navbar/Navbar.h"+#import "Native/Home/Home.h"+#import "Native/Player/NowPlaying.h"+#import "Shared/AdBlock/AdBlock.h"+#import "Shared/Flags/Flags.h"+#import "Shared/About/About.h"static const CGFloat kRowHeight = 56;static char kRowKey, kInsetKey;diff --git a/tweak/Sources/Features/Onboarding/Onboarding.h b/tweak/Sources/App/Onboarding/Onboarding.hsimilarity index 100%rename from tweak/Sources/Features/Onboarding/Onboarding.hrename to tweak/Sources/App/Onboarding/Onboarding.hdiff --git a/tweak/Sources/Features/Onboarding/Onboarding.x b/tweak/Sources/App/Onboarding/Onboarding.xsimilarity index 100%rename from tweak/Sources/Features/Onboarding/Onboarding.xrename to tweak/Sources/App/Onboarding/Onboarding.xdiff --git a/tweak/Sources/Features/Onboarding/Tour.m b/tweak/Sources/App/Onboarding/Tour.msimilarity index 98%rename from tweak/Sources/Features/Onboarding/Tour.mrename to tweak/Sources/App/Onboarding/Tour.mindex b5eb3781..91c319ce 100644--- a/tweak/Sources/Features/Onboarding/Tour.m+++ b/tweak/Sources/App/Onboarding/Tour.m@@ -1,15 +1,15 @@#import "Core/SGCore.h"#import "Settings/SGPageStyle.h"#import "Onboarding.h"-#import "Features/About/About.h"-#import "Features/AdBlock/AdBlock.h"-#import "Features/Appearance/Appearance.h"-#import "Features/Flags/Flags.h"-#import "Features/Home/Home.h"-#import "Features/Declutter/Declutter.h"-#import "Features/Navbar/Navbar.h"-#import "Features/Privacy/Privacy.h"-#import "Redesign/Kit/SGRedesign.h"+#import "Shared/About/About.h"+#import "Shared/AdBlock/AdBlock.h"+#import "Native/Appearance/Appearance.h"+#import "Shared/Flags/Flags.h"+#import "Native/Home/Home.h"+#import "Native/Player/Declutter.h"+#import "Native/Navbar/Navbar.h"+#import "Shared/Privacy/Privacy.h"+#import "Redesigned/Kit/SGRedesign.h"static const CGFloat kMargin = 24;static const CGFloat kCardRadius = 22;diff --git a/tweak/Sources/Core/SGBackdrop.m b/tweak/Sources/Core/SGBackdrop.mindex d5a723bd..263eb54c 100644--- a/tweak/Sources/Core/SGBackdrop.m+++ b/tweak/Sources/Core/SGBackdrop.m@@ -1,4 +1,4 @@-#import "Core/SGBackdrop.h"+#import "SGBackdrop.h"// Small enough that no shape of the cover survives the scaling back up, large enough to keep the// colours where they were in it.diff --git a/tweak/Sources/Core/SGCore.h b/tweak/Sources/Core/SGCore.hindex b3e7ffe7..16e1f652 100644--- a/tweak/Sources/Core/SGCore.h+++ b/tweak/Sources/Core/SGCore.h@@ -1,8 +1,8 @@// What every source file of the mod builds on. Feature-specific API lives in the feature's own// header under Features/, next to the keys it reads.-#import "Core/SGRuntime.h"-#import "Core/SGLog.h"-#import "Core/SGPrefs.h"-#import "Core/SGViewTree.h"-#import "Core/SGGlass.h"-#import "Core/SGBackdrop.h"+#import "SGRuntime.h"+#import "SGLog.h"+#import "SGPrefs.h"+#import "SGViewTree.h"+#import "SGGlass.h"+#import "SGBackdrop.h"diff --git a/tweak/Sources/Features/Album/Album.h b/tweak/Sources/Native/Album/Album.hsimilarity index 100%rename from tweak/Sources/Features/Album/Album.hrename to tweak/Sources/Native/Album/Album.hdiff --git a/tweak/Sources/Features/Album/Album.x b/tweak/Sources/Native/Album/Album.xsimilarity index 100%rename from tweak/Sources/Features/Album/Album.xrename to tweak/Sources/Native/Album/Album.xdiff --git a/tweak/Sources/Features/Album/AlbumSettings.m b/tweak/Sources/Native/Album/AlbumSettings.msimilarity index 100%rename from tweak/Sources/Features/Album/AlbumSettings.mrename to tweak/Sources/Native/Album/AlbumSettings.mdiff --git a/tweak/Sources/Features/Appearance/Accent.x b/tweak/Sources/Native/Appearance/Accent.xsimilarity index 100%rename from tweak/Sources/Features/Appearance/Accent.xrename to tweak/Sources/Native/Appearance/Accent.xdiff --git a/tweak/Sources/Features/Appearance/Amoled.x b/tweak/Sources/Native/Appearance/Amoled.xsimilarity index 100%rename from tweak/Sources/Features/Appearance/Amoled.xrename to tweak/Sources/Native/Appearance/Amoled.xdiff --git a/tweak/Sources/Features/Appearance/Appearance.h b/tweak/Sources/Native/Appearance/Appearance.hsimilarity index 100%rename from tweak/Sources/Features/Appearance/Appearance.hrename to tweak/Sources/Native/Appearance/Appearance.hdiff --git a/tweak/Sources/Features/Appearance/AppearanceSettings.m b/tweak/Sources/Native/Appearance/AppearanceSettings.msimilarity index 95%rename from tweak/Sources/Features/Appearance/AppearanceSettings.mrename to tweak/Sources/Native/Appearance/AppearanceSettings.mindex ad8874d8..4762abdd 100644--- a/tweak/Sources/Features/Appearance/AppearanceSettings.m+++ b/tweak/Sources/Native/Appearance/AppearanceSettings.m@@ -2,10 +2,10 @@#import "Settings/SGModPage.h"#import "Settings/SGPageStyle.h"#import "Appearance.h"-#import "Features/Navbar/Navbar.h"-#import "Features/Flags/Flags.h"-#import "Features/NowPlaying/NowPlaying.h"-#import "Redesign/Kit/SGRedesign.h"+#import "Native/Navbar/Navbar.h"+#import "Shared/Flags/Flags.h"+#import "Native/Player/NowPlaying.h"+#import "Redesigned/Kit/SGRedesign.h"NSString *const SGRedesignedUIInfo = @"Replaces Spotify's own screens with the mod's redesign, built in Liquid Glass: for now the full screen player with the lyrics under it, and every screen redesigned later joins it here. It also turns on Spotify's own glass bars, slider and sheets, and the mod's glass tab bar, search field and now playing bar.\n\nWhile it is on, the switches that change Spotify's own version of a redesigned screen are put away on that screen's page, since the screen is no longer Spotify's. Off, Spotify looks the way it does with the switches you set.\n\nChanges apply after you restart Spotify.";diff --git a/tweak/Sources/Features/Appearance/EdgeEffect.x b/tweak/Sources/Native/Appearance/EdgeEffect.xsimilarity index 100%rename from tweak/Sources/Features/Appearance/EdgeEffect.xrename to tweak/Sources/Native/Appearance/EdgeEffect.xdiff --git a/tweak/Sources/Features/Appearance/Repaint.x b/tweak/Sources/Native/Appearance/Repaint.xsimilarity index 100%rename from tweak/Sources/Features/Appearance/Repaint.xrename to tweak/Sources/Native/Appearance/Repaint.xdiff --git a/tweak/Sources/Features/Artist/Artist.h b/tweak/Sources/Native/Artist/Artist.hsimilarity index 100%rename from tweak/Sources/Features/Artist/Artist.hrename to tweak/Sources/Native/Artist/Artist.hdiff --git a/tweak/Sources/Features/Artist/Artist.x b/tweak/Sources/Native/Artist/Artist.xsimilarity index 100%rename from tweak/Sources/Features/Artist/Artist.xrename to tweak/Sources/Native/Artist/Artist.xdiff --git a/tweak/Sources/Features/Artist/ArtistSettings.m b/tweak/Sources/Native/Artist/ArtistSettings.msimilarity index 100%rename from tweak/Sources/Features/Artist/ArtistSettings.mrename to tweak/Sources/Native/Artist/ArtistSettings.mdiff --git a/tweak/Sources/Features/Home/Home.h b/tweak/Sources/Native/Home/Home.hsimilarity index 100%rename from tweak/Sources/Features/Home/Home.hrename to tweak/Sources/Native/Home/Home.hdiff --git a/tweak/Sources/Features/Home/HomeGradient.x b/tweak/Sources/Native/Home/HomeGradient.xsimilarity index 100%rename from tweak/Sources/Features/Home/HomeGradient.xrename to tweak/Sources/Native/Home/HomeGradient.xdiff --git a/tweak/Sources/Features/Home/HomeGradientChoices.m b/tweak/Sources/Native/Home/HomeGradientChoices.msimilarity index 100%rename from tweak/Sources/Features/Home/HomeGradientChoices.mrename to tweak/Sources/Native/Home/HomeGradientChoices.mdiff --git a/tweak/Sources/Features/Home/HomeSettings.m b/tweak/Sources/Native/Home/HomeSettings.msimilarity index 96%rename from tweak/Sources/Features/Home/HomeSettings.mrename to tweak/Sources/Native/Home/HomeSettings.mindex 42bf81f3..35e00f1d 100644--- a/tweak/Sources/Features/Home/HomeSettings.m+++ b/tweak/Sources/Native/Home/HomeSettings.m@@ -1,10 +1,10 @@#import "Core/SGCore.h"#import "Settings/SGModPage.h"#import "Home.h"-#import "Features/Declutter/Declutter.h"-#import "Features/Playlist/Playlist.h"-#import "Features/Artist/Artist.h"-#import "Features/Album/Album.h"+#import "Native/Player/Declutter.h"+#import "Native/Playlist/Playlist.h"+#import "Native/Artist/Artist.h"+#import "Native/Album/Album.h"static SGModRow *choiceRow(NSString *title, NSString *subtitle, SGHomeChoice choice) {return SGChoiceRow(title, subtitle, SGHomeChoiceKey(choice), SGHomeChoiceNames(choice),diff --git a/tweak/Sources/Features/Karaoke/KaraokePage.x b/tweak/Sources/Native/Lyrics/KaraokePage.xsimilarity index 97%rename from tweak/Sources/Features/Karaoke/KaraokePage.xrename to tweak/Sources/Native/Lyrics/KaraokePage.xindex e362a855..455961c8 100644--- a/tweak/Sources/Features/Karaoke/KaraokePage.x+++ b/tweak/Sources/Native/Lyrics/KaraokePage.x@@ -3,7 +3,7 @@// header, close button and controls stay working. It is laid over rather than swapped in: Spotify's// list keeps running underneath and comes back the moment a track has no synced lyrics.#import "Core/SGCore.h"-#import "Karaoke.h"+#import "Shared/Lyrics/Lyrics.h"static char kKaraokeKey;diff --git a/tweak/Sources/Features/Karaoke/KaraokeView.m b/tweak/Sources/Native/Lyrics/KaraokeView.msimilarity index 99%rename from tweak/Sources/Features/Karaoke/KaraokeView.mrename to tweak/Sources/Native/Lyrics/KaraokeView.mindex 4ccfd6fd..5670aff4 100644--- a/tweak/Sources/Features/Karaoke/KaraokeView.m+++ b/tweak/Sources/Native/Lyrics/KaraokeView.m@@ -1,7 +1,7 @@#import "Core/SGCore.h"-#import "Karaoke.h"-#import "Features/LyricsSources/LyricsSources.h"-#import "Features/NowPlaying/NowPlaying.h"+#import "Shared/Lyrics/Lyrics.h"+#import "Shared/LyricsSources/LyricsSources.h"+#import "Native/Player/NowPlaying.h"static const CGFloat kFontSize = 30, kMargin = 24, kLineGap = 24, kRowTighten = 2;// The card under the player is a seventh of the page's height, so it gets Spotify's own card typediff --git a/tweak/Sources/Features/Navbar/Navbar.h b/tweak/Sources/Native/Navbar/Navbar.hsimilarity index 100%rename from tweak/Sources/Features/Navbar/Navbar.hrename to tweak/Sources/Native/Navbar/Navbar.hdiff --git a/tweak/Sources/Features/Navbar/Navbar.x b/tweak/Sources/Native/Navbar/Navbar.xsimilarity index 99%rename from tweak/Sources/Features/Navbar/Navbar.xrename to tweak/Sources/Native/Navbar/Navbar.xindex 23cfc945..96f97f2a 100644--- a/tweak/Sources/Features/Navbar/Navbar.x+++ b/tweak/Sources/Native/Navbar/Navbar.x@@ -16,7 +16,7 @@#import "Core/SGCore.h"#import "Navbar.h"#import "Headers/SPTEncoreIconView.h"-#import "Redesign/Kit/SGRBridges.h"+#import "Redesigned/Kit/SGRBridges.h"#import <objc/message.h>static const CGFloat kIconSize = 24;diff --git a/tweak/Sources/Features/Navbar/NavbarLayout.m b/tweak/Sources/Native/Navbar/NavbarLayout.msimilarity index 100%rename from tweak/Sources/Features/Navbar/NavbarLayout.mrename to tweak/Sources/Native/Navbar/NavbarLayout.mdiff --git a/tweak/Sources/Features/Navbar/NavbarSettings.m b/tweak/Sources/Native/Navbar/NavbarSettings.msimilarity index 99%rename from tweak/Sources/Features/Navbar/NavbarSettings.mrename to tweak/Sources/Native/Navbar/NavbarSettings.mindex 55568c87..84f5355e 100644--- a/tweak/Sources/Features/Navbar/NavbarSettings.m+++ b/tweak/Sources/Native/Navbar/NavbarSettings.m@@ -2,7 +2,7 @@#import "Settings/SGPage.h"#import "Settings/SGPageStyle.h"#import "Navbar.h"-#import "Features/Appearance/Appearance.h"+#import "Native/Appearance/Appearance.h"// What "Add a tab" offers: URIs Spotify's own router resolves to a page of its own, each with the// name of the SPTEncoreIcon class method that draws its glyph.diff --git a/tweak/Sources/Features/Declutter/Declutter.h b/tweak/Sources/Native/Player/Declutter.hsimilarity index 100%rename from tweak/Sources/Features/Declutter/Declutter.hrename to tweak/Sources/Native/Player/Declutter.hdiff --git a/tweak/Sources/Features/Karaoke/KaraokeCard.x b/tweak/Sources/Native/Player/KaraokeCard.xsimilarity index 98%rename from tweak/Sources/Features/Karaoke/KaraokeCard.xrename to tweak/Sources/Native/Player/KaraokeCard.xindex 201e6fe9..ba77a873 100644--- a/tweak/Sources/Features/Karaoke/KaraokeCard.x+++ b/tweak/Sources/Native/Player/KaraokeCard.x@@ -11,7 +11,7 @@// underneath and comes back the moment a track has no synced lyrics. It takes no touches, so the// tap that opens the full screen page is still Spotify's to answer.#import "Core/SGCore.h"-#import "Karaoke.h"+#import "Shared/Lyrics/Lyrics.h"// Below this the card is collapsed, by Declutter or while it is still being laid out.static const CGFloat kLivingHeight = 40;diff --git a/tweak/Sources/Features/NowPlaying/Lyrics.x b/tweak/Sources/Native/Player/LyricsCard.xsimilarity index 99%rename from tweak/Sources/Features/NowPlaying/Lyrics.xrename to tweak/Sources/Native/Player/LyricsCard.xindex 605e3c00..109f8810 100644--- a/tweak/Sources/Features/NowPlaying/Lyrics.x+++ b/tweak/Sources/Native/Player/LyricsCard.x@@ -16,7 +16,7 @@// front of whatever that view still fills itself with, rather than behind the whole page.#import "Core/SGCore.h"#import "NowPlaying.h"-#import "Redesign/Kit/SGRedesign.h"+#import "Redesigned/Kit/SGRedesign.h"static const CGFloat kCardRadius = 16;static char kCardGlassKey, kPageGlassKey;diff --git a/tweak/Sources/Features/NowPlaying/NowPlaying.h b/tweak/Sources/Native/Player/NowPlaying.hsimilarity index 100%rename from tweak/Sources/Features/NowPlaying/NowPlaying.hrename to tweak/Sources/Native/Player/NowPlaying.hdiff --git a/tweak/Sources/Features/NowPlaying/Player.x b/tweak/Sources/Native/Player/Player.xsimilarity index 99%rename from tweak/Sources/Features/NowPlaying/Player.xrename to tweak/Sources/Native/Player/Player.xindex 84c044a8..e065053e 100644--- a/tweak/Sources/Features/NowPlaying/Player.x+++ b/tweak/Sources/Native/Player/Player.x@@ -22,8 +22,8 @@// contrast, and the timestamps take monospaced digits so they stop twitching every second.#import "Core/SGCore.h"#import "NowPlaying.h"-#import "Features/Appearance/Appearance.h"-#import "Redesign/Kit/SGRedesign.h"+#import "Native/Appearance/Appearance.h"+#import "Redesigned/Kit/SGRedesign.h"static const CGFloat kButtonMin = 36, kButtonMax = 48;static const CGFloat kArtRadius = 12;diff --git a/tweak/Sources/Features/Declutter/Declutter.x b/tweak/Sources/Native/Player/PlayerDeclutter.xsimilarity index 99%rename from tweak/Sources/Features/Declutter/Declutter.xrename to tweak/Sources/Native/Player/PlayerDeclutter.xindex b6c51af8..0411204c 100644--- a/tweak/Sources/Features/Declutter/Declutter.x+++ b/tweak/Sources/Native/Player/PlayerDeclutter.x@@ -10,7 +10,7 @@// and the queue; track info ends with the add-to button.#import "Core/SGCore.h"#import "Declutter.h"-#import "Redesign/Kit/SGRedesign.h"+#import "Redesigned/Kit/SGRedesign.h"#pragma mark - cards and sectionsdiff --git a/tweak/Sources/Features/NowPlaying/NowPlayingSettings.m b/tweak/Sources/Native/Player/PlayerSettings.msimilarity index 97%rename from tweak/Sources/Features/NowPlaying/NowPlayingSettings.mrename to tweak/Sources/Native/Player/PlayerSettings.mindex 7fd6d79f..50b73d9f 100644--- a/tweak/Sources/Features/NowPlaying/NowPlayingSettings.m+++ b/tweak/Sources/Native/Player/PlayerSettings.m@@ -1,13 +1,13 @@#import "Core/SGCore.h"#import "Settings/SGModPage.h"#import "NowPlaying.h"-#import "Features/Declutter/Declutter.h"-#import "Features/Gestures/Gestures.h"-#import "Features/ArtistBlock/ArtistBlock.h"-#import "Features/Karaoke/Karaoke.h"-#import "Features/LockScreenLyrics/LockScreenLyrics.h"-#import "Features/LyricsSources/LyricsSources.h"-#import "Redesign/Kit/SGRedesign.h"+#import "Declutter.h"+#import "Shared/Gestures/Gestures.h"+#import "Shared/ArtistBlock/ArtistBlock.h"+#import "Shared/Lyrics/Lyrics.h"+#import "Shared/LockScreenLyrics/LockScreenLyrics.h"+#import "Shared/LyricsSources/LyricsSources.h"+#import "Redesigned/Kit/SGRedesign.h"static UIViewController *nowPlayingBarPage(void) {return [[SGModPage alloc] initWithTitle:@"Now playing bar" intro:SGRestartNote sections:@[diff --git a/tweak/Sources/Features/Playlist/Playlist.h b/tweak/Sources/Native/Playlist/Playlist.hsimilarity index 100%rename from tweak/Sources/Features/Playlist/Playlist.hrename to tweak/Sources/Native/Playlist/Playlist.hdiff --git a/tweak/Sources/Features/Playlist/Playlist.x b/tweak/Sources/Native/Playlist/Playlist.xsimilarity index 100%rename from tweak/Sources/Features/Playlist/Playlist.xrename to tweak/Sources/Native/Playlist/Playlist.xdiff --git a/tweak/Sources/Features/Playlist/PlaylistSettings.m b/tweak/Sources/Native/Playlist/PlaylistSettings.msimilarity index 100%rename from tweak/Sources/Features/Playlist/PlaylistSettings.mrename to tweak/Sources/Native/Playlist/PlaylistSettings.mdiff --git a/tweak/Sources/Redesign/Kit/SGRBridges.h b/tweak/Sources/Redesigned/Kit/SGRBridges.hsimilarity index 100%rename from tweak/Sources/Redesign/Kit/SGRBridges.hrename to tweak/Sources/Redesigned/Kit/SGRBridges.hdiff --git a/tweak/Sources/Redesign/Kit/SGRBridges.x b/tweak/Sources/Redesigned/Kit/SGRBridges.xsimilarity index 99%rename from tweak/Sources/Redesign/Kit/SGRBridges.xrename to tweak/Sources/Redesigned/Kit/SGRBridges.xindex ddd1c505..ade01d51 100644--- a/tweak/Sources/Redesign/Kit/SGRBridges.x+++ b/tweak/Sources/Redesigned/Kit/SGRBridges.x@@ -2,7 +2,7 @@// SGRBridges.h names the hooks and why they are the ones.#import "Core/SGCore.h"#import "Headers/SPTLinkDispatcherImplementation.h"-#import "Features/NowPlaying/NowPlaying.h"+#import "Native/Player/NowPlaying.h"#import "SGRBridges.h"#import "SGRedesign.h"#import "SGRRestyle.h"diff --git a/tweak/Sources/Redesign/Kit/SGRField.h b/tweak/Sources/Redesigned/Kit/SGRField.hsimilarity index 100%rename from tweak/Sources/Redesign/Kit/SGRField.hrename to tweak/Sources/Redesigned/Kit/SGRField.hdiff --git a/tweak/Sources/Redesign/Kit/SGRField.m b/tweak/Sources/Redesigned/Kit/SGRField.msimilarity index 99%rename from tweak/Sources/Redesign/Kit/SGRField.mrename to tweak/Sources/Redesigned/Kit/SGRField.mindex 348a3228..5c884511 100644--- a/tweak/Sources/Redesign/Kit/SGRField.m+++ b/tweak/Sources/Redesigned/Kit/SGRField.m@@ -1,5 +1,5 @@#import "Core/SGCore.h"-#import "Features/Appearance/Appearance.h"+#import "Native/Appearance/Appearance.h"#import "SGRField.h"#import "SGRPalette.h"#import "SGRTokens.h"diff --git a/tweak/Sources/Redesign/Kit/SGRGlass.h b/tweak/Sources/Redesigned/Kit/SGRGlass.hsimilarity index 100%rename from tweak/Sources/Redesign/Kit/SGRGlass.hrename to tweak/Sources/Redesigned/Kit/SGRGlass.hdiff --git a/tweak/Sources/Redesign/Kit/SGRGlass.m b/tweak/Sources/Redesigned/Kit/SGRGlass.msimilarity index 100%rename from tweak/Sources/Redesign/Kit/SGRGlass.mrename to tweak/Sources/Redesigned/Kit/SGRGlass.mdiff --git a/tweak/Sources/Redesign/Kit/SGRGlyph.h b/tweak/Sources/Redesigned/Kit/SGRGlyph.hsimilarity index 100%rename from tweak/Sources/Redesign/Kit/SGRGlyph.hrename to tweak/Sources/Redesigned/Kit/SGRGlyph.hdiff --git a/tweak/Sources/Redesign/Kit/SGRGlyph.m b/tweak/Sources/Redesigned/Kit/SGRGlyph.msimilarity index 100%rename from tweak/Sources/Redesign/Kit/SGRGlyph.mrename to tweak/Sources/Redesigned/Kit/SGRGlyph.mdiff --git a/tweak/Sources/Redesign/Kit/SGRKit.h b/tweak/Sources/Redesigned/Kit/SGRKit.hsimilarity index 100%rename from tweak/Sources/Redesign/Kit/SGRKit.hrename to tweak/Sources/Redesigned/Kit/SGRKit.hdiff --git a/tweak/Sources/Redesign/Kit/SGRPalette.h b/tweak/Sources/Redesigned/Kit/SGRPalette.hsimilarity index 100%rename from tweak/Sources/Redesign/Kit/SGRPalette.hrename to tweak/Sources/Redesigned/Kit/SGRPalette.hdiff --git a/tweak/Sources/Redesign/Kit/SGRPalette.m b/tweak/Sources/Redesigned/Kit/SGRPalette.msimilarity index 100%rename from tweak/Sources/Redesign/Kit/SGRPalette.mrename to tweak/Sources/Redesigned/Kit/SGRPalette.mdiff --git a/tweak/Sources/Redesign/Kit/SGRRestyle.h b/tweak/Sources/Redesigned/Kit/SGRRestyle.hsimilarity index 100%rename from tweak/Sources/Redesign/Kit/SGRRestyle.hrename to tweak/Sources/Redesigned/Kit/SGRRestyle.hdiff --git a/tweak/Sources/Redesign/Kit/SGRRestyle.m b/tweak/Sources/Redesigned/Kit/SGRRestyle.msimilarity index 100%rename from tweak/Sources/Redesign/Kit/SGRRestyle.mrename to tweak/Sources/Redesigned/Kit/SGRRestyle.mdiff --git a/tweak/Sources/Redesign/Kit/SGRTokens.h b/tweak/Sources/Redesigned/Kit/SGRTokens.hsimilarity index 100%rename from tweak/Sources/Redesign/Kit/SGRTokens.hrename to tweak/Sources/Redesigned/Kit/SGRTokens.hdiff --git a/tweak/Sources/Redesign/Kit/SGRTokens.m b/tweak/Sources/Redesigned/Kit/SGRTokens.msimilarity index 99%rename from tweak/Sources/Redesign/Kit/SGRTokens.mrename to tweak/Sources/Redesigned/Kit/SGRTokens.mindex 26436937..dd67acbb 100644--- a/tweak/Sources/Redesign/Kit/SGRTokens.m+++ b/tweak/Sources/Redesigned/Kit/SGRTokens.m@@ -1,6 +1,6 @@#import <CoreText/SFNTLayoutTypes.h>#import "Core/SGCore.h"-#import "Features/Appearance/Appearance.h"+#import "Native/Appearance/Appearance.h"#import "SGRTokens.h"const CGFloat SGRSideMargin = 16;diff --git a/tweak/Sources/Redesign/Kit/SGRedesign.h b/tweak/Sources/Redesigned/Kit/SGRedesign.hsimilarity index 100%rename from tweak/Sources/Redesign/Kit/SGRedesign.hrename to tweak/Sources/Redesigned/Kit/SGRedesign.hdiff --git a/tweak/Sources/Redesign/Kit/SGRedesign.m b/tweak/Sources/Redesigned/Kit/SGRedesign.msimilarity index 100%rename from tweak/Sources/Redesign/Kit/SGRedesign.mrename to tweak/Sources/Redesigned/Kit/SGRedesign.mdiff --git a/tweak/Sources/Features/Appearance/SearchField.x b/tweak/Sources/Redesigned/Navbar/SearchField.xsimilarity index 99%rename from tweak/Sources/Features/Appearance/SearchField.xrename to tweak/Sources/Redesigned/Navbar/SearchField.xindex 29a4a5b9..642df45d 100644--- a/tweak/Sources/Features/Appearance/SearchField.x+++ b/tweak/Sources/Redesigned/Navbar/SearchField.x@@ -12,7 +12,7 @@// layout pass that styled it: both are then invisible on the glass until the next pass, a second or// so later. So the two setters are refused for as long as the field is a capsule.#import "Core/SGCore.h"-#import "Appearance.h"+#import "Native/Appearance/Appearance.h"#import "Diagnostics/Diagnostics.h"// Spotify's glyph view, resolved at runtime; declared on UIView so the call and the hook belowdiff --git a/tweak/Sources/Features/Navbar/TabBar.x b/tweak/Sources/Redesigned/Navbar/TabBar.xsimilarity index 99%rename from tweak/Sources/Features/Navbar/TabBar.xrename to tweak/Sources/Redesigned/Navbar/TabBar.xindex 2303150d..92b8ef20 100644--- a/tweak/Sources/Features/Navbar/TabBar.x+++ b/tweak/Sources/Redesigned/Navbar/TabBar.x@@ -10,8 +10,8 @@// Tree (trees/home.txt): NavigationUI_TabBarImpl.TabBarView > TabBarCompactView > UIStackView of// ElementContentView<TabBarItemElement>, each with an SPTEncoreIconView and an SPTEncoreLabel.#import "Core/SGCore.h"-#import "Navbar.h"-#import "Features/Appearance/Appearance.h"+#import "Native/Navbar/Navbar.h"+#import "Native/Appearance/Appearance.h"#import "Settings/SGPage.h"#import "Headers/SPTEncoreIconView.h"#import <objc/message.h>diff --git a/tweak/Sources/Features/NowPlaying/NowPlayingBar.x b/tweak/Sources/Redesigned/NowPlayingBar/NowPlayingBar.xsimilarity index 99%rename from tweak/Sources/Features/NowPlaying/NowPlayingBar.xrename to tweak/Sources/Redesigned/NowPlayingBar/NowPlayingBar.xindex 39cb6df1..28a8ea22 100644--- a/tweak/Sources/Features/NowPlaying/NowPlayingBar.x+++ b/tweak/Sources/Redesigned/NowPlayingBar/NowPlayingBar.x@@ -11,7 +11,7 @@// at {8,0} 386x56 > UIView 386x56 (the painted card) > artwork 40x40 r=4, title stack,// progress line 370x2 at the bottom. The glass pane goes on the container's view.#import "Core/SGCore.h"-#import "NowPlaying.h"+#import "Native/Player/NowPlaying.h"static const CGFloat kCardRadius = 24;static const NSTimeInterval kFadeOut = 0.12, kFadeIn = 0.2;diff --git a/tweak/Sources/Redesign/Player/Player.h b/tweak/Sources/Redesigned/Player/Player.hsimilarity index 100%rename from tweak/Sources/Redesign/Player/Player.hrename to tweak/Sources/Redesigned/Player/Player.hdiff --git a/tweak/Sources/Redesign/Player/PlayerArtwork.x b/tweak/Sources/Redesigned/Player/PlayerArtwork.xsimilarity index 99%rename from tweak/Sources/Redesign/Player/PlayerArtwork.xrename to tweak/Sources/Redesigned/Player/PlayerArtwork.xindex 9e0567dc..0eb303b9 100644--- a/tweak/Sources/Redesign/Player/PlayerArtwork.x+++ b/tweak/Sources/Redesigned/Player/PlayerArtwork.x@@ -11,7 +11,7 @@// (NowPlaying_ECMKit.MaskView, 01.txt:86) and the cover under it has to match where it lands. Once// the transition is over a paused cover springs down.#import "Core/SGCore.h"-#import "Redesign/Kit/SGRKit.h"+#import "Redesigned/Kit/SGRKit.h"#import "Player.h"static const CGFloat kPausedScale = 0.84, kPausedScaleReduceMotion = 0.92;diff --git a/tweak/Sources/Redesign/Player/PlayerCards.x b/tweak/Sources/Redesigned/Player/PlayerCards.xsimilarity index 99%rename from tweak/Sources/Redesign/Player/PlayerCards.xrename to tweak/Sources/Redesigned/Player/PlayerCards.xindex e4de1caf..0205a155 100644--- a/tweak/Sources/Redesign/Player/PlayerCards.x+++ b/tweak/Sources/Redesigned/Player/PlayerCards.x@@ -14,8 +14,8 @@// cells of lists inside a card (WatchFeed's) name WatchFeed_ComponentAPI instead, so they are left to// their card. The card's share button is id=lyrics-share-button (lyrics/01.txt:1009).#import "Core/SGCore.h"-#import "Redesign/Kit/SGRKit.h"-#import "Features/Karaoke/Karaoke.h"+#import "Redesigned/Kit/SGRKit.h"+#import "Shared/Lyrics/Lyrics.h"#import "Player.h"// Below this a cell is collapsed, or still being laid out.diff --git a/tweak/Sources/Redesign/Player/PlayerControls.x b/tweak/Sources/Redesigned/Player/PlayerControls.xsimilarity index 99%rename from tweak/Sources/Redesign/Player/PlayerControls.xrename to tweak/Sources/Redesigned/Player/PlayerControls.xindex 30ea9cfc..5a4ce24b 100644--- a/tweak/Sources/Redesign/Player/PlayerControls.x+++ b/tweak/Sources/Redesigned/Player/PlayerControls.x@@ -17,7 +17,7 @@// is id=...-internal (:227). The sticky header has a play button of its own (:492), which a search// inside the unit's view never reaches.#import "Core/SGCore.h"-#import "Redesign/Kit/SGRKit.h"+#import "Redesigned/Kit/SGRKit.h"#import "Player.h"static const CGFloat kSkipGlyphSize = 32, kPlayGlyphSize = 44;diff --git a/tweak/Sources/Redesign/Player/PlayerField.x b/tweak/Sources/Redesigned/Player/PlayerField.xsimilarity index 99%rename from tweak/Sources/Redesign/Player/PlayerField.xrename to tweak/Sources/Redesigned/Player/PlayerField.xindex 4e306ca6..9caf836e 100644--- a/tweak/Sources/Redesign/Player/PlayerField.x+++ b/tweak/Sources/Redesigned/Player/PlayerField.x@@ -16,7 +16,7 @@// backgroundViewModel:didChangeColor:playerState:] (objc-methods.txt:57949).#import "Core/SGCore.h"#import "Settings/SGModPage.h"-#import "Redesign/Kit/SGRKit.h"+#import "Redesigned/Kit/SGRKit.h"#import "Player.h"// Past the plane's edges: above for the pull that dismisses the player, below for the bounce at the enddiff --git a/tweak/Sources/Redesign/Player/PlayerFooter.x b/tweak/Sources/Redesigned/Player/PlayerFooter.xsimilarity index 99%rename from tweak/Sources/Redesign/Player/PlayerFooter.xrename to tweak/Sources/Redesigned/Player/PlayerFooter.xindex 954f73ff..02b0a1ef 100644--- a/tweak/Sources/Redesign/Player/PlayerFooter.x+++ b/tweak/Sources/Redesigned/Player/PlayerFooter.x@@ -16,7 +16,7 @@// id=QueueButtonNowPlaying 47x32. The card's button is id=lyrics-expand-button, an EncoreButton, which// is a UIButton (trees/clean/lyrics/01.txt:1013, objc-meta-Spotify.txt:216095).#import "Core/SGCore.h"-#import "Redesign/Kit/SGRKit.h"+#import "Redesigned/Kit/SGRKit.h"#import "Player.h"static const CGFloat kLyricsGlyphSize = 20;diff --git a/tweak/Sources/Redesign/Player/PlayerHeader.x b/tweak/Sources/Redesigned/Player/PlayerHeader.xsimilarity index 98%rename from tweak/Sources/Redesign/Player/PlayerHeader.xrename to tweak/Sources/Redesigned/Player/PlayerHeader.xindex b5241982..7afe69fa 100644--- a/tweak/Sources/Redesign/Player/PlayerHeader.x+++ b/tweak/Sources/Redesigned/Player/PlayerHeader.x@@ -17,7 +17,7 @@// id=now-playing-minimize-button 48x48 (:103) and id=Context menu 48x48 (:122), the playlist name// between them.#import "Core/SGCore.h"-#import "Redesign/Kit/SGRKit.h"+#import "Redesigned/Kit/SGRKit.h"#import "Player.h"static char kGlassKey, kCloseKey, kMoreKey;diff --git a/tweak/Sources/Settings/SGModPage.m b/tweak/Sources/Settings/SGModPage.mindex 13d9db7d..389bd9fa 100644--- a/tweak/Sources/Settings/SGModPage.m+++ b/tweak/Sources/Settings/SGModPage.m@@ -2,10 +2,10 @@#import "SGPageStyle.h"#import "SGGlowSwitch.h"#import "Core/SGCore.h"-#import "Features/Flags/Flags.h"-#import "Features/About/About.h"-#import "Features/AdBlock/AdBlock.h"-#import "Redesign/Kit/SGRedesign.h"+#import "Shared/Flags/Flags.h"+#import "Shared/About/About.h"+#import "Shared/AdBlock/AdBlock.h"+#import "Redesigned/Kit/SGRedesign.h"NSString *const SGRestartNote = @"Changes apply after you restart Spotify.";diff --git a/tweak/Sources/Settings/SGPageStyle.m b/tweak/Sources/Settings/SGPageStyle.mindex 2b54da97..00399d6c 100644--- a/tweak/Sources/Settings/SGPageStyle.m+++ b/tweak/Sources/Settings/SGPageStyle.m@@ -1,6 +1,6 @@#import "SGPageStyle.h"#import "Core/SGCore.h"-#import "Features/Appearance/Appearance.h"+#import "Native/Appearance/Appearance.h"static UIFont *sg_titleFont, *sg_subtitleFont;diff --git a/tweak/Sources/Features/About/About.h b/tweak/Sources/Shared/About/About.hsimilarity index 100%rename from tweak/Sources/Features/About/About.hrename to tweak/Sources/Shared/About/About.hdiff --git a/tweak/Sources/Features/About/AboutSettings.m b/tweak/Sources/Shared/About/AboutSettings.msimilarity index 98%rename from tweak/Sources/Features/About/AboutSettings.mrename to tweak/Sources/Shared/About/AboutSettings.mindex 1ce3ddcd..0920d0ef 100644--- a/tweak/Sources/Features/About/AboutSettings.m+++ b/tweak/Sources/Shared/About/AboutSettings.m@@ -1,7 +1,7 @@#import "Core/SGCore.h"#import "Settings/SGPageStyle.h"#import "About.h"-#import "Features/Onboarding/Onboarding.h"+#import "App/Onboarding/Onboarding.h"// Every key of the mod's is under one prefix, so a reset is a sweep of the defaults with the stock// marker of SGPrefs.h left behind; the hooks read them at launch, so it ends in a restart.diff --git a/tweak/Sources/Features/About/Backup.m b/tweak/Sources/Shared/About/Backup.msimilarity index 100%rename from tweak/Sources/Features/About/Backup.mrename to tweak/Sources/Shared/About/Backup.mdiff --git a/tweak/Sources/Features/About/Signing.m b/tweak/Sources/Shared/About/Signing.msimilarity index 99%rename from tweak/Sources/Features/About/Signing.mrename to tweak/Sources/Shared/About/Signing.mindex 9fdf6621..73cd600a 100644--- a/tweak/Sources/Features/About/Signing.m+++ b/tweak/Sources/Shared/About/Signing.m@@ -9,7 +9,7 @@#import "Core/SGCore.h"#import "Settings/SGPageStyle.h"#import "About.h"-#import "Features/Onboarding/Onboarding.h"+#import "App/Onboarding/Onboarding.h"#import <dlfcn.h>NSString *const SGSigningHelpURL = @"https://github.com/skopevoj/spoti.pw#signing-it-yourself";diff --git a/tweak/Sources/Features/About/Update.m b/tweak/Sources/Shared/About/Update.msimilarity index 100%rename from tweak/Sources/Features/About/Update.mrename to tweak/Sources/Shared/About/Update.mdiff --git a/tweak/Sources/Features/AdBlock/AdBlock.h b/tweak/Sources/Shared/AdBlock/AdBlock.hsimilarity index 100%rename from tweak/Sources/Features/AdBlock/AdBlock.hrename to tweak/Sources/Shared/AdBlock/AdBlock.hdiff --git a/tweak/Sources/Features/AdBlock/AdBlock.m b/tweak/Sources/Shared/AdBlock/AdBlock.msimilarity index 100%rename from tweak/Sources/Features/AdBlock/AdBlock.mrename to tweak/Sources/Shared/AdBlock/AdBlock.mdiff --git a/tweak/Sources/Features/AdBlock/AdBlockSettings.m b/tweak/Sources/Shared/AdBlock/AdBlockSettings.msimilarity index 99%rename from tweak/Sources/Features/AdBlock/AdBlockSettings.mrename to tweak/Sources/Shared/AdBlock/AdBlockSettings.mindex 96a6113d..7a4911fb 100644--- a/tweak/Sources/Features/AdBlock/AdBlockSettings.m+++ b/tweak/Sources/Shared/AdBlock/AdBlockSettings.m@@ -1,6 +1,6 @@#import "Settings/SGModPage.h"#import "AdBlock.h"-#import "Features/Privacy/Privacy.h"+#import "Shared/Privacy/Privacy.h"NSString *const SGFakePremiumWarning = @"This is the part of EeveeSpotify Spotify's takedown went after, and it has not been tested here. It can end in a forced logout or worse for the account. A Premium account gains nothing from it.";diff --git a/tweak/Sources/Features/AdBlock/AdHubs.x b/tweak/Sources/Shared/AdBlock/AdHubs.xsimilarity index 100%rename from tweak/Sources/Features/AdBlock/AdHubs.xrename to tweak/Sources/Shared/AdBlock/AdHubs.xdiff --git a/tweak/Sources/Features/AdBlock/AdNetwork.x b/tweak/Sources/Shared/AdBlock/AdNetwork.xsimilarity index 100%rename from tweak/Sources/Features/AdBlock/AdNetwork.xrename to tweak/Sources/Shared/AdBlock/AdNetwork.xdiff --git a/tweak/Sources/Features/AdBlock/AdPopups.x b/tweak/Sources/Shared/AdBlock/AdPopups.xsimilarity index 100%rename from tweak/Sources/Features/AdBlock/AdPopups.xrename to tweak/Sources/Shared/AdBlock/AdPopups.xdiff --git a/tweak/Sources/Features/AdBlock/AdServices.x b/tweak/Sources/Shared/AdBlock/AdServices.xsimilarity index 100%rename from tweak/Sources/Features/AdBlock/AdServices.xrename to tweak/Sources/Shared/AdBlock/AdServices.xdiff --git a/tweak/Sources/Features/AdBlock/Crossfade.x b/tweak/Sources/Shared/AdBlock/Crossfade.xsimilarity index 100%rename from tweak/Sources/Features/AdBlock/Crossfade.xrename to tweak/Sources/Shared/AdBlock/Crossfade.xdiff --git a/tweak/Sources/Features/AdBlock/Feeds.m b/tweak/Sources/Shared/AdBlock/Feeds.msimilarity index 100%rename from tweak/Sources/Features/AdBlock/Feeds.mrename to tweak/Sources/Shared/AdBlock/Feeds.mdiff --git a/tweak/Sources/Features/AdBlock/Premium.m b/tweak/Sources/Shared/AdBlock/Premium.msimilarity index 100%rename from tweak/Sources/Features/AdBlock/Premium.mrename to tweak/Sources/Shared/AdBlock/Premium.mdiff --git a/tweak/Sources/Features/AdBlock/Protobuf.h b/tweak/Sources/Shared/AdBlock/Protobuf.hsimilarity index 100%rename from tweak/Sources/Features/AdBlock/Protobuf.hrename to tweak/Sources/Shared/AdBlock/Protobuf.hdiff --git a/tweak/Sources/Features/AdBlock/Protobuf.m b/tweak/Sources/Shared/AdBlock/Protobuf.msimilarity index 100%rename from tweak/Sources/Features/AdBlock/Protobuf.mrename to tweak/Sources/Shared/AdBlock/Protobuf.mdiff --git a/tweak/Sources/Features/ArtistBlock/ArtistBlock.h b/tweak/Sources/Shared/ArtistBlock/ArtistBlock.hsimilarity index 100%rename from tweak/Sources/Features/ArtistBlock/ArtistBlock.hrename to tweak/Sources/Shared/ArtistBlock/ArtistBlock.hdiff --git a/tweak/Sources/Features/ArtistBlock/ArtistBlock.m b/tweak/Sources/Shared/ArtistBlock/ArtistBlock.msimilarity index 100%rename from tweak/Sources/Features/ArtistBlock/ArtistBlock.mrename to tweak/Sources/Shared/ArtistBlock/ArtistBlock.mdiff --git a/tweak/Sources/Features/ArtistBlock/ArtistBlockSettings.m b/tweak/Sources/Shared/ArtistBlock/ArtistBlockSettings.msimilarity index 100%rename from tweak/Sources/Features/ArtistBlock/ArtistBlockSettings.mrename to tweak/Sources/Shared/ArtistBlock/ArtistBlockSettings.mdiff --git a/tweak/Sources/Features/ArtistBlock/ArtistSkip.x b/tweak/Sources/Shared/ArtistBlock/ArtistSkip.xsimilarity index 100%rename from tweak/Sources/Features/ArtistBlock/ArtistSkip.xrename to tweak/Sources/Shared/ArtistBlock/ArtistSkip.xdiff --git a/tweak/Sources/Features/Flags/FlagPages.m b/tweak/Sources/Shared/Flags/FlagPages.msimilarity index 100%rename from tweak/Sources/Features/Flags/FlagPages.mrename to tweak/Sources/Shared/Flags/FlagPages.mdiff --git a/tweak/Sources/Features/Flags/Flags.h b/tweak/Sources/Shared/Flags/Flags.hsimilarity index 100%rename from tweak/Sources/Features/Flags/Flags.hrename to tweak/Sources/Shared/Flags/Flags.hdiff --git a/tweak/Sources/Features/Flags/Flags.x b/tweak/Sources/Shared/Flags/Flags.xsimilarity index 96%rename from tweak/Sources/Features/Flags/Flags.xrename to tweak/Sources/Shared/Flags/Flags.xindex 53a40036..197c0c5c 100644--- a/tweak/Sources/Features/Flags/Flags.x+++ b/tweak/Sources/Shared/Flags/Flags.x@@ -5,9 +5,9 @@// it ships switched off and Redesigned UI turns on.#import "Core/SGCore.h"#import "Flags.h"-#import "Features/AdBlock/AdBlock.h"-#import "Features/LyricsSources/LyricsSources.h"-#import "Redesign/Kit/SGRedesign.h"+#import "Shared/AdBlock/AdBlock.h"+#import "Shared/LyricsSources/LyricsSources.h"+#import "Redesigned/Kit/SGRedesign.h"BOOL SGGlassOwnsFlag(NSString *key) {static NSSet<NSString *> *owned;diff --git a/tweak/Sources/Features/Flags/FlagsPage.m b/tweak/Sources/Shared/Flags/FlagsPage.msimilarity index 100%rename from tweak/Sources/Features/Flags/FlagsPage.mrename to tweak/Sources/Shared/Flags/FlagsPage.mdiff --git a/tweak/Sources/Features/Gestures/GestureZones.m b/tweak/Sources/Shared/Gestures/GestureZones.msimilarity index 100%rename from tweak/Sources/Features/Gestures/GestureZones.mrename to tweak/Sources/Shared/Gestures/GestureZones.mdiff --git a/tweak/Sources/Features/Gestures/Gestures.h b/tweak/Sources/Shared/Gestures/Gestures.hsimilarity index 100%rename from tweak/Sources/Features/Gestures/Gestures.hrename to tweak/Sources/Shared/Gestures/Gestures.hdiff --git a/tweak/Sources/Features/Gestures/Gestures.x b/tweak/Sources/Shared/Gestures/Gestures.xsimilarity index 100%rename from tweak/Sources/Features/Gestures/Gestures.xrename to tweak/Sources/Shared/Gestures/Gestures.xdiff --git a/tweak/Sources/Features/Gestures/GesturesSettings.m b/tweak/Sources/Shared/Gestures/GesturesSettings.msimilarity index 100%rename from tweak/Sources/Features/Gestures/GesturesSettings.mrename to tweak/Sources/Shared/Gestures/GesturesSettings.mdiff --git a/tweak/Sources/Features/LockScreenLyrics/LockScreenLyrics.h b/tweak/Sources/Shared/LockScreenLyrics/LockScreenLyrics.hsimilarity index 100%rename from tweak/Sources/Features/LockScreenLyrics/LockScreenLyrics.hrename to tweak/Sources/Shared/LockScreenLyrics/LockScreenLyrics.hdiff --git a/tweak/Sources/Features/LockScreenLyrics/LockScreenLyrics.x b/tweak/Sources/Shared/LockScreenLyrics/LockScreenLyrics.xsimilarity index 99%rename from tweak/Sources/Features/LockScreenLyrics/LockScreenLyrics.xrename to tweak/Sources/Shared/LockScreenLyrics/LockScreenLyrics.xindex 12e04071..0bde386d 100644--- a/tweak/Sources/Features/LockScreenLyrics/LockScreenLyrics.x+++ b/tweak/Sources/Shared/LockScreenLyrics/LockScreenLyrics.x@@ -3,7 +3,7 @@#import <MediaPlayer/MediaPlayer.h>#import "Core/SGCore.h"#import "LockScreenLyrics.h"-#import "Features/Karaoke/Karaoke.h"+#import "Shared/Lyrics/Lyrics.h"#import "Headers/SPTPlayer.h"static const NSTimeInterval kTick = 0.25;diff --git a/tweak/Sources/Features/Karaoke/KaraokeSource.x b/tweak/Sources/Shared/Lyrics/KaraokeSource.xsimilarity index 98%rename from tweak/Sources/Features/Karaoke/KaraokeSource.xrename to tweak/Sources/Shared/Lyrics/KaraokeSource.xindex fb33f395..8b240800 100644--- a/tweak/Sources/Features/Karaoke/KaraokeSource.x+++ b/tweak/Sources/Shared/Lyrics/KaraokeSource.x@@ -5,9 +5,9 @@// With a source of the mod's on, the color-lyrics body is Features/LyricsSources' to answer and it// hands the lines over.#import "Core/SGCore.h"-#import "Karaoke.h"-#import "Features/LockScreenLyrics/LockScreenLyrics.h"-#import "Features/LyricsSources/LyricsSources.h"+#import "Lyrics.h"+#import "Shared/LockScreenLyrics/LockScreenLyrics.h"+#import "Shared/LyricsSources/LyricsSources.h"#import "Headers/SPTPlayer.h"static const NSUInteger kKeptTracks = 40;diff --git a/tweak/Sources/Features/Karaoke/KaraokeTiming.m b/tweak/Sources/Shared/Lyrics/KaraokeTiming.msimilarity index 99%rename from tweak/Sources/Features/Karaoke/KaraokeTiming.mrename to tweak/Sources/Shared/Lyrics/KaraokeTiming.mindex 4b496c83..d7d23711 100644--- a/tweak/Sources/Features/Karaoke/KaraokeTiming.m+++ b/tweak/Sources/Shared/Lyrics/KaraokeTiming.m@@ -1,5 +1,5 @@-#import "Karaoke.h"-#import "Features/AdBlock/Protobuf.h"+#import "Lyrics.h"+#import "Shared/AdBlock/Protobuf.h"@implementation SGKaraokeWord@enddiff --git a/tweak/Sources/Features/Karaoke/Karaoke.h b/tweak/Sources/Shared/Lyrics/Lyrics.hsimilarity index 100%rename from tweak/Sources/Features/Karaoke/Karaoke.hrename to tweak/Sources/Shared/Lyrics/Lyrics.hdiff --git a/tweak/Sources/Features/LyricsSources/BiniLyrics.m b/tweak/Sources/Shared/LyricsSources/BiniLyrics.msimilarity index 100%rename from tweak/Sources/Features/LyricsSources/BiniLyrics.mrename to tweak/Sources/Shared/LyricsSources/BiniLyrics.mdiff --git a/tweak/Sources/Features/LyricsSources/LrcLib.m b/tweak/Sources/Shared/LyricsSources/LrcLib.msimilarity index 100%rename from tweak/Sources/Features/LyricsSources/LrcLib.mrename to tweak/Sources/Shared/LyricsSources/LrcLib.mdiff --git a/tweak/Sources/Features/LyricsSources/LyricsHook.x b/tweak/Sources/Shared/LyricsSources/LyricsHook.xsimilarity index 99%rename from tweak/Sources/Features/LyricsSources/LyricsHook.xrename to tweak/Sources/Shared/LyricsSources/LyricsHook.xindex 0ca7fd75..fa6e3786 100644--- a/tweak/Sources/Features/LyricsSources/LyricsHook.x+++ b/tweak/Sources/Shared/LyricsSources/LyricsHook.x@@ -31,7 +31,7 @@// for the lyrics as it would for any track, and the reply is answered as above.#import "Core/SGCore.h"#import "LyricsSources.h"-#import "Features/AdBlock/Protobuf.h"+#import "Shared/AdBlock/Protobuf.h"#import "Headers/SPTPlayer.h"// Blinding Lights, The Weeknd: lyrics in every market Spotify serves them in.diff --git a/tweak/Sources/Features/LyricsSources/LyricsSources.h b/tweak/Sources/Shared/LyricsSources/LyricsSources.hsimilarity index 99%rename from tweak/Sources/Features/LyricsSources/LyricsSources.hrename to tweak/Sources/Shared/LyricsSources/LyricsSources.hindex 3aa44b2e..bd935822 100644--- a/tweak/Sources/Features/LyricsSources/LyricsSources.h+++ b/tweak/Sources/Shared/LyricsSources/LyricsSources.h@@ -6,7 +6,7 @@// SGTTML.m reads the TTML that Apple Music's own lyrics are written in, which is what BiniLyrics and// Unison serve; it is the only shape carrying a second voice and the (oh, aye) sung under a line.#import <UIKit/UIKit.h>-#import "Features/Karaoke/Karaoke.h"+#import "Shared/Lyrics/Lyrics.h"// The sources in the order they are asked, as their keys. Unset means the order below, so a source// added in a later version joins the end of everyone's list instead of shuffling it.diff --git a/tweak/Sources/Features/LyricsSources/LyricsSources.m b/tweak/Sources/Shared/LyricsSources/LyricsSources.msimilarity index 99%rename from tweak/Sources/Features/LyricsSources/LyricsSources.mrename to tweak/Sources/Shared/LyricsSources/LyricsSources.mindex 028de9c3..abd20ffc 100644--- a/tweak/Sources/Features/LyricsSources/LyricsSources.m+++ b/tweak/Sources/Shared/LyricsSources/LyricsSources.m@@ -9,7 +9,7 @@// when those above it had nothing timed, and then only for what they lacked.#import "Core/SGCore.h"#import "LyricsSources.h"-#import "Features/Karaoke/Karaoke.h"+#import "Shared/Lyrics/Lyrics.h"#import "Headers/SPTPlayer.h"static const NSTimeInterval kTimeout = 6;diff --git a/tweak/Sources/Features/LyricsSources/LyricsSourcesPage.m b/tweak/Sources/Shared/LyricsSources/LyricsSourcesPage.msimilarity index 100%rename from tweak/Sources/Features/LyricsSources/LyricsSourcesPage.mrename to tweak/Sources/Shared/LyricsSources/LyricsSourcesPage.mdiff --git a/tweak/Sources/Features/LyricsSources/Musixmatch.m b/tweak/Sources/Shared/LyricsSources/Musixmatch.msimilarity index 100%rename from tweak/Sources/Features/LyricsSources/Musixmatch.mrename to tweak/Sources/Shared/LyricsSources/Musixmatch.mdiff --git a/tweak/Sources/Features/LyricsSources/NetEase.m b/tweak/Sources/Shared/LyricsSources/NetEase.msimilarity index 100%rename from tweak/Sources/Features/LyricsSources/NetEase.mrename to tweak/Sources/Shared/LyricsSources/NetEase.mdiff --git a/tweak/Sources/Features/LyricsSources/SGTTML.m b/tweak/Sources/Shared/LyricsSources/SGTTML.msimilarity index 100%rename from tweak/Sources/Features/LyricsSources/SGTTML.mrename to tweak/Sources/Shared/LyricsSources/SGTTML.mdiff --git a/tweak/Sources/Features/LyricsSources/Unison.m b/tweak/Sources/Shared/LyricsSources/Unison.msimilarity index 100%rename from tweak/Sources/Features/LyricsSources/Unison.mrename to tweak/Sources/Shared/LyricsSources/Unison.mdiff --git a/tweak/Sources/Features/Navigation/PageTransition.x b/tweak/Sources/Shared/Navigation/PageTransition.xsimilarity index 100%rename from tweak/Sources/Features/Navigation/PageTransition.xrename to tweak/Sources/Shared/Navigation/PageTransition.xdiff --git a/tweak/Sources/Features/Privacy/Privacy.h b/tweak/Sources/Shared/Privacy/Privacy.hsimilarity index 100%rename from tweak/Sources/Features/Privacy/Privacy.hrename to tweak/Sources/Shared/Privacy/Privacy.hdiff --git a/tweak/Sources/Features/Privacy/Privacy.x b/tweak/Sources/Shared/Privacy/Privacy.xsimilarity index 100%rename from tweak/Sources/Features/Privacy/Privacy.xrename to tweak/Sources/Shared/Privacy/Privacy.xdiff --git a/tweak/Sources/Features/Privacy/PrivacySettings.m b/tweak/Sources/Shared/Privacy/PrivacySettings.msimilarity index 100%rename from tweak/Sources/Features/Privacy/PrivacySettings.mrename to tweak/Sources/Shared/Privacy/PrivacySettings.m