@@ -1 +1,2 @@ | |||
.DS_Store | |||
.theos |
@@ -1,10 +1,10 @@ | |||
Package: me.shymemoriees.rose | |||
Name: Rose | |||
Depends: mobilesubstrate, ws.hbang.common | |||
Depends: mobilesubstrate, ws.hbang.common (>= 1.11) | |||
Architecture: iphoneos-arm | |||
Description: Getting peeped by a Rose doesn't feel that good, Rosé changes that. | |||
Maintainer: ShyMemoriees | |||
Author: ShyMemoriees | |||
Section: Tweaks | |||
Version: 2.2.1 | |||
Installed-Size: 676 | |||
Version: 2.2.1-142+debug | |||
Installed-Size: 756 |
@@ -1 +1 @@ | |||
./packages/me.shymemoriees.rose_2.2.1_iphoneos-arm.deb | |||
./packages/me.shymemoriees.rose_2.2.1-142+debug_iphoneos-arm.deb |
@@ -1,24 +0,0 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||
<plist version="1.0"> | |||
<dict> | |||
<key>CFBundleDevelopmentRegion</key> | |||
<string>English</string> | |||
<key>CFBundleExecutable</key> | |||
<string>RosePreferences</string> | |||
<key>CFBundleIdentifier</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>CFBundleInfoDictionaryVersion</key> | |||
<string>6.0</string> | |||
<key>CFBundlePackageType</key> | |||
<string>BNDL</string> | |||
<key>CFBundleShortVersionString</key> | |||
<string>1.0.0</string> | |||
<key>CFBundleSignature</key> | |||
<string>????</string> | |||
<key>CFBundleVersion</key> | |||
<string>1.0</string> | |||
<key>NSPrincipalClass</key> | |||
<string>RSERootListController</string> | |||
</dict> | |||
</plist> |
@@ -1,45 +0,0 @@ | |||
/Users/alex/Documents/GitHub/Rose/.theos/obj/arm64/RSEAppearanceSettings.m.2eb2484b.o: \ | |||
RSEAppearanceSettings.m /Users/alex/theos/Prefix.pch \ | |||
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h \ | |||
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h \ | |||
/Users/alex/theos/vendor/include/HBLog.h RSERootListController.h \ | |||
/Users/alex/theos/vendor/include/Preferences/PSListController.h \ | |||
/Users/alex/theos/vendor/include/Preferences/PSViewController.h \ | |||
/Users/alex/theos/vendor/include/Preferences/PSSpecifier.h \ | |||
/Users/alex/theos/vendor/include/Preferences/PSTableCell.h \ | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h \ | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h \ | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h \ | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h \ | |||
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ | |||
NSTask.h | |||
/Users/alex/theos/Prefix.pch: | |||
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h: | |||
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h: | |||
/Users/alex/theos/vendor/include/HBLog.h: | |||
RSERootListController.h: | |||
/Users/alex/theos/vendor/include/Preferences/PSListController.h: | |||
/Users/alex/theos/vendor/include/Preferences/PSViewController.h: | |||
/Users/alex/theos/vendor/include/Preferences/PSSpecifier.h: | |||
/Users/alex/theos/vendor/include/Preferences/PSTableCell.h: | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h: | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h: | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h: | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h: | |||
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: | |||
NSTask.h: |
@@ -1,45 +0,0 @@ | |||
/Users/alex/Documents/GitHub/Rose/.theos/obj/arm64/RSERootListController.m.2eb2484b.o: \ | |||
RSERootListController.m /Users/alex/theos/Prefix.pch \ | |||
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h \ | |||
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h \ | |||
/Users/alex/theos/vendor/include/HBLog.h RSERootListController.h \ | |||
/Users/alex/theos/vendor/include/Preferences/PSListController.h \ | |||
/Users/alex/theos/vendor/include/Preferences/PSViewController.h \ | |||
/Users/alex/theos/vendor/include/Preferences/PSSpecifier.h \ | |||
/Users/alex/theos/vendor/include/Preferences/PSTableCell.h \ | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h \ | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h \ | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h \ | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h \ | |||
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ | |||
NSTask.h | |||
/Users/alex/theos/Prefix.pch: | |||
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h: | |||
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h: | |||
/Users/alex/theos/vendor/include/HBLog.h: | |||
RSERootListController.h: | |||
/Users/alex/theos/vendor/include/Preferences/PSListController.h: | |||
/Users/alex/theos/vendor/include/Preferences/PSViewController.h: | |||
/Users/alex/theos/vendor/include/Preferences/PSSpecifier.h: | |||
/Users/alex/theos/vendor/include/Preferences/PSTableCell.h: | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h: | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h: | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h: | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h: | |||
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: | |||
NSTask.h: |
@@ -1,20 +0,0 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||
<plist version="1.0"> | |||
<dict> | |||
<key>CFBundleDevelopmentRegion</key> | |||
<string>English</string> | |||
<key>CFBundleIdentifier</key> | |||
<string>com.apple.xcode.dsym.RosePreferences</string> | |||
<key>CFBundleInfoDictionaryVersion</key> | |||
<string>6.0</string> | |||
<key>CFBundlePackageType</key> | |||
<string>dSYM</string> | |||
<key>CFBundleSignature</key> | |||
<string>????</string> | |||
<key>CFBundleShortVersionString</key> | |||
<string>1.0</string> | |||
<key>CFBundleVersion</key> | |||
<string>1</string> | |||
</dict> | |||
</plist> |
@@ -1,23 +0,0 @@ | |||
/Users/alex/Documents/GitHub/Rose/.theos/obj/arm64/Tweak.x.5c3cbff4.o: \ | |||
/Users/alex/Documents/GitHub/Rose/.theos/obj/arm64/Tweak.x.m \ | |||
/Users/alex/theos/Prefix.pch \ | |||
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h \ | |||
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h \ | |||
/Users/alex/theos/vendor/include/HBLog.h \ | |||
/Users/alex/Documents/GitHub/Rose/Rose.h \ | |||
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ | |||
/Users/alex/theos/vendor/include/substrate.h | |||
/Users/alex/theos/Prefix.pch: | |||
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h: | |||
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h: | |||
/Users/alex/theos/vendor/include/HBLog.h: | |||
/Users/alex/Documents/GitHub/Rose/Rose.h: | |||
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: | |||
/Users/alex/theos/vendor/include/substrate.h: |
@@ -1,45 +0,0 @@ | |||
/Users/alex/Documents/GitHub/Rose/.theos/obj/arm64e/RSEAppearanceSettings.m.6b75aeea.o: \ | |||
RSEAppearanceSettings.m /Users/alex/theos/Prefix.pch \ | |||
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h \ | |||
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h \ | |||
/Users/alex/theos/vendor/include/HBLog.h RSERootListController.h \ | |||
/Users/alex/theos/vendor/include/Preferences/PSListController.h \ | |||
/Users/alex/theos/vendor/include/Preferences/PSViewController.h \ | |||
/Users/alex/theos/vendor/include/Preferences/PSSpecifier.h \ | |||
/Users/alex/theos/vendor/include/Preferences/PSTableCell.h \ | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h \ | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h \ | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h \ | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h \ | |||
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ | |||
NSTask.h | |||
/Users/alex/theos/Prefix.pch: | |||
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h: | |||
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h: | |||
/Users/alex/theos/vendor/include/HBLog.h: | |||
RSERootListController.h: | |||
/Users/alex/theos/vendor/include/Preferences/PSListController.h: | |||
/Users/alex/theos/vendor/include/Preferences/PSViewController.h: | |||
/Users/alex/theos/vendor/include/Preferences/PSSpecifier.h: | |||
/Users/alex/theos/vendor/include/Preferences/PSTableCell.h: | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h: | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h: | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h: | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h: | |||
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: | |||
NSTask.h: |
@@ -1,45 +0,0 @@ | |||
/Users/alex/Documents/GitHub/Rose/.theos/obj/arm64e/RSERootListController.m.6b75aeea.o: \ | |||
RSERootListController.m /Users/alex/theos/Prefix.pch \ | |||
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h \ | |||
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h \ | |||
/Users/alex/theos/vendor/include/HBLog.h RSERootListController.h \ | |||
/Users/alex/theos/vendor/include/Preferences/PSListController.h \ | |||
/Users/alex/theos/vendor/include/Preferences/PSViewController.h \ | |||
/Users/alex/theos/vendor/include/Preferences/PSSpecifier.h \ | |||
/Users/alex/theos/vendor/include/Preferences/PSTableCell.h \ | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h \ | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h \ | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h \ | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h \ | |||
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ | |||
NSTask.h | |||
/Users/alex/theos/Prefix.pch: | |||
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h: | |||
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h: | |||
/Users/alex/theos/vendor/include/HBLog.h: | |||
RSERootListController.h: | |||
/Users/alex/theos/vendor/include/Preferences/PSListController.h: | |||
/Users/alex/theos/vendor/include/Preferences/PSViewController.h: | |||
/Users/alex/theos/vendor/include/Preferences/PSSpecifier.h: | |||
/Users/alex/theos/vendor/include/Preferences/PSTableCell.h: | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBRootListController.h: | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBListController.h: | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/PSListController+HBTintAdditions.h: | |||
/Users/alex/theos/vendor/lib/CepheiPrefs.framework/Headers/HBAppearanceSettings.h: | |||
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: | |||
NSTask.h: |
@@ -1,20 +0,0 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||
<plist version="1.0"> | |||
<dict> | |||
<key>CFBundleDevelopmentRegion</key> | |||
<string>English</string> | |||
<key>CFBundleIdentifier</key> | |||
<string>com.apple.xcode.dsym.RosePreferences</string> | |||
<key>CFBundleInfoDictionaryVersion</key> | |||
<string>6.0</string> | |||
<key>CFBundlePackageType</key> | |||
<string>dSYM</string> | |||
<key>CFBundleSignature</key> | |||
<string>????</string> | |||
<key>CFBundleShortVersionString</key> | |||
<string>1.0</string> | |||
<key>CFBundleVersion</key> | |||
<string>1</string> | |||
</dict> | |||
</plist> |
@@ -1,23 +0,0 @@ | |||
/Users/alex/Documents/GitHub/Rose/.theos/obj/arm64e/Tweak.x.51a77348.o: \ | |||
/Users/alex/Documents/GitHub/Rose/.theos/obj/arm64e/Tweak.x.m \ | |||
/Users/alex/theos/Prefix.pch \ | |||
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h \ | |||
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h \ | |||
/Users/alex/theos/vendor/include/HBLog.h \ | |||
/Users/alex/Documents/GitHub/Rose/Rose.h \ | |||
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ | |||
/Users/alex/theos/vendor/include/substrate.h | |||
/Users/alex/theos/Prefix.pch: | |||
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h: | |||
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h: | |||
/Users/alex/theos/vendor/include/HBLog.h: | |||
/Users/alex/Documents/GitHub/Rose/Rose.h: | |||
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: | |||
/Users/alex/theos/vendor/include/substrate.h: |
@@ -20,6 +20,106 @@ | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<!-- Haptic Engine Strength --> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Haptic Engine Strength - iPhone 6s/6s+</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>enableHapticEngine</string> | |||
<key>label</key> | |||
<string>Use Haptic Engine</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSegmentCell</string> | |||
<key>default</key> | |||
<integer>0</integer> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>HapticStrength</string> | |||
<key>validValues</key> | |||
<array> | |||
<integer>0</integer> | |||
<integer>1</integer> | |||
<integer>2</integer> | |||
</array> | |||
<key>validTitles</key> | |||
<array> | |||
<string>Light</string> | |||
<string>Medium</string> | |||
<string>Strong</string> | |||
</array> | |||
<key>alignment</key> | |||
<string>3</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<!-- Taptic Engine Strength --> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Taptic Engine Strength - iPhone 7/7+ and up</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>enableTapticEngine</string> | |||
<key>label</key> | |||
<string>Use Taptic Engine</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSegmentCell</string> | |||
<key>default</key> | |||
<integer>0</integer> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>TapticStrength</string> | |||
<key>validValues</key> | |||
<array> | |||
<integer>0</integer> | |||
<integer>1</integer> | |||
<integer>2</integer> | |||
<integer>3</integer> | |||
<integer>4</integer> | |||
</array> | |||
<key>validTitles</key> | |||
<array> | |||
<string>Light</string> | |||
<string>Medium</string> | |||
<string>Heavy</string> | |||
<string>Soft</string> | |||
<string>Rigid</string> | |||
</array> | |||
<key>alignment</key> | |||
<string>5</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<!-- Behaviors --> | |||
<dict> | |||
<key>cell</key> | |||
@@ -119,9 +219,9 @@ | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>WakeWithSleepButton</string> | |||
<string>displayWake</string> | |||
<key>label</key> | |||
<string>Display Wakes With Sleep Button</string> | |||
<string>Display Wakes</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
@@ -261,7 +361,7 @@ | |||
<key>key</key> | |||
<string>enterPasscode</string> | |||
<key>label</key> | |||
<string>Entering Passcode/View</string> | |||
<string>Entering Passcode</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
@@ -307,37 +407,73 @@ | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<!-- Haptic Feedback Strength --> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>textSelection</string> | |||
<key>label</key> | |||
<string>Haptic Feedback Strength</string> | |||
<string>Using Text Selection</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSegmentCell</string> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<integer>0</integer> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>HapticStrength</string> | |||
<key>validValues</key> | |||
<array> | |||
<integer>0</integer> | |||
<integer>1</integer> | |||
<integer>2</integer> | |||
</array> | |||
<key>validTitles</key> | |||
<array> | |||
<string>Light</string> | |||
<string>Medium</string> | |||
<string>Strong</string> | |||
</array> | |||
<key>alignment</key> | |||
<string>3</string> | |||
<string>spotlight</string> | |||
<key>label</key> | |||
<string>Opening Spotlight Search</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>call</string> | |||
<key>label</key> | |||
<string>Call/FaceTime Status Changed</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>authentication</string> | |||
<key>label</key> | |||
<string>Authenticated With Touch/FaceID</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>sleepButton</string> | |||
<key>label</key> | |||
<string>Pressing Sleep Button</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
@@ -377,7 +513,7 @@ | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Taught Me To Make Beautiful Preferences</string> | |||
<string>Taught Me A Lot Of Things</string> | |||
</dict> | |||
<dict> | |||
<key>action</key> | |||
@@ -417,7 +553,7 @@ | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Providing Me Some Methods</string> | |||
<string>Provided Me Some Methods</string> | |||
</dict> | |||
<dict> | |||
<key>action</key> | |||
@@ -433,6 +569,12 @@ | |||
<key>user</key> | |||
<string>iKilledAppl3</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Made With ❤️</string> | |||
</dict> | |||
</array> | |||
<key>title</key> | |||
<string>Rose</string> |
@@ -1,23 +0,0 @@ | |||
/Users/alex/Documents/GitHub/Rose/.theos/obj/debug/arm64/Tweak.x.38b8b62c.o: \ | |||
/Users/alex/Documents/GitHub/Rose/.theos/obj/debug/arm64/Tweak.x.m \ | |||
/Users/alex/theos/Prefix.pch \ | |||
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h \ | |||
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h \ | |||
/Users/alex/theos/vendor/include/HBLog.h \ | |||
/Users/alex/Documents/GitHub/Rose/Rose.h \ | |||
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ | |||
/Users/alex/theos/vendor/include/substrate.h | |||
/Users/alex/theos/Prefix.pch: | |||
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h: | |||
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h: | |||
/Users/alex/theos/vendor/include/HBLog.h: | |||
/Users/alex/Documents/GitHub/Rose/Rose.h: | |||
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: | |||
/Users/alex/theos/vendor/include/substrate.h: |
@@ -1,23 +0,0 @@ | |||
/Users/alex/Documents/GitHub/Rose/.theos/obj/debug/arm64e/Tweak.x.867bbad2.o: \ | |||
/Users/alex/Documents/GitHub/Rose/.theos/obj/debug/arm64e/Tweak.x.m \ | |||
/Users/alex/theos/Prefix.pch \ | |||
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h \ | |||
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h \ | |||
/Users/alex/theos/vendor/include/HBLog.h \ | |||
/Users/alex/Documents/GitHub/Rose/Rose.h \ | |||
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h \ | |||
/Users/alex/theos/vendor/include/substrate.h | |||
/Users/alex/theos/Prefix.pch: | |||
/Users/alex/theos/vendor/include/_Prefix/BackwardsCompat.h: | |||
/Users/alex/theos/vendor/include/_Prefix/IOSMacros.h: | |||
/Users/alex/theos/vendor/include/HBLog.h: | |||
/Users/alex/Documents/GitHub/Rose/Rose.h: | |||
/Users/alex/theos/vendor/lib/Cephei.framework/Headers/HBPreferences.h: | |||
/Users/alex/theos/vendor/include/substrate.h: |
@@ -1 +0,0 @@ | |||
17 |
@@ -1 +0,0 @@ | |||
19 |
@@ -1 +0,0 @@ | |||
3 |
@@ -0,0 +1,21 @@ | |||
MIT License | |||
Copyright (c) 2019 @ShyMemoriees | |||
Permission is hereby granted, free of charge, to any person obtaining a copy | |||
of this software and associated documentation files (the "Software"), to deal | |||
in the Software without restriction, including without limitation the rights | |||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |||
copies of the Software, and to permit persons to whom the Software is | |||
furnished to do so, subject to the following conditions: | |||
The above copyright notice and this permission notice shall be included in all | |||
copies or substantial portions of the Software. | |||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
SOFTWARE. |
@@ -1,19 +1,5 @@ | |||
ARCHS = arm64 arm64e | |||
TARGET = iphone:clang:11.2:11.2 | |||
GO_EASY_ON_ME = 1 | |||
FINALPACKAGE = 0 | |||
include $(THEOS)/makefiles/common.mk | |||
TWEAK_NAME = Rose | |||
$(TWEAK_NAME)_FILES = Tweak.x | |||
$(TWEAK_NAME)_CFLAGS += -fobjc-arc | |||
$(TWEAK_NAME)_FRAMEWORKS = UIKit AudioToolbox | |||
$(TWEAK_NAME)_EXTRA_FRAMEWORKS += Cephei | |||
include $(THEOS_MAKE_PATH)/tweak.mk | |||
SUBPROJECTS += Tweak Prefs | |||
after-install:: | |||
install.exec "killall -9 SpringBoard" | |||
SUBPROJECTS += rosepreferences | |||
include $(THEOS_MAKE_PATH)/aggregate.mk |
@@ -1,10 +1,9 @@ | |||
ARCHS = arm64 arm64e | |||
TARGET = iphone:clang:11.2:11.2 | |||
GO_EASY_ON_ME = 1 | |||
include $(THEOS)/makefiles/common.mk | |||
BUNDLE_NAME = RosePreferences | |||
BUNDLE_NAME = RosePrefs | |||
$(BUNDLE_NAME)_FILES = $(wildcard *.m) | |||
$(BUNDLE_NAME)_INSTALL_PATH = /Library/PreferenceBundles | |||
$(BUNDLE_NAME)_FRAMEWORKS = UIKit |
@@ -26,7 +26,7 @@ | |||
self.iconView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0,10,10)]; | |||
self.iconView.contentMode = UIViewContentModeScaleAspectFit; | |||
self.iconView.image = [UIImage imageWithContentsOfFile:@"/Library/PreferenceBundles/RosePreferences.bundle/icon@2x.png"]; | |||
self.iconView.image = [UIImage imageWithContentsOfFile:@"/Library/PreferenceBundles/RosePrefs.bundle/icon@2x.png"]; | |||
self.iconView.translatesAutoresizingMaskIntoConstraints = NO; | |||
self.iconView.alpha = 0.0; | |||
[self.navigationItem.titleView addSubview:self.iconView]; | |||
@@ -60,7 +60,7 @@ | |||
self.headerView = [[UIView alloc] initWithFrame:CGRectMake(0,0,200,200)]; | |||
self.headerImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0,200,200)]; | |||
self.headerImageView.contentMode = UIViewContentModeScaleAspectFill; | |||
self.headerImageView.image = [UIImage imageWithContentsOfFile:@"/Library/PreferenceBundles/RosePreferences.bundle/Banner.png"]; | |||
self.headerImageView.image = [UIImage imageWithContentsOfFile:@"/Library/PreferenceBundles/RosePrefs.bundle/Banner.png"]; | |||
self.headerImageView.translatesAutoresizingMaskIntoConstraints = NO; | |||
[self.headerView addSubview:self.headerImageView]; |
@@ -5,7 +5,7 @@ | |||
<key>CFBundleDevelopmentRegion</key> | |||
<string>English</string> | |||
<key>CFBundleExecutable</key> | |||
<string>RosePreferences</string> | |||
<string>RosePrefs</string> | |||
<key>CFBundleIdentifier</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>CFBundleInfoDictionaryVersion</key> |
@@ -9,7 +9,7 @@ | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<true/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
@@ -20,6 +20,106 @@ | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<!-- Haptic Engine Strength --> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Haptic Engine Strength - iPhone 6s/6s+</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>enableHapticEngine</string> | |||
<key>label</key> | |||
<string>Use Haptic Engine</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSegmentCell</string> | |||
<key>default</key> | |||
<integer>0</integer> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>HapticStrength</string> | |||
<key>validValues</key> | |||
<array> | |||
<integer>0</integer> | |||
<integer>1</integer> | |||
<integer>2</integer> | |||
</array> | |||
<key>validTitles</key> | |||
<array> | |||
<string>Light</string> | |||
<string>Medium</string> | |||
<string>Strong</string> | |||
</array> | |||
<key>alignment</key> | |||
<string>3</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<!-- Taptic Engine Strength --> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Taptic Engine Strength - iPhone 7/7+ and up</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>enableTapticEngine</string> | |||
<key>label</key> | |||
<string>Use Taptic Engine</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSegmentCell</string> | |||
<key>default</key> | |||
<integer>0</integer> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>TapticStrength</string> | |||
<key>validValues</key> | |||
<array> | |||
<integer>0</integer> | |||
<integer>1</integer> | |||
<integer>2</integer> | |||
<integer>3</integer> | |||
<integer>4</integer> | |||
</array> | |||
<key>validTitles</key> | |||
<array> | |||
<string>Light</string> | |||
<string>Medium</string> | |||
<string>Heavy</string> | |||
<string>Soft</string> | |||
<string>Rigid</string> | |||
</array> | |||
<key>alignment</key> | |||
<string>5</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<!-- Behaviors --> | |||
<dict> | |||
<key>cell</key> | |||
@@ -119,9 +219,9 @@ | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>WakeWithSleepButton</string> | |||
<string>displayWake</string> | |||
<key>label</key> | |||
<string>Display Wakes With Sleep Button</string> | |||
<string>Display Wakes</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
@@ -223,6 +323,20 @@ | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>iconTap</string> | |||
<key>label</key> | |||
<string>Only When Tapping Icon</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
@@ -261,7 +375,7 @@ | |||
<key>key</key> | |||
<string>enterPasscode</string> | |||
<key>label</key> | |||
<string>Entering Passcode/View</string> | |||
<string>Entering Passcode</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
@@ -307,37 +421,137 @@ | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>textSelection</string> | |||
<key>label</key> | |||
<string>Using Text Selection</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>spotlight</string> | |||
<key>label</key> | |||
<string>Opening Spotlight Search</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>call</string> | |||
<key>label</key> | |||
<string>Call/FaceTime Status Changed</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>authentication</string> | |||
<key>label</key> | |||
<string>Authenticated With Touch/FaceID</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>sleepButton</string> | |||
<key>label</key> | |||
<string>Pressing Only Sleep Button</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>homeButton</string> | |||
<key>label</key> | |||
<string>Pressing Home/Sleep Button</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>touches</string> | |||
<key>label</key> | |||
<string>Touching The Screen</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<!-- Haptic Feedback Strength --> | |||
<!-- Warnings --> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Haptic Feedback Strength</string> | |||
<string>Warnings And Alerts</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSegmentCell</string> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<integer>0</integer> | |||
<true/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>HapticStrength</string> | |||
<key>validValues</key> | |||
<array> | |||
<integer>0</integer> | |||
<integer>1</integer> | |||
<integer>2</integer> | |||
</array> | |||
<key>validTitles</key> | |||
<array> | |||
<string>Light</string> | |||
<string>Medium</string> | |||
<string>Strong</string> | |||
</array> | |||
<key>alignment</key> | |||
<string>3</string> | |||
<string>shutdownWarning</string> | |||
<key>label</key> | |||
<string>Show Shutdown Warning</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<true/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>featureWarning</string> | |||
<key>label</key> | |||
<string>Show Feature Warning If Needed</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
@@ -367,17 +581,17 @@ | |||
<key>cellClass</key> | |||
<string>HBLinkTableCell</string> | |||
<key>label</key> | |||
<string>Github</string> | |||
<string>Source Code</string> | |||
<key>subtitle</key> | |||
<string>My Github</string> | |||
<string>Github</string> | |||
<key>url</key> | |||
<string>https://github.com/ShyMemoriees</string> | |||
<string>https://github.com/ShyMemoriees/Rose</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Taught Me To Make Beautiful Preferences</string> | |||
<string>Taught Me A Lot Of Things</string> | |||
</dict> | |||
<dict> | |||
<key>action</key> | |||
@@ -417,7 +631,7 @@ | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Providing Me Some Methods</string> | |||
<string>Provided Me 4 Methods</string> | |||
</dict> | |||
<dict> | |||
<key>action</key> | |||
@@ -433,6 +647,32 @@ | |||
<key>user</key> | |||
<string>iKilledAppl3</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Taught Me Some Other Things</string> | |||
</dict> | |||
<dict> | |||
<key>action</key> | |||
<string>twitterartikus</string> | |||
<key>cell</key> | |||
<string>PSButtonCell</string> | |||
<key>label</key> | |||
<string>@artikushg</string> | |||
<key>cellClass</key> | |||
<string>HBTwitterCell</string> | |||
<key>label</key> | |||
<string>ArtikusHG</string> | |||
<key>user</key> | |||
<string>artikushg</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Made With ❤️</string> | |||
</dict> | |||
</array> | |||
<key>title</key> | |||
<string>Rose</string> |
@@ -5,7 +5,7 @@ | |||
<key>entry</key> | |||
<dict> | |||
<key>bundle</key> | |||
<string>RosePreferences</string> | |||
<string>RosePrefs</string> | |||
<key>cell</key> | |||
<string>PSLinkCell</string> | |||
<key>detail</key> |
@@ -0,0 +1,12 @@ | |||
# Rose | |||
Haptic Feedback Tweak for iOS, trough iOS. | |||
## Installation | |||
1. Add this repository to your Package Manager: https://repo.packix.com/ or https://repo.memor1es.me for Beta access | |||
2. Install Rose. | |||
## Bugs | |||
Found a bug? [open a new issue](https://github.com/ShyMemoriees/Rose/issues/new). |
@@ -1,41 +0,0 @@ | |||
#import <UIKit/UIKit.h> | |||
#import <AudioToolbox/AudioServices.h> | |||
#import <Cephei/HBPreferences.h> | |||
// Utils | |||
HBPreferences *pfs; | |||
// Preferences | |||
BOOL enabled = NO; | |||
BOOL respringSwitch = NO; | |||
BOOL unlockSwitch = NO; | |||
BOOL lockSwitch = NO; | |||
BOOL wakeSwitch = NO; | |||
BOOL volumeSwitch = NO; | |||
BOOL powerSwitch = NO; | |||
BOOL killingSwitch = NO; | |||
BOOL forceSwitch = NO; | |||
BOOL pluggedSwitch = NO; | |||
BOOL switcherSwitch = NO; | |||
BOOL siriSwitch = NO; | |||
BOOL ccToggleSwitch = NO; | |||
BOOL folderSwitch = NO; | |||
BOOL openCloseAppSwitch = NO; | |||
BOOL pageSwipeSwitch = NO; | |||
BOOL screenshotSwitch = NO; | |||
BOOL passcodeSwitch = NO; | |||
BOOL keyboardSwitch = NO; | |||
BOOL ringerSwitch = NO; | |||
BOOL reachabilitySwitch = NO; | |||
NSString *hapticLevel = @"0"; | |||
@interface UIKBTree : NSObject | |||
@property (nonatomic, strong, readwrite) NSString * name; | |||
+(id)sharedInstance; | |||
+(id)key; | |||
@end | |||
@interface UIKeyboardLayoutStar : UIView | |||
@property (nonatomic, copy) NSString * localizedInputKey; | |||
-(void)setPlayKeyClickSoundOn:(int)arg1; | |||
@end |
@@ -1 +0,0 @@ | |||
{ Filter = { Bundles = ( "com.apple.springboard", "com.apple.UIKit", ); }; } |
@@ -0,0 +1,2 @@ | |||
#define RoseTriggerActivator @"me.shymemoriees.rose/Action" |
@@ -1,362 +0,0 @@ | |||
#import <Rose.h> | |||
%group Rose | |||
void triggerHapticFeedback() { | |||
int hapticStrength = [hapticLevel intValue]; | |||
if(hapticStrength == 0) | |||
AudioServicesPlaySystemSound(1519); | |||
else if(hapticStrength == 1) | |||
AudioServicesPlaySystemSound(1520); | |||
else | |||
AudioServicesPlaySystemSound(1521); | |||
} | |||
%hook SpringBoard | |||
- (void)applicationDidFinishLaunching:(id)application { | |||
%orig; | |||
if (respringSwitch) | |||
triggerHapticFeedback(); | |||
} | |||
-(void)_ringerChanged:(id)arg1 { | |||
%orig; | |||
if (ringerSwitch) { | |||
triggerHapticFeedback(); | |||
} | |||
} | |||
-(void)takeScreenshotAndEdit:(BOOL)arg1 { | |||
%orig; | |||
if (screenshotSwitch) { | |||
triggerHapticFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SBCoverSheetPrimarySlidingViewController | |||
- (void)viewWillDisappear:(BOOL)arg1 { | |||
%orig; | |||
if (unlockSwitch) | |||
triggerHapticFeedback(); | |||
} | |||
%end | |||
%hook SBSleepWakeHardwareButtonInteraction | |||
- (void)_playLockSound { | |||
%orig; | |||
if (lockSwitch) | |||
triggerHapticFeedback(); | |||
} | |||
-(void)_performWake { | |||
%orig; | |||
if (wakeSwitch) | |||
triggerHapticFeedback(); | |||
} | |||
%end | |||
%hook VolumeControl | |||
-(void)increaseVolume { | |||
%orig; | |||
if (volumeSwitch) | |||
triggerHapticFeedback(); | |||
} | |||
-(void)decreaseVolume { | |||
%orig; | |||
if (volumeSwitch) | |||
triggerHapticFeedback(); | |||
} | |||
%end | |||
%hook SBPowerDownController | |||
-(void)displayWillAppear { | |||
%orig; | |||
if (powerSwitch) | |||
triggerHapticFeedback(); | |||
} | |||
%end | |||
%hook SBMainDisplaySceneManager | |||
-(void)_appKilledInAppSwitcher:(id)arg1 { | |||
%orig; | |||
if (killingSwitch) | |||
triggerHapticFeedback(); | |||
} | |||
%end | |||
%hook SBUIIconForceTouchController | |||
-(void)iconForceTouchViewControllerWillDismiss:(id)arg1 { | |||
%orig; | |||
if (forceSwitch) | |||
triggerHapticFeedback(); | |||
} | |||
%end | |||
%hook SBUIController | |||
-(void)ACPowerChanged { | |||
%orig; | |||
if (pluggedSwitch) | |||
triggerHapticFeedback(); | |||
} | |||
-(void)handleWillBeginReachabilityAnimation { | |||
%orig; | |||
if (reachabilitySwitch) { | |||
triggerHapticFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SBAppSwitcherPageView | |||
-(void)setVisible:(BOOL)arg1 { | |||
%orig; | |||
if (switcherSwitch) | |||
triggerHapticFeedback(); | |||
} | |||
%end | |||
%hook SiriUISiriStatusView | |||
-(void)layoutSubviews { | |||
%orig; | |||
if (siriSwitch) | |||
triggerHapticFeedback(); | |||
} | |||
%end | |||
%hook CCUILabeledRoundButton | |||
-(void)buttonTapped:(id)arg1 { | |||
%orig; | |||
if (ccToggleSwitch) { | |||
triggerHapticFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SBFolderController | |||
-(void)prepareToOpen { | |||
%orig; | |||
if (folderSwitch) { | |||
triggerHapticFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SBIconController | |||
-(void)setIsEditing:(BOOL)arg1 { | |||
%orig; | |||
if (openCloseAppSwitch) { | |||
triggerHapticFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SBFolderView | |||
-(void)scrollViewWillBeginDragging:(id)arg1 { | |||
%orig; | |||
if (pageSwipeSwitch) { | |||
triggerHapticFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SSScreenCapturer | |||
+(void)playScreenshotSound { | |||
%orig; | |||
if (screenshotSwitch) { | |||
triggerHapticFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SBUIPasscodeLockViewBase | |||
-(void)_sendDelegateKeypadKeyDown { | |||
%orig; | |||
if (passcodeSwitch) { | |||
triggerHapticFeedback(); | |||
} | |||
} | |||
-(void)setPlaysKeypadSounds:(BOOL)arg1 { | |||
%orig; | |||
if (passcodeSwitch) { | |||
triggerHapticFeedback(); | |||
} | |||
} | |||
%end | |||
%hook UIKeyboardLayoutStar | |||
-(void)playKeyClickSoundOnDownForKey:(UIKBTree *)key { | |||
if (keyboardSwitch) { | |||
%orig; | |||
triggerHapticFeedback(); | |||
} | |||
else { | |||
%orig; | |||
} | |||
} | |||
-(void)setPlayKeyClickSoundOn:(int)arg1 { | |||
if (keyboardSwitch) { | |||
UIKBTree *delKey = [%c(UIKBTree) key]; | |||
NSString *myDelKeyString = [delKey name]; | |||
if ([myDelKeyString isEqualToString:@"Delete-Key"]) { | |||
} else { | |||
%orig; | |||
} | |||
} | |||
} | |||
%end | |||
%end // Rose group | |||
%ctor { | |||
pfs = [[HBPreferences alloc] initWithIdentifier:@"me.shymemoriees.rosepreferences"]; | |||
[pfs registerBool:&enabled default:NO forKey:@"Enabled"]; | |||
[pfs registerBool:&respringSwitch default:NO forKey:@"ReSpringSwitch"]; | |||
[pfs registerBool:&unlockSwitch default:NO forKey:@"UnlockSwitch"]; | |||
[pfs registerBool:&lockSwitch default:NO forKey:@"LockSwitch"]; | |||
[pfs registerBool:&wakeSwitch default:NO forKey:@"WakeWithSleepButton"]; | |||
[pfs registerBool:&volumeSwitch default:NO forKey:@"VolumeChangedSwitch"]; | |||
[pfs registerBool:&powerSwitch default:NO forKey:@"PowerDownViewSwitch"]; | |||
[pfs registerBool:&killingSwitch default:NO forKey:@"KillingAppSwitch"]; | |||
[pfs registerBool:&forceSwitch default:NO forKey:@"ForceTouchDismiss"]; | |||
[pfs registerBool:&pluggedSwitch default:NO forKey:@"ChargerPluggedInOrOut"]; | |||
[pfs registerBool:&switcherSwitch default:NO forKey:@"AppSwitcherFeedback"]; | |||
[pfs registerBool:&siriSwitch default:NO forKey:@"SiriUIFeedback"]; | |||
[pfs registerBool:&ccToggleSwitch default:NO forKey:@"ControlCenterToggleFeedback"]; | |||
[pfs registerBool:&folderSwitch default:NO forKey:@"FolderFeedback"]; | |||
[pfs registerBool:&openCloseAppSwitch default:NO forKey:@"openCloseApp"]; | |||
[pfs registerBool:&pageSwipeSwitch default:NO forKey:@"pageSwipe"]; | |||
[pfs registerBool:&screenshotSwitch default:NO forKey:@"takeScreenshot"]; | |||
[pfs registerBool:&passcodeSwitch default:NO forKey:@"enterPasscode"]; | |||
[pfs registerBool:&keyboardSwitch default:NO forKey:@"usingKeyboard"]; | |||
[pfs registerBool:&ringerSwitch default:NO forKey:@"unmuting"]; | |||
[pfs registerBool:&reachabilitySwitch default:NO forKey:@"reachability"]; | |||
[pfs registerObject:&hapticLevel default:@"0" forKey:@"HapticStrength"]; | |||
if(enabled) | |||
%init(Rose); | |||
} |
@@ -0,0 +1,12 @@ | |||
ARCHS = arm64 arm64e | |||
TARGET = iphone:clang:13.2:13.2 | |||
include $(THEOS)/makefiles/common.mk | |||
TWEAK_NAME = Rose | |||
$(TWEAK_NAME)_FILES = Tweak.x | |||
$(TWEAK_NAME)_CFLAGS += -fobjc-arc | |||
$(TWEAK_NAME)_FRAMEWORKS += UIKit AudioToolbox | |||
$(TWEAK_NAME)_EXTRA_FRAMEWORKS += Cephei | |||
include $(THEOS_MAKE_PATH)/tweak.mk |
@@ -0,0 +1,72 @@ | |||
#import <UIKit/UIKit.h> | |||
#import <AudioToolbox/AudioServices.h> | |||
#import <Cephei/HBPreferences.h> | |||
// Utils | |||
HBPreferences *pfs; | |||
// Preferences | |||
BOOL enabled = YES; | |||
BOOL enableHapticEngineSwitch = NO; | |||
BOOL enableTapticEngineSwitch = NO; | |||
BOOL respringSwitch = NO; | |||
BOOL unlockSwitch = NO; | |||
BOOL lockSwitch = NO; | |||
BOOL wakeSwitch = NO; | |||
BOOL volumeSwitch = NO; | |||
BOOL powerSwitch = NO; | |||
BOOL killingSwitch = NO; | |||
BOOL forceSwitch = NO; | |||
BOOL pluggedSwitch = NO; | |||
BOOL switcherSwitch = NO; | |||
BOOL siriSwitch = NO; | |||
BOOL ccToggleSwitch = NO; | |||
BOOL folderSwitch = NO; | |||
BOOL openCloseAppSwitch = NO; | |||
BOOL iconTapSwitch = NO; | |||
BOOL pageSwipeSwitch = NO; | |||
BOOL screenshotSwitch = NO; | |||
BOOL passcodeSwitch = NO; | |||
BOOL keyboardSwitch = NO; | |||
BOOL ringerSwitch = NO; | |||
BOOL reachabilitySwitch = NO; | |||
BOOL textSelectionSwitch = NO; | |||
BOOL spotlightSwitch = NO; | |||
BOOL callSwitch = NO; | |||
BOOL authenticationSwitch = NO; | |||
BOOL sleepButtonSwitch = NO; | |||
BOOL homeButtonSwitch = NO; | |||
BOOL touchesSwitch = NO; | |||
BOOL shutdownWarningSwitch = YES; | |||
BOOL featureWarningSwitch = YES; | |||
NSString *hapticLevel = @"0"; | |||
NSString *tapticLevel = @"0"; | |||
UIImpactFeedbackGenerator *gen; | |||
NSFileManager *fileManager; | |||
UIApplication *application; | |||
NSString *pathForiCleaner = @"/Applications/iCleaner.app"; | |||
NSString *pathForCydia = @"/Applications/Cydia.app"; | |||
NSString *pathForSileo = @"/Applications/Sileo.app"; | |||
@interface UIKBTree : NSObject | |||
@property (nonatomic, strong, readwrite) NSString * name; | |||
+ (id)sharedInstance; | |||
+ (id)key; | |||
@end | |||
@interface UIKeyboardLayoutStar : UIView | |||
@property (nonatomic, copy) NSString * localizedInputKey; | |||
- (void)setPlayKeyClickSoundOn:(int)arg1; | |||
@end | |||
@interface SBPowerDownController : UIViewController | |||
- (void)cancel; | |||
@end | |||
@interface SBIconController : UIViewController | |||
- (void)viewDidAppear:(BOOL)animated; | |||
@end |
@@ -0,0 +1 @@ | |||
{ Filter = { Bundles = ( "com.apple.UIKit" ); }; } |
@@ -0,0 +1,641 @@ | |||
#import "../RoseCommon.h" | |||
#import "Rose.h" | |||
void triggerFeedback() { | |||
int hapticStrength = [hapticLevel intValue]; | |||
int tapticStrength = [tapticLevel intValue]; | |||
if (enableHapticEngineSwitch) { | |||
if (hapticStrength == 0) { | |||
AudioServicesPlaySystemSound(1519); | |||
} | |||
else if (hapticStrength == 1) { | |||
AudioServicesPlaySystemSound(1520); | |||
} | |||
else if (hapticStrength == 2) { | |||
AudioServicesPlaySystemSound(1521); | |||
} | |||
} | |||
if (enableTapticEngineSwitch) { | |||
if (tapticStrength == 0) { | |||
gen = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleLight]; | |||
} else if (tapticStrength == 1) { | |||
gen = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium]; | |||
} else if (tapticStrength == 2) { | |||
gen = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleHeavy]; | |||
} else if (tapticStrength == 3) { | |||
gen = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleSoft]; | |||
} else if (tapticStrength == 4) { | |||
gen = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleRigid]; | |||
} | |||
[gen impactOccurred]; | |||
} | |||
} | |||
%group Rose | |||
%hook SpringBoard | |||
- (void)applicationDidFinishLaunching:(id)arg1 { | |||
%orig; | |||
if (enabled && respringSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
- (void)_ringerChanged:(id)arg1 { | |||
%orig; | |||
if (enabled && ringerSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
- (BOOL)_handlePhysicalButtonEvent:(UIPressesEvent *)arg1 { | |||
// type = 101 -> Home button | |||
// force = 0 -> button released | |||
// force = 1 -> button pressed | |||
//int type = arg1.allPresses.allObjects[0].type; | |||
int force = arg1.allPresses.allObjects[0].force; | |||
if (force == 1) { | |||
if (enabled && homeButtonSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
return %orig; | |||
} | |||
%end | |||
%hook SBCoverSheetPrimarySlidingViewController | |||
- (void)viewWillDisappear:(BOOL)arg1 { | |||
%orig; | |||
if (enabled && unlockSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SBSleepWakeHardwareButtonInteraction | |||
- (void)_playLockSound { | |||
%orig; | |||
if (enabled && lockSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
- (BOOL)consumeInitialPressDown { | |||
if (enabled && sleepButtonSwitch) { | |||
triggerFeedback(); | |||
} | |||
return %orig; | |||
} | |||
%end | |||
%hook VolumeControl | |||
- (void)increaseVolume { | |||
%orig; | |||
if (enabled && volumeSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
- (void)decreaseVolume { | |||
%orig; | |||
if (enabled && volumeSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SBPowerDownController | |||
- (void)orderFront { | |||
%orig; | |||
if (enabled && shutdownWarningSwitch) { | |||
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Rose" | |||
message:@"It is recommended to disable Rose with [iCleaner] before shutting down because your device will be stuck in a respring loop when rejailbreaking. That's [cephei]'s fault and not Rose's" | |||
preferredStyle:UIAlertControllerStyleAlert]; | |||
UIAlertAction *continueAction = [UIAlertAction actionWithTitle:@"Continue Anyway" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * action) { | |||
if (powerSwitch) { | |||
triggerFeedback(); | |||
} | |||
}]; | |||
UIAlertAction *iCleanerAction = [UIAlertAction actionWithTitle:@"Open iCleaner" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * action) { | |||
fileManager = [NSFileManager defaultManager]; | |||
if ([fileManager fileExistsAtPath:pathForiCleaner]) { | |||
application = [UIApplication sharedApplication]; | |||
NSURL *URL = [NSURL URLWithString:@"icleaner://"]; | |||
[application openURL:URL options:@{} completionHandler:nil]; | |||
} else { | |||
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Rose" | |||
message:@"iCleaner is not installed, do you want to open your package manager to install it?" | |||
preferredStyle:UIAlertControllerStyleAlert]; | |||
UIAlertAction *openPackageManagerAction = [UIAlertAction actionWithTitle:@"Open Package Manager" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * action) { | |||
fileManager = [NSFileManager defaultManager]; | |||
if ([fileManager fileExistsAtPath:pathForCydia]) { | |||
application = [UIApplication sharedApplication]; | |||
NSURL *URL = [NSURL URLWithString:@"cydia://"]; | |||
[application openURL:URL options:@{} completionHandler:nil]; | |||
} else if ([fileManager fileExistsAtPath:pathForSileo]) { | |||
application = [UIApplication sharedApplication]; | |||
NSURL *URL = [NSURL URLWithString:@"sileo://"]; | |||
[application openURL:URL options:@{} completionHandler:nil]; | |||
} | |||
}]; | |||
UIAlertAction *backAction = [UIAlertAction actionWithTitle:@"Back" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * action) { | |||
[self cancel]; | |||
}]; | |||
[alert addAction:openPackageManagerAction]; | |||
[alert addAction:backAction]; | |||
[self presentViewController:alert animated:YES completion:nil]; | |||
} | |||
}]; | |||
UIAlertAction *backAction = [UIAlertAction actionWithTitle:@"Back" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * action) { | |||
[self cancel]; | |||
}]; | |||
[alert addAction:continueAction]; | |||
[alert addAction:iCleanerAction]; | |||
[alert addAction:backAction]; | |||
[self presentViewController:alert animated:YES completion:nil]; | |||
} else if (enabled && powerSwitch) { | |||
%orig; | |||
triggerFeedback(); | |||
} else { | |||
%orig; | |||
} | |||
} | |||
%end | |||
%hook SBMainDisplaySceneManager | |||
- (void)_appKilledInAppSwitcher:(id)arg1 { | |||
%orig; | |||
if (enabled && killingSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SBUIIconForceTouchController | |||
- (void)iconForceTouchViewControllerWillDismiss:(id)arg1 { | |||
%orig; | |||
if (enabled && forceSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SBUIController | |||
- (void)ACPowerChanged { | |||
%orig; | |||
if (enabled && pluggedSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
- (void)handleWillBeginReachabilityAnimation { | |||
%orig; | |||
if (enabled && reachabilitySwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SBAppSwitcherPageView | |||
- (void)setVisible:(BOOL)arg1 { | |||
%orig; | |||
if (enabled && switcherSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SiriUISiriStatusView | |||
- (void)layoutSubviews { | |||
%orig; | |||
if (enabled && siriSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
%end | |||
%hook CCUILabeledRoundButton | |||
- (void)buttonTapped:(id)arg1 { | |||
%orig; | |||
if (enabled && ccToggleSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SBFolderController | |||
- (void)prepareToOpen { | |||
%orig; | |||
if (enabled && folderSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SBIconController | |||
- (void)viewDidAppear:(BOOL)animated { | |||
%orig; | |||
if (enabled && touchesSwitch && featureWarningSwitch) { | |||
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Rose" | |||
message:@"Please consider to not using the 'feedback on every touch' feature too often, because it could harm your Haptic/Taptic Engine. It's not my fault if something happens.\n[This alert can be turned off in Rose's settings]" | |||
preferredStyle:UIAlertControllerStyleAlert]; | |||
UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"Understood" style:UIAlertActionStyleCancel handler:nil]; | |||
[alert addAction:cancelAction]; | |||
[self presentViewController:alert animated:YES completion:nil]; | |||
} | |||
} | |||
- (void)setIsEditing:(BOOL)arg1 { | |||
%orig; | |||
if (enabled && openCloseAppSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
- (void)iconTapped:(id)arg1 { | |||
%orig; | |||
if (enabled && iconTapSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SBFolderView | |||
- (void)scrollViewWillBeginDragging:(id)arg1 { | |||
%orig; | |||
if (enabled && pageSwipeSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SSScreenCapturer | |||
+ (void)playScreenshotSound { | |||
%orig; | |||
if (enabled && screenshotSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SBUIPasscodeLockViewBase | |||
- (void)_sendDelegateKeypadKeyDown { | |||
%orig; | |||
if (enabled && passcodeSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
%end | |||
%hook UIKeyboardLayoutStar | |||
- (void)playKeyClickSoundOnDownForKey:(UIKBTree *)key { | |||
%orig; | |||
if (enabled && keyboardSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
- (void)setPlayKeyClickSoundOn:(int)arg1 { | |||
if (enabled && keyboardSwitch) { | |||
UIKBTree *delKey = [%c(UIKBTree) key]; | |||
NSString *myDelKeyString = [delKey name]; | |||
if ([myDelKeyString isEqualToString:@"Delete-Key"]) { | |||
} else { | |||
%orig; | |||
} | |||
} | |||
} | |||
%end | |||
%hook UICalloutBar | |||
- (void)buttonPressed:(id)arg1 { | |||
%orig; | |||
if (enabled && textSelectionSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SBSearchScrollView | |||
- (BOOL)gestureRecognizerShouldBegin:(id)arg1 { | |||
%orig; | |||
if (enabled && spotlightSwitch) { | |||
triggerFeedback(); | |||
} | |||
return %orig; | |||
} | |||
%end | |||
%hook ICSApplicationDelegate | |||
- (void)audioCallStatusChanged:(id)arg1 { | |||
%orig; | |||
if (enabled && callSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
%end | |||
%hook SBDashBoardViewController | |||
- (void)setAuthenticated:(BOOL)authenticated { | |||
%orig; | |||
if (authenticated) { | |||
if (enabled && authenticationSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
} | |||
%end | |||
%hook SBBacklightController | |||
- (void)turnOnScreenFullyWithBacklightSource:(long long)source { | |||
%orig; | |||
// 26 - source of screenshots on newer ios version (afaik); eg this method gets called with source == 26 if u make a screenshot | |||
if (source != 26) { | |||
if (enabled && wakeSwitch) { | |||
triggerFeedback(); | |||
} | |||
} | |||
} | |||
%end | |||
%hook UIWindow | |||
-(BOOL)_shouldHitTestEntireScreen { | |||
if (enabled && touchesSwitch) { | |||
triggerFeedback(); | |||
return YES; | |||
} else { | |||
return %orig; | |||
} | |||
} | |||
%end | |||
%end // Rose group | |||
%ctor { | |||
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)triggerFeedback, (CFStringRef)RoseTriggerActivator, NULL, kNilOptions); | |||
} | |||
%ctor { | |||
pfs = [[HBPreferences alloc] initWithIdentifier:@"me.shymemoriees.rosepreferences"]; | |||
[pfs registerBool:&enabled default:YES forKey:@"Enabled"]; | |||
[pfs registerBool:&enableHapticEngineSwitch default:NO forKey:@"enableHapticEngine"]; | |||
[pfs registerBool:&enableTapticEngineSwitch default:NO forKey:@"enableTapticEngine"]; | |||
[pfs registerBool:&respringSwitch default:NO forKey:@"ReSpringSwitch"]; | |||
[pfs registerBool:&unlockSwitch default:NO forKey:@"UnlockSwitch"]; | |||
[pfs registerBool:&lockSwitch default:NO forKey:@"LockSwitch"]; | |||
[pfs registerBool:&wakeSwitch default:NO forKey:@"displayWake"]; | |||
[pfs registerBool:&volumeSwitch default:NO forKey:@"VolumeChangedSwitch"]; | |||
[pfs registerBool:&powerSwitch default:NO forKey:@"PowerDownViewSwitch"]; | |||
[pfs registerBool:&killingSwitch default:NO forKey:@"KillingAppSwitch"]; | |||
[pfs registerBool:&forceSwitch default:NO forKey:@"ForceTouchDismiss"]; | |||
[pfs registerBool:&pluggedSwitch default:NO forKey:@"ChargerPluggedInOrOut"]; | |||
[pfs registerBool:&switcherSwitch default:NO forKey:@"AppSwitcherFeedback"]; | |||
[pfs registerBool:&siriSwitch default:NO forKey:@"SiriUIFeedback"]; | |||
[pfs registerBool:&ccToggleSwitch default:NO forKey:@"ControlCenterToggleFeedback"]; | |||
[pfs registerBool:&folderSwitch default:NO forKey:@"FolderFeedback"]; | |||
[pfs registerBool:&openCloseAppSwitch default:NO forKey:@"openCloseApp"]; | |||
[pfs registerBool:&iconTapSwitch default:NO forKey:@"iconTap"]; | |||
[pfs registerBool:&pageSwipeSwitch default:NO forKey:@"pageSwipe"]; | |||
[pfs registerBool:&screenshotSwitch default:NO forKey:@"takeScreenshot"]; | |||
[pfs registerBool:&passcodeSwitch default:NO forKey:@"enterPasscode"]; | |||
[pfs registerBool:&keyboardSwitch default:NO forKey:@"usingKeyboard"]; | |||
[pfs registerBool:&ringerSwitch default:NO forKey:@"unmuting"]; | |||
[pfs registerBool:&reachabilitySwitch default:NO forKey:@"reachability"]; | |||
[pfs registerBool:&textSelectionSwitch default:NO forKey:@"textSelection"]; | |||
[pfs registerBool:&spotlightSwitch default:NO forKey:@"spotlight"]; | |||
[pfs registerBool:&callSwitch default:NO forKey:@"call"]; | |||
[pfs registerBool:&authenticationSwitch default:NO forKey:@"authentication"]; | |||
[pfs registerBool:&sleepButtonSwitch default:NO forKey:@"sleepButton"]; | |||
[pfs registerBool:&homeButtonSwitch default:NO forKey:@"homeButton"]; | |||
[pfs registerBool:&touchesSwitch default:NO forKey:@"touches"]; | |||
[pfs registerBool:&shutdownWarningSwitch default:YES forKey:@"shutdownWarning"]; | |||
[pfs registerBool:&featureWarningSwitch default:YES forKey:@"featureWarning"]; | |||
[pfs registerObject:&hapticLevel default:@"0" forKey:@"HapticStrength"]; | |||
[pfs registerObject:&tapticLevel default:@"0" forKey:@"TapticStrength"]; | |||
if(enabled) | |||
%init(Rose); | |||
} |
@@ -1,6 +1,6 @@ | |||
Package: me.shymemoriees.rose | |||
Name: Rose | |||
Depends: mobilesubstrate, ws.hbang.common | |||
Depends: mobilesubstrate, ws.hbang.common (>= 1.11) | |||
Version: 2.2.1 | |||
Architecture: iphoneos-arm | |||
Description: Getting peeped by a Rose doesn't feel that good, Rosé changes that. |
@@ -1,440 +0,0 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||
<plist version="1.0"> | |||
<dict> | |||
<key>items</key> | |||
<array> | |||
<!-- Enable --> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>Enabled</string> | |||
<key>label</key> | |||
<string>Enabled</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<!-- Behaviors --> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Haptic Feedback when...</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>UnlockSwitch</string> | |||
<key>label</key> | |||
<string>Unlocked/NC</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>LockSwitch</string> | |||
<key>label</key> | |||
<string>Locked</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>VolumeChangedSwitch</string> | |||
<key>label</key> | |||
<string>Volume Changed</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>ReSpringSwitch</string> | |||
<key>label</key> | |||
<string>ReSpringing</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>PowerDownViewSwitch</string> | |||
<key>label</key> | |||
<string>Entering Power Down View</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>KillingAppSwitch</string> | |||
<key>label</key> | |||
<string>Killing App</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>WakeWithSleepButton</string> | |||
<key>label</key> | |||
<string>Display Wakes With Sleep Button</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>ForceTouchDismiss</string> | |||
<key>label</key> | |||
<string>3DTouch Action/Dismisses</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>ChargerPluggedInOrOut</string> | |||
<key>label</key> | |||
<string>Charger Plugged In/Out</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>AppSwitcherFeedback</string> | |||
<key>label</key> | |||
<string>App Switcher Is Used</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>SiriUIFeedback</string> | |||
<key>label</key> | |||
<string>Summoning Siri</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>ControlCenterToggleFeedback</string> | |||
<key>label</key> | |||
<string>Toggling CC Module</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>FolderFeedback</string> | |||
<key>label</key> | |||
<string>Opening/Closing Folder</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>openCloseApp</string> | |||
<key>label</key> | |||
<string>Open/Close App, CC, NC</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>pageSwipe</string> | |||
<key>label</key> | |||
<string>Swiping To Next/Previous Page</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>takeScreenshot</string> | |||
<key>label</key> | |||
<string>Taking Screenshot</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>enterPasscode</string> | |||
<key>label</key> | |||
<string>Entering Passcode/View</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>usingKeyboard</string> | |||
<key>label</key> | |||
<string>Using Keyboard - Typing</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>unmuting</string> | |||
<key>label</key> | |||
<string>Unmuting</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSwitchCell</string> | |||
<key>default</key> | |||
<false/> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>reachability</string> | |||
<key>label</key> | |||
<string>Begin/End Reachability</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<!-- Haptic Feedback Strength --> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Haptic Feedback Strength</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSSegmentCell</string> | |||
<key>default</key> | |||
<integer>0</integer> | |||
<key>defaults</key> | |||
<string>me.shymemoriees.rosepreferences</string> | |||
<key>key</key> | |||
<string>HapticStrength</string> | |||
<key>validValues</key> | |||
<array> | |||
<integer>0</integer> | |||
<integer>1</integer> | |||
<integer>2</integer> | |||
</array> | |||
<key>validTitles</key> | |||
<array> | |||
<string>Light</string> | |||
<string>Medium</string> | |||
<string>Strong</string> | |||
</array> | |||
<key>alignment</key> | |||
<string>3</string> | |||
<key>PostNotification</key> | |||
<string>me.shymemoriees.rosepreferences/ReloadPrefs</string> | |||
</dict> | |||
<!-- Support Me --> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Support Me</string> | |||
</dict> | |||
<dict> | |||
<key>action</key> | |||
<string>twitterShy</string> | |||
<key>cell</key> | |||
<string>PSButtonCell</string> | |||
<key>label</key> | |||
<string>@ShyMemoriees</string> | |||
<key>cellClass</key> | |||
<string>HBTwitterCell</string> | |||
<key>label</key> | |||
<string>ShyMemoriees</string> | |||
<key>user</key> | |||
<string>ShyMemoriees</string> | |||
</dict> | |||
<dict> | |||
<key>cellClass</key> | |||
<string>HBLinkTableCell</string> | |||
<key>label</key> | |||
<string>Github</string> | |||
<key>subtitle</key> | |||
<string>My Github</string> | |||
<key>url</key> | |||
<string>https://github.com/ShyMemoriees</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Taught Me To Make Beautiful Preferences</string> | |||
</dict> | |||
<dict> | |||
<key>action</key> | |||
<string>twitterEsq</string> | |||
<key>cell</key> | |||
<string>PSButtonCell</string> | |||
<key>label</key> | |||
<string>@EsquilliDev</string> | |||
<key>cellClass</key> | |||
<string>HBTwitterCell</string> | |||
<key>label</key> | |||
<string>EsquilliDev</string> | |||
<key>user</key> | |||
<string>EsquilliDev</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Icon Design</string> | |||
</dict> | |||
<dict> | |||
<key>action</key> | |||
<string>twittertaki</string> | |||
<key>cell</key> | |||
<string>PSButtonCell</string> | |||
<key>label</key> | |||
<string>@74k1_</string> | |||
<key>cellClass</key> | |||
<string>HBTwitterCell</string> | |||
<key>label</key> | |||
<string>taki</string> | |||
<key>user</key> | |||
<string>74k1_</string> | |||
</dict> | |||
<dict> | |||
<key>cell</key> | |||
<string>PSGroupCell</string> | |||
<key>label</key> | |||
<string>Providing Me Some Methods</string> | |||
</dict> | |||
<dict> | |||
<key>action</key> | |||
<string>twitteriKilled</string> | |||
<key>cell</key> | |||
<string>PSButtonCell</string> | |||
<key>label</key> | |||
<string>@iKilledAppl3</string> | |||
<key>cellClass</key> | |||
<string>HBTwitterCell</string> | |||
<key>label</key> | |||
<string>iKilledAppl3</string> | |||
<key>user</key> | |||
<string>iKilledAppl3</string> | |||
</dict> | |||
</array> | |||
<key>title</key> | |||
<string>Rose</string> | |||
</dict> | |||
</plist> |