diff --git a/.theos/_/DEBIAN/control b/.theos/_/DEBIAN/control deleted file mode 100644 index 1762574..0000000 --- a/.theos/_/DEBIAN/control +++ /dev/null @@ -1,12 +0,0 @@ -Package: com.mpg13.undertime -Name: UnderTime -Depends: mobilesubstrate -Architecture: iphoneos-arm -Description: Customizable date under time in iX StatusBar. -Homepage: https://mpg13.github.io -Depiction: https://mpg13.github.io/repo/depicts/undertime.html -Maintainer: MPG13 -Author: MPG13 -Section: Tweaks -Version: 1.3.1-1+debug -Installed-Size: 192 diff --git a/.theos/_/Library/MobileSubstrate/DynamicLibraries/UnderTime.dylib b/.theos/_/Library/MobileSubstrate/DynamicLibraries/UnderTime.dylib deleted file mode 100755 index 73add45..0000000 Binary files a/.theos/_/Library/MobileSubstrate/DynamicLibraries/UnderTime.dylib and /dev/null differ diff --git a/.theos/_/Library/MobileSubstrate/DynamicLibraries/UnderTime.plist b/.theos/_/Library/MobileSubstrate/DynamicLibraries/UnderTime.plist deleted file mode 100644 index dec8769..0000000 --- a/.theos/_/Library/MobileSubstrate/DynamicLibraries/UnderTime.plist +++ /dev/null @@ -1,5 +0,0 @@ -{ - Filter = { - Classes = ( "_UIStatusBarStringView", "_UIStatusBarTimeItem", "_UIStatusBarNavigationItem" ); - }; -} diff --git a/.theos/_/Library/PreferenceBundles/UnderTime.bundle/Info.plist b/.theos/_/Library/PreferenceBundles/UnderTime.bundle/Info.plist deleted file mode 100644 index 1146527..0000000 --- a/.theos/_/Library/PreferenceBundles/UnderTime.bundle/Info.plist +++ /dev/null @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - UnderTime - CFBundleIdentifier - com.mpg13.undertime - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - NSPrincipalClass - udtRootListController - - diff --git a/.theos/_/Library/PreferenceBundles/UnderTime.bundle/Root.plist b/.theos/_/Library/PreferenceBundles/UnderTime.bundle/Root.plist deleted file mode 100644 index fbb30d2..0000000 --- a/.theos/_/Library/PreferenceBundles/UnderTime.bundle/Root.plist +++ /dev/null @@ -1,173 +0,0 @@ - - - - - items - - - cell - PSStaticTextCell - height - 45 - label - UnderTime - - - cell - PSSwitchCell - default - - defaults - com.mpg13.undertime - key - Enable - label - Enable tweak - - - - cell - PSGroupCell - label - First Line - height - 10 - - - cell - PSSwitchCell - default - - defaults - com.mpg13.undertime - key - lineOneEnable - label - Custom First Line - - - cell - PSSwitchCell - default - - defaults - com.mpg13.undertime - key - lineOneStandard - label - First Line Standard String - - - cell - PSEditTextCell - default - h:m - defaults - com.mpg13.undertime - key - lineOne - - - cell - PSSwitchCell - default - - defaults - com.mpg13.undertime - key - replaceTime - label - First Line Only - - - - cell - PSGroupCell - label - Second Line - height - 10 - - - cell - PSSwitchCell - default - - defaults - com.mpg13.undertime - key - lineTwoStandard - label - Second Line Standard String - - - cell - PSEditTextCell - default - d/M - defaults - com.mpg13.undertime - key - lineTwo - - - cell - PSGroupCell - label - Use nsdateformatter.com to help you format your date! - - - - cell - PSGroupCell - label - Font Size - height - 10 - - - cell - PSSliderCell - default - 12 - defaults - com.mpg13.undertime - key - sizeOfFont - max - 18 - min - 6 - showValue - - - - - cell - PSGroupCell - label - - height - 10 - - - action - respring - height - 30 - cell - PSButtonCell - label - Respring - - - cell - PSGroupCell - label - Developed partially by MPG13 | Forked from NeinZedd's "DateUnderTimeX" - - - title - UnderTime - - diff --git a/.theos/_/Library/PreferenceBundles/UnderTime.bundle/UnderTime b/.theos/_/Library/PreferenceBundles/UnderTime.bundle/UnderTime deleted file mode 100755 index 2aa0e2d..0000000 Binary files a/.theos/_/Library/PreferenceBundles/UnderTime.bundle/UnderTime and /dev/null differ diff --git a/.theos/_/Library/PreferenceBundles/UnderTime.bundle/icon@2x.png b/.theos/_/Library/PreferenceBundles/UnderTime.bundle/icon@2x.png deleted file mode 100644 index ff923c4..0000000 Binary files a/.theos/_/Library/PreferenceBundles/UnderTime.bundle/icon@2x.png and /dev/null differ diff --git a/.theos/_/Library/PreferenceLoader/Preferences/UnderTime.plist b/.theos/_/Library/PreferenceLoader/Preferences/UnderTime.plist deleted file mode 100644 index 79329c4..0000000 --- a/.theos/_/Library/PreferenceLoader/Preferences/UnderTime.plist +++ /dev/null @@ -1,21 +0,0 @@ - - - - - entry - - bundle - UnderTime - cell - PSLinkCell - detail - udtRootListController - icon - icon.png - isController - - label - UnderTime - - - diff --git a/.theos/last_package b/.theos/last_package index ef8dbca..d016051 100644 --- a/.theos/last_package +++ b/.theos/last_package @@ -1 +1 @@ -./packages/com.mpg13.undertime_1.3.1-1+debug_iphoneos-arm.deb +./packages/com.mpg13.undertime_1.4-32+debug_iphoneos-arm.deb diff --git a/.theos/obj/debug/UnderTime.bundle/Info.plist b/.theos/obj/debug/UnderTime.bundle/Info.plist deleted file mode 100644 index 1146527..0000000 --- a/.theos/obj/debug/UnderTime.bundle/Info.plist +++ /dev/null @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - UnderTime - CFBundleIdentifier - com.mpg13.undertime - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - NSPrincipalClass - udtRootListController - - diff --git a/.theos/obj/debug/UnderTime.bundle/Root.plist b/.theos/obj/debug/UnderTime.bundle/Root.plist deleted file mode 100644 index fbb30d2..0000000 --- a/.theos/obj/debug/UnderTime.bundle/Root.plist +++ /dev/null @@ -1,173 +0,0 @@ - - - - - items - - - cell - PSStaticTextCell - height - 45 - label - UnderTime - - - cell - PSSwitchCell - default - - defaults - com.mpg13.undertime - key - Enable - label - Enable tweak - - - - cell - PSGroupCell - label - First Line - height - 10 - - - cell - PSSwitchCell - default - - defaults - com.mpg13.undertime - key - lineOneEnable - label - Custom First Line - - - cell - PSSwitchCell - default - - defaults - com.mpg13.undertime - key - lineOneStandard - label - First Line Standard String - - - cell - PSEditTextCell - default - h:m - defaults - com.mpg13.undertime - key - lineOne - - - cell - PSSwitchCell - default - - defaults - com.mpg13.undertime - key - replaceTime - label - First Line Only - - - - cell - PSGroupCell - label - Second Line - height - 10 - - - cell - PSSwitchCell - default - - defaults - com.mpg13.undertime - key - lineTwoStandard - label - Second Line Standard String - - - cell - PSEditTextCell - default - d/M - defaults - com.mpg13.undertime - key - lineTwo - - - cell - PSGroupCell - label - Use nsdateformatter.com to help you format your date! - - - - cell - PSGroupCell - label - Font Size - height - 10 - - - cell - PSSliderCell - default - 12 - defaults - com.mpg13.undertime - key - sizeOfFont - max - 18 - min - 6 - showValue - - - - - cell - PSGroupCell - label - - height - 10 - - - action - respring - height - 30 - cell - PSButtonCell - label - Respring - - - cell - PSGroupCell - label - Developed partially by MPG13 | Forked from NeinZedd's "DateUnderTimeX" - - - title - UnderTime - - diff --git a/.theos/obj/debug/UnderTime.bundle/UnderTime b/.theos/obj/debug/UnderTime.bundle/UnderTime deleted file mode 100755 index 2aa0e2d..0000000 Binary files a/.theos/obj/debug/UnderTime.bundle/UnderTime and /dev/null differ diff --git a/.theos/obj/debug/UnderTime.bundle/icon@2x.png b/.theos/obj/debug/UnderTime.bundle/icon@2x.png deleted file mode 100644 index ff923c4..0000000 Binary files a/.theos/obj/debug/UnderTime.bundle/icon@2x.png and /dev/null differ diff --git a/.theos/obj/debug/UnderTime.dylib b/.theos/obj/debug/UnderTime.dylib deleted file mode 100755 index 73add45..0000000 Binary files a/.theos/obj/debug/UnderTime.dylib and /dev/null differ diff --git a/.theos/obj/debug/arm64/Tweak.xm.41206041.o b/.theos/obj/debug/arm64/Tweak.xm.41206041.o deleted file mode 100644 index d260681..0000000 Binary files a/.theos/obj/debug/arm64/Tweak.xm.41206041.o and /dev/null differ diff --git a/.theos/obj/debug/arm64/Tweak.xm.c666351f.Td b/.theos/obj/debug/arm64/Tweak.xm.c666351f.Td deleted file mode 100644 index b12ebb7..0000000 --- a/.theos/obj/debug/arm64/Tweak.xm.c666351f.Td +++ /dev/null @@ -1,17 +0,0 @@ -/home/mpg13/DateUnderTimeX/.theos/obj/debug/arm64/Tweak.xm.c666351f.o: \ - /home/mpg13/DateUnderTimeX/.theos/obj/debug/arm64/Tweak.xm.mm \ - /home/mpg13/theos/Prefix.pch \ - /home/mpg13/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /home/mpg13/theos/vendor/include/_Prefix/IOSMacros.h \ - /home/mpg13/DateUnderTimeX/important.h \ - /home/mpg13/theos/vendor/include/substrate.h - -/home/mpg13/theos/Prefix.pch: - -/home/mpg13/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/home/mpg13/theos/vendor/include/_Prefix/IOSMacros.h: - -/home/mpg13/DateUnderTimeX/important.h: - -/home/mpg13/theos/vendor/include/substrate.h: diff --git a/.theos/obj/debug/arm64/Tweak.xm.c666351f.o b/.theos/obj/debug/arm64/Tweak.xm.c666351f.o deleted file mode 100644 index d8767f0..0000000 Binary files a/.theos/obj/debug/arm64/Tweak.xm.c666351f.o and /dev/null differ diff --git a/.theos/obj/debug/arm64/Tweak.xm.mm b/.theos/obj/debug/arm64/Tweak.xm.mm deleted file mode 100644 index aa613af..0000000 --- a/.theos/obj/debug/arm64/Tweak.xm.mm +++ /dev/null @@ -1,122 +0,0 @@ -#line 1 "Tweak.xm" -#import "important.h" -#import - -@interface _UIStatusBarStringView : UIView -@property (copy) NSString *text; -@property NSInteger numberOfLines; -@property (copy) UIFont *font; -@property NSInteger textAlignment; -@end - -int sizeOfFont = GetPrefInt(@"sizeOfFont"); - - -#include -#if defined(__clang__) -#if __has_feature(objc_arc) -#define _LOGOS_SELF_TYPE_NORMAL __unsafe_unretained -#define _LOGOS_SELF_TYPE_INIT __attribute__((ns_consumed)) -#define _LOGOS_SELF_CONST const -#define _LOGOS_RETURN_RETAINED __attribute__((ns_returns_retained)) -#else -#define _LOGOS_SELF_TYPE_NORMAL -#define _LOGOS_SELF_TYPE_INIT -#define _LOGOS_SELF_CONST -#define _LOGOS_RETURN_RETAINED -#endif -#else -#define _LOGOS_SELF_TYPE_NORMAL -#define _LOGOS_SELF_TYPE_INIT -#define _LOGOS_SELF_CONST -#define _LOGOS_RETURN_RETAINED -#endif - -@class _UIStatusBarTimeItem; @class _UIStatusBarStringView; @class _UIStatusBarBackgroundActivityView; -static void (*_logos_orig$_ungrouped$_UIStatusBarStringView$setText$)(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarStringView* _LOGOS_SELF_CONST, SEL, NSString *); static void _logos_method$_ungrouped$_UIStatusBarStringView$setText$(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarStringView* _LOGOS_SELF_CONST, SEL, NSString *); static id (*_logos_orig$_ungrouped$_UIStatusBarTimeItem$applyUpdate$toDisplayItem$)(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarTimeItem* _LOGOS_SELF_CONST, SEL, id, id); static id _logos_method$_ungrouped$_UIStatusBarTimeItem$applyUpdate$toDisplayItem$(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarTimeItem* _LOGOS_SELF_CONST, SEL, id, id); static void (*_logos_orig$_ungrouped$_UIStatusBarBackgroundActivityView$setCenter$)(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarBackgroundActivityView* _LOGOS_SELF_CONST, SEL, CGPoint); static void _logos_method$_ungrouped$_UIStatusBarBackgroundActivityView$setCenter$(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarBackgroundActivityView* _LOGOS_SELF_CONST, SEL, CGPoint); - -#line 13 "Tweak.xm" - - -static void _logos_method$_ungrouped$_UIStatusBarStringView$setText$(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarStringView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, NSString * text) { - if(GetPrefBool(@"Enable") && ![text containsString:@"%"] && ![text containsString:@"1x"] && ![text containsString:@"LTE"] && ![text containsString:@"4G"] && ![text containsString:@"3G"] && ![text containsString:@"2G"]) { - NSString *lineTwo = GetPrefString(@"lineTwo"); - NSString *lineOne = GetPrefString(@"lineOne"); - NSString *timeLineTwo = lineTwo; - NSString *timeLineOne = lineOne; - - NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; - NSDate *now = [NSDate date]; - if(!GetPrefBool(@"lineTwoStandard")){ - [dateFormatter setDateFormat:lineTwo]; - timeLineTwo = [dateFormatter stringFromDate:now]; - timeLineTwo = [timeLineTwo substringToIndex:[timeLineTwo length]]; - } - if(!GetPrefBool(@"lineOneStandard")){ - [dateFormatter setDateFormat:lineOne]; - timeLineOne = [dateFormatter stringFromDate:now]; - timeLineOne = [timeLineOne substringToIndex:[timeLineOne length]]; - } - NSString *newString; - if(GetPrefBool(@"lineOneEnable")){ - newString = [NSString stringWithFormat:@"%@\n%@", timeLineOne, timeLineTwo]; - } - else{ - newString = [NSString stringWithFormat:@"%@\n%@", text, timeLineTwo]; - } - - [self setFont: [self.font fontWithSize:sizeOfFont]]; - if(GetPrefBool(@"replaceTime")){ - _logos_orig$_ungrouped$_UIStatusBarStringView$setText$(self, _cmd, timeLineOne); - } - else{ - self.textAlignment = 1; - self.numberOfLines = 2; - _logos_orig$_ungrouped$_UIStatusBarStringView$setText$(self, _cmd, newString); - } - } - else { - _logos_orig$_ungrouped$_UIStatusBarStringView$setText$(self, _cmd, text); - } -} - - - -@interface _UIStatusBarTimeItem -@property (copy) _UIStatusBarStringView *shortTimeView; -@property (copy) _UIStatusBarStringView *pillTimeView; -@end - - -static id _logos_method$_ungrouped$_UIStatusBarTimeItem$applyUpdate$toDisplayItem$(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarTimeItem* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, id arg1, id arg2) { - id returnThis = _logos_orig$_ungrouped$_UIStatusBarTimeItem$applyUpdate$toDisplayItem$(self, _cmd, arg1, arg2); - if(GetPrefBool(@"Enable")) { - [self.shortTimeView setFont: [self.shortTimeView.font fontWithSize:sizeOfFont]]; - [self.pillTimeView setFont: [self.pillTimeView.font fontWithSize:sizeOfFont]]; - } - return returnThis; -} - - - -@interface _UIStatusBarBackgroundActivityView : UIView -@property (copy) CALayer *pulseLayer; -@end - - - -static void _logos_method$_ungrouped$_UIStatusBarBackgroundActivityView$setCenter$(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarBackgroundActivityView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, CGPoint point) { - if(GetPrefBool(@"Enable") && !GetPrefBool(@"replaceTime")){ - point.y = 11; - self.frame = CGRectMake(0, 0, self.frame.size.width, 31); - self.pulseLayer.frame = CGRectMake(0, 0, self.frame.size.width, 31); - _logos_orig$_ungrouped$_UIStatusBarBackgroundActivityView$setCenter$(self, _cmd, point); - } -} - - - - -static __attribute__((constructor)) void _logosLocalInit() { -{Class _logos_class$_ungrouped$_UIStatusBarStringView = objc_getClass("_UIStatusBarStringView"); MSHookMessageEx(_logos_class$_ungrouped$_UIStatusBarStringView, @selector(setText:), (IMP)&_logos_method$_ungrouped$_UIStatusBarStringView$setText$, (IMP*)&_logos_orig$_ungrouped$_UIStatusBarStringView$setText$);Class _logos_class$_ungrouped$_UIStatusBarTimeItem = objc_getClass("_UIStatusBarTimeItem"); MSHookMessageEx(_logos_class$_ungrouped$_UIStatusBarTimeItem, @selector(applyUpdate:toDisplayItem:), (IMP)&_logos_method$_ungrouped$_UIStatusBarTimeItem$applyUpdate$toDisplayItem$, (IMP*)&_logos_orig$_ungrouped$_UIStatusBarTimeItem$applyUpdate$toDisplayItem$);Class _logos_class$_ungrouped$_UIStatusBarBackgroundActivityView = objc_getClass("_UIStatusBarBackgroundActivityView"); MSHookMessageEx(_logos_class$_ungrouped$_UIStatusBarBackgroundActivityView, @selector(setCenter:), (IMP)&_logos_method$_ungrouped$_UIStatusBarBackgroundActivityView$setCenter$, (IMP*)&_logos_orig$_ungrouped$_UIStatusBarBackgroundActivityView$setCenter$);} } -#line 94 "Tweak.xm" diff --git a/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime b/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime deleted file mode 100755 index 418fbbd..0000000 Binary files a/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime and /dev/null differ diff --git a/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime.dSYM/Contents/Info.plist b/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime.dSYM/Contents/Info.plist deleted file mode 100644 index 5309323..0000000 --- a/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.UnderTime - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime.dSYM/Contents/Resources/DWARF/UnderTime b/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime.dSYM/Contents/Resources/DWARF/UnderTime deleted file mode 100644 index ae40458..0000000 Binary files a/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime.dSYM/Contents/Resources/DWARF/UnderTime and /dev/null differ diff --git a/.theos/obj/debug/arm64/UnderTime.dylib b/.theos/obj/debug/arm64/UnderTime.dylib deleted file mode 100755 index 6ce9530..0000000 Binary files a/.theos/obj/debug/arm64/UnderTime.dylib and /dev/null differ diff --git a/.theos/obj/debug/arm64/UnderTime.dylib.dSYM/Contents/Info.plist b/.theos/obj/debug/arm64/UnderTime.dylib.dSYM/Contents/Info.plist deleted file mode 100644 index ccfe7ae..0000000 --- a/.theos/obj/debug/arm64/UnderTime.dylib.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.UnderTime.dylib - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/.theos/obj/debug/arm64/UnderTime.dylib.dSYM/Contents/Resources/DWARF/UnderTime.dylib b/.theos/obj/debug/arm64/UnderTime.dylib.dSYM/Contents/Resources/DWARF/UnderTime.dylib deleted file mode 100644 index 4ae319b..0000000 Binary files a/.theos/obj/debug/arm64/UnderTime.dylib.dSYM/Contents/Resources/DWARF/UnderTime.dylib and /dev/null differ diff --git a/.theos/obj/debug/arm64/UnderTimeRootListController.m.adc5d2ae.Td b/.theos/obj/debug/arm64/UnderTimeRootListController.m.adc5d2ae.Td deleted file mode 100644 index cd914f0..0000000 --- a/.theos/obj/debug/arm64/UnderTimeRootListController.m.adc5d2ae.Td +++ /dev/null @@ -1,19 +0,0 @@ -/home/mpg13/DateUnderTimeX/.theos/obj/debug/arm64/UnderTimeRootListController.m.adc5d2ae.o: \ - UnderTimeRootListController.m /home/mpg13/theos/Prefix.pch \ - /home/mpg13/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /home/mpg13/theos/vendor/include/_Prefix/IOSMacros.h \ - UnderTimeRootListController.h \ - /home/mpg13/theos/vendor/include/Preferences/PSListController.h \ - /home/mpg13/theos/vendor/include/Preferences/PSViewController.h - -/home/mpg13/theos/Prefix.pch: - -/home/mpg13/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/home/mpg13/theos/vendor/include/_Prefix/IOSMacros.h: - -UnderTimeRootListController.h: - -/home/mpg13/theos/vendor/include/Preferences/PSListController.h: - -/home/mpg13/theos/vendor/include/Preferences/PSViewController.h: diff --git a/.theos/obj/debug/arm64/UnderTimeRootListController.m.adc5d2ae.o b/.theos/obj/debug/arm64/UnderTimeRootListController.m.adc5d2ae.o deleted file mode 100644 index 4276f4f..0000000 Binary files a/.theos/obj/debug/arm64/UnderTimeRootListController.m.adc5d2ae.o and /dev/null differ diff --git a/.theos/obj/debug/arm64/udtRootListController.m.b4efe98b.Td b/.theos/obj/debug/arm64/udtRootListController.m.b4efe98b.Td deleted file mode 100644 index 1fd04fe..0000000 --- a/.theos/obj/debug/arm64/udtRootListController.m.b4efe98b.Td +++ /dev/null @@ -1,19 +0,0 @@ -/home/mpg13/UnderTime/.theos/obj/debug/arm64/udtRootListController.m.b4efe98b.o: \ - udtRootListController.m /home/mpg13/theos/Prefix.pch \ - /home/mpg13/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /home/mpg13/theos/vendor/include/_Prefix/IOSMacros.h \ - udtRootListController.h \ - /home/mpg13/theos/vendor/include/Preferences/PSListController.h \ - /home/mpg13/theos/vendor/include/Preferences/PSViewController.h - -/home/mpg13/theos/Prefix.pch: - -/home/mpg13/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/home/mpg13/theos/vendor/include/_Prefix/IOSMacros.h: - -udtRootListController.h: - -/home/mpg13/theos/vendor/include/Preferences/PSListController.h: - -/home/mpg13/theos/vendor/include/Preferences/PSViewController.h: diff --git a/.theos/obj/debug/arm64/udtRootListController.m.b4efe98b.o b/.theos/obj/debug/arm64/udtRootListController.m.b4efe98b.o deleted file mode 100644 index e0d5f1d..0000000 Binary files a/.theos/obj/debug/arm64/udtRootListController.m.b4efe98b.o and /dev/null differ diff --git a/.theos/packages/com.mpg13.undertime-1.3.1 b/.theos/packages/com.mpg13.undertime-1.3.1 index 56a6051..bf0d87a 100644 --- a/.theos/packages/com.mpg13.undertime-1.3.1 +++ b/.theos/packages/com.mpg13.undertime-1.3.1 @@ -1 +1 @@ -1 \ No newline at end of file +4 \ No newline at end of file diff --git a/.theos/packages/com.mpg13.undertime-1.4 b/.theos/packages/com.mpg13.undertime-1.4 new file mode 100644 index 0000000..1758ddd --- /dev/null +++ b/.theos/packages/com.mpg13.undertime-1.4 @@ -0,0 +1 @@ +32 \ No newline at end of file diff --git a/Makefile b/Makefile index 5a73cb0..77fc46c 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ include $(THEOS)/makefiles/common.mk TWEAK_NAME = UnderTime UnderTime_FILES = Tweak.xm +UnderTime_FRAMEWORKS = UIKit include $(THEOS_MAKE_PATH)/tweak.mk diff --git a/Tweak.xm b/Tweak.xm index e8fb3c4..ff9865b 100644 --- a/Tweak.xm +++ b/Tweak.xm @@ -9,17 +9,20 @@ @end int sizeOfFont = GetPrefInt(@"sizeOfFont"); - + +NSString *lineTwo = GetPrefString(@"lineTwo"); +NSString *lineOne = GetPrefString(@"lineOne"); +NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; + %hook _UIStatusBarStringView - (void)setText:(NSString *)text { - if(GetPrefBool(@"Enable") && ![text containsString:@"%"] && ![text containsString:@"1x"] && ![text containsString:@"LTE"] && ![text containsString:@"4G"] && ![text containsString:@"3G"] && ![text containsString:@"2G"]) { - NSString *lineTwo = GetPrefString(@"lineTwo"); - NSString *lineOne = GetPrefString(@"lineOne"); + if(GetPrefBool(@"Enable") && ![text containsString:@"%"] && ![text containsString:@"1x"] && ![text containsString:@"LTE"] && ![text containsString:@"4G"] && ![text containsString:@"3G"] && ![text containsString:@"2G"] && ![text containsString:@"EDGE"]) { + NSString *timeLineTwo = lineTwo; NSString *timeLineOne = lineOne; - NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; + NSDate *now = [NSDate date]; if(!GetPrefBool(@"lineTwoStandard")){ [dateFormatter setDateFormat:lineTwo]; @@ -56,23 +59,38 @@ int sizeOfFont = GetPrefInt(@"sizeOfFont"); %end -@interface _UIStatusBarTimeItem +@interface _UIStatusBarTimeItem : UIView @property (copy) _UIStatusBarStringView *shortTimeView; @property (copy) _UIStatusBarStringView *pillTimeView; +@property (nonatomic, retain) NSTimer *nz9_seconds_timer; @end - + %hook _UIStatusBarTimeItem +%property (nonatomic, retain) NSTimer *nz9_seconds_timer; + +- (instancetype)init { + %orig; + if(GetPrefBool(@"Enable") && ((!GetPrefBool(@"lineTwoStandard") && [lineTwo containsString:@"s"]) || (!GetPrefBool(@"lineOneStandard") && [lineOne containsString:@"s"]))) { + self.nz9_seconds_timer = [NSTimer scheduledTimerWithTimeInterval:1.0 repeats:YES block:^(NSTimer *timer) { + self.shortTimeView.text = @":"; + self.pillTimeView.text = @":"; + [self.shortTimeView setFont: [self.shortTimeView.font fontWithSize:sizeOfFont]]; + [self.pillTimeView setFont: [self.pillTimeView.font fontWithSize:sizeOfFont]]; + }]; +} + return self; +} + - (id)applyUpdate:(id)arg1 toDisplayItem:(id)arg2 { id returnThis = %orig; - if(GetPrefBool(@"Enable")) { - [self.shortTimeView setFont: [self.shortTimeView.font fontWithSize:sizeOfFont]]; - [self.pillTimeView setFont: [self.pillTimeView.font fontWithSize:sizeOfFont]]; - } + [self.shortTimeView setFont: [self.shortTimeView.font fontWithSize:sizeOfFont]]; + [self.pillTimeView setFont: [self.pillTimeView.font fontWithSize:sizeOfFont]]; return returnThis; } %end + @interface _UIStatusBarBackgroundActivityView : UIView @property (copy) CALayer *pulseLayer; @end @@ -88,6 +106,20 @@ int sizeOfFont = GetPrefInt(@"sizeOfFont"); } } +%end +%hook _UIStatusBarIndicatorLocationItem + +- (id)applyUpdate:(id)arg1 toDisplayItem:(id)arg2 { + return nil; +} %end + +%ctor { + dateFormatter = [[NSDateFormatter alloc] init]; + dateFormatter.dateStyle = NSDateFormatterNoStyle; + dateFormatter.timeStyle = NSDateFormatterMediumStyle; + dateFormatter.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"]; + %init; +} diff --git a/UnderTime.plist b/UnderTime.plist index dec8769..9d69de7 100644 --- a/UnderTime.plist +++ b/UnderTime.plist @@ -1,5 +1,6 @@ { - Filter = { - Classes = ( "_UIStatusBarStringView", "_UIStatusBarTimeItem", "_UIStatusBarNavigationItem" ); - }; + Filter = { + Classes = ( "_UIStatusBarStringView", "_UIStatusBarTimeItem", "_UIStatusBarNavigationItem" ); + Bundles = ( "com.apple.UIKit" ); + }; } diff --git a/control b/control index 4eac046..6ae7332 100644 --- a/control +++ b/control @@ -1,7 +1,7 @@ Package: com.mpg13.undertime Name: UnderTime Depends: mobilesubstrate -Version: 1.3.1 +Version: 1.4 Architecture: iphoneos-arm Description: Customizable date under time in iX StatusBar. Homepage: https://mpg13.github.io diff --git a/packages/com.mpg13.undertime_1.3.1-2+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3.1-2+debug_iphoneos-arm.deb new file mode 100644 index 0000000..9ae125c Binary files /dev/null and b/packages/com.mpg13.undertime_1.3.1-2+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3.1-3+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3.1-3+debug_iphoneos-arm.deb new file mode 100644 index 0000000..d62c01a Binary files /dev/null and b/packages/com.mpg13.undertime_1.3.1-3+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3.1-4+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3.1-4+debug_iphoneos-arm.deb new file mode 100644 index 0000000..47a2701 Binary files /dev/null and b/packages/com.mpg13.undertime_1.3.1-4+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-1+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-1+debug_iphoneos-arm.deb new file mode 100644 index 0000000..e1c363f Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-1+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-10+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-10+debug_iphoneos-arm.deb new file mode 100644 index 0000000..82b18e3 Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-10+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-11+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-11+debug_iphoneos-arm.deb new file mode 100644 index 0000000..371c07d Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-11+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-12+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-12+debug_iphoneos-arm.deb new file mode 100644 index 0000000..7bb2d8a Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-12+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-13+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-13+debug_iphoneos-arm.deb new file mode 100644 index 0000000..25cdf1e Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-13+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-14+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-14+debug_iphoneos-arm.deb new file mode 100644 index 0000000..755b46f Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-14+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-15+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-15+debug_iphoneos-arm.deb new file mode 100644 index 0000000..30b2a26 Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-15+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-16+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-16+debug_iphoneos-arm.deb new file mode 100644 index 0000000..b47e19f Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-16+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-17+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-17+debug_iphoneos-arm.deb new file mode 100644 index 0000000..8787f7c Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-17+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-18+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-18+debug_iphoneos-arm.deb new file mode 100644 index 0000000..3811c15 Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-18+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-19+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-19+debug_iphoneos-arm.deb new file mode 100644 index 0000000..59a05a0 Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-19+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-2+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-2+debug_iphoneos-arm.deb new file mode 100644 index 0000000..6b654b2 Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-2+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-20+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-20+debug_iphoneos-arm.deb new file mode 100644 index 0000000..cb18118 Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-20+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-21+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-21+debug_iphoneos-arm.deb new file mode 100644 index 0000000..678c3ab Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-21+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-22+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-22+debug_iphoneos-arm.deb new file mode 100644 index 0000000..0c138f1 Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-22+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-23+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-23+debug_iphoneos-arm.deb new file mode 100644 index 0000000..99ded0a Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-23+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-24+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-24+debug_iphoneos-arm.deb new file mode 100644 index 0000000..a77e1fe Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-24+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-25+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-25+debug_iphoneos-arm.deb new file mode 100644 index 0000000..bc1a67b Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-25+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-26+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-26+debug_iphoneos-arm.deb new file mode 100644 index 0000000..6ae5ba2 Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-26+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-27+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-27+debug_iphoneos-arm.deb new file mode 100644 index 0000000..d308661 Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-27+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-28+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-28+debug_iphoneos-arm.deb new file mode 100644 index 0000000..202fa8f Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-28+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-29+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-29+debug_iphoneos-arm.deb new file mode 100644 index 0000000..823562a Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-29+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-3+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-3+debug_iphoneos-arm.deb new file mode 100644 index 0000000..1369f17 Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-3+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-30+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-30+debug_iphoneos-arm.deb new file mode 100644 index 0000000..c31ac98 Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-30+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-31+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-31+debug_iphoneos-arm.deb new file mode 100644 index 0000000..d77393b Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-31+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-32+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-32+debug_iphoneos-arm.deb new file mode 100644 index 0000000..4c20fe4 Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-32+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-4+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-4+debug_iphoneos-arm.deb new file mode 100644 index 0000000..0ebc229 Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-4+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-5+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-5+debug_iphoneos-arm.deb new file mode 100644 index 0000000..fe1ded6 Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-5+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-6+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-6+debug_iphoneos-arm.deb new file mode 100644 index 0000000..c545afc Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-6+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-7+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-7+debug_iphoneos-arm.deb new file mode 100644 index 0000000..32704fa Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-7+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-8+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-8+debug_iphoneos-arm.deb new file mode 100644 index 0000000..53d89c8 Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-8+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.4-9+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.4-9+debug_iphoneos-arm.deb new file mode 100644 index 0000000..6fef959 Binary files /dev/null and b/packages/com.mpg13.undertime_1.4-9+debug_iphoneos-arm.deb differ diff --git a/undertime/Resources/Root.plist b/undertime/Resources/Root.plist index fbb30d2..5ee1c85 100644 --- a/undertime/Resources/Root.plist +++ b/undertime/Resources/Root.plist @@ -24,6 +24,18 @@ label Enable tweak + + cell + PSSwitchCell + default + + defaults + com.mpg13.undertime + key + hideLocInd + label + Hide Location Indicator + cell @@ -116,6 +128,12 @@ label Use nsdateformatter.com to help you format your date! + + cell + PSGroupCell + label + Seconds will not update on the lockscreen! + cell @@ -164,7 +182,7 @@ cell PSGroupCell label - Developed partially by MPG13 | Forked from NeinZedd's "DateUnderTimeX" + Developed partially by MPG13 | Forked from NeinZedd's "DateUnderTimeX" and "SecondsInTimeX". Thanks NZ9! title