Skip to content

Commit

Permalink
fix: clarify the error message
Browse files Browse the repository at this point in the history
Since `false` does not the entry invalid, I rephrased the sentence. And made a couple of copy edits along the way.
  • Loading branch information
zamulla authored Sep 24, 2024
1 parent 44ed9b7 commit 26e554b
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ internal object PlistSanityCheck {

if (displayLinkEntry?.boolValue != true) {
val message = """
Error: `Info.plist` doesn't have a valid `CADisableMinimumFrameDurationOnPhone` entry.
Error: `Info.plist` doesn't have a valid `CADisableMinimumFrameDurationOnPhone` entry, or has it set to `false`.
This will result in an inadequate performance on iPhones with high refresh rate.
Add `<key>CADisableMinimumFrameDurationOnPhone</key><true/>` entry to `Info.plist` to fix this error.
If you don't have a separate plist file, add the entry to the target from within Xcode: Project -> Targets -> Info -> Custom iOS Target Properties.
Or set `ComposeUIViewController(configure = { enforceStrictPlistSanityCheck = false }) { .. }`, if it's intended.
Add `<key>CADisableMinimumFrameDurationOnPhone</key><true/>` entry to the `Info.plist` file to fix this error.
If you don't have a separate .plist file, add the entry to the target from within Xcode: Project -> Targets -> Info -> Custom iOS Target Properties.
To disable this check, set `ComposeUIViewController(configure = { enforceStrictPlistSanityCheck = false }) { .. }`.
""".trimIndent()
error(message)
}
}
}
}
}
}

0 comments on commit 26e554b

Please # to comment.