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 dagger to v2.48 #917

Merged
merged 6 commits into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions app/src/main/kotlin/io/sweers/catchup/app/ApplicationModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ abstract class ApplicationModule {
@Binds
@ApplicationContext
@SingleIn(AppScope::class)
abstract fun Application.provideApplicationContext(): Context
abstract fun provideApplicationContext(real: Application): Context

@Binds @SingleIn(AppScope::class) abstract fun CatchUpAppConfig.bindAppConfig(): AppConfig
@Binds @SingleIn(AppScope::class) abstract fun bindAppConfig(real: CatchUpAppConfig): AppConfig

companion object {

Expand All @@ -102,12 +102,13 @@ abstract class ApplicationModule {
*/
@Provides
@SingleIn(AppScope::class)
internal fun @receiver:ApplicationContext Context.provideGeneralUseContext(): Context =
ContextWrapper(this)
internal fun provideGeneralUseContext(@ApplicationContext appContext: Context): Context =
ContextWrapper(appContext)

@Provides
@SingleIn(AppScope::class)
internal fun @receiver:ApplicationContext Context.versionInfo(): VersionInfo = versionInfo
internal fun versionInfo(@ApplicationContext appContext: Context): VersionInfo =
appContext.versionInfo

@Provides
@SingleIn(AppScope::class)
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ compose-compiler = "1.5.3"
compose-compiler-kotlinVersion = "1.9.10"
corbind = "1.8.0"
coroutines = "1.7.3"
dagger = "2.47"
dagger = "2.48"
datastore = "1.1.0-alpha04"
detekt = "1.23.1"
eithernet = "1.5.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ abstract class GitHubMetaModule {
@IntoMap
@ServiceMetaKey(SERVICE_KEY)
@Binds
internal abstract fun @receiver:InternalApi ServiceMeta.githubServiceMeta(): ServiceMeta
internal abstract fun githubServiceMeta(@InternalApi real: ServiceMeta): ServiceMeta

companion object {

Expand Down
Loading