Fixed cocoapods error: expected ';' after module name

#KT-44235
This commit is contained in:
Viacheslav Kormushkin
2021-06-20 15:28:31 +03:00
committed by Space
parent f6b428f271
commit 9fa55a6809
2 changed files with 2 additions and 4 deletions
@@ -697,9 +697,7 @@ class CocoaPodsIT : BaseGradleIT() {
with(project.gradleBuildScript()) {
addPod(
podName,
"""source = url("$repo", $flatten)
|moduleName = "Pod_with_dashes"
""".trimMargin()
"source = url(\"$repo\", $flatten)"
)
}
hooks.addHook {
@@ -199,7 +199,7 @@ open class CocoapodsExtension(private val project: Project) {
// Empty string will lead to an attempt to create two podDownload tasks.
// One is original podDownload and second is podDownload + pod.name
require(name.isNotEmpty()) { "Please provide not empty pod name to avoid ambiguity" }
val dependency = CocoapodsDependency(name, name.split("/")[0])
val dependency = CocoapodsDependency(name, name.asModuleName())
dependency.configure()
addToPods(dependency)
}