Package the v5 rules baseline with Context initialization - #51
Merged
Merged
Conversation
zhaobozhen
force-pushed
the
codex/rules-v5-reader
branch
from
September 20, 2026 06:28
462bc6e to
e1b9caa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.labelEn. EachgetRule(..., 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.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).