Hide project package

Hi, guys!
I have been asked to create 2 parallel projects, A and B, sharing the same class structure in package xxx.com.xxx.gameslib.
I’d like to exclude the duplication of the class structure, I should maintain both of them with the same updates and would be a waste of time.

Now the problem is that I need to “hide” this package in one of the two projects, B: if the A projects triggers an error I will see in the debug window “xxx.com.xxx.gameslib”, and if someone will decompile project A will see the same package structure.
Now project A is not a problem… I want to know if there is a way, at compile time or whatever, to “hide” the package “xxx.com.xxx.gameslib” for project B, as if the package was i.e. “wtf” or “xxx.net.dog”.

Is it possible or totally impossible?
Thanks