Commit ef4e29a
committed
Resolve Picocli InitializationException in release builds
R8 minification was aggressively stripping Picocli annotations (@command, @option) and renaming command classes, causing reflection to fail at runtime.
We add targeted ProGuard rules to ensure CLI stability:
- Preserved attributes required for reflection and annotations.
- Protected any class or member annotated with Picocli markers.
- Kept internal Picocli classes required for standard help mixins.
- Retained Gson IPC data models (CliRequest/Response) to prevent socket serialization failures in release builds.1 parent e267e15 commit ef4e29a
1 file changed
+17
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | | - | |
19 | 22 | | |
20 | | - | |
21 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
22 | 33 | | |
23 | 34 | | |
24 | 35 | | |
| |||
0 commit comments