Download Latest Version v1.6 - Schema updates, improved Java support, Objective-C optimizations and dependency graph analysis source code.zip (274.7 kB)
Email in envelope

Get an email when there's a new version of Plank

Home / v1.5
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2019-02-27 2.3 kB
Updates to Objective-C, Bazel support, and Java support in alpha source code.tar.gz 2019-02-27 154.0 kB
Updates to Objective-C, Bazel support, and Java support in alpha source code.zip 2019-02-27 215.7 kB
Totals: 3 Items   372.0 kB 0

This release contains a lot of internal cleanup as well as new functionality.

Updates

Objective-C

Added isSet methods for each property which will allow callers to differentiate if a property has been set: This is useful for differentiating: - Default values for primitive types (i.e. int properties will still be 0 if not set) - nil values for reference types (i.e. pointers to objects are nil if not set)

Bazel

Initial support for building plank and integrating it within your local bazel project.

First add plank to your WORKSPACE file

:::py
git_repository(
    name = "plank",
    remote = "https://github.com/pinterest/plank.git",
    tag = "1.5"
)

Then you can run plank using: bazel run @plank//:plank -- [YOUR ARGS HERE]

Java (alpha)

  • Initial support is available and depends on AutoValue and GSON. AutoValue is likely to be removed soon as a requirement.
  • Java support is in active development and breaking changes are likely
  • Audience is focused on Android development which could influence some of the design decisions / dependencies

Changes

eaaccea [Objective-C] Option for adding abilities to tell if a method is set. fa1a00d [Objective-C] Fix issues that cause unstable output (#160) bec7ec9 Update WORKSPACE to latest rules_swift dependencies (#163) e041f8e Enable Swiftlint for PRs (#154) 27f2219 Update README.md ce0dbea Migrate Plank to Travis CI (#152) 71a3a5c Fix typo (#146) c387215 Update bazel build to use rules_swift 7328fa0 Refactor version number to use a struct (#145) 8053ab1 Add version to CLI (#144) 87197a3 Add flag to avoid runtime files from getting generated (#137) 9439de7 Fix nil-checking issue in dictionary representation (#135) 0c2bf4e Update to Swift 4.1, fix inheritance issue with equality (#133) 42838c3 Update Java enum rendering to avoid collisions when multiple enums are (#130) db6c647 Use fancy string enums and remove unused runtime function (#128) 6eb769b Fix linux build (#127) 153ebe7 Use @NonNull for nonnull Java properties. Add nullability to documentation 1b4641c Add initial Java documentation 7a0b6aa Separate CLI reference into its own page 56097d2 Add flow documenation overview a86117d Initial support for Java (#106)

Source: README.md, updated 2019-02-27