Commit d187b02
committed
fix(storage): use regular param for removeStorageSync instead of rest param
removeStorageSync takes a single key string, same as getStorageSync.
Using rest params (...opts) incorrectly wrapped it as ["key"], causing
Android to call removeValueForKey with "[\"key\"]" instead of "key".
Change JS SDK from (...opts) to (opts), and align iOS/Harmony native
parsing to expect a string instead of an array.1 parent 7db5386 commit d187b02
3 files changed
Lines changed: 4 additions & 6 deletions
File tree
- fe/packages/service/src/api/core/storage
- harmony/dimina/src/main/ets/Bridges
- iOS/dimina/DiminaKit/Container/Api/Storage
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| |||
0 commit comments