Make litho/sections a separate plugin

Summary:
Breaking Litho/Sections off. Doesn't really make sense to have
two deps for this especially since they're pretty tightly coupled.

This makes our core already quite slim.

Reviewed By: jknoxville

Differential Revision: D17420118

fbshipit-source-id: 9a03911f4af6410745b9aefd0e6a75bdf106660f
This commit is contained in:
Pascal Hartig
2019-09-19 02:58:43 -07:00
committed by Facebook Github Bot
parent c4a9b603e2
commit 2baadf9867
17 changed files with 46 additions and 5 deletions

View File

@@ -56,7 +56,6 @@ android {
} }
dependencies { dependencies {
compileOnly deps.lithoAnnotations
compileOnly deps.proguardAnnotations compileOnly deps.proguardAnnotations
implementation 'com.facebook.fbjni:fbjni:0.0.1' implementation 'com.facebook.fbjni:fbjni:0.0.1'
extractHeaders 'com.facebook.fbjni:fbjni:0.0.1:headers' extractHeaders 'com.facebook.fbjni:fbjni:0.0.1:headers'
@@ -65,10 +64,6 @@ android {
implementation deps.jsr305 implementation deps.jsr305
implementation deps.supportAppCompat implementation deps.supportAppCompat
implementation deps.stetho implementation deps.stetho
implementation deps.lithoCore
implementation deps.lithoSectionsDebug
implementation deps.lithoSectionsCore
implementation deps.lithoWidget
compileOnly deps.leakcanary compileOnly deps.leakcanary
testImplementation deps.mockito testImplementation deps.mockito

View File

@@ -0,0 +1,30 @@
/*
* 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 {
compileOnly deps.lithoAnnotations
implementation project(':android')
implementation deps.lithoCore
implementation deps.lithoSectionsDebug
implementation deps.lithoSectionsCore
implementation deps.lithoWidget
implementation deps.supportAppCompat
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.litho">
</manifest>

View File

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

View File

@@ -47,6 +47,7 @@ dependencies {
implementation project(':android') implementation project(':android')
implementation project(':fresco-plugin') implementation project(':fresco-plugin')
implementation project(':network-plugin') implementation project(':network-plugin')
implementation project(':litho-plugin')
implementation deps.soloader implementation deps.soloader
// Litho // Litho

View File

@@ -36,3 +36,6 @@ project(':fresco-plugin').projectDir = file('android/plugins/fresco')
include ':network-plugin' include ':network-plugin'
project(':network-plugin').projectDir = file('android/plugins/network') project(':network-plugin').projectDir = file('android/plugins/network')
include ':litho-plugin'
project(':litho-plugin').projectDir = file('android/plugins/litho')