Skip to content

Package the v5 rules baseline with Context initialization - #51

Merged
zhaobozhen merged 1 commit into
mainfrom
codex/rules-v5-reader
Sep 20, 2026
Merged

zhaobozhen merged 1 commit into
mainfrom
codex/rules-v5-reader

Conversation

@zhaobozhen

@zhaobozhen zhaobozhen commented Sep 18, 2026

Copy link
Copy Markdown
Member

Make the AAR own the only bundled v5 database and metadata. LCRules.init(Context) verifies and repairs that baseline; explicit activation of a valid newer download preserves the current reader on failure.

  • Keep the original seven-field Parcelable Rule. Cloud details and drawable/IconResMap icons remain unchanged.
  • Package Rules 45 with nullable labelEn. Each getRule(..., language = "en") selects Chinese for case-insensitive zh language tags (hyphen or underscore), English otherwise, and falls back to the original label when English is missing. No system-language dependency or cached language selection. Earlier eight-column v5 databases remain readable.
  • Keep one DB plus metadata in the AAR, with no detail JSON, SVG or duplicate ZIP. Baseline update automation lives in Bundle; pinned vector synchronization remains separate.

Validation: clean release build and test APK compilation passed; all 11 RuleReader tests passed on Pixel 9a, including all 2832 rows in both languages, preference changes, missing English, old schema fallback, Parcelable, repair and failed activation. Two tooling tests, producer hash checks, 174-icon synchronization and diff checks passed. App integration is tracked separately; this update has not been published.

Release dependency: first publish Rules 45 using bootstrap source e48a42108e4ec9caba2d7d808e8731742a01dac7, then publish Bundle before switching the App from its verified local AAR. Rules English-label PR: LibChecker/LibChecker-Rules#1388 (initial migration: #1386).

@zhaobozhen
zhaobozhen force-pushed the codex/rules-v5-reader branch from 462bc6e to e1b9caa Compare September 20, 2026 06:28
@zhaobozhen
zhaobozhen merged commit ccaf38a into main Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant