Skip to content

Commit

Permalink
Bump version to 2.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
alialbaali committed Aug 5, 2022
1 parent 56cfa26 commit b234d2d
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 7 deletions.
10 changes: 8 additions & 2 deletions app/src/main/java/com/noto/app/domain/model/Release.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ sealed interface Release {
data class Version(val major: Int, val minor: Int, val patch: Int) {

companion object {
const val Current = "2.1.4"
const val Last = "2.1.3"
const val Current = "2.1.5"
const val Last = "2.1.4"
}

override fun toString(): String = "$major.$minor.$patch"
Expand Down Expand Up @@ -70,4 +70,10 @@ data class Release_2_1_3(override val changelog: Changelog) : Release {
data class Release_2_1_4(override val changelog: Changelog) : Release {
override val version: Version = Version(2, 1, 4)
override val date: LocalDate = LocalDate(2022, Month.AUGUST, 2)
}

@Suppress("ClassName")
data class Release_2_1_5(override val changelog: Changelog) : Release {
override val version: Version = Version(2, 1, 5)
override val date: LocalDate = LocalDate(2022, Month.AUGUST, 5)
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import com.noto.app.R
import com.noto.app.databinding.WhatsNewDialogFragmentBinding
import com.noto.app.domain.model.Release
import com.noto.app.domain.model.Release.Changelog
import com.noto.app.domain.model.Release_2_1_4
import com.noto.app.domain.model.Release_2_1_5
import com.noto.app.util.*
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
Expand All @@ -24,8 +24,8 @@ class WhatsNewDialogFragment : BaseDialogFragment() {

private val currentRelease: Release? by lazy {
context?.let { context ->
val changelog = Changelog(context.stringResource(R.string.release_2_1_4))
Release_2_1_4(changelog)
val changelog = Changelog(context.stringResource(R.string.release_2_1_5))
Release_2_1_5(changelog)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class WhatsNewFragment : Fragment() {
private val releases: List<Release> by lazy {
context?.let { context ->
listOf(
Release_2_1_5(Release.Changelog(context.stringResource(R.string.release_2_1_5))),
Release_2_1_4(Release.Changelog(context.stringResource(R.string.release_2_1_4))),
Release_2_1_3(Release.Changelog(context.stringResource(R.string.release_2_1_3))),
Release_2_1_2(Release.Changelog(context.stringResource(R.string.release_2_1_2))),
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -342,4 +342,5 @@
\n• التسميات المحددة تظهر الآن أولا في تخطيط الملاحظة.
\n• إصلاحات الأخطاء الأخرى وتحسين التصميم.
</string>
<string name="release_2_1_5">• إصلاح الأخطاء وتحسين التصميم.</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -331,4 +331,5 @@
\n• Ausgewählte Labels erscheinen jetzt in der Notiz an erster Stelle.
\n• Weitere Bugfixes und Design-Verbesserungen.
</string>
<string name="release_2_1_5">• Fehlerbehebungen und Verbesserungen des Designs.</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -333,4 +333,5 @@
\n• Etiquetas seleccionadas ahora aparecen primero en el diseño de nota.
\n• Otras correcciones de errores y mejoras de diseño.
</string>
<string name="release_2_1_5">• Corrección de errores y mejoras de diseño.</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -332,4 +332,5 @@
<string name="release_2_1_4">• Correction des raccourcis non fonctionnels lors de l\'utilisation d\'une icône différente
\n• Les étiquettes sélectionnées apparaissent en premier sur une note
\n• Autres corrections de bugs et améliorations mineures. </string>
<string name="release_2_1_5">• Corrections de bugs et améliorations mineures.</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-in/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -330,4 +330,5 @@
\n• Label yang dipilih sekarang muncul pertama kali di tata letak catatan.
\n• Perbaikan bug dan peningkatan desain lainnya.
</string>
<string name="release_2_1_5">• Perbaikan bug dan peningkatan desain.</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-tr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -303,4 +303,5 @@
\n• Seçilen etiketler artık not arayüzünün başında görünecek.
\n• Diğer hata düzeltmeleri ve tasarım iyileştirmeleri.
</string>
<string name="release_2_1_5">- Hata düzeltmeleri ve tasarımda iyileştirmeler.</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -354,4 +354,5 @@
\n• Selected labels now appear first in note\'s layout.
\n• Other bug fixes and design improvements.
</string>
<string name="release_2_1_5">• Bug fixes and design improvements.</string>
</resources>
4 changes: 2 additions & 2 deletions buildSrc/src/main/java/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ object Versions {
}

object App {
const val VersionName = "2.1.4"
const val VersionCode = 43
const val VersionName = "2.1.5"
const val VersionCode = 44
const val ID = "com.noto"
const val MinSDK = 21
const val CompileSDK = 32
Expand Down

0 comments on commit b234d2d

Please sign in to comment.