diff --git a/.theos/_/DEBIAN/control b/.theos/_/DEBIAN/control index 1fc8401..fd1a838 100644 --- a/.theos/_/DEBIAN/control +++ b/.theos/_/DEBIAN/control @@ -6,5 +6,5 @@ Description: Customizable date under time in iX StatusBar. Maintainer: MPG13 Author: MPG13 Section: Tweaks -Version: 1.2-29+debug +Version: 1.2-38+debug Installed-Size: 188 diff --git a/.theos/_/Library/MobileSubstrate/DynamicLibraries/UnderTime.dylib b/.theos/_/Library/MobileSubstrate/DynamicLibraries/UnderTime.dylib index edeba12..9629f54 100755 Binary files a/.theos/_/Library/MobileSubstrate/DynamicLibraries/UnderTime.dylib and b/.theos/_/Library/MobileSubstrate/DynamicLibraries/UnderTime.dylib differ diff --git a/.theos/_/Library/PreferenceBundles/UnderTime.bundle/Info.plist b/.theos/_/Library/PreferenceBundles/UnderTime.bundle/Info.plist index cd0ea7e..1146527 100644 --- a/.theos/_/Library/PreferenceBundles/UnderTime.bundle/Info.plist +++ b/.theos/_/Library/PreferenceBundles/UnderTime.bundle/Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable UnderTime CFBundleIdentifier - com.mpg13.UnderTime + com.mpg13.undertime CFBundleInfoDictionaryVersion 6.0 CFBundlePackageType @@ -19,6 +19,6 @@ CFBundleVersion 1.0 NSPrincipalClass - UnderTimeRootListController + udtRootListController diff --git a/.theos/_/Library/PreferenceBundles/UnderTime.bundle/Root.plist b/.theos/_/Library/PreferenceBundles/UnderTime.bundle/Root.plist index a6371d4..54cca89 100644 --- a/.theos/_/Library/PreferenceBundles/UnderTime.bundle/Root.plist +++ b/.theos/_/Library/PreferenceBundles/UnderTime.bundle/Root.plist @@ -4,64 +4,49 @@ items - + cell PSGroupCell - footerCellClass - UnderTimeCustomCell + label + UnderTime Settings - - cell - PSGroupCell - - + cell PSSwitchCell default - + defaults - com.mpg13.UnderTime + com.mpg13.undertime key Enable label - Enable + Enable tweak + cell PSEditTextCell default d/M defaults - com.mpg13.UnderTime + com.mpg13.undertime key dformat - showValue - - + cell PSGroupCell + label + Forked from NeinZedd's "DateUnderTimeX". Thank him for his work! - + cell PSGroupCell -footerText -Updated by /u/-mpg13- || Original code by /u/NeinZedd9 -footerAlignment -1 + label + Use nsdateformatter.com to help you format your date! - -action -respring -height -38 -cell -PSButtonCell -label -Respring - title - + UnderTime diff --git a/.theos/_/Library/PreferenceBundles/UnderTime.bundle/UnderTime b/.theos/_/Library/PreferenceBundles/UnderTime.bundle/UnderTime index d1f11ce..907a97c 100755 Binary files a/.theos/_/Library/PreferenceBundles/UnderTime.bundle/UnderTime and b/.theos/_/Library/PreferenceBundles/UnderTime.bundle/UnderTime differ diff --git a/.theos/_/Library/PreferenceLoader/Preferences/UnderTime.plist b/.theos/_/Library/PreferenceLoader/Preferences/UnderTime.plist index fdbc75a..79329c4 100644 --- a/.theos/_/Library/PreferenceLoader/Preferences/UnderTime.plist +++ b/.theos/_/Library/PreferenceLoader/Preferences/UnderTime.plist @@ -9,7 +9,7 @@ cell PSLinkCell detail - UnderTimeRootListController + udtRootListController icon icon.png isController diff --git a/.theos/last_package b/.theos/last_package index a48e42f..919e02c 100644 --- a/.theos/last_package +++ b/.theos/last_package @@ -1 +1 @@ -./packages/com.mpg13.undertime_1.2-29+debug_iphoneos-arm.deb +./packages/com.mpg13.undertime_1.2-38+debug_iphoneos-arm.deb diff --git a/.theos/obj/debug/UnderTime.bundle/Info.plist b/.theos/obj/debug/UnderTime.bundle/Info.plist index cd0ea7e..1146527 100644 --- a/.theos/obj/debug/UnderTime.bundle/Info.plist +++ b/.theos/obj/debug/UnderTime.bundle/Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable UnderTime CFBundleIdentifier - com.mpg13.UnderTime + com.mpg13.undertime CFBundleInfoDictionaryVersion 6.0 CFBundlePackageType @@ -19,6 +19,6 @@ CFBundleVersion 1.0 NSPrincipalClass - UnderTimeRootListController + udtRootListController diff --git a/.theos/obj/debug/UnderTime.bundle/Root.plist b/.theos/obj/debug/UnderTime.bundle/Root.plist index a6371d4..54cca89 100644 --- a/.theos/obj/debug/UnderTime.bundle/Root.plist +++ b/.theos/obj/debug/UnderTime.bundle/Root.plist @@ -4,64 +4,49 @@ items - + cell PSGroupCell - footerCellClass - UnderTimeCustomCell + label + UnderTime Settings - - cell - PSGroupCell - - + cell PSSwitchCell default - + defaults - com.mpg13.UnderTime + com.mpg13.undertime key Enable label - Enable + Enable tweak + cell PSEditTextCell default d/M defaults - com.mpg13.UnderTime + com.mpg13.undertime key dformat - showValue - - + cell PSGroupCell + label + Forked from NeinZedd's "DateUnderTimeX". Thank him for his work! - + cell PSGroupCell -footerText -Updated by /u/-mpg13- || Original code by /u/NeinZedd9 -footerAlignment -1 + label + Use nsdateformatter.com to help you format your date! - -action -respring -height -38 -cell -PSButtonCell -label -Respring - title - + UnderTime diff --git a/.theos/obj/debug/UnderTime.bundle/UnderTime b/.theos/obj/debug/UnderTime.bundle/UnderTime index d1f11ce..907a97c 100755 Binary files a/.theos/obj/debug/UnderTime.bundle/UnderTime and b/.theos/obj/debug/UnderTime.bundle/UnderTime differ diff --git a/.theos/obj/debug/UnderTime.dylib b/.theos/obj/debug/UnderTime.dylib index edeba12..9629f54 100755 Binary files a/.theos/obj/debug/UnderTime.dylib and b/.theos/obj/debug/UnderTime.dylib differ diff --git a/.theos/obj/debug/arm64/Tweak.xm.mm b/.theos/obj/debug/arm64/Tweak.xm.mm index b5550b9..dbd35fc 100644 --- a/.theos/obj/debug/arm64/Tweak.xm.mm +++ b/.theos/obj/debug/arm64/Tweak.xm.mm @@ -29,7 +29,7 @@ #define _LOGOS_RETURN_RETAINED #endif -@class _UIStatusBarBackgroundActivityView; @class _UIStatusBarStringView; @class _UIStatusBarTimeItem; +@class _UIStatusBarStringView; @class _UIStatusBarBackgroundActivityView; @class _UIStatusBarTimeItem; 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 10 "Tweak.xm" @@ -39,8 +39,7 @@ static void _logos_method$_ungrouped$_UIStatusBarStringView$setText$(_LOGOS_SELF if([text containsString:@":"]) { _logos_orig$_ungrouped$_UIStatusBarStringView$setText$(self, _cmd, text); if(GetPrefBool(@"Enable")) { - NSString *key = @"key"; - NSString *dformat = [[NSDictionary dictionaryWithContentsOfFile:@"/var/mobile/Library/Preferences/com.mpg13.UnderTime.plist"] valueForKey:key]; + NSString *dformat = GetPrefString(@"dformat"); NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:dformat]; @@ -101,4 +100,4 @@ static void _logos_method$_ungrouped$_UIStatusBarBackgroundActivityView$setCente 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 76 "Tweak.xm" +#line 75 "Tweak.xm" diff --git a/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime b/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime index e73e742..cca8a1d 100755 Binary files a/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime and b/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime differ 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 index 0f02694..df8ae0b 100644 Binary files a/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime.dSYM/Contents/Resources/DWARF/UnderTime and b/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime.dSYM/Contents/Resources/DWARF/UnderTime differ diff --git a/.theos/obj/debug/arm64/UnderTime.dylib b/.theos/obj/debug/arm64/UnderTime.dylib index 0dea8a6..5a9c07f 100755 Binary files a/.theos/obj/debug/arm64/UnderTime.dylib and b/.theos/obj/debug/arm64/UnderTime.dylib differ 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 index ba89276..334a866 100644 Binary files a/.theos/obj/debug/arm64/UnderTime.dylib.dSYM/Contents/Resources/DWARF/UnderTime.dylib and b/.theos/obj/debug/arm64/UnderTime.dylib.dSYM/Contents/Resources/DWARF/UnderTime.dylib differ diff --git a/.theos/packages/com.mpg13.undertime-1.2 b/.theos/packages/com.mpg13.undertime-1.2 index d99e90e..c24b6ae 100644 --- a/.theos/packages/com.mpg13.undertime-1.2 +++ b/.theos/packages/com.mpg13.undertime-1.2 @@ -1 +1 @@ -29 \ No newline at end of file +38 \ No newline at end of file diff --git a/Makefile b/Makefile index 1c4109e..5a73cb0 100644 --- a/Makefile +++ b/Makefile @@ -10,5 +10,5 @@ include $(THEOS_MAKE_PATH)/tweak.mk after-install:: install.exec "killall -9 SpringBoard" -SUBPROJECTS += UnderTime +SUBPROJECTS += undertime include $(THEOS_MAKE_PATH)/aggregate.mk diff --git a/README.md b/README.md deleted file mode 100644 index 19cee1c..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# DateUnderTimeX -Adds today's date under the time on the iPhone X. diff --git a/Tweak.xm b/Tweak.xm index 032940b..cd315ff 100644 --- a/Tweak.xm +++ b/Tweak.xm @@ -13,8 +13,7 @@ if([text containsString:@":"]) { %orig; if(GetPrefBool(@"Enable")) { - NSString *key = @"key"; - NSString *dformat = [[NSDictionary dictionaryWithContentsOfFile:@"/var/mobile/Library/Preferences/com.mpg13.UnderTime.plist"] valueForKey:key]; + NSString *dformat = GetPrefString(@"dformat"); NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; // dateFormatter.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"]; [dateFormatter setDateFormat:dformat]; diff --git a/UnderTime/Resources/Root.plist b/UnderTime/Resources/Root.plist deleted file mode 100644 index a6371d4..0000000 --- a/UnderTime/Resources/Root.plist +++ /dev/null @@ -1,67 +0,0 @@ - - - - - items - - - cell - PSGroupCell - footerCellClass - UnderTimeCustomCell - - - cell - PSGroupCell - - - cell - PSSwitchCell - default - - defaults - com.mpg13.UnderTime - key - Enable - label - Enable - - - cell - PSEditTextCell - default - d/M - defaults - com.mpg13.UnderTime - key - dformat - showValue - - - - cell - PSGroupCell - - - cell - PSGroupCell -footerText -Updated by /u/-mpg13- || Original code by /u/NeinZedd9 -footerAlignment -1 - - -action -respring -height -38 -cell -PSButtonCell -label -Respring - - - title - - - diff --git a/UnderTime/UnderTimeRootListController.h b/UnderTime/UnderTimeRootListController.h deleted file mode 100644 index 0aec044..0000000 --- a/UnderTime/UnderTimeRootListController.h +++ /dev/null @@ -1,5 +0,0 @@ -#import - -@interface UnderTimeRootListController : PSListController - -@end diff --git a/UnderTime/UnderTimeRootListController.m b/UnderTime/UnderTimeRootListController.m deleted file mode 100644 index face601..0000000 --- a/UnderTime/UnderTimeRootListController.m +++ /dev/null @@ -1,76 +0,0 @@ -#include "UnderTimeRootListController.h" -#import - - - -@protocol PreferencesTableCustomView -- (id)initWithSpecifier:(id)arg1; - -@optional -- (CGFloat)preferredHeightForWidth:(CGFloat)arg1; -- (CGFloat)preferredHeightForWidth:(CGFloat)arg1 inTableView:(id)arg2; -@end - -@interface UnderTimeCustomCell : UITableViewCell { - UILabel *label; - UILabel *underLabel; -} -@end - - -@implementation UnderTimeCustomCell - -- (id)initWithSpecifier:(PSSpecifier *)specifier -{ - self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Cell"]; - if (self) { - - #define kWidth [[UIApplication sharedApplication] keyWindow].frame.size.width - CGRect labelFrame = CGRectMake(0, -15, kWidth, 70); - CGRect underLabelFrame = CGRectMake(0, 22, kWidth, 70); - -label = [[UILabel alloc] initWithFrame:labelFrame]; - [label setNumberOfLines:1]; - label.font = [UIFont fontWithName:@"HelveticaNeue" size:30]; - [label setText:@"UnderTime"]; - [label setBackgroundColor:[UIColor clearColor]]; - label.textColor = [UIColor blackColor]; - label.textAlignment = NSTextAlignmentCenter; - -underLabel = [[UILabel alloc] initWithFrame:underLabelFrame]; - [underLabel setNumberOfLines:1]; - underLabel.font = [UIFont fontWithName:@"HelveticaNeue-Light" size:0]; - [underLabel setText:@"Nevermind this"]; - [underLabel setBackgroundColor:[UIColor clearColor]]; - underLabel.textColor = [UIColor clearColor]; - underLabel.textAlignment = NSTextAlignmentRight; - - [self addSubview:label]; - [self addSubview:underLabel]; - } - return self; -} -- (CGFloat)preferredHeightForWidth:(CGFloat)arg1 { - CGFloat prefHeight = 75.0; - return prefHeight; -} -@end - - -@implementation UnderTimeRootListController -- (NSArray *)specifiers { - if (!_specifiers) { - _specifiers = [[self loadSpecifiersFromPlistName:@"Root" target:self] retain]; - } - - return _specifiers; -} - --(void) respring { -pid_t pid; -int status; -const char* args[] = {"killall", "-9", "backboardd", NULL}; -posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)args, NULL); -waitpid(pid, &status, WEXITED); -} -@end diff --git a/control b/control index 2ec7269..a523347 100644 --- a/control +++ b/control @@ -1,7 +1,7 @@ Package: com.mpg13.undertime Name: UnderTime Depends: mobilesubstrate -Version: 1.2 +Version: 1.1 Architecture: iphoneos-arm Description: Customizable date under time in iX StatusBar. Maintainer: MPG13 diff --git a/i8corners/.theos/build_session b/i8corners/.theos/build_session deleted file mode 100644 index e69de29..0000000 diff --git a/i8corners/.theos/obj/debug/.stamp b/i8corners/.theos/obj/debug/.stamp deleted file mode 100644 index e69de29..0000000 diff --git a/i8corners/.theos/obj/debug/arm64/Tweak.xm.9d552d4c.Td b/i8corners/.theos/obj/debug/arm64/Tweak.xm.9d552d4c.Td deleted file mode 100644 index f561f1a..0000000 --- a/i8corners/.theos/obj/debug/arm64/Tweak.xm.9d552d4c.Td +++ /dev/null @@ -1,17 +0,0 @@ -/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/arm64/Tweak.xm.9d552d4c.o: \ - /home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/arm64/Tweak.xm.mm \ - /home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch \ - /home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h \ - /home/mpg13/DateUnderTimeX/i8corners/Bits.h \ - /home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/substrate.h - -/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch: - -/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h: - -/home/mpg13/DateUnderTimeX/i8corners/Bits.h: - -/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/substrate.h: diff --git a/i8corners/.theos/obj/debug/arm64/Tweak.xm.9d552d4c.o b/i8corners/.theos/obj/debug/arm64/Tweak.xm.9d552d4c.o deleted file mode 100644 index 17d3ef1..0000000 Binary files a/i8corners/.theos/obj/debug/arm64/Tweak.xm.9d552d4c.o and /dev/null differ diff --git a/i8corners/.theos/obj/debug/arm64/i8Corners.bundle/i8Corners b/i8corners/.theos/obj/debug/arm64/i8Corners.bundle/i8Corners deleted file mode 100755 index 7d45086..0000000 Binary files a/i8corners/.theos/obj/debug/arm64/i8Corners.bundle/i8Corners and /dev/null differ diff --git a/i8corners/.theos/obj/debug/arm64/i8Corners.bundle/i8Corners.dSYM/Contents/Info.plist b/i8corners/.theos/obj/debug/arm64/i8Corners.bundle/i8Corners.dSYM/Contents/Info.plist deleted file mode 100644 index 0dee963..0000000 --- a/i8corners/.theos/obj/debug/arm64/i8Corners.bundle/i8Corners.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.i8Corners - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/i8corners/.theos/obj/debug/arm64/i8Corners.bundle/i8Corners.dSYM/Contents/Resources/DWARF/i8Corners b/i8corners/.theos/obj/debug/arm64/i8Corners.bundle/i8Corners.dSYM/Contents/Resources/DWARF/i8Corners deleted file mode 100644 index fca3495..0000000 Binary files a/i8corners/.theos/obj/debug/arm64/i8Corners.bundle/i8Corners.dSYM/Contents/Resources/DWARF/i8Corners and /dev/null differ diff --git a/i8corners/.theos/obj/debug/arm64/i8Corners.dylib b/i8corners/.theos/obj/debug/arm64/i8Corners.dylib deleted file mode 100755 index 0879623..0000000 Binary files a/i8corners/.theos/obj/debug/arm64/i8Corners.dylib and /dev/null differ diff --git a/i8corners/.theos/obj/debug/arm64/i8Corners.dylib.dSYM/Contents/Info.plist b/i8corners/.theos/obj/debug/arm64/i8Corners.dylib.dSYM/Contents/Info.plist deleted file mode 100644 index cd3b526..0000000 --- a/i8corners/.theos/obj/debug/arm64/i8Corners.dylib.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.i8Corners.dylib - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/i8corners/.theos/obj/debug/arm64/i8Corners.dylib.dSYM/Contents/Resources/DWARF/i8Corners.dylib b/i8corners/.theos/obj/debug/arm64/i8Corners.dylib.dSYM/Contents/Resources/DWARF/i8Corners.dylib deleted file mode 100644 index 7e53aa5..0000000 Binary files a/i8corners/.theos/obj/debug/arm64/i8Corners.dylib.dSYM/Contents/Resources/DWARF/i8Corners.dylib and /dev/null differ diff --git a/i8corners/.theos/obj/debug/arm64/i8CornersRootListController.m.52999d91.Td b/i8corners/.theos/obj/debug/arm64/i8CornersRootListController.m.52999d91.Td deleted file mode 100644 index 2857161..0000000 --- a/i8corners/.theos/obj/debug/arm64/i8CornersRootListController.m.52999d91.Td +++ /dev/null @@ -1,20 +0,0 @@ -/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/arm64/i8CornersRootListController.m.52999d91.o: \ - i8CornersRootListController.m \ - /home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch \ - /home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h \ - i8CornersRootListController.h \ - /home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSListController.h \ - /home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSViewController.h - -/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch: - -/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h: - -i8CornersRootListController.h: - -/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSListController.h: - -/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSViewController.h: diff --git a/i8corners/.theos/obj/debug/arm64/i8CornersRootListController.m.52999d91.o b/i8corners/.theos/obj/debug/arm64/i8CornersRootListController.m.52999d91.o deleted file mode 100644 index e22751d..0000000 Binary files a/i8corners/.theos/obj/debug/arm64/i8CornersRootListController.m.52999d91.o and /dev/null differ diff --git a/i8corners/.theos/obj/debug/armv7/Tweak.xm.6b919789.Td b/i8corners/.theos/obj/debug/armv7/Tweak.xm.6b919789.Td deleted file mode 100644 index 11f55f6..0000000 --- a/i8corners/.theos/obj/debug/armv7/Tweak.xm.6b919789.Td +++ /dev/null @@ -1,17 +0,0 @@ -/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/armv7/Tweak.xm.6b919789.o: \ - /home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/armv7/Tweak.xm.mm \ - /home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch \ - /home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h \ - /home/mpg13/DateUnderTimeX/i8corners/Bits.h \ - /home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/substrate.h - -/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch: - -/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h: - -/home/mpg13/DateUnderTimeX/i8corners/Bits.h: - -/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/substrate.h: diff --git a/i8corners/.theos/obj/debug/armv7/Tweak.xm.6b919789.o b/i8corners/.theos/obj/debug/armv7/Tweak.xm.6b919789.o deleted file mode 100644 index 2c696e5..0000000 Binary files a/i8corners/.theos/obj/debug/armv7/Tweak.xm.6b919789.o and /dev/null differ diff --git a/i8corners/.theos/obj/debug/armv7/i8Corners.dylib b/i8corners/.theos/obj/debug/armv7/i8Corners.dylib deleted file mode 100755 index 4e275b9..0000000 Binary files a/i8corners/.theos/obj/debug/armv7/i8Corners.dylib and /dev/null differ diff --git a/i8corners/.theos/obj/debug/armv7/i8Corners.dylib.dSYM/Contents/Info.plist b/i8corners/.theos/obj/debug/armv7/i8Corners.dylib.dSYM/Contents/Info.plist deleted file mode 100644 index cd3b526..0000000 --- a/i8corners/.theos/obj/debug/armv7/i8Corners.dylib.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.i8Corners.dylib - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/i8corners/.theos/obj/debug/armv7/i8Corners.dylib.dSYM/Contents/Resources/DWARF/i8Corners.dylib b/i8corners/.theos/obj/debug/armv7/i8Corners.dylib.dSYM/Contents/Resources/DWARF/i8Corners.dylib deleted file mode 100644 index ae06f64..0000000 Binary files a/i8corners/.theos/obj/debug/armv7/i8Corners.dylib.dSYM/Contents/Resources/DWARF/i8Corners.dylib and /dev/null differ diff --git a/i8corners/.theos/obj/debug/armv7/i8CornersRootListController.m.c23f7bb4.Td b/i8corners/.theos/obj/debug/armv7/i8CornersRootListController.m.c23f7bb4.Td deleted file mode 100644 index d1a454c..0000000 --- a/i8corners/.theos/obj/debug/armv7/i8CornersRootListController.m.c23f7bb4.Td +++ /dev/null @@ -1,20 +0,0 @@ -/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/armv7/i8CornersRootListController.m.c23f7bb4.o: \ - i8CornersRootListController.m \ - /home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch \ - /home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h \ - i8CornersRootListController.h \ - /home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSListController.h \ - /home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSViewController.h - -/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch: - -/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h: - -i8CornersRootListController.h: - -/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSListController.h: - -/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSViewController.h: diff --git a/i8corners/.theos/obj/debug/armv7/i8CornersRootListController.m.c23f7bb4.o b/i8corners/.theos/obj/debug/armv7/i8CornersRootListController.m.c23f7bb4.o deleted file mode 100644 index 5913229..0000000 Binary files a/i8corners/.theos/obj/debug/armv7/i8CornersRootListController.m.c23f7bb4.o and /dev/null differ diff --git a/i8corners/.theos/obj/debug/armv7s/Tweak.xm.367a5aa9.Td b/i8corners/.theos/obj/debug/armv7s/Tweak.xm.367a5aa9.Td deleted file mode 100644 index 1324b6e..0000000 --- a/i8corners/.theos/obj/debug/armv7s/Tweak.xm.367a5aa9.Td +++ /dev/null @@ -1,17 +0,0 @@ -/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/armv7s/Tweak.xm.367a5aa9.o: \ - /home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/armv7s/Tweak.xm.mm \ - /home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch \ - /home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h \ - /home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h \ - /home/mpg13/DateUnderTimeX/i8corners/Bits.h \ - /home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/substrate.h - -/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch: - -/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h: - -/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h: - -/home/mpg13/DateUnderTimeX/i8corners/Bits.h: - -/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/substrate.h: diff --git a/i8corners/.theos/obj/debug/armv7s/Tweak.xm.367a5aa9.o b/i8corners/.theos/obj/debug/armv7s/Tweak.xm.367a5aa9.o deleted file mode 100644 index 74dfffb..0000000 Binary files a/i8corners/.theos/obj/debug/armv7s/Tweak.xm.367a5aa9.o and /dev/null differ diff --git a/i8corners/.theos/obj/debug/armv7s/i8Corners.dylib b/i8corners/.theos/obj/debug/armv7s/i8Corners.dylib deleted file mode 100755 index fbd4f96..0000000 Binary files a/i8corners/.theos/obj/debug/armv7s/i8Corners.dylib and /dev/null differ diff --git a/i8corners/.theos/obj/debug/armv7s/i8Corners.dylib.dSYM/Contents/Info.plist b/i8corners/.theos/obj/debug/armv7s/i8Corners.dylib.dSYM/Contents/Info.plist deleted file mode 100644 index cd3b526..0000000 --- a/i8corners/.theos/obj/debug/armv7s/i8Corners.dylib.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.i8Corners.dylib - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/i8corners/.theos/obj/debug/armv7s/i8Corners.dylib.dSYM/Contents/Resources/DWARF/i8Corners.dylib b/i8corners/.theos/obj/debug/armv7s/i8Corners.dylib.dSYM/Contents/Resources/DWARF/i8Corners.dylib deleted file mode 100644 index fd1a16a..0000000 Binary files a/i8corners/.theos/obj/debug/armv7s/i8Corners.dylib.dSYM/Contents/Resources/DWARF/i8Corners.dylib and /dev/null differ diff --git a/i8corners/.theos/obj/debug/i8Corners.bundle/Info.plist b/i8corners/.theos/obj/debug/i8Corners.bundle/Info.plist deleted file mode 100644 index 4da7269..0000000 --- a/i8corners/.theos/obj/debug/i8Corners.bundle/Info.plist +++ /dev/null @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - i8Corners - CFBundleIdentifier - com.antique.i8corners - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - NSPrincipalClass - i8CornersRootListController - - diff --git a/i8corners/.theos/obj/debug/i8Corners.bundle/Root.plist b/i8corners/.theos/obj/debug/i8Corners.bundle/Root.plist deleted file mode 100644 index 7d04f67..0000000 --- a/i8corners/.theos/obj/debug/i8Corners.bundle/Root.plist +++ /dev/null @@ -1,71 +0,0 @@ - - - - - items - - - cell - PSGroupCell - footerCellClass - i8CornersCustomCell - - - cell - PSGroupCell - - - cell - PSSwitchCell - default - - defaults - com.antique.i8corners - key - Enable - label - Enable - - - cell - PSSliderCell - default - 0 - defaults - com.antique.i8corners - key - cRadius - max - 15 - min - 0 - showValue - - - - cell - PSGroupCell - - - cell - PSGroupCell -footerText -Developed by @Antique_Dev © 2017. All Rights Reserved -footerAlignment -1 - - -action -respring -height -38 -cell -PSButtonCell -label -Respring - - - title - - - diff --git a/i8corners/.theos/obj/debug/i8Corners.bundle/icon@2x.png b/i8corners/.theos/obj/debug/i8Corners.bundle/icon@2x.png deleted file mode 100644 index 717b486..0000000 Binary files a/i8corners/.theos/obj/debug/i8Corners.bundle/icon@2x.png and /dev/null differ diff --git a/i8corners/.theos/obj/debug/i8Corners.dylib b/i8corners/.theos/obj/debug/i8Corners.dylib deleted file mode 100755 index de495e3..0000000 Binary files a/i8corners/.theos/obj/debug/i8Corners.dylib and /dev/null differ diff --git a/i8corners/Bits.h b/i8corners/Bits.h deleted file mode 100644 index e35b494..0000000 --- a/i8corners/Bits.h +++ /dev/null @@ -1,11 +0,0 @@ -#define PLIST_PATH @"/var/mobile/Library/Preferences/com.antique.i8corners.plist" - - -inline bool GetPrefBool(NSString *key) -{ -return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue]; -} - -inline int GetPrefInt(NSString *key) { - return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] intValue]; -} \ No newline at end of file diff --git a/i8corners/Makefile b/i8corners/Makefile deleted file mode 100644 index f8e9328..0000000 --- a/i8corners/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -ARCHS = arm64 -TARGET = iphone:clang:latest:latest - -include theos/makefiles/common.mk - -TWEAK_NAME = i8Corners -i8Corners_FILES = Tweak.xm -i8Corners_FRAMEWORKS = UIKit - -include $(THEOS_MAKE_PATH)/tweak.mk - -after-install:: - install.exec "killall -9 backboardd" -SUBPROJECTS += i8corners -include $(THEOS_MAKE_PATH)/aggregate.mk diff --git a/i8corners/Tweak.xm b/i8corners/Tweak.xm deleted file mode 100644 index 3339636..0000000 --- a/i8corners/Tweak.xm +++ /dev/null @@ -1,14 +0,0 @@ -#import "Bits.h" - - -%hook UIWindow --(void) layoutSubviews { -%orig; -int radius = GetPrefInt(@"cRadius"); - - -if(GetPrefBool(@"Enable")) { -self.layer.cornerRadius = radius; -} -} -%end \ No newline at end of file diff --git a/i8corners/control b/i8corners/control deleted file mode 100644 index a88f49c..0000000 --- a/i8corners/control +++ /dev/null @@ -1,10 +0,0 @@ -Package: com.antique.i8corners -Name: i8Corners -Depends: mobilesubstrate -Version: 0.12 -Description: iPhone 8 inspired screen corners -Depiction: https://antiquebeta.github.io/i8corners.html -Architecture: iphoneos-arm -Maintainer: Antique -Author: Antique -Section: Tweaks diff --git a/i8corners/i8Corners.plist b/i8corners/i8Corners.plist deleted file mode 100644 index f1f0605..0000000 --- a/i8corners/i8Corners.plist +++ /dev/null @@ -1 +0,0 @@ -{ Filter = { Bundles = ( "com.apple.springboard", "com.apple.UIKit" ); }; } diff --git a/i8corners/i8corners/Makefile b/i8corners/i8corners/Makefile deleted file mode 100644 index 356dac8..0000000 --- a/i8corners/i8corners/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -include $(THEOS)/makefiles/common.mk - -BUNDLE_NAME = i8Corners -i8Corners_FILES = i8CornersRootListController.m -i8Corners_INSTALL_PATH = /Library/PreferenceBundles -i8Corners_FRAMEWORKS = UIKit -i8Corners_PRIVATE_FRAMEWORKS = Preferences - -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/i8Corners.plist$(ECHO_END) diff --git a/i8corners/i8corners/Resources/Info.plist b/i8corners/i8corners/Resources/Info.plist deleted file mode 100644 index 4da7269..0000000 --- a/i8corners/i8corners/Resources/Info.plist +++ /dev/null @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - i8Corners - CFBundleIdentifier - com.antique.i8corners - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - NSPrincipalClass - i8CornersRootListController - - diff --git a/i8corners/i8corners/Resources/Root.plist b/i8corners/i8corners/Resources/Root.plist deleted file mode 100644 index 7d04f67..0000000 --- a/i8corners/i8corners/Resources/Root.plist +++ /dev/null @@ -1,71 +0,0 @@ - - - - - items - - - cell - PSGroupCell - footerCellClass - i8CornersCustomCell - - - cell - PSGroupCell - - - cell - PSSwitchCell - default - - defaults - com.antique.i8corners - key - Enable - label - Enable - - - cell - PSSliderCell - default - 0 - defaults - com.antique.i8corners - key - cRadius - max - 15 - min - 0 - showValue - - - - cell - PSGroupCell - - - cell - PSGroupCell -footerText -Developed by @Antique_Dev © 2017. All Rights Reserved -footerAlignment -1 - - -action -respring -height -38 -cell -PSButtonCell -label -Respring - - - title - - - diff --git a/i8corners/i8corners/Resources/icon@2x.png b/i8corners/i8corners/Resources/icon@2x.png deleted file mode 100644 index 717b486..0000000 Binary files a/i8corners/i8corners/Resources/icon@2x.png and /dev/null differ diff --git a/i8corners/i8corners/entry.plist b/i8corners/i8corners/entry.plist deleted file mode 100644 index d045601..0000000 --- a/i8corners/i8corners/entry.plist +++ /dev/null @@ -1,21 +0,0 @@ - - - - - entry - - bundle - i8Corners - cell - PSLinkCell - detail - i8CornersRootListController - icon - icon.png - isController - - label - i8Corners - - - diff --git a/i8corners/i8corners/i8CornersRootListController.h b/i8corners/i8corners/i8CornersRootListController.h deleted file mode 100644 index d926ec1..0000000 --- a/i8corners/i8corners/i8CornersRootListController.h +++ /dev/null @@ -1,5 +0,0 @@ -#import - -@interface i8CornersRootListController : PSListController - -@end diff --git a/i8corners/i8corners/i8CornersRootListController.m b/i8corners/i8corners/i8CornersRootListController.m deleted file mode 100644 index 75dbee7..0000000 --- a/i8corners/i8corners/i8CornersRootListController.m +++ /dev/null @@ -1,76 +0,0 @@ -#include "i8CornersRootListController.h" -#import - - - -@protocol PreferencesTableCustomView -- (id)initWithSpecifier:(id)arg1; - -@optional -- (CGFloat)preferredHeightForWidth:(CGFloat)arg1; -- (CGFloat)preferredHeightForWidth:(CGFloat)arg1 inTableView:(id)arg2; -@end - -@interface i8CornersCustomCell : UITableViewCell { - UILabel *label; - UILabel *underLabel; -} -@end - - -@implementation i8CornersCustomCell - -- (id)initWithSpecifier:(PSSpecifier *)specifier -{ - self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Cell"]; - if (self) { - - #define kWidth [[UIApplication sharedApplication] keyWindow].frame.size.width - CGRect labelFrame = CGRectMake(0, -15, kWidth, 70); - CGRect underLabelFrame = CGRectMake(0, 22, kWidth, 70); - -label = [[UILabel alloc] initWithFrame:labelFrame]; - [label setNumberOfLines:1]; - label.font = [UIFont fontWithName:@"HelveticaNeue-Thin" size:60]; - [label setText:@"i8Corners"]; - [label setBackgroundColor:[UIColor clearColor]]; - label.textColor = [UIColor blackColor]; - label.textAlignment = NSTextAlignmentCenter; - -underLabel = [[UILabel alloc] initWithFrame:underLabelFrame]; - [underLabel setNumberOfLines:1]; - underLabel.font = [UIFont fontWithName:@"HelveticaNeue-Light" size:12]; - [underLabel setText:@"iPhone 8 Inspired Screen Corners"]; - [underLabel setBackgroundColor:[UIColor clearColor]]; - underLabel.textColor = [UIColor grayColor]; - underLabel.textAlignment = NSTextAlignmentCenter; - - [self addSubview:label]; - [self addSubview:underLabel]; - } - return self; -} -- (CGFloat)preferredHeightForWidth:(CGFloat)arg1 { - CGFloat prefHeight = 75.0; - return prefHeight; -} -@end - - -@implementation i8CornersRootListController -- (NSArray *)specifiers { - if (!_specifiers) { - _specifiers = [[self loadSpecifiersFromPlistName:@"Root" target:self] retain]; - } - - return _specifiers; -} - --(void) respring { -pid_t pid; -int status; -const char* args[] = {"killall", "-9", "backboardd", NULL}; -posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)args, NULL); -waitpid(pid, &status, WEXITED); -} -@end diff --git a/i8corners/theos b/i8corners/theos deleted file mode 120000 index d34d04d..0000000 --- a/i8corners/theos +++ /dev/null @@ -1 +0,0 @@ -/home/mpg13/theos \ No newline at end of file diff --git a/important.h b/important.h index a3de604..042353d 100644 --- a/important.h +++ b/important.h @@ -1,7 +1,12 @@ -#define PLIST_PATH @"/var/mobile/Library/Preferences/com.mpg13.UnderTime.plist" +#define PLIST_PATH @"/var/mobile/Library/Preferences/com.mpg13.undertime.plist" inline bool GetPrefBool(NSString *key) { return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue]; -} \ No newline at end of file +} + +inline *NSString GetPrefString(NSString *key) +{ +return [[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] objectForKey:key]; +} diff --git a/packages/dM format.deb b/packages/dM format.deb deleted file mode 100644 index 03ba427..0000000 Binary files a/packages/dM format.deb and /dev/null differ