From dbc4193e777188ae6504f50587ec701d6c4228c6 Mon Sep 17 00:00:00 2001 From: HeroBrine1st Erquilenne Date: Sun, 21 Jan 2024 23:04:37 +0300 Subject: [PATCH] [no ci] clean up build.gradle.kts --- app/build.gradle.kts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 3f4444b6..6fb9fbe3 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -1,5 +1,3 @@ -@file:Suppress("SpellCheckingInspection", "UnstableApiUsage") - import com.android.build.api.dsl.VariantDimension import java.io.ByteArrayOutputStream @@ -82,7 +80,6 @@ android { jvmTarget = "1.8" freeCompilerArgs = listOf( "-opt-in=kotlin.RequiresOptIn", -// "-Xjvm-default=all-compatibility" ) } buildFeatures { @@ -97,6 +94,7 @@ android { excludes += "/META-INF/{AL2.0,LGPL2.1}" } } + @Suppress("UnstableApiUsage") testOptions { unitTests { isIncludeAndroidResources = true @@ -168,7 +166,6 @@ dependencies { implementation("androidx.media3:media3-exoplayer:1.2.0") implementation("androidx.media3:media3-ui:1.2.0") implementation("androidx.media3:media3-datasource-okhttp:1.2.0") -// implementation("androidx.media3:media3-session:1.0.1") // Other libraries implementation("org.jsoup:jsoup:1.17.2") // Expat License @@ -198,7 +195,6 @@ protobuf { generateProtoTasks { all().configureEach { builtins { - // TODO protoc plugin 'java' not defined. Trying to use 'protoc-gen-java' from system path create("java") { option("lite") } @@ -211,15 +207,6 @@ room { schemaDirectory("$projectDir/schemas") } -// KAPT and KSP use gradle JDK version for that -// KAPT requires 11, while android is still using 1.8 -// Use narrow class names to minimize impact on other tasks -//tasks.withType().configureEach { -// kotlinOptions { -// jvmTarget = "1.8" -// } -//} - fun getCommitIndexNumber(revision: String = "HEAD"): Int { val byteArrayOutputStream = ByteArrayOutputStream() exec {