Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform.operatingSystem returns 'android' on x64 host (3.13.0 or later) #212

Closed
HidenoriMatsubayashi opened this issue Aug 29, 2023 · 1 comment · Fixed by #213
Closed
Labels
bug Something isn't working x64 Topics to support x64 target

Comments

@HidenoriMatsubayashi
Copy link
Collaborator

HidenoriMatsubayashi commented Aug 29, 2023

In x86 and release mode, Platform.operatingSystem returns 'android'. (3.13.0 or later)
(returns 'linux' in 3.10.6)

From sony/flutter-elinux-plugins#78 (comment)

Related issue: #211

@HidenoriMatsubayashi
Copy link
Collaborator Author

HidenoriMatsubayashi commented Aug 29, 2023

For on arm64, it returns linux.

@HidenoriMatsubayashi HidenoriMatsubayashi changed the title Platform.operatingSystem returns 'android' (3.13.0 or later) Platform.operatingSystem returns 'android' on x64 host (3.13.0 or later) Aug 29, 2023
HidenoriMatsubayashi added a commit that referenced this issue Aug 29, 2023
This change fixes an issue that `Platform.operatingSystem` returns Android on x64 hosts and when cross-building for arm64 targets on x64 hosts. To fix the issue, use the gen_snapshot of linux and elinux instead of Android's one.

Fixed #212

Signed-off-by: Hidenori Matsubayashi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working x64 Topics to support x64 target
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant