Skip to content

Commit

Permalink
Merge pull request #364 from icerockdev/#355-spotless-conflict
Browse files Browse the repository at this point in the history
#355 spotless conflict
  • Loading branch information
Alex009 committed Jul 10, 2022
2 parents 8ecb5c4 + ce1a188 commit d734ca4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ kotlinGradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", ver
# This version is used to fix compatibility issues between
# Kotlin Gradle Plugin 1.6.10 -> 1.6.20
# we can't update all project to 1.6.20 now because Jetpack Compose not updated yet
kotlinGradlePluginNext = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version = "1.7.0-RC" }
kotlinGradlePluginNext = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version = "1.7.0" }
androidGradlePlugin = { module = "com.android.tools.build:gradle", version.ref = "androidGradleVersion" }
kotlinCompilerEmbeddable = { module = "org.jetbrains.kotlin:kotlin-compiler-embeddable", version.ref = "kotlinVersion" }
detektGradlePlugin = { module = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin", version.ref = "detektVersion" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import org.gradle.api.Action
import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.api.plugins.ExtensionAware
import org.gradle.kotlin.dsl.create
import org.gradle.kotlin.dsl.findByType
import org.gradle.kotlin.dsl.getByType
import org.gradle.kotlin.dsl.maybeCreate
import org.gradle.kotlin.dsl.withType
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
import org.jetbrains.kotlin.gradle.plugin.cocoapods.CocoapodsExtension
Expand Down Expand Up @@ -247,16 +247,15 @@ $linkTask produces static framework, Xcode should have Build Phase with copyFram

private fun createCopyResourcesToAppTask(project: Project) {
project.tasks.withType<KotlinNativeLink>()
.matching { linkTask -> linkTask.binary is AbstractExecutable }
.matching { it.binary is AbstractExecutable }
.all { linkTask ->
val copyTaskName = linkTask.name.replace("link", "copyResources")

if (linkTask.project.tasks.any { it.name == copyTaskName }) return@all

project.tasks
.create(copyTaskName, CopyExecutableResourcesToApp::class) {
it.linkTask = linkTask
it.dependsOn(linkTask)
.maybeCreate(copyTaskName, CopyExecutableResourcesToApp::class)
.apply {
this.linkTask = linkTask
this.dependsOn(linkTask)
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions sample/mpp-library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ android {
isIncludeAndroidResources = true
}
}

lint {
disable.add("ImpliedQuantity")
}
}

kotlin {
Expand Down

0 comments on commit d734ca4

Please sign in to comment.