From ff7d13c6edf786de9ba91785bbe9288fef93e885 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 13 Mar 2019 14:36:35 -0700 Subject: [PATCH] Suppress deprecation warning for use of Build.CPU_ABI (flutter/engine#8154) --- .../platform/android/io/flutter/view/ResourceExtractor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/android/io/flutter/view/ResourceExtractor.java b/engine/src/flutter/shell/platform/android/io/flutter/view/ResourceExtractor.java index ecbd026c9db..2895db56b4c 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/view/ResourceExtractor.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/view/ResourceExtractor.java @@ -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 cpuAbis = new ArrayList(asList(Build.CPU_ABI, Build.CPU_ABI2));