Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #10 from Kotlin/sync_dsym_for_release
Browse files Browse the repository at this point in the history
Do not restrict dSYM syncing to debug configuration
  • Loading branch information
stigger committed Oct 1, 2019
2 parents d677a43 + d5563bc commit c9e016e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion xcode-compat/build.gradle.kts
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "org.jetbrains.kotlin.xcode-compat"
version = "0.2.3"
version = "0.2.4"

val PLUGIN_NAME = "xcode-compat"

Expand Down
Expand Up @@ -29,20 +29,16 @@ open class KotlinXcodeExtension(private val project: Project) {
val buildType = NativeBuildType.valueOf(System.getenv("CONFIGURATION")?.toUpperCase()
?: "DEBUG")
if (this.buildType == buildType) {
var dsymTask: Sync? = null

if (buildType == NativeBuildType.DEBUG) {
dsymTask = project.task<Sync>("buildForXcodeDSYM") {
dependsOn(linkTask)
val outputFile = linkTask.outputFile.get()
val outputDSYM = File(outputFile.parent, outputFile.name + ".dSYM")
from(outputDSYM)
into(File(System.getenv("CONFIGURATION_BUILD_DIR"), outputDSYM.name))
}
val dsymTask = project.task<Sync>("buildForXcodeDSYM") {
dependsOn(linkTask)
val outputFile = linkTask.outputFile.get()
val outputDSYM = File(outputFile.parent, outputFile.name + ".dSYM")
from(outputDSYM)
into(File(System.getenv("CONFIGURATION_BUILD_DIR"), outputDSYM.name))
}

val buildForXcodeTask = project.task<Sync>("buildForXcode") {
dependsOn(dsymTask ?: linkTask)
dependsOn(dsymTask)
val outputFile = linkTask.outputFile.get()
from(outputFile)
if (outputKind == NativeOutputKind.FRAMEWORK) {
Expand Down

0 comments on commit c9e016e

Please sign in to comment.