YUNOVA · Android Development · Module 13: Production architecture

Storing tokens securely and R8 shrinking

Notes for offline study · 30 November 2026

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.

Free on YUNOVA · yunova.in · Sign in to add your own lesson notes to this sheet.

Notes: Storing tokens securely and R8 shrinking | YUNOVA