Make network a separate plugin

Summary: Per title.

Reviewed By: jknoxville

Differential Revision: D17419678

fbshipit-source-id: aee00f077b7ed955c60884853dc1128d27366ee8
This commit is contained in:
Pascal Hartig
2019-09-19 02:58:43 -07:00
committed by Facebook Github Bot
parent 7ac82bec4e
commit c4a9b603e2
10 changed files with 41 additions and 1 deletions

View File

@@ -65,7 +65,6 @@ android {
implementation deps.jsr305
implementation deps.supportAppCompat
implementation deps.stetho
implementation deps.okhttp3
implementation deps.lithoCore
implementation deps.lithoSectionsDebug
implementation deps.lithoSectionsCore

View 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
}
}

View 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>

View File

@@ -68,5 +68,6 @@ dependencies {
debugImplementation project(':android')
debugImplementation project(':fresco-plugin')
debugImplementation project(':network-plugin')
releaseImplementation project(':noop')
}

View File

@@ -46,6 +46,7 @@ dependencies {
// Check out the "sample" app to see how to separate your build flavors.
implementation project(':android')
implementation project(':fresco-plugin')
implementation project(':network-plugin')
implementation deps.soloader
// Litho

View File

@@ -33,3 +33,6 @@ project(':noop').projectDir = file('android/no-op/')
// Plugins
include ':fresco-plugin'
project(':fresco-plugin').projectDir = file('android/plugins/fresco')
include ':network-plugin'
project(':network-plugin').projectDir = file('android/plugins/network')