From 5474d6eea511ae08c75a94ce1ceaf31c0fbd2ef8 Mon Sep 17 00:00:00 2001 From: Hardcore Sushi Date: Sat, 13 Jan 2024 21:25:31 +0100 Subject: [PATCH] Add .opus & Update build config --- app/build.gradle | 3 ++- app/src/main/java/sushi/hardcore/droidfs/FileTypes.kt | 2 +- build.gradle | 4 ++-- gradle.properties | 3 ++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 2ac7e3d..7d557a0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -21,7 +21,7 @@ if (hasProperty("nosplits")) { android { compileSdk 34 - ndkVersion "25.2.9519653" + ndkVersion "26.1.10909125" namespace "sushi.hardcore.droidfs" compileOptions { @@ -58,6 +58,7 @@ android { splits { abi { enable true + reset() // fix unknown bug (https://ru.stackoverflow.com/questions/1557805/abis-armeabi-mips-mips64-riscv64-are-not-supported-for-platform) universalApk true } } diff --git a/app/src/main/java/sushi/hardcore/droidfs/FileTypes.kt b/app/src/main/java/sushi/hardcore/droidfs/FileTypes.kt index 986574b..2020c24 100644 --- a/app/src/main/java/sushi/hardcore/droidfs/FileTypes.kt +++ b/app/src/main/java/sushi/hardcore/droidfs/FileTypes.kt @@ -6,7 +6,7 @@ object FileTypes { private val FILE_EXTENSIONS = mapOf( Pair("image", listOf("png", "jpg", "jpeg", "gif", "webp", "bmp", "heic")), Pair("video", listOf("mp4", "webm", "mkv", "mov")), - Pair("audio", listOf("mp3", "ogg", "m4a", "wav", "flac")), + Pair("audio", listOf("mp3", "ogg", "m4a", "wav", "flac", "opus")), Pair("pdf", listOf("pdf")), Pair("text", listOf( "asc", diff --git a/build.gradle b/build.gradle index f37707f..18e59f1 100644 --- a/build.gradle +++ b/build.gradle @@ -1,11 +1,11 @@ buildscript { - ext.kotlin_version = '1.9.0' + ext.kotlin_version = '1.9.22' repositories { google() mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:8.1.1' + classpath 'com.android.tools.build:gradle:8.2.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } diff --git a/gradle.properties b/gradle.properties index 52ed220..2131885 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,4 +15,5 @@ android.useAndroidX=true kotlin.code.style=official android.native.buildOutput=verbose -android.nonTransitiveRClass=false \ No newline at end of file +android.nonTransitiveRClass=false +org.gradle.configuration-cache=true \ No newline at end of file