From f18d0ac37312a233a31720a49165bed5bf6454ef Mon Sep 17 00:00:00 2001 From: Ian Leitch Date: Tue, 21 May 2024 11:56:54 -0400 Subject: [PATCH] Update README for 2.19.0 (#739) --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0508fc93e..507856a18 100644 --- a/README.md +++ b/README.md @@ -317,7 +317,9 @@ Alternatively, the `--retain-objc-annotated` can be used to only retain declarat ### Codable -Swift synthesizes additional code for `Codable` types that is not visible to Periphery, and can result in false positives for properties not directly referenced from non-synthesized code. If your project contains many such types, you can retain all properties on `Codable` types with `--retain-codable-properties`. If `Codable` conformance is declared by a protocol in an external module not scanned by Periphery, you can instruct Periphery to identify the protocols as `Codable` with `--external-codable-protocols "ExternalProtocol"`. +Swift synthesizes additional code for `Codable` types that is not visible to Periphery, and can result in false positives for properties not directly referenced from non-synthesized code. If your project contains many such types, you can retain all properties on `Codable` types with `--retain-codable-properties`. Alternatively, you can retain properties only on `Encodable` types with `--retain-encodable-properties`. + +If `Codable` conformance is declared by a protocol in an external module not scanned by Periphery, you can instruct Periphery to identify the protocols as `Codable` with `--external-codable-protocols "ExternalProtocol"`. ### XCTestCase