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:
parent
5d81c247aa
commit
c66d30af19
4 changed files with 9 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="CompilerConfiguration">
|
<component name="CompilerConfiguration">
|
||||||
<bytecodeTargetLevel target="21" />
|
<bytecodeTargetLevel target="17" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
<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" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
|
|
||||||
|
|
@ -188,6 +188,11 @@ Contributions are welcome! Here's how you can help:
|
||||||
|
|
||||||
## Changelog
|
## 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)
|
### v1.1 (January 2026)
|
||||||
- **Fixed**: ProGuard/R8 minification crash with `ParameterizedType` casting error
|
- **Fixed**: ProGuard/R8 minification crash with `ParameterizedType` casting error
|
||||||
- **Improved**: Added proper ProGuard rules for Google Tink (security-crypto dependency)
|
- **Improved**: Added proper ProGuard rules for Google Tink (security-crypto dependency)
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ android {
|
||||||
applicationId = "com.fastmask"
|
applicationId = "com.fastmask"
|
||||||
minSdk = 26
|
minSdk = 26
|
||||||
targetSdk = 34
|
targetSdk = 34
|
||||||
versionCode = 2
|
versionCode = 3
|
||||||
versionName = "1.1"
|
versionName = "1.2"
|
||||||
|
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
vectorDrawables {
|
vectorDrawables {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue