From c66d30af19f44351173f69d6c38d2cc5646886be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Orzech?= Date: Sat, 31 Jan 2026 02:16:47 +0100 Subject: [PATCH] Release v1.2: Fix login crash with lazy TokenStorage initialization - Use lazy initialization for EncryptedSharedPreferences - Defer MasterKey and crypto setup until first actual use - Prevents ParameterizedType reflection errors during Hilt injection - Bump version to 1.2 --- .idea/compiler.xml | 2 +- .idea/misc.xml | 2 +- README.md | 5 +++++ app/build.gradle.kts | 4 ++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.idea/compiler.xml b/.idea/compiler.xml index b86273d..b589d56 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 74dd639..3b0be22 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,7 +1,7 @@ - + diff --git a/README.md b/README.md index 8c8a04f..923f6b2 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,11 @@ Contributions are welcome! Here's how you can help: ## Changelog +### v1.2 (January 2026) +- **Fixed**: Login crash caused by `ParameterizedType` casting error at runtime +- **Improved**: TokenStorage now uses lazy initialization for EncryptedSharedPreferences +- **Stability**: Deferred crypto initialization prevents reflection errors during Hilt injection + ### v1.1 (January 2026) - **Fixed**: ProGuard/R8 minification crash with `ParameterizedType` casting error - **Improved**: Added proper ProGuard rules for Google Tink (security-crypto dependency) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 0f0b72d..90a0695 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -14,8 +14,8 @@ android { applicationId = "com.fastmask" minSdk = 26 targetSdk = 34 - versionCode = 2 - versionName = "1.1" + versionCode = 3 + versionName = "1.2" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables {