From 614a82eb96eb01eeecae72971c9ecc8812d9bc26 Mon Sep 17 00:00:00 2001 From: Gil Shahar Date: Sun, 18 Mar 2018 07:22:31 +0200 Subject: [PATCH] Add files via upload --- exacttimeprefs/Makefile | 5 +- exacttimeprefs/Resources/Root.plist | 82 +++++++++++++++++++++++++++++ exacttimeprefs/RootListController.h | 5 ++ exacttimeprefs/RootListController.m | 17 ++++++ 4 files changed, 107 insertions(+), 2 deletions(-) create mode 100644 exacttimeprefs/Resources/Root.plist create mode 100644 exacttimeprefs/RootListController.h create mode 100644 exacttimeprefs/RootListController.m diff --git a/exacttimeprefs/Makefile b/exacttimeprefs/Makefile index 8786ab8..e460170 100644 --- a/exacttimeprefs/Makefile +++ b/exacttimeprefs/Makefile @@ -1,8 +1,9 @@ -ARCHS = armv7 arm64 +export ARCHS = armv7 arm64 +export TARGET = iphone:clang:9.1:9.1 include $(THEOS)/makefiles/common.mk BUNDLE_NAME = ExactTimeprefs -ExactTimeprefs_FILES = ExactTimeprefs.mm +ExactTimeprefs_FILES = RootListController.m ExactTimeprefs_INSTALL_PATH = /Library/PreferenceBundles ExactTimeprefs_FRAMEWORKS = UIKit ExactTimeprefs_PRIVATE_FRAMEWORKS = Preferences diff --git a/exacttimeprefs/Resources/Root.plist b/exacttimeprefs/Resources/Root.plist new file mode 100644 index 0000000..71fe062 --- /dev/null +++ b/exacttimeprefs/Resources/Root.plist @@ -0,0 +1,82 @@ + + + + + items + + + cell + PSGroupCell + footerText + Only show the exact time for notifications older than this value (0~240). Default value for stock iOS is 240 minutes (4 hours) + + + cell + PSEditTextCell + defaults + com.gilshahar7.exacttimeprefs + key + affectTime + default + 10 + isNumeric + + label + Affect after (in minutes) + + + cell + PSButtonCell + defaults com.gilshahar7.exacttimeprefs + label + Apply + action + apply + + + cell + PSGroupCell + footerText + This will add "Xh ago" where there is an exact time, separated by a ' • ' Note: this will override any language + + + cell + PSSwitchCell + default + + defaults + com.gilshahar7.exacttimeprefs + key + addToCurrent + label + Add estimated time to exact time + + + cell + PSGroupCell + footerText + This will add minutes to all "Xh ago" Note: this will override any language + + + cell + PSSwitchCell + default + + defaults + com.gilshahar7.exacttimeprefs + key + addMinutes + label + Change "2h ago" to "2h 17m ago" + + + cell + PSGroupCell + footerText + Made by: gilshahar7. + + + title + ExactTime + + diff --git a/exacttimeprefs/RootListController.h b/exacttimeprefs/RootListController.h new file mode 100644 index 0000000..71a5fa5 --- /dev/null +++ b/exacttimeprefs/RootListController.h @@ -0,0 +1,5 @@ +#import + +@interface RootListController : PSListController + +@end diff --git a/exacttimeprefs/RootListController.m b/exacttimeprefs/RootListController.m new file mode 100644 index 0000000..382d482 --- /dev/null +++ b/exacttimeprefs/RootListController.m @@ -0,0 +1,17 @@ +#include "RootListController.h" + +@implementation RootListController + +- (NSArray *)specifiers { + if (!_specifiers) { + _specifiers = [[self loadSpecifiersFromPlistName:@"Root" target:self] retain]; + } + + return _specifiers; +} + +-(void)apply{ + [self.view endEditing:YES]; +} + +@end