im trying to create my little library. But i have little problem. I cant right understand how to hide some classes/methods from public usage. Say i have structure :
-myPackage.com
-classA (public class example : public classA {...})
-classB (just a class example : class classB {...}
in this way when i add my aar file to android project. I can use from library only classA. classB hided(invisible for developer) and i cant call him (its ok). But classA can use functions from classB . Because its in same package. And its ok. So how correctly create classes in another packages ?
-myPackage.com
-myHelpPackage
-classC (public class example: public class classC {...}
-classD (just a class example: class classD {...}
-classA (public class example : public classA {...})
-classB (just a class example : class classB {...}
in this way i have two public classes which developer can call
classA
classC
classD visible only for classA. So i cant call classD(functions) from classA. Main question : how to achive it ? I want to have only one classA to call. classC is ok. classD and classB should be invisible for developer. But visible only for classA. Anyone can help me with this ?