Skip to content

Commit c1d576a

Browse files
test: Add deadlock on the main thread for ANRs (#4841)
Add a button triggering a deadlock on the main thread for testing fatal app hangs.
1 parent 3eb74c2 commit c1d576a

File tree

3 files changed

+54
-25
lines changed

3 files changed

+54
-25
lines changed

Samples/.swiftlint.yml

+5
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ disabled_rules:
88
- object_literal
99
- private_outlet
1010
- unused_optional_binding
11+
12+
# This rule allows UIViewControllers to have only 250 lines of code. The argument is that you should
13+
# extract business logic into extra classes. We deliberately turn this off because the extra classes
14+
# could make our samples harder to read, and our business logic is simple.
15+
- type_body_length

0 commit comments

Comments
 (0)