Fixed cocoapods error: expected ';' after module name
#KT-44235
This commit is contained in:
committed by
Space
parent
f6b428f271
commit
9fa55a6809
+1
-3
@@ -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 {
|
||||
|
||||
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user