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()) {
|
with(project.gradleBuildScript()) {
|
||||||
addPod(
|
addPod(
|
||||||
podName,
|
podName,
|
||||||
"""source = url("$repo", $flatten)
|
"source = url(\"$repo\", $flatten)"
|
||||||
|moduleName = "Pod_with_dashes"
|
|
||||||
""".trimMargin()
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
hooks.addHook {
|
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.
|
// Empty string will lead to an attempt to create two podDownload tasks.
|
||||||
// One is original podDownload and second is podDownload + pod.name
|
// One is original podDownload and second is podDownload + pod.name
|
||||||
require(name.isNotEmpty()) { "Please provide not empty pod name to avoid ambiguity" }
|
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()
|
dependency.configure()
|
||||||
addToPods(dependency)
|
addToPods(dependency)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user