2023-03-15 16:36:12 +00:00
|
|
|
// This logs in the native logging implementation, e.g. logcat
|
|
|
|
console.log("Hello from Vendetta!");
|
|
|
|
|
|
|
|
(async () => {
|
|
|
|
try {
|
|
|
|
await (await import("./src/index.ts")).default();
|
|
|
|
} catch (ex) {
|
2023-03-31 14:46:55 +00:00
|
|
|
console.log(ex?.stack ?? ex.toString());
|
2023-03-15 16:36:12 +00:00
|
|
|
const dialog = [
|
|
|
|
"Failed to load Vendetta!\n",
|
2023-03-31 14:46:55 +00:00
|
|
|
`Build Number: ${(nativeModuleProxy.InfoDictionaryManager ?? nativeModuleProxy.RTNClientInfoManager).Build}`,
|
2023-03-15 16:36:12 +00:00
|
|
|
`Vendetta: ${__vendettaVersion}`,
|
|
|
|
ex?.stack || ex.toString(),
|
|
|
|
].join("\n");
|
|
|
|
alert(dialog);
|
|
|
|
}
|
2023-03-31 14:46:55 +00:00
|
|
|
})();
|