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
|
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
|
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
|
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'
|
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
|
|
|
}
|