diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index a267317..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..faf8687 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.theos/ +packages/ +.DS_Store diff --git a/Tweak/.DS_Store b/Tweak/.DS_Store deleted file mode 100644 index 4b5e447..0000000 Binary files a/Tweak/.DS_Store and /dev/null differ diff --git a/Tweak/.theos/_/DEBIAN/control b/Tweak/.theos/_/DEBIAN/control deleted file mode 100644 index 6f6603e..0000000 --- a/Tweak/.theos/_/DEBIAN/control +++ /dev/null @@ -1,10 +0,0 @@ -Package: com.daveapps.quitall -Name: QuitAll -Depends: mobilesubstrate, ws.hbang.common (>= 1.11) -Architecture: iphoneos-arm -Description: One tweak to quit them all -Maintainer: Dave van Wijk -Author: Dave van Wijk -Section: Tweaks -Version: 1.0.1-5+debug -Installed-Size: 432 diff --git a/Tweak/.theos/_/Library/Application Support/QuitAll/quit@2x.png b/Tweak/.theos/_/Library/Application Support/QuitAll/quit@2x.png deleted file mode 100644 index b31f2da..0000000 Binary files a/Tweak/.theos/_/Library/Application Support/QuitAll/quit@2x.png and /dev/null differ diff --git a/Tweak/.theos/_/Library/Application Support/QuitAll/quit@3x.png b/Tweak/.theos/_/Library/Application Support/QuitAll/quit@3x.png deleted file mode 100644 index 7c10828..0000000 Binary files a/Tweak/.theos/_/Library/Application Support/QuitAll/quit@3x.png and /dev/null differ diff --git a/Tweak/.theos/_/Library/MobileSubstrate/DynamicLibraries/QuitAll.dylib b/Tweak/.theos/_/Library/MobileSubstrate/DynamicLibraries/QuitAll.dylib deleted file mode 100755 index 54410fc..0000000 Binary files a/Tweak/.theos/_/Library/MobileSubstrate/DynamicLibraries/QuitAll.dylib and /dev/null differ diff --git a/Tweak/.theos/_/Library/MobileSubstrate/DynamicLibraries/QuitAll.plist b/Tweak/.theos/_/Library/MobileSubstrate/DynamicLibraries/QuitAll.plist deleted file mode 100644 index 10dc654..0000000 --- a/Tweak/.theos/_/Library/MobileSubstrate/DynamicLibraries/QuitAll.plist +++ /dev/null @@ -1 +0,0 @@ -{ Filter = { Bundles = ( "com.apple.springboard" ); }; } diff --git a/Tweak/.theos/_/Library/PreferenceBundles/quitAllPrefs.bundle/Info.plist b/Tweak/.theos/_/Library/PreferenceBundles/quitAllPrefs.bundle/Info.plist deleted file mode 100644 index 0cb020f..0000000 --- a/Tweak/.theos/_/Library/PreferenceBundles/quitAllPrefs.bundle/Info.plist +++ /dev/null @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - quitAllPrefs - CFBundleIdentifier - com.daveapps.quitallprefs - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - NSPrincipalClass - qapRootListController - - diff --git a/Tweak/.theos/_/Library/PreferenceBundles/quitAllPrefs.bundle/Root.plist b/Tweak/.theos/_/Library/PreferenceBundles/quitAllPrefs.bundle/Root.plist deleted file mode 100644 index a0d7257..0000000 --- a/Tweak/.theos/_/Library/PreferenceBundles/quitAllPrefs.bundle/Root.plist +++ /dev/null @@ -1,134 +0,0 @@ - - - - - items - - - cell - PSGroupCell - headerCellClass - QuitAllTitleCell - - - cell - PSGroupCell - label - Settings - - - cell - PSSwitchCell - default - - defaults - com.daveapps.quitallprefs - key - kEnabled - label - Enabled - - - - cell - PSSwitchCell - default - - defaults - com.daveapps.quitallprefs - key - kDarkButton - label - Dark Button - - - - cell - PSSwitchCell - default - - defaults - com.daveapps.quitallprefs - key - kLeftPlacement - label - Place Button Top-Left - - - - cell - PSSwitchCell - default - - defaults - com.daveapps.quitallprefs - key - kKeepMusicAlive - label - Don't Quit Now Playing App - - - - cell - PSSwitchCell - default - - defaults - com.daveapps.quitallprefs - key - kKeepNavAlive - label - Don't Quit Navigation - - - - cell - PSGroupCell - label - More - - - big - - cellClass - HBTwitterCell - height - 56 - label - Dave van Wijk - user - DaveWijk - action - twitterDave - - - cellClass - HBLinkTableCell - cell - PSButtonCell - action - SourceCode - label - Source Code ⚙️ - - - cellClass - HBLinkTableCell - cell - PSButtonCell - action - donateDave - label - Donate ❤️ - - - - title - QuitAll - - diff --git a/Tweak/.theos/_/Library/PreferenceBundles/quitAllPrefs.bundle/big.png b/Tweak/.theos/_/Library/PreferenceBundles/quitAllPrefs.bundle/big.png deleted file mode 100644 index 869ffad..0000000 Binary files a/Tweak/.theos/_/Library/PreferenceBundles/quitAllPrefs.bundle/big.png and /dev/null differ diff --git a/Tweak/.theos/_/Library/PreferenceBundles/quitAllPrefs.bundle/icon@2x.png b/Tweak/.theos/_/Library/PreferenceBundles/quitAllPrefs.bundle/icon@2x.png deleted file mode 100644 index 29953e5..0000000 Binary files a/Tweak/.theos/_/Library/PreferenceBundles/quitAllPrefs.bundle/icon@2x.png and /dev/null differ diff --git a/Tweak/.theos/_/Library/PreferenceBundles/quitAllPrefs.bundle/icon@3x.png b/Tweak/.theos/_/Library/PreferenceBundles/quitAllPrefs.bundle/icon@3x.png deleted file mode 100644 index 7df6d49..0000000 Binary files a/Tweak/.theos/_/Library/PreferenceBundles/quitAllPrefs.bundle/icon@3x.png and /dev/null differ diff --git a/Tweak/.theos/_/Library/PreferenceBundles/quitAllPrefs.bundle/quitAllPrefs b/Tweak/.theos/_/Library/PreferenceBundles/quitAllPrefs.bundle/quitAllPrefs deleted file mode 100755 index 0714030..0000000 Binary files a/Tweak/.theos/_/Library/PreferenceBundles/quitAllPrefs.bundle/quitAllPrefs and /dev/null differ diff --git a/Tweak/.theos/_/Library/PreferenceLoader/Preferences/quitAllPrefs.plist b/Tweak/.theos/_/Library/PreferenceLoader/Preferences/quitAllPrefs.plist deleted file mode 100644 index 529f7f1..0000000 --- a/Tweak/.theos/_/Library/PreferenceLoader/Preferences/quitAllPrefs.plist +++ /dev/null @@ -1,21 +0,0 @@ - - - - - entry - - bundle - quitAllPrefs - cell - PSLinkCell - detail - qapRootListController - icon - icon.png - isController - - label - QuitAll - - - diff --git a/Tweak/.theos/build_session b/Tweak/.theos/build_session deleted file mode 100644 index e69de29..0000000 diff --git a/Tweak/.theos/fakeroot b/Tweak/.theos/fakeroot deleted file mode 100644 index e69de29..0000000 diff --git a/Tweak/.theos/last_package b/Tweak/.theos/last_package deleted file mode 100644 index 634dcba..0000000 --- a/Tweak/.theos/last_package +++ /dev/null @@ -1 +0,0 @@ -./packages/com.daveapps.quitall_1.0.1-5+debug_iphoneos-arm.deb diff --git a/Tweak/.theos/obj/.stamp b/Tweak/.theos/obj/.stamp deleted file mode 100644 index e69de29..0000000 diff --git a/Tweak/.theos/obj/QuitAll.dylib b/Tweak/.theos/obj/QuitAll.dylib deleted file mode 100755 index 7c2383d..0000000 Binary files a/Tweak/.theos/obj/QuitAll.dylib and /dev/null differ diff --git a/Tweak/.theos/obj/arm64/QuitAll.dylib b/Tweak/.theos/obj/arm64/QuitAll.dylib deleted file mode 100755 index dd6aa81..0000000 Binary files a/Tweak/.theos/obj/arm64/QuitAll.dylib and /dev/null differ diff --git a/Tweak/.theos/obj/arm64/QuitAll.dylib.dSYM/Contents/Info.plist b/Tweak/.theos/obj/arm64/QuitAll.dylib.dSYM/Contents/Info.plist deleted file mode 100644 index 29a436f..0000000 --- a/Tweak/.theos/obj/arm64/QuitAll.dylib.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.QuitAll.dylib - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/Tweak/.theos/obj/arm64/QuitAll.dylib.dSYM/Contents/Resources/DWARF/QuitAll.dylib b/Tweak/.theos/obj/arm64/QuitAll.dylib.dSYM/Contents/Resources/DWARF/QuitAll.dylib deleted file mode 100644 index 6c2f168..0000000 Binary files a/Tweak/.theos/obj/arm64/QuitAll.dylib.dSYM/Contents/Resources/DWARF/QuitAll.dylib and /dev/null differ diff --git a/Tweak/.theos/obj/arm64/Tweak.xm.516a2b38.Td b/Tweak/.theos/obj/arm64/Tweak.xm.516a2b38.Td deleted file mode 100644 index dba9e52..0000000 --- a/Tweak/.theos/obj/arm64/Tweak.xm.516a2b38.Td +++ /dev/null @@ -1,23 +0,0 @@ -/Users/vanwijkdave/Documents/GitHub/QuitAll/Tweak/.theos/obj/arm64/Tweak.xm.516a2b38.o: \ - /Users/vanwijkdave/Documents/GitHub/QuitAll/Tweak/.theos/obj/arm64/Tweak.xm.mm \ - /Users/vanwijkdave/theos/Prefix.pch \ - /Users/vanwijkdave/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /Users/vanwijkdave/theos/vendor/include/_Prefix/IOSMacros.h \ - /Users/vanwijkdave/theos/vendor/include/HBLog.h \ - /Users/vanwijkdave/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ - /Users/vanwijkdave/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ - /Users/vanwijkdave/theos/vendor/include/substrate.h - -/Users/vanwijkdave/theos/Prefix.pch: - -/Users/vanwijkdave/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/Users/vanwijkdave/theos/vendor/include/_Prefix/IOSMacros.h: - -/Users/vanwijkdave/theos/vendor/include/HBLog.h: - -/Users/vanwijkdave/theos/vendor/include/CoreFoundation/CFLogUtilities.h: - -/Users/vanwijkdave/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: - -/Users/vanwijkdave/theos/vendor/include/substrate.h: diff --git a/Tweak/.theos/obj/arm64/Tweak.xm.516a2b38.o b/Tweak/.theos/obj/arm64/Tweak.xm.516a2b38.o deleted file mode 100644 index 334afd6..0000000 Binary files a/Tweak/.theos/obj/arm64/Tweak.xm.516a2b38.o and /dev/null differ diff --git a/Tweak/.theos/obj/arm64/qapRootListController.m.e9feec38.Td b/Tweak/.theos/obj/arm64/qapRootListController.m.e9feec38.Td deleted file mode 100644 index 14a4a70..0000000 --- a/Tweak/.theos/obj/arm64/qapRootListController.m.e9feec38.Td +++ /dev/null @@ -1,46 +0,0 @@ -/Users/vanwijkdave/Documents/GitHub/QuitAll/Tweak/.theos/obj/arm64/qapRootListController.m.e9feec38.o: \ - qapRootListController.m /Users/vanwijkdave/theos/Prefix.pch \ - /Users/vanwijkdave/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /Users/vanwijkdave/theos/vendor/include/_Prefix/IOSMacros.h \ - /Users/vanwijkdave/theos/vendor/include/HBLog.h \ - /Users/vanwijkdave/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ - qapRootListController.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSListController.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSViewController.h \ - /Users/vanwijkdave/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h \ - /Users/vanwijkdave/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSSpecifier.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSTableCell.h \ - /Users/vanwijkdave/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h \ - /Users/vanwijkdave/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h \ - /Users/vanwijkdave/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h - -/Users/vanwijkdave/theos/Prefix.pch: - -/Users/vanwijkdave/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/Users/vanwijkdave/theos/vendor/include/_Prefix/IOSMacros.h: - -/Users/vanwijkdave/theos/vendor/include/HBLog.h: - -/Users/vanwijkdave/theos/vendor/include/CoreFoundation/CFLogUtilities.h: - -qapRootListController.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSListController.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSViewController.h: - -/Users/vanwijkdave/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h: - -/Users/vanwijkdave/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSSpecifier.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSTableCell.h: - -/Users/vanwijkdave/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h: - -/Users/vanwijkdave/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h: - -/Users/vanwijkdave/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h: diff --git a/Tweak/.theos/obj/arm64/qapRootListController.m.e9feec38.o b/Tweak/.theos/obj/arm64/qapRootListController.m.e9feec38.o deleted file mode 100644 index 3089022..0000000 Binary files a/Tweak/.theos/obj/arm64/qapRootListController.m.e9feec38.o and /dev/null differ diff --git a/Tweak/.theos/obj/arm64/quitAllPrefs.bundle/quitAllPrefs b/Tweak/.theos/obj/arm64/quitAllPrefs.bundle/quitAllPrefs deleted file mode 100755 index 3196929..0000000 Binary files a/Tweak/.theos/obj/arm64/quitAllPrefs.bundle/quitAllPrefs and /dev/null differ diff --git a/Tweak/.theos/obj/arm64/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Info.plist b/Tweak/.theos/obj/arm64/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Info.plist deleted file mode 100644 index b363a10..0000000 --- a/Tweak/.theos/obj/arm64/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.quitAllPrefs - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/Tweak/.theos/obj/arm64/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Resources/DWARF/quitAllPrefs b/Tweak/.theos/obj/arm64/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Resources/DWARF/quitAllPrefs deleted file mode 100644 index b4229ac..0000000 Binary files a/Tweak/.theos/obj/arm64/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Resources/DWARF/quitAllPrefs and /dev/null differ diff --git a/Tweak/.theos/obj/arm64/zodiacs.m.e9feec38.Td b/Tweak/.theos/obj/arm64/zodiacs.m.e9feec38.Td deleted file mode 100644 index 753b348..0000000 --- a/Tweak/.theos/obj/arm64/zodiacs.m.e9feec38.Td +++ /dev/null @@ -1,37 +0,0 @@ -/Users/vanwijkdave/Documents/GitHub/QuitAll/Tweak/.theos/obj/arm64/zodiacs.m.e9feec38.o: \ - zodiacs.m /Users/vanwijkdave/theos/Prefix.pch \ - /Users/vanwijkdave/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /Users/vanwijkdave/theos/vendor/include/_Prefix/IOSMacros.h \ - /Users/vanwijkdave/theos/vendor/include/HBLog.h \ - /Users/vanwijkdave/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ - qapRootListController.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSListController.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSViewController.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSSpecifier.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSTableCell.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSSwitchTableCell.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSControlTableCell.h - -/Users/vanwijkdave/theos/Prefix.pch: - -/Users/vanwijkdave/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/Users/vanwijkdave/theos/vendor/include/_Prefix/IOSMacros.h: - -/Users/vanwijkdave/theos/vendor/include/HBLog.h: - -/Users/vanwijkdave/theos/vendor/include/CoreFoundation/CFLogUtilities.h: - -qapRootListController.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSListController.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSViewController.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSSpecifier.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSTableCell.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSSwitchTableCell.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSControlTableCell.h: diff --git a/Tweak/.theos/obj/arm64/zodiacs.m.e9feec38.o b/Tweak/.theos/obj/arm64/zodiacs.m.e9feec38.o deleted file mode 100644 index 2f9c18a..0000000 Binary files a/Tweak/.theos/obj/arm64/zodiacs.m.e9feec38.o and /dev/null differ diff --git a/Tweak/.theos/obj/arm64e/QuitAll.dylib b/Tweak/.theos/obj/arm64e/QuitAll.dylib deleted file mode 100755 index 8233b20..0000000 Binary files a/Tweak/.theos/obj/arm64e/QuitAll.dylib and /dev/null differ diff --git a/Tweak/.theos/obj/arm64e/QuitAll.dylib.dSYM/Contents/Info.plist b/Tweak/.theos/obj/arm64e/QuitAll.dylib.dSYM/Contents/Info.plist deleted file mode 100644 index 29a436f..0000000 --- a/Tweak/.theos/obj/arm64e/QuitAll.dylib.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.QuitAll.dylib - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/Tweak/.theos/obj/arm64e/QuitAll.dylib.dSYM/Contents/Resources/DWARF/QuitAll.dylib b/Tweak/.theos/obj/arm64e/QuitAll.dylib.dSYM/Contents/Resources/DWARF/QuitAll.dylib deleted file mode 100644 index 96e1142..0000000 Binary files a/Tweak/.theos/obj/arm64e/QuitAll.dylib.dSYM/Contents/Resources/DWARF/QuitAll.dylib and /dev/null differ diff --git a/Tweak/.theos/obj/arm64e/Tweak.xm.bc5d9ab6.Td b/Tweak/.theos/obj/arm64e/Tweak.xm.bc5d9ab6.Td deleted file mode 100644 index ddf48a7..0000000 --- a/Tweak/.theos/obj/arm64e/Tweak.xm.bc5d9ab6.Td +++ /dev/null @@ -1,23 +0,0 @@ -/Users/vanwijkdave/Documents/GitHub/QuitAll/Tweak/.theos/obj/arm64e/Tweak.xm.bc5d9ab6.o: \ - /Users/vanwijkdave/Documents/GitHub/QuitAll/Tweak/.theos/obj/arm64e/Tweak.xm.mm \ - /Users/vanwijkdave/theos/Prefix.pch \ - /Users/vanwijkdave/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /Users/vanwijkdave/theos/vendor/include/_Prefix/IOSMacros.h \ - /Users/vanwijkdave/theos/vendor/include/HBLog.h \ - /Users/vanwijkdave/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ - /Users/vanwijkdave/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ - /Users/vanwijkdave/theos/vendor/include/substrate.h - -/Users/vanwijkdave/theos/Prefix.pch: - -/Users/vanwijkdave/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/Users/vanwijkdave/theos/vendor/include/_Prefix/IOSMacros.h: - -/Users/vanwijkdave/theos/vendor/include/HBLog.h: - -/Users/vanwijkdave/theos/vendor/include/CoreFoundation/CFLogUtilities.h: - -/Users/vanwijkdave/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: - -/Users/vanwijkdave/theos/vendor/include/substrate.h: diff --git a/Tweak/.theos/obj/arm64e/Tweak.xm.bc5d9ab6.o b/Tweak/.theos/obj/arm64e/Tweak.xm.bc5d9ab6.o deleted file mode 100644 index 89a82a5..0000000 Binary files a/Tweak/.theos/obj/arm64e/Tweak.xm.bc5d9ab6.o and /dev/null differ diff --git a/Tweak/.theos/obj/arm64e/qapRootListController.m.f7e3d4b3.Td b/Tweak/.theos/obj/arm64e/qapRootListController.m.f7e3d4b3.Td deleted file mode 100644 index d4f4182..0000000 --- a/Tweak/.theos/obj/arm64e/qapRootListController.m.f7e3d4b3.Td +++ /dev/null @@ -1,46 +0,0 @@ -/Users/vanwijkdave/Documents/GitHub/QuitAll/Tweak/.theos/obj/arm64e/qapRootListController.m.f7e3d4b3.o: \ - qapRootListController.m /Users/vanwijkdave/theos/Prefix.pch \ - /Users/vanwijkdave/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /Users/vanwijkdave/theos/vendor/include/_Prefix/IOSMacros.h \ - /Users/vanwijkdave/theos/vendor/include/HBLog.h \ - /Users/vanwijkdave/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ - qapRootListController.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSListController.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSViewController.h \ - /Users/vanwijkdave/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h \ - /Users/vanwijkdave/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSSpecifier.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSTableCell.h \ - /Users/vanwijkdave/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h \ - /Users/vanwijkdave/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h \ - /Users/vanwijkdave/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h - -/Users/vanwijkdave/theos/Prefix.pch: - -/Users/vanwijkdave/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/Users/vanwijkdave/theos/vendor/include/_Prefix/IOSMacros.h: - -/Users/vanwijkdave/theos/vendor/include/HBLog.h: - -/Users/vanwijkdave/theos/vendor/include/CoreFoundation/CFLogUtilities.h: - -qapRootListController.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSListController.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSViewController.h: - -/Users/vanwijkdave/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h: - -/Users/vanwijkdave/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSSpecifier.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSTableCell.h: - -/Users/vanwijkdave/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h: - -/Users/vanwijkdave/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h: - -/Users/vanwijkdave/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h: diff --git a/Tweak/.theos/obj/arm64e/qapRootListController.m.f7e3d4b3.o b/Tweak/.theos/obj/arm64e/qapRootListController.m.f7e3d4b3.o deleted file mode 100644 index 7fe52b2..0000000 Binary files a/Tweak/.theos/obj/arm64e/qapRootListController.m.f7e3d4b3.o and /dev/null differ diff --git a/Tweak/.theos/obj/arm64e/quitAllPrefs.bundle/quitAllPrefs b/Tweak/.theos/obj/arm64e/quitAllPrefs.bundle/quitAllPrefs deleted file mode 100755 index 5b63571..0000000 Binary files a/Tweak/.theos/obj/arm64e/quitAllPrefs.bundle/quitAllPrefs and /dev/null differ diff --git a/Tweak/.theos/obj/arm64e/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Info.plist b/Tweak/.theos/obj/arm64e/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Info.plist deleted file mode 100644 index b363a10..0000000 --- a/Tweak/.theos/obj/arm64e/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.quitAllPrefs - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/Tweak/.theos/obj/arm64e/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Resources/DWARF/quitAllPrefs b/Tweak/.theos/obj/arm64e/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Resources/DWARF/quitAllPrefs deleted file mode 100644 index d2926b3..0000000 Binary files a/Tweak/.theos/obj/arm64e/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Resources/DWARF/quitAllPrefs and /dev/null differ diff --git a/Tweak/.theos/obj/arm64e/zodiacs.m.f7e3d4b3.Td b/Tweak/.theos/obj/arm64e/zodiacs.m.f7e3d4b3.Td deleted file mode 100644 index 12a0694..0000000 --- a/Tweak/.theos/obj/arm64e/zodiacs.m.f7e3d4b3.Td +++ /dev/null @@ -1,37 +0,0 @@ -/Users/vanwijkdave/Documents/GitHub/QuitAll/Tweak/.theos/obj/arm64e/zodiacs.m.f7e3d4b3.o: \ - zodiacs.m /Users/vanwijkdave/theos/Prefix.pch \ - /Users/vanwijkdave/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /Users/vanwijkdave/theos/vendor/include/_Prefix/IOSMacros.h \ - /Users/vanwijkdave/theos/vendor/include/HBLog.h \ - /Users/vanwijkdave/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ - qapRootListController.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSListController.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSViewController.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSSpecifier.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSTableCell.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSSwitchTableCell.h \ - /Users/vanwijkdave/theos/vendor/include/Preferences/PSControlTableCell.h - -/Users/vanwijkdave/theos/Prefix.pch: - -/Users/vanwijkdave/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/Users/vanwijkdave/theos/vendor/include/_Prefix/IOSMacros.h: - -/Users/vanwijkdave/theos/vendor/include/HBLog.h: - -/Users/vanwijkdave/theos/vendor/include/CoreFoundation/CFLogUtilities.h: - -qapRootListController.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSListController.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSViewController.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSSpecifier.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSTableCell.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSSwitchTableCell.h: - -/Users/vanwijkdave/theos/vendor/include/Preferences/PSControlTableCell.h: diff --git a/Tweak/.theos/obj/arm64e/zodiacs.m.f7e3d4b3.o b/Tweak/.theos/obj/arm64e/zodiacs.m.f7e3d4b3.o deleted file mode 100644 index 493534b..0000000 Binary files a/Tweak/.theos/obj/arm64e/zodiacs.m.f7e3d4b3.o and /dev/null differ diff --git a/Tweak/.theos/obj/debug/.stamp b/Tweak/.theos/obj/debug/.stamp deleted file mode 100644 index e69de29..0000000 diff --git a/Tweak/.theos/obj/debug/QuitAll.dylib b/Tweak/.theos/obj/debug/QuitAll.dylib deleted file mode 100755 index 54410fc..0000000 Binary files a/Tweak/.theos/obj/debug/QuitAll.dylib and /dev/null differ diff --git a/Tweak/.theos/obj/debug/arm64/QuitAll.dylib b/Tweak/.theos/obj/debug/arm64/QuitAll.dylib deleted file mode 100755 index eb8f4f0..0000000 Binary files a/Tweak/.theos/obj/debug/arm64/QuitAll.dylib and /dev/null differ diff --git a/Tweak/.theos/obj/debug/arm64/QuitAll.dylib.dSYM/Contents/Info.plist b/Tweak/.theos/obj/debug/arm64/QuitAll.dylib.dSYM/Contents/Info.plist deleted file mode 100644 index 29a436f..0000000 --- a/Tweak/.theos/obj/debug/arm64/QuitAll.dylib.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.QuitAll.dylib - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/Tweak/.theos/obj/debug/arm64/QuitAll.dylib.dSYM/Contents/Resources/DWARF/QuitAll.dylib b/Tweak/.theos/obj/debug/arm64/QuitAll.dylib.dSYM/Contents/Resources/DWARF/QuitAll.dylib deleted file mode 100644 index c4cc948..0000000 Binary files a/Tweak/.theos/obj/debug/arm64/QuitAll.dylib.dSYM/Contents/Resources/DWARF/QuitAll.dylib and /dev/null differ diff --git a/Tweak/.theos/obj/debug/arm64/Tweak.xm.dff74d81.Td b/Tweak/.theos/obj/debug/arm64/Tweak.xm.dff74d81.Td deleted file mode 100644 index 42e5df3..0000000 --- a/Tweak/.theos/obj/debug/arm64/Tweak.xm.dff74d81.Td +++ /dev/null @@ -1,23 +0,0 @@ -/Users/ryon/QuitAll/Tweak/.theos/obj/debug/arm64/Tweak.xm.dff74d81.o: \ - /Users/ryon/QuitAll/Tweak/.theos/obj/debug/arm64/Tweak.xm.mm \ - /Users/ryon/theos/Prefix.pch \ - /Users/ryon/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /Users/ryon/theos/vendor/include/_Prefix/IOSMacros.h \ - /Users/ryon/theos/vendor/include/HBLog.h \ - /Users/ryon/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ - /Users/ryon/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ - /Users/ryon/theos/vendor/include/substrate.h - -/Users/ryon/theos/Prefix.pch: - -/Users/ryon/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/Users/ryon/theos/vendor/include/_Prefix/IOSMacros.h: - -/Users/ryon/theos/vendor/include/HBLog.h: - -/Users/ryon/theos/vendor/include/CoreFoundation/CFLogUtilities.h: - -/Users/ryon/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: - -/Users/ryon/theos/vendor/include/substrate.h: diff --git a/Tweak/.theos/obj/debug/arm64/Tweak.xm.dff74d81.o b/Tweak/.theos/obj/debug/arm64/Tweak.xm.dff74d81.o deleted file mode 100644 index 46e62a0..0000000 Binary files a/Tweak/.theos/obj/debug/arm64/Tweak.xm.dff74d81.o and /dev/null differ diff --git a/Tweak/.theos/obj/debug/arm64/Tweak.xm.mm b/Tweak/.theos/obj/debug/arm64/Tweak.xm.mm deleted file mode 100644 index 3373781..0000000 --- a/Tweak/.theos/obj/debug/arm64/Tweak.xm.mm +++ /dev/null @@ -1,265 +0,0 @@ -#line 1 "Tweak.xm" - -#import - - - -bool enabled = true; -bool leftButtonPlacement = false; -bool darkStyle = false; -bool dontQuitNowPlaying = true; -bool dontQuitNavigation = true; - -bool addedButton = false; -bool transparantButton = false; -UIView *buttonView; -UILabel *fromLabel; - -@interface SBSwitcherAppSuggestionContentView: UIView -@end - -@interface SBDisplayItem: NSObject -@property (nonatomic,copy,readonly) NSString * bundleIdentifier; -@end - -@interface SBApplication : NSObject -@property (nonatomic,readonly) NSString * bundleIdentifier; -@end - -@interface SBMediaController : NSObject -@property (nonatomic, weak,readonly) SBApplication * nowPlayingApplication; -+(id)sharedInstance; -@end - - - - -@interface SBMainSwitcherViewController: UIViewController -+ (id)sharedInstance; --(id)recentAppLayouts; --(void)_rebuildAppListCache; --(void)_destroyAppListCache; --(void)_removeCardForDisplayIdentifier:(id)arg1 ; --(void)_deleteAppLayout:(id)arg1 forReason:(long long)arg2; -@end - -@interface SBAppLayout:NSObject -@property (nonatomic,copy) NSDictionary * rolesToLayoutItemsMap; -@end - -@interface SBRecentAppLayouts: NSObject -+ (id)sharedInstance; --(id)_recentsFromPrefs; --(void)remove:(SBAppLayout* )arg1; --(void)removeAppLayouts:(id)arg1 ; -@end - - -#include -#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 SBMediaController; @class SBMainSwitcherViewController; @class SBSwitcherAppSuggestionContentView; - -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; } -#line 56 "Tweak.xm" -static void (*_logos_orig$tweak$SBSwitcherAppSuggestionContentView$didMoveToWindow)(_LOGOS_SELF_TYPE_NORMAL SBSwitcherAppSuggestionContentView* _LOGOS_SELF_CONST, SEL); static void _logos_method$tweak$SBSwitcherAppSuggestionContentView$didMoveToWindow(_LOGOS_SELF_TYPE_NORMAL SBSwitcherAppSuggestionContentView* _LOGOS_SELF_CONST, SEL); static void _logos_method$tweak$SBSwitcherAppSuggestionContentView$buttonClicked$(_LOGOS_SELF_TYPE_NORMAL SBSwitcherAppSuggestionContentView* _LOGOS_SELF_CONST, SEL, UIButton*); static void (*_logos_orig$tweak$SBMainSwitcherViewController$switcherContentController$setContainerStatusBarHidden$animationDuration$)(_LOGOS_SELF_TYPE_NORMAL SBMainSwitcherViewController* _LOGOS_SELF_CONST, SEL, id, BOOL, double); static void _logos_method$tweak$SBMainSwitcherViewController$switcherContentController$setContainerStatusBarHidden$animationDuration$(_LOGOS_SELF_TYPE_NORMAL SBMainSwitcherViewController* _LOGOS_SELF_CONST, SEL, id, BOOL, double); - - -static void _logos_method$tweak$SBSwitcherAppSuggestionContentView$didMoveToWindow(_LOGOS_SELF_TYPE_NORMAL SBSwitcherAppSuggestionContentView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { - _logos_orig$tweak$SBSwitcherAppSuggestionContentView$didMoveToWindow(self, _cmd); - if (!addedButton) { - - - buttonView = [[UIView alloc] init]; - buttonView.frame = CGRectMake(300.0, 12.0, 60.0, 26.0); - buttonView.clipsToBounds = true; - buttonView.tag = 7; - buttonView.alpha = 0.60; - buttonView.layer.cornerRadius = 12; - - - UIBlurEffect *blurEffect; - if (darkStyle) { - blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark]; - } else { - blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; - } - UIVisualEffectView *blurEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect]; - blurEffectView.frame = buttonView.bounds; - blurEffectView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; - [buttonView addSubview:blurEffectView]; - - - [self insertSubview:buttonView atIndex:10]; - - - buttonView.translatesAutoresizingMaskIntoConstraints = false; - [buttonView.topAnchor constraintEqualToAnchor:self.topAnchor constant:12].active = YES; - if (leftButtonPlacement) { - [buttonView.leftAnchor constraintEqualToAnchor:self.leftAnchor constant:15].active = YES; - } else { - [buttonView.rightAnchor constraintEqualToAnchor:self.rightAnchor constant:-18].active = YES; - } - [buttonView.widthAnchor constraintEqualToConstant:57.0].active = YES; - [buttonView.heightAnchor constraintEqualToConstant:25.0].active = YES; - - - UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; - [button addTarget:self - action:@selector(buttonClicked:) - forControlEvents:UIControlEventTouchUpInside]; - button.frame = buttonView.frame; - [buttonView addSubview:button]; - [self insertSubview:button atIndex:12]; - - - - button.translatesAutoresizingMaskIntoConstraints = false; - [button.topAnchor constraintEqualToAnchor:buttonView.topAnchor constant:0].active = YES; - [button.bottomAnchor constraintEqualToAnchor:buttonView.bottomAnchor constant:0].active = YES; - [button.leftAnchor constraintEqualToAnchor:buttonView.leftAnchor constant:0].active = YES; - [button.rightAnchor constraintEqualToAnchor:buttonView.rightAnchor constant:0].active = YES; - - - - UIFont * customFont = [UIFont fontWithName:@"Arial-BoldMT" size:12.5]; - fromLabel = [[UILabel alloc]initWithFrame:buttonView.bounds]; - fromLabel.text = @"Clear"; - fromLabel.font = customFont; - fromLabel.textAlignment = NSTextAlignmentCenter; - fromLabel.tag = 7; - fromLabel.textColor = [UIColor whiteColor]; - - [self insertSubview:fromLabel atIndex:11]; - - - fromLabel.translatesAutoresizingMaskIntoConstraints = false; - [fromLabel.topAnchor constraintEqualToAnchor:buttonView.topAnchor constant:0].active = YES; - [fromLabel.bottomAnchor constraintEqualToAnchor:buttonView.bottomAnchor constant:0].active = YES; - [fromLabel.leftAnchor constraintEqualToAnchor:buttonView.leftAnchor constant:0].active = YES; - [fromLabel.rightAnchor constraintEqualToAnchor:buttonView.rightAnchor constant:0].active = YES; - - - fromLabel.alpha = 0; - buttonView.alpha = 0; - - - [UIView animateWithDuration:0.5 animations:^ { - buttonView.alpha = 1; - fromLabel.alpha = 1; - - } completion:^(BOOL finished) { - }]; - - addedButton = true; - - } else if (addedButton && transparantButton) { - [UIView animateWithDuration:0.3 animations:^ { - buttonView.alpha = 0.6; - fromLabel.alpha = 1; - - }]; - transparantButton = false; - } - -} - - - - -static void _logos_method$tweak$SBSwitcherAppSuggestionContentView$buttonClicked$(_LOGOS_SELF_TYPE_NORMAL SBSwitcherAppSuggestionContentView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, UIButton* sender) { - id one = @1; - - - SBMainSwitcherViewController *mainSwitcher = [_logos_static_class_lookup$SBMainSwitcherViewController() sharedInstance]; - NSArray *items = mainSwitcher.recentAppLayouts; - for(SBAppLayout * item in items) { - SBDisplayItem *itemz = [item.rolesToLayoutItemsMap objectForKey:one]; - NSString *bundleID = itemz.bundleIdentifier; - NSString *nowPlayingID = [[[_logos_static_class_lookup$SBMediaController() sharedInstance] nowPlayingApplication] bundleIdentifier]; - - if (dontQuitNowPlaying) { - if (![bundleID isEqualToString: nowPlayingID] ) { - [mainSwitcher _deleteAppLayout:item forReason: 1]; - - } - } else if (dontQuitNavigation) { - if (![bundleID isEqualToString:@"com.google.Maps"] ) { - [mainSwitcher _deleteAppLayout:item forReason: 1]; - - } - } else { - [mainSwitcher _deleteAppLayout:item forReason: 1]; - } - } - - - [UIView animateWithDuration:0.3 animations:^ { - buttonView.alpha = 0; - fromLabel.alpha = 0; - - }]; - transparantButton = true; - - } - - - - - - -static void _logos_method$tweak$SBMainSwitcherViewController$switcherContentController$setContainerStatusBarHidden$animationDuration$(_LOGOS_SELF_TYPE_NORMAL SBMainSwitcherViewController* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, id arg1, BOOL arg2, double arg3) { - if (arg2 == false) { - [UIView animateWithDuration:0.3 animations:^ { - buttonView.alpha = 0; - fromLabel.alpha = 0; - - }]; - transparantButton = true; - - } - _logos_orig$tweak$SBMainSwitcherViewController$switcherContentController$setContainerStatusBarHidden$animationDuration$(self, _cmd, arg1, arg2, arg3); - -} - - - - - -void loadPrefs() { - HBPreferences *file = [[HBPreferences alloc] initWithIdentifier:@"com.daveapps.quitallprefs"]; - enabled = [([file objectForKey:@"kEnabled"] ?: @(YES)) boolValue]; - darkStyle = [([file objectForKey:@"kDarkButton"] ?: @(NO)) boolValue]; - leftButtonPlacement = [([file objectForKey:@"kLeftPlacement"] ?: @(NO)) boolValue]; - dontQuitNowPlaying = [([file objectForKey:@"kKeepMusicAlive"] ?: @(YES)) boolValue]; - dontQuitNavigation = [([file objectForKey:@"kKeepNavAlive"] ?: @(YES)) boolValue]; - - if (enabled) { - {Class _logos_class$tweak$SBSwitcherAppSuggestionContentView = objc_getClass("SBSwitcherAppSuggestionContentView"); MSHookMessageEx(_logos_class$tweak$SBSwitcherAppSuggestionContentView, @selector(didMoveToWindow), (IMP)&_logos_method$tweak$SBSwitcherAppSuggestionContentView$didMoveToWindow, (IMP*)&_logos_orig$tweak$SBSwitcherAppSuggestionContentView$didMoveToWindow);{ char _typeEncoding[1024]; unsigned int i = 0; _typeEncoding[i] = 'v'; i += 1; _typeEncoding[i] = '@'; i += 1; _typeEncoding[i] = ':'; i += 1; memcpy(_typeEncoding + i, @encode(UIButton*), strlen(@encode(UIButton*))); i += strlen(@encode(UIButton*)); _typeEncoding[i] = '\0'; class_addMethod(_logos_class$tweak$SBSwitcherAppSuggestionContentView, @selector(buttonClicked:), (IMP)&_logos_method$tweak$SBSwitcherAppSuggestionContentView$buttonClicked$, _typeEncoding); }Class _logos_class$tweak$SBMainSwitcherViewController = objc_getClass("SBMainSwitcherViewController"); MSHookMessageEx(_logos_class$tweak$SBMainSwitcherViewController, @selector(switcherContentController:setContainerStatusBarHidden:animationDuration:), (IMP)&_logos_method$tweak$SBMainSwitcherViewController$switcherContentController$setContainerStatusBarHidden$animationDuration$, (IMP*)&_logos_orig$tweak$SBMainSwitcherViewController$switcherContentController$setContainerStatusBarHidden$animationDuration$);} - } -} - - - -static __attribute__((constructor)) void _logosLocalCtor_e13ba4cd(int __unused argc, char __unused **argv, char __unused **envp) { - - loadPrefs(); - -} diff --git a/Tweak/.theos/obj/debug/arm64/qapRootListController.m.1dd940a3.Td b/Tweak/.theos/obj/debug/arm64/qapRootListController.m.1dd940a3.Td deleted file mode 100644 index a5cfe37..0000000 --- a/Tweak/.theos/obj/debug/arm64/qapRootListController.m.1dd940a3.Td +++ /dev/null @@ -1,46 +0,0 @@ -/Users/ryon/QuitAll/Tweak/.theos/obj/debug/arm64/qapRootListController.m.1dd940a3.o: \ - qapRootListController.m /Users/ryon/theos/Prefix.pch \ - /Users/ryon/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /Users/ryon/theos/vendor/include/_Prefix/IOSMacros.h \ - /Users/ryon/theos/vendor/include/HBLog.h \ - /Users/ryon/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ - qapRootListController.h \ - /Users/ryon/theos/vendor/include/Preferences/PSListController.h \ - /Users/ryon/theos/vendor/include/Preferences/PSViewController.h \ - /Users/ryon/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h \ - /Users/ryon/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ - /Users/ryon/theos/vendor/include/Preferences/PSSpecifier.h \ - /Users/ryon/theos/vendor/include/Preferences/PSTableCell.h \ - /Users/ryon/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h \ - /Users/ryon/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h \ - /Users/ryon/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h - -/Users/ryon/theos/Prefix.pch: - -/Users/ryon/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/Users/ryon/theos/vendor/include/_Prefix/IOSMacros.h: - -/Users/ryon/theos/vendor/include/HBLog.h: - -/Users/ryon/theos/vendor/include/CoreFoundation/CFLogUtilities.h: - -qapRootListController.h: - -/Users/ryon/theos/vendor/include/Preferences/PSListController.h: - -/Users/ryon/theos/vendor/include/Preferences/PSViewController.h: - -/Users/ryon/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h: - -/Users/ryon/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: - -/Users/ryon/theos/vendor/include/Preferences/PSSpecifier.h: - -/Users/ryon/theos/vendor/include/Preferences/PSTableCell.h: - -/Users/ryon/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h: - -/Users/ryon/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h: - -/Users/ryon/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h: diff --git a/Tweak/.theos/obj/debug/arm64/qapRootListController.m.1dd940a3.o b/Tweak/.theos/obj/debug/arm64/qapRootListController.m.1dd940a3.o deleted file mode 100644 index 81e2337..0000000 Binary files a/Tweak/.theos/obj/debug/arm64/qapRootListController.m.1dd940a3.o and /dev/null differ diff --git a/Tweak/.theos/obj/debug/arm64/quitAllPrefs.bundle/quitAllPrefs b/Tweak/.theos/obj/debug/arm64/quitAllPrefs.bundle/quitAllPrefs deleted file mode 100755 index 7f83de0..0000000 Binary files a/Tweak/.theos/obj/debug/arm64/quitAllPrefs.bundle/quitAllPrefs and /dev/null differ diff --git a/Tweak/.theos/obj/debug/arm64/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Info.plist b/Tweak/.theos/obj/debug/arm64/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Info.plist deleted file mode 100644 index b363a10..0000000 --- a/Tweak/.theos/obj/debug/arm64/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.quitAllPrefs - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/Tweak/.theos/obj/debug/arm64/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Resources/DWARF/quitAllPrefs b/Tweak/.theos/obj/debug/arm64/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Resources/DWARF/quitAllPrefs deleted file mode 100644 index 7e9d6b3..0000000 Binary files a/Tweak/.theos/obj/debug/arm64/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Resources/DWARF/quitAllPrefs and /dev/null differ diff --git a/Tweak/.theos/obj/debug/arm64/zodiacs.m.1dd940a3.Td b/Tweak/.theos/obj/debug/arm64/zodiacs.m.1dd940a3.Td deleted file mode 100644 index 1fd13f1..0000000 --- a/Tweak/.theos/obj/debug/arm64/zodiacs.m.1dd940a3.Td +++ /dev/null @@ -1,37 +0,0 @@ -/Users/ryon/QuitAll/Tweak/.theos/obj/debug/arm64/zodiacs.m.1dd940a3.o: \ - zodiacs.m /Users/ryon/theos/Prefix.pch \ - /Users/ryon/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /Users/ryon/theos/vendor/include/_Prefix/IOSMacros.h \ - /Users/ryon/theos/vendor/include/HBLog.h \ - /Users/ryon/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ - qapRootListController.h \ - /Users/ryon/theos/vendor/include/Preferences/PSListController.h \ - /Users/ryon/theos/vendor/include/Preferences/PSViewController.h \ - /Users/ryon/theos/vendor/include/Preferences/PSSpecifier.h \ - /Users/ryon/theos/vendor/include/Preferences/PSTableCell.h \ - /Users/ryon/theos/vendor/include/Preferences/PSSwitchTableCell.h \ - /Users/ryon/theos/vendor/include/Preferences/PSControlTableCell.h - -/Users/ryon/theos/Prefix.pch: - -/Users/ryon/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/Users/ryon/theos/vendor/include/_Prefix/IOSMacros.h: - -/Users/ryon/theos/vendor/include/HBLog.h: - -/Users/ryon/theos/vendor/include/CoreFoundation/CFLogUtilities.h: - -qapRootListController.h: - -/Users/ryon/theos/vendor/include/Preferences/PSListController.h: - -/Users/ryon/theos/vendor/include/Preferences/PSViewController.h: - -/Users/ryon/theos/vendor/include/Preferences/PSSpecifier.h: - -/Users/ryon/theos/vendor/include/Preferences/PSTableCell.h: - -/Users/ryon/theos/vendor/include/Preferences/PSSwitchTableCell.h: - -/Users/ryon/theos/vendor/include/Preferences/PSControlTableCell.h: diff --git a/Tweak/.theos/obj/debug/arm64/zodiacs.m.1dd940a3.o b/Tweak/.theos/obj/debug/arm64/zodiacs.m.1dd940a3.o deleted file mode 100644 index 09137c1..0000000 Binary files a/Tweak/.theos/obj/debug/arm64/zodiacs.m.1dd940a3.o and /dev/null differ diff --git a/Tweak/.theos/obj/debug/arm64e/QuitAll.dylib b/Tweak/.theos/obj/debug/arm64e/QuitAll.dylib deleted file mode 100755 index b76ae55..0000000 Binary files a/Tweak/.theos/obj/debug/arm64e/QuitAll.dylib and /dev/null differ diff --git a/Tweak/.theos/obj/debug/arm64e/QuitAll.dylib.dSYM/Contents/Info.plist b/Tweak/.theos/obj/debug/arm64e/QuitAll.dylib.dSYM/Contents/Info.plist deleted file mode 100644 index 29a436f..0000000 --- a/Tweak/.theos/obj/debug/arm64e/QuitAll.dylib.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.QuitAll.dylib - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/Tweak/.theos/obj/debug/arm64e/QuitAll.dylib.dSYM/Contents/Resources/DWARF/QuitAll.dylib b/Tweak/.theos/obj/debug/arm64e/QuitAll.dylib.dSYM/Contents/Resources/DWARF/QuitAll.dylib deleted file mode 100644 index 327cbc0..0000000 Binary files a/Tweak/.theos/obj/debug/arm64e/QuitAll.dylib.dSYM/Contents/Resources/DWARF/QuitAll.dylib and /dev/null differ diff --git a/Tweak/.theos/obj/debug/arm64e/Tweak.xm.5984c4dd.Td b/Tweak/.theos/obj/debug/arm64e/Tweak.xm.5984c4dd.Td deleted file mode 100644 index fb756d4..0000000 --- a/Tweak/.theos/obj/debug/arm64e/Tweak.xm.5984c4dd.Td +++ /dev/null @@ -1,23 +0,0 @@ -/Users/ryon/QuitAll/Tweak/.theos/obj/debug/arm64e/Tweak.xm.5984c4dd.o: \ - /Users/ryon/QuitAll/Tweak/.theos/obj/debug/arm64e/Tweak.xm.mm \ - /Users/ryon/theos/Prefix.pch \ - /Users/ryon/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /Users/ryon/theos/vendor/include/_Prefix/IOSMacros.h \ - /Users/ryon/theos/vendor/include/HBLog.h \ - /Users/ryon/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ - /Users/ryon/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ - /Users/ryon/theos/vendor/include/substrate.h - -/Users/ryon/theos/Prefix.pch: - -/Users/ryon/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/Users/ryon/theos/vendor/include/_Prefix/IOSMacros.h: - -/Users/ryon/theos/vendor/include/HBLog.h: - -/Users/ryon/theos/vendor/include/CoreFoundation/CFLogUtilities.h: - -/Users/ryon/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: - -/Users/ryon/theos/vendor/include/substrate.h: diff --git a/Tweak/.theos/obj/debug/arm64e/Tweak.xm.5984c4dd.o b/Tweak/.theos/obj/debug/arm64e/Tweak.xm.5984c4dd.o deleted file mode 100644 index 47b0bcb..0000000 Binary files a/Tweak/.theos/obj/debug/arm64e/Tweak.xm.5984c4dd.o and /dev/null differ diff --git a/Tweak/.theos/obj/debug/arm64e/Tweak.xm.mm b/Tweak/.theos/obj/debug/arm64e/Tweak.xm.mm deleted file mode 100644 index 75defbd..0000000 --- a/Tweak/.theos/obj/debug/arm64e/Tweak.xm.mm +++ /dev/null @@ -1,265 +0,0 @@ -#line 1 "Tweak.xm" - -#import - - - -bool enabled = true; -bool leftButtonPlacement = false; -bool darkStyle = false; -bool dontQuitNowPlaying = true; -bool dontQuitNavigation = true; - -bool addedButton = false; -bool transparantButton = false; -UIView *buttonView; -UILabel *fromLabel; - -@interface SBSwitcherAppSuggestionContentView: UIView -@end - -@interface SBDisplayItem: NSObject -@property (nonatomic,copy,readonly) NSString * bundleIdentifier; -@end - -@interface SBApplication : NSObject -@property (nonatomic,readonly) NSString * bundleIdentifier; -@end - -@interface SBMediaController : NSObject -@property (nonatomic, weak,readonly) SBApplication * nowPlayingApplication; -+(id)sharedInstance; -@end - - - - -@interface SBMainSwitcherViewController: UIViewController -+ (id)sharedInstance; --(id)recentAppLayouts; --(void)_rebuildAppListCache; --(void)_destroyAppListCache; --(void)_removeCardForDisplayIdentifier:(id)arg1 ; --(void)_deleteAppLayout:(id)arg1 forReason:(long long)arg2; -@end - -@interface SBAppLayout:NSObject -@property (nonatomic,copy) NSDictionary * rolesToLayoutItemsMap; -@end - -@interface SBRecentAppLayouts: NSObject -+ (id)sharedInstance; --(id)_recentsFromPrefs; --(void)remove:(SBAppLayout* )arg1; --(void)removeAppLayouts:(id)arg1 ; -@end - - -#include -#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 SBMediaController; @class SBSwitcherAppSuggestionContentView; @class SBMainSwitcherViewController; - -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$SBMediaController(void) { static Class _klass; if(!_klass) { _klass = objc_getClass("SBMediaController"); } return _klass; } -#line 56 "Tweak.xm" -static void (*_logos_orig$tweak$SBSwitcherAppSuggestionContentView$didMoveToWindow)(_LOGOS_SELF_TYPE_NORMAL SBSwitcherAppSuggestionContentView* _LOGOS_SELF_CONST, SEL); static void _logos_method$tweak$SBSwitcherAppSuggestionContentView$didMoveToWindow(_LOGOS_SELF_TYPE_NORMAL SBSwitcherAppSuggestionContentView* _LOGOS_SELF_CONST, SEL); static void _logos_method$tweak$SBSwitcherAppSuggestionContentView$buttonClicked$(_LOGOS_SELF_TYPE_NORMAL SBSwitcherAppSuggestionContentView* _LOGOS_SELF_CONST, SEL, UIButton*); static void (*_logos_orig$tweak$SBMainSwitcherViewController$switcherContentController$setContainerStatusBarHidden$animationDuration$)(_LOGOS_SELF_TYPE_NORMAL SBMainSwitcherViewController* _LOGOS_SELF_CONST, SEL, id, BOOL, double); static void _logos_method$tweak$SBMainSwitcherViewController$switcherContentController$setContainerStatusBarHidden$animationDuration$(_LOGOS_SELF_TYPE_NORMAL SBMainSwitcherViewController* _LOGOS_SELF_CONST, SEL, id, BOOL, double); - - -static void _logos_method$tweak$SBSwitcherAppSuggestionContentView$didMoveToWindow(_LOGOS_SELF_TYPE_NORMAL SBSwitcherAppSuggestionContentView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { - _logos_orig$tweak$SBSwitcherAppSuggestionContentView$didMoveToWindow(self, _cmd); - if (!addedButton) { - - - buttonView = [[UIView alloc] init]; - buttonView.frame = CGRectMake(300.0, 12.0, 60.0, 26.0); - buttonView.clipsToBounds = true; - buttonView.tag = 7; - buttonView.alpha = 0.60; - buttonView.layer.cornerRadius = 12; - - - UIBlurEffect *blurEffect; - if (darkStyle) { - blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark]; - } else { - blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; - } - UIVisualEffectView *blurEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect]; - blurEffectView.frame = buttonView.bounds; - blurEffectView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; - [buttonView addSubview:blurEffectView]; - - - [self insertSubview:buttonView atIndex:10]; - - - buttonView.translatesAutoresizingMaskIntoConstraints = false; - [buttonView.topAnchor constraintEqualToAnchor:self.topAnchor constant:12].active = YES; - if (leftButtonPlacement) { - [buttonView.leftAnchor constraintEqualToAnchor:self.leftAnchor constant:15].active = YES; - } else { - [buttonView.rightAnchor constraintEqualToAnchor:self.rightAnchor constant:-18].active = YES; - } - [buttonView.widthAnchor constraintEqualToConstant:57.0].active = YES; - [buttonView.heightAnchor constraintEqualToConstant:25.0].active = YES; - - - UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; - [button addTarget:self - action:@selector(buttonClicked:) - forControlEvents:UIControlEventTouchUpInside]; - button.frame = buttonView.frame; - [buttonView addSubview:button]; - [self insertSubview:button atIndex:12]; - - - - button.translatesAutoresizingMaskIntoConstraints = false; - [button.topAnchor constraintEqualToAnchor:buttonView.topAnchor constant:0].active = YES; - [button.bottomAnchor constraintEqualToAnchor:buttonView.bottomAnchor constant:0].active = YES; - [button.leftAnchor constraintEqualToAnchor:buttonView.leftAnchor constant:0].active = YES; - [button.rightAnchor constraintEqualToAnchor:buttonView.rightAnchor constant:0].active = YES; - - - - UIFont * customFont = [UIFont fontWithName:@"Arial-BoldMT" size:12.5]; - fromLabel = [[UILabel alloc]initWithFrame:buttonView.bounds]; - fromLabel.text = @"Clear"; - fromLabel.font = customFont; - fromLabel.textAlignment = NSTextAlignmentCenter; - fromLabel.tag = 7; - fromLabel.textColor = [UIColor whiteColor]; - - [self insertSubview:fromLabel atIndex:11]; - - - fromLabel.translatesAutoresizingMaskIntoConstraints = false; - [fromLabel.topAnchor constraintEqualToAnchor:buttonView.topAnchor constant:0].active = YES; - [fromLabel.bottomAnchor constraintEqualToAnchor:buttonView.bottomAnchor constant:0].active = YES; - [fromLabel.leftAnchor constraintEqualToAnchor:buttonView.leftAnchor constant:0].active = YES; - [fromLabel.rightAnchor constraintEqualToAnchor:buttonView.rightAnchor constant:0].active = YES; - - - fromLabel.alpha = 0; - buttonView.alpha = 0; - - - [UIView animateWithDuration:0.5 animations:^ { - buttonView.alpha = 1; - fromLabel.alpha = 1; - - } completion:^(BOOL finished) { - }]; - - addedButton = true; - - } else if (addedButton && transparantButton) { - [UIView animateWithDuration:0.3 animations:^ { - buttonView.alpha = 0.6; - fromLabel.alpha = 1; - - }]; - transparantButton = false; - } - -} - - - - -static void _logos_method$tweak$SBSwitcherAppSuggestionContentView$buttonClicked$(_LOGOS_SELF_TYPE_NORMAL SBSwitcherAppSuggestionContentView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, UIButton* sender) { - id one = @1; - - - SBMainSwitcherViewController *mainSwitcher = [_logos_static_class_lookup$SBMainSwitcherViewController() sharedInstance]; - NSArray *items = mainSwitcher.recentAppLayouts; - for(SBAppLayout * item in items) { - SBDisplayItem *itemz = [item.rolesToLayoutItemsMap objectForKey:one]; - NSString *bundleID = itemz.bundleIdentifier; - NSString *nowPlayingID = [[[_logos_static_class_lookup$SBMediaController() sharedInstance] nowPlayingApplication] bundleIdentifier]; - - if (dontQuitNowPlaying) { - if (![bundleID isEqualToString: nowPlayingID] ) { - [mainSwitcher _deleteAppLayout:item forReason: 1]; - - } - } else if (dontQuitNavigation) { - if (![bundleID isEqualToString:@"com.google.Maps"] ) { - [mainSwitcher _deleteAppLayout:item forReason: 1]; - - } - } else { - [mainSwitcher _deleteAppLayout:item forReason: 1]; - } - } - - - [UIView animateWithDuration:0.3 animations:^ { - buttonView.alpha = 0; - fromLabel.alpha = 0; - - }]; - transparantButton = true; - - } - - - - - - -static void _logos_method$tweak$SBMainSwitcherViewController$switcherContentController$setContainerStatusBarHidden$animationDuration$(_LOGOS_SELF_TYPE_NORMAL SBMainSwitcherViewController* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, id arg1, BOOL arg2, double arg3) { - if (arg2 == false) { - [UIView animateWithDuration:0.3 animations:^ { - buttonView.alpha = 0; - fromLabel.alpha = 0; - - }]; - transparantButton = true; - - } - _logos_orig$tweak$SBMainSwitcherViewController$switcherContentController$setContainerStatusBarHidden$animationDuration$(self, _cmd, arg1, arg2, arg3); - -} - - - - - -void loadPrefs() { - HBPreferences *file = [[HBPreferences alloc] initWithIdentifier:@"com.daveapps.quitallprefs"]; - enabled = [([file objectForKey:@"kEnabled"] ?: @(YES)) boolValue]; - darkStyle = [([file objectForKey:@"kDarkButton"] ?: @(NO)) boolValue]; - leftButtonPlacement = [([file objectForKey:@"kLeftPlacement"] ?: @(NO)) boolValue]; - dontQuitNowPlaying = [([file objectForKey:@"kKeepMusicAlive"] ?: @(YES)) boolValue]; - dontQuitNavigation = [([file objectForKey:@"kKeepNavAlive"] ?: @(YES)) boolValue]; - - if (enabled) { - {Class _logos_class$tweak$SBSwitcherAppSuggestionContentView = objc_getClass("SBSwitcherAppSuggestionContentView"); MSHookMessageEx(_logos_class$tweak$SBSwitcherAppSuggestionContentView, @selector(didMoveToWindow), (IMP)&_logos_method$tweak$SBSwitcherAppSuggestionContentView$didMoveToWindow, (IMP*)&_logos_orig$tweak$SBSwitcherAppSuggestionContentView$didMoveToWindow);{ char _typeEncoding[1024]; unsigned int i = 0; _typeEncoding[i] = 'v'; i += 1; _typeEncoding[i] = '@'; i += 1; _typeEncoding[i] = ':'; i += 1; memcpy(_typeEncoding + i, @encode(UIButton*), strlen(@encode(UIButton*))); i += strlen(@encode(UIButton*)); _typeEncoding[i] = '\0'; class_addMethod(_logos_class$tweak$SBSwitcherAppSuggestionContentView, @selector(buttonClicked:), (IMP)&_logos_method$tweak$SBSwitcherAppSuggestionContentView$buttonClicked$, _typeEncoding); }Class _logos_class$tweak$SBMainSwitcherViewController = objc_getClass("SBMainSwitcherViewController"); MSHookMessageEx(_logos_class$tweak$SBMainSwitcherViewController, @selector(switcherContentController:setContainerStatusBarHidden:animationDuration:), (IMP)&_logos_method$tweak$SBMainSwitcherViewController$switcherContentController$setContainerStatusBarHidden$animationDuration$, (IMP*)&_logos_orig$tweak$SBMainSwitcherViewController$switcherContentController$setContainerStatusBarHidden$animationDuration$);} - } -} - - - -static __attribute__((constructor)) void _logosLocalCtor_e13ba4cd(int __unused argc, char __unused **argv, char __unused **envp) { - - loadPrefs(); - -} diff --git a/Tweak/.theos/obj/debug/arm64e/qapRootListController.m.e38cb994.Td b/Tweak/.theos/obj/debug/arm64e/qapRootListController.m.e38cb994.Td deleted file mode 100644 index 5e8bbf0..0000000 --- a/Tweak/.theos/obj/debug/arm64e/qapRootListController.m.e38cb994.Td +++ /dev/null @@ -1,46 +0,0 @@ -/Users/ryon/QuitAll/Tweak/.theos/obj/debug/arm64e/qapRootListController.m.e38cb994.o: \ - qapRootListController.m /Users/ryon/theos/Prefix.pch \ - /Users/ryon/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /Users/ryon/theos/vendor/include/_Prefix/IOSMacros.h \ - /Users/ryon/theos/vendor/include/HBLog.h \ - /Users/ryon/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ - qapRootListController.h \ - /Users/ryon/theos/vendor/include/Preferences/PSListController.h \ - /Users/ryon/theos/vendor/include/Preferences/PSViewController.h \ - /Users/ryon/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h \ - /Users/ryon/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ - /Users/ryon/theos/vendor/include/Preferences/PSSpecifier.h \ - /Users/ryon/theos/vendor/include/Preferences/PSTableCell.h \ - /Users/ryon/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h \ - /Users/ryon/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h \ - /Users/ryon/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h - -/Users/ryon/theos/Prefix.pch: - -/Users/ryon/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/Users/ryon/theos/vendor/include/_Prefix/IOSMacros.h: - -/Users/ryon/theos/vendor/include/HBLog.h: - -/Users/ryon/theos/vendor/include/CoreFoundation/CFLogUtilities.h: - -qapRootListController.h: - -/Users/ryon/theos/vendor/include/Preferences/PSListController.h: - -/Users/ryon/theos/vendor/include/Preferences/PSViewController.h: - -/Users/ryon/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h: - -/Users/ryon/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: - -/Users/ryon/theos/vendor/include/Preferences/PSSpecifier.h: - -/Users/ryon/theos/vendor/include/Preferences/PSTableCell.h: - -/Users/ryon/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h: - -/Users/ryon/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h: - -/Users/ryon/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h: diff --git a/Tweak/.theos/obj/debug/arm64e/qapRootListController.m.e38cb994.o b/Tweak/.theos/obj/debug/arm64e/qapRootListController.m.e38cb994.o deleted file mode 100644 index d53b385..0000000 Binary files a/Tweak/.theos/obj/debug/arm64e/qapRootListController.m.e38cb994.o and /dev/null differ diff --git a/Tweak/.theos/obj/debug/arm64e/quitAllPrefs.bundle/quitAllPrefs b/Tweak/.theos/obj/debug/arm64e/quitAllPrefs.bundle/quitAllPrefs deleted file mode 100755 index 901d674..0000000 Binary files a/Tweak/.theos/obj/debug/arm64e/quitAllPrefs.bundle/quitAllPrefs and /dev/null differ diff --git a/Tweak/.theos/obj/debug/arm64e/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Info.plist b/Tweak/.theos/obj/debug/arm64e/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Info.plist deleted file mode 100644 index b363a10..0000000 --- a/Tweak/.theos/obj/debug/arm64e/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.quitAllPrefs - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/Tweak/.theos/obj/debug/arm64e/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Resources/DWARF/quitAllPrefs b/Tweak/.theos/obj/debug/arm64e/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Resources/DWARF/quitAllPrefs deleted file mode 100644 index db3e7b0..0000000 Binary files a/Tweak/.theos/obj/debug/arm64e/quitAllPrefs.bundle/quitAllPrefs.dSYM/Contents/Resources/DWARF/quitAllPrefs and /dev/null differ diff --git a/Tweak/.theos/obj/debug/arm64e/zodiacs.m.e38cb994.Td b/Tweak/.theos/obj/debug/arm64e/zodiacs.m.e38cb994.Td deleted file mode 100644 index a68cb9e..0000000 --- a/Tweak/.theos/obj/debug/arm64e/zodiacs.m.e38cb994.Td +++ /dev/null @@ -1,37 +0,0 @@ -/Users/ryon/QuitAll/Tweak/.theos/obj/debug/arm64e/zodiacs.m.e38cb994.o: \ - zodiacs.m /Users/ryon/theos/Prefix.pch \ - /Users/ryon/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /Users/ryon/theos/vendor/include/_Prefix/IOSMacros.h \ - /Users/ryon/theos/vendor/include/HBLog.h \ - /Users/ryon/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ - qapRootListController.h \ - /Users/ryon/theos/vendor/include/Preferences/PSListController.h \ - /Users/ryon/theos/vendor/include/Preferences/PSViewController.h \ - /Users/ryon/theos/vendor/include/Preferences/PSSpecifier.h \ - /Users/ryon/theos/vendor/include/Preferences/PSTableCell.h \ - /Users/ryon/theos/vendor/include/Preferences/PSSwitchTableCell.h \ - /Users/ryon/theos/vendor/include/Preferences/PSControlTableCell.h - -/Users/ryon/theos/Prefix.pch: - -/Users/ryon/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/Users/ryon/theos/vendor/include/_Prefix/IOSMacros.h: - -/Users/ryon/theos/vendor/include/HBLog.h: - -/Users/ryon/theos/vendor/include/CoreFoundation/CFLogUtilities.h: - -qapRootListController.h: - -/Users/ryon/theos/vendor/include/Preferences/PSListController.h: - -/Users/ryon/theos/vendor/include/Preferences/PSViewController.h: - -/Users/ryon/theos/vendor/include/Preferences/PSSpecifier.h: - -/Users/ryon/theos/vendor/include/Preferences/PSTableCell.h: - -/Users/ryon/theos/vendor/include/Preferences/PSSwitchTableCell.h: - -/Users/ryon/theos/vendor/include/Preferences/PSControlTableCell.h: diff --git a/Tweak/.theos/obj/debug/arm64e/zodiacs.m.e38cb994.o b/Tweak/.theos/obj/debug/arm64e/zodiacs.m.e38cb994.o deleted file mode 100644 index 43b0136..0000000 Binary files a/Tweak/.theos/obj/debug/arm64e/zodiacs.m.e38cb994.o and /dev/null differ diff --git a/Tweak/.theos/obj/debug/quitAllPrefs.bundle/Info.plist b/Tweak/.theos/obj/debug/quitAllPrefs.bundle/Info.plist deleted file mode 100644 index 0cb020f..0000000 --- a/Tweak/.theos/obj/debug/quitAllPrefs.bundle/Info.plist +++ /dev/null @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - quitAllPrefs - CFBundleIdentifier - com.daveapps.quitallprefs - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - NSPrincipalClass - qapRootListController - - diff --git a/Tweak/.theos/obj/debug/quitAllPrefs.bundle/Root.plist b/Tweak/.theos/obj/debug/quitAllPrefs.bundle/Root.plist deleted file mode 100644 index a0d7257..0000000 --- a/Tweak/.theos/obj/debug/quitAllPrefs.bundle/Root.plist +++ /dev/null @@ -1,134 +0,0 @@ - - - - - items - - - cell - PSGroupCell - headerCellClass - QuitAllTitleCell - - - cell - PSGroupCell - label - Settings - - - cell - PSSwitchCell - default - - defaults - com.daveapps.quitallprefs - key - kEnabled - label - Enabled - - - - cell - PSSwitchCell - default - - defaults - com.daveapps.quitallprefs - key - kDarkButton - label - Dark Button - - - - cell - PSSwitchCell - default - - defaults - com.daveapps.quitallprefs - key - kLeftPlacement - label - Place Button Top-Left - - - - cell - PSSwitchCell - default - - defaults - com.daveapps.quitallprefs - key - kKeepMusicAlive - label - Don't Quit Now Playing App - - - - cell - PSSwitchCell - default - - defaults - com.daveapps.quitallprefs - key - kKeepNavAlive - label - Don't Quit Navigation - - - - cell - PSGroupCell - label - More - - - big - - cellClass - HBTwitterCell - height - 56 - label - Dave van Wijk - user - DaveWijk - action - twitterDave - - - cellClass - HBLinkTableCell - cell - PSButtonCell - action - SourceCode - label - Source Code ⚙️ - - - cellClass - HBLinkTableCell - cell - PSButtonCell - action - donateDave - label - Donate ❤️ - - - - title - QuitAll - - diff --git a/Tweak/.theos/obj/debug/quitAllPrefs.bundle/big.png b/Tweak/.theos/obj/debug/quitAllPrefs.bundle/big.png deleted file mode 100644 index 869ffad..0000000 Binary files a/Tweak/.theos/obj/debug/quitAllPrefs.bundle/big.png and /dev/null differ diff --git a/Tweak/.theos/obj/debug/quitAllPrefs.bundle/icon@2x.png b/Tweak/.theos/obj/debug/quitAllPrefs.bundle/icon@2x.png deleted file mode 100644 index 29953e5..0000000 Binary files a/Tweak/.theos/obj/debug/quitAllPrefs.bundle/icon@2x.png and /dev/null differ diff --git a/Tweak/.theos/obj/debug/quitAllPrefs.bundle/icon@3x.png b/Tweak/.theos/obj/debug/quitAllPrefs.bundle/icon@3x.png deleted file mode 100644 index 7df6d49..0000000 Binary files a/Tweak/.theos/obj/debug/quitAllPrefs.bundle/icon@3x.png and /dev/null differ diff --git a/Tweak/.theos/obj/debug/quitAllPrefs.bundle/quitAllPrefs b/Tweak/.theos/obj/debug/quitAllPrefs.bundle/quitAllPrefs deleted file mode 100755 index 0714030..0000000 Binary files a/Tweak/.theos/obj/debug/quitAllPrefs.bundle/quitAllPrefs and /dev/null differ diff --git a/Tweak/.theos/obj/quitAllPrefs.bundle/Info.plist b/Tweak/.theos/obj/quitAllPrefs.bundle/Info.plist deleted file mode 100644 index 0cb020f..0000000 --- a/Tweak/.theos/obj/quitAllPrefs.bundle/Info.plist +++ /dev/null @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - quitAllPrefs - CFBundleIdentifier - com.daveapps.quitallprefs - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - NSPrincipalClass - qapRootListController - - diff --git a/Tweak/.theos/obj/quitAllPrefs.bundle/Root.plist b/Tweak/.theos/obj/quitAllPrefs.bundle/Root.plist deleted file mode 100644 index 9c3bee1..0000000 --- a/Tweak/.theos/obj/quitAllPrefs.bundle/Root.plist +++ /dev/null @@ -1,120 +0,0 @@ - - - - - items - - - cell - PSGroupCell - headerCellClass - QuitAllTitleCell - - - cell - PSGroupCell - label - Settings - - - cell - PSSwitchCell - default - - defaults - com.daveapps.quitallprefs - key - kEnabled - label - Enabled - - - - cell - PSSwitchCell - default - - defaults - com.daveapps.quitallprefs - key - kDarkButton - label - Dark Button - - - - cell - PSSwitchCell - default - - defaults - com.daveapps.quitallprefs - key - kLeftPlacement - label - Place Button Top-Left - - - - cell - PSSwitchCell - default - - defaults - com.daveapps.quitallprefs - key - kKeepMusicAlive - label - Don't Quit Now Playing App - - - - cell - PSGroupCell - label - More - - - big - - cellClass - HBTwitterCell - height - 56 - label - Dave van Wijk - user - DaveWijk - action - twitterDave - - - cellClass - HBLinkTableCell - cell - PSButtonCell - action - SourceCode - label - Source Code ⚙️ - - - cellClass - HBLinkTableCell - cell - PSButtonCell - action - donateDave - label - Donate ❤️ - - - - title - QuitAll - - diff --git a/Tweak/.theos/obj/quitAllPrefs.bundle/big.png b/Tweak/.theos/obj/quitAllPrefs.bundle/big.png deleted file mode 100644 index 869ffad..0000000 Binary files a/Tweak/.theos/obj/quitAllPrefs.bundle/big.png and /dev/null differ diff --git a/Tweak/.theos/obj/quitAllPrefs.bundle/icon@2x.png b/Tweak/.theos/obj/quitAllPrefs.bundle/icon@2x.png deleted file mode 100644 index 29953e5..0000000 Binary files a/Tweak/.theos/obj/quitAllPrefs.bundle/icon@2x.png and /dev/null differ diff --git a/Tweak/.theos/obj/quitAllPrefs.bundle/icon@3x.png b/Tweak/.theos/obj/quitAllPrefs.bundle/icon@3x.png deleted file mode 100644 index 7df6d49..0000000 Binary files a/Tweak/.theos/obj/quitAllPrefs.bundle/icon@3x.png and /dev/null differ diff --git a/Tweak/.theos/obj/quitAllPrefs.bundle/quitAllPrefs b/Tweak/.theos/obj/quitAllPrefs.bundle/quitAllPrefs deleted file mode 100755 index e139c28..0000000 Binary files a/Tweak/.theos/obj/quitAllPrefs.bundle/quitAllPrefs and /dev/null differ diff --git a/Tweak/.theos/packages/com.daveapps.quitall-0.0.1 b/Tweak/.theos/packages/com.daveapps.quitall-0.0.1 deleted file mode 100644 index 2702ba3..0000000 --- a/Tweak/.theos/packages/com.daveapps.quitall-0.0.1 +++ /dev/null @@ -1 +0,0 @@ -115 \ No newline at end of file diff --git a/Tweak/.theos/packages/com.daveapps.quitall-1 b/Tweak/.theos/packages/com.daveapps.quitall-1 deleted file mode 100644 index 3f10ffe..0000000 --- a/Tweak/.theos/packages/com.daveapps.quitall-1 +++ /dev/null @@ -1 +0,0 @@ -15 \ No newline at end of file diff --git a/Tweak/.theos/packages/com.daveapps.quitall-1.0.1 b/Tweak/.theos/packages/com.daveapps.quitall-1.0.1 deleted file mode 100644 index 7813681..0000000 --- a/Tweak/.theos/packages/com.daveapps.quitall-1.0.1 +++ /dev/null @@ -1 +0,0 @@ -5 \ No newline at end of file diff --git a/Tweak/Makefile b/Tweak/Makefile index 5f64a0d..96bae8b 100644 --- a/Tweak/Makefile +++ b/Tweak/Makefile @@ -1,15 +1,18 @@ -INSTALL_TARGET_PROCESSES = SpringBoard +TARGET = iphone:clang:13.0:11.0 ARCHS=arm64 arm64e include $(THEOS)/makefiles/common.mk TWEAK_NAME = QuitAll - QuitAll_FILES = Tweak.xm QuitAll_CFLAGS = -fobjc-arc QuitAll_EXTRA_FRAMEWORKS += Cephei -include $(THEOS_MAKE_PATH)/tweak.mk SUBPROJECTS += quitallprefs + +after-install:: + install.exec "killall -9 SpringBoard" + +include $(THEOS_MAKE_PATH)/tweak.mk include $(THEOS_MAKE_PATH)/aggregate.mk diff --git a/Tweak/Tweak.h b/Tweak/Tweak.h new file mode 100644 index 0000000..6051944 --- /dev/null +++ b/Tweak/Tweak.h @@ -0,0 +1,41 @@ +#import + +@interface SBSwitcherAppSuggestionContentView: UIView +@end + +@interface SBSwitcherAppSuggestionContentView (QuitAll) +- (void)_quitAllReloadPrefs; +@end + +@interface SBDisplayItem: NSObject +@property (nonatomic,copy,readonly) NSString * bundleIdentifier; +@end + +@interface SBApplication : NSObject +@property (nonatomic,readonly) NSString * bundleIdentifier; +@end + +@interface SBMediaController : NSObject +@property (nonatomic, weak,readonly) SBApplication * nowPlayingApplication; ++ (id)sharedInstance; +@end + +@interface SBMainSwitcherViewController: UIViewController ++ (id)sharedInstance; +- (id)recentAppLayouts; +- (void)_rebuildAppListCache; +- (void)_destroyAppListCache; +- (void)_removeCardForDisplayIdentifier:(id)arg1 ; +- (void)_deleteAppLayout:(id)arg1 forReason:(long long)arg2; +@end + +@interface SBAppLayout:NSObject +@property (nonatomic,copy) NSDictionary * rolesToLayoutItemsMap; +@end + +@interface SBRecentAppLayouts: NSObject ++ (id)sharedInstance; +- (id)_recentsFromPrefs; +- (void)remove:(SBAppLayout* )arg1; +- (void)removeAppLayouts:(id)arg1 ; +@end \ No newline at end of file diff --git a/Tweak/Tweak.xm b/Tweak/Tweak.xm index 632bb4b..1bab0b5 100644 --- a/Tweak/Tweak.xm +++ b/Tweak/Tweak.xm @@ -1,244 +1,179 @@ -//import shit -#import +#import "Tweak.h" - -//settings bool enabled = true; bool leftButtonPlacement = false; bool darkStyle = false; bool dontQuitNowPlaying = true; bool dontQuitNavigation = true; -//variable shit + bool addedButton = false; -bool transparantButton = false; +bool transparentButton = false; +bool notchlessInstalled = false; UIView *buttonView; UILabel *fromLabel; -@interface SBSwitcherAppSuggestionContentView: UIView -@end - -@interface SBDisplayItem: NSObject -@property (nonatomic,copy,readonly) NSString * bundleIdentifier; //@synthesize bundleIdentifier=_bundleIdentifier - In the implementation block -@end - -@interface SBApplication : NSObject -@property (nonatomic,readonly) NSString * bundleIdentifier; //@synthesize bundleIdentifier=_bundleIdentifier - In the implementation block -@end - -@interface SBMediaController : NSObject -@property (nonatomic, weak,readonly) SBApplication * nowPlayingApplication; -+(id)sharedInstance; -@end - - - -//interfaces -@interface SBMainSwitcherViewController: UIViewController -+ (id)sharedInstance; --(id)recentAppLayouts; --(void)_rebuildAppListCache; --(void)_destroyAppListCache; --(void)_removeCardForDisplayIdentifier:(id)arg1 ; --(void)_deleteAppLayout:(id)arg1 forReason:(long long)arg2; -@end - -@interface SBAppLayout:NSObject -@property (nonatomic,copy) NSDictionary * rolesToLayoutItemsMap; //@synthesize rolesToLayoutItemsMap=_rolesToLayoutItemsMap - In the implementation block -@end - -@interface SBRecentAppLayouts: NSObject -+ (id)sharedInstance; --(id)_recentsFromPrefs; --(void)remove:(SBAppLayout* )arg1; --(void)removeAppLayouts:(id)arg1 ; -@end - -%group tweak +static SBSwitcherAppSuggestionContentView *globalSuggestionView; %hook SBSwitcherAppSuggestionContentView --(void)didMoveToWindow { - %orig; - if (!addedButton) { - - //create base view - buttonView = [[UIView alloc] init]; - buttonView.frame = CGRectMake(300.0, 12.0, 60.0, 26.0); - buttonView.clipsToBounds = true; - buttonView.tag = 7; - buttonView.alpha = 0.60; - buttonView.layer.cornerRadius = 12; - - //create smooth smooth blur - UIBlurEffect *blurEffect; - if (darkStyle) { - blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark]; - } else { - blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; - } - UIVisualEffectView *blurEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect]; - blurEffectView.frame = buttonView.bounds; - blurEffectView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; - [buttonView addSubview:blurEffectView]; - - //add subview to main view - [self insertSubview:buttonView atIndex:10]; - - // View constraints - buttonView.translatesAutoresizingMaskIntoConstraints = false; - [buttonView.topAnchor constraintEqualToAnchor:self.topAnchor constant:12].active = YES; - if (leftButtonPlacement) { - [buttonView.leftAnchor constraintEqualToAnchor:self.leftAnchor constant:15].active = YES; - } else { - [buttonView.rightAnchor constraintEqualToAnchor:self.rightAnchor constant:-18].active = YES; - } - [buttonView.widthAnchor constraintEqualToConstant:57.0].active = YES; - [buttonView.heightAnchor constraintEqualToConstant:25.0].active = YES; - - //create a button for inside the view - UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; - [button addTarget:self - action:@selector(buttonClicked:) - forControlEvents:UIControlEventTouchUpInside]; - button.frame = buttonView.frame; - [buttonView addSubview:button]; - [self insertSubview:button atIndex:12]; - - - //button constraints - button.translatesAutoresizingMaskIntoConstraints = false; - [button.topAnchor constraintEqualToAnchor:buttonView.topAnchor constant:0].active = YES; - [button.bottomAnchor constraintEqualToAnchor:buttonView.bottomAnchor constant:0].active = YES; - [button.leftAnchor constraintEqualToAnchor:buttonView.leftAnchor constant:0].active = YES; - [button.rightAnchor constraintEqualToAnchor:buttonView.rightAnchor constant:0].active = YES; - - - //add label to button - UIFont * customFont = [UIFont fontWithName:@"Arial-BoldMT" size:12.5]; //custom font - fromLabel = [[UILabel alloc]initWithFrame:buttonView.bounds]; - fromLabel.text = @"Clear"; - fromLabel.font = customFont; - fromLabel.textAlignment = NSTextAlignmentCenter; - fromLabel.tag = 7; - fromLabel.textColor = [UIColor whiteColor]; - - [self insertSubview:fromLabel atIndex:11]; - - //label constraints - fromLabel.translatesAutoresizingMaskIntoConstraints = false; - [fromLabel.topAnchor constraintEqualToAnchor:buttonView.topAnchor constant:0].active = YES; - [fromLabel.bottomAnchor constraintEqualToAnchor:buttonView.bottomAnchor constant:0].active = YES; - [fromLabel.leftAnchor constraintEqualToAnchor:buttonView.leftAnchor constant:0].active = YES; - [fromLabel.rightAnchor constraintEqualToAnchor:buttonView.rightAnchor constant:0].active = YES; - - //set the alpha to 0 for fading in - fromLabel.alpha = 0; - buttonView.alpha = 0; - - - [UIView animateWithDuration:0.5 animations:^ { - buttonView.alpha = 1; - fromLabel.alpha = 1; - - } completion:^(BOOL finished) { - }]; - - addedButton = true; - - } else if (addedButton && transparantButton) { - [UIView animateWithDuration:0.3 animations:^ { - buttonView.alpha = 0.6; - fromLabel.alpha = 1; - - }]; - transparantButton = false; - } - +- (void)didMoveToWindow { + %orig; + if(!globalSuggestionView) { + globalSuggestionView = self; + } + + if(buttonView.superview != NULL) { + [buttonView removeFromSuperview]; + [fromLabel removeFromSuperview]; + } + + //create base view + buttonView = [[UIView alloc] init]; + buttonView.frame = CGRectMake(300.0, 12.0, 60.0, 26.0); + buttonView.clipsToBounds = true; + buttonView.tag = 7; + buttonView.alpha = 0.60; + buttonView.layer.cornerRadius = 12; + + //create smooth smooth blur + UIBlurEffect *blurEffect; + if (darkStyle) { + blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark]; + } else { + blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; + } + UIVisualEffectView *blurEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect]; + blurEffectView.frame = buttonView.bounds; + blurEffectView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; + [buttonView addSubview:blurEffectView]; + + //add subview to main view + [self insertSubview:buttonView atIndex:10]; + + // View constraints + buttonView.translatesAutoresizingMaskIntoConstraints = false; + if(notchlessInstalled) { + [buttonView.topAnchor constraintEqualToAnchor:self.safeAreaLayoutGuide.topAnchor constant:35].active = YES; + } else { + [buttonView.topAnchor constraintEqualToAnchor:self.safeAreaLayoutGuide.topAnchor constant:12].active = YES; + } + if (leftButtonPlacement) { + [buttonView.leftAnchor constraintEqualToAnchor:self.leftAnchor constant:15].active = YES; + } else { + [buttonView.rightAnchor constraintEqualToAnchor:self.rightAnchor constant:-18].active = YES; + } + [buttonView.widthAnchor constraintEqualToConstant:57.0].active = YES; + [buttonView.heightAnchor constraintEqualToConstant:25.0].active = YES; + + //create a button for inside the view + UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; + [button addTarget:self + action:@selector(buttonClicked:) + forControlEvents:UIControlEventTouchUpInside]; + button.frame = buttonView.frame; + [buttonView addSubview:button]; + [self insertSubview:button atIndex:12]; + + //button constraints + button.translatesAutoresizingMaskIntoConstraints = false; + [button.topAnchor constraintEqualToAnchor:buttonView.topAnchor constant:0].active = YES; + [button.bottomAnchor constraintEqualToAnchor:buttonView.bottomAnchor constant:0].active = YES; + [button.leftAnchor constraintEqualToAnchor:buttonView.leftAnchor constant:0].active = YES; + [button.rightAnchor constraintEqualToAnchor:buttonView.rightAnchor constant:0].active = YES; + + + //add label to button + UIFont *customFont = [UIFont fontWithName:@"Arial-BoldMT" size:12.5]; //custom font + fromLabel = [[UILabel alloc]initWithFrame:buttonView.bounds]; + fromLabel.text = @"Clear"; + fromLabel.font = customFont; + fromLabel.textAlignment = NSTextAlignmentCenter; + fromLabel.tag = 7; + fromLabel.textColor = [UIColor whiteColor]; + + [self insertSubview:fromLabel atIndex:11]; + + //label constraints + fromLabel.translatesAutoresizingMaskIntoConstraints = false; + [fromLabel.topAnchor constraintEqualToAnchor:buttonView.topAnchor constant:0].active = YES; + [fromLabel.bottomAnchor constraintEqualToAnchor:buttonView.bottomAnchor constant:0].active = YES; + [fromLabel.leftAnchor constraintEqualToAnchor:buttonView.leftAnchor constant:0].active = YES; + [fromLabel.rightAnchor constraintEqualToAnchor:buttonView.rightAnchor constant:0].active = YES; + + fromLabel.alpha = 0; + buttonView.alpha = 0; + + [UIView animateWithDuration:0.5 animations:^ { + buttonView.alpha = 1; + fromLabel.alpha = 1; + } completion:^(BOOL finished) {}]; } - %new - --(void) buttonClicked:(UIButton*)sender { - id one = @1; - - //remove the apps - SBMainSwitcherViewController *mainSwitcher = [%c(SBMainSwitcherViewController) sharedInstance]; +- (void)buttonClicked:(UIButton*)sender { + SBMainSwitcherViewController *mainSwitcher = [%c(SBMainSwitcherViewController) sharedInstance]; NSArray *items = mainSwitcher.recentAppLayouts; - for(SBAppLayout * item in items) { - SBDisplayItem *itemz = [item.rolesToLayoutItemsMap objectForKey:one]; - NSString *bundleID = itemz.bundleIdentifier; - NSString *nowPlayingID = [[[%c(SBMediaController) sharedInstance] nowPlayingApplication] bundleIdentifier]; - - if (dontQuitNowPlaying && dontQuitNavigation) { - if (![bundleID isEqualToString: nowPlayingID] && ![bundleID isEqualToString:@"com.google.Maps"] && ![bundleID isEqualToString:@"com.apple.Maps"] && ![bundleID isEqualToString:@"com.waze.iphone"]) { - [mainSwitcher _deleteAppLayout:item forReason: 1]; - - } - } else if (!dontQuitNowPlaying && dontQuitNavigation) { - if (![bundleID isEqualToString:@"com.google.Maps"] || ![bundleID isEqualToString:@"com.apple.Maps"] || ![bundleID isEqualToString:@"com.waze.iphone"]) { - [mainSwitcher _deleteAppLayout:item forReason: 1]; - - } - } else if (dontQuitNowPlaying && !dontQuitNavigation) { - if (![bundleID isEqualToString: nowPlayingID] ) { - [mainSwitcher _deleteAppLayout:item forReason: 1]; - - } - } else { - [mainSwitcher _deleteAppLayout:item forReason: 1]; - } + for(SBAppLayout *item in items) { + SBDisplayItem *displayItem = [item.rolesToLayoutItemsMap objectForKey:@1]; + NSString *bundleID = displayItem.bundleIdentifier; + NSString *nowPlayingID = [[[%c(SBMediaController) sharedInstance] nowPlayingApplication] bundleIdentifier]; + + if (dontQuitNowPlaying && dontQuitNavigation) { + if (![bundleID isEqualToString: nowPlayingID] && ![bundleID isEqualToString:@"com.google.Maps"] && ![bundleID isEqualToString:@"com.apple.Maps"] && ![bundleID isEqualToString:@"com.waze.iphone"]) { + [mainSwitcher _deleteAppLayout:item forReason: 1]; + } + } else if (!dontQuitNowPlaying && dontQuitNavigation) { + if (![bundleID isEqualToString:@"com.google.Maps"] || ![bundleID isEqualToString:@"com.apple.Maps"] || ![bundleID isEqualToString:@"com.waze.iphone"]) { + [mainSwitcher _deleteAppLayout:item forReason: 1]; + } + } else if (dontQuitNowPlaying && !dontQuitNavigation) { + if (![bundleID isEqualToString: nowPlayingID] ) { + [mainSwitcher _deleteAppLayout:item forReason: 1]; + } + } else { + [mainSwitcher _deleteAppLayout:item forReason: 1]; } + } - //hide the button - [UIView animateWithDuration:0.3 animations:^ { - buttonView.alpha = 0; - fromLabel.alpha = 0; - - }]; - transparantButton = true; - - } - - + [UIView animateWithDuration:0.3 animations:^ { + buttonView.alpha = 0; + fromLabel.alpha = 0; + }]; + transparentButton = true; +} %end %hook SBMainSwitcherViewController -//hide the button when going back to the springboard in a smooth way --(void)switcherContentController:(id)arg1 setContainerStatusBarHidden:(BOOL)arg2 animationDuration:(double)arg3 { - if (arg2 == false) { - [UIView animateWithDuration:0.3 animations:^ { - buttonView.alpha = 0; - fromLabel.alpha = 0; - - }]; - transparantButton = true; - - } - %orig; +// hide the button when going back to the springboard in a smooth way +- (void)switcherContentController:(id)arg1 setContainerStatusBarHidden:(BOOL)arg2 animationDuration:(double)arg3 { + if (arg2 == false) { + [UIView animateWithDuration:0.3 animations:^ { + buttonView.alpha = 0; + fromLabel.alpha = 0; + + }]; + transparentButton = true; + } + %orig; } %end -%end - - -void loadPrefs() { - HBPreferences *file = [[HBPreferences alloc] initWithIdentifier:@"com.daveapps.quitallprefs"]; - enabled = [([file objectForKey:@"kEnabled"] ?: @(YES)) boolValue]; - darkStyle = [([file objectForKey:@"kDarkButton"] ?: @(NO)) boolValue]; - leftButtonPlacement = [([file objectForKey:@"kLeftPlacement"] ?: @(NO)) boolValue]; - dontQuitNowPlaying = [([file objectForKey:@"kKeepMusicAlive"] ?: @(YES)) boolValue]; - dontQuitNavigation = [([file objectForKey:@"kKeepNavAlive"] ?: @(YES)) boolValue]; +void ReloadPrefs() { + HBPreferences *prefs = [[HBPreferences alloc] initWithIdentifier:@"com.daveapps.quitallprefs"]; - if (enabled) { - %init(tweak); - } + enabled = [([prefs objectForKey:@"kEnabled"] ?: @(YES)) boolValue]; + darkStyle = [([prefs objectForKey:@"kDarkButton"] ?: @(NO)) boolValue]; + leftButtonPlacement = [([prefs objectForKey:@"kLeftPlacement"] ?: @(NO)) boolValue]; + dontQuitNowPlaying = [([prefs objectForKey:@"kKeepMusicAlive"] ?: @(YES)) boolValue]; + dontQuitNavigation = [([prefs objectForKey:@"kKeepNavAlive"] ?: @(YES)) boolValue]; } - - %ctor { - //load prefs - loadPrefs(); - // loadFirstFont(); + ReloadPrefs(); + CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)ReloadPrefs, CFSTR("com.daveapps.quitallprefs/ReloadPrefs"), NULL, CFNotificationSuspensionBehaviorCoalesce); + + notchlessInstalled = [[NSFileManager defaultManager] fileExistsAtPath:@"/Library/MobileSubstrate/DynamicLibraries/zNotchless.dylib"]; + if (enabled) { + %init; + } } diff --git a/Tweak/control b/Tweak/control index eb9f4d7..441fe3c 100644 --- a/Tweak/control +++ b/Tweak/control @@ -1,6 +1,6 @@ Package: com.daveapps.quitall Name: QuitAll -Depends: mobilesubstrate, ws.hbang.common (>= 1.11) +Depends: mobilesubstrate, ws.hbang.common (>= 1.11), firmware (>= 11.0) Version: 1.0.1 Architecture: iphoneos-arm Description: One tweak to quit them all diff --git a/Tweak/layout/.DS_Store b/Tweak/layout/.DS_Store deleted file mode 100644 index e4975cd..0000000 Binary files a/Tweak/layout/.DS_Store and /dev/null differ diff --git a/Tweak/layout/Library/.DS_Store b/Tweak/layout/Library/.DS_Store deleted file mode 100644 index 29316db..0000000 Binary files a/Tweak/layout/Library/.DS_Store and /dev/null differ diff --git a/Tweak/layout/Library/Application Support/.DS_Store b/Tweak/layout/Library/Application Support/.DS_Store deleted file mode 100644 index efaf7f8..0000000 Binary files a/Tweak/layout/Library/Application Support/.DS_Store and /dev/null differ diff --git a/Tweak/layout/Library/Application Support/QuitAll/.DS_Store b/Tweak/layout/Library/Application Support/QuitAll/.DS_Store deleted file mode 100644 index ec7adb1..0000000 Binary files a/Tweak/layout/Library/Application Support/QuitAll/.DS_Store and /dev/null differ diff --git a/Tweak/packages/.DS_Store b/Tweak/packages/.DS_Store deleted file mode 100644 index 0d1d0b6..0000000 Binary files a/Tweak/packages/.DS_Store and /dev/null differ diff --git a/Tweak/packages/com.daveapps.quitall_1.0.1-1+debug_iphoneos-arm.deb b/Tweak/packages/com.daveapps.quitall_1.0.1-1+debug_iphoneos-arm.deb deleted file mode 100644 index 9fdd791..0000000 Binary files a/Tweak/packages/com.daveapps.quitall_1.0.1-1+debug_iphoneos-arm.deb and /dev/null differ diff --git a/Tweak/packages/com.daveapps.quitall_1.0.1_iphoneos-arm.deb b/Tweak/packages/com.daveapps.quitall_1.0.1_iphoneos-arm.deb deleted file mode 100644 index 52aebd3..0000000 Binary files a/Tweak/packages/com.daveapps.quitall_1.0.1_iphoneos-arm.deb and /dev/null differ diff --git a/Tweak/packages/com.daveapps.quitall_1_iphoneos-arm.deb b/Tweak/packages/com.daveapps.quitall_1_iphoneos-arm.deb deleted file mode 100644 index 9123cd1..0000000 Binary files a/Tweak/packages/com.daveapps.quitall_1_iphoneos-arm.deb and /dev/null differ diff --git a/Tweak/quitallprefs/.DS_Store b/Tweak/quitallprefs/.DS_Store deleted file mode 100644 index 3208eba..0000000 Binary files a/Tweak/quitallprefs/.DS_Store and /dev/null differ diff --git a/Tweak/quitallprefs/Makefile b/Tweak/quitallprefs/Makefile index 9af13c6..d7d4e2a 100644 --- a/Tweak/quitallprefs/Makefile +++ b/Tweak/quitallprefs/Makefile @@ -1,6 +1,8 @@ -include $(THEOS)/makefiles/common.mk +TARGET=iphone:clang:13.0:11.0 ARCHS=arm64 arm64e +include $(THEOS)/makefiles/common.mk + BUNDLE_NAME = quitAllPrefs quitAllPrefs_FILES = qapRootListController.m zodiacs.m diff --git a/Tweak/quitallprefs/Resources/.DS_Store b/Tweak/quitallprefs/Resources/.DS_Store deleted file mode 100644 index ee5a9d6..0000000 Binary files a/Tweak/quitallprefs/Resources/.DS_Store and /dev/null differ diff --git a/Tweak/quitallprefs/Resources/Root.plist b/Tweak/quitallprefs/Resources/Root.plist index da089bf..ffda6ea 100644 --- a/Tweak/quitallprefs/Resources/Root.plist +++ b/Tweak/quitallprefs/Resources/Root.plist @@ -27,8 +27,8 @@ kEnabled label Enabled - + PostNotification + com.daveapps.quitallprefs/ReloadPrefs cell @@ -41,8 +41,8 @@ kDarkButton label Dark Button - + PostNotification + com.daveapps.quitallprefs/ReloadPrefs cell @@ -55,8 +55,8 @@ kLeftPlacement label Place Button Top-Left - + PostNotification + com.daveapps.quitallprefs/ReloadPrefs cell @@ -69,8 +69,8 @@ kKeepMusicAlive label Don't Quit Now Playing App - + PostNotification + com.daveapps.quitallprefs/ReloadPrefs cell @@ -83,8 +83,8 @@ kKeepNavAlive label Don't Quit Navigation - + PostNotification + com.daveapps.quitallprefs/ReloadPrefs cell @@ -126,8 +126,6 @@ label Donate ❤️ - - title QuitAll diff --git a/Tweak/quitallprefs/qapRootListController.h b/Tweak/quitallprefs/qapRootListController.h index fc1c689..f8b1411 100644 --- a/Tweak/quitallprefs/qapRootListController.h +++ b/Tweak/quitallprefs/qapRootListController.h @@ -1,6 +1,10 @@ #import +#import +#import +#import +#import +#include @interface qapRootListController : PSListController @property (nonatomic, retain) UIBarButtonItem *respringButton; - - (void)respring:(id)sender; @end diff --git a/Tweak/quitallprefs/qapRootListController.m b/Tweak/quitallprefs/qapRootListController.m index 5b388ea..16da2ad 100644 --- a/Tweak/quitallprefs/qapRootListController.m +++ b/Tweak/quitallprefs/qapRootListController.m @@ -1,9 +1,4 @@ #include "qapRootListController.h" -#import -#import -#import -#import -#include @implementation qapRootListController @@ -15,54 +10,29 @@ - (NSArray *)specifiers { return _specifiers; } - - (instancetype)init { self = [super init]; - - - - if (self) { - HBAppearanceSettings *appearanceSettings = [[HBAppearanceSettings alloc] init]; appearanceSettings.tintColor = [UIColor colorWithRed:0.76 green:0.23 blue:0.29 alpha:1.0]; appearanceSettings.tableViewCellSeparatorColor = [UIColor colorWithWhite:0 alpha:0]; - self.hb_appearanceSettings = appearanceSettings; - - self.respringButton = [[UIBarButtonItem alloc] initWithTitle:@"Apply" - style:UIBarButtonItemStylePlain - target:self - action:@selector(respring:)]; - self.respringButton.tintColor = [UIColor colorWithRed:0.76 green:0.23 blue:0.29 alpha:1.0]; - self.navigationItem.rightBarButtonItem = self.respringButton; - - } return self; } -- (void)respring:(id)sender { - pid_t pid; - int status; - const char* argv[] = {"sbreload", NULL}; - posix_spawn(&pid, "/usr/bin/sbreload", NULL, NULL, (char* const*)argv, NULL); - waitpid(pid, &status, WEXITED); -} - - (void)twitterDave { - [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://twitter.com/davewijk"]]; + [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://twitter.com/davewijk"] options:@{} completionHandler:nil]; } - - (void)SourceCode { - [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://github.com/vanwijkdave/QuitAll"]]; + [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://github.com/vanwijkdave/QuitAll"] options:@{} completionHandler:nil]; } - (void)donateDave { - [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://paypal.me/vanwijkdave"]]; + [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://paypal.me/vanwijkdave"] options:@{} completionHandler:nil]; } @end diff --git a/Tweak/quitallprefs/zodiacRootListController.h b/Tweak/quitallprefs/zodiacRootListController.h index 53d5d66..e0c8566 100644 --- a/Tweak/quitallprefs/zodiacRootListController.h +++ b/Tweak/quitallprefs/zodiacRootListController.h @@ -1,5 +1,9 @@ #import +#import +#import +#import +#import +#include @interface zodiacRootListController : PSListController - @end diff --git a/Tweak/quitallprefs/zodiacs.m b/Tweak/quitallprefs/zodiacs.m index 29f962e..38313e2 100644 --- a/Tweak/quitallprefs/zodiacs.m +++ b/Tweak/quitallprefs/zodiacs.m @@ -1,19 +1,9 @@ #include "qapRootListController.h" -#include - -#import -#import -#import -#import - @protocol PreferencesTableCustomView - (id)initWithSpecifier:(id)arg1; @end - - - //@@@@@@@@@@@@@@@@@@@@@@ //@@@@ Banner Cell @@@@ //@@@@@@@@@@@@@@@@@@@@@@