Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.
C
// The flags something of the mod's forces, gathered in one place so that the flag provider
// (Shared/Flags/Flags.x) and the flag rows of the settings pages (Settings/SGModPage.m) ask here
// rather than knowing every feature that forces one: the ad blocking, the lyrics sources, the redesign.
//
// A forcer answers a flag key with the value it forces, or nil. `atLaunch` answers for the running
// app, from the switches as they were at launch; `locked`, which may be nil, answers for a settings
// row, from the switches as they are stored now, and a row it answers for shows that value and takes
// no touch. A forcer that `beatsOverride` is asked before an override from the All flags page, the
// rest after it; within each group in the order they were registered.
// Threading: register from a %ctor or a constructor, before Spotify reads a flag; ask from any thread.
#import <Foundation/Foundation.h>
typedef id (^SGFlagForcer)(NSString *key);
void SGRegisterFlagForcer(BOOL beatsOverride, SGFlagForcer atLaunch, SGFlagForcer locked);
// The value the provider hands Spotify: forcers that beat an override, the override as it was at
// launch, then the rest.
id SGForcedFlagValue(NSString *key);
// The value a settings row is locked at, nil when none; `beatsOverride` says whether an override
// from the All flags page gives way to it.
id SGLockedFlagValue(NSString *key, BOOL *beatsOverride);
// What became of the overrides stored at launch (a flag row's switch or the All flags page), for the
// log: how many Spotify asked for and got, which a forcer that beats an override answered instead, and
// which it has not asked for yet. Spotify builds most features' flags when the feature first loads,
// not at launch, so an override it asks for after this report is logged on its own as it is asked.
NSString *SGFlagOverrideReport(void);