forked from Blendman974/faceclaw
Refactor Java to shared kotlin
This commit is contained in:
1 parent
bc8e80c533
commit
68810197a8
173 files changed
+9855
-6252
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework
|
||||
|
||||
plugins {
|
||||
kotlin("multiplatform")
|
||||
id("com.android.kotlin.multiplatform.library")
|
||||
}
|
||||
kotlin {
|
||||
android {
|
||||
namespace = "com.faceclaw.shared"
|
||||
compileSdk = 35
|
||||
minSdk = 24
|
||||
compilerOptions { jvmTarget.set(JvmTarget.JVM_17) }
|
||||
withHostTestBuilder {}.configure {}
|
||||
}
|
||||
val framework = XCFramework("FaceclawKit")
|
||||
listOf(iosArm64(), iosSimulatorArm64()).forEach { target ->
|
||||
target.binaries.framework {
|
||||
baseName = "FaceclawKit"
|
||||
isStatic = true
|
||||
binaryOption("bundleId", "com.faceclaw.shared")
|
||||
framework.add(this)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user