Make fresco a stand-alone gradle project (#548)

Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/548

First project to pull out of the "fat distribution" we currently have.
Still needs setup for Maven and registration in Bintray.

Reviewed By: jknoxville

Differential Revision: D17395660

fbshipit-source-id: 6244495a2e25d705dd930ef87c7e5e1f038eb921
This commit is contained in:
Pascal Hartig
2019-09-19 02:58:43 -07:00
committed by Facebook Github Bot
parent a77faa5318
commit 7ac82bec4e
10 changed files with 44 additions and 3 deletions

View File

@@ -70,9 +70,6 @@ android {
implementation deps.lithoSectionsDebug
implementation deps.lithoSectionsCore
implementation deps.lithoWidget
implementation deps.fresco
implementation deps.frescoFlipper
implementation deps.frescoStetho
compileOnly deps.leakcanary
testImplementation deps.mockito

View File

@@ -0,0 +1,27 @@
/*
* 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.fresco
implementation deps.frescoFlipper
implementation deps.frescoStetho
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.fresco">
</manifest>

View File

@@ -67,5 +67,6 @@ dependencies {
testImplementation deps.junit
debugImplementation project(':android')
debugImplementation project(':fresco-plugin')
releaseImplementation project(':noop')
}

View File

@@ -45,6 +45,7 @@ dependencies {
// For simplicity, we use Flipper for both debug and release builds here.
// Check out the "sample" app to see how to separate your build flavors.
implementation project(':android')
implementation project(':fresco-plugin')
implementation deps.soloader
// Litho

View File

@@ -29,3 +29,7 @@ project(':libevent').projectDir = file('android/third-party/external/LibEvent/')
project(':rsocket').projectDir = file('android/third-party/external/RSocket/')
project(':third-party').projectDir = file('android/third-party/')
project(':noop').projectDir = file('android/no-op/')
// Plugins
include ':fresco-plugin'
project(':fresco-plugin').projectDir = file('android/plugins/fresco')