Delete redundant gradle code (once more)
Reviewed By: fabiomassimo Differential Revision: D26751726 fbshipit-source-id: 03b8601cdb0910f2ec7508d9bb1c09bcd6bcd301
This commit is contained in:
committed by
Facebook GitHub Bot
parent
05bfaef75c
commit
847f4d0151
@@ -38,11 +38,6 @@ android {
|
|||||||
abortOnError false
|
abortOnError false
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations {
|
|
||||||
extractHeaders
|
|
||||||
extractJNI
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
test {
|
test {
|
||||||
java {
|
java {
|
||||||
@@ -86,43 +81,3 @@ android {
|
|||||||
preBuild.dependsOn(tasks.getByPath(':third-party:prepare'))
|
preBuild.dependsOn(tasks.getByPath(':third-party:prepare'))
|
||||||
|
|
||||||
apply plugin: 'com.vanniktech.maven.publish'
|
apply plugin: 'com.vanniktech.maven.publish'
|
||||||
|
|
||||||
task sourcesJar(type: Jar) {
|
|
||||||
from android.sourceSets.main.java.srcDirs
|
|
||||||
classifier = 'sources'
|
|
||||||
}
|
|
||||||
|
|
||||||
artifacts.add('archives', sourcesJar)
|
|
||||||
|
|
||||||
task extractAARHeaders {
|
|
||||||
doLast {
|
|
||||||
configurations.extractHeaders.files.each {
|
|
||||||
def file = it.absoluteFile
|
|
||||||
copy {
|
|
||||||
from zipTree(file)
|
|
||||||
into "$buildDir/$file.name"
|
|
||||||
include "**/*.h"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
task extractJNIFiles {
|
|
||||||
doLast {
|
|
||||||
configurations.extractJNI.files.each {
|
|
||||||
def file = it.absoluteFile
|
|
||||||
copy {
|
|
||||||
from zipTree(file)
|
|
||||||
into "$buildDir/$file.name"
|
|
||||||
include "jni/**/*"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.whenTaskAdded { task ->
|
|
||||||
if (task.name.contains('externalNativeBuild')) {
|
|
||||||
task.dependsOn(extractAARHeaders)
|
|
||||||
task.dependsOn(extractJNIFiles)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user