Suppress deprecation warning for use of Build.CPU_ABI (flutter/engine#8154)

This commit is contained in:
Jason Simmons 2019-03-13 14:36:35 -07:00 committed by GitHub
parent bb69b40272
commit ff7d13c6ed

View File

@ -409,8 +409,9 @@ class ResourceExtractor {
}
}
@SuppressWarnings("deprecation")
private static String[] getSupportedAbis() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && Build.SUPPORTED_ABIS.length > 0) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
return Build.SUPPORTED_ABIS;
} else {
ArrayList<String> cpuAbis = new ArrayList<String>(asList(Build.CPU_ABI, Build.CPU_ABI2));