-
Notifications
You must be signed in to change notification settings - Fork 28.8k
[ Tool ] Report Android x86 target devices as unsupported #170282
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
base: master
Are you sure you want to change the base?
Conversation
@jmagman does this look like roughly the right thing to do? Adding |
case 'x86_64': | ||
return TargetPlatform.android_x64; | ||
default: | ||
return TargetPlatform.android_arm; | ||
throw UnsupportedError('Unsupported Android architecture: $abi'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This API seems weird - it never could throw before, and UnsupportedError
shouldn't be caught.
I would expect this to either return null
, or to return TargetPlatform.unsupported
or keep returning android_arm
and use that a signal for "not supported" below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping and returning android_arm
means we need to keep handling that case in every switch on TargetPlatform
throughout the tool, so I'd really like to avoid doing that.
TargetPlatform.unsupported
might be an idea... let me try some things out.
No description provided.