Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Feb 4, 2025
1 parent f789267 commit 408748b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions lib/src/init.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ Future<void> setupFirstLaunch() async {
final appVersion = Version.parse(pInfo.version);
final installedVersion = prefs.getString('installed_version');

// TODO remove this migration code after a few releases
if (installedVersion != null && Version.parse(installedVersion) < Version(0, 14, 2)) {
if (installedVersion != null && Version.parse(installedVersion) < Version(0, 14, 0)) {
// TODO remove this migration code after a few releases
_migrateThemeSettings();
_migrateHomePrefs();

_resetHomePrefs();
}

if (installedVersion == null || Version.parse(installedVersion) != appVersion) {
Expand All @@ -55,7 +56,7 @@ Future<void> setupFirstLaunch() async {
}
}

Future<void> _migrateHomePrefs() async {
Future<void> _resetHomePrefs() async {
final prefs = LichessBinding.instance.sharedPreferences;
try {
final stored = prefs.getString(PrefCategory.home.storageKey);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: lichess_mobile
description: Lichess mobile app V2
publish_to: "none"

version: 0.14.2+001402 # See README.md for details about versioning
version: 0.14.3+001403 # See README.md for details about versioning

environment:
sdk: '^3.7.0-209.1.beta'
Expand Down

0 comments on commit 408748b

Please sign in to comment.