Browse Source

Recompiled for iOS 14

master
gilshahar7 3 years ago
parent
commit
2eb10da3cc
4 changed files with 8 additions and 8 deletions
  1. +1
    -0
      Makefile
  2. +6
    -7
      Tweak.xm
  3. +1
    -1
      control
  4. BIN
      packages/com.gilshahar7.pearlretry_1.2_iphoneos-arm.deb

+ 1
- 0
Makefile View File

FINALPACKAGE = 1
ARCHS = armv7 arm64 arm64e ARCHS = armv7 arm64 arm64e
export TARGET = iphone:clang:11.2:7.0 export TARGET = iphone:clang:11.2:7.0



+ 6
- 7
Tweak.xm View File

float delay = 0; float delay = 0;


static void loadPrefs() { static void loadPrefs() {
NSMutableDictionary *prefs = [[NSMutableDictionary alloc] initWithContentsOfFile:PLIST_PATH];
delay = [[prefs objectForKey:@"delay"] floatValue];
NSMutableDictionary *prefs = [[NSMutableDictionary alloc] initWithContentsOfFile:PLIST_PATH];
delay = [[prefs objectForKey:@"delay"] floatValue];
} }


%hook SBDashBoardPearlUnlockBehavior %hook SBDashBoardPearlUnlockBehavior
-(void)_handlePearlFailure{ -(void)_handlePearlFailure{
%orig;
%orig;
[[%c(SBUIBiometricResource) sharedInstance] noteScreenDidTurnOff]; [[%c(SBUIBiometricResource) sharedInstance] noteScreenDidTurnOff];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delay * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delay * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[[%c(SBUIBiometricResource) sharedInstance] noteScreenWillTurnOn]; [[%c(SBUIBiometricResource) sharedInstance] noteScreenWillTurnOn];
}); });
} }
%end %end





%ctor{ %ctor{
loadPrefs();
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)loadPrefs, CFSTR("com.gilshahar7.pearlretryprefs.settingschanged"), NULL, CFNotificationSuspensionBehaviorCoalesce);
loadPrefs();
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)loadPrefs, CFSTR("com.gilshahar7.pearlretryprefs.settingschanged"), NULL, CFNotificationSuspensionBehaviorCoalesce);




} }

+ 1
- 1
control View File

Package: com.gilshahar7.pearlretry Package: com.gilshahar7.pearlretry
Name: PearlRetry Name: PearlRetry
Depends: mobilesubstrate Depends: mobilesubstrate
Version: 1.1
Version: 1.2
Architecture: iphoneos-arm Architecture: iphoneos-arm
Description: Retry FaceID when failed to recognize. Description: Retry FaceID when failed to recognize.
Maintainer: gilshahar7 Maintainer: gilshahar7

BIN
packages/com.gilshahar7.pearlretry_1.2_iphoneos-arm.deb View File


Loading…
Cancel
Save