You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suggest sanitizing savedVersion variable with the same logic as that of existingVersion, this will also ensure value saved using previous version of once will decode version information correctly.
The text was updated successfully, but these errors were encountered:
Camerash
changed the title
runOnNewVersion saves version numbers with non-numerical values and does not remove them upon retrievalrunOnNewVersion saves version numbers with non-numerical values and does not sanitize them upon retrieval
Nov 2, 2023
In version
1.5.4
the logic for version number retrieval inrunOnNewVersion
is:Where as in
1.5.3
it looks like:In the newer version
1.5.4
the sanitation for removing non-numerical insavedVersion
is removed.However within
runOnNewVersion
the library is saving also non-sanitized version number toSharedPreference
:Therefore on version check it will still throw error:
I suggest sanitizing
savedVersion
variable with the same logic as that ofexistingVersion
, this will also ensure value saved using previous version ofonce
will decode version information correctly.System Info:
flutter
:3.13.6
once
:1.5.4
package_info_plus
:4.1.0
The text was updated successfully, but these errors were encountered: