Skip to content

Commit 610b732

Browse files
Merge pull request #275 from touchlab/ks/UpdatingDescriptions
Updating Descriptions
2 parents 53aa73a + 0e308d8 commit 610b732

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

kmmbridge-github/src/main/kotlin/co/touchlab/kmmbridge/github/KMMBridgeGitHubPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class KMMBridgeGitHubPlugin : BaseKMMBridgePlugin() {
1919
if (githubDeploySourceRepo != null && githubDeployTargetRepo != null) {
2020
project.tasks.register("setupDeployKeys") {
2121
group = TASK_GROUP_NAME
22-
description = "Helper task to setup GitHub deploy keys"
22+
description = "Helper task to setup GitHub deploy keys. Creates an ssh public/private key pair and adds them to the target and source repos."
2323
outputs.upToDateWhen { false } // This should always run
2424

2525
@Suppress("ObjectLiteralToLambda")

kmmbridge/src/main/kotlin/co/touchlab/kmmbridge/KMMBridge.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ abstract class BaseKMMBridgePlugin : Plugin<Project> {
132132

133133
// Publish task depends on the upload task
134134
val publishRemoteTask = tasks.register("kmmBridgePublish") {
135+
description = "Publishes your framework. Uses your KMMBridge block configured in the build gradle to determine details."
135136
group = TASK_GROUP_NAME
136137
dependsOn(uploadTask)
137138
}

kmmbridge/src/main/kotlin/co/touchlab/kmmbridge/dependencymanager/SpmDependencyManager.kt

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ internal class SpmDependencyManager(
104104
override fun execute(t: Task) {
105105
val checksum = providers.findSpmChecksum(zipFile, projectDir)
106106
val url = urlFile.readText()
107-
if (useCustomPackageFile && hasKmmbridgeVariablesSection(swiftPackageFile, packageName)) {
107+
if (useCustomPackageFile && hasKmmbridgeVariablesSection(
108+
swiftPackageFile,
109+
packageName
110+
)
111+
) {
108112
modifyPackageFileVariables(swiftPackageFile, packageName, url, checksum)
109113
} else if (useCustomPackageFile) {
110114
// We warned you earlier, but you didn't fix it, so now we interrupt the publish process because it's
@@ -160,7 +164,14 @@ internal class SpmDependencyManager(
160164
) {
161165

162166
val packageText =
163-
makePackageFileText(packageName, url, checksum, perModuleVariablesBlock, swiftToolVersion, platforms)
167+
makePackageFileText(
168+
packageName,
169+
url,
170+
checksum,
171+
perModuleVariablesBlock,
172+
swiftToolVersion,
173+
platforms
174+
)
164175
swiftPackageFile.parentFile.mkdirs()
165176
swiftPackageFile.writeText(packageText)
166177
}
@@ -199,6 +210,8 @@ internal class SpmDependencyManager(
199210
val platforms = swiftTargetPlatforms(project)
200211

201212
project.tasks.register("spmDevBuild") {
213+
description =
214+
"When using SPM, builds a debug version of the XCFramework and writes a local dev path to your Package.swift."
202215
group = TASK_GROUP_NAME
203216
dependsOn(project.findXCFrameworkAssembleTask(NativeBuildType.DEBUG))
204217

0 commit comments

Comments
 (0)