fix crashes on 9.0.22, bump

This commit is contained in:
eevee
2025-03-04 20:41:08 +03:00
parent d055e6388b
commit 1b0865fe8f
3 changed files with 10 additions and 5 deletions
+6 -2
View File
@@ -4,13 +4,17 @@ import SwiftUI
struct DarkPopUps: HookGroup { }
private let popUpContainerViewController = EeveeSpotify.isOldSpotifyVersion
? "SPTEncorePopUpContainer"
: "EncoreConsumerMobile_Wrappers.PopUpPresentableContainer"
class EncoreLabelHook: ClassHook<UIView> {
typealias Group = DarkPopUps
static let targetName = "SPTEncoreLabel"
func intrinsicContentSize() -> CGSize {
if let viewController = WindowHelper.shared.viewController(for: target),
NSStringFromClass(type(of: viewController)) == "SPTEncorePopUpContainer"
NSStringFromClass(type(of: viewController)) == popUpContainerViewController
{
let label = Dynamic.convert(target.subviews.first!, to: UILabel.self)
@@ -25,7 +29,7 @@ class EncoreLabelHook: ClassHook<UIView> {
class SPTEncorePopUpContainerHook: ClassHook<UIViewController> {
typealias Group = DarkPopUps
static let targetName = "SPTEncorePopUpContainer"
static let targetName = popUpContainerViewController
func containedView() -> SPTEncorePopUpDialog {
return orig.containedView()
+3 -2
View File
@@ -11,8 +11,9 @@ func exitApplication() {
struct PremiumPatchingGroup: HookGroup { }
struct EeveeSpotify: Tweak {
static let version = "5.8.7"
static let isOldSpotifyVersion = NSClassFromString("Lyrics_NPVCommunicatorImpl.LyricsOnlyViewController") == nil
static let version = "5.8.8"
static let isOldSpotifyVersion =
NSClassFromString("Lyrics_NPVCommunicatorImpl.LyricsOnlyViewController") == nil
init() {
if UserDefaults.darkPopUps {
+1 -1
View File
@@ -1,6 +1,6 @@
Package: com.eevee.spotify
Name: EeveeSpotify
Version: 5.8.7
Version: 5.8.8
Architecture: iphoneos-arm
Description: A tweak to get Spotify Premium for free, just like Spotilife
Maintainer: Eevee