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
This commit is contained in:
Paweł Orzech 2026-01-31 02:16:47 +01:00
parent 5d81c247aa
commit c66d30af19
No known key found for this signature in database
4 changed files with 9 additions and 4 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="21" />
<bytecodeTargetLevel target="17" />
</component>
</project>

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="jbr-21" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="jbr-21" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">

View file

@ -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)

View file

@ -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 {