Probably basic question but are there any examples...
# touchlab-tools
j
Probably basic question but are there any examples of using Kermit from Swift code (in project not using cocoapods)?
f
Using Kermit from swift can be done in different way, it depends on of what you need
Me, I’m using Koin to get the same instance as the shared code
j
I saw that guide all right but it looks to be based on use of cocoapods
f
you can export from a framework and from cocoapods
Copy code
// iOS
    listOf(
        // iosX64(),
        iosArm64(),
        iosSimulatorArm64(),
    ).forEach {
        it.binaries.framework {
            baseName = "Shared"
            export(libs.kermit.simple)
            export(libs.androidx.lifecycle.viewmodel)
        }
    }
the export keyword can be use in both ways
j
sorry, yeah, I missed that
thanks