Make network a separate plugin
Summary: Per title. Reviewed By: jknoxville Differential Revision: D17419678 fbshipit-source-id: aee00f077b7ed955c60884853dc1128d27366ee8
This commit is contained in:
committed by
Facebook Github Bot
parent
7ac82bec4e
commit
c4a9b603e2
@@ -65,7 +65,6 @@ android {
|
|||||||
implementation deps.jsr305
|
implementation deps.jsr305
|
||||||
implementation deps.supportAppCompat
|
implementation deps.supportAppCompat
|
||||||
implementation deps.stetho
|
implementation deps.stetho
|
||||||
implementation deps.okhttp3
|
|
||||||
implementation deps.lithoCore
|
implementation deps.lithoCore
|
||||||
implementation deps.lithoSectionsDebug
|
implementation deps.lithoSectionsDebug
|
||||||
implementation deps.lithoSectionsCore
|
implementation deps.lithoSectionsCore
|
||||||
|
|||||||
25
android/plugins/network/build.gradle
Normal file
25
android/plugins/network/build.gradle
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the LICENSE
|
||||||
|
* file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
apply plugin: 'com.android.library'
|
||||||
|
apply plugin: 'maven'
|
||||||
|
|
||||||
|
android {
|
||||||
|
compileSdkVersion rootProject.compileSdkVersion
|
||||||
|
buildToolsVersion rootProject.buildToolsVersion
|
||||||
|
|
||||||
|
defaultConfig {
|
||||||
|
minSdkVersion rootProject.minSdkVersion
|
||||||
|
targetSdkVersion rootProject.targetSdkVersion
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation project(':android')
|
||||||
|
implementation deps.okhttp3
|
||||||
|
compileOnly deps.jsr305
|
||||||
|
}
|
||||||
|
}
|
||||||
11
android/plugins/network/src/main/AndroidManifest.xml
Normal file
11
android/plugins/network/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
~ Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
~
|
||||||
|
~ This source code is licensed under the MIT license found in the LICENSE
|
||||||
|
~ file in the root directory of this source tree.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="com.facebook.flipper.plugins.network">
|
||||||
|
</manifest>
|
||||||
@@ -68,5 +68,6 @@ dependencies {
|
|||||||
|
|
||||||
debugImplementation project(':android')
|
debugImplementation project(':android')
|
||||||
debugImplementation project(':fresco-plugin')
|
debugImplementation project(':fresco-plugin')
|
||||||
|
debugImplementation project(':network-plugin')
|
||||||
releaseImplementation project(':noop')
|
releaseImplementation project(':noop')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ dependencies {
|
|||||||
// Check out the "sample" app to see how to separate your build flavors.
|
// Check out the "sample" app to see how to separate your build flavors.
|
||||||
implementation project(':android')
|
implementation project(':android')
|
||||||
implementation project(':fresco-plugin')
|
implementation project(':fresco-plugin')
|
||||||
|
implementation project(':network-plugin')
|
||||||
implementation deps.soloader
|
implementation deps.soloader
|
||||||
|
|
||||||
// Litho
|
// Litho
|
||||||
|
|||||||
@@ -33,3 +33,6 @@ project(':noop').projectDir = file('android/no-op/')
|
|||||||
// Plugins
|
// Plugins
|
||||||
include ':fresco-plugin'
|
include ':fresco-plugin'
|
||||||
project(':fresco-plugin').projectDir = file('android/plugins/fresco')
|
project(':fresco-plugin').projectDir = file('android/plugins/fresco')
|
||||||
|
|
||||||
|
include ':network-plugin'
|
||||||
|
project(':network-plugin').projectDir = file('android/plugins/network')
|
||||||
|
|||||||
Reference in New Issue
Block a user