Commit 5362bc9
committed
feat(app): Remove in-app uninstallation and refine downgrade handling
This commit removes the ability to uninstall applications directly from the app's interface across Android and Desktop platforms. It also refines the downgrade process by replacing the automatic uninstall prompt with a manual instruction message.
- **feat(core)**: Removed `uninstall` method from the `Installer` interface and its Android/Desktop implementations.
- **feat(app)**: Removed `UninstallApp` and `OnUninstallApp` actions from `DetailsViewModel` and `AppsViewModel`.
- **ui(details)**: Simplified `SmartInstallButton` to only show an "Open" button when the same version is installed, removing the split "Uninstall/Open" layout.
- **ui(details)**: Replaced the `ShowDowngradeWarning` dialog in `DetailsRoot` with a simple snackbar message instructing the user to uninstall manually.
- **ui(apps)**: Removed the uninstall icon button from the installed apps list.
- **fix(network)**: Hardened `GitHubClientProvider` initialization by adding a 1.5s timeout and `runCatching` when fetching proxy configurations to prevent potential startup hangs.
- **i18n**: Updated strings across all supported languages to reflect the removal of uninstallation features and add new proxy-related error/status messages.
- **chore(android)**: Removed `REQUEST_DELETE_PACKAGES` permission from `AndroidManifest.xml`.
- **chore**: Deleted `feature/settings/CLAUDE.md`.1 parent 8a7e5ca commit 5362bc9
26 files changed
Lines changed: 147 additions & 367 deletions
File tree
- composeApp/src/androidMain
- core
- data/src
- androidMain/kotlin/zed/rainxch/core/data/services
- commonMain/kotlin/zed/rainxch/core/data/di
- jvmMain/kotlin/zed/rainxch/core/data/services
- domain/src/commonMain/kotlin/zed/rainxch/core/domain/system
- presentation/src/commonMain/composeResources
- values-bn
- values-es
- values-fr
- values-hi
- values-it
- values-ja
- values-kr
- values-pl
- values-ru
- values-tr
- values-zh-rCN
- values
- feature
- apps/presentation/src/commonMain/kotlin/zed/rainxch/apps/presentation
- details/presentation/src/commonMain/kotlin/zed/rainxch/details/presentation
- components
- settings
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
Lines changed: 0 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | 183 | | |
198 | 184 | | |
199 | 185 | | |
| |||
Lines changed: 25 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
131 | 135 | | |
132 | 136 | | |
133 | 137 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | 59 | | |
65 | 60 | | |
66 | 61 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | 31 | | |
34 | 32 | | |
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
354 | | - | |
| 353 | + | |
355 | 354 | | |
356 | | - | |
357 | | - | |
358 | | - | |
| 355 | + | |
359 | 356 | | |
360 | 357 | | |
361 | | - | |
362 | 358 | | |
363 | 359 | | |
364 | 360 | | |
| |||
386 | 382 | | |
387 | 383 | | |
388 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
389 | 390 | | |
390 | 391 | | |
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
319 | | - | |
| 318 | + | |
320 | 319 | | |
321 | | - | |
322 | | - | |
323 | | - | |
| 320 | + | |
324 | 321 | | |
325 | 322 | | |
326 | | - | |
327 | 323 | | |
328 | 324 | | |
329 | 325 | | |
| |||
346 | 342 | | |
347 | 343 | | |
348 | 344 | | |
349 | | - | |
| 345 | + | |
350 | 346 | | |
351 | | - | |
| 347 | + | |
352 | 348 | | |
353 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
354 | 355 | | |
355 | 356 | | |
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
319 | | - | |
| 318 | + | |
320 | 319 | | |
321 | | - | |
322 | | - | |
323 | | - | |
| 320 | + | |
324 | 321 | | |
325 | 322 | | |
326 | | - | |
327 | 323 | | |
328 | 324 | | |
329 | 325 | | |
| |||
351 | 347 | | |
352 | 348 | | |
353 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
354 | 355 | | |
355 | 356 | | |
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
354 | | - | |
| 353 | + | |
355 | 354 | | |
356 | | - | |
357 | | - | |
358 | | - | |
| 355 | + | |
359 | 356 | | |
360 | 357 | | |
361 | | - | |
362 | 358 | | |
363 | 359 | | |
364 | 360 | | |
| |||
386 | 382 | | |
387 | 383 | | |
388 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
389 | 391 | | |
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
350 | | - | |
| 349 | + | |
351 | 350 | | |
352 | | - | |
353 | | - | |
354 | | - | |
| 351 | + | |
355 | 352 | | |
356 | 353 | | |
357 | | - | |
358 | 354 | | |
359 | 355 | | |
360 | 356 | | |
| |||
387 | 383 | | |
388 | 384 | | |
389 | 385 | | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
390 | 391 | | |
391 | 392 | | |
0 commit comments