Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions Tweak.xm
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ BOOL isTouchIDAvailable() {
LAContext *myContext = [[LAContext alloc] init];
NSError *authError = nil;

if (![myContext canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&authError]) {
if (![myContext canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&authError]) {
NSLog(@"%@", [authError localizedDescription]);
return NO;
}
Expand Down Expand Up @@ -495,8 +495,8 @@ BOOL isTouchIDAvailable() {
reason = @"Are you the device owner?";

NSError *error = nil;
if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) {
[context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason:reason reply:^(BOOL success, NSError *error) {
if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&error]) {
[context evaluatePolicy:LAPolicyDeviceOwnerAuthentication localizedReason:reason reply:^(BOOL success, NSError *error) {
dispatch_async(dispatch_get_main_queue(), ^{
if (error) {
if (intruderKey) {
Expand Down Expand Up @@ -876,8 +876,8 @@ BOOL isTouchIDAvailable() {
reason = @"Are you the device owner?";

NSError *error = nil;
if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) {
[context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason:reason reply:^(BOOL success, NSError *error) {
if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&error]) {
[context evaluatePolicy:LAPolicyDeviceOwnerAuthentication localizedReason:reason reply:^(BOOL success, NSError *error) {
dispatch_async(dispatch_get_main_queue(), ^{
if (error) {
if (intruderKey) {
Expand Down Expand Up @@ -987,8 +987,8 @@ BOOL isTouchIDAvailable() {
reason = @"Are you the device owner?";

NSError *error = nil;
if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) {
[context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason:reason reply:^(BOOL success, NSError *error) {
if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&error]) {
[context evaluatePolicy:LAPolicyDeviceOwnerAuthentication localizedReason:reason reply:^(BOOL success, NSError *error) {
dispatch_async(dispatch_get_main_queue(), ^{
if (error) {
if (intruderKey) {
Expand Down Expand Up @@ -1137,8 +1137,8 @@ BOOL isTouchIDAvailable() {
reason = @"Are you the device owner?";

NSError *error = nil;
if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) {
[context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason:reason reply:^(BOOL success, NSError *error) {
if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&error]) {
[context evaluatePolicy:LAPolicyDeviceOwnerAuthentication localizedReason:reason reply:^(BOOL success, NSError *error) {
dispatch_async(dispatch_get_main_queue(), ^{
if (error) {
if (intruderKey) {
Expand Down
8 changes: 4 additions & 4 deletions shieldxiprefs/SXIRootListController.m
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ BOOL isTouchIDAvailable() {
LAContext *myContext = [[LAContext alloc] init];
NSError *authError = nil;

if (![myContext canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&authError]) {
if (![myContext canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&authError]) {
NSLog(@"%@", [authError localizedDescription]);
return NO;
}
Expand Down Expand Up @@ -431,8 +431,8 @@ - (void)askForLogin {
context.localizedFallbackTitle = @"Greasy Fingers?\nEnter Password.";

NSError *error = nil;
if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) {
[context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason:@"Are you the device owner?" reply:^(BOOL success, NSError *error) {
if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&error]) {
[context evaluatePolicy:LAPolicyDeviceOwnerAuthentication localizedReason:@"Are you the device owner?" reply:^(BOOL success, NSError *error) {
dispatch_async(dispatch_get_main_queue(), ^{
if (error) {
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
Expand Down Expand Up @@ -581,4 +581,4 @@ - (void)respring {
// - (CGFloat)preferredHeightForWidth:(CGFloat)arg1 {
// return 150.0f;
// }
// @end
// @end