Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DatadogObjc dependency to v2.16.0 #77

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Workaround for ".. is going to be declared twice" build failures
  • Loading branch information
twyatt committed Jul 6, 2024
commit c19f852f37d4ad9dac0c37035e477178b5995288
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_tUnavailableVar=char16_tUnavailableVarUnavailable")
extraOpts("-compiler-option", "-DDDRUMErrorEventErrorMeta=DDRUMErrorEventErrorMetaUnavailable")
}
}

sourceSets {
all {
all {
Expand Down
Loading