ffmpeg-kit/tools/android/build.lts.gradle

61 lines
1.6 KiB
Groovy
Raw Normal View History

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
ndkVersion "22.1.7171670"
2020-08-05 03:53:02 +03:00
defaultConfig {
2022-09-16 20:45:43 +03:00
minSdk 16
targetSdk 31
2022-09-06 01:21:00 +03:00
versionCode 160510
versionName "5.1.LTS"
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_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
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
}
}
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-16 20:45:43 +03:00
implementation 'com.arthenica:smart-exception-java:0.2.1'
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
}
if (System.properties.containsKey('releaseFFmpegKit')) {
2022-09-16 20:45:43 +03:00
apply from: "${rootProject.projectDir}/../tools/android/release.template.gradle"
2020-08-05 03:53:02 +03:00
}