2020-08-05 03:53:02 +03:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion 30
|
2021-12-21 02:48:34 +02:00
|
|
|
ndkVersion "23.1.7779620"
|
2020-08-05 03:53:02 +03:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 24
|
|
|
|
targetSdkVersion 30
|
2021-12-29 13:53:56 +02:00
|
|
|
versionCode 240451
|
|
|
|
versionName "4.5.1"
|
2020-08-05 03:53:02 +03:00
|
|
|
project.archivesBaseName = "ffmpeg-kit"
|
|
|
|
consumerProguardFiles 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
jniLibs.srcDirs = ["../libs"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
testOptions {
|
|
|
|
unitTests.returnDefaultValues = true
|
2021-09-18 14:36:22 +03:00
|
|
|
unitTests.all {
|
|
|
|
systemProperty 'enable.ffmpeg.kit.test.mode', 'true'
|
|
|
|
}
|
2020-08-05 03:53:02 +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
|
2021-03-02 01:25:17 +02:00
|
|
|
configurations.implementation.setCanBeResolved(true)
|
|
|
|
classpath += configurations.implementation
|
2020-08-05 03:53:02 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-12-25 20:07:45 +02:00
|
|
|
implementation 'com.arthenica:smart-exception-java:0.1.1'
|
|
|
|
testImplementation "androidx.test.ext:junit:1.1.3"
|
2021-02-28 15:43:12 +02:00
|
|
|
testImplementation "org.json:json:20201115"
|
|
|
|
}
|
|
|
|
|
|
|
|
if (System.properties.containsKey('releaseFFmpegKit')) {
|
|
|
|
apply from: "${rootProject.projectDir}/../tools/release/android/release.template.gradle"
|
2020-08-05 03:53:02 +03:00
|
|
|
}
|