ankidroid / ankidroid/Anki-Android

architecture: Improve collection creation logic

未关闭
#21,204 1 条评论 0 个 reaction 已指派 1 人 已被 @david-allison 认领 在 GitHub 查看
Keep Open
主要语言
Kotlin
星标
11.8k
派生
2.9k
平均合并
2 天 3 小时
30 天内合并 PR
171

描述

Over the years, we have had many issues with 'startup paths' aside from `AnkiDroidApp` -> `IntentHandler` -> `DeckPicker`

In addition, we want to make this more complicated, by making `MANAGE_EXTERNAL_STORAGE` optional.

* https://github.com/ankidroid/Anki-Android/issues/13574
* https://github.com/ankidroid/Anki-Android/issues/16786

**Aims:**
* In the `full` flavor: `MANAGE_EXTERNAL_STORAGE` becomes optional
* The collection directory creation is deferred until a user has made the above decision
* All launchable activities need to handle 'user has not decided on `MANAGE_EXTERNAL_STORAGE`'
* `withCol`/`getColUnsafe`/etc... will be modified to throw, until this decision has been made
* This means that setting the collection path is explicit, no longer implicitly performed in `withCol`

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。