massive refactor
- Commit
4dceb927a406540720d6cffa404c40077266e3ba- Author
- Vayun Mathur <[email protected]>
- When
- 2026-07-16 22:12 UTC (4 months ago)
- Parents
4ca96dc
Diff
.idea/deploymentTargetSelector.xml
diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xmlindex cac1dd61f9..8ad40d802e 100644--- a/.idea/deploymentTargetSelector.xml+++ b/.idea/deploymentTargetSelector.xml@@ -2,31 +2,39 @@ <project version="4"> <component name="deploymentTargetSelector"> <selectionStates>- <SelectionState runConfigName="youpipe">+ <SelectionState runConfigName="openassistant"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="photos">+ <SelectionState runConfigName="camera"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="messages">+ <SelectionState runConfigName="games.wordmaker"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="alchemist">+ <SelectionState runConfigName="office"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="unblockjam">+ <SelectionState runConfigName="calendar"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="files">+ <SelectionState runConfigName="pdf"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="weather">+ <SelectionState runConfigName="contacts">+ <option name="selectionMode" value="DROPDOWN" />+ <DialogSelection />+ </SelectionState>+ <SelectionState runConfigName="passwords">+ <option name="selectionMode" value="DROPDOWN" />+ <DialogSelection />+ </SelectionState>+ <SelectionState runConfigName="clock"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>@@ -34,43 +42,43 @@ <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="passwords">+ <SelectionState runConfigName="photos"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="music">+ <SelectionState runConfigName="education"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="calendar">+ <SelectionState runConfigName="weather"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="clock">+ <SelectionState runConfigName="files"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="openassistant">+ <SelectionState runConfigName="things"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="contacts">+ <SelectionState runConfigName="everysync"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="findfamily">+ <SelectionState runConfigName="web"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="wordmaker">+ <SelectionState runConfigName="findfamily"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="pdf">+ <SelectionState runConfigName="games.alchemist"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="notes">+ <SelectionState runConfigName="youpipe"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>@@ -78,35 +86,35 @@ <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="games.chess">+ <SelectionState runConfigName="games.pipes"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="maps">+ <SelectionState runConfigName="messages"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="web">+ <SelectionState runConfigName="games.chess"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="solitaire">+ <SelectionState runConfigName="maps"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="pipes">+ <SelectionState runConfigName="games.unblockjam"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="camera">+ <SelectionState runConfigName="notes"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="launcher">+ <SelectionState runConfigName="games.solitaire"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>- <SelectionState runConfigName="app">+ <SelectionState runConfigName="music"> <option name="selectionMode" value="DROPDOWN" /> <DialogSelection /> </SelectionState>
.idea/gradle.xml
diff --git a/.idea/gradle.xml b/.idea/gradle.xmlindex 8b0a3d5def..89eff83aab 100644--- a/.idea/gradle.xml+++ b/.idea/gradle.xml@@ -26,28 +26,33 @@ <option value="$PROJECT_DIR$/camera" /> <option value="$PROJECT_DIR$/clock" /> <option value="$PROJECT_DIR$/contacts" />+ <option value="$PROJECT_DIR$/education" /> <option value="$PROJECT_DIR$/email" />+ <option value="$PROJECT_DIR$/everysync" /> <option value="$PROJECT_DIR$/files" /> <option value="$PROJECT_DIR$/findfamily" /> <option value="$PROJECT_DIR$/games" /> <option value="$PROJECT_DIR$/games/alchemist" />- <option value="$PROJECT_DIR$/games/app" /> <option value="$PROJECT_DIR$/games/chess" /> <option value="$PROJECT_DIR$/games/pipes" /> <option value="$PROJECT_DIR$/games/solitaire" /> <option value="$PROJECT_DIR$/games/unblockjam" /> <option value="$PROJECT_DIR$/games/wordmaker" /> <option value="$PROJECT_DIR$/health" />- <option value="$PROJECT_DIR$/launcher" /> <option value="$PROJECT_DIR$/library" /> <option value="$PROJECT_DIR$/library/biometric" /> <option value="$PROJECT_DIR$/library/downloadservice" />+ <option value="$PROJECT_DIR$/library/e2ee-p2p" /> <option value="$PROJECT_DIR$/library/network" />+ <option value="$PROJECT_DIR$/library/ocr" />+ <option value="$PROJECT_DIR$/library/ui" /> <option value="$PROJECT_DIR$/library/widgets" />+ <option value="$PROJECT_DIR$/library/work" /> <option value="$PROJECT_DIR$/maps" /> <option value="$PROJECT_DIR$/messages" /> <option value="$PROJECT_DIR$/music" /> <option value="$PROJECT_DIR$/notes" />+ <option value="$PROJECT_DIR$/office" /> <option value="$PROJECT_DIR$/openassistant" /> <option value="$PROJECT_DIR$/passwords" /> <option value="$PROJECT_DIR$/pdf" />@@ -55,8 +60,12 @@ <option value="$PROJECT_DIR$/sdk" /> <option value="$PROJECT_DIR$/sdk/games" /> <option value="$PROJECT_DIR$/sdk/openassistant" />+ <option value="$PROJECT_DIR$/things" />+ <option value="$PROJECT_DIR$/tools" />+ <option value="$PROJECT_DIR$/tools/holidaygen" /> <option value="$PROJECT_DIR$/weather" /> <option value="$PROJECT_DIR$/web" />+ <option value="$PROJECT_DIR$/whatsapp-signal" /> <option value="$PROJECT_DIR$/youpipe" /> </set> </option>
.idea/kotlinc.xml
diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xmlindex ebd2e7b219..2e4da65a8c 100644--- a/.idea/kotlinc.xml+++ b/.idea/kotlinc.xml@@ -2,6 +2,6 @@ <project version="4"> <component name="KotlinJpsPluginSettings"> <option name="externalSystemId" value="Gradle" />- <option name="version" value="2.3.20" />+ <option name="version" value="2.3.21" /> </component> </project>\ No newline at end of file
.idea/vcs.xml
diff --git a/.idea/vcs.xml b/.idea/vcs.xmlindex 94a25f7f4c..b21ef3628f 100644--- a/.idea/vcs.xml+++ b/.idea/vcs.xml@@ -2,5 +2,6 @@ <project version="4"> <component name="VcsDirectoryMappings"> <mapping directory="$PROJECT_DIR$" vcs="Git" />+ <mapping directory="$PROJECT_DIR$/scratch/LiteRT-LM" vcs="Git" /> </component> </project>\ No newline at end of file
build-logic/src/main/kotlin/LauncherIconGen.kt
diff --git a/build-logic/src/main/kotlin/LauncherIconGen.kt b/build-logic/src/main/kotlin/LauncherIconGen.ktnew file mode 100644index 0000000000..80566e0db2--- /dev/null+++ b/build-logic/src/main/kotlin/LauncherIconGen.kt@@ -0,0 +1,104 @@+import org.gradle.api.DefaultTask+import org.gradle.api.GradleException+import org.gradle.api.file.DirectoryProperty+import org.gradle.api.provider.Property+import org.gradle.api.tasks.Input+import org.gradle.api.tasks.Internal+import org.gradle.api.tasks.OutputDirectory+import org.gradle.api.tasks.TaskAction+import java.net.URI++// DSL for declaring which Material Symbol an app's launcher icon is built from:+//+// launcherIcon {+// symbol = "calendar_month"+// }+//+// `common-conventions-app` reads this and generates the app's adaptive-icon+// foreground vector at build time, so no ic_launcher_foreground.xml is committed.+interface LauncherIconExtension {+ /** Material Symbols name, e.g. "calendar_month" (the `materialsymbolsoutlined` style). */+ val symbol: Property<String>+}++// Downloads the outlined Material Symbol at [ref], wraps its path in the standard+// adaptive-icon foreground vector, and writes it into an AGP-managed generated res+// directory. Raw symbol XML is cached under [cacheDir] so `clean` builds and+// offline rebuilds don't re-hit the network.+abstract class GenerateLauncherIconTask : DefaultTask() {+ @get:Input+ abstract val symbol: Property<String>++ @get:Input+ abstract val ref: Property<String>++ @get:Internal+ abstract val cacheDir: DirectoryProperty++ @get:OutputDirectory+ abstract val outputDir: DirectoryProperty++ @TaskAction+ fun generate() {+ val sym = symbol.orNull+ ?: throw GradleException(+ "No launcher icon symbol set for ${path.substringBeforeLast(':')}. " ++ "Declare one in build.gradle.kts:\n\n launcherIcon {\n symbol = \"calendar_month\"\n }\n"+ )+ val gitRef = ref.get()+ val raw = fetchRawSymbol(sym, gitRef)+ val pathData = PATH_DATA.find(raw)?.groupValues?.get(1)+ ?: throw GradleException("Could not find android:pathData in Material Symbol '$sym' (ref $gitRef)")++ val drawableDir = outputDir.get().asFile.resolve("drawable").apply { mkdirs() }+ drawableDir.resolve("ic_launcher_foreground.xml").writeText(wrap(pathData))+ }++ private fun fetchRawSymbol(sym: String, gitRef: String): String {+ val cached = cacheDir.get().asFile.resolve(gitRef).resolve("${sym}_24px.xml")+ if (cached.isFile && cached.length() > 0) return cached.readText()++ val url =+ "https://raw.githubusercontent.com/google/material-design-icons/$gitRef" ++ "/symbols/android/$sym/materialsymbolsoutlined/${sym}_24px.xml"+ val text = try {+ URI(url).toURL().openStream().bufferedReader().use { it.readText() }+ } catch (e: Exception) {+ throw GradleException(+ "Failed to download Material Symbol '$sym' from $url. " ++ "Check the symbol name and network access.",+ e,+ )+ }+ if (!text.contains("pathData")) {+ throw GradleException("Material Symbol '$sym' not found at ref $gitRef (url: $url)")+ }+ cached.parentFile.mkdirs()+ cached.writeText(text)+ return text+ }++ private fun wrap(pathData: String): String =+ """+ |<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">+ | <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="$pathData"/>+ | </group>+ |</vector>+ |+ """.trimMargin()++ private companion object {+ val PATH_DATA = Regex("""android:pathData="([^"]*)"""")+ }+}
build-logic/src/main/kotlin/common-conventions-app.gradle.kts
diff --git a/build-logic/src/main/kotlin/common-conventions-app.gradle.kts b/build-logic/src/main/kotlin/common-conventions-app.gradle.ktsindex cde729cbaa..c5e1ea2b39 100644--- a/build-logic/src/main/kotlin/common-conventions-app.gradle.kts+++ b/build-logic/src/main/kotlin/common-conventions-app.gradle.kts@@ -25,6 +25,30 @@ val proguardFile val (appVersionCode, appVersionName) = readVersionInfo() +// Adaptive launcher icons are generated at build time from Material Symbols+// instead of committing an ic_launcher_foreground.xml per app. Each app declares+// its symbol via `launcherIcon { symbol = "..." }` (see LauncherIconExtension).+// The symbol path is downloaded from google/material-design-icons pinned at this+// commit for reproducible builds, wrapped in the standard foreground vector, and+// wired into every variant's generated res.+val launcherIcon = extensions.create("launcherIcon", LauncherIconExtension::class.java)+val materialSymbolsRef = "819d78680a849ceef4c78f863d8753e3160b7c89"+val materialSymbolsCache = File(gradle.gradleUserHomeDir, "material-symbols-cache")++extensions.configure<com.android.build.api.variant.ApplicationAndroidComponentsExtension> {+ onVariants { variant ->+ val gen = tasks.register(+ "generate${variant.name.replaceFirstChar { it.uppercase() }}LauncherIcon",+ GenerateLauncherIconTask::class.java,+ ) {+ symbol.set(launcherIcon.symbol)+ ref.set(materialSymbolsRef)+ cacheDir.set(materialSymbolsCache)+ }+ variant.sources.res?.addGeneratedSourceDirectory(gen, GenerateLauncherIconTask::outputDir)+ }+}+ configure<com.android.build.api.dsl.ApplicationExtension> { dependenciesInfo { includeInApk = false@@ -124,7 +148,9 @@ dependencies { implementation(libs.androidx.compose.ui) implementation(libs.androidx.compose.ui.graphics)- implementation(libs.androidx.compose.material3)+ // Material 3 is intentionally NOT declared here. Apps must consume Material only+ // through `:library:ui` (which exposes it via `api`), so all Material usage goes+ // through the curated wrappers in `com.vayunmathur.library.ui`. // Kotlin Serialization implementation(libs.kotlinx.serialization.json)@@ -137,4 +163,15 @@ fun DependencyHandlerScope.justSoItShowsAsUsedSomewhere() { implementation(libs.androidx.room.runtime) implementation(libs.androidx.room.ktx) ksp(libs.androidx.room.compiler)+}++// Apps consume Material only through `:library:ui` wrappers, but some re-exported+// Material 3 types (sheets, tabs, adaptive, etc.) are still marked @RequiresOptIn.+// Opt in globally so app code doesn't need to import Material's markers.+tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {+ compilerOptions.optIn.addAll(+ "androidx.compose.material3.ExperimentalMaterial3Api",+ "androidx.compose.material3.ExperimentalMaterial3ExpressiveApi",+ "androidx.compose.material3.adaptive.ExperimentalMaterial3AdaptiveApi",+ ) }\ No newline at end of file
build-logic/src/main/kotlin/common-conventions-library.gradle.kts
diff --git a/build-logic/src/main/kotlin/common-conventions-library.gradle.kts b/build-logic/src/main/kotlin/common-conventions-library.gradle.ktsindex 972b2cdd95..af4861380c 100644--- a/build-logic/src/main/kotlin/common-conventions-library.gradle.kts+++ b/build-logic/src/main/kotlin/common-conventions-library.gradle.kts@@ -41,3 +41,11 @@ dependencies { // Kotlin Serialization implementation(libs.kotlinx.serialization.json) }++tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {+ compilerOptions.optIn.addAll(+ "androidx.compose.material3.ExperimentalMaterial3Api",+ "androidx.compose.material3.ExperimentalMaterial3ExpressiveApi",+ "androidx.compose.material3.adaptive.ExperimentalMaterial3AdaptiveApi",+ )+}
calendar/build.gradle.kts
diff --git a/calendar/build.gradle.kts b/calendar/build.gradle.ktsindex f571bca604..9e324843f6 100644--- a/calendar/build.gradle.kts+++ b/calendar/build.gradle.kts@@ -3,6 +3,10 @@ plugins { id("common-conventions-metadata") } +launcherIcon {+ symbol = "calendar_month"+}+ android { defaultConfig { applicationId = "com.vayunmathur.calendar"
calendar/src/main/java/com/vayunmathur/calendar/MainActivity.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/MainActivity.kt b/calendar/src/main/java/com/vayunmathur/calendar/MainActivity.ktindex 748f58c0f9..284fd6672c 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/MainActivity.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/MainActivity.kt@@ -14,9 +14,9 @@ import androidx.activity.result.contract.ActivityResultContracts import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding-import androidx.compose.material3.Button-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text import androidx.compose.runtime.* import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier
calendar/src/main/java/com/vayunmathur/calendar/ui/CalendarScreen.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/ui/CalendarScreen.kt b/calendar/src/main/java/com/vayunmathur/calendar/ui/CalendarScreen.ktindex ae7ea74066..215e23a862 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/ui/CalendarScreen.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/ui/CalendarScreen.kt@@ -29,20 +29,20 @@ import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.foundation.verticalScroll-import androidx.compose.material3.DropdownMenu-import androidx.compose.material3.DropdownMenuItem-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.FloatingActionButton-import androidx.compose.material3.HorizontalDivider-import androidx.compose.material3.Icon-import androidx.compose.material3.IconButton-import androidx.compose.material3.ListItem-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TextButton-import androidx.compose.material3.TopAppBar-import androidx.compose.material3.VerticalDivider+import com.vayunmathur.library.ui.DropdownMenu+import com.vayunmathur.library.ui.DropdownMenuItem+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.FloatingActionButton+import com.vayunmathur.library.ui.HorizontalDivider+import com.vayunmathur.library.ui.Icon+import com.vayunmathur.library.ui.IconButton+import com.vayunmathur.library.ui.ListItem+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TextButton+import com.vayunmathur.library.ui.TopAppBar+import com.vayunmathur.library.ui.VerticalDivider import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.lifecycle.compose.collectAsStateWithLifecycle
calendar/src/main/java/com/vayunmathur/calendar/ui/CalendarSelector.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/ui/CalendarSelector.kt b/calendar/src/main/java/com/vayunmathur/calendar/ui/CalendarSelector.ktindex c34a382f32..5325118a50 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/ui/CalendarSelector.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/ui/CalendarSelector.kt@@ -4,11 +4,11 @@ import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.size-import androidx.compose.material3.DropdownMenu-import androidx.compose.material3.DropdownMenuItem-import androidx.compose.material3.HorizontalDivider-import androidx.compose.material3.Icon-import androidx.compose.material3.ListItem+import com.vayunmathur.library.ui.DropdownMenu+import com.vayunmathur.library.ui.DropdownMenuItem+import com.vayunmathur.library.ui.HorizontalDivider+import com.vayunmathur.library.ui.Icon+import com.vayunmathur.library.ui.ListItem import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf@@ -43,7 +43,7 @@ fun CalendarSelectorDropdown( Box(modifier) { ListItem(- content = { androidx.compose.material3.Text(selectedCalendar?.displayName ?: stringResource(R.string.select_calendar)) },+ content = { com.vayunmathur.library.ui.Text(selectedCalendar?.displayName ?: stringResource(R.string.select_calendar)) }, leadingContent = { selectedCalendar?.color?.let { Box(Modifier.size(24.dp).background(Color(it), RectangleShape)) } },@@ -54,10 +54,10 @@ fun CalendarSelectorDropdown( ) DropdownMenu(expanded = showDropdown, onDismissRequest = { showDropdown = false }) { grouped.forEach { (account, cals) ->- DropdownMenuItem(text = { androidx.compose.material3.Text(account) }, onClick = {}, enabled = false)+ DropdownMenuItem(text = { com.vayunmathur.library.ui.Text(account) }, onClick = {}, enabled = false) cals.forEach { cal -> DropdownMenuItem(- text = { androidx.compose.material3.Text(cal.displayName) },+ text = { com.vayunmathur.library.ui.Text(cal.displayName) }, leadingIcon = { Box(Modifier.size(16.dp).background(Color(cal.color), RectangleShape)) }, onClick = { onSelect(cal)@@ -69,7 +69,7 @@ fun CalendarSelectorDropdown( if (onCreateNew != null) { HorizontalDivider() DropdownMenuItem(- text = { androidx.compose.material3.Text(stringResource(R.string.create_new_calendar)) },+ text = { com.vayunmathur.library.ui.Text(stringResource(R.string.create_new_calendar)) }, onClick = { showDropdown = false onCreateNew()
calendar/src/main/java/com/vayunmathur/calendar/ui/EditEventScreen.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/ui/EditEventScreen.kt b/calendar/src/main/java/com/vayunmathur/calendar/ui/EditEventScreen.ktindex e0322778dd..422e5e7ecc 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/ui/EditEventScreen.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/ui/EditEventScreen.kt@@ -17,19 +17,19 @@ import androidx.compose.foundation.layout.width import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.foundation.verticalScroll-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.DropdownMenu-import androidx.compose.material3.DropdownMenuItem-import androidx.compose.material3.FloatingActionButton-import androidx.compose.material3.HorizontalDivider-import androidx.compose.material3.Icon-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.OutlinedTextField-import androidx.compose.material3.ProvideTextStyle-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Switch-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.DropdownMenu+import com.vayunmathur.library.ui.DropdownMenuItem+import com.vayunmathur.library.ui.FloatingActionButton+import com.vayunmathur.library.ui.HorizontalDivider+import com.vayunmathur.library.ui.Icon+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.OutlinedTextField+import com.vayunmathur.library.ui.ProvideTextStyle+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Switch+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.lifecycle.compose.collectAsStateWithLifecycle
calendar/src/main/java/com/vayunmathur/calendar/ui/EventScreen.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/ui/EventScreen.kt b/calendar/src/main/java/com/vayunmathur/calendar/ui/EventScreen.ktindex b1182d513e..e2d99b716b 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/ui/EventScreen.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/ui/EventScreen.kt@@ -13,16 +13,16 @@ import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.shape.RoundedCornerShape-import androidx.compose.material3.DropdownMenu-import androidx.compose.material3.DropdownMenuItem-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.Icon-import androidx.compose.material3.IconButton-import androidx.compose.material3.ListItem-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.DropdownMenu+import com.vayunmathur.library.ui.DropdownMenuItem+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.Icon+import com.vayunmathur.library.ui.IconButton+import com.vayunmathur.library.ui.ListItem+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.compose.runtime.getValue
calendar/src/main/java/com/vayunmathur/calendar/ui/HolidayCalendarsScreen.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/ui/HolidayCalendarsScreen.kt b/calendar/src/main/java/com/vayunmathur/calendar/ui/HolidayCalendarsScreen.ktindex a4e3825492..9d4f7ec1ba 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/ui/HolidayCalendarsScreen.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/ui/HolidayCalendarsScreen.kt@@ -8,15 +8,15 @@ import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items-import androidx.compose.material3.CircularProgressIndicator-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.HorizontalDivider-import androidx.compose.material3.ListItem-import androidx.compose.material3.OutlinedTextField-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Switch-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.CircularProgressIndicator+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.HorizontalDivider+import com.vayunmathur.library.ui.ListItem+import com.vayunmathur.library.ui.OutlinedTextField+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Switch+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.getValue
calendar/src/main/java/com/vayunmathur/calendar/ui/ImportActivity.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/ui/ImportActivity.kt b/calendar/src/main/java/com/vayunmathur/calendar/ui/ImportActivity.ktindex 9af8b8ed4d..a73e24d9b5 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/ui/ImportActivity.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/ui/ImportActivity.kt@@ -12,13 +12,13 @@ import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items-import androidx.compose.material3.Card-import androidx.compose.material3.CardDefaults-import androidx.compose.material3.FloatingActionButton-import androidx.compose.material3.ListItem-import androidx.compose.material3.ListItemDefaults-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text+import com.vayunmathur.library.ui.Card+import com.vayunmathur.library.ui.CardDefaults+import com.vayunmathur.library.ui.FloatingActionButton+import com.vayunmathur.library.ui.ListItem+import com.vayunmathur.library.ui.ListItemDefaults+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.getValue
calendar/src/main/java/com/vayunmathur/calendar/ui/SettingsScreen.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/ui/SettingsScreen.kt b/calendar/src/main/java/com/vayunmathur/calendar/ui/SettingsScreen.ktindex 918814e712..8dc3853076 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/ui/SettingsScreen.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/ui/SettingsScreen.kt@@ -16,21 +16,21 @@ import androidx.compose.foundation.layout.size import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.foundation.shape.CircleShape-import androidx.compose.material3.Button-import androidx.compose.material3.DropdownMenu-import androidx.compose.material3.DropdownMenuItem-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.FloatingActionButton-import androidx.compose.material3.HorizontalDivider-import androidx.compose.material3.Icon-import androidx.compose.material3.IconButton-import androidx.compose.material3.ListItem-import androidx.compose.material3.ListItemDefaults-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TextButton-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.DropdownMenu+import com.vayunmathur.library.ui.DropdownMenuItem+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.FloatingActionButton+import com.vayunmathur.library.ui.HorizontalDivider+import com.vayunmathur.library.ui.Icon+import com.vayunmathur.library.ui.IconButton+import com.vayunmathur.library.ui.ListItem+import com.vayunmathur.library.ui.ListItemDefaults+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TextButton+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.compose.runtime.getValue@@ -185,7 +185,7 @@ fun SettingsScreen(viewModel: CalendarViewModel, backStack: NavBackStack<Route>) }, trailingContent = { val isChecked = visibility[cal.id] ?: true- androidx.compose.material3.Checkbox(checked = isChecked, onCheckedChange = { checked -> viewModel.setCalendarVisibility(cal.id, checked) })+ com.vayunmathur.library.ui.Checkbox(checked = isChecked, onCheckedChange = { checked -> viewModel.setCalendarVisibility(cal.id, checked) }) }, colors = ListItemDefaults.colors( containerColor = if(selectedCalendarId == cal.id) MaterialTheme.colorScheme.surfaceVariant else MaterialTheme.colorScheme.surface
calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/CalendarPickerDialog.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/CalendarPickerDialog.kt b/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/CalendarPickerDialog.ktindex ab56f823c7..0eba5be8da 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/CalendarPickerDialog.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/CalendarPickerDialog.kt@@ -9,10 +9,10 @@ import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items-import androidx.compose.material3.AlertDialog-import androidx.compose.material3.Button-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.Text+import com.vayunmathur.library.ui.AlertDialog+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.Text import androidx.compose.runtime.Composable import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.compose.runtime.rememberCoroutineScope
calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/CalendarSetDateDialog.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/CalendarSetDateDialog.kt b/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/CalendarSetDateDialog.ktindex 2979c9f6c6..af3c997275 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/CalendarSetDateDialog.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/CalendarSetDateDialog.kt@@ -1,12 +1,12 @@ package com.vayunmathur.calendar.ui.dialogs-import androidx.compose.material3.Button-import androidx.compose.material3.DatePicker-import androidx.compose.material3.DatePickerDialog-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.Text+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.DatePicker+import com.vayunmathur.library.ui.DatePickerDialog+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.Text import androidx.compose.ui.res.stringResource import com.vayunmathur.calendar.R-import androidx.compose.material3.rememberDatePickerState+import com.vayunmathur.library.ui.rememberDatePickerState import androidx.compose.runtime.Composable import androidx.compose.runtime.rememberCoroutineScope import com.vayunmathur.library.util.NavBackStack
calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/ImportIcsDialog.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/ImportIcsDialog.kt b/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/ImportIcsDialog.ktindex 13144be0d7..40b759594a 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/ImportIcsDialog.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/ImportIcsDialog.kt@@ -5,7 +5,7 @@ import android.provider.CalendarContract import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items-import androidx.compose.material3.*+import com.vayunmathur.library.ui.* import androidx.compose.runtime.* import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource
calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/RecurrenceDialog.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/RecurrenceDialog.kt b/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/RecurrenceDialog.ktindex 8703738859..13c2a048bf 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/RecurrenceDialog.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/RecurrenceDialog.kt@@ -10,18 +10,18 @@ import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.shape.CircleShape-import androidx.compose.material3.AlertDialog-import androidx.compose.material3.Button-import androidx.compose.material3.DropdownMenu-import androidx.compose.material3.DropdownMenuItem-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.OutlinedTextField-import androidx.compose.material3.SegmentedButton-import androidx.compose.material3.SegmentedButtonDefaults-import androidx.compose.material3.SingleChoiceSegmentedButtonRow-import androidx.compose.material3.Surface-import androidx.compose.material3.Text+import com.vayunmathur.library.ui.AlertDialog+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.DropdownMenu+import com.vayunmathur.library.ui.DropdownMenuItem+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.OutlinedTextField+import com.vayunmathur.library.ui.SegmentedButton+import com.vayunmathur.library.ui.SegmentedButtonDefaults+import com.vayunmathur.library.ui.SingleChoiceSegmentedButtonRow+import com.vayunmathur.library.ui.Surface+import com.vayunmathur.library.ui.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.getValue
calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsAddCalendarDialog.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsAddCalendarDialog.kt b/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsAddCalendarDialog.ktindex 27051036e6..ff680b4fa9 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsAddCalendarDialog.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsAddCalendarDialog.kt@@ -10,12 +10,12 @@ import androidx.compose.foundation.layout.size import androidx.compose.foundation.lazy.LazyRow import androidx.compose.foundation.lazy.items import androidx.compose.foundation.shape.CircleShape-import androidx.compose.material3.AlertDialog-import androidx.compose.material3.Button-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.OutlinedTextField-import androidx.compose.material3.Text+import com.vayunmathur.library.ui.AlertDialog+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.OutlinedTextField+import com.vayunmathur.library.ui.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableIntStateOf
calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsChangeColorDialog.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsChangeColorDialog.kt b/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsChangeColorDialog.ktindex 7b07d5e69e..7cc340104b 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsChangeColorDialog.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsChangeColorDialog.kt@@ -9,11 +9,11 @@ import androidx.compose.foundation.layout.size import androidx.compose.foundation.lazy.LazyRow import androidx.compose.foundation.lazy.items import androidx.compose.foundation.shape.CircleShape-import androidx.compose.material3.AlertDialog-import androidx.compose.material3.Button-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Text+import com.vayunmathur.library.ui.AlertDialog+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Text import androidx.compose.runtime.Composable import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.compose.runtime.getValue
calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsDeleteCalendarDialog.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsDeleteCalendarDialog.kt b/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsDeleteCalendarDialog.ktindex 5f99316333..7d3fc22068 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsDeleteCalendarDialog.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsDeleteCalendarDialog.kt@@ -1,8 +1,8 @@ package com.vayunmathur.calendar.ui.dialogs-import androidx.compose.material3.AlertDialog-import androidx.compose.material3.Button-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.Text+import com.vayunmathur.library.ui.AlertDialog+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.Text import androidx.compose.runtime.Composable import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.compose.runtime.getValue
calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsRenameCalendarDialog.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsRenameCalendarDialog.kt b/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsRenameCalendarDialog.ktindex 5246b4154c..c5a62f6790 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsRenameCalendarDialog.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/SettingsRenameCalendarDialog.kt@@ -1,11 +1,11 @@ package com.vayunmathur.calendar.ui.dialogs import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.padding-import androidx.compose.material3.AlertDialog-import androidx.compose.material3.Button-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.OutlinedTextField-import androidx.compose.material3.Text+import com.vayunmathur.library.ui.AlertDialog+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.OutlinedTextField+import com.vayunmathur.library.ui.Text import androidx.compose.runtime.Composable import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.compose.runtime.getValue
calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/TimezonePickerDialog.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/TimezonePickerDialog.kt b/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/TimezonePickerDialog.ktindex 051852f771..945acda1ee 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/TimezonePickerDialog.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/TimezonePickerDialog.kt@@ -7,11 +7,11 @@ import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items-import androidx.compose.material3.AlertDialog-import androidx.compose.material3.Button-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.OutlinedTextField-import androidx.compose.material3.Text+import com.vayunmathur.library.ui.AlertDialog+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.OutlinedTextField+import com.vayunmathur.library.ui.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf
calendar/src/main/res/drawable/ic_launcher_foreground.xml
diff --git a/calendar/src/main/res/drawable/ic_launcher_foreground.xml b/calendar/src/main/res/drawable/ic_launcher_foreground.xmldeleted file mode 100644index ead8e025b8..0000000000--- a/calendar/src/main/res/drawable/ic_launcher_foreground.xml+++ /dev/null@@ -1,15 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android"- android:width="108dp"- android:height="108dp"- android:viewportWidth="24"- android:viewportHeight="24"- android:tint="#000000">- <group android:scaleX="0.522"- android:scaleY="0.522"- android:translateX="5.736"- android:translateY="5.736">- <path- android:fillColor="@android:color/white"- android:pathData="M20,3h-1L19,1h-2v2L7,3L7,1L5,1v2L4,3c-1.1,0 -2,0.9 -2,2v16c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,5c0,-1.1 -0.9,-2 -2,-2zM20,21L4,21L4,8h16v13z"/>- </group>-</vector>
camera/build.gradle.kts
diff --git a/camera/build.gradle.kts b/camera/build.gradle.ktsindex a97e0826de..ed859e010e 100644--- a/camera/build.gradle.kts+++ b/camera/build.gradle.kts@@ -3,6 +3,10 @@ plugins { id("common-conventions-metadata") } +launcherIcon {+ symbol = "photo_camera"+}+ android { defaultConfig { applicationId = "com.vayunmathur.camera"
camera/src/main/java/com/vayunmathur/camera/ui/CameraScreen.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/ui/CameraScreen.kt b/camera/src/main/java/com/vayunmathur/camera/ui/CameraScreen.ktindex 3f2d0a819b..9d0a2d41d7 100644--- a/camera/src/main/java/com/vayunmathur/camera/ui/CameraScreen.kt+++ b/camera/src/main/java/com/vayunmathur/camera/ui/CameraScreen.kt@@ -49,7 +49,7 @@ import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.aspectRatio import androidx.compose.foundation.layout.fillMaxSize-import androidx.compose.material3.CircularProgressIndicator+import com.vayunmathur.library.ui.CircularProgressIndicator import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.height@@ -58,16 +58,17 @@ import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.RoundedCornerShape-import androidx.compose.material3.Button-import androidx.compose.material3.FilledTonalButton-import androidx.compose.material3.Icon-import androidx.compose.material3.IconButton-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Slider-import androidx.compose.material3.SliderDefaults-import androidx.compose.material3.Text-import androidx.compose.material3.TextButton+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.FilledTonalButton+import com.vayunmathur.library.ui.Icon+import com.vayunmathur.library.ui.IconSettings+import com.vayunmathur.library.ui.IconButton+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Slider+import com.vayunmathur.library.ui.SliderDefaults+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TextButton import androidx.compose.runtime.Composable import androidx.compose.runtime.DisposableEffect import androidx.compose.runtime.LaunchedEffect@@ -1412,9 +1413,7 @@ private fun BottomBar( .clickable(onClick = onSettingsClick), contentAlignment = Alignment.Center ) {- Icon(- painterResource(com.vayunmathur.library.R.drawable.settings_24px),- contentDescription = stringResource(R.string.settings),+ IconSettings( tint = Color.White, modifier = Modifier.size(22.dp).rotate(iconRotation) )
camera/src/main/java/com/vayunmathur/camera/ui/SettingsPage.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/ui/SettingsPage.kt b/camera/src/main/java/com/vayunmathur/camera/ui/SettingsPage.ktindex 89cee0d102..dd9d61c8a8 100644--- a/camera/src/main/java/com/vayunmathur/camera/ui/SettingsPage.kt+++ b/camera/src/main/java/com/vayunmathur/camera/ui/SettingsPage.kt@@ -13,12 +13,12 @@ import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.verticalScroll-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Switch-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Switch+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState import androidx.compose.runtime.getValue
camera/src/main/java/com/vayunmathur/camera/util/PhotoAnalyzer.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/util/PhotoAnalyzer.kt b/camera/src/main/java/com/vayunmathur/camera/util/PhotoAnalyzer.ktindex 43b352ad9d..0d74f13c15 100644--- a/camera/src/main/java/com/vayunmathur/camera/util/PhotoAnalyzer.kt+++ b/camera/src/main/java/com/vayunmathur/camera/util/PhotoAnalyzer.kt@@ -5,7 +5,9 @@ import androidx.annotation.OptIn import androidx.camera.core.ExperimentalGetImage import androidx.camera.core.ImageAnalysis import androidx.camera.core.ImageProxy+import com.google.zxing.BarcodeFormat import com.google.zxing.BinaryBitmap+import com.google.zxing.DecodeHintType import com.google.zxing.MultiFormatReader import com.google.zxing.NotFoundException import com.google.zxing.PlanarYUVLuminanceSource@@ -24,7 +26,17 @@ class PhotoAnalyzer( private val onQrDetected: (String) -> Unit, private val onMotionFrame: ((Bitmap, Long, Int) -> Unit)? = null ) : ImageAnalysis.Analyzer {- private val reader = MultiFormatReader()+ private val reader = MultiFormatReader().apply {+ // Restrict to 2D codes only. Without this, ZXing's default MultiFormatReader+ // also decodes 1D linear barcodes (EAN/UPC/Code-128/ITF) which yield purely+ // numeric strings. In landscape, horizontal scene edges mimic linear barcode+ // bars and produce spurious numeric "QR" detections.+ setHints(+ mapOf(+ DecodeHintType.POSSIBLE_FORMATS to listOf(BarcodeFormat.QR_CODE)+ )+ )+ } @OptIn(ExperimentalGetImage::class) override fun analyze(imageProxy: ImageProxy) {
camera/src/main/res/drawable/ic_launcher_foreground.xml
diff --git a/camera/src/main/res/drawable/ic_launcher_foreground.xml b/camera/src/main/res/drawable/ic_launcher_foreground.xmldeleted file mode 100644index 1c2fe6b3b1..0000000000--- a/camera/src/main/res/drawable/ic_launcher_foreground.xml+++ /dev/null@@ -1,30 +0,0 @@-<!--- ~ Copyright (C) 2026 The Android Open Source Project- ~- ~ Licensed under the Apache License, Version 2.0 (the "License");- ~ you may not use this file except in compliance with the License.- ~ You may obtain a copy of the License at- ~- ~ http://www.apache.org/licenses/LICENSE-2.0- ~- ~ Unless required by applicable law or agreed to in writing, software- ~ distributed under the License is distributed on an "AS IS" BASIS,- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- ~ See the License for the specific language governing permissions and- ~ limitations under the License.- -->-<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">- <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="M480,700Q555,700 607.5,647.5Q660,595 660,520Q660,445 607.5,392.5Q555,340 480,340Q405,340 352.5,392.5Q300,445 300,520Q300,595 352.5,647.5Q405,700 480,700ZM480,620Q438,620 409,591Q380,562 380,520Q380,478 409,449Q438,420 480,420Q522,420 551,449Q580,478 580,520Q580,562 551,591Q522,620 480,620ZM160,840Q127,840 103.5,816.5Q80,793 80,760L80,280Q80,247 103.5,223.5Q127,200 160,200L286,200L360,120L600,120L674,200L800,200Q833,200 856.5,223.5Q880,247 880,280L880,760Q880,793 856.5,816.5Q833,840 800,840L160,840ZM160,760L800,760Q800,760 800,760Q800,760 800,760L800,280Q800,280 800,280Q800,280 800,280L638,280L565,200L395,200L322,280L160,280Q160,280 160,280Q160,280 160,280L160,760Q160,760 160,760Q160,760 160,760ZM480,520Q480,520 480,520Q480,520 480,520L480,520Q480,520 480,520Q480,520 480,520L480,520L480,520L480,520L480,520L480,520Q480,520 480,520Q480,520 480,520L480,520Q480,520 480,520Q480,520 480,520Z"/>- </group>-</vector>
clock/build.gradle.kts
diff --git a/clock/build.gradle.kts b/clock/build.gradle.ktsindex 3b450d40c6..8337f1954a 100644--- a/clock/build.gradle.kts+++ b/clock/build.gradle.kts@@ -4,6 +4,10 @@ plugins { alias(libs.plugins.ksp) } +launcherIcon {+ symbol = "schedule"+}+ android { defaultConfig { applicationId = "com.vayunmathur.clock"
clock/src/main/java/com/vayunmathur/clock/MainActivity.kt
diff --git a/clock/src/main/java/com/vayunmathur/clock/MainActivity.kt b/clock/src/main/java/com/vayunmathur/clock/MainActivity.ktindex 0a674b4dab..c21b420caf 100644--- a/clock/src/main/java/com/vayunmathur/clock/MainActivity.kt+++ b/clock/src/main/java/com/vayunmathur/clock/MainActivity.kt@@ -18,9 +18,10 @@ import androidx.activity.viewModels import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding-import androidx.compose.material3.Button-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.Icon+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.getValue@@ -29,6 +30,7 @@ import androidx.compose.runtime.remember import androidx.compose.runtime.setValue import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier+import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource import androidx.core.content.ContextCompat import androidx.core.net.toUri@@ -171,10 +173,10 @@ sealed interface Route : NavKey { @Composable fun mainPages() = listOf(- BottomBarItem(stringResource(R.string.label_alarm), Route.Alarm, R.drawable.baseline_access_alarm_24),- BottomBarItem(stringResource(R.string.label_clock), Route.Clock, R.drawable.baseline_access_time_24),- BottomBarItem(stringResource(R.string.label_timer), Route.Timer, R.drawable.baseline_hourglass_bottom_24),- BottomBarItem(stringResource(R.string.label_stopwatch), Route.Stopwatch, R.drawable.outline_timer_24)+ BottomBarItem(stringResource(R.string.label_alarm), Route.Alarm) { Icon(painterResource(R.drawable.baseline_access_alarm_24), null) },+ BottomBarItem(stringResource(R.string.label_clock), Route.Clock) { Icon(painterResource(R.drawable.baseline_access_time_24), null) },+ BottomBarItem(stringResource(R.string.label_timer), Route.Timer) { Icon(painterResource(R.drawable.baseline_hourglass_bottom_24), null) },+ BottomBarItem(stringResource(R.string.label_stopwatch), Route.Stopwatch) { Icon(painterResource(R.drawable.outline_timer_24), null) } ) @Composable
clock/src/main/java/com/vayunmathur/clock/ui/AlarmActivity.kt
diff --git a/clock/src/main/java/com/vayunmathur/clock/ui/AlarmActivity.kt b/clock/src/main/java/com/vayunmathur/clock/ui/AlarmActivity.ktindex 9ec6412aee..e9ef808c3d 100644--- a/clock/src/main/java/com/vayunmathur/clock/ui/AlarmActivity.kt+++ b/clock/src/main/java/com/vayunmathur/clock/ui/AlarmActivity.kt@@ -19,14 +19,14 @@ import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.RoundedCornerShape-import androidx.compose.material3.Button-import androidx.compose.material3.ButtonDefaults-import androidx.compose.material3.FilledTonalButton-import androidx.compose.material3.Icon-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Surface-import androidx.compose.material3.Text+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.ButtonDefaults+import com.vayunmathur.library.ui.FilledTonalButton+import com.vayunmathur.library.ui.Icon+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Surface+import com.vayunmathur.library.ui.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.ui.Alignment
clock/src/main/java/com/vayunmathur/clock/ui/AlarmPage.kt
diff --git a/clock/src/main/java/com/vayunmathur/clock/ui/AlarmPage.kt b/clock/src/main/java/com/vayunmathur/clock/ui/AlarmPage.ktindex ece3f0b122..2f22663f38 100644--- a/clock/src/main/java/com/vayunmathur/clock/ui/AlarmPage.kt+++ b/clock/src/main/java/com/vayunmathur/clock/ui/AlarmPage.kt@@ -15,19 +15,19 @@ import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.width import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items-import androidx.compose.material3.Button-import androidx.compose.material3.Card-import androidx.compose.material3.CardDefaults-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.ExperimentalMaterial3ExpressiveApi-import androidx.compose.material3.FloatingActionButton-import androidx.compose.material3.IconButton-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Switch-import androidx.compose.material3.Text-import androidx.compose.material3.ToggleButton-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.Card+import com.vayunmathur.library.ui.CardDefaults+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.ExperimentalMaterial3ExpressiveApi+import com.vayunmathur.library.ui.FloatingActionButton+import com.vayunmathur.library.ui.IconButton+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Switch+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.ToggleButton+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState import androidx.compose.runtime.getValue
clock/src/main/java/com/vayunmathur/clock/ui/AlarmSettingsPage.kt
diff --git a/clock/src/main/java/com/vayunmathur/clock/ui/AlarmSettingsPage.kt b/clock/src/main/java/com/vayunmathur/clock/ui/AlarmSettingsPage.ktindex cd22aad049..b7b1f0f1a8 100644--- a/clock/src/main/java/com/vayunmathur/clock/ui/AlarmSettingsPage.kt+++ b/clock/src/main/java/com/vayunmathur/clock/ui/AlarmSettingsPage.kt@@ -12,16 +12,16 @@ import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding-import androidx.compose.material3.DropdownMenu-import androidx.compose.material3.DropdownMenuItem-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.IconButton-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Switch-import androidx.compose.material3.Text-import androidx.compose.material3.TextButton-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.DropdownMenu+import com.vayunmathur.library.ui.DropdownMenuItem+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.IconButton+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Switch+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TextButton+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf
clock/src/main/java/com/vayunmathur/clock/ui/ClockPage.kt
diff --git a/clock/src/main/java/com/vayunmathur/clock/ui/ClockPage.kt b/clock/src/main/java/com/vayunmathur/clock/ui/ClockPage.ktindex f1bf3b5af3..4ff7415303 100644--- a/clock/src/main/java/com/vayunmathur/clock/ui/ClockPage.kt+++ b/clock/src/main/java/com/vayunmathur/clock/ui/ClockPage.kt@@ -8,15 +8,15 @@ import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.width import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items-import androidx.compose.material3.Card-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.FloatingActionButton-import androidx.compose.material3.ListItem-import androidx.compose.material3.ListItemDefaults-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.Card+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.FloatingActionButton+import com.vayunmathur.library.ui.ListItem+import com.vayunmathur.library.ui.ListItemDefaults+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState import androidx.compose.runtime.getValue
clock/src/main/java/com/vayunmathur/clock/ui/StopwatchPage.kt
diff --git a/clock/src/main/java/com/vayunmathur/clock/ui/StopwatchPage.kt b/clock/src/main/java/com/vayunmathur/clock/ui/StopwatchPage.ktindex dc06d2f62a..73e0e91d98 100644--- a/clock/src/main/java/com/vayunmathur/clock/ui/StopwatchPage.kt+++ b/clock/src/main/java/com/vayunmathur/clock/ui/StopwatchPage.kt@@ -13,15 +13,15 @@ import androidx.compose.foundation.layout.size import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.itemsIndexed import androidx.compose.foundation.shape.RoundedCornerShape-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.FloatingActionButton-import androidx.compose.material3.HorizontalDivider-import androidx.compose.material3.Icon-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Surface-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.FloatingActionButton+import com.vayunmathur.library.ui.HorizontalDivider+import com.vayunmathur.library.ui.Icon+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Surface+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState import androidx.compose.runtime.derivedStateOf
clock/src/main/java/com/vayunmathur/clock/ui/TimerPage.kt
diff --git a/clock/src/main/java/com/vayunmathur/clock/ui/TimerPage.kt b/clock/src/main/java/com/vayunmathur/clock/ui/TimerPage.ktindex c8520658df..d90f774cb0 100644--- a/clock/src/main/java/com/vayunmathur/clock/ui/TimerPage.kt+++ b/clock/src/main/java/com/vayunmathur/clock/ui/TimerPage.kt@@ -25,17 +25,17 @@ import androidx.compose.foundation.layout.width import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.foundation.shape.CircleShape-import androidx.compose.material3.Card-import androidx.compose.material3.CardDefaults-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.FilledTonalButton-import androidx.compose.material3.FloatingActionButton-import androidx.compose.material3.FloatingActionButtonDefaults-import androidx.compose.material3.IconButton-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.Card+import com.vayunmathur.library.ui.CardDefaults+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.FilledTonalButton+import com.vayunmathur.library.ui.FloatingActionButton+import com.vayunmathur.library.ui.FloatingActionButtonDefaults+import com.vayunmathur.library.ui.IconButton+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState import androidx.compose.runtime.getValue
clock/src/main/java/com/vayunmathur/clock/ui/dialogs/NewTimerDialog.kt
diff --git a/clock/src/main/java/com/vayunmathur/clock/ui/dialogs/NewTimerDialog.kt b/clock/src/main/java/com/vayunmathur/clock/ui/dialogs/NewTimerDialog.ktindex f427a475b2..3da6a5bc53 100644--- a/clock/src/main/java/com/vayunmathur/clock/ui/dialogs/NewTimerDialog.kt+++ b/clock/src/main/java/com/vayunmathur/clock/ui/dialogs/NewTimerDialog.kt@@ -4,12 +4,12 @@ import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.text.KeyboardOptions-import androidx.compose.material3.AlertDialog-import androidx.compose.material3.Button-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.OutlinedTextField-import androidx.compose.material3.Text-import androidx.compose.material3.TextButton+import com.vayunmathur.library.ui.AlertDialog+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.OutlinedTextField+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TextButton import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf
clock/src/main/java/com/vayunmathur/clock/ui/dialogs/SelectTimeZonesDialog.kt
diff --git a/clock/src/main/java/com/vayunmathur/clock/ui/dialogs/SelectTimeZonesDialog.kt b/clock/src/main/java/com/vayunmathur/clock/ui/dialogs/SelectTimeZonesDialog.ktindex 48a496c33f..4387f78c8b 100644--- a/clock/src/main/java/com/vayunmathur/clock/ui/dialogs/SelectTimeZonesDialog.kt+++ b/clock/src/main/java/com/vayunmathur/clock/ui/dialogs/SelectTimeZonesDialog.kt@@ -8,13 +8,13 @@ import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items-import androidx.compose.material3.Card-import androidx.compose.material3.Checkbox-import androidx.compose.material3.ListItem-import androidx.compose.material3.ListItemDefaults-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.OutlinedTextField-import androidx.compose.material3.Text+import com.vayunmathur.library.ui.Card+import com.vayunmathur.library.ui.Checkbox+import com.vayunmathur.library.ui.ListItem+import com.vayunmathur.library.ui.ListItemDefaults+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.OutlinedTextField+import com.vayunmathur.library.ui.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState import androidx.compose.runtime.getValue
clock/src/main/res/drawable/ic_launcher_foreground.xml
diff --git a/clock/src/main/res/drawable/ic_launcher_foreground.xml b/clock/src/main/res/drawable/ic_launcher_foreground.xmldeleted file mode 100644index 2c3ff45304..0000000000--- a/clock/src/main/res/drawable/ic_launcher_foreground.xml+++ /dev/null@@ -1,15 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android"- android:width="108dp"- android:height="108dp"- android:viewportWidth="24"- android:viewportHeight="24"- android:tint="#000000">- <group android:scaleX="0.522"- android:scaleY="0.522"- android:translateX="5.736"- android:translateY="5.736">- <path- android:fillColor="@android:color/white"- android:pathData="M11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM12,20c-4.42,0 -8,-3.58 -8,-8s3.58,-8 8,-8 8,3.58 8,8 -3.58,8 -8,8zM12.5,7L11,7v6l5.25,3.15 0.75,-1.23 -4.5,-2.67z"/>- </group>-</vector>
contacts/build.gradle.kts
diff --git a/contacts/build.gradle.kts b/contacts/build.gradle.ktsindex 4ba18b5190..3d2ead7fc1 100644--- a/contacts/build.gradle.kts+++ b/contacts/build.gradle.kts@@ -4,6 +4,10 @@ plugins { id("com.google.devtools.ksp") } +launcherIcon {+ symbol = "person"+}+ android { defaultConfig { applicationId = "com.vayunmathur.contacts"
contacts/src/main/java/com/vayunmathur/contacts/MainActivity.kt
diff --git a/contacts/src/main/java/com/vayunmathur/contacts/MainActivity.kt b/contacts/src/main/java/com/vayunmathur/contacts/MainActivity.ktindex 0b02664a8e..d997297d23 100644--- a/contacts/src/main/java/com/vayunmathur/contacts/MainActivity.kt+++ b/contacts/src/main/java/com/vayunmathur/contacts/MainActivity.kt@@ -14,7 +14,7 @@ import androidx.activity.compose.setContent import androidx.activity.enableEdgeToEdge import androidx.activity.result.contract.ActivityResultContracts import androidx.compose.foundation.layout.*-import androidx.compose.material3.*+import com.vayunmathur.library.ui.* import androidx.compose.runtime.* import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier@@ -231,7 +231,7 @@ fun NoPermissionsScreen(permissions: Array<String>, setHasPermissions: (Boolean) .padding(it) .fillMaxSize() ) {- androidx.compose.material3.Button(+ com.vayunmathur.library.ui.Button( { permissionRequestor.launch(permissions) }, Modifier.align(Alignment.Center)
contacts/src/main/java/com/vayunmathur/contacts/ui/ContactDetailsPage.kt
diff --git a/contacts/src/main/java/com/vayunmathur/contacts/ui/ContactDetailsPage.kt b/contacts/src/main/java/com/vayunmathur/contacts/ui/ContactDetailsPage.ktindex 07cad9309b..6bcbc5ef29 100644--- a/contacts/src/main/java/com/vayunmathur/contacts/ui/ContactDetailsPage.kt+++ b/contacts/src/main/java/com/vayunmathur/contacts/ui/ContactDetailsPage.kt@@ -32,21 +32,21 @@ import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.RoundedCornerShape-import androidx.compose.material3.BadgedBox-import androidx.compose.material3.CircularProgressIndicator-import androidx.compose.material3.DropdownMenu-import androidx.compose.material3.DropdownMenuItem-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.Icon-import androidx.compose.material3.IconButton-import androidx.compose.material3.ListItem-import androidx.compose.material3.ListItemDefaults-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Surface-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar-import androidx.compose.material3.TopAppBarDefaults+import com.vayunmathur.library.ui.BadgedBox+import com.vayunmathur.library.ui.CircularProgressIndicator+import com.vayunmathur.library.ui.DropdownMenu+import com.vayunmathur.library.ui.DropdownMenuItem+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.Icon+import com.vayunmathur.library.ui.IconButton+import com.vayunmathur.library.ui.ListItem+import com.vayunmathur.library.ui.ListItemDefaults+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Surface+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar+import com.vayunmathur.library.ui.TopAppBarDefaults import androidx.compose.runtime.Composable import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.compose.runtime.getValue
contacts/src/main/java/com/vayunmathur/contacts/ui/ContactList.kt
diff --git a/contacts/src/main/java/com/vayunmathur/contacts/ui/ContactList.kt b/contacts/src/main/java/com/vayunmathur/contacts/ui/ContactList.ktindex dbe97e30cd..dff7076dec 100644--- a/contacts/src/main/java/com/vayunmathur/contacts/ui/ContactList.kt+++ b/contacts/src/main/java/com/vayunmathur/contacts/ui/ContactList.kt@@ -26,16 +26,16 @@ import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.RoundedCornerShape-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.FloatingActionButton-import androidx.compose.material3.Icon-import androidx.compose.material3.IconButton-import androidx.compose.material3.ListItem-import androidx.compose.material3.ListItemDefaults-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.FloatingActionButton+import com.vayunmathur.library.ui.Icon+import com.vayunmathur.library.ui.IconButton+import com.vayunmathur.library.ui.ListItem+import com.vayunmathur.library.ui.ListItemDefaults+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.lifecycle.compose.collectAsStateWithLifecycle@@ -65,7 +65,7 @@ import com.vayunmathur.library.util.NavBackStack import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext -import androidx.compose.material3.*+import com.vayunmathur.library.ui.* import androidx.compose.runtime.* import androidx.compose.ui.platform.LocalContext import androidx.core.content.FileProvider
contacts/src/main/java/com/vayunmathur/contacts/ui/ContactUiHelpers.kt
diff --git a/contacts/src/main/java/com/vayunmathur/contacts/ui/ContactUiHelpers.kt b/contacts/src/main/java/com/vayunmathur/contacts/ui/ContactUiHelpers.ktindex 108f13fa64..abccd776f3 100644--- a/contacts/src/main/java/com/vayunmathur/contacts/ui/ContactUiHelpers.kt+++ b/contacts/src/main/java/com/vayunmathur/contacts/ui/ContactUiHelpers.kt@@ -8,8 +8,8 @@ import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.shape.CircleShape-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Text+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.produceState
contacts/src/main/java/com/vayunmathur/contacts/ui/ContactsBottomNavBar.kt
diff --git a/contacts/src/main/java/com/vayunmathur/contacts/ui/ContactsBottomNavBar.kt b/contacts/src/main/java/com/vayunmathur/contacts/ui/ContactsBottomNavBar.ktindex cb899bfd8c..94d6a7981d 100644--- a/contacts/src/main/java/com/vayunmathur/contacts/ui/ContactsBottomNavBar.kt+++ b/contacts/src/main/java/com/vayunmathur/contacts/ui/ContactsBottomNavBar.kt@@ -1,6 +1,6 @@ package com.vayunmathur.contacts.ui -import androidx.compose.material3.*+import com.vayunmathur.library.ui.* import androidx.compose.runtime.Composable import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource
contacts/src/main/java/com/vayunmathur/contacts/ui/CropPhotoScreen.kt
diff --git a/contacts/src/main/java/com/vayunmathur/contacts/ui/CropPhotoScreen.kt b/contacts/src/main/java/com/vayunmathur/contacts/ui/CropPhotoScreen.ktindex 3c016efa05..e38a788cef 100644--- a/contacts/src/main/java/com/vayunmathur/contacts/ui/CropPhotoScreen.kt+++ b/contacts/src/main/java/com/vayunmathur/contacts/ui/CropPhotoScreen.kt@@ -10,11 +10,11 @@ import androidx.compose.foundation.gestures.detectDragGestures import androidx.compose.foundation.layout.BoxWithConstraints import androidx.compose.foundation.layout.fillMaxSize 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.TextButton-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TextButton+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.DisposableEffect import androidx.compose.runtime.LaunchedEffect
contacts/src/main/java/com/vayunmathur/contacts/ui/EditContactPage.kt
diff --git a/contacts/src/main/java/com/vayunmathur/contacts/ui/EditContactPage.kt b/contacts/src/main/java/com/vayunmathur/contacts/ui/EditContactPage.ktindex a049daaa4f..2008cc6249 100644--- a/contacts/src/main/java/com/vayunmathur/contacts/ui/EditContactPage.kt+++ b/contacts/src/main/java/com/vayunmathur/contacts/ui/EditContactPage.kt@@ -30,20 +30,20 @@ import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.foundation.text.KeyboardOptions import androidx.compose.foundation.verticalScroll-import androidx.compose.material3.Button-import androidx.compose.material3.DropdownMenu-import androidx.compose.material3.DropdownMenuItem-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.FilledTonalButton-import androidx.compose.material3.Icon-import androidx.compose.material3.IconButton-import androidx.compose.material3.InputChip-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.OutlinedTextField-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TextButton-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.DropdownMenu+import com.vayunmathur.library.ui.DropdownMenuItem+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.FilledTonalButton+import com.vayunmathur.library.ui.Icon+import com.vayunmathur.library.ui.IconButton+import com.vayunmathur.library.ui.InputChip+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.OutlinedTextField+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TextButton+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.lifecycle.compose.collectAsStateWithLifecycle
contacts/src/main/java/com/vayunmathur/contacts/ui/GroupsPage.kt
diff --git a/contacts/src/main/java/com/vayunmathur/contacts/ui/GroupsPage.kt b/contacts/src/main/java/com/vayunmathur/contacts/ui/GroupsPage.ktindex 7787bb6ac5..856cc06f93 100644--- a/contacts/src/main/java/com/vayunmathur/contacts/ui/GroupsPage.kt+++ b/contacts/src/main/java/com/vayunmathur/contacts/ui/GroupsPage.kt@@ -10,7 +10,7 @@ import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.RoundedCornerShape-import androidx.compose.material3.*+import com.vayunmathur.library.ui.* import androidx.compose.runtime.* import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier
contacts/src/main/java/com/vayunmathur/contacts/ui/ImportActivity.kt
diff --git a/contacts/src/main/java/com/vayunmathur/contacts/ui/ImportActivity.kt b/contacts/src/main/java/com/vayunmathur/contacts/ui/ImportActivity.ktindex 77a7396771..e45d198077 100644--- a/contacts/src/main/java/com/vayunmathur/contacts/ui/ImportActivity.kt+++ b/contacts/src/main/java/com/vayunmathur/contacts/ui/ImportActivity.kt@@ -10,14 +10,14 @@ import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items-import androidx.compose.material3.Card-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.FloatingActionButton-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Surface-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.Card+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.FloatingActionButton+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Surface+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource import androidx.compose.ui.unit.dp
contacts/src/main/java/com/vayunmathur/contacts/ui/SettingsPage.kt
diff --git a/contacts/src/main/java/com/vayunmathur/contacts/ui/SettingsPage.kt b/contacts/src/main/java/com/vayunmathur/contacts/ui/SettingsPage.ktindex 0b7b2f9c63..019bde1364 100644--- a/contacts/src/main/java/com/vayunmathur/contacts/ui/SettingsPage.kt+++ b/contacts/src/main/java/com/vayunmathur/contacts/ui/SettingsPage.kt@@ -12,7 +12,7 @@ import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.plus import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items-import androidx.compose.material3.*+import com.vayunmathur.library.ui.* import androidx.compose.runtime.* import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalContext
contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/AddAccountDialog.kt
diff --git a/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/AddAccountDialog.kt b/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/AddAccountDialog.ktindex 5d83cea8b4..75d97355b7 100644--- a/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/AddAccountDialog.kt+++ b/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/AddAccountDialog.kt@@ -1,10 +1,10 @@ package com.vayunmathur.contacts.ui.dialogs import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxWidth-import androidx.compose.material3.AlertDialog-import androidx.compose.material3.Text-import androidx.compose.material3.TextButton-import androidx.compose.material3.TextField+import com.vayunmathur.library.ui.AlertDialog+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TextButton+import com.vayunmathur.library.ui.TextField import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf
contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/AddToGroupDialog.kt
diff --git a/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/AddToGroupDialog.kt b/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/AddToGroupDialog.ktindex 8ac6d6fb1e..df8e2f39b1 100644--- a/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/AddToGroupDialog.kt+++ b/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/AddToGroupDialog.kt@@ -4,7 +4,7 @@ import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items-import androidx.compose.material3.*+import com.vayunmathur.library.ui.* import androidx.compose.runtime.* import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.compose.ui.Alignment
contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/EventDatePickerDialog.kt
diff --git a/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/EventDatePickerDialog.kt b/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/EventDatePickerDialog.ktindex 7bd555cd20..e43971d816 100644--- a/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/EventDatePickerDialog.kt+++ b/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/EventDatePickerDialog.kt@@ -7,7 +7,7 @@ import androidx.compose.foundation.pager.PagerState import androidx.compose.foundation.pager.VerticalPager import androidx.compose.foundation.pager.rememberPagerState import androidx.compose.foundation.shape.RoundedCornerShape-import androidx.compose.material3.*+import com.vayunmathur.library.ui.* import androidx.compose.runtime.* import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier
contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/EventDeleteConfirmDialog.kt
diff --git a/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/EventDeleteConfirmDialog.kt b/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/EventDeleteConfirmDialog.ktindex 2534aeaa06..118b888b19 100644--- a/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/EventDeleteConfirmDialog.kt+++ b/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/EventDeleteConfirmDialog.kt@@ -1,7 +1,7 @@ package com.vayunmathur.contacts.ui.dialogs-import androidx.compose.material3.AlertDialog-import androidx.compose.material3.Text-import androidx.compose.material3.TextButton+import com.vayunmathur.library.ui.AlertDialog+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TextButton import androidx.compose.runtime.Composable import androidx.compose.runtime.rememberCoroutineScope import androidx.compose.ui.res.stringResource
contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/ImportVcfDialog.kt
diff --git a/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/ImportVcfDialog.kt b/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/ImportVcfDialog.ktindex fd4f705a56..52f95bc42f 100644--- a/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/ImportVcfDialog.kt+++ b/contacts/src/main/java/com/vayunmathur/contacts/ui/dialogs/ImportVcfDialog.kt@@ -5,7 +5,7 @@ import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items-import androidx.compose.material3.*+import com.vayunmathur.library.ui.* import androidx.compose.runtime.* import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.compose.ui.Modifier
contacts/src/main/res/drawable/ic_launcher_foreground.xml
diff --git a/contacts/src/main/res/drawable/ic_launcher_foreground.xml b/contacts/src/main/res/drawable/ic_launcher_foreground.xmldeleted file mode 100644index d4ec2e9858..0000000000--- a/contacts/src/main/res/drawable/ic_launcher_foreground.xml+++ /dev/null@@ -1,15 +0,0 @@-<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">- <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="M480,480Q414,480 367,433Q320,386 320,320Q320,254 367,207Q414,160 480,160Q546,160 593,207Q640,254 640,320Q640,386 593,433Q546,480 480,480ZM160,720L160,688Q160,654 177.5,625.5Q195,597 224,582Q286,551 350,535.5Q414,520 480,520Q546,520 610,535.5Q674,551 736,582Q765,597 782.5,625.5Q800,654 800,688L800,720Q800,753 776.5,776.5Q753,800 720,800L240,800Q207,800 183.5,776.5Q160,753 160,720ZM240,720L720,720L720,688Q720,677 714.5,668Q709,659 700,654Q646,627 591,613.5Q536,600 480,600Q424,600 369,613.5Q314,627 260,654Q251,659 245.5,668Q240,677 240,688L240,720ZM480,400Q513,400 536.5,376.5Q560,353 560,320Q560,287 536.5,263.5Q513,240 480,240Q447,240 423.5,263.5Q400,287 400,320Q400,353 423.5,376.5Q447,400 480,400ZM480,320Q480,320 480,320Q480,320 480,320Q480,320 480,320Q480,320 480,320Q480,320 480,320Q480,320 480,320Q480,320 480,320Q480,320 480,320ZM480,720L480,720Q480,720 480,720Q480,720 480,720Q480,720 480,720Q480,720 480,720Q480,720 480,720Q480,720 480,720Q480,720 480,720Q480,720 480,720L480,720Z"/>- </group>-</vector>
education/build.gradle.kts
diff --git a/education/build.gradle.kts b/education/build.gradle.ktsindex e9a18b64fb..f3fcbdb049 100644--- a/education/build.gradle.kts+++ b/education/build.gradle.kts@@ -4,6 +4,10 @@ plugins { alias(libs.plugins.ksp) } +launcherIcon {+ symbol = "school"+}+ android { defaultConfig { applicationId = "com.vayunmathur.education"
education/src/main/java/com/vayunmathur/education/ui/BadgesPage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/BadgesPage.kt b/education/src/main/java/com/vayunmathur/education/ui/BadgesPage.ktindex 94622a1dff..4520751041 100644--- a/education/src/main/java/com/vayunmathur/education/ui/BadgesPage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/BadgesPage.kt@@ -9,14 +9,14 @@ import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items-import androidx.compose.material3.Card-import androidx.compose.material3.CardDefaults-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.LinearProgressIndicator-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.Card+import com.vayunmathur.library.ui.CardDefaults+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.LinearProgressIndicator+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.remember
education/src/main/java/com/vayunmathur/education/ui/Common.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/Common.kt b/education/src/main/java/com/vayunmathur/education/ui/Common.ktindex eeb00a3af7..531deb9b43 100644--- a/education/src/main/java/com/vayunmathur/education/ui/Common.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/Common.kt@@ -2,10 +2,10 @@ package com.vayunmathur.education.ui import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.padding-import androidx.compose.material3.AssistChip-import androidx.compose.material3.AssistChipDefaults-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Text+import com.vayunmathur.library.ui.AssistChip+import com.vayunmathur.library.ui.AssistChipDefaults+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.text.font.FontWeight
education/src/main/java/com/vayunmathur/education/ui/CoursePage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/CoursePage.kt b/education/src/main/java/com/vayunmathur/education/ui/CoursePage.ktindex d143a970be..4e2bd0f3b8 100644--- a/education/src/main/java/com/vayunmathur/education/ui/CoursePage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/CoursePage.kt@@ -9,13 +9,13 @@ import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items-import androidx.compose.material3.ElevatedCard-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.FilledTonalButton-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.ElevatedCard+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.FilledTonalButton+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.ui.Alignment
education/src/main/java/com/vayunmathur/education/ui/ExplorerCoursePage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/ExplorerCoursePage.kt b/education/src/main/java/com/vayunmathur/education/ui/ExplorerCoursePage.ktindex cdd9b448a7..b7b9204c9c 100644--- a/education/src/main/java/com/vayunmathur/education/ui/ExplorerCoursePage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/ExplorerCoursePage.kt@@ -14,14 +14,14 @@ import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.itemsIndexed import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.RoundedCornerShape-import androidx.compose.material3.Card-import androidx.compose.material3.CardDefaults-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.FilledTonalButton-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.Card+import com.vayunmathur.library.ui.CardDefaults+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.FilledTonalButton+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.ui.Alignment
education/src/main/java/com/vayunmathur/education/ui/ExplorerHomePage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/ExplorerHomePage.kt b/education/src/main/java/com/vayunmathur/education/ui/ExplorerHomePage.ktindex 748579bf25..b40836a049 100644--- a/education/src/main/java/com/vayunmathur/education/ui/ExplorerHomePage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/ExplorerHomePage.kt@@ -14,18 +14,16 @@ import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.RoundedCornerShape-import androidx.compose.material.icons.Icons-import androidx.compose.material.icons.filled.EmojiEvents-import androidx.compose.material3.Card-import androidx.compose.material3.CardDefaults-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.Icon-import androidx.compose.material3.IconButton-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.OutlinedTextField-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.Card+import com.vayunmathur.library.ui.CardDefaults+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.IconButton+import com.vayunmathur.library.ui.IconEmojiEvents+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.OutlinedTextField+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf@@ -80,7 +78,7 @@ fun ExplorerHomePage(backStack: NavBackStack<Route>, viewModel: EducationViewMod title = { Text(if (l.name.isBlank()) "Explore" else "Hi, ${l.name}! ๐") }, actions = { IconButton(onClick = { backStack.add(Route.Badges) }) {- Icon(Icons.Filled.EmojiEvents, "Badges")+ IconEmojiEvents() } IconButton(onClick = { backStack.add(Route.ParentGate) }) { IconSettings() } },
education/src/main/java/com/vayunmathur/education/ui/HomePage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/HomePage.kt b/education/src/main/java/com/vayunmathur/education/ui/HomePage.ktindex 6eadf6dc79..011c8f53e2 100644--- a/education/src/main/java/com/vayunmathur/education/ui/HomePage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/HomePage.kt@@ -9,17 +9,14 @@ import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items-import androidx.compose.material.icons.Icons-import androidx.compose.material.icons.filled.EmojiEvents-import androidx.compose.material3.ElevatedCard-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.Icon-import androidx.compose.material3.IconButton-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.OutlinedCard-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.ElevatedCard+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.IconButton+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.OutlinedCard+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.ui.Alignment@@ -30,6 +27,7 @@ import com.vayunmathur.education.Route import com.vayunmathur.education.content.ModuleType import com.vayunmathur.education.util.EducationViewModel import com.vayunmathur.library.ui.IconChevronRight+import com.vayunmathur.library.ui.IconEmojiEvents import com.vayunmathur.library.ui.IconSettings import com.vayunmathur.library.util.NavBackStack @@ -47,7 +45,7 @@ fun ScholarHomePage(backStack: NavBackStack<Route>, viewModel: EducationViewMode title = { Text(if (l.name.isBlank()) "Learn" else "Hi, ${l.name}") }, actions = { IconButton(onClick = { backStack.add(Route.Badges) }) {- Icon(Icons.Filled.EmojiEvents, "Badges")+ IconEmojiEvents() } IconButton(onClick = { openParentArea(backStack, viewModel) }) { IconSettings()
education/src/main/java/com/vayunmathur/education/ui/K2DragMatch.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/K2DragMatch.kt b/education/src/main/java/com/vayunmathur/education/ui/K2DragMatch.ktindex a864570495..b355a9b797 100644--- a/education/src/main/java/com/vayunmathur/education/ui/K2DragMatch.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/K2DragMatch.kt@@ -9,10 +9,10 @@ import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.offset import androidx.compose.foundation.layout.padding-import androidx.compose.material3.Card-import androidx.compose.material3.CardDefaults-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Text+import com.vayunmathur.library.ui.Card+import com.vayunmathur.library.ui.CardDefaults+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.mutableStateMapOf import androidx.compose.runtime.remember
education/src/main/java/com/vayunmathur/education/ui/K2HomePage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/K2HomePage.kt b/education/src/main/java/com/vayunmathur/education/ui/K2HomePage.ktindex ad46fb27b5..48b38fd1fe 100644--- a/education/src/main/java/com/vayunmathur/education/ui/K2HomePage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/K2HomePage.kt@@ -7,14 +7,14 @@ import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding-import androidx.compose.material3.Card-import androidx.compose.material3.CardDefaults-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.IconButton-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.Card+import com.vayunmathur.library.ui.CardDefaults+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.IconButton+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.getValue
education/src/main/java/com/vayunmathur/education/ui/K2LessonPage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/K2LessonPage.kt b/education/src/main/java/com/vayunmathur/education/ui/K2LessonPage.ktindex fe260bd655..6830594249 100644--- a/education/src/main/java/com/vayunmathur/education/ui/K2LessonPage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/K2LessonPage.kt@@ -6,13 +6,13 @@ import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding-import androidx.compose.material3.Card-import androidx.compose.material3.CardDefaults-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.Card+import com.vayunmathur.library.ui.CardDefaults+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.ui.Alignment
education/src/main/java/com/vayunmathur/education/ui/K2QuizPage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/K2QuizPage.kt b/education/src/main/java/com/vayunmathur/education/ui/K2QuizPage.ktindex 86da49b3b3..569a00c518 100644--- a/education/src/main/java/com/vayunmathur/education/ui/K2QuizPage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/K2QuizPage.kt@@ -13,14 +13,14 @@ import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding-import androidx.compose.material3.Card-import androidx.compose.material3.CardDefaults-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.IconButton-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.Card+import com.vayunmathur.library.ui.CardDefaults+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.IconButton+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.getValue
education/src/main/java/com/vayunmathur/education/ui/K2RewardPage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/K2RewardPage.kt b/education/src/main/java/com/vayunmathur/education/ui/K2RewardPage.ktindex 685e198096..3b92418887 100644--- a/education/src/main/java/com/vayunmathur/education/ui/K2RewardPage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/K2RewardPage.kt@@ -5,10 +5,10 @@ import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding-import androidx.compose.material3.Button-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.ui.Alignment
education/src/main/java/com/vayunmathur/education/ui/LessonPage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/LessonPage.kt b/education/src/main/java/com/vayunmathur/education/ui/LessonPage.ktindex 02000d32aa..189383ce65 100644--- a/education/src/main/java/com/vayunmathur/education/ui/LessonPage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/LessonPage.kt@@ -8,14 +8,14 @@ import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.verticalScroll-import androidx.compose.material3.Button-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.IconButton-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.OutlinedCard-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.IconButton+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.OutlinedCard+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier
education/src/main/java/com/vayunmathur/education/ui/ParentGatePage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/ParentGatePage.kt b/education/src/main/java/com/vayunmathur/education/ui/ParentGatePage.ktindex 15617b8063..9d4341c8a0 100644--- a/education/src/main/java/com/vayunmathur/education/ui/ParentGatePage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/ParentGatePage.kt@@ -6,12 +6,12 @@ import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.text.KeyboardOptions-import androidx.compose.material3.Button-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.OutlinedTextField-import androidx.compose.material3.Surface-import androidx.compose.material3.Text-import androidx.compose.material3.TextButton+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.OutlinedTextField+import com.vayunmathur.library.ui.Surface+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TextButton import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf
education/src/main/java/com/vayunmathur/education/ui/ParentPage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/ParentPage.kt b/education/src/main/java/com/vayunmathur/education/ui/ParentPage.ktindex 06f9275afd..b7751647ef 100644--- a/education/src/main/java/com/vayunmathur/education/ui/ParentPage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/ParentPage.kt@@ -8,24 +8,24 @@ import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.verticalScroll-import androidx.compose.material3.Button-import androidx.compose.material3.DatePicker-import androidx.compose.material3.DatePickerDialog-import androidx.compose.material3.DropdownMenuItem-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.ExposedDropdownMenuBox-import androidx.compose.material3.ExposedDropdownMenuDefaults-import androidx.compose.material3.ExposedDropdownMenuAnchorType-import androidx.compose.material3.HorizontalDivider-import androidx.compose.material3.IconButton-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.OutlinedButton-import androidx.compose.material3.OutlinedTextField-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TextButton-import androidx.compose.material3.TopAppBar-import androidx.compose.material3.rememberDatePickerState+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.DatePicker+import com.vayunmathur.library.ui.DatePickerDialog+import com.vayunmathur.library.ui.DropdownMenuItem+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.ExposedDropdownMenuBox+import com.vayunmathur.library.ui.ExposedDropdownMenuDefaults+import com.vayunmathur.library.ui.ExposedDropdownMenuAnchorType+import com.vayunmathur.library.ui.HorizontalDivider+import com.vayunmathur.library.ui.IconButton+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.OutlinedButton+import com.vayunmathur.library.ui.OutlinedTextField+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TextButton+import com.vayunmathur.library.ui.TopAppBar+import com.vayunmathur.library.ui.rememberDatePickerState import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf
education/src/main/java/com/vayunmathur/education/ui/QuizPage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/QuizPage.kt b/education/src/main/java/com/vayunmathur/education/ui/QuizPage.ktindex 1dbec151ec..b08b4250ef 100644--- a/education/src/main/java/com/vayunmathur/education/ui/QuizPage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/QuizPage.kt@@ -13,28 +13,24 @@ import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.selection.selectable import androidx.compose.foundation.selection.toggleable import androidx.compose.foundation.verticalScroll-import androidx.compose.material.icons.Icons-import androidx.compose.material.icons.filled.KeyboardArrowDown-import androidx.compose.material.icons.filled.KeyboardArrowUp-import androidx.compose.material3.Button-import androidx.compose.material3.Card-import androidx.compose.material3.CardDefaults-import androidx.compose.material3.Checkbox-import androidx.compose.material3.DropdownMenu-import androidx.compose.material3.DropdownMenuItem-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.Icon-import androidx.compose.material3.IconButton-import androidx.compose.material3.LinearProgressIndicator-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.OutlinedButton-import androidx.compose.material3.OutlinedCard-import androidx.compose.material3.OutlinedTextField-import androidx.compose.material3.RadioButton-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TextButton-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.Card+import com.vayunmathur.library.ui.CardDefaults+import com.vayunmathur.library.ui.Checkbox+import com.vayunmathur.library.ui.DropdownMenu+import com.vayunmathur.library.ui.DropdownMenuItem+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.IconButton+import com.vayunmathur.library.ui.LinearProgressIndicator+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.OutlinedButton+import com.vayunmathur.library.ui.OutlinedCard+import com.vayunmathur.library.ui.OutlinedTextField+import com.vayunmathur.library.ui.RadioButton+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TextButton+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.getValue@@ -70,6 +66,8 @@ import com.vayunmathur.education.content.TraceAnswer import com.vayunmathur.education.content.TracingQuestion import com.vayunmathur.education.content.isCorrect import com.vayunmathur.education.util.EducationViewModel+import com.vayunmathur.library.ui.IconKeyboardArrowDown+import com.vayunmathur.library.ui.IconKeyboardArrowUp import com.vayunmathur.library.ui.IconNavigation import com.vayunmathur.library.util.NavBackStack @@ -331,14 +329,14 @@ private fun OrderingInput(question: OrderingQuestion, enabled: Boolean, onAnswer val tmp = order[pos - 1]; order[pos - 1] = order[pos]; order[pos] = tmp publish() },- ) { Icon(Icons.Filled.KeyboardArrowUp, "Move up") }+ ) { IconKeyboardArrowUp() } IconButton( enabled = enabled && pos < order.lastIndex, onClick = { val tmp = order[pos + 1]; order[pos + 1] = order[pos]; order[pos] = tmp publish() },- ) { Icon(Icons.Filled.KeyboardArrowDown, "Move down") }+ ) { IconKeyboardArrowDown() } } } }
education/src/main/java/com/vayunmathur/education/ui/ResultsPage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/ResultsPage.kt b/education/src/main/java/com/vayunmathur/education/ui/ResultsPage.ktindex 9fb9985ae3..a52a2d47c1 100644--- a/education/src/main/java/com/vayunmathur/education/ui/ResultsPage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/ResultsPage.kt@@ -5,13 +5,13 @@ import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding-import androidx.compose.material3.Button-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.OutlinedButton-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.OutlinedButton+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.ui.Alignment
education/src/main/java/com/vayunmathur/education/ui/TracingCanvas.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/TracingCanvas.kt b/education/src/main/java/com/vayunmathur/education/ui/TracingCanvas.ktindex 3ee3899eea..7fae3f1385 100644--- a/education/src/main/java/com/vayunmathur/education/ui/TracingCanvas.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/TracingCanvas.kt@@ -22,8 +22,8 @@ import androidx.compose.ui.input.pointer.pointerInput import androidx.compose.ui.text.TextStyle import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.sp-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Text+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Text import kotlin.math.hypot /**
education/src/main/java/com/vayunmathur/education/ui/UnitPage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/UnitPage.kt b/education/src/main/java/com/vayunmathur/education/ui/UnitPage.ktindex e820fc8168..6296b57d02 100644--- a/education/src/main/java/com/vayunmathur/education/ui/UnitPage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/UnitPage.kt@@ -10,13 +10,13 @@ import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items-import androidx.compose.material3.ElevatedCard-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.FilledTonalButton-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.ElevatedCard+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.FilledTonalButton+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.ui.Alignment
education/src/main/java/com/vayunmathur/education/ui/VideoPlayerPage.kt
diff --git a/education/src/main/java/com/vayunmathur/education/ui/VideoPlayerPage.kt b/education/src/main/java/com/vayunmathur/education/ui/VideoPlayerPage.ktindex 94c17660de..cfe3c31af8 100644--- a/education/src/main/java/com/vayunmathur/education/ui/VideoPlayerPage.kt+++ b/education/src/main/java/com/vayunmathur/education/ui/VideoPlayerPage.kt@@ -11,14 +11,14 @@ import androidx.compose.foundation.layout.aspectRatio import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding-import androidx.compose.material3.Button-import androidx.compose.material3.CircularProgressIndicator-import androidx.compose.material3.ExperimentalMaterial3Api-import androidx.compose.material3.MaterialTheme-import androidx.compose.material3.Scaffold-import androidx.compose.material3.Slider-import androidx.compose.material3.Text-import androidx.compose.material3.TopAppBar+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.CircularProgressIndicator+import com.vayunmathur.library.ui.ExperimentalMaterial3Api+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.Slider+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.runtime.DisposableEffect import androidx.compose.runtime.LaunchedEffect
education/src/main/res/drawable/ic_launcher_foreground.xml
diff --git a/education/src/main/res/drawable/ic_launcher_foreground.xml b/education/src/main/res/drawable/ic_launcher_foreground.xmldeleted file mode 100644index 827107df3b..0000000000--- a/education/src/main/res/drawable/ic_launcher_foreground.xml+++ /dev/null@@ -1,15 +0,0 @@-<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">- <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="M480,840L200,680L200,440L40,360L480,120L920,360L920,680L840,680L840,404L760,440L760,680L480,840ZM480,568L754,420L480,272L206,420L480,568ZM480,749L680,641L680,502L480,608L280,502L280,641L480,749Z"/>- </group>-</vector>
email/build.gradle.kts
diff --git a/email/build.gradle.kts b/email/build.gradle.ktsindex 61a22ac738..c853485afb 100644--- a/email/build.gradle.kts+++ b/email/build.gradle.kts@@ -3,6 +3,10 @@ plugins { id("common-conventions-metadata") } +launcherIcon {+ symbol = "mail"+}+ android { namespace = "com.vayunmathur.email" defaultConfig {
email/src/main/java/com/vayunmathur/email/MainActivity.kt
diff --git a/email/src/main/java/com/vayunmathur/email/MainActivity.kt b/email/src/main/java/com/vayunmathur/email/MainActivity.ktindex 06d7354e8c..f335538444 100644--- a/email/src/main/java/com/vayunmathur/email/MainActivity.kt+++ b/email/src/main/java/com/vayunmathur/email/MainActivity.kt@@ -17,7 +17,7 @@ import androidx.compose.foundation.verticalScroll import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items-import androidx.compose.material3.*+import com.vayunmathur.library.ui.* import androidx.compose.runtime.* import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.compose.ui.Alignment@@ -452,9 +452,9 @@ fun MessageListScreen( val result = snackbarHostState.showSnackbar( message = "Message deleted", actionLabel = "Undo",- duration = androidx.compose.material3.SnackbarDuration.Short,+ duration = com.vayunmathur.library.ui.SnackbarDuration.Short, )- if (result != androidx.compose.material3.SnackbarResult.ActionPerformed) {+ if (result != com.vayunmathur.library.ui.SnackbarResult.ActionPerformed) { viewModel.deleteMessage(msg.accountEmail, msg.folderName, msg.id) } pendingDelete = null@@ -563,9 +563,9 @@ fun MessageListScreen( modifier = Modifier.fillMaxWidth().padding(horizontal = 12.dp), horizontalArrangement = Arrangement.spacedBy(8.dp), ) {- androidx.compose.material3.FilterChip(selected = msgFilter == 0, onClick = { msgFilter = 0 }, label = { Text("All") })- androidx.compose.material3.FilterChip(selected = msgFilter == 1, onClick = { msgFilter = 1 }, label = { Text("Unread") })- androidx.compose.material3.FilterChip(selected = msgFilter == 2, onClick = { msgFilter = 2 }, label = { Text("Attachments") })+ com.vayunmathur.library.ui.FilterChip(selected = msgFilter == 0, onClick = { msgFilter = 0 }, label = { Text("All") })+ com.vayunmathur.library.ui.FilterChip(selected = msgFilter == 1, onClick = { msgFilter = 1 }, label = { Text("Unread") })+ com.vayunmathur.library.ui.FilterChip(selected = msgFilter == 2, onClick = { msgFilter = 2 }, label = { Text("Attachments") }) } val filteredMessages by remember { derivedStateOf {@@ -576,7 +576,7 @@ fun MessageListScreen( } } }- androidx.compose.material3.pulltorefresh.PullToRefreshBox(+ com.vayunmathur.library.ui.PullToRefreshBox( isRefreshing = isSyncing, onRefresh = { viewModel.refresh(context) }, modifier = Modifier.fillMaxSize(),@@ -628,11 +628,11 @@ fun MessageListScreen( // repeated read/unread swipes toggle the CURRENT persisted state // (the confirmValueChange lambda is captured once by the state). val currentMessage by rememberUpdatedState(message)- val dismissState = androidx.compose.material3.rememberSwipeToDismissBoxState(+ val dismissState = com.vayunmathur.library.ui.rememberSwipeToDismissBoxState( confirmValueChange = { value -> when (value) {- androidx.compose.material3.SwipeToDismissBoxValue.EndToStart -> { pendingDelete = currentMessage; true }- androidx.compose.material3.SwipeToDismissBoxValue.StartToEnd -> {+ com.vayunmathur.library.ui.SwipeToDismissBoxValue.EndToStart -> { pendingDelete = currentMessage; true }+ com.vayunmathur.library.ui.SwipeToDismissBoxValue.StartToEnd -> { viewModel.markAsRead(currentMessage.accountEmail, currentMessage.folderName, currentMessage.id, !currentMessage.isRead) false }@@ -640,18 +640,18 @@ fun MessageListScreen( } } )- androidx.compose.material3.SwipeToDismissBox(+ com.vayunmathur.library.ui.SwipeToDismissBox( state = dismissState, backgroundContent = { // Only show a background icon while an active swipe is in // progress in that direction โ never when settled. when (dismissState.dismissDirection) {- androidx.compose.material3.SwipeToDismissBoxValue.EndToStart ->+ com.vayunmathur.library.ui.SwipeToDismissBoxValue.EndToStart -> Box( modifier = Modifier.fillMaxSize().padding(horizontal = 20.dp), contentAlignment = Alignment.CenterEnd, ) { com.vayunmathur.library.ui.IconDelete() }- androidx.compose.material3.SwipeToDismissBoxValue.StartToEnd ->+ com.vayunmathur.library.ui.SwipeToDismissBoxValue.StartToEnd -> Box( modifier = Modifier.fillMaxSize().padding(horizontal = 20.dp), contentAlignment = Alignment.CenterStart,
email/src/main/java/com/vayunmathur/email/ui/AddAccountScreen.kt
diff --git a/email/src/main/java/com/vayunmathur/email/ui/AddAccountScreen.kt b/email/src/main/java/com/vayunmathur/email/ui/AddAccountScreen.ktindex 9945b727d2..b2e65b7091 100644--- a/email/src/main/java/com/vayunmathur/email/ui/AddAccountScreen.kt+++ b/email/src/main/java/com/vayunmathur/email/ui/AddAccountScreen.kt@@ -10,7 +10,7 @@ import androidx.compose.foundation.layout.* import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.text.KeyboardOptions import androidx.compose.foundation.verticalScroll-import androidx.compose.material3.*+import com.vayunmathur.library.ui.* import androidx.compose.runtime.* import androidx.compose.runtime.saveable.rememberSaveable import androidx.compose.ui.Alignment
email/src/main/res/drawable/ic_launcher_foreground.xml
diff --git a/email/src/main/res/drawable/ic_launcher_foreground.xml b/email/src/main/res/drawable/ic_launcher_foreground.xmldeleted file mode 100644index ab36963ee1..0000000000--- a/email/src/main/res/drawable/ic_launcher_foreground.xml+++ /dev/null@@ -1,30 +0,0 @@-<!--- ~ Copyright (C) 2026 The Android Open Source Project- ~- ~ Licensed under the Apache License, Version 2.0 (the "License");- ~ you may not use this file except in compliance with the License.- ~ You may obtain a copy of the License at- ~- ~ http://www.apache.org/licenses/LICENSE-2.0- ~- ~ Unless required by applicable law or agreed to in writing, software- ~ distributed under the License is distributed on an "AS IS" BASIS,- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- ~ See the License for the specific language governing permissions and- ~ limitations under the License.- -->-<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">- <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="M280,680Q247,680 223.5,656.5Q200,633 200,600L200,200Q200,167 223.5,143.5Q247,120 280,120L840,120Q873,120 896.5,143.5Q920,167 920,200L920,600Q920,633 896.5,656.5Q873,680 840,680L280,680ZM560,492L280,297L280,600Q280,600 280,600Q280,600 280,600L840,600Q840,600 840,600Q840,600 840,600L840,297L560,492ZM560,394L840,200Q840,200 840,200Q840,200 840,200L280,200Q280,200 280,200Q280,200 280,200L560,394ZM120,840Q87,840 63.5,816.5Q40,793 40,760L40,260L120,260L120,760Q120,760 120,760Q120,760 120,760L780,760L780,840L120,840ZM840,294Q840,266 840,247Q840,228 840,200Q840,200 840,200Q840,200 840,200L280,200Q280,200 280,200Q280,200 280,200Q280,228 280,247Q280,266 280,294L280,200Q280,200 280,200Q280,200 280,200L840,200Q840,200 840,200Q840,200 840,200L840,294Z"/>- </group>-</vector>
everysync/build.gradle.kts
diff --git a/everysync/build.gradle.kts b/everysync/build.gradle.ktsindex 229d5e31bb..dfe22fdef1 100644--- a/everysync/build.gradle.kts+++ b/everysync/build.gradle.kts@@ -4,6 +4,10 @@ plugins { alias(libs.plugins.ksp) } +launcherIcon {+ symbol = "sync"+}+ android { defaultConfig { applicationId = "com.vayunmathur.everysync"@@ -14,7 +18,7 @@ android { // No client secret is ever
Diff truncated.