Skip to content

Commit bfae8d1

Browse files
authored
[CQ] migrate off slated-for-removal SystemInfo access (#8653)
<img width="2706" height="244" alt="image" src="https://github.com/user-attachments/assets/5c9bf160-0793-4943-94ea-eef30a713580" /> https://plugins.jetbrains.com/plugin/9212-flutter/edit/versions/dev/909537#verification-results I'm pretty sure this is behavior-preserving but could use another set of eyes. --- <details> <summary>Contribution guidelines:</summary><br> - See our [contributor guide]([https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md](https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Dart contributions to our repos should follow the [Dart style guide](https://dart.dev/guides/language/effective-dart) and use `dart format`. - Java and Kotlin contributions should strive to follow Java and Kotlin best practices ([discussion](#8098)). </details>
1 parent ffe00a7 commit bfae8d1

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/io/flutter/utils/JxBrowserUtils.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,22 @@ public String getPlatformFileName() throws FileNotFoundException {
2525
String name = "";
2626
final boolean is64Bit = Objects.requireNonNull(CpuArch.CURRENT).width == 64;
2727
if (SystemInfo.isMac) {
28-
if (SystemInfo.isAarch64){
28+
if (CpuArch.isArm64()) {
2929
name = "mac-arm";
30-
} else {
30+
}
31+
else {
3132
name = "mac";
3233
}
33-
} else if (SystemInfo.isWindows) {
34+
}
35+
else if (SystemInfo.isWindows) {
3436
if (CpuArch.is32Bit()) {
3537
name = "win32";
36-
} else if (is64Bit) {
38+
}
39+
else if (is64Bit) {
3740
name = "win64";
3841
}
39-
} else if (SystemInfo.isLinux && is64Bit) {
42+
}
43+
else if (SystemInfo.isLinux && is64Bit) {
4044
name = "linux64";
4145
}
4246

0 commit comments

Comments
 (0)