Compare commits
21 commits
fbbf5ae1fa
...
d872bdf012
Author | SHA1 | Date | |
---|---|---|---|
d872bdf012 | |||
19bb57a443 | |||
6e08a2e6c9 | |||
ee5db64532 | |||
9b9ab9b971 | |||
428b6ec76b | |||
caade0c0d1 | |||
362a54c653 | |||
d1a9b114b6 | |||
cb973ba0ec | |||
8cb0f7c94d | |||
5035c287d2 | |||
5c2807ff9a | |||
a1b3672472 | |||
3033c65a8f | |||
7055229805 | |||
0dbcdb51b9 | |||
39451e67c2 | |||
7ee7687117 | |||
ef0ca65ee6 | |||
756251a64f |
6 changed files with 36 additions and 20 deletions
|
@ -21,6 +21,7 @@ try {
|
||||||
keystoreProperties["keyPassword"] = ""
|
keystoreProperties["keyPassword"] = ""
|
||||||
keystoreProperties["storeFile"] = File.createTempFile("temp", ".tmp").absolutePath
|
keystoreProperties["storeFile"] = File.createTempFile("temp", ".tmp").absolutePath
|
||||||
keystoreProperties["storePassword"] = ""
|
keystoreProperties["storePassword"] = ""
|
||||||
|
keystoreProperties["publishCredentialsFile"] = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
@ -108,6 +109,7 @@ play {
|
||||||
enabled.set(false)
|
enabled.set(false)
|
||||||
track.set("production")
|
track.set("production")
|
||||||
defaultToAppBundles.set(true)
|
defaultToAppBundles.set(true)
|
||||||
|
serviceAccountCredentials.set(file((keystoreProperties["publishCredentialsFile"] as? String).orEmpty()))
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
- Fix crash on markdown preview
|
- Fix crash on markdown preview
|
||||||
- Persist preference for Lock Swiping
|
|
||||||
- Enable gestures on nav drawer when open
|
|
||||||
- Close navigation drawer on back press
|
- Close navigation drawer on back press
|
||||||
- Various dependency updates
|
- Enable gestures on nav drawer when open
|
||||||
|
- Persist preference for Lock Swiping
|
||||||
|
- Update dependencies
|
||||||
|
- Other minor bug fixes and performance enhancements
|
||||||
|
|
|
@ -2,25 +2,37 @@ package com.wbrawner.releasehelper
|
||||||
|
|
||||||
import org.gradle.api.DefaultTask
|
import org.gradle.api.DefaultTask
|
||||||
import org.gradle.api.file.RegularFileProperty
|
import org.gradle.api.file.RegularFileProperty
|
||||||
|
import org.gradle.api.internal.provider.Providers
|
||||||
import org.gradle.api.model.ObjectFactory
|
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.OutputFile
|
||||||
import org.gradle.api.tasks.TaskAction
|
import org.gradle.api.tasks.TaskAction
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
private const val CHANGELOG_PATH = "src/play/play/release-notes/en-US/default.txt"
|
private const val CHANGELOG_PATH = "src/play/play/release-notes/en-US/production.txt"
|
||||||
|
|
||||||
abstract class ChangelogTask @Inject constructor(objectFactory: ObjectFactory) : DefaultTask() {
|
abstract class ChangelogTask @Inject constructor(
|
||||||
|
objectFactory: ObjectFactory,
|
||||||
|
providers: ProviderFactory,
|
||||||
|
) : DefaultTask() {
|
||||||
@get:OutputFile
|
@get:OutputFile
|
||||||
val changelogFile: RegularFileProperty = objectFactory.fileProperty()
|
val changelogFile: RegularFileProperty = objectFactory.fileProperty()
|
||||||
|
|
||||||
|
@get:Input
|
||||||
|
@Suppress("UnstableApiUsage")
|
||||||
|
val latestTag: String = providers.exec {
|
||||||
|
commandLine("git" , "describe", "--tags", "--abbrev=0")
|
||||||
|
}.standardOutput.asText.get()
|
||||||
|
|
||||||
init {
|
init {
|
||||||
changelogFile.set(project.layout.projectDirectory.file(CHANGELOG_PATH))
|
changelogFile.set(project.layout.projectDirectory.file(CHANGELOG_PATH))
|
||||||
}
|
}
|
||||||
|
|
||||||
@TaskAction
|
@TaskAction
|
||||||
fun execute() {
|
fun execute() {
|
||||||
val latestTag = "git describe --tags --abbrev=0".execute()
|
val changelog = "git log --format=\"%B\" ${latestTag.trim()}..".execute()
|
||||||
val changelog = "git log --format=\"%B\" ${latestTag.first().trim()}..".execute()
|
|
||||||
logger.info("Latest tag: $latestTag")
|
logger.info("Latest tag: $latestTag")
|
||||||
logger.info("Changelog: ${changelog.joinToString("\n")}")
|
logger.info("Changelog: ${changelog.joinToString("\n")}")
|
||||||
changelogFile.get().asFile.writer().use { writer ->
|
changelogFile.get().asFile.writer().use { writer ->
|
||||||
|
@ -36,4 +48,4 @@ abstract class ChangelogTask @Inject constructor(objectFactory: ObjectFactory) :
|
||||||
.start()
|
.start()
|
||||||
.inputReader()
|
.inputReader()
|
||||||
.readLines()
|
.readLines()
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
[versions]
|
[versions]
|
||||||
acra = "5.11.3"
|
acra = "5.11.4"
|
||||||
activityKtx = "1.9.1"
|
activityKtx = "1.9.2"
|
||||||
animationCore = "1.6.8"
|
animationCore = "1.7.2"
|
||||||
appcompat = "1.7.0"
|
appcompat = "1.7.0"
|
||||||
billing = "7.0.0"
|
billing = "7.1.0"
|
||||||
browser = "1.8.0"
|
browser = "1.8.0"
|
||||||
commonMarkVersion = "0.22.0"
|
commonMarkVersion = "0.23.0"
|
||||||
composeBom = "2024.08.00"
|
composeBom = "2024.08.00"
|
||||||
core = "1.6.1"
|
core = "1.6.1"
|
||||||
coreKtx = "1.13.1"
|
coreKtx = "1.13.1"
|
||||||
coreSplashscreen = "1.0.1"
|
coreSplashscreen = "1.0.1"
|
||||||
coroutines = "1.8.1"
|
coroutines = "1.9.0"
|
||||||
dependencyAnalysis = "2.0.1"
|
dependencyAnalysis = "2.1.0"
|
||||||
espressoVersion = "3.6.1"
|
espressoVersion = "3.6.1"
|
||||||
fladle = "0.17.5"
|
fladle = "0.17.5"
|
||||||
googleServices = "4.4.2"
|
googleServices = "4.4.2"
|
||||||
|
@ -20,10 +20,10 @@ androidGradlePlugin = "8.5.2"
|
||||||
hamcrestCore = "1.3"
|
hamcrestCore = "1.3"
|
||||||
junit = "4.13.2"
|
junit = "4.13.2"
|
||||||
kotlin = "2.0.20"
|
kotlin = "2.0.20"
|
||||||
lifecycleViewmodelKtx = "2.8.4"
|
lifecycleViewmodelKtx = "2.8.6"
|
||||||
material = "1.12.0"
|
material = "1.12.0"
|
||||||
material3WindowSizeClassAndroid = "1.2.1"
|
material3WindowSizeClassAndroid = "1.3.0"
|
||||||
materialIconsCore = "1.6.8"
|
materialIconsCore = "1.7.2"
|
||||||
maxSdk = "35"
|
maxSdk = "35"
|
||||||
minSdk = "23"
|
minSdk = "23"
|
||||||
monitor = "1.7.2"
|
monitor = "1.7.2"
|
||||||
|
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,6 +1,6 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
storePassword=
|
storePassword=
|
||||||
keyPassword=
|
keyPassword=
|
||||||
keyAlias=
|
keyAlias=
|
||||||
storeFile=
|
storeFile=
|
||||||
|
publishCredentialsFile=
|
Loading…
Reference in a new issue