Only show outdated SDK warning for android devices
Summary: This exists to warn people about an incompatibility with old android sdk's, there's no need for the warning on other OS's even if the sdk is old. Reviewed By: mweststrate Differential Revision: D19499587 fbshipit-source-id: 5468fffcc0265bb122cf149f49b9af86ddd3c84e
This commit is contained in:
committed by
Facebook Github Bot
parent
e47f6a4ebe
commit
5a19004732
@@ -49,7 +49,7 @@ function appNameWithUpdateHint(query: ClientQuery): string {
|
||||
// section because it refers to the name given by client which is not fixed
|
||||
// for android emulators, so it is indicated as outdated so that developers
|
||||
// might want to update SDK to get rid of this connection swap problem
|
||||
if (!query.sdk_version || query.sdk_version < 3) {
|
||||
if (query.os === 'Android' && (!query.sdk_version || query.sdk_version < 3)) {
|
||||
return query.app + ' (Outdated SDK)';
|
||||
}
|
||||
return query.app;
|
||||
|
||||
Reference in New Issue
Block a user