From df6f8ea8b0307e017ca96002d63ade2428b46b29 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Mon, 9 Feb 2026 07:49:01 -0800 Subject: [PATCH] Enable Xlint:deprecation,unchecked for popup-menu-android (#55455) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55455 Let's turn on those 2 compilation flags now that the warnigns have been suppressed. Changelog: [Internal] [Changed] - Reviewed By: cipolleschi Differential Revision: D92532099 fbshipit-source-id: fc252587fbb2521cc5ffdeae9284ca88a5453fe2 --- .../react-native-popup-menu-android/android/build.gradle.kts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/react-native-popup-menu-android/android/build.gradle.kts b/packages/react-native-popup-menu-android/android/build.gradle.kts index 87afec87c2b..707faa22bee 100644 --- a/packages/react-native-popup-menu-android/android/build.gradle.kts +++ b/packages/react-native-popup-menu-android/android/build.gradle.kts @@ -29,6 +29,11 @@ kotlin { explicitApi() } +tasks.withType().configureEach { + options.compilerArgs.add("-Xlint:deprecation,unchecked") + options.compilerArgs.add("-Werror") +} + dependencies { // Build React Native from source implementation(project(":packages:react-native:ReactAndroid"))