34 questions
0 votes
1 answer
46 views
Problem dagger with module and component in different libraries
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( ":...
0 votes
1 answer
70 views
How to correctly handle http error code in multi-module compose app?
i'm building a multi-module jetpack-compose login/signup app. My backend is handled using Spring boot and the login/signup function returns a ResponseEntity. The task: in my frontend i want to display ...
2 votes
2 answers
388 views
Navigation in multi-module Compose project
I have a multi-module compose project where I am still trying to define how the navigation should be done. As far as I know, the following key concepts need to be taken into account (correct me if I ...
0 votes
0 answers
27 views
How to store access token in memory, variable or SavedStateHandle?
Problem with storing Access token in SavedStateHandle is that we are coupling presentation layer with the data layer, as what management of access token is task of data layer. I haven't found much ...
1 vote
1 answer
167 views
Separate module for activity, broadcast receiver and services?
I am completely new to multi-modular architecture. I am using jetpack compose. Asking flaws in my thinking. Broadcast receiver and services don't contain ui logic, similar to activity. e can directly ...
2 votes
1 answer
926 views
Apply gradle to Kotlin dsl, but android blocks are not recognized
I'm working on converting an existing project to a multi-module structure and setting up the Gradle configuration. In the process, I've moved the plugins' IDs(excluding the application), the Android ...
0 votes
1 answer
123 views
Android project with Multiple Modules with ProductFlavours in 2 modules
I my project i have multiple modules, like ModuleA, ModuleB, ModuleC, ModuleD, ModuleE, ModuleF I have different Flavours in ModuleA like( sit, prod, prepord), same in moduleB have different flavors ...
1 vote
1 answer
356 views
Navigate to any module from any module in 6 module multi module android project
I have 6 modules each module is kind of different app but i make 5 module as a library module and 6th module as the application module to launch activity and other all module work on one activity and ...
2 votes
1 answer
1k views
Now in Android Application Structure (kts) need to add Parcelable plugin to some modules and features
I'm using the "Now in Android" multi module application as my "learn by example" base however I've hit another snag from a requirement to my data classes to support Parceable. As ...
1 vote
0 answers
56 views
How to sequentially start activities across different Android modules in Kotlin?
I have an Android project with two modules, let's call them Module A and Module B. In Module A, I have two activities, A and B. In Module B, I have an activity named X. I'm trying to achieve a ...
11 votes
2 answers
2k views
Android multi-module architecture: domain depends on data or vice versa
Some Android multi-module architecture examples show that domain layer depends on data. Others are vice versa. Android Developers site says: The domain layer is an optional layer that sits between ...
8 votes
1 answer
19k views
Android App module's build.gradle.kts Unresolved reference error when importing a Kotlin class from an included (composite) module
In the #NowInAndroid sample app a Kotlin file NiaBuildType from an included module is being imported in the app modules build.gradle.kts file. ###build.gradle.kts (:app) import com.google.samples....
2 votes
0 answers
722 views
Android, Gradle, Kotlin-dsl, multi-module, centralize android blocks for application and library, as well as dependencies?
Gradle - 8.2.1, AGP - 8.0.2, Kotlin - 1.9.0 buildSrc/build.gradle.kts plugins { `kotlin-dsl` } dependencies { implementation("com.android.tools.build:gradle-api:8.0.2") } gradle/...
1 vote
0 answers
563 views
How to navigate to login module from feature module in multi module compose project
I'm working on a multi module compose project where I'm having difficulty navigating from one module to another the module dependancy is follows as bellow: common module (common ui component for ...
-2 votes
1 answer
783 views
Hilt Multi-module Cannot create an instance of class ViewModel
I'm trying out a new architecture with multi-module and DI though Hilt, I have the following modules: app: Contains MainActivity (which does nothing except holding fragment) featureHome: Contains ...