Commit 44044aa
committed
feat: migrate downloads to public "Downloads/GitHub Store" directory
- Update `AndroidFileLocationsProvider` to use the public `DIRECTORY_DOWNLOADS` directory instead of app-private external storage.
- Modify `userDownloadsDir()` to return the same public path as `appDownloadsDir()`.
- Update `filepaths.xml` to include the new public path under `Download/GitHub Store/` for FileProvider access.
- Rename the existing private path to `ghs_legacy_downloads` in `filepaths.xml` to support migration from older versions.
- Ensure the "GitHub Store" subdirectory is created automatically within the public Downloads folder.1 parent 95f2125 commit 44044aa
2 files changed
Lines changed: 11 additions & 4 deletions
File tree
- composeApp/src/androidMain/res/xml
- core/data/src/androidMain/kotlin/zed/rainxch/core/data/services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
11 | | - | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
0 commit comments