Bekzod
01/09/2024, 3:35 AMandroid {
namespace = "com.example.myApp.feature.auth"
}
it is possible to get baseName with this code:
private fun Project.resolveFullName(): String {
val nonRootParent = parent?.takeIf { it != rootProject } ?: return name
return "${nonRootParent.resolveFullName()}_$name"
}
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64(),
).forEach {
it.binaries.framework {
`baseName = this@configureKotlinMultiplatform.resolveFullName() //here`👀
}
}
Vaibhav Jaiswal
01/09/2024, 5:04 AMProject.name
this will return the current module name, then you can use kotlin function to do any manipulation on itBekzod
01/09/2024, 7:53 AMnamespace = "com.example.myApp.feature.auth"
I could not log/print Project.name to see it.
above example namespace, which part Project.name returns
Thanks in advance!Bekzod
01/09/2024, 6:52 PM