Commit 73094cf
Fix deprecation warnings in NetworkEventUtilTest
Summary:
Android builds have been failing with the following:
```
> Task :packages:react-native:ReactAndroid:compileDebugOptimizedUnitTestKotlin
e: warnings found and -Werror specified
w: file:///__w/react-native/react-native/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/network/NetworkEventUtilTest.kt:309:28 'fun create(contentType: MediaType?, content: String): RequestBody' is deprecated. Moved to extension function. Put the 'content' argument first to fix Java.
w: file:///__w/react-native/react-native/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/network/NetworkEventUtilTest.kt:317:29 'fun create(contentType: MediaType?, content: String): RequestBody' is deprecated. Moved to extension function. Put the 'content' argument first to fix Java.
```
Warnings show as errors but we're not on OkHttp 4 yet and don't have extension functions, so it's fine to suppress these for now.
Changelog: [Internal]
Differential Revision: D1062002321 parent b32a6c9 commit 73094cf
1 file changed
Lines changed: 2 additions & 1 deletion
File tree
- packages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/network
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| 309 | + | |
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
| |||
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
317 | | - | |
| 318 | + | |
318 | 319 | | |
319 | 320 | | |
320 | 321 | | |
| |||
0 commit comments