ankidroid / ankidroid/Anki-Android

architecture: Improve collection creation logic

Aperta
#21,204 1 commento 0 reazioni 1 assegnatario Rivendicata da @david-allison Vedi su GitHub
Keep Open
Lingua principale
Kotlin
Stelle
11.8k
Fork
2.9k
Merge medio
2g 3h
PR unite (30g)
171

Descrizione

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`

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.