Modern Apps git

← Modern-Apps.git

notes: intialized new app

Commit
bc667df15086231395f1692818de1905f4fc93ec
Author
Vayun <[email protected]>
When
2026-01-17 22:44 UTC (10 months ago)
Parents
2fd2f0a

Diff

.idea/copilot.data.migration.ask.xml
diff --git a/.idea/copilot.data.migration.ask.xml b/.idea/copilot.data.migration.ask.xmlnew file mode 100644index 0000000000..7ef04e2ea0--- /dev/null+++ b/.idea/copilot.data.migration.ask.xml@@ -0,0 +1,6 @@+<?xml version="1.0" encoding="UTF-8"?>+<project version="4">+  <component name="AskMigrationStateService">+    <option name="migrationStatus" value="COMPLETED" />+  </component>+</project>\ No newline at end of file
.idea/deploymentTargetSelector.xml
diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xmlindex 1186201597..ffe07889ea 100644--- a/.idea/deploymentTargetSelector.xml+++ b/.idea/deploymentTargetSelector.xml@@ -16,6 +16,14 @@       </SelectionState>       <SelectionState runConfigName="crypto">         <option name="selectionMode" value="DROPDOWN" />+        <DropdownSelection timestamp="2026-01-16T22:16:05.498941700Z">+          <Target type="DEFAULT_BOOT">+            <handle>+              <DeviceId pluginId="PhysicalDevice" identifier="serial=4C241FDAS001J9" />+            </handle>+          </Target>+        </DropdownSelection>+        <DialogSelection />       </SelectionState>       <SelectionState runConfigName="openassistant">         <option name="selectionMode" value="DROPDOWN" />@@ -26,6 +34,9 @@       <SelectionState runConfigName="passwords">         <option name="selectionMode" value="DROPDOWN" />       </SelectionState>+      <SelectionState runConfigName="notes">+        <option name="selectionMode" value="DROPDOWN" />+      </SelectionState>     </selectionStates>   </component> </project>\ No newline at end of file
.idea/deviceManager.xml
diff --git a/.idea/deviceManager.xml b/.idea/deviceManager.xmlnew file mode 100644index 0000000000..91f95584dd--- /dev/null+++ b/.idea/deviceManager.xml@@ -0,0 +1,13 @@+<?xml version="1.0" encoding="UTF-8"?>+<project version="4">+  <component name="DeviceTable">+    <option name="columnSorters">+      <list>+        <ColumnSorterState>+          <option name="column" value="Name" />+          <option name="order" value="ASCENDING" />+        </ColumnSorterState>+      </list>+    </option>+  </component>+</project>\ No newline at end of file
.idea/gradle.xml
diff --git a/.idea/gradle.xml b/.idea/gradle.xmlindex 672957e2cc..d41fc23d6b 100644--- a/.idea/gradle.xml+++ b/.idea/gradle.xml@@ -15,6 +15,7 @@             <option value="$PROJECT_DIR$/contacts" />             <option value="$PROJECT_DIR$/crypto" />             <option value="$PROJECT_DIR$/library" />+            <option value="$PROJECT_DIR$/notes" />             <option value="$PROJECT_DIR$/openassistant" />             <option value="$PROJECT_DIR$/passwords" />             <option value="$PROJECT_DIR$/pdf" />
library/src/main/java/com/vayunmathur/library/util/RoomViewModel.kt
diff --git a/library/src/main/java/com/vayunmathur/library/util/RoomViewModel.kt b/library/src/main/java/com/vayunmathur/library/util/RoomViewModel.ktindex af765cc6b7..18e6d049d8 100644--- a/library/src/main/java/com/vayunmathur/library/util/RoomViewModel.kt+++ b/library/src/main/java/com/vayunmathur/library/util/RoomViewModel.kt@@ -2,11 +2,17 @@ package com.vayunmathur.library.util  import android.content.Context import androidx.compose.runtime.Composable+import androidx.compose.runtime.LaunchedEffect+import androidx.compose.runtime.MutableState import androidx.compose.runtime.State import androidx.compose.runtime.collectAsState import androidx.compose.runtime.derivedStateOf import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableLongStateOf+import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember+import androidx.compose.runtime.rememberCoroutineScope+import androidx.compose.runtime.setValue import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import androidx.room.Delete@@ -66,6 +72,51 @@ class DatabaseViewModel(vararg daos: Pair<KClass<*>, TrueDao<*>>) : ViewModel()         return derived     } +    @Composable+    inline fun <reified E : DatabaseItem> getEditable(+        id: Long,+        crossinline default: () -> E? = { null }+    ): MutableState<E> {+        val scope = rememberCoroutineScope()+        val dao = getDaoInterface<E>()++        // 1. Get the source of truth from the DB+        val data by dao.data.collectAsState(initial = emptyList())++        // 2. Create a local state to hold the "in-progress" edits+        // We initialize it when the data first loads+        val localState = remember { mutableStateOf<E?>(null) }++        var id by remember { mutableLongStateOf(id) }++        // Update local state when the DB record changes+        LaunchedEffect(data) {+            if (localState.value == null) {+                localState.value = data.firstOrNull { it.id == id }+            }+        }++        // 3. Return a custom MutableState+        return remember {+            object : MutableState<E> {+                override var value: E+                    get() = (localState.value ?: default())!!+                    set(newValue) {+                        localState.value = newValue+                        scope.launch {+                            dao.upsert(newValue) {+                                id = it+                            }+                        }+                    }++                // Standard boilerplate for MutableState implementation+                override fun component1(): E = value+                override fun component2(): (E) -> Unit = { value = it }+            }+        }+    }+     inline fun <reified E: DatabaseItem> upsert(t: E, noinline andThen: (Long) -> Unit = {}) {         getDaoInterface<E>().upsert(t, andThen)     }
library/src/main/res/drawable/settings_24px.xml
diff --git a/library/src/main/res/drawable/settings_24px.xml b/library/src/main/res/drawable/settings_24px.xmlnew file mode 100644index 0000000000..b38565c967--- /dev/null+++ b/library/src/main/res/drawable/settings_24px.xml@@ -0,0 +1,5 @@+<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="#000000" android:viewportHeight="960" android:viewportWidth="960" android:width="24dp">+      +    <path android:fillColor="@android:color/white" android:pathData="M370,880L354,752Q341,747 329.5,740Q318,733 307,725L188,775L78,585L181,507Q180,500 180,493.5Q180,487 180,480Q180,473 180,466.5Q180,460 181,453L78,375L188,185L307,235Q318,227 330,220Q342,213 354,208L370,80L590,80L606,208Q619,213 630.5,220Q642,227 653,235L772,185L882,375L779,453Q780,460 780,466.5Q780,473 780,480Q780,487 780,493.5Q780,500 778,507L881,585L771,775L653,725Q642,733 630,740Q618,747 606,752L590,880L370,880ZM440,800L519,800L533,694Q564,686 590.5,670.5Q617,655 639,633L738,674L777,606L691,541Q696,527 698,511.5Q700,496 700,480Q700,464 698,448.5Q696,433 691,419L777,354L738,286L639,328Q617,305 590.5,289.5Q564,274 533,266L520,160L441,160L427,266Q396,274 369.5,289.5Q343,305 321,327L222,286L183,354L269,418Q264,433 262,448Q260,463 260,480Q260,496 262,511Q264,526 269,541L183,606L222,674L321,632Q343,655 369.5,670.5Q396,686 427,694L440,800ZM482,620Q540,620 581,579Q622,538 622,480Q622,422 581,381Q540,340 482,340Q423,340 382.5,381Q342,422 342,480Q342,538 382.5,579Q423,620 482,620ZM480,480L480,480Q480,480 480,480Q480,480 480,480L480,480L480,480L480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480L480,480L480,480L480,480Q480,480 480,480Q480,480 480,480L480,480L480,480L480,480Q480,480 480,480Q480,480 480,480L480,480L480,480L480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480L480,480L480,480L480,480Q480,480 480,480Q480,480 480,480L480,480Z"/>+    +</vector>
notes/.gitignore
diff --git a/notes/.gitignore b/notes/.gitignorenew file mode 100644index 0000000000..42afabfd2a--- /dev/null+++ b/notes/.gitignore@@ -0,0 +1 @@+/build\ No newline at end of file
notes/build.gradle.kts
diff --git a/notes/build.gradle.kts b/notes/build.gradle.ktsnew file mode 100644index 0000000000..53bc2fb4d8--- /dev/null+++ b/notes/build.gradle.kts@@ -0,0 +1,20 @@+plugins {+    alias(libs.plugins.ksp)+}++android {+    defaultConfig {+        applicationId = "com.vayunmathur.notes"+        versionCode = 22+        versionName = "v2.0.0"+    }+}++dependencies {+    implementation(libs.androidx.navigation3.runtime)++    // room+    implementation(libs.androidx.room.runtime)+    implementation(libs.androidx.room.ktx)+    ksp(libs.androidx.room.compiler)+}\ No newline at end of file
notes/src/androidTest/java/com/vayunmathur/notes/ExampleInstrumentedTest.kt
diff --git a/notes/src/androidTest/java/com/vayunmathur/notes/ExampleInstrumentedTest.kt b/notes/src/androidTest/java/com/vayunmathur/notes/ExampleInstrumentedTest.ktnew file mode 100644index 0000000000..de5c54c351--- /dev/null+++ b/notes/src/androidTest/java/com/vayunmathur/notes/ExampleInstrumentedTest.kt@@ -0,0 +1,24 @@+package com.vayunmathur.notes++import androidx.test.platform.app.InstrumentationRegistry+import androidx.test.ext.junit.runners.AndroidJUnit4++import org.junit.Test+import org.junit.runner.RunWith++import org.junit.Assert.*++/**+ * Instrumented test, which will execute on an Android device.+ *+ * See [testing documentation](http://d.android.com/tools/testing).+ */+@RunWith(AndroidJUnit4::class)+class ExampleInstrumentedTest {+    @Test+    fun useAppContext() {+        // Context of the app under test.+        val appContext = InstrumentationRegistry.getInstrumentation().targetContext+        assertEquals("com.vayunmathur.notes", appContext.packageName)+    }+}\ No newline at end of file
notes/src/main/AndroidManifest.xml
diff --git a/notes/src/main/AndroidManifest.xml b/notes/src/main/AndroidManifest.xmlnew file mode 100644index 0000000000..392395d4fd--- /dev/null+++ b/notes/src/main/AndroidManifest.xml@@ -0,0 +1,22 @@+<?xml version="1.0" encoding="utf-8"?>+<manifest xmlns:android="http://schemas.android.com/apk/res/android">++    <application+        android:icon="@mipmap/ic_launcher"+        android:label="@string/app_name"+        android:roundIcon="@mipmap/ic_launcher_round"+        android:supportsRtl="true"+        android:theme="@style/Theme.General">+        <activity+            android:name=".MainActivity"+            android:exported="true"+            android:theme="@style/Theme.General">+            <intent-filter>+                <action android:name="android.intent.action.MAIN" />++                <category android:name="android.intent.category.LAUNCHER" />+            </intent-filter>+        </activity>+    </application>++</manifest>\ No newline at end of file
notes/src/main/ic_launcher-playstore.png
diff --git a/notes/src/main/ic_launcher-playstore.png b/notes/src/main/ic_launcher-playstore.pngnew file mode 100644index 0000000000..656cff671aBinary files /dev/null and b/notes/src/main/ic_launcher-playstore.png differ
notes/src/main/java/com/vayunmathur/notes/MainActivity.kt
diff --git a/notes/src/main/java/com/vayunmathur/notes/MainActivity.kt b/notes/src/main/java/com/vayunmathur/notes/MainActivity.ktnew file mode 100644index 0000000000..233e309ad6--- /dev/null+++ b/notes/src/main/java/com/vayunmathur/notes/MainActivity.kt@@ -0,0 +1,58 @@+package com.vayunmathur.notes++import android.os.Bundle+import androidx.activity.ComponentActivity+import androidx.activity.compose.setContent+import androidx.activity.enableEdgeToEdge+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.material3.Scaffold+import androidx.compose.runtime.Composable+import androidx.compose.ui.Modifier+import androidx.navigation3.runtime.NavKey+import com.vayunmathur.library.ui.DynamicTheme+import com.vayunmathur.library.util.DatabaseViewModel+import com.vayunmathur.library.util.ListDetailPage+import com.vayunmathur.library.util.ListPage+import com.vayunmathur.library.util.MainNavigation+import com.vayunmathur.library.util.buildDatabase+import com.vayunmathur.library.util.rememberNavBackStack+import com.vayunmathur.notes.data.Note+import com.vayunmathur.notes.data.database.NoteDatabase+import com.vayunmathur.notes.ui.NotePage+import com.vayunmathur.notes.ui.NotesListPage+import kotlinx.serialization.Serializable++class MainActivity : ComponentActivity() {+    override fun onCreate(savedInstanceState: Bundle?) {+        super.onCreate(savedInstanceState)+        enableEdgeToEdge()+        val db = buildDatabase<NoteDatabase>()+        val viewModel = DatabaseViewModel(Note::class to db.noteDao())+        setContent {+            DynamicTheme {+                Navigation(viewModel)+            }+        }+    }+}++@Serializable+sealed interface Route: NavKey {+    @Serializable+    data object NotesList: Route+    @Serializable+    data class Note(val id: Long): Route+}++@Composable+fun Navigation(viewModel: DatabaseViewModel) {+    val backStack = rememberNavBackStack<Route>(Route.NotesList)+    MainNavigation(backStack) {+        entry<Route.NotesList>(metadata = ListPage()) {+            NotesListPage(backStack, viewModel)+        }+        entry<Route.Note>(metadata = ListDetailPage()) {+            NotePage(backStack, viewModel, it.id)+        }+    }+}\ No newline at end of file
notes/src/main/java/com/vayunmathur/notes/data/Note.kt
diff --git a/notes/src/main/java/com/vayunmathur/notes/data/Note.kt b/notes/src/main/java/com/vayunmathur/notes/data/Note.ktnew file mode 100644index 0000000000..8e352d523b--- /dev/null+++ b/notes/src/main/java/com/vayunmathur/notes/data/Note.kt@@ -0,0 +1,10 @@+package com.vayunmathur.notes.data++import androidx.room.Entity+import androidx.room.PrimaryKey+import com.vayunmathur.library.util.DatabaseItem+import kotlinx.serialization.Serializable++@Serializable+@Entity+data class Note(@PrimaryKey(autoGenerate = true) override val id: Long = 0, val title: String, val content: String): DatabaseItem()\ No newline at end of file
notes/src/main/java/com/vayunmathur/notes/data/database/NoteDao.kt
diff --git a/notes/src/main/java/com/vayunmathur/notes/data/database/NoteDao.kt b/notes/src/main/java/com/vayunmathur/notes/data/database/NoteDao.ktnew file mode 100644index 0000000000..e120581236--- /dev/null+++ b/notes/src/main/java/com/vayunmathur/notes/data/database/NoteDao.kt@@ -0,0 +1,13 @@+package com.vayunmathur.notes.data.database++import androidx.room.Dao+import androidx.room.Query+import com.vayunmathur.library.util.TrueDao+import com.vayunmathur.notes.data.Note+import kotlinx.coroutines.flow.Flow++@Dao+interface NoteDao: TrueDao<Note> {+    @Query("SELECT * FROM Note")+    override fun getAll(): Flow<List<Note>>+}
notes/src/main/java/com/vayunmathur/notes/data/database/NoteDatabase.kt
diff --git a/notes/src/main/java/com/vayunmathur/notes/data/database/NoteDatabase.kt b/notes/src/main/java/com/vayunmathur/notes/data/database/NoteDatabase.ktnew file mode 100644index 0000000000..51d5f61d71--- /dev/null+++ b/notes/src/main/java/com/vayunmathur/notes/data/database/NoteDatabase.kt@@ -0,0 +1,10 @@+package com.vayunmathur.notes.data.database++import androidx.room.Database+import androidx.room.RoomDatabase+import com.vayunmathur.notes.data.Note++@Database(entities = [Note::class], version = 1)+abstract class NoteDatabase : RoomDatabase() {+    abstract fun noteDao(): NoteDao+}
notes/src/main/java/com/vayunmathur/notes/ui/NotePage.kt
diff --git a/notes/src/main/java/com/vayunmathur/notes/ui/NotePage.kt b/notes/src/main/java/com/vayunmathur/notes/ui/NotePage.ktnew file mode 100644index 0000000000..b4cfe9f5c4--- /dev/null+++ b/notes/src/main/java/com/vayunmathur/notes/ui/NotePage.kt@@ -0,0 +1,37 @@+package com.vayunmathur.notes.ui++import androidx.compose.foundation.layout.Column+import androidx.compose.foundation.layout.padding+import androidx.compose.material3.ExperimentalMaterial3Api+import androidx.compose.material3.Scaffold+import androidx.compose.material3.Text+import androidx.compose.material3.TextField+import androidx.compose.material3.TopAppBar+import androidx.compose.runtime.Composable+import androidx.compose.runtime.collectAsState+import androidx.compose.runtime.getValue+import androidx.compose.runtime.setValue+import androidx.compose.ui.Modifier+import androidx.navigation3.runtime.NavBackStack+import com.vayunmathur.library.ui.IconNavigation+import com.vayunmathur.library.util.DatabaseViewModel+import com.vayunmathur.library.util.pop+import com.vayunmathur.notes.Route+import com.vayunmathur.notes.data.Note++@OptIn(ExperimentalMaterial3Api::class)+@Composable+fun NotePage(backStack: NavBackStack<Route>, viewModel: DatabaseViewModel, noteID: Long) {+    var note by viewModel.getEditable<Note>(noteID) {Note(0, "", "")}++    Scaffold(topBar = {+        TopAppBar({ Text("Note") }, navigationIcon = {+            IconNavigation { backStack.pop() }+        })+    }) { paddingValues ->+        Column(Modifier.padding(paddingValues)) {+            TextField(note.title, { note = note.copy(title = it)}, label = { Text("Title") }, singleLine = true)+            TextField(note.content, { note = note.copy(content = it)}, label = { Text("Content") })+        }+    }+}\ No newline at end of file
notes/src/main/java/com/vayunmathur/notes/ui/NotesListPage.kt
diff --git a/notes/src/main/java/com/vayunmathur/notes/ui/NotesListPage.kt b/notes/src/main/java/com/vayunmathur/notes/ui/NotesListPage.ktnew file mode 100644index 0000000000..2a4669b33b--- /dev/null+++ b/notes/src/main/java/com/vayunmathur/notes/ui/NotesListPage.kt@@ -0,0 +1,26 @@+package com.vayunmathur.notes.ui++import androidx.compose.foundation.clickable+import androidx.compose.material3.ListItem+import androidx.compose.material3.Text+import androidx.compose.runtime.Composable+import androidx.compose.ui.Modifier+import androidx.navigation3.runtime.NavBackStack+import com.vayunmathur.library.ui.ListPage+import com.vayunmathur.library.util.DatabaseViewModel+import com.vayunmathur.notes.Route+import com.vayunmathur.notes.data.Note++@Composable+fun NotesListPage(backStack: NavBackStack<Route>, viewModel: DatabaseViewModel) {+    ListPage<Note, Route, Route.Note>(backStack, viewModel, "Notes", ::NoteListItem, { Route.Note(it) }, { Route.Note(0) })+}++@Composable+fun NoteListItem(note: Note, onClick: () -> Unit) {+    ListItem(+        { Text(note.title) },+        Modifier.clickable { onClick() },+        supportingContent = { Text(note.content.take(40)) }+    )+}\ No newline at end of file
notes/src/main/res/drawable/ic_launcher_foreground.xml
diff --git a/notes/src/main/res/drawable/ic_launcher_foreground.xml b/notes/src/main/res/drawable/ic_launcher_foreground.xmlnew file mode 100644index 0000000000..fe87836293--- /dev/null+++ b/notes/src/main/res/drawable/ic_launcher_foreground.xml@@ -0,0 +1,16 @@+<vector xmlns:android="http://schemas.android.com/apk/res/android"+    android:width="108dp"+    android:height="108dp"+    android:viewportWidth="960"+    android:viewportHeight="960"+    android:tint="#000000"+    android:autoMirrored="true">+  <group android:scaleX="0.58"+      android:scaleY="0.58"+      android:translateX="201.6"+      android:translateY="201.6">+    <path+        android:fillColor="@android:color/white"+        android:pathData="M120,720L120,640L600,640L600,720L120,720ZM120,520L120,440L840,440L840,520L120,520ZM120,320L120,240L840,240L840,320L120,320Z"/>+  </group>+</vector>
notes/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
diff --git a/notes/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/notes/src/main/res/mipmap-anydpi-v26/ic_launcher.xmlnew file mode 100644index 0000000000..ef49c99170--- /dev/null+++ b/notes/src/main/res/mipmap-anydpi-v26/ic_launcher.xml@@ -0,0 +1,6 @@+<?xml version="1.0" encoding="utf-8"?>+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">+    <background android:drawable="@color/ic_launcher_background"/>+    <foreground android:drawable="@drawable/ic_launcher_foreground"/>+    <monochrome android:drawable="@drawable/ic_launcher_foreground"/>+</adaptive-icon>\ No newline at end of file
notes/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
diff --git a/notes/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/notes/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xmlnew file mode 100644index 0000000000..ef49c99170--- /dev/null+++ b/notes/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml@@ -0,0 +1,6 @@+<?xml version="1.0" encoding="utf-8"?>+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">+    <background android:drawable="@color/ic_launcher_background"/>+    <foreground android:drawable="@drawable/ic_launcher_foreground"/>+    <monochrome android:drawable="@drawable/ic_launcher_foreground"/>+</adaptive-icon>\ No newline at end of file
notes/src/main/res/mipmap-hdpi/ic_launcher.webp
diff --git a/notes/src/main/res/mipmap-hdpi/ic_launcher.webp b/notes/src/main/res/mipmap-hdpi/ic_launcher.webpnew file mode 100644index 0000000000..c2fda0107aBinary files /dev/null and b/notes/src/main/res/mipmap-hdpi/ic_launcher.webp differ
notes/src/main/res/mipmap-hdpi/ic_launcher_round.webp
diff --git a/notes/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/notes/src/main/res/mipmap-hdpi/ic_launcher_round.webpnew file mode 100644index 0000000000..edcd6228a1Binary files /dev/null and b/notes/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ
notes/src/main/res/mipmap-mdpi/ic_launcher.webp
diff --git a/notes/src/main/res/mipmap-mdpi/ic_launcher.webp b/notes/src/main/res/mipmap-mdpi/ic_launcher.webpnew file mode 100644index 0000000000..da84b69cf4Binary files /dev/null and b/notes/src/main/res/mipmap-mdpi/ic_launcher.webp differ
notes/src/main/res/mipmap-mdpi/ic_launcher_round.webp
diff --git a/notes/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/notes/src/main/res/mipmap-mdpi/ic_launcher_round.webpnew file mode 100644index 0000000000..1bec8bae49Binary files /dev/null and b/notes/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ
notes/src/main/res/mipmap-xhdpi/ic_launcher.webp
diff --git a/notes/src/main/res/mipmap-xhdpi/ic_launcher.webp b/notes/src/main/res/mipmap-xhdpi/ic_launcher.webpnew file mode 100644index 0000000000..fede6ae2feBinary files /dev/null and b/notes/src/main/res/mipmap-xhdpi/ic_launcher.webp differ
notes/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
diff --git a/notes/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/notes/src/main/res/mipmap-xhdpi/ic_launcher_round.webpnew file mode 100644index 0000000000..644db6fabcBinary files /dev/null and b/notes/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ
notes/src/main/res/mipmap-xxhdpi/ic_launcher.webp
diff --git a/notes/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/notes/src/main/res/mipmap-xxhdpi/ic_launcher.webpnew file mode 100644index 0000000000..62d9acf2e0Binary files /dev/null and b/notes/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ
notes/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
diff --git a/notes/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/notes/src/main/res/mipmap-xxhdpi/ic_launcher_round.webpnew file mode 100644index 0000000000..ff11c519a9Binary files /dev/null and b/notes/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ
notes/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
diff --git a/notes/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/notes/src/main/res/mipmap-xxxhdpi/ic_launcher.webpnew file mode 100644index 0000000000..2a63022636Binary files /dev/null and b/notes/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ
notes/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
diff --git a/notes/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/notes/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webpnew file mode 100644index 0000000000..bd257841b7Binary files /dev/null and b/notes/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ
notes/src/main/res/values/strings.xml
diff --git a/notes/src/main/res/values/strings.xml b/notes/src/main/res/values/strings.xmlnew file mode 100644index 0000000000..97483cfee0--- /dev/null+++ b/notes/src/main/res/values/strings.xml@@ -0,0 +1,3 @@+<resources>+    <string name="app_name">Notes</string>+</resources>\ No newline at end of file
notes/src/test/java/com/vayunmathur/notes/ExampleUnitTest.kt
diff --git a/notes/src/test/java/com/vayunmathur/notes/ExampleUnitTest.kt b/notes/src/test/java/com/vayunmathur/notes/ExampleUnitTest.ktnew file mode 100644index 0000000000..47207dfdfc--- /dev/null+++ b/notes/src/test/java/com/vayunmathur/notes/ExampleUnitTest.kt@@ -0,0 +1,17 @@+package com.vayunmathur.notes++import org.junit.Test++import org.junit.Assert.*++/**+ * Example local unit test, which will execute on the development machine (host).+ *+ * See [testing documentation](http://d.android.com/tools/testing).+ */+class ExampleUnitTest {+    @Test+    fun addition_isCorrect() {+        assertEquals(4, 2 + 2)+    }+}\ No newline at end of file
passwords/src/main/java/com/vayunmathur/passwords/ui/MenuPage.kt
diff --git a/passwords/src/main/java/com/vayunmathur/passwords/ui/MenuPage.kt b/passwords/src/main/java/com/vayunmathur/passwords/ui/MenuPage.ktindex adabf62c08..b9345d4197 100644--- a/passwords/src/main/java/com/vayunmathur/passwords/ui/MenuPage.kt+++ b/passwords/src/main/java/com/vayunmathur/passwords/ui/MenuPage.kt@@ -43,9 +43,7 @@ import kotlinx.coroutines.delay @OptIn(ExperimentalMaterial3Api::class) @Composable fun MenuPage(backStack: NavBackStack<Route>, viewModel: DatabaseViewModel) {-    ListPage<Password, Route, Route.PasswordEditPage>(backStack, viewModel, "Passwords", { pass, onClick ->-        PasswordListItem(pass, onClick)-    }, { Route.PasswordPage(it) }, { Route.PasswordEditPage(0) }, Route.Settings)+    ListPage<Password, Route, Route.PasswordEditPage>(backStack, viewModel, "Passwords", ::PasswordListItem, { Route.PasswordPage(it) }, { Route.PasswordEditPage(0) }, Route.Settings) }  @Composable
settings.gradle.kts
diff --git a/settings.gradle.kts b/settings.gradle.ktsindex 0b47fb2190..5f13c85dcd 100644--- a/settings.gradle.kts+++ b/settings.gradle.kts@@ -29,3 +29,4 @@ include(":crypto") include(":openassistant") include(":chess") include(":passwords")+include(":notes")