56 lines
1.4 KiB
Groovy
56 lines
1.4 KiB
Groovy
apply plugin: 'kotlin-android'
|
|
kotlin {
|
|
jvmToolchain(versions.jdk)
|
|
}
|
|
|
|
android {
|
|
namespace 'com.google.android.filament.utils'
|
|
|
|
sourceSets {
|
|
main {
|
|
kotlin.srcDirs += "src/main/java"
|
|
}
|
|
}
|
|
|
|
packagingOptions {
|
|
// No need to package up the following shared libs, which arise as a side effect of our
|
|
// externalNativeBuild dependencies. When clients pick and choose from project-level gradle
|
|
// dependencies, these shared libs already get pulled in, so we need to avoid the error:
|
|
// "More than one file was found with OS independent path ..."
|
|
jniLibs {
|
|
excludes += ['lib/*/libfilament-jni.so', 'lib/*/libgltfio-jni.so']
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
singleVariant("release") {
|
|
withSourcesJar()
|
|
withJavadocJar()
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation deps.kotlin
|
|
implementation deps.androidx.annotations
|
|
|
|
implementation deps.coroutines.core
|
|
implementation deps.coroutines.android
|
|
|
|
api project(':filament-android')
|
|
api project(':gltfio-android')
|
|
}
|
|
|
|
apply from: rootProject.file('gradle/gradle-mvn-push.gradle')
|
|
|
|
afterEvaluate {
|
|
publishing {
|
|
publications {
|
|
release(MavenPublication) {
|
|
artifactId = POM_ARTIFACT_ID
|
|
from components.release
|
|
}
|
|
}
|
|
}
|
|
}
|