mirror of
https://github.com/morluto/rea.git
synced 2026-11-16 03:33:25 +00:00
* refactor(jadx): read the bridge identity from the bridge source it launches * fix(jadx): read the bridge identity before launching the bridge * fix(jadx): read the bridge identity from the outer class's own fields * fix(jadx): read the bridge identity only from the ReaJadxBridge class body * fix(jadx): return a malformed packaged bridge source as a read result JadxRelease.ts is loaded by fixture scripts without a build, so it cannot import src/domain modules (the ParseFailure import broke the android-metadata job and the spawned JADX fixture). The identity read now returns a Result-shaped value; JadxProvider refuses a malformed packaged source as AnalysisCapabilityUnavailableError before acquiring resources, and tests and the fixture unwrap it.
12 lines
381 B
TypeScript
12 lines
381 B
TypeScript
import {
|
|
jadxBridgeIdentity,
|
|
type JadxBridgeIdentity,
|
|
} from "../../src/android/JadxRelease.js";
|
|
|
|
/** The packaged bridge identity; a test fails if the packaged source is malformed. */
|
|
export const packagedJadxBridgeIdentity = (): JadxBridgeIdentity => {
|
|
const identity = jadxBridgeIdentity();
|
|
if (!identity.ok) throw new Error(identity.error);
|
|
return identity.value;
|
|
};
|