summaryrefslogtreecommitdiff
path: root/.theos/obj/debug/arm64
diff options
context:
space:
mode:
authorFivePixels <o5pxels@gmail.com>2020-07-17 10:06:30 -0500
committerFivePixels <o5pxels@gmail.com>2020-07-17 10:06:30 -0500
commit8a752c04771b28d82dce988849cad84ddaf3ea2c (patch)
tree65df72d39d9ee9fb260a32c47be6bfb42cedf3ec /.theos/obj/debug/arm64
downloadfinical-8a752c04771b28d82dce988849cad84ddaf3ea2c.tar.xz
finical-8a752c04771b28d82dce988849cad84ddaf3ea2c.zip
Initial CommitHEADmaster
Diffstat (limited to '.theos/obj/debug/arm64')
-rw-r--r--.theos/obj/debug/arm64/FCLRootListController.m.6697b6e8.Td22
-rw-r--r--.theos/obj/debug/arm64/FCLRootListController.m.6697b6e8.obin0 -> 36856 bytes
-rwxr-xr-x.theos/obj/debug/arm64/Finical.dylibbin0 -> 38440 bytes
-rw-r--r--.theos/obj/debug/arm64/Finical.dylib.dSYM/Contents/Info.plist20
-rw-r--r--.theos/obj/debug/arm64/Finical.dylib.dSYM/Contents/Resources/DWARF/Finical.dylibbin0 -> 37285 bytes
-rwxr-xr-x.theos/obj/debug/arm64/FinicalPrefs.bundle/FinicalPrefsbin0 -> 36100 bytes
-rw-r--r--.theos/obj/debug/arm64/FinicalPrefs.bundle/FinicalPrefs.dSYM/Contents/Info.plist20
-rw-r--r--.theos/obj/debug/arm64/FinicalPrefs.bundle/FinicalPrefs.dSYM/Contents/Resources/DWARF/FinicalPrefsbin0 -> 43082 bytes
-rw-r--r--.theos/obj/debug/arm64/Tweak.x.324c8b47.Td26
-rw-r--r--.theos/obj/debug/arm64/Tweak.x.324c8b47.obin0 -> 46532 bytes
-rw-r--r--.theos/obj/debug/arm64/Tweak.x.9a5be5fd.Td20
-rw-r--r--.theos/obj/debug/arm64/Tweak.x.9a5be5fd.obin0 -> 21924 bytes
-rw-r--r--.theos/obj/debug/arm64/Tweak.x.m203
13 files changed, 311 insertions, 0 deletions
diff --git a/.theos/obj/debug/arm64/FCLRootListController.m.6697b6e8.Td b/.theos/obj/debug/arm64/FCLRootListController.m.6697b6e8.Td
new file mode 100644
index 0000000..09af417
--- /dev/null
+++ b/.theos/obj/debug/arm64/FCLRootListController.m.6697b6e8.Td
@@ -0,0 +1,22 @@
+/Users/dylanbolger/Development/iOS/Tweaks/finical/.theos/obj/debug/arm64/FCLRootListController.m.6697b6e8.o: \
+ FCLRootListController.m /Users/dylanbolger/theos/Prefix.pch \
+ /Users/dylanbolger/theos/vendor/include/_Prefix/BackwardsCompat.h \
+ /Users/dylanbolger/theos/vendor/include/_Prefix/IOSMacros.h \
+ /Users/dylanbolger/theos/vendor/include/HBLog.h \
+ /Users/dylanbolger/theos/vendor/include/CoreFoundation/CFLogUtilities.h \
+ /Users/dylanbolger/theos/vendor/include/Preferences/PSListController.h \
+ /Users/dylanbolger/theos/vendor/include/Preferences/PSViewController.h
+
+/Users/dylanbolger/theos/Prefix.pch:
+
+/Users/dylanbolger/theos/vendor/include/_Prefix/BackwardsCompat.h:
+
+/Users/dylanbolger/theos/vendor/include/_Prefix/IOSMacros.h:
+
+/Users/dylanbolger/theos/vendor/include/HBLog.h:
+
+/Users/dylanbolger/theos/vendor/include/CoreFoundation/CFLogUtilities.h:
+
+/Users/dylanbolger/theos/vendor/include/Preferences/PSListController.h:
+
+/Users/dylanbolger/theos/vendor/include/Preferences/PSViewController.h:
diff --git a/.theos/obj/debug/arm64/FCLRootListController.m.6697b6e8.o b/.theos/obj/debug/arm64/FCLRootListController.m.6697b6e8.o
new file mode 100644
index 0000000..7bff193
--- /dev/null
+++ b/.theos/obj/debug/arm64/FCLRootListController.m.6697b6e8.o
Binary files differ
diff --git a/.theos/obj/debug/arm64/Finical.dylib b/.theos/obj/debug/arm64/Finical.dylib
new file mode 100755
index 0000000..56ca191
--- /dev/null
+++ b/.theos/obj/debug/arm64/Finical.dylib
Binary files differ
diff --git a/.theos/obj/debug/arm64/Finical.dylib.dSYM/Contents/Info.plist b/.theos/obj/debug/arm64/Finical.dylib.dSYM/Contents/Info.plist
new file mode 100644
index 0000000..61ddda7
--- /dev/null
+++ b/.theos/obj/debug/arm64/Finical.dylib.dSYM/Contents/Info.plist
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+ <dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.apple.xcode.dsym.Finical.dylib</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>dSYM</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+ </dict>
+</plist>
diff --git a/.theos/obj/debug/arm64/Finical.dylib.dSYM/Contents/Resources/DWARF/Finical.dylib b/.theos/obj/debug/arm64/Finical.dylib.dSYM/Contents/Resources/DWARF/Finical.dylib
new file mode 100644
index 0000000..a185f7b
--- /dev/null
+++ b/.theos/obj/debug/arm64/Finical.dylib.dSYM/Contents/Resources/DWARF/Finical.dylib
Binary files differ
diff --git a/.theos/obj/debug/arm64/FinicalPrefs.bundle/FinicalPrefs b/.theos/obj/debug/arm64/FinicalPrefs.bundle/FinicalPrefs
new file mode 100755
index 0000000..97c523b
--- /dev/null
+++ b/.theos/obj/debug/arm64/FinicalPrefs.bundle/FinicalPrefs
Binary files differ
diff --git a/.theos/obj/debug/arm64/FinicalPrefs.bundle/FinicalPrefs.dSYM/Contents/Info.plist b/.theos/obj/debug/arm64/FinicalPrefs.bundle/FinicalPrefs.dSYM/Contents/Info.plist
new file mode 100644
index 0000000..ee46ec0
--- /dev/null
+++ b/.theos/obj/debug/arm64/FinicalPrefs.bundle/FinicalPrefs.dSYM/Contents/Info.plist
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+ <dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.apple.xcode.dsym.FinicalPrefs</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>dSYM</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+ </dict>
+</plist>
diff --git a/.theos/obj/debug/arm64/FinicalPrefs.bundle/FinicalPrefs.dSYM/Contents/Resources/DWARF/FinicalPrefs b/.theos/obj/debug/arm64/FinicalPrefs.bundle/FinicalPrefs.dSYM/Contents/Resources/DWARF/FinicalPrefs
new file mode 100644
index 0000000..b11041f
--- /dev/null
+++ b/.theos/obj/debug/arm64/FinicalPrefs.bundle/FinicalPrefs.dSYM/Contents/Resources/DWARF/FinicalPrefs
Binary files differ
diff --git a/.theos/obj/debug/arm64/Tweak.x.324c8b47.Td b/.theos/obj/debug/arm64/Tweak.x.324c8b47.Td
new file mode 100644
index 0000000..f65a0a5
--- /dev/null
+++ b/.theos/obj/debug/arm64/Tweak.x.324c8b47.Td
@@ -0,0 +1,26 @@
+/Users/dylanbolger/Development/iOS/Tweaks/finical/.theos/obj/debug/arm64/Tweak.x.324c8b47.o: \
+ /Users/dylanbolger/Development/iOS/Tweaks/finical/.theos/obj/debug/arm64/Tweak.x.m \
+ /Users/dylanbolger/theos/Prefix.pch \
+ /Users/dylanbolger/theos/vendor/include/_Prefix/BackwardsCompat.h \
+ /Users/dylanbolger/theos/vendor/include/_Prefix/IOSMacros.h \
+ /Users/dylanbolger/theos/vendor/include/HBLog.h \
+ /Users/dylanbolger/theos/vendor/include/CoreFoundation/CFLogUtilities.h \
+ /Users/dylanbolger/theos/vendor/include/substrate.h \
+ /Users/dylanbolger/Development/iOS/Tweaks/finical/Headers.h \
+ /Users/dylanbolger/Development/iOS/Tweaks/finical/MediaRemote.h
+
+/Users/dylanbolger/theos/Prefix.pch:
+
+/Users/dylanbolger/theos/vendor/include/_Prefix/BackwardsCompat.h:
+
+/Users/dylanbolger/theos/vendor/include/_Prefix/IOSMacros.h:
+
+/Users/dylanbolger/theos/vendor/include/HBLog.h:
+
+/Users/dylanbolger/theos/vendor/include/CoreFoundation/CFLogUtilities.h:
+
+/Users/dylanbolger/theos/vendor/include/substrate.h:
+
+/Users/dylanbolger/Development/iOS/Tweaks/finical/Headers.h:
+
+/Users/dylanbolger/Development/iOS/Tweaks/finical/MediaRemote.h:
diff --git a/.theos/obj/debug/arm64/Tweak.x.324c8b47.o b/.theos/obj/debug/arm64/Tweak.x.324c8b47.o
new file mode 100644
index 0000000..f3680f1
--- /dev/null
+++ b/.theos/obj/debug/arm64/Tweak.x.324c8b47.o
Binary files differ
diff --git a/.theos/obj/debug/arm64/Tweak.x.9a5be5fd.Td b/.theos/obj/debug/arm64/Tweak.x.9a5be5fd.Td
new file mode 100644
index 0000000..486186c
--- /dev/null
+++ b/.theos/obj/debug/arm64/Tweak.x.9a5be5fd.Td
@@ -0,0 +1,20 @@
+/Users/dylanbolger/Development/iOS/Tweaks/finical/.theos/obj/debug/arm64/Tweak.x.9a5be5fd.o: \
+ /Users/dylanbolger/Development/iOS/Tweaks/finical/.theos/obj/debug/arm64/Tweak.x.m \
+ /Users/dylanbolger/theos/Prefix.pch \
+ /Users/dylanbolger/theos/vendor/include/_Prefix/BackwardsCompat.h \
+ /Users/dylanbolger/theos/vendor/include/_Prefix/IOSMacros.h \
+ /Users/dylanbolger/theos/vendor/include/HBLog.h \
+ /Users/dylanbolger/theos/vendor/include/CoreFoundation/CFLogUtilities.h \
+ /Users/dylanbolger/theos/vendor/include/substrate.h
+
+/Users/dylanbolger/theos/Prefix.pch:
+
+/Users/dylanbolger/theos/vendor/include/_Prefix/BackwardsCompat.h:
+
+/Users/dylanbolger/theos/vendor/include/_Prefix/IOSMacros.h:
+
+/Users/dylanbolger/theos/vendor/include/HBLog.h:
+
+/Users/dylanbolger/theos/vendor/include/CoreFoundation/CFLogUtilities.h:
+
+/Users/dylanbolger/theos/vendor/include/substrate.h:
diff --git a/.theos/obj/debug/arm64/Tweak.x.9a5be5fd.o b/.theos/obj/debug/arm64/Tweak.x.9a5be5fd.o
new file mode 100644
index 0000000..90583a2
--- /dev/null
+++ b/.theos/obj/debug/arm64/Tweak.x.9a5be5fd.o
Binary files differ
diff --git a/.theos/obj/debug/arm64/Tweak.x.m b/.theos/obj/debug/arm64/Tweak.x.m
new file mode 100644
index 0000000..2e93ef1
--- /dev/null
+++ b/.theos/obj/debug/arm64/Tweak.x.m
@@ -0,0 +1,203 @@
+#line 1 "Tweak.x"
+
+#include <substrate.h>
+#if defined(__clang__)
+#if __has_feature(objc_arc)
+#define _LOGOS_SELF_TYPE_NORMAL __unsafe_unretained
+#define _LOGOS_SELF_TYPE_INIT __attribute__((ns_consumed))
+#define _LOGOS_SELF_CONST const
+#define _LOGOS_RETURN_RETAINED __attribute__((ns_returns_retained))
+#else
+#define _LOGOS_SELF_TYPE_NORMAL
+#define _LOGOS_SELF_TYPE_INIT
+#define _LOGOS_SELF_CONST
+#define _LOGOS_RETURN_RETAINED
+#endif
+#else
+#define _LOGOS_SELF_TYPE_NORMAL
+#define _LOGOS_SELF_TYPE_INIT
+#define _LOGOS_SELF_CONST
+#define _LOGOS_RETURN_RETAINED
+#endif
+
+@class CSMediaControlsView; @class SBMainSwitcherViewController; @class CSAdjunctListItemView; @class SBLockScreenManager; @class QRTMediaModuleViewController; @class SBMediaController; @class PLPlatterCustomContentView;
+static void _logos_meta_method$_ungrouped$CSMediaControlsView$removePlayer(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL); static void _logos_meta_method$_ungrouped$CSMediaControlsView$stateChanged$(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST, SEL, NSNotification *); static void (*_logos_orig$_ungrouped$CSMediaControlsView$layoutSubviews)(_LOGOS_SELF_TYPE_NORMAL CSMediaControlsView* _LOGOS_SELF_CONST, SEL); static void _logos_method$_ungrouped$CSMediaControlsView$layoutSubviews(_LOGOS_SELF_TYPE_NORMAL CSMediaControlsView* _LOGOS_SELF_CONST, SEL); static void (*_logos_orig$_ungrouped$CSAdjunctListItemView$layoutSubviews)(_LOGOS_SELF_TYPE_NORMAL CSAdjunctListItemView* _LOGOS_SELF_CONST, SEL); static void _logos_method$_ungrouped$CSAdjunctListItemView$layoutSubviews(_LOGOS_SELF_TYPE_NORMAL CSAdjunctListItemView* _LOGOS_SELF_CONST, SEL); static void (*_logos_orig$_ungrouped$QRTMediaModuleViewController$layoutSubviews)(_LOGOS_SELF_TYPE_NORMAL QRTMediaModuleViewController* _LOGOS_SELF_CONST, SEL); static void _logos_method$_ungrouped$QRTMediaModuleViewController$layoutSubviews(_LOGOS_SELF_TYPE_NORMAL QRTMediaModuleViewController* _LOGOS_SELF_CONST, SEL); static void (*_logos_orig$_ungrouped$PLPlatterCustomContentView$layoutSubviews)(_LOGOS_SELF_TYPE_NORMAL PLPlatterCustomContentView* _LOGOS_SELF_CONST, SEL); static void _logos_method$_ungrouped$PLPlatterCustomContentView$layoutSubviews(_LOGOS_SELF_TYPE_NORMAL PLPlatterCustomContentView* _LOGOS_SELF_CONST, SEL);
+static __inline__ __attribute__((always_inline)) __attribute__((unused)) Class _logos_static_class_lookup$SBMediaController(void) { static Class _klass; if(!_klass) { _klass = objc_getClass("SBMediaController"); } return _klass; }static __inline__ __attribute__((always_inline)) __attribute__((unused)) Class _logos_static_class_lookup$SBMainSwitcherViewController(void) { static Class _klass; if(!_klass) { _klass = objc_getClass("SBMainSwitcherViewController"); } return _klass; }static __inline__ __attribute__((always_inline)) __attribute__((unused)) Class _logos_static_class_lookup$CSMediaControlsView(void) { static Class _klass; if(!_klass) { _klass = objc_getClass("CSMediaControlsView"); } return _klass; }static __inline__ __attribute__((always_inline)) __attribute__((unused)) Class _logos_static_class_lookup$SBLockScreenManager(void) { static Class _klass; if(!_klass) { _klass = objc_getClass("SBLockScreenManager"); } return _klass; }
+#line 1 "Tweak.x"
+#import <Headers.h>
+static BOOL enabled = YES;
+static BOOL dismissPlayer = NO;
+static BOOL killApp = NO;
+static int timeOption = 0;
+static int dismissGesture = 2;
+static int timeValue = 0;
+static id prefs;
+static void reloadSettings() {
+ prefs = [[NSMutableDictionary alloc] initWithContentsOfFile:@"/var/mobile/Library/Preferences/com.5px.finical.plist"];
+ if(prefs) {
+ enabled = [prefs objectForKey:@"enabled"] ? [[prefs objectForKey:@"enabled"] intValue] : enabled;
+ dismissPlayer = [prefs objectForKey:@"dismissPlayer"] ? [[prefs objectForKey:@"dismissPlayer"] intValue]: dismissPlayer;
+ killApp = [prefs objectForKey:@"killApp"] ? [[prefs objectForKey:@"killApp"] intValue]: killApp;
+ timeOption = [prefs objectForKey:@"timeOption"] ? [[prefs objectForKey:@"timeOption"] intValue]: timeOption;
+ timeValue = [prefs objectForKey:@"timeValue"] ? [[prefs objectForKey:@"timeValue"] intValue]: timeValue;
+ dismissGesture = [prefs objectForKey:@"dismissGesture"] ? [[prefs objectForKey:@"dismissGesture"] intValue]: dismissGesture;
+ if (dismissPlayer) {
+ switch (timeOption) {
+ case 0:
+ break;
+ case 1:
+ timeValue = timeValue * 60;
+ break;
+ case 2:
+ timeValue = timeValue * 3600;
+ break;
+ }
+ }
+ }
+}
+
+CSAdjunctListItem *item;
+SBLockScreenManager *manager;
+CSNotificationAdjunctListViewController *vc;
+NSTimer *timer;
+SBMainSwitcherViewController *mainSwitcher;
+NSString *nowPlayingID;
+NSArray *items;
+
+static void _logos_meta_method$_ungrouped$CSMediaControlsView$removePlayer(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
+ if ([[_logos_static_class_lookup$SBMediaController() sharedInstance] isPaused]) {
+ if ([vc.identifiersToItems count] >= 1) {
+ [vc _removeItem:(id)item animated:(BOOL)YES];
+ if (killApp) {
+ for (SBAppLayout *item in items) {
+ SBDisplayItem *currentItem = [item.rolesToLayoutItemsMap objectForKey:@1];
+ NSString *bundleID = currentItem.bundleIdentifier;
+ if ([bundleID isEqualToString: nowPlayingID]) {
+ [mainSwitcher _deleteAppLayout:item forReason: 1];
+ }
+ }
+ }
+ }
+ }
+}
+
+static void _logos_meta_method$_ungrouped$CSMediaControlsView$stateChanged$(_LOGOS_SELF_TYPE_NORMAL Class _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, NSNotification * notification) {
+ if ([[_logos_static_class_lookup$SBMediaController() sharedInstance] isPlaying]) {
+ if ([vc.identifiersToItems count] == 0) {
+ [vc _insertItem:(id)item animated:(BOOL)YES];
+ }
+ }
+ if ([timer isValid]) {
+ [timer invalidate];
+ timer = nil;
+ }
+ if (enabled) {
+ if ([vc.identifiersToItems count] == 1) {
+ if (dismissPlayer) {
+ timer = [NSTimer scheduledTimerWithTimeInterval: timeValue
+ target: _logos_static_class_lookup$CSMediaControlsView()
+ selector: @selector(removePlayer)
+ userInfo: nil
+ repeats: NO];
+ }
+ }
+ }
+}
+static void _logos_method$_ungrouped$CSMediaControlsView$layoutSubviews(_LOGOS_SELF_TYPE_NORMAL CSMediaControlsView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
+ reloadSettings();
+ manager = [_logos_static_class_lookup$SBLockScreenManager() sharedInstance];
+ vc = [[[[manager coverSheetViewController] mainPageContentViewController] combinedListViewController] adjunctListViewController];
+ item = [vc.identifiersToItems objectForKey:@"SBDashBoardNowPlayingAssertionIdentifier"];
+ mainSwitcher = [_logos_static_class_lookup$SBMainSwitcherViewController() sharedInstance];
+ items = mainSwitcher.recentAppLayouts;
+ nowPlayingID = [[[_logos_static_class_lookup$SBMediaController() sharedInstance] nowPlayingApplication] bundleIdentifier];
+ UISwipeGestureRecognizer *gesture = [[UISwipeGestureRecognizer alloc]initWithTarget:_logos_static_class_lookup$CSMediaControlsView() action:@selector(removePlayer)];
+ switch (dismissGesture) {
+ case 1:
+ gesture.direction = UISwipeGestureRecognizerDirectionRight;
+ break;
+ case 2:
+ gesture.direction = UISwipeGestureRecognizerDirectionUp;
+ break;
+ case 3:
+ gesture.direction = UISwipeGestureRecognizerDirectionDown;
+ break;
+ default:
+ gesture.direction = UISwipeGestureRecognizerDirectionLeft;
+ break;
+ }
+ [self addGestureRecognizer:gesture];
+ _logos_orig$_ungrouped$CSMediaControlsView$layoutSubviews(self, _cmd);
+}
+
+
+static void _logos_method$_ungrouped$CSAdjunctListItemView$layoutSubviews(_LOGOS_SELF_TYPE_NORMAL CSAdjunctListItemView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
+ UISwipeGestureRecognizer *gesture = [[UISwipeGestureRecognizer alloc]initWithTarget:_logos_static_class_lookup$CSMediaControlsView() action:@selector(removePlayer)];
+ switch (dismissGesture) {
+ case 0:
+ gesture.direction = UISwipeGestureRecognizerDirectionLeft;
+ break;
+ case 1:
+ gesture.direction = UISwipeGestureRecognizerDirectionRight;
+ break;
+ case 2:
+ gesture.direction = UISwipeGestureRecognizerDirectionUp;
+ break;
+ case 3:
+ gesture.direction = UISwipeGestureRecognizerDirectionDown;
+ break;
+ }
+ [self addGestureRecognizer:gesture];
+ _logos_orig$_ungrouped$CSAdjunctListItemView$layoutSubviews(self, _cmd);
+}
+
+
+static void _logos_method$_ungrouped$QRTMediaModuleViewController$layoutSubviews(_LOGOS_SELF_TYPE_NORMAL QRTMediaModuleViewController* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
+ UISwipeGestureRecognizer *gesture = [[UISwipeGestureRecognizer alloc]initWithTarget:_logos_static_class_lookup$CSMediaControlsView() action:@selector(removePlayer)];
+ switch (dismissGesture) {
+ case 0:
+ gesture.direction = UISwipeGestureRecognizerDirectionLeft;
+ break;
+ case 1:
+ gesture.direction = UISwipeGestureRecognizerDirectionRight;
+ break;
+ case 2:
+ gesture.direction = UISwipeGestureRecognizerDirectionUp;
+ break;
+ case 3:
+ gesture.direction = UISwipeGestureRecognizerDirectionDown;
+ break;
+ }
+ [self addGestureRecognizer:gesture];
+ _logos_orig$_ungrouped$QRTMediaModuleViewController$layoutSubviews(self, _cmd);
+}
+
+
+static void _logos_method$_ungrouped$PLPlatterCustomContentView$layoutSubviews(_LOGOS_SELF_TYPE_NORMAL PLPlatterCustomContentView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {
+ UISwipeGestureRecognizer *gesture = [[UISwipeGestureRecognizer alloc]initWithTarget:_logos_static_class_lookup$CSMediaControlsView() action:@selector(removePlayer)];
+ switch (dismissGesture) {
+ case 0:
+ gesture.direction = UISwipeGestureRecognizerDirectionLeft;
+ break;
+ case 1:
+ gesture.direction = UISwipeGestureRecognizerDirectionRight;
+ break;
+ case 2:
+ gesture.direction = UISwipeGestureRecognizerDirectionUp;
+ break;
+ case 3:
+ gesture.direction = UISwipeGestureRecognizerDirectionDown;
+ break;
+ }
+ [self addGestureRecognizer:gesture];
+ _logos_orig$_ungrouped$PLPlatterCustomContentView$layoutSubviews(self, _cmd);
+}
+
+static __attribute__((constructor)) void _logosLocalCtor_b2403fe0(int __unused argc, char __unused **argv, char __unused **envp) {
+ reloadSettings();
+ [[NSNotificationCenter defaultCenter] addObserver:_logos_static_class_lookup$CSMediaControlsView() selector:@selector(stateChanged:) name:@"SBMediaNowPlayingChangedNotification" object:nil];
+}
+
+static __attribute__((constructor)) void _logosLocalInit() {
+{Class _logos_class$_ungrouped$CSMediaControlsView = objc_getClass("CSMediaControlsView"); Class _logos_metaclass$_ungrouped$CSMediaControlsView = object_getClass(_logos_class$_ungrouped$CSMediaControlsView); { char _typeEncoding[1024]; unsigned int i = 0; _typeEncoding[i] = 'v'; i += 1; _typeEncoding[i] = '@'; i += 1; _typeEncoding[i] = ':'; i += 1; _typeEncoding[i] = '\0'; class_addMethod(_logos_metaclass$_ungrouped$CSMediaControlsView, @selector(removePlayer), (IMP)&_logos_meta_method$_ungrouped$CSMediaControlsView$removePlayer, _typeEncoding); }{ char _typeEncoding[1024]; unsigned int i = 0; _typeEncoding[i] = 'v'; i += 1; _typeEncoding[i] = '@'; i += 1; _typeEncoding[i] = ':'; i += 1; memcpy(_typeEncoding + i, @encode(NSNotification *), strlen(@encode(NSNotification *))); i += strlen(@encode(NSNotification *)); _typeEncoding[i] = '\0'; class_addMethod(_logos_metaclass$_ungrouped$CSMediaControlsView, @selector(stateChanged:), (IMP)&_logos_meta_method$_ungrouped$CSMediaControlsView$stateChanged$, _typeEncoding); }MSHookMessageEx(_logos_class$_ungrouped$CSMediaControlsView, @selector(layoutSubviews), (IMP)&_logos_method$_ungrouped$CSMediaControlsView$layoutSubviews, (IMP*)&_logos_orig$_ungrouped$CSMediaControlsView$layoutSubviews);Class _logos_class$_ungrouped$CSAdjunctListItemView = objc_getClass("CSAdjunctListItemView"); MSHookMessageEx(_logos_class$_ungrouped$CSAdjunctListItemView, @selector(layoutSubviews), (IMP)&_logos_method$_ungrouped$CSAdjunctListItemView$layoutSubviews, (IMP*)&_logos_orig$_ungrouped$CSAdjunctListItemView$layoutSubviews);Class _logos_class$_ungrouped$QRTMediaModuleViewController = objc_getClass("QRTMediaModuleViewController"); MSHookMessageEx(_logos_class$_ungrouped$QRTMediaModuleViewController, @selector(layoutSubviews), (IMP)&_logos_method$_ungrouped$QRTMediaModuleViewController$layoutSubviews, (IMP*)&_logos_orig$_ungrouped$QRTMediaModuleViewController$layoutSubviews);Class _logos_class$_ungrouped$PLPlatterCustomContentView = objc_getClass("PLPlatterCustomContentView"); MSHookMessageEx(_logos_class$_ungrouped$PLPlatterCustomContentView, @selector(layoutSubviews), (IMP)&_logos_method$_ungrouped$PLPlatterCustomContentView$layoutSubviews, (IMP*)&_logos_orig$_ungrouped$PLPlatterCustomContentView$layoutSubviews);} }
+#line 175 "Tweak.x"