'How to provide an Android library without exposing the source code
Sometimes when you debug an Android library code, you can see the library's implementation, but there are other libraries where when you try to check the implementation of any function, you will see that the body of all the functions contains one line of code that throws an exception (Somehow hiding the real implementation). I want to do that in a commercial library, I tried R8 but the implementation is still accessible. Anyone can help or give me a hint ?
Note: I checked all the links suggested by Stackoverflow before posting this question.
Thanks in advance.
Solution 1:[1]
Apparently, there is no way to achieve that except by using very pricy libraries such as DexGuard, however, you can use abstraction to hide your code so only interfaces are exposed.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ahmad Mahmoud Saleh |
