0

I made an android library "messages" that contain classes of messages shared between a client and a server.

I made an App "server" with the library "messages" in dependencies. I can see the classes of "messages"

I made an other android library "client" with the library "messages" in dependencies. I can see classes of "messages"

I made a "Sample" app with library "client" in dependencies. I would like to see classes of "messages" in this app without include the library "messages". I would like to use the classes of "messages" contained in library "client".

Is that possible?

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Zanifu
  • 51
  • 4
  • 2
    "I made an other android library "client"": what did you do exactly? Was this library deployed to a Maven repository? Or is this all in the same project? How did you specify the dependencies? – Henry Nov 07 '16 at 10:00
  • It's a local library. The final goal is to give the library "Client" to someone who want to communicate with the "server". I would like he doesn't have to include 2 libraries but just the library "client" – Zanifu Nov 07 '16 at 11:02
  • I was asking for the details because this should normally work out of the box. – Henry Nov 07 '16 at 11:35
  • You should show the folder structure of your application and the Gradle files. You need to include the library to reference the classes – OneCricketeer Nov 09 '16 at 08:19

1 Answers1

0

See that!

However, as you explain, I advise you to make your messages library abstract and unknown from sample. You should keep reference of this lib only in client and server. If you really need to use messages in sample, add dependencies, but that's mean your client/server are not totally autonomous for process (messages should be totally transparent).

Community
  • 1
  • 1
N0un
  • 868
  • 8
  • 31