Repository navigation
fix(mobile): bound framework conventions to path segments - #1506
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
TL;DR: This PR fixes the Android half of #1489 in my test. On main, I used WordleSolver (GPL-3.0-only) from F-Droid. I rebuilt it with four fake native libraries, then ran
On main, Real framework names still matchA second copy has
Tests and Node versions
On main, the test fails at its Android check. Main also added Not runEdit: Edit: the Apple half ran with fake
Thanks, thangldw, for the fix and the acceptance test. Edit: The sources for WordleSolver do not agree on its licence. F-Droid says Commandsrea inspect-artifact solver-libs.apk --format json
rea project-android-application-graph '{"inventory_evidence":[<substeps[0].evidence>]}' --format json
npm run test:focused -- tests/acceptance/applications/mobileFrameworkConventions.test.tsTest setup
🤖 Generated with Claude Code (Opus 5.5) 🦊 |
|
TL;DR: This PR fixes the Apple half of #1489 too. On main, names like I built 30 small fake Names that only contain a conventionEach row is its own
On the PR, every row above is generic. The family list is just Real framework names still match on this PR. The table is in a fold below. What else changed
Still not runEdit:
Thanks, thangldw, for fixing the Apple side in the same PR, and for the clear new limitation lines. Real names, main and this PR
Node versions and plist formats
XML and binary Noticed, not part of this PRREA lists Commandsrea inspect-artifact neg-myapp.ipa --format json
rea project-apple-application-graph graphin.json --format json
# graphin.json = {"inventory_evidence":[<substeps[0].evidence>]}Test setup
🤖 Generated with Claude Code (Opus 5.5) 🦊 |
Co-authored-by: morluto <[email protected]>
|
TL;DR: A late note for the record. Before the last commit, Both ran on Node 24.18.0 in a full clone. Lint printed warnings but no errors. Not run
Test setup
🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
Closes #1489.
Android and Apple inventory projections used substring matches to infer framework families and bridge bases. For example,
libcommunity.sowas labelled Unity andMyApp.frameworkwas labelled Flutter. Apple also inferred Swift/Objective-C from any dylib or framework-shaped path.Use one bounded convention matcher per platform for both runtime-family hints and bridge bases. Android matches complete known library filenames; Apple matches complete known framework segments. Generic
App.frameworkno longer identifies Flutter by itself, and generic dylib/framework paths no longer establish Swift/Objective-C. Keep the existing result schemas and inventory/candidate coverage semantics. Apple limitations now explicitly identify runtime families as inventory-derived hints and explain that a bridge basis comes only from the native path and repeats for each paired script.Validation:
npm run check,npm run docs:check,npm run verify:test-discovery, andgit diff --checkpassed.The checks establish portable inventory projection behavior. They do not execute Android/iOS apps, decode language metadata, or verify actual framework loading. Implementation was developed with AI-agent assistance and verified with the checks above.