Skip to content

Commit 568777b

Browse files
runningcodeclaude
andauthored
refactor(distribution): Rename orgAuthToken to distributionAuthToken (#1025)
* refactor(distribution): Rename orgAuthToken to distributionAuthToken The property orgAuthToken was misleading as it specifically holds the distribution auth token, not a general org token. Renamed to distributionAuthToken for better clarity and consistency with its usage (extension.distribution.authToken) and the property it writes to (DISTRIBUTION_AUTH_TOKEN_PROPERTY). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * style(distribution): Apply spotless formatting Applied spotless formatting to break long line in GenerateDistributionPropertiesTask. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 15068f5 commit 568777b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

plugin-build/src/main/kotlin/io/sentry/android/gradle/tasks/GenerateDistributionPropertiesTask.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ abstract class GenerateDistributionPropertiesTask : PropertiesFileOutputTask() {
4343

4444
@get:Input abstract val projectSlug: Property<String>
4545

46-
@get:Input abstract val orgAuthToken: Property<String>
46+
@get:Input abstract val distributionAuthToken: Property<String>
4747

4848
@get:Input abstract val buildConfiguration: Property<String>
4949

@@ -52,7 +52,9 @@ abstract class GenerateDistributionPropertiesTask : PropertiesFileOutputTask() {
5252
outputFile.get().asFile.writer().use { writer ->
5353
orgSlug.orNull?.let { writer.appendLine("$ORG_SLUG_PROPERTY=$it") }
5454
projectSlug.orNull?.let { writer.appendLine("$PROJECT_SLUG_PROPERTY=$it") }
55-
orgAuthToken.orNull?.let { writer.appendLine("$DISTRIBUTION_AUTH_TOKEN_PROPERTY=$it") }
55+
distributionAuthToken.orNull?.let {
56+
writer.appendLine("$DISTRIBUTION_AUTH_TOKEN_PROPERTY=$it")
57+
}
5658
writer.appendLine("$BUILD_CONFIGURATION_PROPERTY=${buildConfiguration.get()}")
5759
}
5860
}
@@ -117,7 +119,7 @@ abstract class GenerateDistributionPropertiesTask : PropertiesFileOutputTask() {
117119
}
118120
task.projectSlug.set(projectProvider)
119121

120-
task.orgAuthToken.set(extension.distribution.authToken)
122+
task.distributionAuthToken.set(extension.distribution.authToken)
121123

122124
task.buildConfiguration.set(buildConfiguration)
123125
}

0 commit comments

Comments
 (0)