square / anvil

A Kotlin compiler plugin to make dependency injection with Dagger 2 easier.
Apache License 2.0
1.31k stars 80 forks source link

rename the new int-based priority to `rank`, restore the enum to `priority` #957

Closed RBusarow closed 5 months ago

RBusarow commented 5 months ago

This makes the broader enum -> Int change source-compatible.

The IDE's auto-replace only partly works, because the deprecated ContributesBinding.priority parameter only works as documentation. Devs can auto-replace the enum entry with the corresponding integer, but if they're using a named argument, it will wind up with something like priority = RANK_NORMAL.