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 is nonnull or nullable. Previously all methods were nullable.
    • ๐Ÿ†• New Method: "- (NSDictionary *)dictionaryRepresentation" allows your models to output a dictionary representation of themselves. This is intended to be the inverse of initWithModelDictionary.
    • ๐Ÿ› 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)