2020-08-05 03:53:02 +03:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion 30
|
2021-01-25 23:12:27 +02:00
|
|
|
ndkVersion "22.0.7026061"
|
2020-08-05 03:53:02 +03:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 16
|
|
|
|
targetSdkVersion 30
|
|
|
|
versionCode 160440
|
|
|
|
versionName "4.4.LTS"
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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-01-11 03:09:39 +02:00
|
|
|
implementation 'com.arthenica:smart-exception-java:0.1.0'
|
2021-01-10 12:30:24 +02:00
|
|
|
testImplementation "androidx.test.ext:junit:1.1.2"
|
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
|
|
|
}
|