-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add a way to change the default BindGenericAs
.
#90
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansman
force-pushed
the
feature/default-bind-generic-as
branch
2 times, most recently
from
October 1, 2023 02:33
01558a3
to
b1d7638
Compare
This new annotation, `BindGenericAs.Default`, can be placed on generic types to indicate how they should be bound by default.
ansman
force-pushed
the
feature/default-bind-generic-as
branch
from
October 1, 2023 02:39
b1d7638
to
6dddc45
Compare
renovate bot
referenced
this pull request
in sindrenm/android-project-template
Oct 1, 2023
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [se.ansman.dagger.auto:compiler](https://togithub.com/ansman/auto-dagger) | `0.9.1` -> `0.10.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/se.ansman.dagger.auto:compiler/0.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/se.ansman.dagger.auto:compiler/0.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/se.ansman.dagger.auto:compiler/0.9.1/0.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/se.ansman.dagger.auto:compiler/0.9.1/0.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [se.ansman.dagger.auto:android](https://togithub.com/ansman/auto-dagger) | `0.9.1` -> `0.10.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/se.ansman.dagger.auto:android/0.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/se.ansman.dagger.auto:android/0.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/se.ansman.dagger.auto:android/0.9.1/0.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/se.ansman.dagger.auto:android/0.9.1/0.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>ansman/auto-dagger (se.ansman.dagger.auto:compiler)</summary> ### [`v0.10.0`](https://togithub.com/ansman/auto-dagger/releases/tag/0.10.0) [Compare Source](https://togithub.com/ansman/auto-dagger/compare/0.9.1...0.10.0) ##### Changes #####⚠️ **Breaking:** Rename of `BindGenericAs` entries⚠️ `BindGenericAs.Type` has been renamed to `BindGenericAs.ExactType` and `BindGenericAs.TypeAndWildcard` has been renamed to `BindGenericAs.ExactTypeAndWildcard`. These names are much clearer as `Type` wasn't really indicative of what it did. ##### `BindGenericAs.Default` There is now a new annotation called `@BindGenericAs.Default` which can be placed on the target type to set the default value for `BindGenericAs`. As a quick example: ```kotlin @​BindGenericAs.Default(BindGenericAs.Wildcard) interface Resource<T> // This will be bound as Resource<*> since the default has been set to wildcard for Resource. @​AutoBindIntoSet class SomeResource @​Inject constructor() : Resource<Something> ``` See [the documentation](https://auto-dagger.ansman.se/0.10.0/usage/auto-bind/#generics) for more information. ##### Details - Remove the deprecated typealiases by [@​ansman](https://togithub.com/ansman) in [https://github.com/ansman/auto-dagger/pull/85](https://togithub.com/ansman/auto-dagger/pull/85) - Bump androidx.lifecycle:lifecycle-viewmodel from 2.6.1 to 2.6.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/ansman/auto-dagger/pull/87](https://togithub.com/ansman/auto-dagger/pull/87) - Add a way to change the default `BindGenericAs`. by [@​ansman](https://togithub.com/ansman) in [https://github.com/ansman/auto-dagger/pull/90](https://togithub.com/ansman/auto-dagger/pull/90) **Full Changelog**: ansman/auto-dagger@0.9.1...0.10.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/sindrenm/android-project-template). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4wLjMiLCJ1cGRhdGVkSW5WZXIiOiIzNy4wLjMiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 new annotation,
BindGenericAs.Default
, can be placed on generic types to indicate how they should be bound by default.