在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用kotlin-multiplatform
Kotlin Multiplatform - shared code, expect/actual, iOS integration
星标7
分支1
更新时间2025年12月30日 12:44
文件资源管理器
6 个文件SKILL.md
readonly菜单
Kotlin Multiplatform - shared code, expect/actual, iOS integration
Modern Android development - Jetpack, Compose, Architecture Components
Jetpack Compose - composables, state, effects, theming
Kotlin coroutines - structured concurrency, Flows, exception handling
Dependency Injection - Hilt, Koin, scopes, testing
Kotlin DSL - type-safe builders, Gradle DSL, @DslMarker
Kotlin Flow - StateFlow, SharedFlow, operators, testing
| name | kotlin-multiplatform |
| description | Kotlin Multiplatform - shared code, expect/actual, iOS integration |
| version | 1.0.0 |
| sasmp_version | 1.3.0 |
| bonded_agent | 04-kotlin-multiplatform |
| bond_type | PRIMARY_BOND |
| execution | {"timeout_ms":30000,"retry":{"max_attempts":3,"backoff":"exponential","initial_delay_ms":1000}} |
| parameters | {"required":[{"name":"target","type":"string","validation":"^(setup|shared|expect_actual|ios)$"}],"optional":[{"name":"platforms","type":"array","default":["android","ios"]}]} |
| logging | {"level":"info","events":["skill_invoked","target_loaded","error_occurred"]} |
Build cross-platform applications with shared Kotlin code.
kotlin {
androidTarget()
listOf(iosX64(), iosArm64(), iosSimulatorArm64()).forEach {
it.binaries.framework { baseName = "Shared"; isStatic = true }
}
sourceSets {
commonMain.dependencies {
implementation("io.ktor:ktor-client-core:2.3.8")
}
androidMain.dependencies { implementation("io.ktor:ktor-client-okhttp:2.3.8") }
iosMain.dependencies { implementation("io.ktor:ktor-client-darwin:2.3.8") }
}
}
// commonMain
expect class SecureStorage { fun get(key: String): String? }
// androidMain
actual class SecureStorage { actual fun get(key: String) = prefs.getString(key, null) }
// iosMain
actual class SecureStorage { actual fun get(key: String) = KeychainWrapper.get(key) }
| Issue | Resolution |
|---|---|
| "No actual for expect" | Add implementation in platform source set |
| iOS framework not found | Run linkDebugFrameworkIos task |
Skill("kotlin-multiplatform")