Skip to content

Commit

Permalink
Add v0.3.11 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedon-dev committed Jan 22, 2025
1 parent 0cb8ff9 commit 5107bb2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions lib/services/shared_prefs_manager_upgrades.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ bool startUpgrade(String currentVersion) {
switch (currentVersion) {
case "0.3.9":
v0_3_10();
case "0.3.10":
v0_3_11();
default:
logger.e("Unknown version: $currentVersion. Not changing anything");
return true;
Expand All @@ -30,4 +32,10 @@ bool startUpgrade(String currentVersion) {
void v0_3_10() {
logger.i("Upgrading settings to 0.3.10");
throw Exception("Forcing a full settings reset");
// No need to continue chain, as we are forcing a reset
}

// This is just a test update, nothing needs to actually be updated
void v0_3_11() {
logger.i("Upgrading settings to 0.3.11");
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: hedon_viewer
description: "Hedon haven"
publish_to: 'none'
version: 0.3.10
version: 0.3.11
environment:
sdk: '>=3.2.6 <4.0.0'

Expand Down

0 comments on commit 5107bb2

Please sign in to comment.