for an android kotlin project, where in the projec...
# android
s
for an android kotlin project, where in the project do you usually put your networking logic? somewhere in the java > project directory?
d
Probably under
<project.base.path>.net
and
.net.model
for the data objects I’m expecting to receive from the server.
👍 1
g
that really depends on your architecture, right? Maybe you have some
data
package, maybe it's even a separate module. Maybe that module is so big, that it depends on
net
module...
a
I do clean architecture and package by feature. The only Android network code I have is in
project.base.path.core.platform
. Retrofit services, repositories, etc. all go in
project.base.path.features.<feature name>
. I put non-Android non-feature stuff in individual packages within
project.base.path.core
2