Skip to content

Commit

Permalink
diag
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Aug 9, 2024
1 parent 3674bd7 commit 567cf6e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,12 @@ @implementation XCUIApplicationProcess (FBQuiescence)

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-load-method"
#pragma clang diagnostic ignored "-Wcast-function-type-strict"

+ (void)load
{
Method waitForQuiescenceIncludingAnimationsIdleMethod = class_getInstanceMethod(self.class, @selector(waitForQuiescenceIncludingAnimationsIdle:));
Method waitForQuiescenceIncludingAnimationsIdlePreEventMethod = class_getInstanceMethod(self.class, @selector(waitForQuiescenceIncludingAnimationsIdle:isPreEvent:));
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcast-function-type-strict"
if (nil != waitForQuiescenceIncludingAnimationsIdleMethod) {
IMP swizzledImp = (IMP)swizzledWaitForQuiescenceIncludingAnimationsIdle;
original_waitForQuiescenceIncludingAnimationsIdle = (void (*)(id, SEL, BOOL)) method_setImplementation(waitForQuiescenceIncludingAnimationsIdleMethod, swizzledImp);
Expand All @@ -81,7 +80,6 @@ + (void)load
} else {
[FBLogger log:@"Could not find method -[XCUIApplicationProcess waitForQuiescenceIncludingAnimationsIdle:]"];
}
#pragma clang diagnostic pop
}

#pragma clang diagnostic pop
Expand Down

0 comments on commit 567cf6e

Please sign in to comment.