Compare commits
No commits in common. "fbbf5ae1fa0921a5d96acda9f46847f5e8fe44e1" and "c7a888a413d3c3563bee381edee0f55c9e1209f8" have entirely different histories.
fbbf5ae1fa
...
c7a888a413
4 changed files with 9 additions and 25 deletions
|
@ -21,7 +21,6 @@ try {
|
|||
keystoreProperties["keyPassword"] = ""
|
||||
keystoreProperties["storeFile"] = File.createTempFile("temp", ".tmp").absolutePath
|
||||
keystoreProperties["storePassword"] = ""
|
||||
keystoreProperties["publishCredentialsFile"] = ""
|
||||
}
|
||||
|
||||
android {
|
||||
|
@ -109,7 +108,6 @@ play {
|
|||
enabled.set(false)
|
||||
track.set("production")
|
||||
defaultToAppBundles.set(true)
|
||||
serviceAccountCredentials.set(file((keystoreProperties["publishCredentialsFile"] as? String).orEmpty()))
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
- Fix crash on markdown preview
|
||||
- Close navigation drawer on back press
|
||||
- Enable gestures on nav drawer when open
|
||||
- Persist preference for Lock Swiping
|
||||
- Update dependencies
|
||||
- Other minor bug fixes and performance enhancements
|
||||
- Enable gestures on nav drawer when open
|
||||
- Close navigation drawer on back press
|
||||
- Various dependency updates
|
|
@ -2,37 +2,25 @@ package com.wbrawner.releasehelper
|
|||
|
||||
import org.gradle.api.DefaultTask
|
||||
import org.gradle.api.file.RegularFileProperty
|
||||
import org.gradle.api.internal.provider.Providers
|
||||
import org.gradle.api.model.ObjectFactory
|
||||
import org.gradle.api.provider.Property
|
||||
import org.gradle.api.provider.ProviderFactory
|
||||
import org.gradle.api.tasks.Input
|
||||
import org.gradle.api.tasks.OutputFile
|
||||
import org.gradle.api.tasks.TaskAction
|
||||
import javax.inject.Inject
|
||||
|
||||
private const val CHANGELOG_PATH = "src/play/play/release-notes/en-US/production.txt"
|
||||
private const val CHANGELOG_PATH = "src/play/play/release-notes/en-US/default.txt"
|
||||
|
||||
abstract class ChangelogTask @Inject constructor(
|
||||
objectFactory: ObjectFactory,
|
||||
providers: ProviderFactory,
|
||||
) : DefaultTask() {
|
||||
abstract class ChangelogTask @Inject constructor(objectFactory: ObjectFactory) : DefaultTask() {
|
||||
@get:OutputFile
|
||||
val changelogFile: RegularFileProperty = objectFactory.fileProperty()
|
||||
|
||||
@get:Input
|
||||
@Suppress("UnstableApiUsage")
|
||||
val latestTag: String = providers.exec {
|
||||
commandLine("git" , "describe", "--tags", "--abbrev=0")
|
||||
}.standardOutput.asText.get()
|
||||
|
||||
init {
|
||||
changelogFile.set(project.layout.projectDirectory.file(CHANGELOG_PATH))
|
||||
}
|
||||
|
||||
@TaskAction
|
||||
fun execute() {
|
||||
val changelog = "git log --format=\"%B\" ${latestTag.trim()}..".execute()
|
||||
val latestTag = "git describe --tags --abbrev=0".execute()
|
||||
val changelog = "git log --format=\"%B\" ${latestTag.first().trim()}..".execute()
|
||||
logger.info("Latest tag: $latestTag")
|
||||
logger.info("Changelog: ${changelog.joinToString("\n")}")
|
||||
changelogFile.get().asFile.writer().use { writer ->
|
||||
|
@ -48,4 +36,4 @@ abstract class ChangelogTask @Inject constructor(
|
|||
.start()
|
||||
.inputReader()
|
||||
.readLines()
|
||||
}
|
||||
}
|
|
@ -1,5 +1,4 @@
|
|||
storePassword=
|
||||
keyPassword=
|
||||
keyAlias=
|
||||
storeFile=
|
||||
publishCredentialsFile=
|
||||
storeFile=
|
Loading…
Reference in a new issue