Skip to content

Commit a6b895c

Browse files
committed
chore: sync current changes
1 parent 7bd0fe0 commit a6b895c

File tree

20 files changed

+1153
-341
lines changed

20 files changed

+1153
-341
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,13 @@ keyguard-app-master/
4040
stratumauthapp/
4141
# Documentation and Analysis
4242
修复文档/
43+
doc/
4344
# Ignore plan documents
4445
计划文档/
4546
task_plan*.md
4647
task_plan_bottom_sheet_nav.md
48+
# Ignore root task checklist
49+
密码库V2-任务清单.md
4750
# Local backups - never commit
4851
monica_backup_*/
4952
# Ignore external project

Monica for Android/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ Built by developers, for developers (and everyone else).
9191

9292
* **Language**: [Kotlin](https://kotlinlang.org/)
9393
* **UI Framework**: [Jetpack Compose](https://developer.android.com/jetpack/compose)
94+
* **UI Baseline**: Compose BOM `2024.10.01` + Material 3 (version aligned by BOM)
9495
* **Architecture**: MVVM + Clean Architecture
9596
* **Database**: Room (SQLite) with SQLCipher support
9697
* **Async**: Coroutines & Flow
@@ -101,6 +102,8 @@ Built by developers, for developers (and everyone else).
101102
* `dom4j`: XML parsing for KeePass
102103
* `sardine-android`: WebDAV client
103104

105+
> Dependency versions are maintained in `gradle/libs.versions.toml` and consumed by `app/build.gradle`.
106+
104107
---
105108

106109
## 📸 Screenshots

Monica for Android/README_ZH.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ cd Monica
189189
### 核心技术
190190
- **Kotlin** - 主要开发语言
191191
- **Jetpack Compose** - 现代化 UI 框架
192-
- **Material Design 3** - UI 设计规范
192+
- **Material Design 3** - UI 设计规范(通过 Compose BOM 统一版本)
193193

194194
### 架构组件
195195
- **Room Database** - 本地数据持久化
@@ -208,9 +208,13 @@ cd Monica
208208
- **CameraX** - 相机功能
209209

210210
### 构建工具
211-
- **Gradle 8.7** - 构建系统
212-
- **Android Gradle Plugin 8.5.0**
213-
- **Kotlin 1.9.0**
211+
- **Gradle Wrapper 8.7** - 构建系统
212+
- **Android Gradle Plugin 8.6.0**
213+
- **Kotlin 1.9.10**
214+
- **KSP 1.9.10-1.0.13**
215+
- **Compose BOM 2024.10.01(Material3 跟随 BOM)**
216+
217+
> 说明:依赖版本的最终准确信息以 `gradle/libs.versions.toml``app/build.gradle` 为准。
214218
215219
---
216220

Monica for Android/app/build.gradle

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88

99
android {
1010
namespace 'takagi.ru.monica'
11-
compileSdk 34
11+
compileSdk 35
1212

1313
defaultConfig {
1414
applicationId "takagi.ru.monica"
@@ -50,16 +50,32 @@ android {
5050
compose true
5151
}
5252
composeOptions {
53-
kotlinCompilerExtensionVersion '1.5.1'
53+
kotlinCompilerExtensionVersion libs.versions.composeCompiler.get()
5454
}
5555
packaging {
5656
resources {
5757
excludes += '/META-INF/{AL2.0,LGPL2.1}'
58+
excludes += 'META-INF/versions/9/OSGI-INF/MANIFEST.MF'
5859
}
5960
}
6061
}
6162

63+
configurations.configureEach {
64+
resolutionStrategy.force(
65+
"org.jetbrains.kotlinx:kotlinx-serialization-bom:1.6.0",
66+
"org.jetbrains.kotlinx:kotlinx-serialization-core:1.6.0",
67+
"org.jetbrains.kotlinx:kotlinx-serialization-core-jvm:1.6.0",
68+
"org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0",
69+
"org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.6.0"
70+
)
71+
}
72+
6273
dependencies {
74+
constraints {
75+
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.6.0")
76+
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
77+
}
78+
6379
// Core Android libraries
6480
implementation libs.androidx.core.ktx
6581
implementation libs.androidx.core.splashscreen // 添加splashscreen依赖

Monica for Android/app/src/main/java/takagi/ru/monica/autofill_ng/ui/PasswordList.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fun PasswordList(
6767
},
6868
modifier = Modifier
6969
.fillMaxWidth()
70-
.animateItemPlacement()
70+
.animateItem()
7171
)
7272
}
7373

Monica for Android/app/src/main/java/takagi/ru/monica/autofill_ng/ui/PaymentInfoList.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fun PaymentInfoList(
6464
},
6565
modifier = Modifier
6666
.fillMaxWidth()
67-
.animateItemPlacement()
67+
.animateItem()
6868
)
6969
}
7070
}

Monica for Android/app/src/main/java/takagi/ru/monica/data/AppSettings.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ enum class UnifiedProgressBarMode {
5656
* 用于经典本地密码库模式
5757
*/
5858
enum class BottomNavContentTab {
59+
VAULT_V2,
5960
PASSWORDS,
6061
AUTHENTICATOR,
6162
CARD_WALLET,
@@ -66,6 +67,7 @@ enum class BottomNavContentTab {
6667

6768
companion object {
6869
val DEFAULT_ORDER: List<BottomNavContentTab> = listOf(
70+
VAULT_V2,
6971
PASSWORDS,
7072
AUTHENTICATOR,
7173
CARD_WALLET,
@@ -93,6 +95,7 @@ enum class BottomNavContentTab {
9395
}
9496

9597
data class BottomNavVisibility(
98+
val vaultV2: Boolean = false,
9699
val passwords: Boolean = true,
97100
val authenticator: Boolean = true,
98101
val cardWallet: Boolean = true,
@@ -102,6 +105,7 @@ data class BottomNavVisibility(
102105
val passkey: Boolean = true // 通行密钥功能默认开启
103106
) {
104107
fun isVisible(tab: BottomNavContentTab): Boolean = when (tab) {
108+
BottomNavContentTab.VAULT_V2 -> vaultV2
105109
// BottomNavContentTab.VAULT -> vault
106110
BottomNavContentTab.PASSWORDS -> passwords
107111
BottomNavContentTab.AUTHENTICATOR -> authenticator
@@ -112,7 +116,7 @@ data class BottomNavVisibility(
112116
BottomNavContentTab.PASSKEY -> passkey
113117
}
114118

115-
fun visibleCount(): Int = listOf(passwords, authenticator, cardWallet, generator, notes, send, passkey).count { it }
119+
fun visibleCount(): Int = listOf(vaultV2, passwords, authenticator, cardWallet, generator, notes, send, passkey).count { it }
116120
}
117121

118122
/**

0 commit comments

Comments
 (0)