YUNOVA · Android Development · Module 13: Production architecture
Storing tokens securely and R8 shrinking
Storing tokens securely and R8 shrinking
Key points
- Keep tokens out of plain SharedPreferences; protect them with keys in Android Keystore.
- R8 shrinks, optimises and obfuscates code in release builds.
- Keep rules stop R8 removing classes used through reflection.