forked from gilshahar7/ExactTime
Add files via upload
This commit is contained in:
@ -1,8 +1,9 @@
|
|||||||
ARCHS = armv7 arm64
|
export ARCHS = armv7 arm64
|
||||||
|
export TARGET = iphone:clang:9.1:9.1
|
||||||
include $(THEOS)/makefiles/common.mk
|
include $(THEOS)/makefiles/common.mk
|
||||||
|
|
||||||
BUNDLE_NAME = ExactTimeprefs
|
BUNDLE_NAME = ExactTimeprefs
|
||||||
ExactTimeprefs_FILES = ExactTimeprefs.mm
|
ExactTimeprefs_FILES = RootListController.m
|
||||||
ExactTimeprefs_INSTALL_PATH = /Library/PreferenceBundles
|
ExactTimeprefs_INSTALL_PATH = /Library/PreferenceBundles
|
||||||
ExactTimeprefs_FRAMEWORKS = UIKit
|
ExactTimeprefs_FRAMEWORKS = UIKit
|
||||||
ExactTimeprefs_PRIVATE_FRAMEWORKS = Preferences
|
ExactTimeprefs_PRIVATE_FRAMEWORKS = Preferences
|
||||||
|
82
exacttimeprefs/Resources/Root.plist
Normal file
82
exacttimeprefs/Resources/Root.plist
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
<?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>footerText</key>
|
||||||
|
<string>Only show the exact time for notifications older than this value (0~240). Default value for stock iOS is 240 minutes (4 hours)</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSEditTextCell</string>
|
||||||
|
<key>defaults</key>
|
||||||
|
<string>com.gilshahar7.exacttimeprefs</string>
|
||||||
|
<key>key</key>
|
||||||
|
<string>affectTime</string>
|
||||||
|
<key>default</key>
|
||||||
|
<string>10</string>
|
||||||
|
<key>isNumeric</key>
|
||||||
|
<true/>
|
||||||
|
<key>label</key>
|
||||||
|
<string>Affect after (in minutes)</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSButtonCell</string>
|
||||||
|
<key>defaults</key> <string>com.gilshahar7.exacttimeprefs</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>Apply</string>
|
||||||
|
<key>action</key>
|
||||||
|
<string>apply</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSGroupCell</string>
|
||||||
|
<key>footerText</key>
|
||||||
|
<string>This will add "Xh ago" where there is an exact time, separated by a ' • ' Note: this will override any language</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSSwitchCell</string>
|
||||||
|
<key>default</key>
|
||||||
|
<false/>
|
||||||
|
<key>defaults</key>
|
||||||
|
<string>com.gilshahar7.exacttimeprefs</string>
|
||||||
|
<key>key</key>
|
||||||
|
<string>addToCurrent</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>Add estimated time to exact time</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSGroupCell</string>
|
||||||
|
<key>footerText</key>
|
||||||
|
<string>This will add minutes to all "Xh ago" Note: this will override any language</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSSwitchCell</string>
|
||||||
|
<key>default</key>
|
||||||
|
<false/>
|
||||||
|
<key>defaults</key>
|
||||||
|
<string>com.gilshahar7.exacttimeprefs</string>
|
||||||
|
<key>key</key>
|
||||||
|
<string>addMinutes</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>Change "2h ago" to "2h 17m ago"</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSGroupCell</string>
|
||||||
|
<key>footerText</key>
|
||||||
|
<string>Made by: gilshahar7.</string>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
<key>title</key>
|
||||||
|
<string>ExactTime</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
5
exacttimeprefs/RootListController.h
Normal file
5
exacttimeprefs/RootListController.h
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#import <Preferences/PSListController.h>
|
||||||
|
|
||||||
|
@interface RootListController : PSListController
|
||||||
|
|
||||||
|
@end
|
17
exacttimeprefs/RootListController.m
Normal file
17
exacttimeprefs/RootListController.m
Normal file
@ -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
|
Reference in New Issue
Block a user