2020-08-05 03:53:02 +03:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
|
|
|
|
android {
|
2022-09-16 20:45:43 +03:00
|
|
|
namespace 'com.arthenica.ffmpegkit'
|
|
|
|
compileSdk 31
|
2022-01-01 01:38:55 +02:00
|
|
|
ndkVersion "22.1.7171670"
|
2020-08-05 03:53:02 +03:00
|
|
|
|
|
|
|
defaultConfig {
|
2022-09-16 20:45:43 +03:00
|
|
|
minSdk 24
|
|
|
|
targetSdk 31
|
2022-09-06 01:21:00 +03:00
|
|
|
versionCode 240510
|
|
|
|
versionName "5.1"
|
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
|
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 {
|
2022-09-30 00:26:40 +03:00
|
|
|
api 'com.arthenica:smart-exception-java:0.2.1'
|
2021-12-25 20:07:45 +02:00
|
|
|
testImplementation "androidx.test.ext:junit:1.1.3"
|
2022-09-16 20:45:43 +03:00
|
|
|
testImplementation 'org.json:json:20220320'
|
2021-02-28 15:43:12 +02:00
|
|
|
}
|