Skip to content

0.5.0 - Anvil, Hilt and Missing Binding Visualization support

Latest
Compare
Choose a tag to compare
@arunkumar9t2 arunkumar9t2 released this 20 Jun 17:16
· 57 commits to main since this release

Infra

  • Migrated processor artifacts to mavenCentral at dev.arunkumar:scabbard-processor:0.5.0 coordinate.
  • Consuming projects no longer need to add jcenter() repository.

Processor

  • Scabbard now generates images to StandardLocation.SOURCE_OUTPUT folder which is the same folder as dagger or other annotation processor generated code. This location is by default indexed by IntelliJ/Android Studio and fixes issues where gutter icons were not shown due to folder not getting indexed. The generated images also can be directly viewed under java (generated) source set in IDE.

Missing Binding Visualization.

Scabbard can add hyperlinks to generated full binding graph when Dagger's missing binding error is detected. This requires fullBindingGraphValidation to be set to true. Clicking the component name will open the full binding graph which would contain the missing binding visualization as shown below:

Dagger Hilt

  • Updated to support latest generated code changes by Hilt.
  • Fix Scabbard not working on a project when only hilt-android-compiler was applied.

Anvil support

  • Scabbard will add gutter icons to generated code for @MergeComponent and @MergeSubcomponent annotations
  • samples/kotlin-anvil added
  • No changes in gradle setup required to enable this feature.

SVG

Gutter icons now shows option to open the svg file in browser directly. From the browser, the svg file can be navigated using component hyperlinks

Dependencies

Update to Kotlin 1.5.0andDagger 2.37`

Misc

  • Improved documentation.