Make LeakCanary a Separate Plugin
Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/559 Reviewed By: passy Differential Revision: D17546936 fbshipit-source-id: dce128a771b73e8b18dfc2b78ee99502c3f1ce86
This commit is contained in:
committed by
Facebook Github Bot
parent
a5f17494d5
commit
053cfc09f3
@@ -64,7 +64,6 @@ android {
|
|||||||
implementation deps.jsr305
|
implementation deps.jsr305
|
||||||
implementation deps.supportAppCompat
|
implementation deps.supportAppCompat
|
||||||
implementation deps.stetho
|
implementation deps.stetho
|
||||||
compileOnly deps.leakcanary
|
|
||||||
|
|
||||||
testImplementation deps.mockito
|
testImplementation deps.mockito
|
||||||
testImplementation deps.robolectric
|
testImplementation deps.robolectric
|
||||||
|
|||||||
27
android/plugins/leakcanary/build.gradle
Normal file
27
android/plugins/leakcanary/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.leakcanary
|
||||||
|
compileOnly deps.jsr305
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
apply from: rootProject.file('gradle/release.gradle')
|
||||||
12
android/plugins/leakcanary/gradle.properties
Normal file
12
android/plugins/leakcanary/gradle.properties
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
POM_NAME=Flipper LeakCanary Plugin
|
||||||
|
POM_DESCRIPTION=LeakCanary plugin for Flipper
|
||||||
|
POM_ARTIFACT_ID=flipper-leakcanary-plugin
|
||||||
|
POM_PACKAGING=aar
|
||||||
|
|
||||||
11
android/plugins/leakcanary/src/main/AndroidManifest.xml
Normal file
11
android/plugins/leakcanary/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.leakcanary">
|
||||||
|
</manifest>
|
||||||
@@ -70,5 +70,6 @@ dependencies {
|
|||||||
debugImplementation project(':fresco-plugin')
|
debugImplementation project(':fresco-plugin')
|
||||||
debugImplementation project(':network-plugin')
|
debugImplementation project(':network-plugin')
|
||||||
debugImplementation project(':litho-plugin')
|
debugImplementation project(':litho-plugin')
|
||||||
|
debugImplementation project(':leakcanary-plugin')
|
||||||
releaseImplementation project(':noop')
|
releaseImplementation project(':noop')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ dependencies {
|
|||||||
implementation project(':fresco-plugin')
|
implementation project(':fresco-plugin')
|
||||||
implementation project(':network-plugin')
|
implementation project(':network-plugin')
|
||||||
implementation project(':litho-plugin')
|
implementation project(':litho-plugin')
|
||||||
|
implementation project(':leakcanary-plugin')
|
||||||
implementation deps.soloader
|
implementation deps.soloader
|
||||||
|
|
||||||
// Litho
|
// Litho
|
||||||
|
|||||||
@@ -39,3 +39,6 @@ project(':network-plugin').projectDir = file('android/plugins/network')
|
|||||||
|
|
||||||
include ':litho-plugin'
|
include ':litho-plugin'
|
||||||
project(':litho-plugin').projectDir = file('android/plugins/litho')
|
project(':litho-plugin').projectDir = file('android/plugins/litho')
|
||||||
|
|
||||||
|
include ':leakcanary-plugin'
|
||||||
|
project(':leakcanary-plugin').projectDir = file('android/plugins/leakcanary')
|
||||||
|
|||||||
Reference in New Issue
Block a user