Verions 1.6 : Fixed cydia crashing
This commit is contained in:
parent
162528d64f
commit
1548ed0393
37 changed files with 128 additions and 25 deletions
|
@ -8,5 +8,5 @@ Depiction: https://mpg13.github.io/repo/depicts/undertime.html
|
||||||
Maintainer: MPG13 <micahplacido@gmail.com>
|
Maintainer: MPG13 <micahplacido@gmail.com>
|
||||||
Author: MPG13 <micahplacido@gmail.com>
|
Author: MPG13 <micahplacido@gmail.com>
|
||||||
Section: Tweaks
|
Section: Tweaks
|
||||||
Version: 1.5.1-12+debug
|
Version: 1.6-21+debug
|
||||||
Installed-Size: 200
|
Installed-Size: 200
|
||||||
|
|
Binary file not shown.
|
@ -24,6 +24,19 @@
|
||||||
<key>label</key>
|
<key>label</key>
|
||||||
<string>Enable tweak</string>
|
<string>Enable tweak</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSSwitchCell</string>
|
||||||
|
<key>default</key>
|
||||||
|
<false/>
|
||||||
|
<key>defaults</key>
|
||||||
|
<string>com.mpg13.UnderTime</string>
|
||||||
|
<key>key</key>
|
||||||
|
<string>hasSeconds</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>Time has seconds in it</string>
|
||||||
|
</dict>
|
||||||
|
|
||||||
<dict>
|
<dict>
|
||||||
<key>cell</key>
|
<key>cell</key>
|
||||||
<string>PSGroupCell</string>
|
<string>PSGroupCell</string>
|
||||||
|
@ -38,7 +51,7 @@
|
||||||
<key>height</key>
|
<key>height</key>
|
||||||
<string>45</string>
|
<string>45</string>
|
||||||
<key>label</key>
|
<key>label</key>
|
||||||
<string>Edit all settings you want changed! Just because</string>
|
<string>Edit all settings you want changed!</string>
|
||||||
</dict>
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>cell</key>
|
<key>cell</key>
|
||||||
|
@ -46,7 +59,31 @@
|
||||||
<key>height</key>
|
<key>height</key>
|
||||||
<string>45</string>
|
<string>45</string>
|
||||||
<key>label</key>
|
<key>label</key>
|
||||||
<string>they look configured doesn't mean they are!</string>
|
<string>Prefs don't always save right!</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSStaticTextCell</string>
|
||||||
|
<key>height</key>
|
||||||
|
<string>45</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>Go swipe back a page and re-open</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSStaticTextCell</string>
|
||||||
|
<key>height</key>
|
||||||
|
<string>45</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>UnderTime Settings to make sure</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSStaticTextCell</string>
|
||||||
|
<key>height</key>
|
||||||
|
<string>45</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>that your settings saved!</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
|
||||||
<dict>
|
<dict>
|
||||||
|
|
Binary file not shown.
|
@ -1 +1 @@
|
||||||
./packages/com.mpg13.undertime_1.5.1-12+debug_iphoneos-arm.deb
|
./packages/com.mpg13.undertime_1.6-21+debug_iphoneos-arm.deb
|
||||||
|
|
|
@ -24,6 +24,19 @@
|
||||||
<key>label</key>
|
<key>label</key>
|
||||||
<string>Enable tweak</string>
|
<string>Enable tweak</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSSwitchCell</string>
|
||||||
|
<key>default</key>
|
||||||
|
<false/>
|
||||||
|
<key>defaults</key>
|
||||||
|
<string>com.mpg13.UnderTime</string>
|
||||||
|
<key>key</key>
|
||||||
|
<string>hasSeconds</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>Time has seconds in it</string>
|
||||||
|
</dict>
|
||||||
|
|
||||||
<dict>
|
<dict>
|
||||||
<key>cell</key>
|
<key>cell</key>
|
||||||
<string>PSGroupCell</string>
|
<string>PSGroupCell</string>
|
||||||
|
@ -38,7 +51,7 @@
|
||||||
<key>height</key>
|
<key>height</key>
|
||||||
<string>45</string>
|
<string>45</string>
|
||||||
<key>label</key>
|
<key>label</key>
|
||||||
<string>Edit all settings you want changed! Just because</string>
|
<string>Edit all settings you want changed!</string>
|
||||||
</dict>
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>cell</key>
|
<key>cell</key>
|
||||||
|
@ -46,7 +59,31 @@
|
||||||
<key>height</key>
|
<key>height</key>
|
||||||
<string>45</string>
|
<string>45</string>
|
||||||
<key>label</key>
|
<key>label</key>
|
||||||
<string>they look configured doesn't mean they are!</string>
|
<string>Prefs don't always save right!</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSStaticTextCell</string>
|
||||||
|
<key>height</key>
|
||||||
|
<string>45</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>Go swipe back a page and re-open</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSStaticTextCell</string>
|
||||||
|
<key>height</key>
|
||||||
|
<string>45</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>UnderTime Settings to make sure</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSStaticTextCell</string>
|
||||||
|
<key>height</key>
|
||||||
|
<string>45</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>that your settings saved!</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
|
||||||
<dict>
|
<dict>
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1
.theos/packages/com.mpg13.undertime-1.6
Normal file
1
.theos/packages/com.mpg13.undertime-1.6
Normal file
|
@ -0,0 +1 @@
|
||||||
|
21
|
23
Tweak.xm
23
Tweak.xm
|
@ -56,18 +56,15 @@
|
||||||
|
|
||||||
int sizeOfFont = GetPrefInt(@"sizeOfFont");
|
int sizeOfFont = GetPrefInt(@"sizeOfFont");
|
||||||
int fontAlpha = GetPrefInt(@"fontAlpha");
|
int fontAlpha = GetPrefInt(@"fontAlpha");
|
||||||
NSString *lineOne = GetPrefString(@"lineOne");
|
|
||||||
NSString *lineTwo = GetPrefString(@"lineTwo");
|
|
||||||
NSString *fontColor = GetPrefString(@"fontHex");
|
NSString *fontColor = GetPrefString(@"fontHex");
|
||||||
|
|
||||||
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
|
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
|
||||||
|
|
||||||
%group allHooks
|
|
||||||
|
|
||||||
%hook _UIStatusBarStringView
|
%hook _UIStatusBarStringView
|
||||||
|
|
||||||
- (void)setText:(NSString *)text {
|
- (void)setText:(NSString *)text {
|
||||||
if(GetPrefBool(@"Enable") && [text containsString:@":"]) {
|
if(GetPrefBool(@"Enable") && [text containsString:@":"]) {
|
||||||
|
NSString *lineOne = GetPrefString(@"lineOne");
|
||||||
|
NSString *lineTwo = GetPrefString(@"lineTwo");
|
||||||
NSString *timeLineOne = lineOne;
|
NSString *timeLineOne = lineOne;
|
||||||
NSString *timeLineTwo = lineTwo;
|
NSString *timeLineTwo = lineTwo;
|
||||||
|
|
||||||
|
@ -113,15 +110,15 @@ NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
|
||||||
|
|
||||||
- (instancetype)init {
|
- (instancetype)init {
|
||||||
%orig;
|
%orig;
|
||||||
if(GetPrefBool(@"Enable") && ((!GetPrefBool(@"lineTwoStandard") && [lineTwo containsString:@"s"]) || (!GetPrefBool(@"lineOneStandard") && [lineOne containsString:@"s"]))) {
|
if(GetPrefBool(@"Enable") && GetPrefBool(@"hasSeconds")) {
|
||||||
self.nz9_seconds_timer = [NSTimer scheduledTimerWithTimeInterval:1.0 repeats:YES block:^(NSTimer *timer) {
|
self.nz9_seconds_timer = [NSTimer scheduledTimerWithTimeInterval:1.0 repeats:YES block:^(NSTimer *timer) {
|
||||||
self.shortTimeView.text = @":";
|
self.shortTimeView.text = @":";
|
||||||
self.pillTimeView.text = @":";
|
self.pillTimeView.text = @":";
|
||||||
[self.shortTimeView setFont: [self.shortTimeView.font fontWithSize:sizeOfFont]];
|
[self.shortTimeView setFont: [self.shortTimeView.font fontWithSize:sizeOfFont]];
|
||||||
[self.pillTimeView setFont: [self.pillTimeView.font fontWithSize:sizeOfFont]];
|
[self.pillTimeView setFont: [self.pillTimeView.font fontWithSize:sizeOfFont]];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id)applyUpdate:(id)arg1 toDisplayItem:(id)arg2 {
|
- (id)applyUpdate:(id)arg1 toDisplayItem:(id)arg2 {
|
||||||
|
@ -157,15 +154,9 @@ NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%end
|
|
||||||
|
|
||||||
%ctor {
|
%ctor {
|
||||||
dateFormatter = [[NSDateFormatter alloc] init];
|
dateFormatter = [[NSDateFormatter alloc] init];
|
||||||
dateFormatter.dateStyle = NSDateFormatterNoStyle;
|
dateFormatter.dateStyle = NSDateFormatterNoStyle;
|
||||||
dateFormatter.timeStyle = NSDateFormatterMediumStyle;
|
dateFormatter.timeStyle = NSDateFormatterMediumStyle;
|
||||||
dateFormatter.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"];
|
dateFormatter.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"];
|
||||||
|
|
||||||
if (![@"com.saurik.Cydia" boolValue]) {
|
|
||||||
%init(allHooks);
|
|
||||||
}
|
|
||||||
}
|
}
|
2
control
2
control
|
@ -1,7 +1,7 @@
|
||||||
Package: com.mpg13.undertime
|
Package: com.mpg13.undertime
|
||||||
Name: UnderTime
|
Name: UnderTime
|
||||||
Depends: mobilesubstrate
|
Depends: mobilesubstrate
|
||||||
Version: 1.5.1
|
Version: 1.6
|
||||||
Architecture: iphoneos-arm
|
Architecture: iphoneos-arm
|
||||||
Description: Customizable date under time in iX StatusBar.
|
Description: Customizable date under time in iX StatusBar.
|
||||||
Homepage: https://mpg13.github.io
|
Homepage: https://mpg13.github.io
|
||||||
|
|
BIN
packages/com.mpg13.undertime_1.6-1+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-1+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-10+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-10+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-11+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-11+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-12+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-12+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-13+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-13+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-14+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-14+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-15+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-15+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-16+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-16+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-17+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-17+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-18+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-18+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-19+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-19+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-2+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-2+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-20+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-20+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-21+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-21+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-3+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-3+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-4+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-4+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-5+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-5+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-6+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-6+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-7+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-7+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-8+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-8+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
BIN
packages/com.mpg13.undertime_1.6-9+debug_iphoneos-arm.deb
Normal file
BIN
packages/com.mpg13.undertime_1.6-9+debug_iphoneos-arm.deb
Normal file
Binary file not shown.
|
@ -24,6 +24,19 @@
|
||||||
<key>label</key>
|
<key>label</key>
|
||||||
<string>Enable tweak</string>
|
<string>Enable tweak</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSSwitchCell</string>
|
||||||
|
<key>default</key>
|
||||||
|
<false/>
|
||||||
|
<key>defaults</key>
|
||||||
|
<string>com.mpg13.UnderTime</string>
|
||||||
|
<key>key</key>
|
||||||
|
<string>hasSeconds</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>Time has seconds in it</string>
|
||||||
|
</dict>
|
||||||
|
|
||||||
<dict>
|
<dict>
|
||||||
<key>cell</key>
|
<key>cell</key>
|
||||||
<string>PSGroupCell</string>
|
<string>PSGroupCell</string>
|
||||||
|
@ -38,7 +51,7 @@
|
||||||
<key>height</key>
|
<key>height</key>
|
||||||
<string>45</string>
|
<string>45</string>
|
||||||
<key>label</key>
|
<key>label</key>
|
||||||
<string>Edit all settings you want changed! Just because</string>
|
<string>Edit all settings you want changed!</string>
|
||||||
</dict>
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>cell</key>
|
<key>cell</key>
|
||||||
|
@ -46,7 +59,31 @@
|
||||||
<key>height</key>
|
<key>height</key>
|
||||||
<string>45</string>
|
<string>45</string>
|
||||||
<key>label</key>
|
<key>label</key>
|
||||||
<string>they look configured doesn't mean they are!</string>
|
<string>Prefs don't always save right!</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSStaticTextCell</string>
|
||||||
|
<key>height</key>
|
||||||
|
<string>45</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>Go swipe back a page and re-open</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSStaticTextCell</string>
|
||||||
|
<key>height</key>
|
||||||
|
<string>45</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>UnderTime Settings to make sure</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSStaticTextCell</string>
|
||||||
|
<key>height</key>
|
||||||
|
<string>45</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>that your settings saved!</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
|
||||||
<dict>
|
<dict>
|
||||||
|
|
Reference in a new issue