2

I have some modules(facebook, twitter, vk). I want to develop module for auth using social libs, but facebook and others develop sdk as modules. I want to compose all modules to one module which I can add to application.

How can i compose all modules to one module? Are there submodules?

Hassaan Rabbani
  • 2,469
  • 5
  • 30
  • 55
sagus_helgy
  • 1,417
  • 1
  • 18
  • 30

1 Answers1

0

You can have four modules inside your project

Module 1(Facebook)

Module 2(Twitter)

Module 3

  Depends on Module 1 and Modules 2

Main Module

  Depends on Module 3

in future if you want to include another module in your project you will not have to change build scripts of your main module.

EDIT :

Now your Module 3 is an independent module which you can use anywhere you want to integrate all these sub-modules like Module 1, Module 2,...so on.

I have never tried but you can refer this link if you want to use same module among multiple projects or if your Module 3 doesn't lies inside your project directories :

Android studio add external project to build.gradle

Community
  • 1
  • 1
Piyush Agarwal
  • 25,608
  • 8
  • 98
  • 111