diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-12-29 22:00:40 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2022-12-29 22:51:27 +0530 |
commit | fbb8eedb9df1a76e4967020104698182ae48ba6e (patch) | |
tree | dd39dd0996cbdef3562eb0ce7644c2b44980079e /build-logic/src/main/kotlin | |
parent | fe1518dfe34d88ce8374c571e03e2c977a91eb87 (diff) |
feat(gradle): bump to 8.0 RC1
Diffstat (limited to 'build-logic/src/main/kotlin')
-rw-r--r-- | build-logic/src/main/kotlin/app/passwordstore/gradle/RenameArtifactsPlugin.kt | 8 | ||||
-rw-r--r-- | build-logic/src/main/kotlin/app/passwordstore/gradle/psl/PSLUpdateTask.kt | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/build-logic/src/main/kotlin/app/passwordstore/gradle/RenameArtifactsPlugin.kt b/build-logic/src/main/kotlin/app/passwordstore/gradle/RenameArtifactsPlugin.kt index 813155b4..a65b9794 100644 --- a/build-logic/src/main/kotlin/app/passwordstore/gradle/RenameArtifactsPlugin.kt +++ b/build-logic/src/main/kotlin/app/passwordstore/gradle/RenameArtifactsPlugin.kt @@ -17,13 +17,17 @@ class RenameArtifactsPlugin : Plugin<Project> { project.pluginManager.withPlugin("com.android.application") { project.extensions.configure<ApplicationAndroidComponentsExtension> { onVariants { variant -> - project.tasks.register<CollectApksTask>("collect${variant.name.capitalize()}Apks") { + project.tasks.register<CollectApksTask>( + "collect${variant.name.replaceFirstChar { it.uppercase() }}Apks" + ) { variantName.set(variant.name) apkFolder.set(variant.artifacts.get(SingleArtifact.APK)) builtArtifactsLoader.set(variant.artifacts.getBuiltArtifactsLoader()) outputDirectory.set(project.layout.projectDirectory.dir("outputs")) } - project.tasks.register<CollectBundleTask>("collect${variant.name.capitalize()}Bundle") { + project.tasks.register<CollectBundleTask>( + "collect${variant.name.replaceFirstChar { it.uppercase() }}Bundle" + ) { val mainOutput = variant.outputs.single { it.outputType == VariantOutputConfiguration.OutputType.SINGLE diff --git a/build-logic/src/main/kotlin/app/passwordstore/gradle/psl/PSLUpdateTask.kt b/build-logic/src/main/kotlin/app/passwordstore/gradle/psl/PSLUpdateTask.kt index a5de3d49..381cb40e 100644 --- a/build-logic/src/main/kotlin/app/passwordstore/gradle/psl/PSLUpdateTask.kt +++ b/build-logic/src/main/kotlin/app/passwordstore/gradle/psl/PSLUpdateTask.kt @@ -91,13 +91,13 @@ abstract class PSLUpdateTask : DefaultTask() { sink.writeInt(data.totalRuleBytes) for (domain in data.sortedRules) { - sink.write(domain).writeByte('\n'.toInt()) + sink.write(domain).writeByte('\n'.code) } sink.writeInt(data.totalExceptionRuleBytes) for (domain in data.sortedExceptionRules) { - sink.write(domain).writeByte('\n'.toInt()) + sink.write(domain).writeByte('\n'.code) } } } |