Android library design and customization

I have the following situation and I really don't know how to solve it. We have a library module that we use in our application , but will also release this library for end customers . The problem is that the library doesn't have to include all files and all methods in both cases.

So, imagine the following case:

  • class A with methods A :: a1 (), A :: a2 ()
  • class B with methods B :: b1 (), B :: b2 ()
  • class C with methods C :: c1 (), C :: c2 ()

I would like to get the following result:

  • in the case of our application - the library should include all classes with all methods
  • in the case of end users - I would like for example. to remove class C and remove method B :: b2 () from library

How can I do this on Android? On iOS, this is a fairly simple problem as you can simply define different header files for different configurations. In this case, the implementation file can include all methods, etc., and you just configure everything with the appropriate header files.

Hope someone can help me! :)

+3


source to share





All Articles