Fix release update version checking & update release note template

This commit is contained in:
Cuong-Tran 2024-10-29 11:58:02 +07:00
parent 3f00487e95
commit fde71c0b70
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2
10 changed files with 23 additions and 27 deletions

View file

@ -53,7 +53,7 @@ body:
label: Komikku version label: Komikku version
description: You can find your Komikku version in **More → About**. description: You can find your Komikku version in **More → About**.
placeholder: | placeholder: |
Example: "1.11.2" Example: "1.12.1"
validations: validations:
required: true required: true
@ -98,7 +98,7 @@ body:
required: true required: true
- label: I have gone through the [FAQ](https://mihon.app/docs/faq/general) and [troubleshooting guide](https:/mihon.app/docs/guides/troubleshooting/). - label: I have gone through the [FAQ](https://mihon.app/docs/faq/general) and [troubleshooting guide](https:/mihon.app/docs/guides/troubleshooting/).
required: true required: true
- label: I have updated the app to version **[1.11.2](https://github.com/komikku-app/komikku/releases/latest)**. - label: I have updated the app to version **[1.12.1](https://github.com/komikku-app/komikku/releases/latest)**.
required: true required: true
- label: I have updated all installed extensions. - label: I have updated all installed extensions.
required: true required: true

View file

@ -33,7 +33,7 @@ body:
required: true required: true
- label: If this is an issue with an official extension, I should be opening an issue in the [extensions repository](https://github.com/komikku-app/extensions/issues/new/choose). - label: If this is an issue with an official extension, I should be opening an issue in the [extensions repository](https://github.com/komikku-app/extensions/issues/new/choose).
required: true required: true
- label: I have updated the app to version **[1.11.2](https://github.com/komikku-app/komikku/releases/latest)**. - label: I have updated the app to version **[1.12.1](https://github.com/komikku-app/komikku/releases/latest)**.
required: true required: true
- label: I will fill out all of the requested information in this form. - label: I will fill out all of the requested information in this form.
required: true required: true

View file

@ -215,17 +215,17 @@ jobs:
tag_name: ${{ needs.prepare-build.outputs.TAG_NAME }} tag_name: ${{ needs.prepare-build.outputs.TAG_NAME }}
name: Komikku Preview ${{ needs.prepare-build.outputs.TAG_NAME }} (${{ needs.prepare-build.outputs.VERSION_TAG }}) name: Komikku Preview ${{ needs.prepare-build.outputs.TAG_NAME }} (${{ needs.prepare-build.outputs.VERSION_TAG }})
body: | body: |
### What's Changed #### What's Changed
#### New ##### New
#### Improve ##### Improve
#### Fix ##### Fix
**Full Changelog**: https://github.com/komikku-app/komikku/compare/${{ needs.prepare-build.outputs.PREV_TAG_NAME }}...${{ needs.prepare-build.outputs.TAG_NAME }}
${{ needs.prepare-build.outputs.COMMIT_LOGS }} ${{ needs.prepare-build.outputs.COMMIT_LOGS }}
**Full Changelog**: [${{ needs.prepare-build.outputs.TAG_NAME }}](https://github.com/komikku-app/komikku/compare/${{ needs.prepare-build.outputs.PREV_TAG_NAME }}...${{ needs.prepare-build.outputs.TAG_NAME }})
--- ---
### Checksums ### Checksums

View file

@ -191,18 +191,18 @@ jobs:
tag_name: ${{ needs.prepare-build.outputs.VERSION_TAG }} tag_name: ${{ needs.prepare-build.outputs.VERSION_TAG }}
name: Komikku ${{ needs.prepare-build.outputs.VERSION_TAG }} name: Komikku ${{ needs.prepare-build.outputs.VERSION_TAG }}
body: | body: |
### What's Changed #### What's Changed
#### New ##### New
#### Improve ##### Improve
#### Fix ##### Fix
${{ needs.prepare-build.outputs.COMMIT_LOGS }}
##### Based on ##### Based on
**Full Changelog**: https://github.com/komikku-app/komikku/compare/${{ needs.prepare-build.outputs.PREV_TAG_NAME }}...${{ needs.prepare-build.outputs.VERSION_TAG }} **Full Changelog**: [${{ needs.prepare-build.outputs.VERSION_TAG }}](https://github.com/komikku-app/komikku/compare/${{ needs.prepare-build.outputs.PREV_TAG_NAME }}...${{ needs.prepare-build.outputs.VERSION_TAG }})
${{ needs.prepare-build.outputs.COMMIT_LOGS }}
--- ---

View file

@ -33,7 +33,7 @@ android {
applicationId = "app.komikku" applicationId = "app.komikku"
versionCode = 71 versionCode = 71
versionName = "1.12.0" versionName = "1.12.1"
buildConfigField("String", "COMMIT_COUNT", "\"${getCommitCount()}\"") buildConfigField("String", "COMMIT_COUNT", "\"${getCommitCount()}\"")
buildConfigField("String", "COMMIT_SHA", "\"${getGitSha()}\"") buildConfigField("String", "COMMIT_SHA", "\"${getGitSha()}\"")

View file

@ -16,11 +16,6 @@ class AppUpdateChecker(
private val getApplicationRelease: GetApplicationRelease by injectLazy() private val getApplicationRelease: GetApplicationRelease by injectLazy()
suspend fun checkForUpdate(context: Context, forceCheck: Boolean = false): GetApplicationRelease.Result { suspend fun checkForUpdate(context: Context, forceCheck: Boolean = false): GetApplicationRelease.Result {
// Disable app update checks for older Android versions that we're going to drop support for
// if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) {
// return GetApplicationRelease.Result.OsTooOld
// }
return withIOContext { return withIOContext {
val result = getApplicationRelease.await( val result = getApplicationRelease.await(
GetApplicationRelease.Arguments( GetApplicationRelease.Arguments(

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<changelog bulletedList="true"> <changelog bulletedList="true">
<changelogversion versionName="1.11.3" changeDate="Oct 28, 2024"> <changelogversion versionName="1.12.1" changeDate="Oct 29, 2024">
<changelogtext>[b]New:[/b] Error screen</changelogtext> <changelogtext>[b]New:[/b] Error screen</changelogtext>
<changelogtext>[b]New:[/b] Hidden categories</changelogtext> <changelogtext>[b]New:[/b] Hidden categories</changelogtext>
<changelogtext>[b]New:[/b] Range-selection for Migration</changelogtext> <changelogtext>[b]New:[/b] Range-selection for Migration</changelogtext>

View file

@ -48,7 +48,7 @@ val gitHubUsernameMentionRegex =
* to: [komikku-app/komikku@23d862d17...48fb4a2e6](https://github.com/komikku-app/komikku/compare/23d862d17...48fb4a2e6) * to: [komikku-app/komikku@23d862d17...48fb4a2e6](https://github.com/komikku-app/komikku/compare/23d862d17...48fb4a2e6)
*/ */
val gitHubCommitsCompareRegex = val gitHubCommitsCompareRegex =
"""https://github.com/(?<owner>[^/]+)/(?<repo>[^/]+)/compare/(?<from>[0-9a-f.rv]+)\.\.\.(?<to>[0-9a-f.rv]+)""" """(\[[^]+]]\()?https://github.com/(?<owner>[^/]+)/(?<repo>[^/]+)/compare/(?<from>[0-9a-f.rv]+)\.\.\.(?<to>[0-9a-f.rv]+)\)?"""
.toRegex(RegexOption.IGNORE_CASE) .toRegex(RegexOption.IGNORE_CASE)
// KMK <-- // KMK <--

View file

@ -117,6 +117,7 @@ class GetApplicationRelease(
if (newSemVer[index] > i) { if (newSemVer[index] > i) {
return true return true
} }
if (newSemVer[index] < i) return false
} }
false false

View file

@ -16,9 +16,9 @@ import java.time.Instant
class GetApplicationReleaseTest { class GetApplicationReleaseTest {
lateinit var getApplicationRelease: GetApplicationRelease private lateinit var getApplicationRelease: GetApplicationRelease
lateinit var releaseService: ReleaseService private lateinit var releaseService: ReleaseService
lateinit var preference: Preference<Long> private lateinit var preference: Preference<Long>
@BeforeEach @BeforeEach
fun beforeEach() { fun beforeEach() {