diff options
Diffstat (limited to 'intemperateprefs')
| -rw-r--r-- | intemperateprefs/.DS_Store | bin | 0 -> 8196 bytes | |||
| -rw-r--r-- | intemperateprefs/INPRootListController.m | 30 | ||||
| -rw-r--r-- | intemperateprefs/Makefile | 15 | ||||
| -rw-r--r-- | intemperateprefs/Resources/Info.plist | 24 | ||||
| -rw-r--r-- | intemperateprefs/Resources/Intemperate.plist | 99 | ||||
| -rw-r--r-- | intemperateprefs/Resources/github@2x.png | bin | 0 -> 3000 bytes | |||
| -rw-r--r-- | intemperateprefs/Resources/github@3x.png | bin | 0 -> 4726 bytes | |||
| -rw-r--r-- | intemperateprefs/Resources/icon@2x.png | bin | 0 -> 1222 bytes | |||
| -rw-r--r-- | intemperateprefs/Resources/icon@3x.png | bin | 0 -> 2083 bytes | |||
| -rw-r--r-- | intemperateprefs/Resources/twitter@2x.png | bin | 0 -> 1768 bytes | |||
| -rw-r--r-- | intemperateprefs/Resources/twitter@3x.png | bin | 0 -> 2747 bytes | |||
| -rw-r--r-- | intemperateprefs/entry.plist | 21 |
12 files changed, 189 insertions, 0 deletions
diff --git a/intemperateprefs/.DS_Store b/intemperateprefs/.DS_Store Binary files differnew file mode 100644 index 0000000..d737c7c --- /dev/null +++ b/intemperateprefs/.DS_Store diff --git a/intemperateprefs/INPRootListController.m b/intemperateprefs/INPRootListController.m new file mode 100644 index 0000000..2f29e97 --- /dev/null +++ b/intemperateprefs/INPRootListController.m @@ -0,0 +1,30 @@ +#import <Preferences/PSListController.h> +#import <spawn.h> +@interface INPRootListController : PSListController + +@end + +@implementation INPRootListController + +- (NSArray *)specifiers { + if (!_specifiers) { + _specifiers = [self loadSpecifiersFromPlistName:@"Intemperate" target:self]; + } + + return _specifiers; +} +-(void)respring { + pid_t pid; + const char* args[] = {"sbreload", NULL}; + posix_spawn(&pid, "/usr/bin/sbreload", NULL, NULL, (char* const*)args, NULL); +} +-(void)openTwitterDM { + [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://twitter.com/messages/compose?recipient_id=974524608949903361&text=%28Please+describe+your+issue+here%29"] options:@{} completionHandler:nil]; +} +-(void)openTwitter5px { + [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://twitter.com/o5pxels"] options:@{} completionHandler:nil]; +} +-(void)openGitHub { + [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://github.com/fivepixels/intemperate"] options:@{} completionHandler:nil]; +} +@end diff --git a/intemperateprefs/Makefile b/intemperateprefs/Makefile new file mode 100644 index 0000000..bb77ef3 --- /dev/null +++ b/intemperateprefs/Makefile @@ -0,0 +1,15 @@ +include $(THEOS)/makefiles/common.mk + +BUNDLE_NAME = IntemperatePrefs + +IntemperatePrefs_FILES = INPRootListController.m +IntemperatePrefs_INSTALL_PATH = /Library/PreferenceBundles +IntemperatePrefs_FRAMEWORKS = UIKit +IntemperatePrefs_PRIVATE_FRAMEWORKS = Preferences +IntemperatePrefs_CFLAGS = -fobjc-arc + +include $(THEOS_MAKE_PATH)/bundle.mk + +internal-stage:: + $(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END) + $(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/IntemperatePrefs.plist$(ECHO_END) diff --git a/intemperateprefs/Resources/Info.plist b/intemperateprefs/Resources/Info.plist new file mode 100644 index 0000000..5775539 --- /dev/null +++ b/intemperateprefs/Resources/Info.plist @@ -0,0 +1,24 @@ +<?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>IntemperatePrefs</string> + <key>CFBundleIdentifier</key> + <string>com.5px.intemperateprefs</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>INPRootListController</string> +</dict> +</plist> diff --git a/intemperateprefs/Resources/Intemperate.plist b/intemperateprefs/Resources/Intemperate.plist new file mode 100644 index 0000000..3cd8ab6 --- /dev/null +++ b/intemperateprefs/Resources/Intemperate.plist @@ -0,0 +1,99 @@ +<?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> + <dict> + <key>cell</key> + <string>PSGroupCell</string> + <key>label</key> + <string>Settings</string> + <key>footerText</key> + <string>By enabling this tweak, your device will be running in an unstable state. Using your device above operating temperatures can lead to permanent damage. FivePixels, the developer, is not responsible for any damage caused to your device.</string> + </dict> + <dict> + <key>cell</key> + <string>PSSwitchCell</string> + <key>default</key> + <false/> + <key>defaults</key> + <string>com.5px.intemperate</string> + <key>key</key> + <string>isEnabled</string> + <key>label</key> + <string>Enabled</string> + </dict> + <dict> + <key>cell</key> + <string>PSGroupCell</string> + <key>footerText</key> + <string>Perform a respring to apply changes.</string> + </dict> + <dict> + <key>cell</key> + <string>PSButtonCell</string> + <key>label</key> + <string>Respring Device</string> + <key>action</key> + <string>respring</string> + </dict> + <dict> + <key>cell</key> + <string>PSGroupCell</string> + <key>label</key> + <string>Support</string> + <key>footerText</key> + <string>If you have any issues with this tweak, describe your issue and I'll try to assist you in the best way possible!</string> + </dict> + <dict> + <key>action</key> + <string>openTwitterDM</string> + <key>cell</key> + <string>PSButtonCell</string> + <key>label</key> + <string>DM @o5pxels on Twitter</string> + <key>icon</key> + <string>twitter.png</string> + </dict> + <dict> + <key>cell</key> + <string>PSGroupCell</string> + <key>label</key> + <string>Credits</string> + </dict> + <dict> + <key>action</key> + <string>openTwitter5px</string> + <key>cell</key> + <string>PSButtonCell</string> + <key>label</key> + <string>@o5pxels</string> + <key>footerText</key> + <string>Developer</string> + </dict> + <dict> + <key>action</key> + <string>openGitHub</string> + <key>cell</key> + <string>PSButtonCell</string> + <key>label</key> + <string>GitHub Source</string> + <key>icon</key> + <string>github.png</string> + </dict> + <dict> + <key>cell</key> + <string>PSGroupCell</string> + <key>footerAlignment</key> + <integer>1</integer> + <key>footerText</key> + <string>© 2020 FivePixels</string> + </dict> + </array> + <key>title</key> + <string>Intemperate</string> + </dict> +</plist> + + diff --git a/intemperateprefs/Resources/github@2x.png b/intemperateprefs/Resources/github@2x.png Binary files differnew file mode 100644 index 0000000..52b4ba7 --- /dev/null +++ b/intemperateprefs/Resources/github@2x.png diff --git a/intemperateprefs/Resources/github@3x.png b/intemperateprefs/Resources/github@3x.png Binary files differnew file mode 100644 index 0000000..5509612 --- /dev/null +++ b/intemperateprefs/Resources/github@3x.png diff --git a/intemperateprefs/Resources/icon@2x.png b/intemperateprefs/Resources/icon@2x.png Binary files differnew file mode 100644 index 0000000..25ce016 --- /dev/null +++ b/intemperateprefs/Resources/icon@2x.png diff --git a/intemperateprefs/Resources/icon@3x.png b/intemperateprefs/Resources/icon@3x.png Binary files differnew file mode 100644 index 0000000..cf62d0b --- /dev/null +++ b/intemperateprefs/Resources/icon@3x.png diff --git a/intemperateprefs/Resources/twitter@2x.png b/intemperateprefs/Resources/twitter@2x.png Binary files differnew file mode 100644 index 0000000..5fa8892 --- /dev/null +++ b/intemperateprefs/Resources/twitter@2x.png diff --git a/intemperateprefs/Resources/twitter@3x.png b/intemperateprefs/Resources/twitter@3x.png Binary files differnew file mode 100644 index 0000000..9af7a41 --- /dev/null +++ b/intemperateprefs/Resources/twitter@3x.png diff --git a/intemperateprefs/entry.plist b/intemperateprefs/entry.plist new file mode 100644 index 0000000..269e439 --- /dev/null +++ b/intemperateprefs/entry.plist @@ -0,0 +1,21 @@ +<?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>entry</key> + <dict> + <key>bundle</key> + <string>IntemperatePrefs</string> + <key>cell</key> + <string>PSLinkCell</string> + <key>detail</key> + <string>INPRootListController</string> + <key>icon</key> + <string>icon.png</string> + <key>isController</key> + <true/> + <key>label</key> + <string>Intemperate</string> + </dict> +</dict> +</plist> |
