Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.4.2
->2.4.6
2.4.2
->2.4.6
2.4.2
->2.4.6
2.4.2
->2.4.6
2.4.2
->2.4.6
2.4.2
->2.4.6
⚠ Dependency Lookup Warnings ⚠
Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information.
Release Notes
square/anvil
v2.4.6
Changed
1.13.0
and fix bug uncovered by new TypeName#equals/hashCode changes, see #699.1.8.21
.v2.4.5
Changed
compileOnly
dependency, allowing the plugin to defer to whatever version the user already has. If you were accidentally depending on KGP through Anvil, you'll need to explicitly add the plugin yourself now.Removed
Fixed
Any
as bound type when using@ContributesBinding
or@ContributesMultibinding
, see #680.Custom Code Generator
AnvilCompilation
class, see #682.v2.4.4
Added
Changed
Removed
Custom Code Generator
projectFiles.topLevelFunctionReferences(module)
andprojectFiles.topLevelPropertyReferences(module)
. This allows you write code generators reacting to top-level functions and properties and not only classes, see #644.FunctionReference
type has been renamed toMemberFunctionReference
and a new super typeFunctionReference
has been introduced forTopLevelFunctionReference
andMemberFunctionReference
.PropertyReference
type has been renamed toMemberPropertyReference
and a new super typePropertyReference
has been introduced forTopLevelPropertyReference
andMemberPropertyReference
.Other Notes
2.4.3 - 2022-12-16
Added
@Binds
methods are now validated for correctness when generating Dagger factories, see #649.Changed
1.7.20
and Gradle to7.5.1
, see #643.1.8.x
releases, we now use a fork ofkotlin-compile-testing
:dev.zacsweers.kctfork:core:0.1.0-1.8.0-Beta01
.2.4.3-1-8-0-RC
if you want to test Kotlin1.8.0-RC
. Until Anvil has fully adopted Kotlin1.8
we'll publish additional versions that are required due to compiler API incompatibilities.Fixed
2.4.2 - 2022-08-23
Removed
Fixed
FqName
s check the inner class hierarchy for the right reference, see #617.Any
asboundType
, see #619.DisableIncrementalCompilationTask
, if there are multiple Kotlin compilation tasks for the same module, see #602.TypeReference
, see #611.2.4.1 - 2022-06-09
Changed
1.7.0
only. For Kotlin1.6.*
support please use version2.4.1-1-6
instead. Future Anvil versions will remove support for Kotlin 1.6.Fixed
@Merge*
annotations are used, see #596.Custom Code Generator
ClassReference
to returnTypeReference
instead.PropertyReference.Psi
from primary constructor properties to have the same behavior as the descriptor implementation, see #609.2.4.0 - 2022-03-28
Added
main
branch.Changed
compiler-utils
artifact have changed. Some highlights:ClassReference
API.ClassReference
is a sealed class and either implemented with PSI or Descriptors, so it's easy to fallback to a specific API and add your own extensions.classesAndInnerClass(module)
, useclassAndInnerClassReferences()
instead.Removed
1.5
.AnvilExtension
in the gradle plugin.Fixed
@ContributedSubcomponent
when the trigger is created AFTER the contribution, see #478.FqName
if the type reference is an inner class, see #479.2.4.0-M2 - 2022-03-015
Added
Fixed
2.4.0-M1 - 2022-03-03
Added
main
branch.Removed
1.5
.AnvilExtension
in the gradle plugin.Fixed
@ContributedSubcomponent
s when the trigger is created AFTER the contribution, see #478.FqName
if the type reference is an inner class, see #479.2.3.11 - 2022-01-28
Changed
@ContributesSubcomponent
to stable, see #474.2.3.11-1-6-10
if you use Kotlin1.6.10
. Until Anvil hasn't adopted Kotlin1.6
I'll publish additional versions that are required due to compiler API incompatibilities.Added
@ContributesSubcomponent
through a newreplaces
attribute, see #466.CodeGenerator
s forAnvilCompilation
. This makes it easier to unit-test specific scenarios, see #470.CodeGenerator
s), see #467.Fixed
@ContributesSubcomponent
uses a factory and is used in multiple parent components, see #459.2.3.10 - 2021-11-24
Changed
@ContributesSubcomponent
to delay merging contributions until the parent component is created, see #160.@MergeInterfaces
and@MergeModules
to another scope with@ContributesTo
.2.3.10-1-6-0
if you want to test Kotlin1.6.0
. Until Anvil hasn't adopted Kotlin1.6
I'll publish additional versions that are required due to compiler API incompatibilities.2.3.9 - 2021-11-08
Changed
syncGeneratedSources
, see #413.2.3.9-1-6-0-RC2
if you want to test Kotlin1.6.0-RC2
. Until Anvil hasn't adopted Kotlin1.6
I'll publish additional versions that are required due to compiler API incompatibilities.2.3.9-1-6-0
if you want to test Kotlin1.6.0
. Until Anvil hasn't adopted Kotlin1.6
I'll publish additional versions that are required due to compiler API incompatibilities.2.3.8 - 2021-11-04
Changed
syncGeneratedSources
to sync generated sources in the IDE, see #412.BindingModuleGenerator
, see #310. (this allows you generated@ContributesBinding
annotations in custom code generators)TypeNames
for assisted lambda arguments between descriptors and PSI, see #400. (regression in previous release)2.3.8-1-6-0-RC2
if you want to test Kotlin1.6.0-RC2
. Until Anvil hasn't adopted Kotlin1.6
I'll publish additional versions that are required due to compiler API incompatibilities.2.3.7 - 2021-10-19
Changed
KotlinCompilation
when using the utilities to test custom code generators, see #386.2.3.7-1-6-0-RC
if you want to test Kotlin1.6.0-RC
. Until Anvil hasn't adopted Kotlin1.6
I'll publish additional versions that are required due to compiler API incompatibilities.2.3.6 - 2021-10-12
2.3.6-1-6-0-RC
if you want to test Kotlin1.6.0-RC
. Until Anvil hasn't adopted Kotlin1.6
I'll publish additional versions that are required due to compiler API incompatibilities.2.3.5 - 2021-10-06
1.5.31
.Provider<Lazy<Type>>
properly for member injection, see #365.anvilMain
extendsanvil
so that code generators are picked up, see #368.2.3.4 - 2021-08-27
Changed
1.5.21
.Provider<Lazy<Type>>
properly, see #344.2.3.3 - 2021-06-23
Changed
2.3.2 - 2021-06-15
Changed
2.3.1 - 2021-06-09
Changed
generateDaggerFactories
,generateDaggerFactoriesOnly
anddisableComponentMerging
through the variant filter, see #100.2.3.0 - 2021-06-02
Changed
CodeGenerator
, see here and #265.1.5.10
. The old legacy compiler backend is still supported and the IR backend not required yet.2.2.3 - 2021-05-25
Changed
2.2.2 - 2021-05-16
Changed
2.2.1 - 2021-04-09
Changed
2.2.0 - 2021-03-17
Changed
@ContributesBinding
supports qualifiers now, see the README and documentation for examples.@ContributesMultibinding
now, see the README and documentation for examples, see #152.2.32
. Generating factories for assisted injection is no longer compatible with older Dagger versions due to the behavior change in Dagger itself. Make sure to use Dagger version2.32
or newer in your project, too.@ContributesBinding
has a priority field now for cases where you don't have access to replaced bindings at compile time, see #161.2.1.0 - 2021-02-05
Changed
1.4.30
. Older Kotlin version are no longer supported moving forward.2.0.14 - 2021-02-04
Changed
2.0.13 - 2021-02-04
Changed
2.0.12 - 2021-02-02
Changed
2.0.11 - 2020-12-28
Changed
generateDaggerFactoriesOnly
flag, see #164.2.0.10 - 2020-11-20
Changed
1.4.20
. Note that this version no longer works with Kotlin1.4.10
or older, see #159.2.0.9 - 2020-11-20
Changed
1.4.10
. Note that this release is not compatible with Kotlin1.4.20
.KotlinGradleSubplugin
class, see #30.:annotations
artifact.2.0.8 - 2020-11-12
Changed
2.0.7 - 2020-11-12 [YANKED]
Changed
2.0.6 - 2020-10-06
Changed
2.0.5 - 2020-09-18
Changed
2.0.4 - 2020-09-18 [YANKED]
Changed
2.0.3 - 2020-09-08
Changed
@MergeModules
is used and a Kotlin object uses@ContributesBinding
in the dependency graph.2.0.2 - 2020-09-01
Changed
@ContributesBinding
for objects and generate a@Provides
rather than a@Binds
function.@Subcomponent
, see #74.@Generated
annotation. This leads to issues on Android where this annotation doesn't exist, see #75.2.0.1 - 2020-08-27
Changed
@ContributesBinding
annotation binds a generic type.2.0.0 - 2020-08-07
Changed
replaces
attribute from a single class to an array. This gives the API more flexibility and avoids redundant classes. E.g. one Dagger module with several binding and provider methods may wish to replace multiple other Dagger modules.@ContributesBinding
annotation. This annotation allows you to contribute binding methods without actually writing a Dagger module.1.0.6 - 2020-07-29
Changed
implementation
dependency instead ofapi
#40.1.3.72
and1.4.0-rc
. The bug that required special builds for the 1.4 milestone releases was fixed.1.0.5-1.4-M3 - 2020-07-24
Changed
1.0.5
, only built with Kotlin 1.4-M3.1.0.5 - 2020-07-24
Changed
1.0.4-1.4-M3 - 2020-07-24
Changed
1.0.4
, only built with Kotlin 1.4-M3.1.0.4 - 2020-07-24
Changed
1.0.3-1.4-M3 - 2020-07-17
Changed
1.0.3
, only built with Kotlin 1.4-M3.1.0.3 - 2020-07-17
Changed
1.0.2 - 2020-07-17 [YANKED]
Changed
1.0.1 - 2020-07-09
Changed
1.4
and1.4.2
.1.0.1-1.4-M3
to use Hephaestus in projects with Kotlin 1.4-M3.1.0.0 - 2020-06-16
v2.4.3
Added
@Binds
methods are now validated for correctness when generating Dagger factories, see #649.Changed
1.7.20
and Gradle to7.5.1
, see #643.1.8.x
releases, we now use a fork ofkotlin-compile-testing
:dev.zacsweers.kctfork:core:0.1.0-1.8.0-Beta01
.2.4.3-1-8-0-RC
if you want to test Kotlin1.8.0-RC
. Until Anvil has fully adopted Kotlin1.8
we'll publish additional versions that are required due to compiler API incompatibilities.Fixed
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Never, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate. View repository job log here.