Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
88 views

I'm trying to set up Dagger in a Kotlin Multiplatform module for Android only as a POC for a migration of a project. Therefore, I needed to set up kapt and followed the instructions in Kmp in Kapt ...
Noge Dev's user avatar
0 votes
1 answer
52 views

I want to understand how it works. I have application with three libraries: :main :module1 :module2 :di_api Library :main: build.gradle.kts: dependencies { implementationProjects( ":...
Stanislav Kireev's user avatar
0 votes
0 answers
46 views

I use framework, https://github.com/AntonButov/dagger-dsl. @DaggerDsl val di = component<Component> { provides { Provides() } bind<Bind,...
Anton Butov's user avatar
0 votes
0 answers
50 views

I have the following project structure: app/ di/ components/ modules JakcApplication.kt MainActivity.kt core/ data/ local/ database/ ...
JamieRhys's user avatar
  • 354
0 votes
1 answer
84 views

I have a repository that should be Singletone as it holds state inside it. I provide it like this: @Module @InstallIn(SingletonComponent::class) object RepoModule { @Provides fun ...
faritowich's user avatar
0 votes
0 answers
49 views

I am an Android Developer. I want to use Singelton with dagger hilt 2, I am using Jetpack Compose. This is my code right now: import javax.inject.Inject import javax.inject.Singleton @Singleton class ...
adamper's user avatar
1 vote
0 answers
649 views

I have the following dagger 2.52 dependency in my project: <dependency> <groupId>com.google.dagger</groupId> <artifactId>dagger</artifactId> <version>2....
carlos palma's user avatar
0 votes
1 answer
80 views

I have a fragment whose instance of ViewModel is provided by a component, scoped to the navigation graph of Main Activity. The Dagger app component was injected into the single Main Activity and ...
MajinKenn's user avatar
  • 109
1 vote
1 answer
230 views

In official Dagger documentation said: Warning: Dagger’s KSP support is currently in alpha. In Hilt release notes said: Add KSP support to androidx.hilt. So, my question is: is Hilt uses alpha ...
Tooto's user avatar
  • 405
0 votes
1 answer
43 views

I have a FooViewModel that is scoped to the FooFragment. In FooFragment, the device type is passed from another fragment based on what user selects. I want to inject this in the constructor of the ...
SpeedRacer's user avatar
0 votes
1 answer
504 views

I have an app with three activities. Launch Activity A -> Activity B -> Activity -> C Previous activity is finished while navigating to next activity. I am injecting objects in Activity A and ...
abhishek maharajpet's user avatar
-1 votes
2 answers
334 views

I'm testing a function like this: public class CsvUtilsTest { @Mock private S3Client s3Client; @Mock private S3BucketWrapper s3Buckets; @Mock CsvMapper csvMapper; @...
Joe C.'s user avatar
  • 501
-1 votes
1 answer
126 views

In my team's codebase I see classes that either have all parameters injected (and no constructor arguments) or have nothing injected. However, I'm wondering how to have a class with some injected and ...
Joe C.'s user avatar
  • 501
0 votes
1 answer
126 views

I am breaking up my project into different Android Studio modules. At the base, I have a headless modules with core business logic. Down the module dependency tree, I have an app modules that ...
Brian Bauman's user avatar
0 votes
1 answer
60 views

As we can see in the attached picture from the Google website, The SingletonComponent will provide the same dependency instance across the application. Is this the same for ActivityComponent? Will it ...
Helmi's user avatar
  • 85

15 30 50 per page
1
2 3 4 5
213