https://kotlinlang.org logo
#android-architecture
Title
# android-architecture
o

oday

03/11/2019, 11:27 PM
but just packages
g

ghedeon

03/12/2019, 7:15 AM
It will help if you formulate an actual question.
d

dewildte

03/12/2019, 3:07 PM
@oday What is your aversion to modules?
o

oday

03/12/2019, 3:08 PM
well, I was not for the life of me able to create a new module in my project and have it run the tests inside
hours and hours of this
so I dropped the entire effort
always “Empty test suite”
d

dewildte

03/12/2019, 3:10 PM
What kind of solutions have you tried?
Is this code private?
o

oday

03/12/2019, 3:10 PM
no solutions really, the task was simple
create a new module > “Java library” > enter its src folder and create the needed folders for a test
write the test, run it
if you can give a skeleton of this working, I would be literally baffled
and I was following a video tutotiral too, the guy was doing it infront of my eyes, yet I couldnt replicate it 😛
d

dewildte

03/12/2019, 3:12 PM
If you want an skeleton I can spin you one up no problem!
I suspect you have a dependencies issue.
@oday do you need a pure java module or an Android library?
o

oday

03/12/2019, 3:22 PM
i’ve never seen “Android Library” in the list of options
his instructions and what I saw from the menu was “Java library”
that’s what he considered a “module”
d

dewildte

03/12/2019, 3:31 PM
Ok I am making you a skeleton application hat has a Java module
I can add and Android Library module too if you like
Clone it -> build it -> run the tests
One sec I had a GitHub issue lol
@oday Ok take a look at the repo now
The domain module was added
The Android app project talks to the domain module
Tests are working in both pieces of the project.
I hope that helps
o

oday

03/12/2019, 4:03 PM
ok
one sec
d

dewildte

03/12/2019, 4:06 PM
No worries, I just made master and develop the same.
o

oday

03/12/2019, 4:09 PM
ok so a couple of things
should we go private window?
3 Views