Skip to content

refactor: more extractions for :widgets submodule - #21532

Draft
david-allison wants to merge 8 commits into
ankidroid:mainfrom
david-allison:widgets-2
Draft

refactor: more extractions for :widgets submodule#21532
david-allison wants to merge 8 commits into
ankidroid:mainfrom
david-allison:widgets-2

Conversation

@david-allison

@david-allison david-allison commented Aug 16, 2026

Copy link
Copy Markdown
Member

DRAFT:


Note

Assisted-by: Claude Fable 5

Purpose / Description

  • fromDeckId and fromCurrentDeck
  • launchCatching
  • ChangeManager

Fixes

Approach

Standard extactions

How Has This Been Tested?

⚠️ Trusting tests

Checklist

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • UI Changes: You have tested your change using the Google Accessibility Scanner

* onCreate() returns early if `setupAnkiDroidApp()` fails
* ContentProvider performs an early init

We don't want these to crash.

Trade-off: a missed `setReporter()` call now degrades to warnings
instead of failing fast.

The rationale was also to allow tests to run without needed a no-op
crash report handler.

Assisted-by: Claude Fable 5
@david-allison david-allison added the Blocked by dependency Currently blocked by some other dependent / related change label Aug 16, 2026
097c7cd` moved `CollectionManager` down, so these methods can now be
moved to `:anki-common`.

More work for the for `:widgets` multimodule migration

Part of 20737

Assisted-by: Claude Fable 5
Part of 20737

Assisted-by: Claude Fable 5
Part of 20737

Assisted-by: Claude Fable 5
For the `:widget` feature module extraction

Part of 20737

Assisted-by: Claude Opus 4.8
Assisted-by: Claude Fable 5
(cherry picked from commit 28885ffe7d677a28397b5ffddc32561d29ce4cca)
TestChangeSubscriber moves to testFixtures, and ChangeManagerTest
uses its ChangeCounter directly

Part of 20737

Assisted-by: Claude Fable 5
For the widget feature module extraction

Part of 20737

Assisted-by: Claude Opus 4.8
(cherry picked from commit 28885ffe7d677a28397b5ffddc32561d29ce4cca)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Blocked by dependency Currently blocked by some other dependent / related change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Architecture Discussion: Module Extraction

1 participant