This PR here extends #86 to further use some of the newly added booleans in the Util methods. In particular, AttributeSpec now accepts code blocks to properly format strings etc.
This means that in Wire we can delete the above commit and lean on SwiftPoet to do the right thing. The PR also brings some tests present in KotlinPoet.
A while ago this PR was opened https://github.com/outfoxx/swiftpoet/pull/86 to better handle escaping of strings within attributes.
For Wire we added this temporary commit https://github.com/square/wire/commit/08836c7102c7d9981c588bc5373576491e945b8f to circumvent this issue until a new release of SwiftPoet is ready.
This PR here extends #86 to further use some of the newly added booleans in the Util methods. In particular,
AttributeSpec
now accepts code blocks to properly format strings etc.This means that in Wire we can delete the above commit and lean on SwiftPoet to do the right thing. The PR also brings some tests present in KotlinPoet.