Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.
C
chore: the album, artist and player harnesses run on iOS 27 through a shared scene delegate
My-Name-Is-Jeff6976fd878fc2
diff --git a/harness/album/build.sh b/harness/album/build.shindex b1dfa6c2..33778744 100755--- a/harness/album/build.sh+++ b/harness/album/build.sh@@ -13,7 +13,7 @@ SDK=$(xcrun --sdk iphonesimulator --show-sdk-path)xcrun -sdk iphonesimulator clang -target arm64-apple-ios17.0-simulator -fobjc-arc -g -O0 \-I"$SRC" -I"$SRC/Redesigned/Album" -I"$OUT/gen" -isysroot "$SDK" \-Wno-deprecated-declarations \- "$(dirname "$0")/main.m" "$(dirname "$0")/stubs.m" \+ "$(dirname "$0")/main.m" "$(dirname "$0")/../scene.m" "$(dirname "$0")/stubs.m" \"$OUT"/gen/*.m \"$SRC"/Core/SGLog.m "$SRC"/Core/SGPrefs.m "$SRC"/Core/SGViewTree.m "$SRC"/Core/SGGlass.m \"$SRC"/Core/SGBackdrop.m "$SRC"/Core/SGFlagForce.m "$SRC"/Core/SGUIMode.m \@@ -37,6 +37,12 @@ cat > "$OUT/AlbumHarness.app/Info.plist" <<'PLIST'<key>UILaunchScreen</key><dict/><key>UIApplicationSceneManifest</key><dict><key>UIApplicationSupportsMultipleScenes</key><false/>+ <key>UISceneConfigurations</key><dict>+ <key>UIWindowSceneSessionRoleApplication</key><array><dict>+ <key>UISceneConfigurationName</key><string>Default</string>+ <key>UISceneDelegateClassName</key><string>SGRHarnessScene</string>+ </dict></array>+ </dict></dict></dict></plist>PLISTdiff --git a/harness/artist/build.sh b/harness/artist/build.shindex f8be9ae4..a212b67f 100755--- a/harness/artist/build.sh+++ b/harness/artist/build.sh@@ -13,7 +13,7 @@ SDK=$(xcrun --sdk iphonesimulator --show-sdk-path)xcrun -sdk iphonesimulator clang -target arm64-apple-ios17.0-simulator -fobjc-arc -g -O0 \-I"$SRC" -I"$SRC/Redesigned/Artist" -I"$OUT/gen" -isysroot "$SDK" \-Wno-deprecated-declarations \- "$(dirname "$0")/main.m" "$(dirname "$0")/stubs.m" \+ "$(dirname "$0")/main.m" "$(dirname "$0")/../scene.m" "$(dirname "$0")/stubs.m" \"$OUT"/gen/*.m \"$SRC"/Core/SGLog.m "$SRC"/Core/SGPrefs.m "$SRC"/Core/SGViewTree.m "$SRC"/Core/SGGlass.m \"$SRC"/Core/SGBackdrop.m "$SRC"/Core/SGFlagForce.m "$SRC"/Core/SGUIMode.m \@@ -37,6 +37,12 @@ cat > "$OUT/ArtistHarness.app/Info.plist" <<'PLIST'<key>UILaunchScreen</key><dict/><key>UIApplicationSceneManifest</key><dict><key>UIApplicationSupportsMultipleScenes</key><false/>+ <key>UISceneConfigurations</key><dict>+ <key>UIWindowSceneSessionRoleApplication</key><array><dict>+ <key>UISceneConfigurationName</key><string>Default</string>+ <key>UISceneDelegateClassName</key><string>SGRHarnessScene</string>+ </dict></array>+ </dict></dict></dict></plist>PLISTdiff --git a/harness/player/build.sh b/harness/player/build.shindex 20d2be99..d0fc661f 100755--- a/harness/player/build.sh+++ b/harness/player/build.sh@@ -15,7 +15,7 @@ SDK=$(xcrun --sdk iphonesimulator --show-sdk-path)xcrun -sdk iphonesimulator clang -target arm64-apple-ios17.0-simulator -fobjc-arc -g -O0 \-I"$SRC" -I"$SRC/Redesigned/Player" -I"$SRC/Redesigned/Kit" -I"$OUT/gen" -isysroot "$SDK" \-Wno-deprecated-declarations \- "$(dirname "$0")/main.m" "$(dirname "$0")/stubs.m" \+ "$(dirname "$0")/main.m" "$(dirname "$0")/../scene.m" "$(dirname "$0")/stubs.m" \"$OUT"/gen/*.m \"$SRC"/Core/SGLog.m "$SRC"/Core/SGPrefs.m "$SRC"/Core/SGViewTree.m "$SRC"/Core/SGGlass.m \"$SRC"/Core/SGBackdrop.m "$SRC"/Core/SGFlagForce.m "$SRC"/Core/SGUIMode.m \@@ -39,6 +39,12 @@ cat > "$OUT/PlayerHarness.app/Info.plist" <<'PLIST'<key>UILaunchScreen</key><dict/><key>UIApplicationSceneManifest</key><dict><key>UIApplicationSupportsMultipleScenes</key><false/>+ <key>UISceneConfigurations</key><dict>+ <key>UIWindowSceneSessionRoleApplication</key><array><dict>+ <key>UISceneConfigurationName</key><string>Default</string>+ <key>UISceneDelegateClassName</key><string>SGRHarnessScene</string>+ </dict></array>+ </dict></dict></dict></plist>PLISTdiff --git a/harness/scene.m b/harness/scene.mnew file mode 100644index 00000000..5745af39--- /dev/null+++ b/harness/scene.m@@ -0,0 +1,18 @@+// The scene every harness's window goes into. iOS 27 kills an app whose Info.plist declares a scene+// manifest without a scene delegate. The harness still makes its window in didFinishLaunching, and the+// window moves into the scene once the scene connects. Listed in a harness's build.sh with the scene+// manifest naming SGRHarnessScene.+#import <UIKit/UIKit.h>++@interface SGRHarnessScene : UIResponder <UIWindowSceneDelegate>+@property (nonatomic, strong) UIWindow *window;+@end++@implementation SGRHarnessScene+- (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)options {+ UIWindow *window = [(id)UIApplication.sharedApplication.delegate window];+ window.windowScene = (UIWindowScene *)scene;+ self.window = window;+ [window makeKeyAndVisible];+}+@end