Setup fbjni sub-project for maven (#119)
Summary: Set up our fbjni sub-project to be published to Maven Central. This removes a bunch of abiFilters that we no longer make use of, too. Closes https://github.com/facebook/Sonar/pull/119 Reviewed By: priteshrnandgaonkar Differential Revision: D8694537 Pulled By: passy fbshipit-source-id: de246fbda99c02856fbc7806b78df2114cb82acb
This commit is contained in:
committed by
Facebook Github Bot
parent
167792e7d8
commit
0515ddb76e
@@ -7,11 +7,6 @@ android {
|
||||
defaultConfig {
|
||||
minSdkVersion rootProject.minSdkVersion
|
||||
targetSdkVersion rootProject.targetSdkVersion
|
||||
|
||||
ndk {
|
||||
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
|
||||
}
|
||||
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_shared'
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'maven'
|
||||
|
||||
android {
|
||||
compileSdkVersion rootProject.compileSdkVersion
|
||||
@@ -25,3 +26,15 @@ dependencies {
|
||||
compileOnly deps.lithoAnnotations
|
||||
implementation deps.soloader
|
||||
}
|
||||
|
||||
apply from: rootProject.file('gradle/release.gradle')
|
||||
|
||||
task sourcesJar(type: Jar) {
|
||||
from android.sourceSets.main.java.srcDirs
|
||||
classifier = 'sources'
|
||||
}
|
||||
artifacts.add('archives', sourcesJar)
|
||||
|
||||
tasks.withType(Javadoc).all {
|
||||
enabled = false
|
||||
}
|
||||
|
||||
20
libs/fbjni/gradle.properties
Normal file
20
libs/fbjni/gradle.properties
Normal file
@@ -0,0 +1,20 @@
|
||||
#
|
||||
# Copyright 2014-present Facebook, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
POM_NAME=SonarFBJNI
|
||||
POM_DESCRIPTION=Sonar-scoped FBJNI distribution
|
||||
POM_ARTIFACT_ID=fbjni
|
||||
POM_PACKAGING=aar
|
||||
Reference in New Issue
Block a user