Stanislav Radchenko
06/19/2023, 9:07 AMcocoapods {
version = "1.0.0"
summary = "Compose application framework"
homepage = "{SOME_VALUE}"
ios.deploymentTarget = "11.0"
podfile = project.file("../iosApp/Podfile")
framework {
baseName = "ComposeApp"
isStatic = true
}
pod("GoogleSignIn") // This crash sync of project
}
I'm getting this error: void org.jetbrains.kotlin.gradle.plugin.cocoapods.CocoapodsExtension.pod$default(org.jetbrains.kotlin.gradle.plugin.cocoapods.CocoapodsExtension, java.lang.String, java.lang.String, <http://java.io|java.io>.File, java.lang.String, java.lang.String, int, java.lang.Object)
If I delete `pod("GoogleSignIn")`` gradle is successfully synchronizeda-dd
06/19/2023, 11:04 AMStanislav Radchenko
06/19/2023, 11:09 AMStanislav Radchenko
06/19/2023, 11:10 AMa-dd
06/19/2023, 11:20 AMStanislav Radchenko
06/19/2023, 11:21 AMbuildSrc
. I'm trying to implement this structure:a-dd
06/19/2023, 11:29 AMStanislav Radchenko
06/19/2023, 11:33 AMa-dd
06/19/2023, 11:54 AMpod("GoogleSignIn") {}
a-dd
06/19/2023, 11:54 AMStanislav Radchenko
06/19/2023, 12:02 PMStanislav Radchenko
06/19/2023, 12:36 PMa-dd
06/19/2023, 2:58 PMkotlin-gradle-plugin
1.8.20 in your build classpath when compiling build scripts but build executes with 1.8.10. Because of that binary incompatibility happens in the builds’s runtime. It probably happens due to double-nested buildSrc
I’m not sure whether if it is a Gradle’s bug or expected behaviour but from Kotlin side it’s expected. You can check it through ./gradlew buildEnv
I highly recommend to use version catalogs for a centralized versions management instead of buildSrc
.Ahmed Elzeiny
07/26/2023, 8:20 PM