Repository navigation
Commit 66f8be0
Refactor: Remove IDE SharedPreferences access, enforce plugin isolation
Removed getAppSharedPreferences() from PluginContext to enforce proper
data isolation. Plugins should only manage their own preferences via
getPluginSharedPreferences(), not access IDE internal settings.
Benefits:
- Enforces plugin data isolation
- Prevents unintended coupling with IDE preferences
- Reduces IDE API surface for plugins
- Plugins have dedicated storage for their settings
Addresses code review feedback from Daniel-ADFA:
'I think plugins should be able to manage their own sharepref,
they don't need to access the IDEs'
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>1 parent 09be6d2 commit 66f8be0
2 files changed
Lines changed: 1 addition & 19 deletions
File tree
- plugin-api/src/main/kotlin/com/itsaky/androidide/plugins
- plugin-manager/src/main/kotlin/com/itsaky/androidide/plugins/manager/context
Lines changed: 1 addition & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 43 | | |
53 | 44 | | |
54 | | - | |
| 45 | + | |
55 | 46 | | |
56 | 47 | | |
57 | 48 | | |
| |||
Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 37 | | |
47 | 38 | | |
48 | 39 | | |
| |||
0 commit comments