From 8a752c04771b28d82dce988849cad84ddaf3ea2c Mon Sep 17 00:00:00 2001 From: FivePixels Date: Fri, 17 Jul 2020 10:06:30 -0500 Subject: Initial Commit --- finicalprefs/.DS_Store | Bin 0 -> 6148 bytes finicalprefs/FCLRootListController.m | 30 +++++ finicalprefs/Makefile | 15 +++ finicalprefs/Resources/Finical.plist | 200 ++++++++++++++++++++++++++++++++++ finicalprefs/Resources/Info.plist | 24 ++++ finicalprefs/Resources/discord@2x.png | Bin 0 -> 2228 bytes finicalprefs/Resources/discord@3x.png | Bin 0 -> 3401 bytes finicalprefs/Resources/icon@2x.png | Bin 0 -> 4229 bytes finicalprefs/Resources/icon@3x.png | Bin 0 -> 7751 bytes finicalprefs/Resources/twitter@2x.png | Bin 0 -> 1768 bytes finicalprefs/Resources/twitter@3x.png | Bin 0 -> 2747 bytes finicalprefs/entry.plist | 21 ++++ 12 files changed, 290 insertions(+) create mode 100644 finicalprefs/.DS_Store create mode 100644 finicalprefs/FCLRootListController.m create mode 100644 finicalprefs/Makefile create mode 100644 finicalprefs/Resources/Finical.plist create mode 100644 finicalprefs/Resources/Info.plist create mode 100644 finicalprefs/Resources/discord@2x.png create mode 100644 finicalprefs/Resources/discord@3x.png create mode 100644 finicalprefs/Resources/icon@2x.png create mode 100644 finicalprefs/Resources/icon@3x.png create mode 100644 finicalprefs/Resources/twitter@2x.png create mode 100644 finicalprefs/Resources/twitter@3x.png create mode 100644 finicalprefs/entry.plist (limited to 'finicalprefs') diff --git a/finicalprefs/.DS_Store b/finicalprefs/.DS_Store new file mode 100644 index 0000000..966890a Binary files /dev/null and b/finicalprefs/.DS_Store differ diff --git a/finicalprefs/FCLRootListController.m b/finicalprefs/FCLRootListController.m new file mode 100644 index 0000000..e22d31c --- /dev/null +++ b/finicalprefs/FCLRootListController.m @@ -0,0 +1,30 @@ +#import +#import +@interface FCLRootListController : PSListController +@end +@implementation FCLRootListController + +-(void)respring { + pid_t pid; + const char* args[] = {"sbreload", NULL}; + posix_spawn(&pid, "/usr/bin/sbreload", NULL, NULL, (char* const*)args, NULL); +} +- (NSArray *)specifiers { + if (!_specifiers) { + _specifiers = [self loadSpecifiersFromPlistName:@"Finical" target:self]; + } + return _specifiers; +} +-(void)openDiscord { + [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://discord.gg/Vg2EYDR"] options:@{} completionHandler:nil]; +} +-(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)openPayPal { + [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://paypal.me/fivepixels"] options:@{} completionHandler:nil]; +} +@end diff --git a/finicalprefs/Makefile b/finicalprefs/Makefile new file mode 100644 index 0000000..1a63e84 --- /dev/null +++ b/finicalprefs/Makefile @@ -0,0 +1,15 @@ +include $(THEOS)/makefiles/common.mk + +BUNDLE_NAME = FinicalPrefs + +FinicalPrefs_FILES = FCLRootListController.m +FinicalPrefs_INSTALL_PATH = /Library/PreferenceBundles +FinicalPrefs_FRAMEWORKS = UIKit +FinicalPrefs_PRIVATE_FRAMEWORKS = Preferences +FinicalPrefs_CFLAGS = -fobjc-arc +ARCHS = arm64 arm64e +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/FinicalPrefs.plist$(ECHO_END) diff --git a/finicalprefs/Resources/Finical.plist b/finicalprefs/Resources/Finical.plist new file mode 100644 index 0000000..d4c28ee --- /dev/null +++ b/finicalprefs/Resources/Finical.plist @@ -0,0 +1,200 @@ + + + + + items + + + cell + PSGroupCell + label + Settings + footerText + Respring your device to apply changes. + + + cell + PSSwitchCell + default + + defaults + com.5px.finical + key + enabled + label + Enabled + + + + action + respring + cell + PSButtonCell + label + Respring + + + cell + PSGroupCell + label + Gesture Direction + footerText + The swipe direction to dismiss the Lockscreen player. + + + cell + PSSegmentCell + defaults + com.5px.finical + key + dismissGesture + default + 2 + validTitles + + Left + Right + Up + Down + + validValues + + 0 + 1 + 2 + 3 + + + + cell + PSGroupCell + label + options + footerText + The time until the player is automatically dismissed. + + + cell + PSSwitchCell + default + + defaults + com.5px.finical + key + killApp + label + Close Now Playing App on Dismissal + + + cell + PSSwitchCell + default + + defaults + com.5px.finical + key + dismissPlayer + label + Dismiss Automatically + + + cell + PSSliderCell + min + 0 + max + 60 + default + 0 + showValue + + isSegmented + + segmentCount + 60 + defaults + com.5px.finical + key + timeValue + + + cell + PSSegmentCell + defaults + com.5px.finical + key + timeOption + default + 0 + validTitles + + Seconds + Minutes + Hours + + validValues + + 0 + 1 + 2 + + + + cell + PSGroupCell + label + Support + footerText + Having trouble with Finical? + + + cell + PSButtonCell + action + openDiscord + label + FivePixels Discord Server + icon + discord.png + + + cell + PSButtonCell + action + openTwitterDM + label + Get Support on Twitter + icon + twitter.png + + + cell + PSGroupCell + label + Developer + footerText + "If this is coffee, please bring me some tea; but if this is tea, please bring me some coffee." + footerAlignment + 1 + + + action + openTwitter5px + cell + PSButtonCell + label + Dylan Bolger (FivePixels) + + + cell + PSGroupCell + footerAlignment + 1 + footerText + Dylan Bolger (FivePixels) © 2020 + + + title + Finical + + diff --git a/finicalprefs/Resources/Info.plist b/finicalprefs/Resources/Info.plist new file mode 100644 index 0000000..ffd77b8 --- /dev/null +++ b/finicalprefs/Resources/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + FinicalPrefs + CFBundleIdentifier + com.5px.finicalprefs + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + NSPrincipalClass + FCLRootListController + + diff --git a/finicalprefs/Resources/discord@2x.png b/finicalprefs/Resources/discord@2x.png new file mode 100644 index 0000000..54f6a92 Binary files /dev/null and b/finicalprefs/Resources/discord@2x.png differ diff --git a/finicalprefs/Resources/discord@3x.png b/finicalprefs/Resources/discord@3x.png new file mode 100644 index 0000000..d58c334 Binary files /dev/null and b/finicalprefs/Resources/discord@3x.png differ diff --git a/finicalprefs/Resources/icon@2x.png b/finicalprefs/Resources/icon@2x.png new file mode 100644 index 0000000..3b9d210 Binary files /dev/null and b/finicalprefs/Resources/icon@2x.png differ diff --git a/finicalprefs/Resources/icon@3x.png b/finicalprefs/Resources/icon@3x.png new file mode 100644 index 0000000..43b0661 Binary files /dev/null and b/finicalprefs/Resources/icon@3x.png differ diff --git a/finicalprefs/Resources/twitter@2x.png b/finicalprefs/Resources/twitter@2x.png new file mode 100644 index 0000000..5fa8892 Binary files /dev/null and b/finicalprefs/Resources/twitter@2x.png differ diff --git a/finicalprefs/Resources/twitter@3x.png b/finicalprefs/Resources/twitter@3x.png new file mode 100644 index 0000000..9af7a41 Binary files /dev/null and b/finicalprefs/Resources/twitter@3x.png differ diff --git a/finicalprefs/entry.plist b/finicalprefs/entry.plist new file mode 100644 index 0000000..e094ad6 --- /dev/null +++ b/finicalprefs/entry.plist @@ -0,0 +1,21 @@ + + + + + entry + + bundle + FinicalPrefs + cell + PSLinkCell + detail + FCLRootListController + icon + icon.png + isController + + label + Finical + + + -- cgit v1.2.3