mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Suppress DEPRECATION warning in NetworkEventUtilTest (#56971)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56971 The OSS build runs Kotlin with `-Werror`, and the test calls the now-deprecated overload `RequestBody.create(MediaType?, String)`. The file already suppresses `DEPRECATION_ERROR` for the same OkHttp-version skew; extend the existing `Silvochka:Suppress` to also cover the warning-level `DEPRECATION` so the build stops failing. ## Changelog: [Internal] Reviewed By: cortinico Differential Revision: D106364355 fbshipit-source-id: fff61bbc0dec19e4d68b7a3c51262673587d904c
This commit is contained in:
1 parent
4d36e57839
commit
5f080c5aeb
1 file changed
+1
-1
+1
-1
@@ -5,7 +5,7 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
@file:Suppress("DEPRECATION_ERROR") // Conflicting okhttp versions
|
||||
@file:Suppress("DEPRECATION", "DEPRECATION_ERROR") // Conflicting okhttp versions
|
||||
|
||||
package com.facebook.react.modules.network
|
||||
|
||||
|
||||
Reference in new issue
Block a user