Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit cc70895

Browse files
committed
Update 1.6.6
1 parent 6bbaf61 commit cc70895

File tree

26 files changed

+121
-92
lines changed

26 files changed

+121
-92
lines changed

.idea/compiler.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/deviceManager.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/kotlinc.xml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ plugins {
1111

1212
android {
1313
namespace = "com.yangdai.opennote"
14-
compileSdk = 35
14+
compileSdk = 36
1515

1616
defaultConfig {
1717
applicationId = "com.yangdai.opennote"
1818
minSdk = 29
19-
targetSdk = 35
20-
versionCode = 1650
21-
versionName = "1.6.5"
19+
targetSdk = 36
20+
versionCode = 1660
21+
versionName = "1.6.6"
2222

2323
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2424
vectorDrawables {

app/src/main/java/com/yangdai/opennote/domain/usecase/NoteOrder.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package com.yangdai.opennote.domain.usecase
22

33
sealed class NoteOrder(val orderType: OrderType) {
4-
class Title(orderType: OrderType): NoteOrder(orderType)
5-
class Date(orderType: OrderType): NoteOrder(orderType)
4+
class Title(orderType: OrderType) : NoteOrder(orderType)
5+
class Date(orderType: OrderType) : NoteOrder(orderType)
66

77
fun copy(orderType: OrderType): NoteOrder {
8-
return when(this) {
8+
return when (this) {
99
is Title -> Title(orderType)
1010
is Date -> Date(orderType)
1111
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.yangdai.opennote.domain.usecase
22

33
sealed class OrderType {
4-
data object Ascending: OrderType()
5-
data object Descending: OrderType()
4+
data object Ascending : OrderType()
5+
data object Descending : OrderType()
66
}

app/src/main/java/com/yangdai/opennote/presentation/component/CurlyCornerShape.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ class CurlyCornerShape(
8080
val angleRadians = Math.toRadians(angleDegrees.toDouble())
8181

8282
// calculate the current point
83-
val currentPoint = calculateCurlyCirclePoint(centerX, centerY, baseRadius, curlAmplitude, angleRadians)
83+
val currentPoint =
84+
calculateCurlyCirclePoint(centerX, centerY, baseRadius, curlAmplitude, angleRadians)
8485

8586
path.lineTo(currentPoint.first.toFloat(), currentPoint.second.toFloat())
8687
}

app/src/main/java/com/yangdai/opennote/presentation/component/TextOptionButton.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ fun TextOptionButton(
2929
buttonText: String,
3030
onButtonClick: () -> Unit
3131
) = TextButton(
32-
modifier = Modifier.fillMaxWidth().padding(top = 8.dp),
32+
modifier = Modifier
33+
.fillMaxWidth()
34+
.padding(top = 8.dp),
3335
shape = MaterialTheme.shapes.medium,
3436
colors = ButtonDefaults.textButtonColors().copy(
3537
containerColor = MaterialTheme.colorScheme.surfaceVariant

app/src/main/java/com/yangdai/opennote/presentation/component/TypingText.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ import androidx.compose.ui.text.TextStyle
4747
fun TypingText(
4848
text: String,
4949
modifier: Modifier = Modifier,
50-
animationSpec: AnimationSpec<Int> = tween(durationMillis = text.length * 80, easing = LinearEasing),
50+
animationSpec: AnimationSpec<Int> = tween(
51+
durationMillis = text.length * 80,
52+
easing = LinearEasing
53+
),
5154
style: TextStyle = LocalTextStyle.current,
5255
reserveSpace: Boolean = true
5356
) {

app/src/main/java/com/yangdai/opennote/presentation/component/dialog/ListDialog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fun ListDialog(
5050
onConfirm: (list: List<String>) -> Unit
5151
) {
5252

53-
val list = remember { mutableStateListOf<String>("") }
53+
val list = remember { mutableStateListOf("") }
5454
var ordered by remember { mutableStateOf(false) }
5555

5656
AlertDialog(

0 commit comments

Comments
 (0)