From b90ae7a7a5c7a1af9feda077a42df6f2583d3091 Mon Sep 17 00:00:00 2001 From: Ian Leitch Date: Sun, 19 May 2024 18:20:56 +0100 Subject: [PATCH] Update README for 2.19.0 --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 22139d8b9..0dc47c0b9 100644 --- a/README.md +++ b/README.md @@ -318,7 +318,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