Skip to content

Commit

Permalink
Merge pull request #121 from DeKaN/fix-gradle-warnings
Browse files Browse the repository at this point in the history
Fix gradle warnings
  • Loading branch information
Kaaveh authored Oct 7, 2023
2 parents c64eacd + a9b1ff0 commit 3d3fdd3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
1 change: 0 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ android {
useSupportLibrary = true
}
}
@Suppress("UnstableApiUsage")
buildTypes {
val release by getting {
isMinifyEnabled = false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
import ir.composenews.libs
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.getByType
import org.jmailen.gradle.kotlinter.KotlinterExtension

class AndroidKotlinterConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target){
with(pluginManager) {
apply("org.jmailen.kotlinter")
}
val extension = extensions.getByType<KotlinterExtension>()
with(extension) {

}
}
}
}
}

This file was deleted.

4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ subprojects {
if (project.findProperty("composeCompilerReports") == "true") {
freeCompilerArgs += listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=${project.buildDir.absolutePath}/compose_compiler"
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=${project.layout.buildDirectory.asFile.get()}/compose_compiler"
)
}
if (project.findProperty("composeCompilerMetrics") == "true") {
freeCompilerArgs += listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=${project.buildDir.absolutePath}/compose_compiler"
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=${project.layout.buildDirectory.asFile.get()}/compose_compiler"
)
}
}
Expand Down

0 comments on commit 3d3fdd3

Please sign in to comment.