Commit 5ca1eaa
committed
feat: Refactor note handling and migrate build configuration
- **Note Handling & Adaptive UI**:
- Update `NoteDetail` and `NoteAction` to use `TextFieldState` and `CharSequence` for text input.
- Implement a save-change confirmation flow via `AdaptiveInteractor` when creating or switching notes in adaptive layouts.
- Remove explicit `title` parameters from `NoteAction.Save` and `CheckSaveChange`, centralizing title generation logic in `NoteViewModel`.
- Lift `SnackbarHostState` to the `App` level and update `GlobalSnackbarHost` to ensure visibility over system bars and the keyboard.
- Adjust `ExtendedFloatingActionButton` in `MainScreen` to move upward dynamically when a snackbar is displayed.
- **Build & CI/CD**:
- Migrate from `android-library` to `android-kotlin-multiplatform-library` across core and UI modules.
- Update AGP to 9.0.0, Compose to 1.10.0, and Gradle to 9.3.0.
- Rename `androidUnitTest` source sets to `androidHostTest` and `androidInstrumentedTest` to `androidDeviceTest` to align with new KMP project structures.
- Increase `kotlin.native.jvmArgs` to `-Xmx8g` for improved build performance.
- **Testing**:
- Add `CreateNoteWhileSelectedTestCase` and `SaveDialog` page object to support testing save-change flows.
- Disable unstable iOS and process checker tests on CI.
- Improve database cleanup in JVM UI tests to handle WAL and journal files.
- **Refactoring & Cleanup**:
- Standardize Compose preview imports using `androidx.compose.ui.tooling.preview.Preview` globally.
- Ensure dialog text and password fields use `fillMaxWidth` for consistent UI layout.
- Add explicit type to `QueryResult` in `WebSafeRepo` for Wasm compatibility.1 parent 4130094 commit 5ca1eaa
File tree
102 files changed
+642
-436
lines changed- .github/workflows
- app
- android
- src
- androidTest/java/com/softartdev/notedelight/ui
- main/java/com/softartdev/notedelight
- test/java/com/softartdev/notedelight/util
- desktop
- src/jvmTest/kotlin/com/softartdev/notedelight/ui
- ios-kit/src/commonTest/kotlin/com/softartdev/notedelight
- iosApp
- iosApp.xcodeproj
- iosApp.xcworkspace/xcuserdata/artur.xcuserdatad
- iosApp
- web
- src/wasmJsTest/kotlin/com/softartdev/notedelight
- core
- data
- db-room
- src/androidHostTest/kotlin/com/softartdev/notedelight
- db-sqldelight
- src
- androidDeviceTest/kotlin/com/softartdev/notedelight
- androidHostTest/kotlin/com/softartdev/notedelight
- wasmJsMain/kotlin/com/softartdev/notedelight/repository
- file-explorer
- domain
- presentation
- src
- androidHostTest/kotlin/com/softartdev/notedelight/presentation
- adaptive
- files
- main
- note
- settings
- security
- change
- confirm
- enter
- signin
- splash
- title
- commonMain/kotlin/com/softartdev/notedelight
- interactor
- presentation
- main
- note
- settings
- test
- docs
- gradle
- wrapper
- thirdparty
- androidx/paging/compose
- app/cash/sqldelight/paging3
- ui
- test-jvm/src/main/kotlin/com/softartdev/notedelight/ui
- test
- src
- commonMain/kotlin/com/softartdev/notedelight
- ui
- cases
- screen/dialog
- commonTest/kotlin/com/softartdev/notedelight
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
102 files changed
+642
-436
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
8 | 29 | | |
9 | 30 | | |
10 | 31 | | |
| |||
692 | 713 | | |
693 | 714 | | |
694 | 715 | | |
695 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | | - | |
28 | | - | |
| 26 | + | |
| 27 | + | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
63 | | - | |
| 62 | + | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
76 | | - | |
| 75 | + | |
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
| |||
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
97 | | - | |
98 | 96 | | |
99 | 97 | | |
100 | 98 | | |
| |||
118 | 116 | | |
119 | 117 | | |
120 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | | - | |
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| |||
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
36 | | - | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | | - | |
| 478 | + | |
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | | - | |
| 520 | + | |
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| |||
0 commit comments