title: How to restrict class access in Android library project on basis of key?
body: <p>I have developed an android library having different functional modules. Any app who wants to use this library will have license key basis on that license key I have to restrict the use of other modules.</p>
  
  <p>Say for Example -<strong>XYZ SDK</strong> with <strong>1,2,3,4 module</strong> now app who wants to use XYZ SDK for the only 1&amp;4 module so according to license key will be generated, how can I prevent access to other modules (i.e 2&amp;3 in above case)?</p>