chore: check smali descriptors and toggle keys against the extension at build time #116
No reviewers
Labels
No labels
area/architecture
area/build-ci
area/bytecode
area/code-quality
area/docs
area/extension
area/fingerprint
area/security
area/tests
Bug report
Feature request
review
sev/low
sev/medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midas/midas-patches!116
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "review/78-contract-check"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #105, fixes #78.
buildAndroidnow depends on:patches:test, which runsExtensionContractTest(patches/src/test/kotlin/.../contract/):Lnl/midasvo/extension/...;class,->method(desc)and->field:Typein the Kotlin patches (with same-fileconst vals,$CONSTtemplates and string joins resolved) must exist in the compiled extension, public, and static forinvoke-static/sget/sput;MidasToggle(key = ...),toggleKey = ...) must be registered inMidasSettings.javaand vice versa; explicit allow-list with reasons, stale entries fail.Failures name the Kotlin file:line. Because CI, the release and the app update check all run
buildAndroid, no workflow change is needed.Proof (temporary mutations, reverted): a changed descriptor in HideReviewPromptsPatch.kt and a misspelt
hide_surveysboth failed the build with file:line messages. Clean tree: all green, no allow-list entries needed.Limitations: checks the javac classes, not the final dex; only same-file
const vals are resolved.🤖 Generated with Claude Code