Set up no-op package (#425)
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
This commit is contained in:
committed by
Facebook Github Bot
parent
3771026eeb
commit
db5d486c6f
38
android/no-op/build.gradle
Normal file
38
android/no-op/build.gradle
Normal file
@@ -0,0 +1,38 @@
|
||||
// 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)
|
||||
Reference in New Issue
Block a user