Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit a2926842 authored by Simon Chan's avatar Simon Chan
Browse files

refactor: improve tree-shaking

parent ef0e1c6b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@
    },
    "dependencies": {
        "@yume-chan/adb": "workspace:^",
        "@yume-chan/async": "^2.2.0",
        "@yume-chan/async": "^4.0.0",
        "@yume-chan/event": "workspace:^",
        "@yume-chan/scrcpy": "workspace:^",
        "@yume-chan/stream-extra": "workspace:^",
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@
        "test": "run-test"
    },
    "dependencies": {
        "@yume-chan/async": "^2.2.0",
        "@yume-chan/async": "^4.0.0",
        "@yume-chan/event": "workspace:^",
        "@yume-chan/no-data-view": "workspace:^",
        "@yume-chan/stream-extra": "workspace:^",
+2 −2
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ export type LogId = (typeof LogId)[keyof typeof LogId];

const LogIdName =
    /* #__PURE__ */
    Object.fromEntries(Object.entries(LogId).map(([k, v]) => [v, k]));
    (() => Object.fromEntries(Object.entries(LogId).map(([k, v]) => [v, k])))();

// https://cs.android.com/android/platform/superproject/+/master:system/logging/liblog/include/android/log.h;l=73;drc=82b5738732161dbaafb2e2f25cce19cd26b9157d
export const AndroidLogPriority = {
@@ -96,7 +96,7 @@ export interface LogcatOptions {
    ids?: LogId[];
}

const NANOSECONDS_PER_SECOND = BigInt(1e9);
const NANOSECONDS_PER_SECOND = /* #__PURE__ */ BigInt(1e9);

// https://cs.android.com/android/platform/superproject/+/master:system/logging/liblog/include/log/log_read.h;l=39;drc=82b5738732161dbaafb2e2f25cce19cd26b9157d
export const LoggerEntry =
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@
        "test": "run-test"
    },
    "dependencies": {
        "@yume-chan/async": "^2.2.0"
        "@yume-chan/async": "^4.0.0"
    },
    "devDependencies": {
        "@types/node": "^22.7.7",
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@
        "prepublishOnly": "npm run build"
    },
    "dependencies": {
        "@yume-chan/async": "^2.2.0",
        "@yume-chan/async": "^4.0.0",
        "@yume-chan/event": "workspace:^",
        "@yume-chan/scrcpy": "workspace:^",
        "@yume-chan/stream-extra": "workspace:^",
Loading