Skip to content

Commit

Permalink
Suppress deprecation warning for use of Build.CPU_ABI (flutter#8154)
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-simmons authored Mar 13, 2019
1 parent fdad56f commit fcc66fc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,9 @@ private String getAPKPath() {
}
}

@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));
Expand Down

0 comments on commit fcc66fc

Please sign in to comment.