Strip out okhttp3 dependency from react/common module
Reviewed By: AaaChiuuu Differential Revision: D3698882 fbshipit-source-id: 15a123b42382f11b6f88d7b0c1e12c463bb6a740
This commit is contained in:
parent
541eaef4be
commit
6e60b1763c
|
@ -1,13 +1,16 @@
|
|||
include_defs('//ReactAndroid/DEFS')
|
||||
|
||||
SUB_PROJECTS = [
|
||||
'network/**/*',
|
||||
]
|
||||
|
||||
android_library(
|
||||
name = 'common',
|
||||
srcs = glob(['**/*.java']),
|
||||
srcs = glob(['**/*.java'], excludes=SUB_PROJECTS),
|
||||
deps = [
|
||||
':build_config',
|
||||
react_native_dep('third-party/java/infer-annotations:infer-annotations'),
|
||||
react_native_dep('third-party/java/jsr-305:jsr-305'),
|
||||
react_native_dep('third-party/java/okhttp:okhttp3'),
|
||||
],
|
||||
exported_deps = [
|
||||
react_native_dep('java/com/facebook/proguard/annotations:annotations'),
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
include_defs('//ReactAndroid/DEFS')
|
||||
|
||||
android_library(
|
||||
name = 'network',
|
||||
srcs = glob(['**/*.java']),
|
||||
deps = [
|
||||
react_native_dep('third-party/java/okhttp:okhttp3'),
|
||||
],
|
||||
visibility = [
|
||||
'PUBLIC',
|
||||
],
|
||||
)
|
||||
|
||||
project_config(
|
||||
src_target = ':network',
|
||||
)
|
|
@ -12,6 +12,7 @@ android_library(
|
|||
react_native_dep('third-party/java/okhttp:okhttp3-ws'),
|
||||
react_native_dep('third-party/java/okio:okio'),
|
||||
react_native_target('java/com/facebook/react/bridge:bridge'),
|
||||
react_native_target('java/com/facebook/react/common/network:network'),
|
||||
react_native_target('java/com/facebook/react/common:common'),
|
||||
react_native_target('java/com/facebook/react/modules/debug:debug'),
|
||||
react_native_target('java/com/facebook/react/modules/systeminfo:systeminfo'),
|
||||
|
|
|
@ -12,6 +12,7 @@ android_library(
|
|||
react_native_dep('third-party/java/okhttp:okhttp3-urlconnection'),
|
||||
react_native_dep('third-party/java/okio:okio'),
|
||||
react_native_target('java/com/facebook/react/bridge:bridge'),
|
||||
react_native_target('java/com/facebook/react/common/network:network'),
|
||||
react_native_target('java/com/facebook/react/common:common'),
|
||||
react_native_target('java/com/facebook/react/modules/core:core'),
|
||||
],
|
||||
|
|
|
@ -17,6 +17,7 @@ robolectric3_test(
|
|||
react_native_dep('third-party/java/robolectric3/robolectric:robolectric'),
|
||||
react_native_target('java/com/facebook/react/animation:animation'),
|
||||
react_native_target('java/com/facebook/react/bridge:bridge'),
|
||||
react_native_target('java/com/facebook/react/common/network:network'),
|
||||
react_native_target('java/com/facebook/react/common:common'),
|
||||
react_native_target('java/com/facebook/react/devsupport:devsupport'),
|
||||
react_native_target('java/com/facebook/react/modules/clipboard:clipboard'),
|
||||
|
|
Loading…
Reference in New Issue