Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update anvil to v2.5.0 #320

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update anvil to v2.5.0 #320

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 12, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.squareup.anvil 2.5.0-beta04 -> 2.5.0 age adoption passing confidence
com.squareup.anvil:compiler-utils 2.5.0-beta04 -> 2.5.0 age adoption passing confidence
com.squareup.anvil:compiler-api 2.5.0-beta04 -> 2.5.0 age adoption passing confidence
com.squareup.anvil:compiler 2.5.0-beta04 -> 2.5.0 age adoption passing confidence
com.squareup.anvil:annotations-optional 2.5.0-beta04 -> 2.5.0 age adoption passing confidence
com.squareup.anvil:annotations 2.5.0-beta04 -> 2.5.0 age adoption passing confidence
com.squareup.anvil:gradle-plugin 2.5.0-beta04 -> 2.5.0 age adoption passing confidence

Release Notes

square/anvil (com.squareup.anvil)

v2.5.0

Anvil now experimentally supports incremental compilation and Gradle's build caching,
as of v2.5.0.

This feature is disabled by default.
It can be enabled via a Gradle property or the Gradle DSL:

Gradle Properties

v2.5.0-beta11

Fixed
  • resolve inherited field-injected generic properties to their substituted type (#​1040)
  • Resolve generic types when checking Subcomponent factory return types (#​1041)

v2.5.0-beta10

Deprecated
  • ClassReference.functions has been deprecated in favor of ClassReference.memberFunctions and ClassReference.declaredMemberFunctions
  • ClassReference.properties has been deprecated in favor of ClassReference.memberProperties and ClassReference.declaredMemberProperties
Fixed
  • consider ignoreQualifier arguments when checking for duplicate bindings (#​1033)
  • incremental compilation is automatically disabled for source sets that perform interface or module merging (#​1024)
  • include inherited functions in Subcomponent Factory checks by @​RBusarow in (#​1038)

v2.5.0-beta09

Deprecated
  • ClassName.generateClassName() and ClassReference.generateClassName() have been renamed to __.joinSimpleNames() for the sake of clarity. The ClassName version has also moved packages, so its new fully qualified name is com.squareup.anvil.compiler.internal.joinSimpleNames.
  • ClassName.generateClassNameString() has been renamed/moved to com.squareup.anvil.compiler.internal.generateHintFileName().
Fixed
  • Anvil will now attempt to shorten the names of hint files, generated "merged" subcomponents, and contributed binding modules so that all file names derived from them will have 255 characters or fewer.

v2.5.0-beta08

Changed
  • Anvil's generated hints are now all generated to the same anvil.hint package, which simplifies hint lookups and better future-proofs future KSP work. Note that this is a user-invisible change, but it will require a one-time recompilation of any Anvil-generated hints. (#​975)
Fixed
  • cache generated file paths relative to the build directory (changed from project directory) (#​979)
  • check both kapt and ksp for dagger-compiler when using KSP (#​989)

v2.5.0-beta07

Fixed
  • Another mangled name workaround in KSP (#​966)

v2.5.0-beta06

Deprecated
  • ContributesBinding.priority has been deprecated in favor of the int-value-based ContributesBinding.rank. This allows for more granular prioritization, rather than just the three enum entries that ContributesBinding.Priority offered.

[!IMPORTANT]
IDE auto-replace can auto-replace the enum entry with the corresponding integer, but not the named argument. Automatically-migrated code may wind up with something like priority = RANK_NORMAL. This is an IntelliJ limitation.

Fixed
  • pass files with only top-level function/property declarations to CodeGenerator implementations (#​956)
  • rename the new int-based priority to rank, restore the enum to priority (#​957)
  • Fix private targets API use (#​961)
  • Fix KSP2 fallback in mangle name checks (#​962)
  • Simplify redundant logic (#​963)

v2.5.0-beta05

Added
Fixed
  • fix interface based @​ContributesSubcomponent.Factory in KSP by @​gabrielittner (#​931)
  • Fix KSP resolution of Priority (#​933)
  • Gracefully handle module name resolution in KSP (#​947)
  • Always generate provider factories for binding modules (#​951)
  • use the resolved value of const arguments in propagated annotation arguments (#​940)
  • re-run analysis between an incremental sync and code generation (#​943)
  • delay @ContributesSubcomponent generation until the last analysis rounds (#​946)
Dependencies
  • Update dependency gradle to v8.7 (#​937)
  • Update dagger to v2.51.1 (#​944)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/anvil branch 3 times, most recently from 2a5a8a5 to ababcee Compare October 26, 2024 15:54
@renovate renovate bot force-pushed the renovate/anvil branch 2 times, most recently from 656683e to 20c3210 Compare November 12, 2024 22:51
@renovate renovate bot changed the title Update anvil to v2.5.0-beta11 Update anvil Dec 4, 2024
@renovate renovate bot changed the title Update anvil Update anvil to v2.5.0 Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants