2018-10-24 03:09:58 -07:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2017-04-19 10:48:58 -07:00
|
|
|
apply plugin: 'com.jfrog.bintray'
|
2017-02-23 04:57:16 -08:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
apply plugin: 'com.github.dcendents.android-maven'
|
|
|
|
apply plugin: 'maven-publish'
|
|
|
|
|
2017-05-09 03:39:23 -07:00
|
|
|
group = GROUP
|
|
|
|
version = VERSION_NAME
|
2017-02-23 04:57:16 -08:00
|
|
|
|
|
|
|
android {
|
2017-04-19 10:48:59 -07:00
|
|
|
compileSdkVersion rootProject.compileSdkVersion
|
|
|
|
buildToolsVersion rootProject.buildToolsVersion
|
2017-02-23 04:57:16 -08:00
|
|
|
|
2017-02-23 04:57:18 -08:00
|
|
|
defaultConfig {
|
2017-04-19 10:48:59 -07:00
|
|
|
minSdkVersion rootProject.minSdkVersion
|
|
|
|
targetSdkVersion rootProject.targetSdkVersion
|
2017-04-19 12:22:09 -07:00
|
|
|
|
|
|
|
ndk {
|
2018-10-05 08:24:44 -07:00
|
|
|
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
|
2017-04-19 12:22:09 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
externalNativeBuild {
|
|
|
|
cmake {
|
|
|
|
arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_static'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
externalNativeBuild {
|
|
|
|
cmake {
|
|
|
|
path 'CMakeLists.txt'
|
2019-02-14 09:27:49 -08:00
|
|
|
version '3.6.0-rc2'
|
2017-04-19 12:22:09 -07:00
|
|
|
}
|
2017-02-23 04:57:18 -08:00
|
|
|
}
|
2017-02-23 04:57:16 -08:00
|
|
|
|
2017-02-23 04:57:18 -08:00
|
|
|
compileOptions {
|
2017-04-19 10:48:59 -07:00
|
|
|
targetCompatibility rootProject.targetCompatibilityVersion
|
|
|
|
sourceCompatibility rootProject.sourceCompatibilityVersion
|
2017-02-23 04:57:18 -08:00
|
|
|
}
|
2017-02-23 04:57:16 -08:00
|
|
|
|
2017-02-23 04:57:18 -08:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
java.srcDir 'com'
|
|
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
|
|
res.srcDirs = ['res']
|
2017-05-22 10:04:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
java.srcDirs 'tests'
|
2017-02-23 04:57:18 -08:00
|
|
|
}
|
2017-02-23 04:57:16 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2017-11-08 09:45:13 -08:00
|
|
|
compileOnly 'com.google.code.findbugs:jsr305:3.0.1'
|
|
|
|
compileOnly project(':yoga:proguard-annotations')
|
2018-07-19 06:43:06 -07:00
|
|
|
implementation 'com.facebook.soloader:soloader:0.5.1'
|
2017-11-08 09:45:13 -08:00
|
|
|
testImplementation 'junit:junit:4.12'
|
2019-09-10 08:15:12 -07:00
|
|
|
testCompile project(':testutil')
|
2017-02-23 04:57:16 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
task sourcesJar(type: Jar) {
|
|
|
|
classifier = 'source'
|
2017-02-23 04:57:18 -08:00
|
|
|
from android.sourceSets.main.java.srcDirs
|
2017-02-23 04:57:16 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
task javadoc(type: Javadoc) {
|
|
|
|
failOnError false
|
|
|
|
source = android.sourceSets.main.java.sourceFiles
|
|
|
|
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
|
|
|
|
classpath += configurations.compile
|
|
|
|
}
|
|
|
|
|
|
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
|
|
classifier = 'javadoc'
|
|
|
|
from javadoc.destinationDir
|
|
|
|
}
|
|
|
|
|
|
|
|
ext {
|
2017-04-19 10:48:59 -07:00
|
|
|
bintrayName = 'com.facebook.yoga:yoga'
|
2017-02-23 04:57:16 -08:00
|
|
|
}
|
|
|
|
|
2017-05-09 03:39:23 -07:00
|
|
|
apply from: rootProject.file('gradle/release.gradle')
|