Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/425 Incomplete implementation that should allow for most uses as a release-only package. Next steps: - Integrate sample app with this. - Set up CI to build sample app in release mode with this. - Register with JCenter. - Automatically publish to JCenter as part of our release step. Reviewed By: jknoxville Differential Revision: D15146823 fbshipit-source-id: 3ad058dce7b0395721c6e6715d44d4d51b1834da
39 lines
895 B
Groovy
39 lines
895 B
Groovy
// 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
|
|
}
|
|
|
|
sourceSets {
|
|
test {
|
|
java {
|
|
exclude 'com/facebook/flipper/plugins/facebook/**'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation deps.jsr305
|
|
}
|
|
}
|
|
|
|
apply from: rootProject.file('gradle/release.gradle')
|
|
|
|
task sourcesJar(type: Jar) {
|
|
from android.sourceSets.main.java.srcDirs
|
|
classifier = 'sources'
|
|
}
|
|
|
|
artifacts.add('archives', sourcesJar)
|