瀏覽代碼

V1.7

Fixed the tweak not loading on iOS 13, stupid me forgot that i restricted it back on iOS 12.
beta-future-time
Gil Shahar 5 年之前
父節點
當前提交
cc8d7486c1
沒有連結到貢獻者的電子郵件帳戶。
共有 3 個檔案被更改,包括 7 行新增7 行删除
  1. +6
    -6
      Tweak.xm
  2. +1
    -1
      control
  3. 二進制
      packages/com.gilshahar7.exacttime_1.7_iphoneos-arm.deb

+ 6
- 6
Tweak.xm 查看文件

@@ -7,7 +7,7 @@
@interface NCLookHeaderContentView
-(void)_updateDateLabelFontForShortLook;
@end
//IOS 11 & 12
//IOS 11 & 12 And Above
@interface BSUIRelativeDateLabel
@property (assign,nonatomic) NSString *text;
-(void)sizeToFit;
@@ -16,7 +16,7 @@
@interface MTPlatterHeaderContentView
-(void)_updateTextAttributesForDateLabel;
@end
//IOS 12
//IOS 12 And Above
@interface PLPlatterHeaderContentView
-(void)_updateTextAttributesForDateLabel;
@end
@@ -152,7 +152,7 @@ static NSString *settingsPath = @"/var/mobile/Library/Preferences/com.gilshahar7
%end
%end

%group iOS12
%group iOS12AndAbove
%hook PLPlatterHeaderContentView
-(void)_updateTextAttributesForDateLabel{
%orig;
@@ -229,7 +229,7 @@ static NSString *settingsPath = @"/var/mobile/Library/Preferences/com.gilshahar7
%init(iOS10);
} else if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 11.0 && [[[UIDevice currentDevice] systemVersion] floatValue] < 12.0) {
%init(iOS11);
}else if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 12.0 && [[[UIDevice currentDevice] systemVersion] floatValue] < 13.0) {
%init(iOS12);
}else if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 12.0) {
%init(iOS12AndAbove);
}
}
}

+ 1
- 1
control 查看文件

@@ -1,7 +1,7 @@
Package: com.gilshahar7.exacttime
Name: ExactTime
Depends: mobilesubstrate
Version: 1.6
Version: 1.7
Architecture: iphoneos-arm
Description: Shows the exact time of a notification.
Maintainer: gilshahar7

二進制
packages/com.gilshahar7.exacttime_1.7_iphoneos-arm.deb 查看文件


Loading…
取消
儲存