Hakan
12/30/2022, 7:00 AMDataDog
library in iosMain part of the KMM project.
But Somehow I can not import the library into Kotlin file.
Here is the ticket that I opened yesterday.
https://youtrack.jetbrains.com/issue/KT-55687/Can-not-add-DataDog-Dependency-via-CocoaPods-in-Kotlin-Multiplatform-Mobile-Project
I really appreciate if you guide me. Thanks.Kartik Prakash
12/30/2022, 7:38 PMHakan
12/31/2022, 6:23 AMpod install
. But you have to sync gradle file since my intention is to use in KMM project.Hakan
12/31/2022, 6:24 AMdarkmoon_uk
01/11/2023, 12:46 PMdarkmoon_uk
01/11/2023, 12:47 PMdarkmoon_uk
01/11/2023, 12:47 PMHakan
01/11/2023, 12:52 PMdarkmoon_uk
01/11/2023, 1:15 PMdarkmoon_uk
01/11/2023, 1:16 PMdarkmoon_uk
01/11/2023, 1:16 PMHakan
01/11/2023, 1:21 PMHakan
01/27/2023, 9:14 AMDDLog
) framework.
Because DataDogObjCSDK we giving error when doing a gradle sync
This is the cocoapods configuration:
cocoapods {
summary = "Common library for mobile project"
homepage = ""
version = "1.0"
ios.deploymentTarget = "11.0"
framework {
baseName = "MultiPlatformLibrary"
linkerOpts.add("-lsqlite3")
isStatic = false
transitiveExport = true
export(Deps.kermit)
export(Deps.Moko.mvvm_api)
export(Deps.Moko.resources)
}
/*
pod("DDLogg") {
moduleName = "DDBridge"
source = git("<https://github.com/aneeshzed/DDLogg.git>") {
tag = "0.1.7"
}
}*/
pod("DatadogSDKObjc") {
version = "~> 1.14"
moduleName = "Datadog"
}
pod("DatadogSDK") {
version = "~> 1.14"
moduleName = "DatadogObjc"
}
xcodeConfigurationToNativeBuildType["Pilot"] = org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType.DEBUG
}
And this is the error that we get:Mukesh
02/26/2023, 4:53 PMtasks.named<org.jetbrains.kotlin.gradle.tasks.DefFileTask>("generateDefDatadogObjc").configure {
doLast {
outputFile.writeText("""
language = Objective-C
modules = Datadog DatadogObjc
""")
}
}
Ref: https://youtrack.jetbrains.com/issue/KT-44724Sonny
11/05/2024, 4:24 PMMukesh
11/06/2024, 5:11 AM