You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
112 lines
3.7 KiB
112 lines
3.7 KiB
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: 'kotlin-android'
|
|
|
|
android {
|
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
defaultConfig {
|
|
applicationId "com.frank.ffmpeg"
|
|
minSdkVersion rootProject.ext.minSdkVersion
|
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
versionCode rootProject.ext.versionCode
|
|
versionName rootProject.ext.versionName
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
cppFlags ""
|
|
}
|
|
}
|
|
ndk {
|
|
abiFilters "armeabi-v7a", "arm64-v8a"
|
|
}
|
|
vectorDrawables {
|
|
useSupportLibrary true
|
|
}
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
path "CMakeLists.txt"
|
|
}
|
|
}
|
|
sourceSets {
|
|
main {
|
|
jniLibs.srcDirs = ['libs']
|
|
jni.srcDirs = []
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
packagingOptions {
|
|
exclude 'META-INF/proguard/coroutines.pro'
|
|
pickFirst 'lib/armeabi-v7a/libmp3lame.so'
|
|
pickFirst 'lib/arm64-v8a/libmp3lame.so'
|
|
pickFirst 'lib/armeabi-v7a/libffmpeg.so'
|
|
pickFirst 'lib/arm64-v8a/libffmpeg.so'
|
|
resources {
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
}
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion compose_version
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
implementation "androidx.appcompat:appcompat:$rootProject.appcompatVersion"
|
|
implementation "androidx.recyclerview:recyclerview:$rootProject.recyclerviewVersion"
|
|
implementation project(':Live')
|
|
implementation "androidx.core:core-ktx:$rootProject.core_ktx"
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$rootProject.lifecycle_ktx"
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
implementation project(':AndroidMedia')
|
|
//implementation "libmp3" if you need mp3-lite module
|
|
// implementation project(':libmp3')
|
|
|
|
|
|
// compose start
|
|
implementation 'androidx.compose.ui:ui:1.1.1'
|
|
// Tooling support (Previews, etc.)
|
|
implementation 'androidx.compose.ui:ui-tooling:1.1.1'
|
|
// Foundation (Border, Background, Box, Image, Scroll, shapes, animations, etc.)
|
|
implementation 'androidx.compose.foundation:foundation:1.1.1'
|
|
// Material Design
|
|
implementation 'androidx.compose.material:material:1.1.1'
|
|
// Material design icons
|
|
implementation 'androidx.compose.material:material-icons-core:1.1.1'
|
|
implementation 'androidx.compose.material:material-icons-extended:1.1.1'
|
|
// Integration with activities
|
|
implementation 'androidx.activity:activity-compose:1.4.0'
|
|
// Integration with ViewModels
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.4.1'
|
|
// Integration with observables
|
|
implementation 'androidx.compose.runtime:runtime-livedata:1.1.1'
|
|
implementation 'androidx.compose.runtime:runtime-rxjava2:1.1.1'
|
|
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
|
|
|
|
// UI Tests
|
|
androidTestImplementation 'androidx.compose.ui:ui-test-junit4:1.1.1'
|
|
// compose end
|
|
}
|
|
|