chore: check the app stubs against a decompiled app #121
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!121
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "review/93-stub-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 #93.
scripts/check-stubs.sh(+scripts/StubCheck.java, JDK source launcher) checks a jadx decompile against the stubs: every stub class exists; every member the extension's main code references (fromjavap -c, exact descriptors) exists public with the same types; stubtoString()property names are a subset of the app's; every property name KubusModels looks up appears in a Kubus modeltoString(). Exit 0/1/2. Test-only stub members are ignored because only referenced members are checked.Results: Kubus (Tubantia 9.22.0) 93 classes / 26 members OK; Edition (Volkskrant 7.53.1, Trouw 7.52.0) 59 / 41 OK; one stub fix (
ListComponent.Properties.toString()printeditems=, app hascontent=; no runtime impact). Negative test on doctored sources reported all three mutations. Every stub names its source app version; update-app-version skill step 2b runs the script; ProfileMenu docs expanded.🤖 Generated with Claude Code
Merged into dev as
fa2a944(merged locally together with other review PRs, so Forgejo didn't mark it merged).Pull request closed