57 lines
1.3 KiB
Groovy
57 lines
1.3 KiB
Groovy
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
if (project.android.hasProperty("namespace")) {
|
|
namespace 'com.arthenica.ffmpegkit'
|
|
}
|
|
compileSdk 33
|
|
ndkVersion "22.1.7171670"
|
|
|
|
defaultConfig {
|
|
minSdk 24
|
|
targetSdk 33
|
|
versionCode 240600
|
|
versionName "6.0"
|
|
project.archivesBaseName = "ffmpeg-kit"
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
jniLibs.srcDirs = ["../libs"]
|
|
}
|
|
}
|
|
|
|
testOptions {
|
|
unitTests.returnDefaultValues = true
|
|
unitTests.all {
|
|
systemProperty 'enable.ffmpeg.kit.test.mode', 'true'
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
singleVariant('release') {
|
|
withJavadocJar()
|
|
withSourcesJar()
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api 'com.arthenica:smart-exception-java:0.2.1'
|
|
testImplementation "androidx.test.ext:junit:1.1.5"
|
|
testImplementation 'org.json:json:20230618'
|
|
}
|