From b77d7cbef8c401fcb5bf22b54ace3c6cbbf3d492 Mon Sep 17 00:00:00 2001 From: pq Date: Fri, 12 Dec 2025 15:46:52 -0800 Subject: [PATCH] [CQ] migrate off slated-for-removal `SystemInfo` access --- src/io/flutter/utils/JxBrowserUtils.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/io/flutter/utils/JxBrowserUtils.java b/src/io/flutter/utils/JxBrowserUtils.java index 70fb016149..07ddbac6f1 100644 --- a/src/io/flutter/utils/JxBrowserUtils.java +++ b/src/io/flutter/utils/JxBrowserUtils.java @@ -25,18 +25,22 @@ public String getPlatformFileName() throws FileNotFoundException { String name = ""; final boolean is64Bit = Objects.requireNonNull(CpuArch.CURRENT).width == 64; if (SystemInfo.isMac) { - if (SystemInfo.isAarch64){ + if (CpuArch.isArm64()) { name = "mac-arm"; - } else { + } + else { name = "mac"; } - } else if (SystemInfo.isWindows) { + } + else if (SystemInfo.isWindows) { if (CpuArch.is32Bit()) { name = "win32"; - } else if (is64Bit) { + } + else if (is64Bit) { name = "win64"; } - } else if (SystemInfo.isLinux && is64Bit) { + } + else if (SystemInfo.isLinux && is64Bit) { name = "linux64"; }