Closed rpalcolea closed 4 years ago
I don't think Kotlin has a memoize support out of the box and also didn't want to introduce a cache library so created my version of it using a map.
Here is how it looks like
If you look at SubstituteRulesWithMemoizeSpec, we have two rule sets which substitute dependencies with version 19.0-rc2
SubstituteRulesWithMemoizeSpec
19.0-rc2
Looking at the screenshots, if you look at the versionSelector (ExactVersionSelector), it has uses the same object across rules.
versionSelector
ExactVersionSelector
The old approach would look like this
I don't think Kotlin has a memoize support out of the box and also didn't want to introduce a cache library so created my version of it using a map.
Here is how it looks like
If you look at
SubstituteRulesWithMemoizeSpec
, we have two rule sets which substitute dependencies with version19.0-rc2
Looking at the screenshots, if you look at the
versionSelector
(ExactVersionSelector
), it has uses the same object across rules.The old approach would look like this