Skip to content

Commit

Permalink
Bump version to 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alialbaali committed Sep 12, 2023
1 parent 345bba9 commit 49a0e21
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 16 deletions.
11 changes: 9 additions & 2 deletions app/src/main/java/com/noto/app/domain/model/Release.kt
Expand Up @@ -23,8 +23,8 @@ sealed interface Release {
data class Version(val major: Int, val minor: Int, val patch: Int, val status: Status = Status.Stable) {

companion object {
val Current = Version(2, 3, 0)
val Last = Version(2, 2, 3)
val Current = Version(2, 3, 1)
val Last = Version(2, 3, 0)
}

fun format(): String = if (status is Status.Beta) "$major.$minor.$patch-${status.format()}" else "$major.$minor.$patch"
Expand Down Expand Up @@ -154,4 +154,11 @@ data class Release_2_2_3(override val changelog: Changelog) : Release {
data class Release_2_3_0(override val changelog: Changelog) : Release {
override val version: Version = Version(2, 3, 0)
override val date: LocalDate = LocalDate(2023, Month.AUGUST, 21)
}

@Suppress("ClassName")
@Serializable
data class Release_2_3_1(override val changelog: Changelog) : Release {
override val version: Version = Version(2, 3, 1)
override val date: LocalDate = LocalDate(2023, Month.SEPTEMBER, 11)
}
32 changes: 20 additions & 12 deletions app/src/main/java/com/noto/app/util/ReleaseUtils.kt
Expand Up @@ -14,26 +14,34 @@ fun Release.Changelog.format(context: Context, count: Int) = changesIds.take(cou
.let { if (changesIds.count() > count) it.plus("\n\n...") else it }

val Release.Companion.Current: Release
get() = Release_2_3_0(
get() = Release_2_3_1(
Release.Changelog(
listOf(
R.string.release_2_3_0_new_languages,
R.string.release_2_3_0_reminder,
R.string.release_2_3_0_selection,
R.string.release_2_3_0_find_in_note,
R.string.release_2_3_0_archive,
R.string.release_2_3_0_sorting,
R.string.release_2_3_0_reading_mode,
R.string.release_2_3_0_whats_new,
R.string.release_2_3_0_report_issues,
R.string.release_2_3_0_quick_note,
R.string.release_2_3_0_bug_fixes,
R.string.release_2_3_1_languages,
R.string.release_2_3_1_auto_scroll,
)
)
)

val Release.Companion.Previous: List<Release>
get() = listOf(
Release_2_3_0(
Release.Changelog(
listOf(
R.string.release_2_3_0_new_languages,
R.string.release_2_3_0_reminder,
R.string.release_2_3_0_selection,
R.string.release_2_3_0_find_in_note,
R.string.release_2_3_0_archive,
R.string.release_2_3_0_sorting,
R.string.release_2_3_0_reading_mode,
R.string.release_2_3_0_whats_new,
R.string.release_2_3_0_report_issues,
R.string.release_2_3_0_quick_note,
R.string.release_2_3_0_bug_fixes,
)
)
),
Release_2_2_3(
Release.Changelog(
listOf(
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values/strings.xml
Expand Up @@ -694,4 +694,7 @@
<string name="release_2_3_0_quick_note">Fixed multiple dialogs being opened when creating a Quick Note.</string>
<string name="release_2_3_0_bug_fixes" translatable="false">@string/release_bug_fixes_and_design_improvements</string>

<string name="release_2_3_1_languages">Supported Korean.</string>
<string name="release_2_3_1_auto_scroll">Improved auto-scroll when writing notes.</string>

</resources>
4 changes: 2 additions & 2 deletions buildSrc/src/main/java/App.kt
@@ -1,6 +1,6 @@
object App {
const val VersionName = "2.3.0"
const val VersionCode = 59
const val VersionName = "2.3.1"
const val VersionCode = 60
const val ID = "com.noto"
const val Namespace = "com.noto.app"
const val MinSDK = 21
Expand Down
2 changes: 2 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/60.txt
@@ -0,0 +1,2 @@
- Supported Korean.
- Improved auto-scroll when writing notes.

0 comments on commit 49a0e21

Please sign in to comment.