Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file

## [Unreleased]

## [1.23.0] - 2026-09-21

### Fixed

- Corrected requireNotNull ordering in VersioningPlugin so null checks work as intended

## [1.22.0] - 2026-09-21

### Added
Expand Down
2 changes: 1 addition & 1 deletion app/version.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# This file was automatically generated by 'versioning-plugin'. DO NOT EDIT MANUALLY.
#
versioning-plugin.versionCode=12300
versioning-plugin.versionName=1.23.0-SNAPSHOT
versioning-plugin.versionName=1.23.0
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,4 @@ class ApplicationPlugin : Plugin<Project> {
project.configureBuildSigning()
}
}

private fun Project.isSnapshot(): Boolean {
with(providers) {
val workflow = environmentVariable("GITHUB_WORKFLOW")
val snapshot = environmentVariable("SNAPSHOT")
return workflow.isPresent || snapshot.isPresent
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ abstract class PSLUpdateTask : DefaultTask() {
@Suppress("TooGenericExceptionThrown", "ThrowsCount")
private fun assertWildcardRule(rule: String) {
if (rule.indexOf(WILDCARD_CHAR) != 0) {
throw RuntimeException("Wildcard is not not in leftmost position")
throw RuntimeException("Wildcard is not in leftmost position")
}

if (rule.indexOf(WILDCARD_CHAR, 1) != -1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import org.gradle.kotlin.dsl.withType
/**
* A Gradle [Plugin] that takes a [Project] with the [AppPlugin] applied and dynamically sets the
* versionCode and versionName properties based on values read from a [VERSIONING_PROP_FILE] file in
* the [Project.getBuildDir] directory. It also adds Gradle tasks to bump the major, minor, and
* patch versions along with one to prepare the next snapshot.
* the project directory. It also adds Gradle tasks to bump the major, minor, and patch versions
* along with one to prepare the next snapshot.
*/
@Suppress("Unused")
class VersioningPlugin : Plugin<Project> {
Expand Down
Loading