Plank v1.1 Release Notes
Release Date: 2017-08-17 // over 6 years ago-
๐ Version 1.1
๐ New CLI options
--print_deps - Just print the path to the dependent schemas necessary to generate the schemas provided and exit. --no_recursive - Don't generate files recursively. Only generate the one file I ask for. --only_runtime - Only generate runtime files and exit. --lang - Comma separated list of target language(s) for generating code. Default: "objc" --help - Show this text and exit.
๐ Flow Support
๐ This release contains an early experimental implementation of Flow type generation. Now your schema files can be used to generate multiple languages by using the
--lang
command line option.How do I use it?
- Try it out by specifying
--lang flow
- Generate both ObjC and Flow
--lang flow,objc
๐ More documentation on Flow is coming soon but you can see the current output in the Examples.
Objective-C Generation
- Nullability: Specifying a field as
required
will now influence if it isnonnull
ornullable
. Previously all methods werenullable
. - ๐ New Method:
"- (NSDictionary *)dictionaryRepresentation"
allows your models to output a dictionary representation of themselves. This is intended to be the inverse ofinitWithModelDictionary
. - ๐ Bug fixes: Small number of fixes to the generated code have been made.
๐ Notable commits in this release:
๐ 864abac Nullability support in Plank: (#64)
6808341 Add dictionary representation to Objc models (#67)
โ fc967d5 Add tests for generated models to the integration tests pipeline (#69)
116b818 Copy the value to an ivar backed by a copy property (#72)
๐ 0d50564 Add custom indentation support (#61)
0๏ธโฃ 37a6bc3 Don't camel case the description for EnumValue by default (#60)
๐ 12db0da Add Flow Type Support (#57)
๐ 6d226ec Fix lint warnings (#58)
332af42 Use relative schema urls internally (#59)
๐ 46d340f Fix critical bug where deep equality comparison contained a pointer equality (#50)
โ 658c73f Add initial support for integration testing. (#48)
๐ aba7ecc Remove FilePrinter protocol (#46)
โก๏ธ 86873d0 Update to newest CI (#44)
69e6d20 Add lang attribute to provide future flexibility for additional languages in (#42)
๐ d69c8e6 Simplify initWithModelDictionary and improve performance (#40)
โก๏ธ e8d35e3 Update Plank to Swift 3.1 (#39)
38f6da3 Makes the code more readable via early returns / fatal errors in guards (#35)
9fefe3a Support for no_recursive and only_runtime flags. Fix print_deps output (#32)
๐จ 120e4d2 Add cli option for printing the dependencies of a schema (#30) - Try it out by specifying