Questions tagged [android-multi-module]
29 questions
0
votes
0 answers
How to use hilt for testing in a multi module android project?
I’ve couple of questions when trying to use hilt for testing in a multi-module project:
Say I’ve a feature module which declared some interface and its classes depend upon that interface. The implementation of this interface is provided in the :app…

Kshitij Patil
- 132
- 1
- 9
0
votes
0 answers
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 whole app)
app module (having dependancy of common,…

blackHawk
- 6,047
- 13
- 57
- 100
0
votes
0 answers
Product flavor wise module implementation
I have 2 local modules, say cat and dog. Both have their platform specific code. Corresponding to these, there are two product flavors as well, say catFlav and dogFlav. The app module's build.gradle file looks something like this:
productFlavors {
…

ssindher11
- 168
- 1
- 7
0
votes
0 answers
Multi-module Android project - Can't publish submodule Android to mavenLocal
I'm getting an error while trying to publish my project to mavenLocal
Here's the structure I'm trying to build.
Details: I can publish all the stuff developed in the core module, with publish.gradle. But I haven't add any publish.gradle for the…

Guilherme Santana
- 41
- 5
0
votes
0 answers
How to implements a multi module android application?
I'm trying to develop an Android app with multi modules.
I have created my project, it was working fine until I try to create a module.
I have this:
{AppName}
|--> app (contains the main activity,...)
|--> {moduleName}
|----> ui (contains some UI…

JohnDoe
- 83
- 1
- 6
0
votes
1 answer
How to use "GoogleSignInApi" in Android Clean Architecture?
How to handle "Google Sign in" using android CLEAN architecture? As we know that we should avoid android code in presentation layer.
i have tried to start an "Activity" where i have managed all of my login related codes. But i tried to pass callback…
0
votes
1 answer
Android Hilt multi-module, do I need to add plugin to each module or only app
This is not clearly explained in official documentation.
Do I need to add the hilt plugin to each module of my app or only to the main module (:app)?

htafoya
- 18,261
- 11
- 80
- 104
0
votes
0 answers
Android Multi Module and Hilt Issue
We have an multi module Android project which has following modules:
Common module
Library module A
Library module B
The Common module needs some dependencies of Type A and Type B for its features. These are common dependencies that can be…

RaBaKa 78
- 1,115
- 7
- 11
0
votes
0 answers
How to communicate fragment result across multiple independent modules?
I want communicate result from fragmentB to the fragmentA using Fragment Result API. fragmentA and fragmentB lives in different modules and they are independent.
What are my options to solve this without exposing implementation details?

virengujariya
- 285
- 1
- 4
- 16
0
votes
1 answer
Firebase Services as library module
Is there a way to use Firebase services in a library/module? I am planning of creating a module for Firebase only, I know that Firebase services need FirebaseApp instance to identify the app client but I wonder if there is a possibility of creating…

Bitwise DEVS
- 2,858
- 4
- 24
- 67
0
votes
1 answer
can I use coroutine in a multi module multi language( kotlin and java ) project app?
lets say there is an android project with module a, b and c all written in java. then I add another module, module d in the project. can I still use coroutine internally in module d?
I know I cannot use it in java module, but does coroutine still…

daya pangestu
- 400
- 3
- 12
0
votes
0 answers
Gradle: How to get actual module name with grouped modules
I am using a multi-modular architecture for my android app with module grouping i.e. I group my modules under a directory to make it more organised.
The structure is similar to this-
MyApplication
├───app
├───common
│ ├───network
│ …

Rajkiran
- 15,845
- 24
- 74
- 114
-2
votes
1 answer
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 HomeFragment and HomeViewModel
When I start the app…

Biscuit
- 4,840
- 4
- 26
- 54
-5
votes
1 answer
Android multi module project
I'm trying to setup a multi-module project with bottom navigation fragments and hilt.
Is there any github project I can use to start my project faster?

Web Services
- 77
- 1
- 8