ffmpeg-kit/android/ffmpeg-kit-android-lib/build.gradle

66 lines
1.6 KiB
Groovy
Raw Permalink Normal View History

2020-08-05 03:53:02 +03:00
apply plugin: 'com.android.library'
android {
2023-08-05 17:39:51 +03:00
if (project.android.hasProperty("namespace")) {
namespace 'com.arthenica.ffmpegkit'
}
2023-08-03 08:32:35 +03:00
compileSdk 33
ndkVersion "22.1.7171670"
2020-08-05 03:53:02 +03:00
defaultConfig {
2022-09-16 20:45:43 +03:00
minSdk 24
2023-08-03 08:32:35 +03:00
targetSdk 33
versionCode 240600
versionName "6.0"
2020-08-05 03:53:02 +03:00
project.archivesBaseName = "ffmpeg-kit"
2022-09-16 20:45:43 +03:00
consumerProguardFiles "consumer-rules.pro"
2020-08-05 03:53:02 +03:00
}
buildTypes {
release {
minifyEnabled false
2022-09-16 20:45:43 +03:00
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2020-08-05 03:53:02 +03:00
}
}
2022-09-16 20:45:43 +03:00
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
2020-08-05 03:53:02 +03:00
sourceSets {
main {
jniLibs.srcDirs = ["../libs"]
}
}
testOptions {
unitTests.returnDefaultValues = true
unitTests.all {
systemProperty 'enable.ffmpeg.kit.test.mode', 'true'
}
2020-08-05 03:53:02 +03:00
}
2023-08-22 23:00:49 +03:00
publishing {
singleVariant('release') {
withJavadocJar()
withSourcesJar()
}
}
2020-08-05 03:53:02 +03:00
}
2023-09-11 23:05:00 +03:00
task javadoc(type: Javadoc) {
title = 'FFmpegKit'
destinationDir = file("${projectDir}/../../docs/android/javadoc")
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
source = android.sourceSets.main.java.srcDirs
configurations.implementation.setCanBeResolved(true)
classpath += configurations.implementation
}
2020-08-05 03:53:02 +03:00
dependencies {
2022-09-30 00:26:40 +03:00
api 'com.arthenica:smart-exception-java:0.2.1'
2023-08-05 17:39:51 +03:00
testImplementation "androidx.test.ext:junit:1.1.5"
testImplementation 'org.json:json:20230618'
2021-02-28 15:43:12 +02:00
}