@specs-feup/alpakka
Version:
Alpakka is a [LARA Framework](https://github.com/specs-feup/lara-framework) source-to-source compiler for Android's [smali](https://github.com/google/smali) syntax. It enables the analysis and transformation of Android apps through APK files.
15 lines (13 loc) • 444 B
text/typescript
const prefix = "@specs-feup/alpakka/api/";
const coreImports: string[] = [];
const sideEffectsOnlyImports: string[] = ["Joinpoints.js"];
for (const sideEffectsOnlyImport of sideEffectsOnlyImports) {
await import(prefix + sideEffectsOnlyImport);
}
for (const coreImport of coreImports) {
const foo = Object.entries(await import(prefix + coreImport));
foo.forEach(([key, value]) => {
// @ts-ignore
globalThis[key] = value;
});
}