Darshan Nair
04/12/2024, 9:31 PMimport org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework
kotlin {
android()
val xcf = XCFramework()
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach {
it.binaries.framework {
baseName = moduleName // Use the moduleName parameter here
xcf.add(this)
isStatic = true
}
}
}
android {
namespace = androidNamespace // Use the androidNamespace parameter here
compileSdk = 34
defaultConfig {
minSdk = 21
consumerProguardFiles("<http://consumer-rules.pro|consumer-rules.pro>")
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"<http://proguard-rules.pro|proguard-rules.pro>"
)
}
}
}
But on gradle sync giving multiple errors and all related to XCFramework, iOS etc which is there in above common gradle file. Is anyone successfully creatde any common.gradle.kts?Pablichjenkov
04/12/2024, 9:35 PMshared
back in time. But I haven't heard is a limitation to create an xcframework out of any module.Pablichjenkov
04/12/2024, 9:37 PMAlejandro Moya
04/12/2024, 9:59 PMAlejandro Moya
04/12/2024, 10:00 PMAlejandro Moya
04/12/2024, 10:01 PMMatt Nelson
04/13/2024, 7:37 AM