Skip to content

Commit c2d6e49

Browse files
authored
fix #51 (#52)
* update deps * fix
1 parent 9607e84 commit c2d6e49

File tree

5 files changed

+10
-13
lines changed

5 files changed

+10
-13
lines changed

app/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ android {
3535

3636
applicationId = "io.github.wiiznokes.gitnote"
3737
minSdk = 30
38-
targetSdk = 34
38+
targetSdk = 35
3939
versionCode = 1
4040
versionName = getVersion()
4141

app/src/main/java/io/github/wiiznokes/gitnote/data/room/Schema.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ data class Note(
7878
) : Parcelable, Serializable {
7979

8080
override fun toString(): String =
81-
"Note(relativePath=$relativePath, id=$id)"
81+
"Note(relativePath=$relativePath, id=$id, content=$content)"
8282

8383
companion object {
8484
fun new(

app/src/main/java/io/github/wiiznokes/gitnote/ui/viewmodel/EditViewModel.kt

-3
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ class EditViewModel() : ViewModel() {
119119
name = name.value.text,
120120
fileExtension = fileExtension.value,
121121
content = content.value.text,
122-
id = previousNote.id
123122
).onSuccess {
124123
if (onSuccess != null) {
125124
onSuccess()
@@ -139,7 +138,6 @@ class EditViewModel() : ViewModel() {
139138
name: String,
140139
fileExtension: FileExtension,
141140
content: String,
142-
id: Int
143141
): Result<Note> {
144142

145143
if (!NameValidation.check(name)) {
@@ -157,7 +155,6 @@ class EditViewModel() : ViewModel() {
157155
val newNote = Note.new(
158156
relativePath = relativePath,
159157
content = content,
160-
id = id
161158
)
162159

163160
prefs.repoPathBlocking().let { repoPath ->

gradle/libs.versions.toml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
[versions]
2-
agp = "8.5.2"
3-
kotlin = "2.0.20"
2+
agp = "8.7.1"
3+
kotlin = "2.0.21"
44

55
# https://github.com/google/ksp/releases
66
# sync with the kotlin version
77
ksp = "2.0.20-1.0.24"
88

9-
ktx-lifecycle = "2.8.4"
9+
ktx-lifecycle = "2.8.6"
1010
room = "2.6.1"
11-
about-libraries = "11.2.1"
11+
about-libraries = "11.2.3"
1212

1313
[libraries]
1414
# AndroidX Core
1515
androidx-ktx = { group = "androidx.core", name = "core-ktx", version = "1.13.1" }
1616
runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "ktx-lifecycle" }
1717
runtime-compose = { group = "androidx.lifecycle", name = "lifecycle-runtime-compose", version.ref = "ktx-lifecycle" }
18-
compose-activity = { group = "androidx.activity", name = "activity-compose", version = "1.9.1" }
18+
compose-activity = { group = "androidx.activity", name = "activity-compose", version = "1.9.3" }
1919
datastore-preferences = { group = "androidx.datastore", name = "datastore-preferences", version = "1.1.1" }
2020

2121
# Compose
2222
# https://central.sonatype.com/artifact/dev.chrisbanes.compose/compose-bom/versions
2323
# compose-bom-alpha = { group = "dev.chrisbanes.compose", name = "compose-bom", version = "2024.05.00-alpha03" }
24-
compose-bom = { group = "androidx.compose", name = "compose-bom", version = "2024.08.00" }
24+
compose-bom = { group = "androidx.compose", name = "compose-bom", version = "2024.10.00" }
2525
compose-ui = { group = "androidx.compose.ui", name = "ui" }
2626
compose-ui-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
2727
androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
@@ -46,7 +46,7 @@ about-libraries = { group = "com.mikepenz", name = "aboutlibraries-compose-m3",
4646
reimagined-navigation = { group = "dev.olshevski.navigation", name = "reimagined", version = "1.5.0" }
4747

4848
# Test
49-
kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-test", version = "1.8.1" }
49+
kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-test", version = "1.9.0" }
5050
test-junit-ktx = { group = "androidx.test.ext", name = "junit-ktx", version = "1.2.1" }
5151
androidx-runner = { group = "androidx.test", name = "runner", version = "1.6.2" }
5252

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Wed Feb 28 02:22:38 CET 2024
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)