Skip to content

Commit

Permalink
Workaround for ".. is going to be declared twice" build failures
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt committed Jul 6, 2024
1 parent 2deb5c8 commit c9e24fb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bundled/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ kotlin {
}
}

// Workaround for build failure:
// IllegalArgumentException: '<classname>' is going to be declared twice
// https://youtrack.jetbrains.com/issue/KT-41709/Objective-C-Interop-CBLQueryMeta-is-going-to-be-declared-twice
targets.withType<org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget>().all {
compilations["main"].cinterops["DatadogObjc"].apply {
extraOpts("-compiler-option", "-Dchar16_t=char16_tUnavailable")
extraOpts("-compiler-option", "-Dchar16_tVar=char16_tVarUnavailable")
extraOpts("-compiler-option", "-DDDRUMErrorEventErrorMeta=DDRUMErrorEventErrorMetaUnavailable")
}
}

sourceSets {
all {
all {
Expand Down

0 comments on commit c9e24fb

Please sign in to comment.