2023-04-05 19:54:14 +00:00
|
|
|
import { ClientInfoManager } from "@lib/native";
|
|
|
|
|
|
|
|
// This logs in the native logging implementation, e.g. logcat
|
|
|
|
console.log("Hello from Vendetta!");
|
|
|
|
|
2023-04-05 20:18:22 +00:00
|
|
|
import(".").then((m) => m.default()).catch((e) => {
|
2023-04-05 19:54:14 +00:00
|
|
|
console.log(e?.stack ?? e.toString());
|
|
|
|
alert([
|
|
|
|
"Failed to load Vendetta!\n",
|
|
|
|
`Build Number: ${ClientInfoManager.Build}`,
|
|
|
|
// @ts-expect-error, replaced in build script
|
|
|
|
`Vendetta: ${__vendettaVersion}`,
|
|
|
|
e?.stack || e.toString(),
|
|
|
|
].join("\n"));
|
2023-04-05 20:18:22 +00:00
|
|
|
});
|