Commit 4f99a47
committed
fix: Remove old ios file fallback
This change removes the fallback which would read from the very old location from dotnet days on ios.
This means that any user who is still on the old maui version (over a year old) and updates, their data will not carry over. Their data is not deleted yet, so if there is a bug report we can bring it back.
This old behaviour reading caused an issue where if we removed a value from the keyValueStore, it would not remove it from the old location, meaning when we read it again it would load extremely old data.
This lead to an issue with loading the current session state on ios apps which have transitioned from the old app to the new.
Basically the old version of the app which was essentially a web app (maui+blazor) used to write files in a different location to where the new react native app does, but only on ios. I added a compatibility layer where it would read those old files but not write them.
Recently when I changed the format from proto to json, what would happen is from file CURRENT_SESISON_VERSION LiftLog would read the what type of file it is (proto or JSON). Then from CURRENT_SESSION it would read the actual current session file. Now unfortately in ios it would actually read CURRENT_SESSION which would say it is the new format, but when it would read CURRENT_SESSION, that file is not there (as there is no current session, it is complete), but then it would fallback to CURRENT_SESSION_OLD_LOCATION where there WAS a file there from the maui version of liftlog. It tries to read the proto file as json and explodes.
I think it's been long enough, we don't need that fallback.
fixes: #8601 parent 883bd96 commit 4f99a47
1 file changed
Lines changed: 0 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 10 | | |
17 | 11 | | |
18 | 12 | | |
| |||
21 | 15 | | |
22 | 16 | | |
23 | 17 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 18 | | |
29 | 19 | | |
30 | 20 | | |
| |||
62 | 52 | | |
63 | 53 | | |
64 | 54 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | 55 | | |
70 | 56 | | |
71 | 57 | | |
| |||
89 | 75 | | |
90 | 76 | | |
91 | 77 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 78 | | |
104 | 79 | | |
105 | 80 | | |
0 commit comments