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:
committed by
Facebook Github Bot
parent
a77faa5318
commit
7ac82bec4e
@@ -70,9 +70,6 @@ android {
|
|||||||
implementation deps.lithoSectionsDebug
|
implementation deps.lithoSectionsDebug
|
||||||
implementation deps.lithoSectionsCore
|
implementation deps.lithoSectionsCore
|
||||||
implementation deps.lithoWidget
|
implementation deps.lithoWidget
|
||||||
implementation deps.fresco
|
|
||||||
implementation deps.frescoFlipper
|
|
||||||
implementation deps.frescoStetho
|
|
||||||
compileOnly deps.leakcanary
|
compileOnly deps.leakcanary
|
||||||
|
|
||||||
testImplementation deps.mockito
|
testImplementation deps.mockito
|
||||||
|
|||||||
27
android/plugins/fresco/build.gradle
Normal file
27
android/plugins/fresco/build.gradle
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
11
android/plugins/fresco/src/main/AndroidManifest.xml
Normal file
11
android/plugins/fresco/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.fresco">
|
||||||
|
</manifest>
|
||||||
@@ -67,5 +67,6 @@ dependencies {
|
|||||||
testImplementation deps.junit
|
testImplementation deps.junit
|
||||||
|
|
||||||
debugImplementation project(':android')
|
debugImplementation project(':android')
|
||||||
|
debugImplementation project(':fresco-plugin')
|
||||||
releaseImplementation project(':noop')
|
releaseImplementation project(':noop')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ dependencies {
|
|||||||
// For simplicity, we use Flipper for both debug and release builds here.
|
// 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.
|
// Check out the "sample" app to see how to separate your build flavors.
|
||||||
implementation project(':android')
|
implementation project(':android')
|
||||||
|
implementation project(':fresco-plugin')
|
||||||
implementation deps.soloader
|
implementation deps.soloader
|
||||||
|
|
||||||
// Litho
|
// Litho
|
||||||
|
|||||||
@@ -29,3 +29,7 @@ project(':libevent').projectDir = file('android/third-party/external/LibEvent/')
|
|||||||
project(':rsocket').projectDir = file('android/third-party/external/RSocket/')
|
project(':rsocket').projectDir = file('android/third-party/external/RSocket/')
|
||||||
project(':third-party').projectDir = file('android/third-party/')
|
project(':third-party').projectDir = file('android/third-party/')
|
||||||
project(':noop').projectDir = file('android/no-op/')
|
project(':noop').projectDir = file('android/no-op/')
|
||||||
|
|
||||||
|
// Plugins
|
||||||
|
include ':fresco-plugin'
|
||||||
|
project(':fresco-plugin').projectDir = file('android/plugins/fresco')
|
||||||
|
|||||||
Reference in New Issue
Block a user