more refactors
- Commit
5d1604c9bcf8f19778657ae3160d5ba7cdc73f87- Author
- Vayun Mathur <[email protected]>
- When
- 2026-07-17 18:13 UTC (4 months ago)
- Parents
05ea576
Diff
.github/workflows/android.yml
diff --git a/.github/workflows/android.yml b/.github/workflows/android.ymlindex dac34bd5a3..afa0caf16e 100644--- a/.github/workflows/android.yml+++ b/.github/workflows/android.yml@@ -91,18 +91,42 @@ jobs: - name: Prepare F-Droid Metadata run: |+ # Play/F-Droid listing icons are generated here (only in CI) from each app's+ # launcherIcon symbol + ic_launcher_background, instead of committing a+ # per-app ic_launcher-playstore.png. Mirrors GenerateLauncherIconTask: the+ # outlined Material Symbol glyph (black), scaled within a solid background.+ sudo apt-get update -qq+ sudo apt-get install -y -qq librsvg2-bin imagemagick >/dev/null+ MATERIAL_SYMBOLS_REF="819d78680a849ceef4c78f863d8753e3160b7c89"+ DEFAULT_BG="#FFFFFF"+ for dir in ${{ env.module_dirs }}; do module_key=$(echo $dir | sed 's|/|-|g') target_path="$dir/src/main/play/listings/en-US"- + mkdir -p "$target_path/graphics/icon" mkdir -p "$target_path/graphics/phone-screenshots"- - icon_source="$dir/src/main/ic_launcher-playstore.png"- if [ -f "$icon_source" ]; then- cp "$icon_source" "$target_path/graphics/icon/icon.png"++ # --- Generate the 512x512 Play Store icon ---+ symbol=$(grep -oE 'symbol[[:space:]]*=[[:space:]]*"[^"]+"' "$dir/build.gradle.kts" 2>/dev/null | head -1 | sed -E 's/.*"([^"]+)".*/\1/')+ if [ -n "$symbol" ]; then+ scale=$(grep -oE 'scale[[:space:]]*=[[:space:]]*[0-9.]+' "$dir/build.gradle.kts" 2>/dev/null | head -1 | grep -oE '[0-9.]+')+ scale=${scale:-0.58}+ bg=$(grep -rhoE '<color name="ic_launcher_background">#[0-9A-Fa-f]+' "$dir/src/main/res" 2>/dev/null | head -1 | grep -oE '#[0-9A-Fa-f]+')+ bg=${bg:-$DEFAULT_BG}+ glyph_px=$(awk "BEGIN{printf \"%d\", 512*$scale}")+ svg_url="https://raw.githubusercontent.com/google/material-design-icons/$MATERIAL_SYMBOLS_REF/symbols/web/$symbol/materialsymbolsoutlined/${symbol}_24px.svg"+ if curl -sf "$svg_url" -o /tmp/glyph.svg; then+ rsvg-convert -w "$glyph_px" -h "$glyph_px" /tmp/glyph.svg -o /tmp/glyph.png+ convert -size 512x512 "xc:$bg" /tmp/glyph.png -gravity center -composite "$target_path/graphics/icon/icon.png"+ echo "Generated icon for $dir ($symbol on $bg, scale $scale)"+ else+ echo "WARNING: could not fetch Material Symbol '$symbol' for $dir"+ fi+ else+ echo "WARNING: no launcherIcon symbol found for $dir" fi- + screenshot_dir="metadata_data/photos/${module_key}" screenshot_file="metadata_data/photos/${module_key}.png" if [ -d "$screenshot_dir" ]; then@@ -110,7 +134,7 @@ jobs: elif [ -f "$screenshot_file" ]; then cp "$screenshot_file" "$target_path/graphics/phone-screenshots/1.png" fi- + metadata_src="metadata_data/${module_key}.md" if [ -f "$metadata_src" ]; then head -n 1 "$metadata_src" > "$target_path/short-description.txt"
build-logic/metadataIconTest/com/vayunmathur/metadata/PlaystoreIconRenderer.kt
diff --git a/build-logic/metadataIconTest/com/vayunmathur/metadata/PlaystoreIconRenderer.kt b/build-logic/metadataIconTest/com/vayunmathur/metadata/PlaystoreIconRenderer.ktdeleted file mode 100644index 29602ea64f..0000000000--- a/build-logic/metadataIconTest/com/vayunmathur/metadata/PlaystoreIconRenderer.kt+++ /dev/null@@ -1,58 +0,0 @@-package com.vayunmathur.metadata--import android.graphics.Bitmap-import android.graphics.Canvas-import android.graphics.drawable.AdaptiveIconDrawable-import androidx.test.ext.junit.runners.AndroidJUnit4-import androidx.test.platform.app.InstrumentationRegistry-import org.junit.Test-import org.junit.runner.RunWith-import java.io.File--/**- * Renders the app's own launcher icon (the adaptive `ic_launcher.xml`) to a 512x512- * Play Store PNG on-device. Adaptive icons reference vectors/colors that can't easily be- * rasterized on the host, so we composite the background + foreground layers here where- * the platform can inflate them.- *- * This source set is shared into every module's androidTest by the- * `common-conventions-metadata` plugin, so it runs as part of every `:module:metadata`.- * The task then pulls the PNG into `<module>/src/main/ic_launcher-playstore.png`.- */-@RunWith(AndroidJUnit4::class)-class PlaystoreIconRenderer {-- @Test- fun renderPlaystoreIcon() {- val ctx = InstrumentationRegistry.getInstrumentation().targetContext- val size = 512- val icon = ctx.packageManager.getApplicationIcon(ctx.packageName)-- val bmp = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888)- val canvas = Canvas(bmp)- if (icon is AdaptiveIconDrawable) {- // Background fills the whole square.- icon.background?.apply { setBounds(0, 0, size, size); draw(canvas) }- // Adaptive-icon foregrounds reserve an ~18dp safe-zone margin on each side- // of the 108dp layer (real content lives in the center 72dp). Scale the- // foreground up so that safe zone fills the frame — otherwise the glyph- // renders small with lots of padding. 108/72 = 1.5x, centered.- val inset = (size * 0.25f).toInt()- icon.foreground?.apply {- setBounds(-inset, -inset, size + inset, size + inset)- draw(canvas)- }- } else {- icon.setBounds(0, 0, size, size)- icon.draw(canvas)- }-- val dir = File(ctx.getExternalFilesDir(null), "metadata_icon").apply {- deleteRecursively()- mkdirs()- }- File(dir, "ic_launcher-playstore.png").outputStream().use {- bmp.compress(Bitmap.CompressFormat.PNG, 100, it)- }- }-}
build-logic/shared-res/resources.properties
diff --git a/calendar/src/main/res/resources.properties b/build-logic/shared-res/resources.propertiessimilarity index 100%rename from calendar/src/main/res/resources.propertiesrename to build-logic/shared-res/resources.properties
build-logic/src/main/kotlin/LauncherIconGen.kt
diff --git a/build-logic/src/main/kotlin/LauncherIconGen.kt b/build-logic/src/main/kotlin/LauncherIconGen.ktindex 262e0d434c..a21f4043ea 100644--- a/build-logic/src/main/kotlin/LauncherIconGen.kt+++ b/build-logic/src/main/kotlin/LauncherIconGen.kt@@ -62,6 +62,13 @@ abstract class GenerateLauncherIconTask : DefaultTask() { val drawableDir = outputDir.get().asFile.resolve("drawable").apply { mkdirs() } drawableDir.resolve("ic_launcher_foreground.xml").writeText(wrap(pathData))++ // Emit the adaptive-icon wrapper too, so no ic_launcher.xml is committed per app.+ // It references the generated foreground, the standard monochrome layer, and the+ // per-app @color/ic_launcher_background (still declared in each app's values).+ val mipmapDir = outputDir.get().asFile.resolve("mipmap-anydpi-v26").apply { mkdirs() }+ mipmapDir.resolve("ic_launcher.xml").writeText(ADAPTIVE_ICON)+ mipmapDir.resolve("ic_launcher_round.xml").writeText(ADAPTIVE_ICON) } private fun fetchRawSymbol(sym: String, gitRef: String): String {@@ -119,5 +126,14 @@ abstract class GenerateLauncherIconTask : DefaultTask() { private companion object { const val VIEWPORT = 960.0 val PATH_DATA = Regex("""android:pathData="([^"]*)"""")+ val ADAPTIVE_ICON = """+ |<?xml version="1.0" encoding="utf-8"?>+ |<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">+ | <background android:drawable="@color/ic_launcher_background"/>+ | <foreground android:drawable="@drawable/ic_launcher_foreground"/>+ | <monochrome android:drawable="@drawable/ic_launcher_foreground"/>+ |</adaptive-icon>+ |+ """.trimMargin() } }
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 0fcf670a42..994daa07ec 100644--- a/build-logic/src/main/kotlin/common-conventions-app.gradle.kts+++ b/build-logic/src/main/kotlin/common-conventions-app.gradle.kts@@ -71,6 +71,12 @@ configure<com.android.build.api.dsl.ApplicationExtension> { generateLocaleConfig = true } + // Every app declares the same res/resources.properties (unqualifiedResLocale) for+ // per-app locale config. Share a single committed copy instead of one file per app.+ // (Generated res dirs are NOT scanned by extractSupportedLocales, so this must be a+ // real res source directory.)+ sourceSets.getByName("main").res.srcDir(File(rootDir, "build-logic/shared-res"))+ ndkVersion = "29.0.14206865" defaultConfig {
build-logic/src/main/kotlin/common-conventions-metadata.gradle.kts
diff --git a/build-logic/src/main/kotlin/common-conventions-metadata.gradle.kts b/build-logic/src/main/kotlin/common-conventions-metadata.gradle.ktsindex e56a13f6f4..4f6d967c5c 100644--- a/build-logic/src/main/kotlin/common-conventions-metadata.gradle.kts+++ b/build-logic/src/main/kotlin/common-conventions-metadata.gradle.kts@@ -56,9 +56,6 @@ configure<ApplicationExtension> { defaultConfig { testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" }- // Shared androidTest source: PlaystoreIconRenderer, which renders each app's- // adaptive launcher icon to a 512x512 Play Store PNG during the metadata run.- sourceSets.getByName("androidTest").kotlin.directories.add(File(rootDir, "build-logic/metadataIconTest").absolutePath) } dependencies {@@ -108,9 +105,7 @@ afterEvaluate { val adb = resolveAdb() val runner = "$appId.test/androidx.test.runner.AndroidJUnitRunner" val deviceDir = "/sdcard/Android/data/$appId/files/metadata_screenshots"- val iconDeviceFile = "/sdcard/Android/data/$appId/files/metadata_icon/ic_launcher-playstore.png" val out = screenshotsOut.absolutePath- val srcMainIcon = File(projectDir, "src/main/ic_launcher-playstore.png").absolutePath // Grant the declared permissions/appops before launch (so first-run system // prompts don't hijack the screenshots), switch the device to night mode so@@ -130,8 +125,6 @@ afterEvaluate { lines += """rm -rf "$out"""" lines += """mkdir -p "$out"""" lines += """"$adb" pull "$deviceDir/." "$out" || true"""- // Also pull the rendered 512x512 Play Store icon into the module's src/main.- lines += """"$adb" pull "$iconDeviceFile" "$srcMainIcon" || true""" lines += """"$adb" shell cmd uimode night no || true""" lines += """echo "Metadata screenshots written to $out"""" val script = lines.joinToString("\n")
calendar/src/main/ic_launcher-playstore.png
diff --git a/calendar/src/main/ic_launcher-playstore.png b/calendar/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 6d61e7fe3d..0000000000Binary files a/calendar/src/main/ic_launcher-playstore.png and /dev/null differ
calendar/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/calendar/src/main/res/mipmap-anydpi/ic_launcher.xml b/calendar/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index ef49c99170..0000000000--- a/calendar/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
camera/build.gradle.kts
diff --git a/camera/build.gradle.kts b/camera/build.gradle.ktsindex ed859e010e..d21e753524 100644--- a/camera/build.gradle.kts+++ b/camera/build.gradle.kts@@ -26,5 +26,5 @@ dependencies { implementation(libs.androidx.exifinterface) implementation(libs.zxing.core) implementation("com.google.mediapipe:tasks-vision:0.10.14")- implementation("org.opencv:opencv:4.10.0")+ implementation("com.quickbirdstudios:opencv:4.5.3.0") }
camera/src/main/ic_launcher-playstore.png
diff --git a/camera/src/main/ic_launcher-playstore.png b/camera/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 97644335c4..0000000000Binary files a/camera/src/main/ic_launcher-playstore.png and /dev/null differ
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 56d6d3788a..8347e5da66 100644--- a/camera/src/main/java/com/vayunmathur/camera/ui/CameraScreen.kt+++ b/camera/src/main/java/com/vayunmathur/camera/ui/CameraScreen.kt@@ -72,6 +72,7 @@ import com.vayunmathur.library.ui.IconFlashlight import com.vayunmathur.library.ui.IconFlipCamera import com.vayunmathur.library.ui.IconGrid import com.vayunmathur.library.ui.IconIso+import com.vayunmathur.library.ui.IconLightbulb import com.vayunmathur.library.ui.IconMic import com.vayunmathur.library.ui.IconMicOff import com.vayunmathur.library.ui.IconPause@@ -79,6 +80,7 @@ import com.vayunmathur.library.ui.IconPhotoLibrary import com.vayunmathur.library.ui.IconPlay import com.vayunmathur.library.ui.IconSunny import com.vayunmathur.library.ui.IconTimer+import com.vayunmathur.library.ui.IconToolsLevel import com.vayunmathur.library.ui.IconVideoCamera import com.vayunmathur.library.ui.IconSettings import com.vayunmathur.library.ui.IconButton@@ -207,7 +209,7 @@ private enum class CameraSetting { } /** Which camera pipeline drives the preview for the current mode. */-private enum class SessionKind { PHOTO, HIGH_SPEED, VIDEO }+private enum class SessionKind { PHOTO, PANORAMA, HIGH_SPEED, VIDEO } private fun Modifier.selectedPill( selected: Boolean,@@ -263,9 +265,11 @@ fun CameraScreen( val isPhotoType = cameraMode in listOf(CameraMode.PHOTO, CameraMode.PORTRAIT, CameraMode.PANORAMA, CameraMode.PHOTOSPHERE) val isSloMo = cameraMode == CameraMode.SLOW_MO val isVideoType = cameraMode == CameraMode.VIDEO || cameraMode == CameraMode.TIMELAPSE || cameraMode == CameraMode.CINEMATIC+ val isPanoType = cameraMode == CameraMode.PANORAMA || cameraMode == CameraMode.PHOTOSPHERE val sessionKind = when { isSloMo -> SessionKind.HIGH_SPEED isVideoType -> SessionKind.VIDEO+ isPanoType -> SessionKind.PANORAMA else -> SessionKind.PHOTO } val highSpeedActive by viewModel.highSpeedActive.collectAsState()@@ -417,6 +421,7 @@ fun CameraScreen( when (sessionKind) { SessionKind.HIGH_SPEED -> viewModel.setupHighSpeedSession() SessionKind.VIDEO -> viewModel.setupVideoSession()+ SessionKind.PANORAMA -> viewModel.setupPanoramaSession() SessionKind.PHOTO -> viewModel.setupPhotoSession() } try {@@ -673,7 +678,7 @@ fun CameraScreen( CameraSetting.WARMTH -> HorizontalSettingSlider( value = warmth, onValueChange = { viewModel.setWarmth(it) },- icon = { m, c -> Icon(painterResource(R.drawable.warmth_24px), null, m, c) },+ icon = { m, c -> IconLightbulb(m, c) }, label = "Warmth" ) CameraSetting.EXPOSURE_TIME -> ExposureTimeBar(@@ -908,11 +913,9 @@ private fun TopBar( .size(40.dp) .background(levelBg, CircleShape) ) {- Icon(- painterResource(R.drawable.level_24px),- contentDescription = stringResource(R.string.level),- tint = Color.White,- modifier = Modifier.size(22.dp).rotate(iconRotation)+ IconToolsLevel(+ Modifier.size(22.dp).rotate(iconRotation),+ Color.White ) } @@ -1098,7 +1101,7 @@ private fun SettingsButtonRow( val settings = buildList<Pair<CameraSetting, @Composable (Modifier, Color) -> Unit>> { add(CameraSetting.BRIGHTNESS to { m, c -> IconSunny(m, c) }) add(CameraSetting.SHADOWS to { m, c -> IconContrast(m, c) })- add(CameraSetting.WARMTH to { m, c -> Icon(painterResource(R.drawable.warmth_24px), null, m, c) })+ add(CameraSetting.WARMTH to { m, c -> IconLightbulb(m, c) }) add(CameraSetting.EXPOSURE_TIME to { m, c -> IconTimer(m, c) }) if (cameraMode == CameraMode.PHOTO) { add(CameraSetting.ISO to { m, c -> IconIso(m, c) })
camera/src/main/java/com/vayunmathur/camera/util/CameraViewModel.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/util/CameraViewModel.kt b/camera/src/main/java/com/vayunmathur/camera/util/CameraViewModel.ktindex 366dfdbdff..d91fde5033 100644--- a/camera/src/main/java/com/vayunmathur/camera/util/CameraViewModel.kt+++ b/camera/src/main/java/com/vayunmathur/camera/util/CameraViewModel.kt@@ -902,6 +902,64 @@ class CameraViewModel(private val app: Application) : AndroidViewModel(app) { } } + /**+ * Binds a lean Preview + high-resolution ImageAnalysis session for the+ * panorama and photo-sphere modes. These sweep off the analysis stream and+ * never use ImageCapture, so dropping the capture use case frees the device's+ * stream-config budget to grant a much sharper (~1080p) analysis stream than+ * the 3-stream photo session can — the dominant lever on panorama quality.+ */+ suspend fun setupPanoramaSession(): Boolean {+ return try {+ val provider = ProcessCameraProvider.awaitInstance(app)+ cameraProvider = provider+ provider.unbindAll()++ val selector = CameraSelector.Builder()+ .requireLensFacing(_lensFacing.value)+ .build()++ val previewBuilder = Preview.Builder()+ val preview = previewBuilder.build()+ preview.setSurfaceProvider { request -> _surfaceRequest.value = request }++ val owner = ManualLifecycleOwner()+ owner.start()+ sessionLifecycleOwner = owner++ // Target ~1080p for the analysis stream: a large jump over the default+ // ~VGA analysis size, while bounding per-frame memory (the sphere sweep+ // holds ~40 frames until stitch).+ val analysisSelector = ResolutionSelector.Builder()+ .setResolutionStrategy(+ ResolutionStrategy(+ android.util.Size(1920, 1080),+ ResolutionStrategy.FALLBACK_RULE_CLOSEST_HIGHER_THEN_LOWER+ )+ )+ .build()+ val analysis = ImageAnalysis.Builder()+ .setBackpressureStrategy(ImageAnalysis.STRATEGY_KEEP_ONLY_LATEST)+ .setResolutionSelector(analysisSelector)+ .build()+ imageAnalysis = analysis+ // No ImageCapture in this session.+ imageCapture = null++ boundCamera = provider.bindToLifecycle(owner, selector, preview, analysis)++ boundCamera?.cameraInfo?.zoomState?.value?.let {+ updateZoomLevels(it.minZoomRatio, it.maxZoomRatio)+ _zoomRatio.value = it.zoomRatio+ }+ _photoSessionActive.value = true+ true+ } catch (e: Exception) {+ Log.e("PhotoSession", "Failed to set up panorama session", e)+ false+ }+ }+ /** Reads the bound sensor's ISO range → stop list for the manual ISO control. */ private fun readManualControlRanges() { val cam = boundCamera ?: return
camera/src/main/java/com/vayunmathur/camera/util/PanoramaEngine.kt
diff --git a/camera/src/main/java/com/vayunmathur/camera/util/PanoramaEngine.kt b/camera/src/main/java/com/vayunmathur/camera/util/PanoramaEngine.ktindex c6d4239f41..3454a3b567 100644--- a/camera/src/main/java/com/vayunmathur/camera/util/PanoramaEngine.kt+++ b/camera/src/main/java/com/vayunmathur/camera/util/PanoramaEngine.kt@@ -15,10 +15,12 @@ import kotlinx.coroutines.withContext import org.opencv.android.OpenCVLoader import org.opencv.android.Utils import org.opencv.core.CvType+import org.opencv.core.Core import org.opencv.core.Mat import org.opencv.core.MatOfDMatch import org.opencv.core.MatOfKeyPoint import org.opencv.core.Rect+import org.opencv.core.Scalar import org.opencv.features2d.FlannBasedMatcher import org.opencv.features2d.SIFT import org.opencv.imgproc.Imgproc@@ -107,7 +109,11 @@ class PanoramaEngine(private val context: Context) : SensorEventListener { var onSweepComplete: (() -> Unit)? = null companion object {- private const val FRAME_SCALE = 0.75f+ // Panorama keeps frames at full analysis resolution; the sphere sweep+ // captures ~40 frames, so it is halved to bound peak memory. Cylindrical+ // warping resamples with bilinear interpolation either way.+ private const val PANO_FRAME_SCALE = 1.0f+ private const val SPHERE_FRAME_SCALE = 0.5f init { OpenCVLoader.initLocal()@@ -173,8 +179,9 @@ class PanoramaEngine(private val context: Context) : SensorEventListener { private fun captureFrame() { val frame = latestFrame ?: return- val w = (frame.width * FRAME_SCALE).toInt()- val h = (frame.height * FRAME_SCALE).toInt()+ val scale = if (sphereMode) SPHERE_FRAME_SCALE else PANO_FRAME_SCALE+ val w = (frame.width * scale).toInt()+ val h = (frame.height * scale).toInt() val scaled = Bitmap.createScaledBitmap(frame, w, h, true) val rotMatrix = Matrix().apply { postRotate(90f) } val rotated = Bitmap.createBitmap(scaled, 0, 0, scaled.width, scaled.height, rotMatrix, true)@@ -286,26 +293,56 @@ class PanoramaEngine(private val context: Context) : SensorEventListener { return (width / 2.0) / Math.tan(Math.toRadians(hfovDegrees / 2.0)) } + /**+ * Estimates focal length in pixels from the recorded gyro yaw between+ * consecutive frames and the feature translation measured on the raw frames:+ * a camera rotation of dθ shifts image content by ≈ f·tan(dθ). Uses the+ * median across frame pairs; returns null when there isn't enough motion or+ * feature signal so the caller can fall back to a nominal-FOV estimate.+ */+ private fun estimateFocalFromMotion(mats: List<Mat>, sift: SIFT, matcher: FlannBasedMatcher): Double? {+ if (frameOrientations.size != mats.size) return null+ val focals = mutableListOf<Double>()+ for (i in 1 until mats.size) {+ val dThetaDeg = wrapDegrees(frameOrientations[i].first - frameOrientations[i - 1].first)+ val dTheta = Math.toRadians(Math.abs(dThetaDeg).toDouble())+ if (dTheta < Math.toRadians(3.0)) continue+ val trans = findTranslation(mats[i - 1], mats[i], sift, matcher) ?: continue+ val dx = Math.abs(trans.first).toDouble()+ if (dx < 2.0) continue+ focals.add(dx / Math.tan(dTheta))+ }+ if (focals.size < 2) return null+ focals.sort()+ return focals[focals.size / 2]+ }+ private fun projectCylindrical(src: Mat, f: Double): Mat { val h = src.rows() val w = src.cols() val cx = w / 2.0 val cy = h / 2.0- val dst = Mat.zeros(h, w, src.type())+ // Build float remap tables and let OpenCV resample with bilinear+ // interpolation — sharp, artifact-free, and far faster than the previous+ // per-pixel nearest-neighbour copy.+ val mapX = Mat(h, w, CvType.CV_32FC1)+ val mapY = Mat(h, w, CvType.CV_32FC1)+ val rowX = FloatArray(w)+ val rowY = FloatArray(w) for (y in 0 until h) {+ val hNorm = (y - cy) / f for (x in 0 until w) { val theta = (x - cx) / f- val hNorm = (y - cy) / f- val srcX = f * Math.tan(theta) + cx- val srcY = hNorm * (1.0 / Math.cos(theta)) * f + cy- val sx = srcX.toInt()- val sy = srcY.toInt()- if (sx in 0 until w && sy in 0 until h) {- val pixel = src.get(sy, sx)- if (pixel != null) dst.put(y, x, *pixel)- }+ rowX[x] = (f * Math.tan(theta) + cx).toFloat()+ rowY[x] = (hNorm * (1.0 / Math.cos(theta)) * f + cy).toFloat() }+ mapX.put(y, 0, rowX)+ mapY.put(y, 0, rowY) }+ val dst = Mat.zeros(h, w, src.type())+ Imgproc.remap(src, dst, mapX, mapY, Imgproc.INTER_LINEAR, Core.BORDER_CONSTANT, Scalar(0.0, 0.0, 0.0, 0.0))+ mapX.release()+ mapY.release() return dst } @@ -362,13 +399,16 @@ class PanoramaEngine(private val context: Context) : SensorEventListener { mat } - val f = estimateFocalLength(mats[0].cols())- val cylFrames = mats.map { projectCylindrical(it, f) }- mats.forEach { it.release() }- val sift = SIFT.create(3000) val matcher = FlannBasedMatcher.create() + // Self-calibrate the focal length from the gyro yaw + measured feature+ // shift instead of assuming a fixed FOV; falls back to a nominal FOV+ // when there isn't enough motion signal.+ val f = estimateFocalFromMotion(mats, sift, matcher) ?: estimateFocalLength(mats[0].cols())+ val cylFrames = mats.map { projectCylindrical(it, f) }+ mats.forEach { it.release() }+ // Compute pairwise translations val offsets = mutableListOf(Pair(0, 0)) for (i in 1 until cylFrames.size) {
camera/src/main/res/drawable/level_24px.xml
diff --git a/camera/src/main/res/drawable/level_24px.xml b/camera/src/main/res/drawable/level_24px.xmldeleted file mode 100644index 0747989237..0000000000--- a/camera/src/main/res/drawable/level_24px.xml+++ /dev/null@@ -1,10 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android"- android:width="24dp"- android:height="24dp"- android:viewportWidth="960"- android:viewportHeight="960"- android:tint="?attr/colorControlNormal">- <path- android:fillColor="@android:color/white"- android:pathData="M120,760Q87,760 63.5,736.5Q40,713 40,680L40,280Q40,247 63.5,223.5Q87,200 120,200L840,200Q873,200 896.5,223.5Q920,247 920,280L920,680Q920,713 896.5,736.5Q873,760 840,760L120,760ZM120,680L840,680L840,280L720,280L720,440L640,440L640,280L520,280L520,440L440,440L440,280L320,280L320,440L240,440L240,280L120,280L120,680Z"/>-</vector>
camera/src/main/res/drawable/warmth_24px.xml
diff --git a/camera/src/main/res/drawable/warmth_24px.xml b/camera/src/main/res/drawable/warmth_24px.xmldeleted file mode 100644index b8d34a3b6b..0000000000--- a/camera/src/main/res/drawable/warmth_24px.xml+++ /dev/null@@ -1,10 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android"- android:width="24dp"- android:height="24dp"- android:viewportWidth="960"- android:viewportHeight="960"- android:tint="?attr/colorControlNormal">- <path- android:fillColor="@android:color/white"- android:pathData="M480,920L80,520L480,120L880,520L480,920ZM480,790L750,520L480,250L480,790Z"/>-</vector>
camera/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/camera/src/main/res/mipmap-anydpi/ic_launcher.xml b/camera/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index ef49c99170..0000000000--- a/camera/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
camera/src/main/res/resources.properties
diff --git a/camera/src/main/res/resources.properties b/camera/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/camera/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
clock/src/main/ic_launcher-playstore.png
diff --git a/clock/src/main/ic_launcher-playstore.png b/clock/src/main/ic_launcher-playstore.pngdeleted file mode 100644index f6f3641d71..0000000000Binary files a/clock/src/main/ic_launcher-playstore.png and /dev/null differ
clock/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/clock/src/main/res/mipmap-anydpi/ic_launcher.xml b/clock/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index ef49c99170..0000000000--- a/clock/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
clock/src/main/res/resources.properties
diff --git a/clock/src/main/res/resources.properties b/clock/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/clock/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
contacts/src/main/ic_launcher-playstore.png
diff --git a/contacts/src/main/ic_launcher-playstore.png b/contacts/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 204de6467b..0000000000Binary files a/contacts/src/main/ic_launcher-playstore.png and /dev/null differ
contacts/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/contacts/src/main/res/mipmap-anydpi/ic_launcher.xml b/contacts/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index ef49c99170..0000000000--- a/contacts/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
contacts/src/main/res/resources.properties
diff --git a/contacts/src/main/res/resources.properties b/contacts/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/contacts/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
education/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/education/src/main/res/mipmap-anydpi/ic_launcher.xml b/education/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index 0b0d585e42..0000000000--- a/education/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>
education/src/main/res/resources.properties
diff --git a/education/src/main/res/resources.properties b/education/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/education/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
email/src/main/ic_launcher-playstore.png
diff --git a/email/src/main/ic_launcher-playstore.png b/email/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 17a7420802..0000000000Binary files a/email/src/main/ic_launcher-playstore.png and /dev/null differ
email/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
diff --git a/email/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/email/src/main/res/mipmap-anydpi-v26/ic_launcher.xmldeleted file mode 100644index ef49c99170..0000000000--- a/email/src/main/res/mipmap-anydpi-v26/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
email/src/main/res/resources.properties
diff --git a/email/src/main/res/resources.properties b/email/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/email/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
everysync/src/main/java/com/vayunmathur/everysync/provider/SyncProvider.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/provider/SyncProvider.kt b/everysync/src/main/java/com/vayunmathur/everysync/provider/SyncProvider.ktindex ad38d41eb7..c2aa87bb85 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/provider/SyncProvider.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/provider/SyncProvider.kt@@ -1,6 +1,7 @@ package com.vayunmathur.everysync.provider import android.content.Context+import androidx.compose.runtime.Composable import com.vayunmathur.everysync.auth.AccountConfig import com.vayunmathur.everysync.auth.OAuthConfig import com.vayunmathur.everysync.auth.OAuthTokens@@ -14,7 +15,7 @@ import com.vayunmathur.everysync.auth.OAuthTokens interface SyncProvider { val id: String val displayName: String- val iconRes: Int+ val icon: @Composable () -> Unit val authType: AuthType val capabilities: Set<DataType>
everysync/src/main/java/com/vayunmathur/everysync/provider/impl/DavProvider.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/provider/impl/DavProvider.kt b/everysync/src/main/java/com/vayunmathur/everysync/provider/impl/DavProvider.ktindex 430a60adb7..a1719b94a9 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/provider/impl/DavProvider.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/provider/impl/DavProvider.kt@@ -1,6 +1,7 @@ package com.vayunmathur.everysync.provider.impl import android.content.Context+import androidx.compose.runtime.Composable import com.vayunmathur.everysync.auth.AccountConfig import com.vayunmathur.everysync.auth.TokenStore import com.vayunmathur.everysync.format.ICalendar@@ -22,7 +23,7 @@ import java.util.UUID abstract class DavProvider( override val id: String, override val displayName: String,- override val iconRes: Int,+ override val icon: @Composable () -> Unit, override val capabilities: Set<DataType>, override val davPresetUrl: String? = null, ) : SyncProvider {
everysync/src/main/java/com/vayunmathur/everysync/provider/impl/DavProviders.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/provider/impl/DavProviders.kt b/everysync/src/main/java/com/vayunmathur/everysync/provider/impl/DavProviders.ktindex c85f245a94..32f92758eb 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/provider/impl/DavProviders.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/provider/impl/DavProviders.kt@@ -1,9 +1,9 @@ package com.vayunmathur.everysync.provider.impl -import com.vayunmathur.everysync.R import com.vayunmathur.everysync.auth.AccountConfig import com.vayunmathur.everysync.auth.DavCredentials import com.vayunmathur.everysync.provider.DataType+import com.vayunmathur.library.ui.IconProvider /** * Apple / iCloud, delivered as a preconfigured CalDAV + CardDAV account (Apple has@@ -13,7 +13,7 @@ import com.vayunmathur.everysync.provider.DataType class ICloudProvider : DavProvider( id = "icloud", displayName = "Apple / iCloud",- iconRes = R.drawable.ic_provider,+ icon = { IconProvider() }, capabilities = setOf(DataType.CONTACTS, DataType.CALENDAR), davPresetUrl = "https://caldav.icloud.com", ) {@@ -25,7 +25,7 @@ class ICloudProvider : DavProvider( class GenericCalDavProvider : DavProvider( id = "caldav", displayName = "CalDAV server",- iconRes = R.drawable.ic_provider,+ icon = { IconProvider() }, capabilities = setOf(DataType.CALENDAR), ) @@ -33,6 +33,6 @@ class GenericCalDavProvider : DavProvider( class GenericCardDavProvider : DavProvider( id = "carddav", displayName = "CardDAV server",- iconRes = R.drawable.ic_provider,+ icon = { IconProvider() }, capabilities = setOf(DataType.CONTACTS), )
everysync/src/main/java/com/vayunmathur/everysync/provider/impl/GoogleProvider.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/provider/impl/GoogleProvider.kt b/everysync/src/main/java/com/vayunmathur/everysync/provider/impl/GoogleProvider.ktindex 5cf927fd7e..f8ed4b5a6b 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/provider/impl/GoogleProvider.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/provider/impl/GoogleProvider.kt@@ -2,7 +2,7 @@ package com.vayunmathur.everysync.provider.impl import android.content.Context import android.util.Log-import com.vayunmathur.everysync.R+import androidx.compose.runtime.Composable import com.vayunmathur.everysync.auth.AccountConfig import com.vayunmathur.everysync.auth.OAuthConfig import com.vayunmathur.everysync.auth.OAuthManager@@ -17,6 +17,7 @@ import com.vayunmathur.everysync.remote.GooglePeopleClient import com.vayunmathur.everysync.sink.CalendarSink import com.vayunmathur.everysync.sink.ContactsSink import com.vayunmathur.library.network.NetworkClient+import com.vayunmathur.library.ui.IconProvider import kotlinx.serialization.json.Json import kotlinx.serialization.json.JsonObject import kotlinx.serialization.json.jsonPrimitive@@ -25,7 +26,7 @@ import kotlinx.serialization.json.jsonPrimitive class GoogleProvider : SyncProvider { override val id = "google" override val displayName = "Google"- override val iconRes = R.drawable.ic_provider+ override val icon: @Composable () -> Unit = { IconProvider() } override val authType = AuthType.OAUTH override val capabilities = setOf(DataType.CONTACTS, DataType.CALENDAR)
everysync/src/main/java/com/vayunmathur/everysync/provider/impl/HealthOAuthProviders.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/provider/impl/HealthOAuthProviders.kt b/everysync/src/main/java/com/vayunmathur/everysync/provider/impl/HealthOAuthProviders.ktindex 000da1a16b..58e80f0b41 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/provider/impl/HealthOAuthProviders.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/provider/impl/HealthOAuthProviders.kt@@ -2,7 +2,7 @@ package com.vayunmathur.everysync.provider.impl import android.content.Context import android.util.Log-import com.vayunmathur.everysync.R+import androidx.compose.runtime.Composable import com.vayunmathur.everysync.auth.AccountConfig import com.vayunmathur.everysync.auth.OAuthConfig import com.vayunmathur.everysync.auth.OAuthManager@@ -15,6 +15,7 @@ import com.vayunmathur.everysync.provider.SyncState import com.vayunmathur.everysync.remote.GoogleFitClient import com.vayunmathur.everysync.sink.HealthSink import com.vayunmathur.library.network.NetworkClient+import com.vayunmathur.library.ui.IconProvider import kotlinx.serialization.json.Json import kotlinx.serialization.json.JsonObject import kotlinx.serialization.json.jsonPrimitive@@ -26,7 +27,7 @@ import kotlinx.serialization.json.jsonPrimitive class GoogleHealthProvider : SyncProvider { override val id = "google_health" override val displayName = "Google Health"- override val iconRes = R.drawable.ic_provider+ override val icon: @Composable () -> Unit = { IconProvider() } override val authType = AuthType.OAUTH override val capabilities = setOf(DataType.HEALTH)
everysync/src/main/java/com/vayunmathur/everysync/ui/AccountsScreen.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/ui/AccountsScreen.kt b/everysync/src/main/java/com/vayunmathur/everysync/ui/AccountsScreen.ktindex cec0db6aa5..d715e9309b 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/ui/AccountsScreen.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/ui/AccountsScreen.kt@@ -11,8 +11,8 @@ import androidx.compose.foundation.lazy.items import com.vayunmathur.library.ui.CircularProgressIndicator import com.vayunmathur.library.ui.ExperimentalMaterial3Api import com.vayunmathur.library.ui.FloatingActionButton-import com.vayunmathur.library.ui.Icon import com.vayunmathur.library.ui.IconAdd+import com.vayunmathur.library.ui.IconProvider import com.vayunmathur.library.ui.IconRefresh import com.vayunmathur.library.ui.IconSettings import com.vayunmathur.library.ui.IconButton@@ -96,7 +96,7 @@ fun AccountsScreen(backStack: NavBackStack<Route>, viewModel: EverySyncViewModel } }, leadingContent = {- Icon(androidx.compose.ui.res.painterResource(provider?.iconRes ?: R.drawable.ic_provider), null)+ (provider?.icon ?: { IconProvider() })() }, trailingContent = { if (isSyncing) {
everysync/src/main/java/com/vayunmathur/everysync/ui/AddAccountScreen.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/ui/AddAccountScreen.kt b/everysync/src/main/java/com/vayunmathur/everysync/ui/AddAccountScreen.ktindex 378d7784c4..cfd71ae75b 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/ui/AddAccountScreen.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/ui/AddAccountScreen.kt@@ -5,7 +5,6 @@ import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import com.vayunmathur.library.ui.ExperimentalMaterial3Api-import com.vayunmathur.library.ui.Icon import com.vayunmathur.library.ui.IconBack import com.vayunmathur.library.ui.IconButton import com.vayunmathur.library.ui.ListItem@@ -14,7 +13,6 @@ import com.vayunmathur.library.ui.Text import com.vayunmathur.library.ui.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier-import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource import com.vayunmathur.everysync.R import com.vayunmathur.everysync.Route@@ -47,7 +45,7 @@ fun AddAccountScreen(backStack: NavBackStack<Route>, viewModel: EverySyncViewMod AuthType.HEALTH_CONNECT -> viewModel.addHealthConnectAccount(provider.id) { backStack.pop() } } },- leadingContent = { Icon(painterResource(provider.iconRes), null) },+ leadingContent = { provider.icon() }, content = { Text(provider.displayName) }, supportingContent = if (provider.viaHealthConnect) { { Text(stringResource(R.string.provider_via_health_connect)) }
everysync/src/main/res/drawable/ic_provider.xml
diff --git a/everysync/src/main/res/drawable/ic_provider.xml b/everysync/src/main/res/drawable/ic_provider.xmldeleted file mode 100644index 64bb8f0823..0000000000--- a/everysync/src/main/res/drawable/ic_provider.xml+++ /dev/null@@ -1,10 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android"- android:width="24dp"- android:height="24dp"- android:viewportWidth="960"- android:viewportHeight="960"- android:tint="?attr/colorControlNormal">- <path- android:fillColor="@android:color/white"- android:pathData="M480,880Q397,880 324,848.5Q251,817 197,763Q143,709 111.5,636Q80,563 80,480Q80,397 111.5,324Q143,251 197,197Q251,143 324,111.5Q397,80 480,80Q563,80 636,111.5Q709,143 763,197Q817,251 848.5,324Q880,397 880,480Q880,563 848.5,636Q817,709 763,763Q709,817 636,848.5Q563,880 480,880ZM480,798Q532,726 561,655Q590,584 596,520L364,520Q370,584 399,655Q428,726 480,798ZM378,786Q342,720 320.5,655Q299,590 293,520L163,520Q184,613 251,678Q318,743 378,786ZM582,786Q642,743 709,678Q776,613 797,520L667,520Q661,590 639.5,655Q618,720 582,786ZM163,440L293,440Q299,370 320.5,305Q342,240 378,174Q318,217 251,282Q184,347 163,440ZM364,440L596,440Q590,376 561,305Q532,234 480,162Q428,234 399,305Q370,376 364,440ZM667,440L797,440Q776,347 709,282Q642,217 582,174Q618,240 639.5,305Q661,370 667,440Z"/>-</vector>
everysync/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
diff --git a/everysync/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/everysync/src/main/res/mipmap-anydpi-v26/ic_launcher.xmldeleted file mode 100644index 0b0d585e42..0000000000--- a/everysync/src/main/res/mipmap-anydpi-v26/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>
everysync/src/main/res/resources.properties
diff --git a/everysync/src/main/res/resources.properties b/everysync/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/everysync/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
files/src/main/ic_launcher-playstore.png
diff --git a/files/src/main/ic_launcher-playstore.png b/files/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 2c4fb56705..0000000000Binary files a/files/src/main/ic_launcher-playstore.png and /dev/null differ
files/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/files/src/main/res/mipmap-anydpi/ic_launcher.xml b/files/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index ef49c99170..0000000000--- a/files/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
files/src/main/res/resources.properties
diff --git a/files/src/main/res/resources.properties b/files/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/files/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
findfamily/src/main/ic_launcher-playstore.png
diff --git a/findfamily/src/main/ic_launcher-playstore.png b/findfamily/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 0509b23d1e..0000000000Binary files a/findfamily/src/main/ic_launcher-playstore.png and /dev/null differ
findfamily/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/findfamily/src/main/res/mipmap-anydpi/ic_launcher.xml b/findfamily/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index ef49c99170..0000000000--- a/findfamily/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
findfamily/src/main/res/resources.properties
diff --git a/findfamily/src/main/res/resources.properties b/findfamily/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/findfamily/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
games/alchemist/src/main/ic_launcher-playstore.png
diff --git a/games/alchemist/src/main/ic_launcher-playstore.png b/games/alchemist/src/main/ic_launcher-playstore.pngdeleted file mode 100644index c0c782074c..0000000000Binary files a/games/alchemist/src/main/ic_launcher-playstore.png and /dev/null differ
games/alchemist/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/games/alchemist/src/main/res/mipmap-anydpi/ic_launcher.xml b/games/alchemist/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index ef49c99170..0000000000--- a/games/alchemist/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
games/alchemist/src/main/res/resources.properties
diff --git a/games/alchemist/src/main/res/resources.properties b/games/alchemist/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/games/alchemist/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
games/chess/src/main/ic_launcher-playstore.png
diff --git a/games/chess/src/main/ic_launcher-playstore.png b/games/chess/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 4b6e6d7c05..0000000000Binary files a/games/chess/src/main/ic_launcher-playstore.png and /dev/null differ
games/chess/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/games/chess/src/main/res/mipmap-anydpi/ic_launcher.xml b/games/chess/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index ef49c99170..0000000000--- a/games/chess/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
games/chess/src/main/res/resources.properties
diff --git a/games/chess/src/main/res/resources.properties b/games/chess/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/games/chess/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
games/pipes/src/main/ic_launcher-playstore.png
diff --git a/games/pipes/src/main/ic_launcher-playstore.png b/games/pipes/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 49369fcce3..0000000000Binary files a/games/pipes/src/main/ic_launcher-playstore.png and /dev/null differ
games/pipes/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/games/pipes/src/main/res/mipmap-anydpi/ic_launcher.xml b/games/pipes/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index 0b0d585e42..0000000000--- a/games/pipes/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>
games/pipes/src/main/res/resources.properties
diff --git a/games/pipes/src/main/res/resources.properties b/games/pipes/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/games/pipes/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
games/solitaire/src/main/ic_launcher-playstore.png
diff --git a/games/solitaire/src/main/ic_launcher-playstore.png b/games/solitaire/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 70f357103e..0000000000Binary files a/games/solitaire/src/main/ic_launcher-playstore.png and /dev/null differ
games/solitaire/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/games/solitaire/src/main/res/mipmap-anydpi/ic_launcher.xml b/games/solitaire/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index 0b0d585e42..0000000000--- a/games/solitaire/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>
games/solitaire/src/main/res/resources.properties
diff --git a/games/solitaire/src/main/res/resources.properties b/games/solitaire/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/games/solitaire/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
games/unblockjam/src/main/ic_launcher-playstore.png
diff --git a/games/unblockjam/src/main/ic_launcher-playstore.png b/games/unblockjam/src/main/ic_launcher-playstore.pngdeleted file mode 100644index cecee8c43e..0000000000Binary files a/games/unblockjam/src/main/ic_launcher-playstore.png and /dev/null differ
games/unblockjam/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/games/unblockjam/src/main/res/mipmap-anydpi/ic_launcher.xml b/games/unblockjam/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index 1084c24082..0000000000--- a/games/unblockjam/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_monochrome"/>-</adaptive-icon>\ No newline at end of file
games/unblockjam/src/main/res/resources.properties
diff --git a/games/unblockjam/src/main/res/resources.properties b/games/unblockjam/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/games/unblockjam/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
games/wordmaker/src/main/ic_launcher-playstore.png
diff --git a/games/wordmaker/src/main/ic_launcher-playstore.png b/games/wordmaker/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 0879350242..0000000000Binary files a/games/wordmaker/src/main/ic_launcher-playstore.png and /dev/null differ
games/wordmaker/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/games/wordmaker/src/main/res/mipmap-anydpi/ic_launcher.xml b/games/wordmaker/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index ef49c99170..0000000000--- a/games/wordmaker/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
games/wordmaker/src/main/res/resources.properties
diff --git a/games/wordmaker/src/main/res/resources.properties b/games/wordmaker/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/games/wordmaker/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
health/src/main/ic_launcher-playstore.png
diff --git a/health/src/main/ic_launcher-playstore.png b/health/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 9e9c48ac1d..0000000000Binary files a/health/src/main/ic_launcher-playstore.png and /dev/null differ
health/src/main/java/com/vayunmathur/health/MainActivity.kt
diff --git a/health/src/main/java/com/vayunmathur/health/MainActivity.kt b/health/src/main/java/com/vayunmathur/health/MainActivity.ktindex 142d3ebbe1..e1dd9b0fcc 100644--- a/health/src/main/java/com/vayunmathur/health/MainActivity.kt+++ b/health/src/main/java/com/vayunmathur/health/MainActivity.kt@@ -9,7 +9,7 @@ import androidx.activity.viewModels import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize import com.vayunmathur.library.ui.Button-import com.vayunmathur.library.ui.Icon+import com.vayunmathur.library.ui.IconBodySystem import com.vayunmathur.library.ui.IconDirectionsWalk import com.vayunmathur.library.ui.IconFavorite import com.vayunmathur.library.ui.IconFire@@ -22,7 +22,6 @@ 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.health.connect.client.HealthConnectClient import androidx.health.connect.client.PermissionController@@ -211,7 +210,7 @@ fun Navigation(viewModel: HealthViewModel) { com.vayunmathur.library.util.BottomBarItem( stringResource(R.string.nav_body), Route.Body,- ) { Icon(painterResource(R.drawable.body_24px), null) },+ ) { IconBodySystem() }, ), currentPage = backStack.last() )
health/src/main/java/com/vayunmathur/health/ui/BarChartDetails.kt
diff --git a/health/src/main/java/com/vayunmathur/health/ui/BarChartDetails.kt b/health/src/main/java/com/vayunmathur/health/ui/BarChartDetails.ktindex cda4a33e60..4435392fd5 100644--- a/health/src/main/java/com/vayunmathur/health/ui/BarChartDetails.kt+++ b/health/src/main/java/com/vayunmathur/health/ui/BarChartDetails.kt@@ -17,7 +17,6 @@ import androidx.compose.foundation.layout.widthIn import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.shape.CircleShape 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@@ -51,7 +50,6 @@ import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.offset import androidx.compose.foundation.layout.padding import androidx.compose.ui.input.pointer.pointerInput-import androidx.compose.ui.res.painterResource import androidx.compose.ui.layout.layout import androidx.compose.ui.platform.LocalDensity import androidx.compose.ui.unit.Constraints@@ -76,6 +74,7 @@ import com.vayunmathur.health.util.displayString import com.vayunmathur.library.ui.IconArrowForward import com.vayunmathur.library.ui.IconBack import com.vayunmathur.library.ui.IconBedtime+import com.vayunmathur.library.ui.IconBodySystem import com.vayunmathur.library.ui.IconCheck import com.vayunmathur.library.ui.IconDirectionsWalk import com.vayunmathur.library.ui.IconFavorite@@ -583,7 +582,7 @@ private fun iconFor(config: HealthMetricConfig): @Composable (Modifier, Color) - RecordType.RespiratoryRate, RecordType.OxygenSaturation, RecordType.BloodPressure, RecordType.BloodGlucose, RecordType.Vo2Max, RecordType.SkinTemperature -> { m, c -> IconFavorite(m, c) } RecordType.Weight, RecordType.Height, RecordType.BodyFat, RecordType.LeanBodyMass,- RecordType.BoneMass, RecordType.BodyWaterMass -> { m, c -> Icon(painterResource(R.drawable.body_24px), null, m, c) }+ RecordType.BoneMass, RecordType.BodyWaterMass -> { m, c -> IconBodySystem(m, c) } RecordType.Sleep, RecordType.Mindfulness -> { m, c -> IconBedtime(m, c) } RecordType.Hydration -> { m, c -> IconBedtime(m, c) } RecordType.Nutrition -> { m, c -> IconFire(m, c) }
health/src/main/java/com/vayunmathur/health/ui/BodyPage.kt
diff --git a/health/src/main/java/com/vayunmathur/health/ui/BodyPage.kt b/health/src/main/java/com/vayunmathur/health/ui/BodyPage.ktindex aebec133bb..636da53ffa 100644--- a/health/src/main/java/com/vayunmathur/health/ui/BodyPage.kt+++ b/health/src/main/java/com/vayunmathur/health/ui/BodyPage.kt@@ -8,7 +8,6 @@ import com.vayunmathur.library.ui.ExperimentalMaterial3Api import com.vayunmathur.library.ui.ExperimentalMaterial3ExpressiveApi import com.vayunmathur.library.ui.FloatingActionButtonMenu import com.vayunmathur.library.ui.FloatingActionButtonMenuItem-import com.vayunmathur.library.ui.Icon import com.vayunmathur.library.ui.MaterialTheme import com.vayunmathur.library.ui.Scaffold import com.vayunmathur.library.ui.Text@@ -22,7 +21,6 @@ import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.setValue import androidx.compose.ui.Modifier-import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource import androidx.compose.ui.unit.dp import com.vayunmathur.health.R@@ -34,6 +32,7 @@ import com.vayunmathur.health.ui.components.MetricRow import com.vayunmathur.health.util.HealthViewModel import com.vayunmathur.health.util.MainPageMetrics import com.vayunmathur.library.ui.IconAdd+import com.vayunmathur.library.ui.IconBodySystem import com.vayunmathur.library.ui.IconClose import com.vayunmathur.library.util.NavBackStack import com.vayunmathur.library.util.round@@ -86,9 +85,7 @@ fun BodyPage(backStack: NavBackStack<Route>, viewModel: HealthViewModel) { onClick = { fabExpanded = false; dialogConfig = config }, text = { Text(stringResource(config.titleRes)) }, icon = {- Icon(- painter = painterResource(R.drawable.body_24px),- contentDescription = null,+ IconBodySystem( tint = colorFor(config.recordType), ) },@@ -115,7 +112,7 @@ fun BodyPage(backStack: NavBackStack<Route>, viewModel: HealthViewModel) { label = stringResource(R.string.label_weight), value = metrics.weight?.round(1)?.toString() ?: "--", unit = stringResource(R.string.unit_kg),- leadingIcon = { m, c -> Icon(painterResource(R.drawable.body_24px), null, m, c) },+ leadingIcon = { m, c -> IconBodySystem(m, c) }, leadingTint = colorFor(com.vayunmathur.health.data.RecordType.Weight), onClick = { backStack.add(Route.BarChartDetails(HealthMetricConfig.WEIGHT)) }, )@@ -124,7 +121,7 @@ fun BodyPage(backStack: NavBackStack<Route>, viewModel: HealthViewModel) { label = stringResource(R.string.label_height), value = metrics.height?.let { (it * 100).round(1).toString() } ?: "--", unit = stringResource(R.string.unit_cm),- leadingIcon = { m, c -> Icon(painterResource(R.drawable.body_24px), null, m, c) },+ leadingIcon = { m, c -> IconBodySystem(m, c) }, leadingTint = colorFor(com.vayunmathur.health.data.RecordType.Height), onClick = { backStack.add(Route.BarChartDetails(HealthMetricConfig.HEIGHT)) }, )@@ -133,7 +130,7 @@ fun BodyPage(backStack: NavBackStack<Route>, viewModel: HealthViewModel) { label = stringResource(R.string.label_body_fat), value = metrics.bodyFat?.round(1)?.toString() ?: "--", unit = stringResource(R.string.unit_percent),- leadingIcon = { m, c -> Icon(painterResource(R.drawable.body_24px), null, m, c) },+ leadingIcon = { m, c -> IconBodySystem(m, c) }, leadingTint = colorFor(com.vayunmathur.health.data.RecordType.BodyFat), onClick = { backStack.add(Route.BarChartDetails(HealthMetricConfig.BODY_FAT)) }, )@@ -142,7 +139,7 @@ fun BodyPage(backStack: NavBackStack<Route>, viewModel: HealthViewModel) { label = stringResource(R.string.label_lean_body_mass), value = metrics.leanBodyMass?.round(1)?.toString() ?: "--", unit = stringResource(R.string.unit_kg),- leadingIcon = { m, c -> Icon(painterResource(R.drawable.body_24px), null, m, c) },+ leadingIcon = { m, c -> IconBodySystem(m, c) }, leadingTint = colorFor(com.vayunmathur.health.data.RecordType.LeanBodyMass), onClick = { backStack.add(Route.BarChartDetails(HealthMetricConfig.LEAN_BODY_MASS)) }, )@@ -151,7 +148,7 @@ fun BodyPage(backStack: NavBackStack<Route>, viewModel: HealthViewModel) { label = stringResource(R.string.label_bone_mass), value = metrics.boneMass?.round(1)?.toString() ?: "--", unit = stringResource(R.string.unit_kg),- leadingIcon = { m, c -> Icon(painterResource(R.drawable.body_24px), null, m, c) },+ leadingIcon = { m, c -> IconBodySystem(m, c) }, leadingTint = colorFor(com.vayunmathur.health.data.RecordType.BoneMass), onClick = { backStack.add(Route.BarChartDetails(HealthMetricConfig.BONE_MASS)) }, )@@ -160,7 +157,7 @@ fun BodyPage(backStack: NavBackStack<Route>, viewModel: HealthViewModel) { label = stringResource(R.string.label_body_water_mass), value = metrics.bodyWaterMass?.round(1)?.toString() ?: "--", unit = stringResource(R.string.unit_kg),- leadingIcon = { m, c -> Icon(painterResource(R.drawable.body_24px), null, m, c) },+ leadingIcon = { m, c -> IconBodySystem(m, c) }, leadingTint = colorFor(com.vayunmathur.health.data.RecordType.BodyWaterMass), onClick = { backStack.add(Route.BarChartDetails(HealthMetricConfig.BODY_WATER_MASS)) }, )
health/src/main/res/drawable/body_24px.xml
diff --git a/health/src/main/res/drawable/body_24px.xml b/health/src/main/res/drawable/body_24px.xmldeleted file mode 100644index c7400a2b42..0000000000--- a/health/src/main/res/drawable/body_24px.xml+++ /dev/null@@ -1,5 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="#000000" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">-- <path android:fillColor="@android:color/white" android:pathData="M12,12c2.21,0 4,-1.79 4,-4s-1.79,-4 -4,-4 -4,1.79 -4,4 1.79,4 4,4zM12,14c-2.67,0 -8,1.34 -8,4v2h16v-2c0,-2.66 -5.33,-4 -8,-4z"/>--</vector>
health/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/health/src/main/res/mipmap-anydpi/ic_launcher.xml b/health/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index ef49c99170..0000000000--- a/health/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
health/src/main/res/resources.properties
diff --git a/health/src/main/res/resources.properties b/health/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/health/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
library/src/main/res/drawable/body_system_24px.xml
diff --git a/library/src/main/res/drawable/body_system_24px.xml b/library/src/main/res/drawable/body_system_24px.xmlnew file mode 100644index 0000000000..00848184df--- /dev/null+++ b/library/src/main/res/drawable/body_system_24px.xml@@ -0,0 +1,9 @@+<vector xmlns:android="http://schemas.android.com/apk/res/android"+ android:width="24dp"+ android:height="24dp"+ android:viewportWidth="960"+ android:viewportHeight="960">+ <path+ android:fillColor="#FF000000"+ android:pathData="M316,720L392,356L320,384L320,480L240,480L240,332L442,247Q456,241 471.5,239.5Q487,238 501,243Q515,248 527.5,257Q540,266 548,280L588,344Q616,389 661.5,414.5Q707,440 760,440L760,520Q690,520 634.5,492Q579,464 540,420L516,480L600,560L600,720L520,720L520,598L442,526L400,720L316,720ZM540,220Q507,220 483.5,196.5Q460,173 460,140Q460,107 483.5,83.5Q507,60 540,60Q573,60 596.5,83.5Q620,107 620,140Q620,173 596.5,196.5Q573,220 540,220ZM480,880Q397,880 324,848.5Q251,817 197,763Q143,709 111.5,636Q80,563 80,480Q80,361 141.5,266Q203,171 302,122L338,193Q259,232 209.5,308.5Q160,385 160,480Q160,614 253,707Q346,800 480,800Q614,800 707,707Q800,614 800,480L880,480Q880,563 848.5,636Q817,709 763,763Q709,817 636,848.5Q563,880 480,880Z"/>+</vector>
library/src/main/res/drawable/tools_level_24px.xml
diff --git a/library/src/main/res/drawable/tools_level_24px.xml b/library/src/main/res/drawable/tools_level_24px.xmlnew file mode 100644index 0000000000..f98487214d--- /dev/null+++ b/library/src/main/res/drawable/tools_level_24px.xml@@ -0,0 +1,9 @@+<vector xmlns:android="http://schemas.android.com/apk/res/android"+ android:width="24dp"+ android:height="24dp"+ android:viewportWidth="960"+ android:viewportHeight="960">+ <path+ android:fillColor="#FF000000"+ android:pathData="M160,680Q127,680 103.5,656.5Q80,633 80,600L80,360Q80,327 103.5,303.5Q127,280 160,280L800,280Q833,280 856.5,303.5Q880,327 880,360L880,600Q880,633 856.5,656.5Q833,680 800,680L160,680ZM160,600L800,600Q800,600 800,600Q800,600 800,600L800,360Q800,360 800,360Q800,360 800,360L706,360Q713,374 716.5,389Q720,404 720,420Q720,477 678.5,518.5Q637,560 580,560L380,560Q323,560 281.5,518.5Q240,477 240,420Q240,404 243.5,389Q247,374 254,360L160,360Q160,360 160,360Q160,360 160,360L160,600Q160,600 160,600Q160,600 160,600ZM380,480L440,480L440,360L380,360Q356,360 338,378Q320,396 320,420Q320,444 338,462Q356,480 380,480ZM520,480L580,480Q604,480 622,462Q640,444 640,420Q640,396 622,378Q604,360 580,360L520,360L520,480Z"/>+</vector>
library/ui/src/main/java/com/vayunmathur/library/ui/Icons.kt
diff --git a/library/ui/src/main/java/com/vayunmathur/library/ui/Icons.kt b/library/ui/src/main/java/com/vayunmathur/library/ui/Icons.ktindex dc38905714..e6e7fd6048 100644--- a/library/ui/src/main/java/com/vayunmathur/library/ui/Icons.kt+++ b/library/ui/src/main/java/com/vayunmathur/library/ui/Icons.kt@@ -1,6 +1,31 @@ package com.vayunmathur.library.ui import androidx.compose.material.icons.Icons+import androidx.compose.material.icons.filled.AcUnit+import androidx.compose.material.icons.filled.CloudSync+import androidx.compose.material.icons.filled.Compress+import androidx.compose.material.icons.filled.Dehaze+import androidx.compose.material.icons.filled.ForkLeft+import androidx.compose.material.icons.filled.ForkRight+import androidx.compose.material.icons.filled.Lightbulb+import androidx.compose.material.icons.filled.Merge+import androidx.compose.material.icons.filled.NightsStay+import androidx.compose.material.icons.filled.RampLeft+import androidx.compose.material.icons.filled.RampRight+import androidx.compose.material.icons.filled.RoundaboutLeft+import androidx.compose.material.icons.filled.RoundaboutRight+import androidx.compose.material.icons.filled.Straight+import androidx.compose.material.icons.filled.Thunderstorm+import androidx.compose.material.icons.filled.TurnLeft+import androidx.compose.material.icons.filled.TurnRight+import androidx.compose.material.icons.filled.TurnSharpLeft+import androidx.compose.material.icons.filled.TurnSharpRight+import androidx.compose.material.icons.filled.TurnSlightLeft+import androidx.compose.material.icons.filled.TurnSlightRight+import androidx.compose.material.icons.filled.UTurnLeft+import androidx.compose.material.icons.filled.WbCloudy+import androidx.compose.ui.res.painterResource+import com.vayunmathur.library.R import androidx.compose.material.icons.automirrored.filled.ArrowBack import androidx.compose.material.icons.automirrored.filled.ArrowForward import androidx.compose.material.icons.automirrored.filled.Backspace@@ -712,3 +737,107 @@ fun IconInfo(modifier: Modifier = Modifier, tint: Color = LocalContentColor.curr @Composable fun IconNote(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) = AppIcon(Icons.AutoMirrored.Filled.Note, "Note", modifier, tint)++// --- Camera / health custom (Material Symbol vectors bundled in library res) ---+@Composable+fun IconLightbulb(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.Lightbulb, "Warmth", modifier, tint)++@Composable+fun IconBodySystem(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ Icon(painterResource(R.drawable.body_system_24px), "Body", modifier = modifier, tint = tint)++@Composable+fun IconToolsLevel(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ Icon(painterResource(R.drawable.tools_level_24px), "Level", modifier = modifier, tint = tint)++// --- Sync provider (generic) ---+@Composable+fun IconProvider(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.CloudSync, "Provider", modifier, tint)++// --- Weather conditions ---+@Composable+fun IconSnow(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.AcUnit, "Snow", modifier, tint)++@Composable+fun IconThunder(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.Thunderstorm, "Thunderstorm", modifier, tint)++@Composable+fun IconFog(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.Dehaze, "Fog", modifier, tint)++@Composable+fun IconPressure(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.Compress, "Pressure", modifier, tint)++@Composable+fun IconPartlyCloudyDay(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.WbCloudy, "Partly cloudy", modifier, tint)++@Composable+fun IconPartlyCloudyNight(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.NightsStay, "Partly cloudy", modifier, tint)++// --- Navigation maneuvers ---+@Composable+fun IconTurnLeft(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.TurnLeft, "Turn left", modifier, tint)++@Composable+fun IconTurnRight(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.TurnRight, "Turn right", modifier, tint)++@Composable+fun IconTurnSlightLeft(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.TurnSlightLeft, "Slight left", modifier, tint)++@Composable+fun IconTurnSlightRight(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.TurnSlightRight, "Slight right", modifier, tint)++@Composable+fun IconTurnSharpLeft(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.TurnSharpLeft, "Sharp left", modifier, tint)++@Composable+fun IconTurnSharpRight(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.TurnSharpRight, "Sharp right", modifier, tint)++@Composable+fun IconUTurn(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.UTurnLeft, "U-turn", modifier, tint)++@Composable+fun IconStraight(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.Straight, "Straight", modifier, tint)++@Composable+fun IconMerge(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.Merge, "Merge", modifier, tint)++@Composable+fun IconForkLeft(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.ForkLeft, "Fork left", modifier, tint)++@Composable+fun IconForkRight(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.ForkRight, "Fork right", modifier, tint)++@Composable+fun IconRampLeft(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.RampLeft, "Ramp left", modifier, tint)++@Composable+fun IconRampRight(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.RampRight, "Ramp right", modifier, tint)++@Composable+fun IconRoundaboutLeft(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.RoundaboutLeft, "Roundabout", modifier, tint)++@Composable+fun IconRoundaboutRight(modifier: Modifier = Modifier, tint: Color = LocalContentColor.current) =+ AppIcon(Icons.Filled.RoundaboutRight, "Roundabout", modifier, tint)
maps/src/main/ic_launcher-playstore.png
diff --git a/maps/src/main/ic_launcher-playstore.png b/maps/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 0d6cf4d69b..0000000000Binary files a/maps/src/main/ic_launcher-playstore.png and /dev/null differ
maps/src/main/java/com/vayunmathur/maps/ui/BottomSheetContent.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/BottomSheetContent.kt b/maps/src/main/java/com/vayunmathur/maps/ui/BottomSheetContent.ktindex 9dcdf189de..b1d131c911 100644--- a/maps/src/main/java/com/vayunmathur/maps/ui/BottomSheetContent.kt+++ b/maps/src/main/java/com/vayunmathur/maps/ui/BottomSheetContent.kt@@ -15,7 +15,6 @@ import com.vayunmathur.library.ui.Button import com.vayunmathur.library.ui.ButtonDefaults import com.vayunmathur.library.ui.Card import com.vayunmathur.library.ui.FilterChip-import com.vayunmathur.library.ui.Icon import com.vayunmathur.library.ui.ListItem import com.vayunmathur.library.ui.MaterialTheme import com.vayunmathur.library.ui.PrimaryTabRow@@ -26,11 +25,11 @@ import androidx.compose.runtime.collectAsState import androidx.compose.runtime.getValue import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalContext-import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource import androidx.compose.ui.unit.dp import com.vayunmathur.library.ui.IconHome import com.vayunmathur.library.ui.IconWork+import com.vayunmathur.library.ui.LocalContentColor import com.vayunmathur.library.util.round import com.vayunmathur.maps.R import com.vayunmathur.maps.data.SpecificFeature@@ -200,8 +199,8 @@ fun BottomSheetContent( ListItem({ Text(it.navInstruction.instructions) }, leadingContent = {- it.navInstruction.maneuver.icon()?.let {- Icon(painterResource(it), null)+ it.navInstruction.maneuver.iconContent()?.let { icon ->+ icon(Modifier, LocalContentColor.current) } }) }
maps/src/main/java/com/vayunmathur/maps/ui/ManeuverIcon.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/ManeuverIcon.kt b/maps/src/main/java/com/vayunmathur/maps/ui/ManeuverIcon.ktnew file mode 100644index 0000000000..90ec616ee0--- /dev/null+++ b/maps/src/main/java/com/vayunmathur/maps/ui/ManeuverIcon.kt@@ -0,0 +1,53 @@+package com.vayunmathur.maps.ui++import androidx.compose.runtime.Composable+import androidx.compose.ui.Modifier+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.res.painterResource+import com.vayunmathur.library.ui.Icon+import com.vayunmathur.library.ui.IconForkLeft+import com.vayunmathur.library.ui.IconForkRight+import com.vayunmathur.library.ui.IconMerge+import com.vayunmathur.library.ui.IconRampLeft+import com.vayunmathur.library.ui.IconRampRight+import com.vayunmathur.library.ui.IconRoundaboutLeft+import com.vayunmathur.library.ui.IconRoundaboutRight+import com.vayunmathur.library.ui.IconStraight+import com.vayunmathur.library.ui.IconTurnLeft+import com.vayunmathur.library.ui.IconTurnRight+import com.vayunmathur.library.ui.IconTurnSharpLeft+import com.vayunmathur.library.ui.IconTurnSharpRight+import com.vayunmathur.library.ui.IconTurnSlightLeft+import com.vayunmathur.library.ui.IconTurnSlightRight+import com.vayunmathur.library.ui.IconUTurn+import com.vayunmathur.maps.R+import com.vayunmathur.maps.util.RouteService.API.Maneuver++/** Composable icon for a maneuver, or null when the maneuver has no icon. */+fun Maneuver.iconContent(): (@Composable (Modifier, Color) -> Unit)? = when (this) {+ Maneuver.TURN_SLIGHT_LEFT -> { m, t -> IconTurnSlightLeft(m, t) }+ Maneuver.TURN_SHARP_LEFT -> { m, t -> IconTurnSharpLeft(m, t) }+ Maneuver.UTURN_LEFT -> { m, t -> IconUTurn(m, t) }+ Maneuver.TURN_LEFT -> { m, t -> IconTurnLeft(m, t) }+ Maneuver.TURN_SLIGHT_RIGHT -> { m, t -> IconTurnSlightRight(m, t) }+ Maneuver.TURN_SHARP_RIGHT -> { m, t -> IconTurnSharpRight(m, t) }+ Maneuver.UTURN_RIGHT -> { m, t -> IconUTurn(m, t) }+ Maneuver.TURN_RIGHT -> { m, t -> IconTurnRight(m, t) }+ Maneuver.STRAIGHT -> { m, t -> IconStraight(m, t) }+ Maneuver.RAMP_LEFT -> { m, t -> IconRampLeft(m, t) }+ Maneuver.RAMP_RIGHT -> { m, t -> IconRampRight(m, t) }+ Maneuver.MERGE -> { m, t -> IconMerge(m, t) }+ Maneuver.FORK_LEFT -> { m, t -> IconForkLeft(m, t) }+ Maneuver.FORK_RIGHT -> { m, t -> IconForkRight(m, t) }+ Maneuver.ROUNDABOUT_LEFT -> { m, t -> IconRoundaboutLeft(m, t) }+ Maneuver.ROUNDABOUT_RIGHT -> { m, t -> IconRoundaboutRight(m, t) }+ Maneuver.DEPART -> { m, t -> IconStraight(m, t) }+ Maneuver.NAME_CHANGE -> { m, t -> IconStraight(m, t) }+ Maneuver.WAIT -> { m, t ->+ Icon(painterResource(R.drawable.outline_nest_clock_farsight_analog_24), null, m, t)+ }+ Maneuver.RIDE -> { m, t ->+ Icon(painterResource(R.drawable.outline_menu_book_24), null, m, t)+ }+ Maneuver.FERRY, Maneuver.FERRY_TRAIN, Maneuver.MANEUVER_UNSPECIFIED -> null+}
maps/src/main/java/com/vayunmathur/maps/ui/NavigationOverlay.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/NavigationOverlay.kt b/maps/src/main/java/com/vayunmathur/maps/ui/NavigationOverlay.ktindex 30af9b9ccd..8891b8a6be 100644--- a/maps/src/main/java/com/vayunmathur/maps/ui/NavigationOverlay.kt+++ b/maps/src/main/java/com/vayunmathur/maps/ui/NavigationOverlay.kt@@ -23,7 +23,6 @@ import com.vayunmathur.library.ui.Card import com.vayunmathur.library.ui.CardDefaults import com.vayunmathur.library.ui.ExtendedFloatingActionButton import com.vayunmathur.library.ui.FilledTonalButton-import com.vayunmathur.library.ui.Icon import com.vayunmathur.library.ui.IconLocationOn import com.vayunmathur.library.ui.LinearProgressIndicator import com.vayunmathur.library.ui.MaterialTheme@@ -33,7 +32,6 @@ import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.draw.shadow import androidx.compose.ui.graphics.Color-import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.text.style.TextAlign@@ -167,7 +165,7 @@ private fun ManeuverCard( // the "you're currently on" peek line below. val primary = nextStep ?: currentStep val primaryInstruction = primary?.navInstruction?.instructions.orEmpty()- val primaryIcon = primary?.navInstruction?.maneuver?.icon()+ val primaryIcon = primary?.navInstruction?.maneuver?.iconContent() val distanceText = formatDistance(progress.distanceToNextManeuver) Card(@@ -185,11 +183,9 @@ private fun ManeuverCard( verticalAlignment = Alignment.CenterVertically, ) { if (primaryIcon != null) {- Icon(- painterResource(primaryIcon),- contentDescription = null,- modifier = Modifier.size(56.dp),- tint = MaterialTheme.colorScheme.onPrimaryContainer,+ primaryIcon(+ Modifier.size(56.dp),+ MaterialTheme.colorScheme.onPrimaryContainer, ) Spacer(Modifier.width(16.dp)) }
maps/src/main/java/com/vayunmathur/maps/util/NavigationService.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/util/NavigationService.kt b/maps/src/main/java/com/vayunmathur/maps/util/NavigationService.ktindex 9f1f70ab39..9854c930c4 100644--- a/maps/src/main/java/com/vayunmathur/maps/util/NavigationService.kt+++ b/maps/src/main/java/com/vayunmathur/maps/util/NavigationService.kt@@ -266,7 +266,6 @@ class NavigationService : Service() { val etaText = formatEta(p.etaEpochMs) val route = NavigationSessionManager.currentRoute val currentStep = route?.step?.getOrNull(p.currentStepIndex)- val maneuverIcon = currentStep?.navInstruction?.maneuver?.icon() ?: defaultIcon when (mode) { TravelMode.DRIVE -> { val title = currentStep?.navInstruction?.instructions?.takeIf { it.isNotBlank() }@@ -276,7 +275,7 @@ class NavigationService : Service() { formatDistance(p.distanceToNextManeuver), etaText, )- NotificationInfo(title, content, percent, maneuverIcon)+ NotificationInfo(title, content, percent, defaultIcon) } TravelMode.WALK -> NotificationInfo( getString(R.string.nav_walk_title_format, destLabel),
maps/src/main/java/com/vayunmathur/maps/util/RouteService.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/util/RouteService.kt b/maps/src/main/java/com/vayunmathur/maps/util/RouteService.ktindex 7b28c5ded5..32d8ff672b 100644--- a/maps/src/main/java/com/vayunmathur/maps/util/RouteService.kt+++ b/maps/src/main/java/com/vayunmathur/maps/util/RouteService.kt@@ -1,6 +1,6 @@ package com.vayunmathur.maps.util+ import com.vayunmathur.maps.data.SpecificFeature-import com.vayunmathur.maps.R import com.vayunmathur.library.network.NetworkClient import kotlinx.serialization.Serializable import org.maplibre.spatialk.geojson.Position@@ -137,35 +137,7 @@ object RouteService { MANEUVER_UNSPECIFIED, TURN_SLIGHT_LEFT, TURN_SHARP_LEFT, UTURN_LEFT, TURN_LEFT, TURN_SLIGHT_RIGHT, TURN_SHARP_RIGHT, UTURN_RIGHT, TURN_RIGHT, STRAIGHT, RAMP_LEFT, RAMP_RIGHT, MERGE, FORK_LEFT, FORK_RIGHT, FERRY, FERRY_TRAIN,- ROUNDABOUT_LEFT, ROUNDABOUT_RIGHT, DEPART, NAME_CHANGE, WAIT, RIDE;-- fun icon(): Int? {- return when(this) {- TURN_SLIGHT_LEFT -> R.drawable.direction_turn_slight_left- TURN_SHARP_LEFT -> R.drawable.direction_turn_sharp_left- UTURN_LEFT -> R.drawable.direction_uturn- TURN_LEFT -> R.drawable.direction_turn_left- TURN_SLIGHT_RIGHT -> R.drawable.direction_turn_slight_right- TURN_SHARP_RIGHT -> R.drawable.direction_turn_sharp_right- UTURN_RIGHT -> R.drawable.direction_uturn- TURN_RIGHT -> R.drawable.direction_turn_right- STRAIGHT -> R.drawable.direction_turn_straight- RAMP_LEFT -> R.drawable.direction_off_ramp_left- RAMP_RIGHT -> R.drawable.direction_off_ramp_right- MERGE -> R.drawable.direction_merge_straight- FORK_LEFT -> R.drawable.direction_fork_left- FORK_RIGHT -> R.drawable.direction_fork_right- FERRY -> null- FERRY_TRAIN -> null- ROUNDABOUT_LEFT -> R.drawable.direction_roundabout_left- ROUNDABOUT_RIGHT -> R.drawable.direction_roundabout_right- DEPART -> R.drawable.direction_depart- NAME_CHANGE -> R.drawable.direction_new_name_straight- WAIT -> R.drawable.outline_nest_clock_farsight_analog_24- RIDE -> R.drawable.outline_menu_book_24 // Placeholder for ride icon- MANEUVER_UNSPECIFIED -> null- }- }+ ROUNDABOUT_LEFT, ROUNDABOUT_RIGHT, DEPART, NAME_CHANGE, WAIT, RIDE } }
maps/src/main/res/drawable/direction_depart.xml
diff --git a/maps/src/main/res/drawable/direction_depart.xml b/maps/src/main/res/drawable/direction_depart.xmldeleted file mode 100644index 89407e1c0a..0000000000--- a/maps/src/main/res/drawable/direction_depart.xml+++ /dev/null@@ -1 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="20dp" android:height="20dp" android:viewportWidth="20" android:viewportHeight="20"><path android:fillColor="#FF000000" android:pathData="M9.98172,19a2,2,0,1,1,2-2a2,2,0,0,1-2,2Zm4.912840000000001-11.65717l-4.903690000000001-6.342829999999999l-4.90368,6.34283a.38659.38659,0,0,0,.40942.62354l2.95184-1.34375a.35542.35542,0,0,1,.541.36908h-.007730000000000459v5.50006a.49992.49992,0,0,0,.49994.49994h1.00012a.49992.49992,0,0,0,.49994-.49994v-5.491760000000001h.00916a.35757.35757,0,0,1,.54242-.37738l2.95184,1.34375a.3866.3866,0,0,0,.409419999999999-.6235400000000002Z"/></vector>\ No newline at end of file
maps/src/main/res/drawable/direction_fork_left.xml
diff --git a/maps/src/main/res/drawable/direction_fork_left.xml b/maps/src/main/res/drawable/direction_fork_left.xmldeleted file mode 100644index 88ed4ee018..0000000000--- a/maps/src/main/res/drawable/direction_fork_left.xml+++ /dev/null@@ -1 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="20dp" android:height="20dp" android:viewportWidth="20" android:viewportHeight="20"><path android:fillColor="#FF000000" android:pathData="M17.73611,6.57682a.30465.30465,0,0,1,.23032.10507l.649.74859a.30457.30457,0,0,1-.03369.43226l-2.06044,1.7384500000000012a5.4089,5.4089,0,0,0-1.73306,4.29459l.0047,3.60769a.29612.29612,0,0,1-.2961399999999994.2965300000000006h-1.0064700000000002a.29657.29657,0,0,1-.29623-.29622l-.00058-3.47624a6.99129,6.99129,0,0,1,2.269479999999998-5.626159999999999l2.077-1.75275a.30475.30475,0,0,1,.1962-.07182m0-.2a.50269.50269,0,0,0-.32516.119l-2.07704,1.7527300000000006a7.25157,7.25157,0,0,0-2.3398900000000005,5.794459999999999v3.46082a.49622.49622,0,0,0,.496220000000001.4961800000000025h1.0064700000000002a.49614.49614,0,0,0,.49615-.49681l-.0047-3.60767a5.2182,5.2182,0,0,1,1.665-4.14405l2.057410000000001-1.7358700000000002a.50455.50455,0,0,0,.05585-.71613l-.649-.74859a.50345.50345,0,0,0-.38147-.17406h0Zm-8.73542-.39511999999999947h-1.9875500000000006a.35757.35757,0,0,1-.37738-.54242l1.3437499999999991-2.9518400000000007a.38659.38659,0,0,0-.6235399999999993-.40942999999999996l-6.34698,4.922000000000001l6.347,4.88544a.38659.38659,0,0,0,.6235199999999992-.40943999999999825l-1.34375-2.951830000000001a.3576.3576,0,0,1,.37738-.54248h1.9987700000000013a4.05782,4.05782,0,0,1,3.98877,4.07324v5.44885a.49622.49622,0,0,0,.49622999999999884.496220000000001h1.00647a.49614.49614,0,0,0,.49615-.49683l-.001960000000000406-1.5031700000000008h.00311v-3.9450699999999994a6.06019,6.06019,0,0,0-5.989-6.07324l-.011-.00183"/></vector>\ No newline at end of file
maps/src/main/res/drawable/direction_fork_right.xml
diff --git a/maps/src/main/res/drawable/direction_fork_right.xml b/maps/src/main/res/drawable/direction_fork_right.xmldeleted file mode 100644index b77da2ae6b..0000000000--- a/maps/src/main/res/drawable/direction_fork_right.xml+++ /dev/null@@ -1 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="20dp" android:height="20dp" android:viewportWidth="20" android:viewportHeight="20"><path android:fillColor="#FF000000" android:pathData="M2.27386,6.57682a.30457.30457,0,0,1,.1961400000000002.07182000000000066l2.0739999999999994,1.7501800000000003a7.00218,7.00218,0,0,1,2.27186,5.644179999999999v3.46088a.29651.29651,0,0,1-.29617999999999967.29612000000000194h-1.0065a.29613.29613,0,0,1-.29618000000000055-.2965699999999991l.003790000000000404-3.5888300000000015a5.42,5.42,0,0,0-1.73517-4.316l-2.0573699999999997-1.7358600000000015a.30461.30461,0,0,1-.03372-.43226l.649-.74859a.30466.30466,0,0,1,.23035-.10507m0-.2a.50345.50345,0,0,0-.38147.17406l-.649.74859a.50458.50458,0,0,0,.05588.71613l2.0573699999999997,1.7358600000000006a5.2182,5.2182,0,0,1,1.665,4.14405l-.0046600000000003305,3.607660000000001a.49617.49617,0,0,0,.49617999999999984.4968299999999992h1.0065a.49616.49616,0,0,0,.49615-.49615v-3.4608500000000006a7.25157,7.25157,0,0,0-2.33983-5.794459999999999l-2.077-1.7527499999999998a.50264.50264,0,0,0-.32516-.119h0Zm8.73442,1.604870000000001h1.98755a.3576.3576,0,0,1,.37738.54248l-1.3437500000000018,2.951830000000001a.38659.38659,0,0,0,.62354.40942l6.34698-4.885420000000002l-6.3469999999999995-4.922000000000001a.38659.38659,0,0,0-.62354.40942l1.34375,2.95184a.35757.35757,0,0,1-.37738.54242h-1.9875299999999996v-.0018199999999986005l-.011.00183a6.06019,6.06019,0,0,0-5.989,6.07324v3.9450699999999994h.003109999999998614l-.002,1.50317a.49614.49614,0,0,0,.4962100000000005.4968299999999992h1.0064599999999997a.49622.49622,0,0,0,.49622-.49622v-5.448849999999998a4.05782,4.05782,0,0,1,3.98877-4.07324h.011229999999999407Z"/></vector>\ No newline at end of file
maps/src/main/res/drawable/direction_merge_straight.xml
diff --git a/maps/src/main/res/drawable/direction_merge_straight.xml b/maps/src/main/res/drawable/direction_merge_straight.xmldeleted file mode 100644index 94deb93572..0000000000--- a/maps/src/main/res/drawable/direction_merge_straight.xml+++ /dev/null@@ -1 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="20dp" android:height="20dp" android:viewportWidth="20" android:viewportHeight="20"><path android:fillColor="#FF000000" android:pathData="M11.5,6.00002l-5.5-5.5l-5.5,5.5l4.5,0l0,6.999999999999999l2,0l0-6.999999999999999l4.5,0Z"/></vector>\ No newline at end of file
maps/src/main/res/drawable/direction_new_name_straight.xml
diff --git a/maps/src/main/res/drawable/direction_new_name_straight.xml b/maps/src/main/res/drawable/direction_new_name_straight.xmldeleted file mode 100644index 86526a4e70..0000000000--- a/maps/src/main/res/drawable/direction_new_name_straight.xml+++ /dev/null@@ -1 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="20dp" android:height="20dp" android:viewportWidth="20" android:viewportHeight="20"><path android:fillColor="#FF000000" android:pathData="M14.50342,8.96637l-2.9518500000000003-1.3437499999999991a.35755.35755,0,0,0-.5424100000000003.3773799999999996v9.49652a.50346.50346,0,0,1-.5034799999999997.5034799999999997h-.993a.50346.50346,0,0,1-.50348-.50348v-9.49652a.35756.35756,0,0,0-.54242-.37738l-2.9518899999999997,1.3437499999999991a.38659.38659,0,0,1-.40942-.62354l4.903689999999999-6.342829999999999l4.90369,6.34283a.3866.3866,0,0,1-.40942999999999863.6235400000000002Z"/></vector>\ No newline at end of file
maps/src/main/res/drawable/direction_off_ramp_left.xml
diff --git a/maps/src/main/res/drawable/direction_off_ramp_left.xml b/maps/src/main/res/drawable/direction_off_ramp_left.xmldeleted file mode 100644index b00eaa2ee2..0000000000--- a/maps/src/main/res/drawable/direction_off_ramp_left.xml+++ /dev/null@@ -1 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="20dp" android:height="20dp" android:viewportWidth="20" android:viewportHeight="20"><path android:fillColor="#FF000000" android:pathData="M14.5029,2.2a.29744.29744,0,0,1,.29710000000000036.2971199999999996v15.005760000000002a.29744.29744,0,0,1-.29710000000000036.2971199999999996h-1.0058000000000007a.29744.29744,0,0,1-.29710000000000036-.2971199999999996v-15.005760000000002a.29744.29744,0,0,1,.29710000000000036-.2971199999999987h1.0058m0-.2h-1.0058000000000007a.49711.49711,0,0,0-.49709999999999965.4971199999999998v15.005760000000002a.49711.49711,0,0,0,.49709999999999965.4971199999999989h1.0058a.49711.49711,0,0,0,.49709999999999965-.4971199999999989v-15.005760000000002a.49711.49711,0,0,0-.49709999999999965-.4971199999999989h0Zm-5.50212,3.9816900000000004h-1.9875500000000006a.35757.35757,0,0,1-.37738-.54242l1.3437499999999991-2.9518400000000007a.38659.38659,0,0,0-.6235399999999993-.40942999999999996l-6.34698,4.922000000000001l6.347,4.88544a.38659.38659,0,0,0,.6235199999999992-.40943999999999825l-1.34375-2.951830000000001a.3576.3576,0,0,1,.37738-.54248h1.9987700000000013a4.05782,4.05782,0,0,1,3.98877,4.07324v5.44885a.49622.49622,0,0,0,.49622999999999884.496220000000001h1.00647a.49614.49614,0,0,0,.49615-.49683l-.001960000000000406-1.5031700000000008h.00311v-3.9450699999999994a6.06019,6.06019,0,0,0-5.989-6.07324l-.011-.00183"/></vector>\ No newline at end of file
maps/src/main/res/drawable/direction_off_ramp_right.xml
diff --git a/maps/src/main/res/drawable/direction_off_ramp_right.xml b/maps/src/main/res/drawable/direction_off_ramp_right.xmldeleted file mode 100644index a36c18aa96..0000000000--- a/maps/src/main/res/drawable/direction_off_ramp_right.xml+++ /dev/null@@ -1 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="20dp" android:height="20dp" android:viewportWidth="20" android:viewportHeight="20"><path android:fillColor="#FF000000" android:pathData="M6.5029,2.2a.29744.29744,0,0,1,.2970999999999995.2971199999999996v15.005760000000002a.29744.29744,0,0,1-.2970999999999995.2971199999999996h-1.0058000000000007a.29744.29744,0,0,1-.2970999999999995-.2971199999999996v-15.005760000000002a.29744.29744,0,0,1,.2970999999999995-.2971199999999987h1.0058000000000007m0-.2h-1.0058000000000007a.49711.49711,0,0,0-.49709999999999965.4971199999999998v15.005760000000002a.49711.49711,0,0,0,.49709999999999965.4971199999999989h1.0058000000000007a.49711.49711,0,0,0,.49709999999999965-.4971199999999989v-15.005760000000002a.49711.49711,0,0,0-.49709999999999965-.4971199999999989h0Zm4.5054,5.98169h1.98755a.3576.3576,0,0,1,.37738.54248l-1.3437500000000018,2.951830000000001a.38659.38659,0,0,0,.62354.40942l6.34698-4.885420000000002l-6.3469999999999995-4.922000000000001a.38659.38659,0,0,0-.62354.40942l1.34375,2.95184a.35757.35757,0,0,1-.37738.54242h-1.9875299999999996v-.0018199999999986005l-.011.00183a6.06019,6.06019,0,0,0-5.989,6.07324v3.9450699999999994h.003109999999998614l-.002,1.50317a.49614.49614,0,0,0,.4962100000000005.4968299999999992h1.0064599999999997a.49622.49622,0,0,0,.49622-.49622v-5.448849999999998a4.05782,4.05782,0,0,1,3.98877-4.07324h.011229999999999407Z"/></vector>\ No newline at end of file
maps/src/main/res/drawable/direction_roundabout_left.xml
diff --git a/maps/src/main/res/drawable/direction_roundabout_left.xml b/maps/src/main/res/drawable/direction_roundabout_left.xmldeleted file mode 100644index debb54baf7..0000000000--- a/maps/src/main/res/drawable/direction_roundabout_left.xml+++ /dev/null@@ -1 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="20dp" android:height="20dp" android:viewportWidth="20" android:viewportHeight="20"><path android:fillColor="#FF000000" android:pathData="M13,6.2a3.8,3.8,0,1,1-3.8000000000000007,3.8a3.80428,3.80428,0,0,1,3.8000000000000007-3.8m0,7a3.2,3.2,0,1,0-3.1999999999999993-3.1999999999999993a3.20363,3.20363,0,0,0,3.1999999999999993,3.1999999999999993m0-7.199999999999999a4,4,0,1,0,4,4a4.00458,4.00458,0,0,0-4-4h0Zm0,7a3,3,0,1,1,3-3a3.00328,3.00328,0,0,1-3,3h0Zm2.82861-5.82813a4.0315,4.0315,0,0,0-.542-.45459a4.078,4.078,0,0,0-5.11475.4541a3.96842,3.96842,0,0,0-1.141099999999998,2.328619999999999h-4.030760000000001a.17879.17879,0,0,1-.18866-.27124l.6718799999999998-1.4758899999999997a.1933.1933,0,0,0-.31177-.20471l-3.17145,2.4518400000000007l3.17145,2.45184a.1933.1933,0,0,0,.31177-.20471l-.6718799999999998-1.4758899999999997a.17879.17879,0,0,1,.1886599999999996-.2712400000000006h5v-.5a2.98063,2.98063,0,0,1,.87891-2.12158a3.06088,3.06088,0,0,1,3.83545-.34082a3.02248,3.02248,0,0,1,.40723.34131a2.99976,2.99976,0,0,1-2.1215899999999994,5.12109h-.5v4h1v-3.030760000000001a4.00038,4.00038,0,0,0,2.3286099999999994-6.797369999999999Z"/></vector>\ No newline at end of file
maps/src/main/res/drawable/direction_roundabout_right.xml
diff --git a/maps/src/main/res/drawable/direction_roundabout_right.xml b/maps/src/main/res/drawable/direction_roundabout_right.xmldeleted file mode 100644index 03add591e1..0000000000--- a/maps/src/main/res/drawable/direction_roundabout_right.xml+++ /dev/null@@ -1 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="20dp" android:height="20dp" android:viewportWidth="20" android:viewportHeight="20"><path android:fillColor="#FF000000" android:pathData="M7,6.2a3.8,3.8,0,1,1-3.8,3.8a3.80428,3.80428,0,0,1,3.8-3.8m0,7a3.2,3.2,0,1,0-3.2-3.1999999999999993a3.20363,3.20363,0,0,0,3.2,3.1999999999999993m0-7.199999999999999a4,4,0,1,0,4,4a4.00458,4.00458,0,0,0-4-4h0Zm0,7a3,3,0,1,1,3-3a3.00328,3.00328,0,0,1-3,3h0Zm7.83777-5.45184a.1933.1933,0,0,0-.31177.20471l.67188,1.47589a.17881.17881,0,0,1-.18872.2712399999999988h-5.00916v.5a2.99994,2.99994,0,0,1-3,3h-.5v4h1v-3.030760000000001a4.0032,4.0032,0,0,0,3.469239999999999-3.469239999999999h4.03992a.17881.17881,0,0,1,.18872.27124l-.6718799999999998,1.4758899999999997a.1933.1933,0,0,0,.31177.20471l3.1713900000000024-2.4518400000000007Z"/></vector>\ No newline at end of file
maps/src/main/res/drawable/direction_turn_left.xml
diff --git a/maps/src/main/res/drawable/direction_turn_left.xml b/maps/src/main/res/drawable/direction_turn_left.xmldeleted file mode 100644index 85dcf0474f..0000000000--- a/maps/src/main/res/drawable/direction_turn_left.xml+++ /dev/null@@ -1 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="20dp" android:height="20dp" android:viewportWidth="20" android:viewportHeight="20"><path android:fillColor="#FF000000" android:pathData="M10,5.97986l.011.00183a6.06019,6.06019,0,0,1,5.989000000000001,6.07324v3.9450699999999994h-.003109999999999502l.002,1.50317a.49614.49614,0,0,1-.49620000000000175.4968299999999992h-1.0064700000000002a.49622.49622,0,0,1-.4962199999999992-.496220000000001v-5.448849999999998a4.05782,4.05782,0,0,0-3.98877-4.07324h-1.99878a.3576.3576,0,0,0-.37738.54248l1.3437500000000009,2.951830000000001a.38659.38659,0,0,1-.62354.40942l-6.34698-4.885420000000002l6.347-4.922a.38659.38659,0,0,1,.62354.40942l-1.3437700000000001,2.9518499999999994a.35757.35757,0,0,0,.37738.54242h1.9875500000000006"/></vector>\ No newline at end of file
maps/src/main/res/drawable/direction_turn_right.xml
diff --git a/maps/src/main/res/drawable/direction_turn_right.xml b/maps/src/main/res/drawable/direction_turn_right.xmldeleted file mode 100644index 4438838f18..0000000000--- a/maps/src/main/res/drawable/direction_turn_right.xml+++ /dev/null@@ -1 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="20dp" android:height="20dp" android:viewportWidth="20" android:viewportHeight="20"><path android:fillColor="#FF000000" android:pathData="M9.98877,7.98169a4.05782,4.05782,0,0,0-3.9887700000000006,4.07324v5.44885a.49622.49622,0,0,1-.4962200000000001.496220000000001h-1.0064700000000002a.49614.49614,0,0,1-.49615-.49683l.0019500000000007844-1.5031700000000008h-.0031100000000003902v-3.9450699999999994a6.06019,6.06019,0,0,1,5.989000000000001-6.07324l.010999999999999233-.0018299999999999983v.0018299999999999983h1.98755a.35757.35757,0,0,0,.37738-.54242l-1.3437500000000018-2.9518400000000007a.38659.38659,0,0,1,.6235300000000006-.40942999999999996l6.346990000000002,4.922000000000001l-6.347,4.88544a.38659.38659,0,0,1-.62354-.40942l1.34375-2.95184a.3576.3576,0,0,0-.37738-.54248h-1.998759999999999Z"/></vector>\ No newline at end of file
maps/src/main/res/drawable/direction_turn_sharp_left.xml
diff --git a/maps/src/main/res/drawable/direction_turn_sharp_left.xml b/maps/src/main/res/drawable/direction_turn_sharp_left.xmldeleted file mode 100644index e4b6408763..0000000000--- a/maps/src/main/res/drawable/direction_turn_sharp_left.xml+++ /dev/null@@ -1 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="20dp" android:height="20dp" android:viewportWidth="20" android:viewportHeight="20"><path android:fillColor="#FF000000" android:pathData="M15.49771,17.99542a.49779.49779,0,0,1-.49779-.49779v-12.4983l-.2797799999999988-.006330000000000169a2.56758,2.56758,0,0,0-2.0957.79l-5.39527,4.61283a.34918.34918,0,0,0,.08252.63177l2.92877,1.39331a.38658.38658,0,0,1-.21344.71472l-8.0105.33209l1.69568-7.836a.38661.38661,0,0,1,.74072-.0882l.8725,3.12372a.35757.35757,0,0,0,.638.17206l.0037800000000007827.00446999999999953l5.392099999999999-4.609089999999999a4.46634,4.46634,0,0,1,3.38477-1.24121l.26416.002a1.92935,1.92935,0,0,1,1.43408.56885a2.10247,2.10247,0,0,1,.55713,1.46045l.000460000000000349,12.472840000000001a.49779.49779,0,0,1-.49779.49781h-1.0044Z"/></vector>\ No newline at end of file
maps/src/main/res/drawable/direction_turn_sharp_right.xml
diff --git a/maps/src/main/res/drawable/direction_turn_sharp_right.xml b/maps/src/main/res/drawable/direction_turn_sharp_right.xmldeleted file mode 100644index 336a2d4472..0000000000--- a/maps/src/main/res/drawable/direction_turn_sharp_right.xml+++ /dev/null@@ -1 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="20dp" android:height="20dp" android:viewportWidth="20" android:viewportHeight="20"><path android:fillColor="#FF000000" android:pathData="M3.49789,17.99542a.49779.49779,0,0,1-.49779-.49781l.00047000000000041453-12.472889999999998a2.10247,2.10247,0,0,1,.5571299999999999-1.4604500000000002a1.92935,1.92935,0,0,1,1.43408-.56885l.26416-.002a4.46634,4.46634,0,0,1,3.38476,1.2412599999999996l5.392099999999999,4.609089999999999l.00378-.00446a.35757.35757,0,0,0,.638-.17206l.8725-3.12372a.38661.38661,0,0,1,.74072.0882l1.69568,7.836l-8.01048-.3320899999999991a.38658.38658,0,0,1-.21344-.71472l2.92877-1.39331a.34918.34918,0,0,0,.08252-.63177l-5.395280000000001-4.612840000000001a2.56758,2.56758,0,0,0-2.0957-.79l-.27979.00635v12.4983a.49779.49779,0,0,1-.49779.49779h-1.0043999999999995Z"/></vector>\ No newline at end of file
maps/src/main/res/drawable/direction_turn_slight_left.xml
diff --git a/maps/src/main/res/drawable/direction_turn_slight_left.xml b/maps/src/main/res/drawable/direction_turn_slight_left.xmldeleted file mode 100644index 6613e362ec..0000000000--- a/maps/src/main/res/drawable/direction_turn_slight_left.xml+++ /dev/null@@ -1 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="20dp" android:height="20dp" android:viewportWidth="20" android:viewportHeight="20"><path android:fillColor="#FF000000" android:pathData="M14.9859,14.043v3.46082a.49621.49621,0,0,1-.4961600000000015.4961800000000025h-1.0065299999999997a.49614.49614,0,0,1-.49615-.49683l.0047-3.60767a5.21819,5.21819,0,0,0-1.665-4.144l-2.448220000000001-2.0656499999999998a.35758.35758,0,0,0-.6405.16266l-.91821,3.1106a.38663.38663,0,0,1-.7393899999999993-.09910999999999959l-1.5804400000000003-7.859999999999999l8.00476.44965a.38658.38658,0,0,1,.20294.71777l-2.9489199999999993,1.3501599999999998a.3576.3576,0,0,0-.07019.6571l2.45746,2.07385a7.25158,7.25158,0,0,1,2.339850000000002,5.7944700000000005Z"/></vector>\ No newline at end of file
maps/src/main/res/drawable/direction_turn_slight_right.xml
diff --git a/maps/src/main/res/drawable/direction_turn_slight_right.xml b/maps/src/main/res/drawable/direction_turn_slight_right.xmldeleted file mode 100644index fb4f2741f7..0000000000--- a/maps/src/main/res/drawable/direction_turn_slight_right.xml+++ /dev/null@@ -1 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="20dp" android:height="20dp" android:viewportWidth="20" android:viewportHeight="20"><path android:fillColor="#FF000000" android:pathData="M7.35395,8.24854l2.45746-2.07386a.3576.3576,0,0,0-.07019-.6571l-2.94892-1.3501600000000007a.38658.38658,0,0,1,.20294-.71777l8.004760000000001-.4496500000000001l-1.58044,7.86a.38663.38663,0,0,1-.73938.09912l-.9181799999999996-3.1106099999999985a.35758.35758,0,0,0-.6405-.16266l-2.448220000000001,2.0656099999999995a5.21819,5.21819,0,0,0-1.665,4.144l.0047,3.60767a.49614.49614,0,0,1-.49618999999999946.49687000000000126h-1.0065300000000006a.49621.49621,0,0,1-.49615-.49622v-3.4607799999999997a7.25157,7.25157,0,0,1,2.3398400000000006-5.794459999999999Z"/></vector>\ No newline at end of file
maps/src/main/res/drawable/direction_turn_straight.xml
diff --git a/maps/src/main/res/drawable/direction_turn_straight.xml b/maps/src/main/res/drawable/direction_turn_straight.xmldeleted file mode 100644index 86526a4e70..0000000000--- a/maps/src/main/res/drawable/direction_turn_straight.xml+++ /dev/null@@ -1 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="20dp" android:height="20dp" android:viewportWidth="20" android:viewportHeight="20"><path android:fillColor="#FF000000" android:pathData="M14.50342,8.96637l-2.9518500000000003-1.3437499999999991a.35755.35755,0,0,0-.5424100000000003.3773799999999996v9.49652a.50346.50346,0,0,1-.5034799999999997.5034799999999997h-.993a.50346.50346,0,0,1-.50348-.50348v-9.49652a.35756.35756,0,0,0-.54242-.37738l-2.9518899999999997,1.3437499999999991a.38659.38659,0,0,1-.40942-.62354l4.903689999999999-6.342829999999999l4.90369,6.34283a.3866.3866,0,0,1-.40942999999999863.6235400000000002Z"/></vector>\ No newline at end of file
maps/src/main/res/drawable/direction_uturn.xml
diff --git a/maps/src/main/res/drawable/direction_uturn.xml b/maps/src/main/res/drawable/direction_uturn.xmldeleted file mode 100644index 19b0a724bd..0000000000--- a/maps/src/main/res/drawable/direction_uturn.xml+++ /dev/null@@ -1 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="20dp" android:height="20dp" android:viewportWidth="20" android:viewportHeight="20"><path android:fillColor="#FF000000" android:pathData="M17,8v9.49652a.50346.50346,0,0,1-.5034799999999997.5034799999999997h-.993a.50346.50346,0,0,1-.50352-.5034799999999997v-9.49652a3.5,3.5,0,0,0-7,0v4h-.009089999999999598a.35757.35757,0,0,0,.54242.37738l2.95184-1.34375a.3866.3866,0,0,1,.40942.62354l-4.9036800000000005,6.342829999999999l-4.9037500000000005-6.342829999999999a.3866.3866,0,0,1,.40942-.62354l2.95184,1.34375a.3576.3576,0,0,0,.5424900000000008-.3773800000000005h.009089999999999598v-4a5.5,5.5,0,0,1,11,0Z"/></vector>\ No newline at end of file
maps/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/maps/src/main/res/mipmap-anydpi/ic_launcher.xml b/maps/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index ef49c99170..0000000000--- a/maps/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
maps/src/main/res/resources.properties
diff --git a/maps/src/main/res/resources.properties b/maps/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/maps/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
messages/src/main/ic_launcher-playstore.png
diff --git a/messages/src/main/ic_launcher-playstore.png b/messages/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 66251980d8..0000000000Binary files a/messages/src/main/ic_launcher-playstore.png and /dev/null differ
messages/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
diff --git a/messages/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/messages/src/main/res/mipmap-anydpi-v26/ic_launcher.xmldeleted file mode 100644index 1a599ed99d..0000000000--- a/messages/src/main/res/mipmap-anydpi-v26/ic_launcher.xml+++ /dev/null@@ -1,21 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<!--- ~ 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.- -->-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
messages/src/main/res/resources.properties
diff --git a/messages/src/main/res/resources.properties b/messages/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/messages/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
music/src/main/ic_launcher-playstore.png
diff --git a/music/src/main/ic_launcher-playstore.png b/music/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 4083519d48..0000000000Binary files a/music/src/main/ic_launcher-playstore.png and /dev/null differ
music/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/music/src/main/res/mipmap-anydpi/ic_launcher.xml b/music/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index ef49c99170..0000000000--- a/music/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
music/src/main/res/resources.properties
diff --git a/music/src/main/res/resources.properties b/music/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/music/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
notes/src/main/ic_launcher-playstore.png
diff --git a/notes/src/main/ic_launcher-playstore.png b/notes/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 25a4d5b31a..0000000000Binary files a/notes/src/main/ic_launcher-playstore.png and /dev/null differ
notes/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/notes/src/main/res/mipmap-anydpi/ic_launcher.xml b/notes/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index ef49c99170..0000000000--- a/notes/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
notes/src/main/res/resources.properties
diff --git a/notes/src/main/res/resources.properties b/notes/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/notes/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
office/src/main/ic_launcher-playstore.png
diff --git a/office/src/main/ic_launcher-playstore.png b/office/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 2e98875bd2..0000000000Binary files a/office/src/main/ic_launcher-playstore.png and /dev/null differ
office/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/office/src/main/res/mipmap-anydpi/ic_launcher.xml b/office/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index 0b0d585e42..0000000000--- a/office/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>
office/src/main/res/resources.properties
diff --git a/office/src/main/res/resources.properties b/office/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/office/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
openassistant/src/main/ic_launcher-playstore.png
diff --git a/openassistant/src/main/ic_launcher-playstore.png b/openassistant/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 0555ecb6ef..0000000000Binary files a/openassistant/src/main/ic_launcher-playstore.png and /dev/null differ
openassistant/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/openassistant/src/main/res/mipmap-anydpi/ic_launcher.xml b/openassistant/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index ef49c99170..0000000000--- a/openassistant/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
openassistant/src/main/res/resources.properties
diff --git a/openassistant/src/main/res/resources.properties b/openassistant/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/openassistant/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
passwords/src/main/ic_launcher-playstore.png
diff --git a/passwords/src/main/ic_launcher-playstore.png b/passwords/src/main/ic_launcher-playstore.pngdeleted file mode 100644index db5a77073d..0000000000Binary files a/passwords/src/main/ic_launcher-playstore.png and /dev/null differ
passwords/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/passwords/src/main/res/mipmap-anydpi/ic_launcher.xml b/passwords/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index ef49c99170..0000000000--- a/passwords/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
passwords/src/main/res/resources.properties
diff --git a/passwords/src/main/res/resources.properties b/passwords/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/passwords/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
pdf/src/main/ic_launcher-playstore.png
diff --git a/pdf/src/main/ic_launcher-playstore.png b/pdf/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 4983565f59..0000000000Binary files a/pdf/src/main/ic_launcher-playstore.png and /dev/null differ
pdf/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/pdf/src/main/res/mipmap-anydpi/ic_launcher.xml b/pdf/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index 5eaa4cc012..0000000000--- a/pdf/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
pdf/src/main/res/resources.properties
diff --git a/pdf/src/main/res/resources.properties b/pdf/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/pdf/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
photos/src/main/ic_launcher-playstore.png
diff --git a/photos/src/main/ic_launcher-playstore.png b/photos/src/main/ic_launcher-playstore.pngdeleted file mode 100644index 6877508e46..0000000000Binary files a/photos/src/main/ic_launcher-playstore.png and /dev/null differ
photos/src/main/res/mipmap-anydpi/ic_launcher.xml
diff --git a/photos/src/main/res/mipmap-anydpi/ic_launcher.xml b/photos/src/main/res/mipmap-anydpi/ic_launcher.xmldeleted file mode 100644index ef49c99170..0000000000--- a/photos/src/main/res/mipmap-anydpi/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>\ No newline at end of file
photos/src/main/res/resources.properties
diff --git a/photos/src/main/res/resources.properties b/photos/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/photos/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
things/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
diff --git a/things/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/things/src/main/res/mipmap-anydpi-v26/ic_launcher.xmldeleted file mode 100644index 0b0d585e42..0000000000--- a/things/src/main/res/mipmap-anydpi-v26/ic_launcher.xml+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">- <background android:drawable="@color/ic_launcher_background"/>- <foreground android:drawable="@drawable/ic_launcher_foreground"/>- <monochrome android:drawable="@drawable/ic_launcher_foreground"/>-</adaptive-icon>
things/src/main/res/resources.properties
diff --git a/things/src/main/res/resources.properties b/things/src/main/res/resources.propertiesdeleted file mode 100644index 467b3efec9..0000000000--- a/things/src/main/res/resources.properties+++ /dev/null@@ -1 +0,0 @@-unqualifiedResLocale=en-US
weather/src/main/ic_launcher-playstore.png
diff --git a/weather/src/main/ic_launcher-playstore.png b/weather/src/main/ic_launcher-playstore.pngdeleted file mode 100644index da70ebdae2..0000000000Binary files a/weather/src/main/ic_launcher-playstore.png and /dev/null differ
weather/src/main/java/com/vayunmathur/weather/ui/components/CurrentWeatherCard.kt
diff --git a/weather/src/main/java/com/vayunmathur/weather/ui/components/CurrentWeatherCard.kt b/weather/src/main/java/com/vayunmathur/weather/ui/components/CurrentWeatherCard.ktindex fb0df5b310..d5aba3ab69 100644--- a/weather/src/main/java/com/vayunmathur/weather/ui/components/CurrentWeatherCard.kt+++ b/weather/src/main/java/com/vayunmathur/weather/ui/components/CurrentWeatherCard.kt@@ -52,7 +52,7 @@ fun CurrentWeatherCard( ) { Row(verticalAlignment = Alignment.CenterVertically) { WeatherIconBox(- iconRes = condition.iconRes(isDay),+ icon = condition.iconContent(isDay), size = 32.dp, tint = MaterialTheme.colorScheme.onSurface, )
weather/src/main/java/com/vayunmathur/weather/ui/components/DailyCard.kt
diff --git a/weather/src/main/java/com/vayunmathur/weather/ui/components/DailyCard.kt b/weather/src/main/java/com/vayunmathur/weather/ui/components/DailyCard.ktindex 810a5b8f66..1fb56da320 100644--- a/weather/src/main/java/com/vayunmathur/weather/ui/components/DailyCard.kt+++ b/weather/src/main/java/com/vayunmathur/weather/ui/components/DailyCard.kt@@ -16,6 +16,7 @@ import com.vayunmathur.library.ui.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier+import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.dp import com.vayunmathur.weather.R import com.vayunmathur.weather.network.Daily@@ -61,7 +62,7 @@ fun DailyCard( weekday = if (index == 0) "Today" else dayLabel(date), maxTemp = hi, minTemp = lo,- iconRes = weatherConditionForCode(code).iconRes(true),+ icon = weatherConditionForCode(code).iconContent(true), precipitationProbability = precip, tempUnit = tempUnit, isSelected = date != null && date == selectedIsoDate,@@ -80,7 +81,7 @@ private fun DailyItem( weekday: String, maxTemp: Double, minTemp: Double,- iconRes: Int,+ icon: @Composable (Modifier, Color) -> Unit, precipitationProbability: Int, tempUnit: TemperatureUnit, isSelected: Boolean,@@ -112,7 +113,7 @@ private fun DailyItem( ) } Column(horizontalAlignment = Alignment.CenterHorizontally) {- WeatherIconBox(iconRes = iconRes, size = 38.dp)+ WeatherIconBox(icon = icon, size = 38.dp) Spacer(Modifier.height(8.dp)) Text( "${precipitationProbability}%",
weather/src/main/java/com/vayunmathur/weather/ui/components/HourlyCard.kt
diff --git a/weather/src/main/java/com/vayunmathur/weather/ui/components/HourlyCard.kt b/weather/src/main/java/com/vayunmathur/weather/ui/components/HourlyCard.ktindex 11749127cd..95d8216c6f 100644--- a/weather/src/main/java/com/vayunmathur/weather/ui/components/HourlyCard.kt+++ b/weather/src/main/java/com/vayunmathur/weather/ui/components/HourlyCard.kt@@ -103,7 +103,7 @@ fun HourlyCard( temperature = cell.temperature, isNow = index == 0, isSelected = selectedIsoTime == cell.iso,- iconRes = weatherConditionForCode(cell.weatherCode).iconRes(cell.isDay),+ icon = weatherConditionForCode(cell.weatherCode).iconContent(cell.isDay), tempUnit = tempUnit, onClick = { onHourSelected(cell.iso) }, )@@ -122,7 +122,7 @@ private fun HourlyItem( temperature: Double, isNow: Boolean, isSelected: Boolean,- iconRes: Int,+ icon: @Composable (Modifier, Color) -> Unit, tempUnit: TemperatureUnit, onClick: () -> Unit, ) {@@ -142,7 +142,7 @@ private fun HourlyItem( .padding(bottom = 3.dp) .alpha(if (precipitationProbability > 0) 1f else 0f), )- WeatherIconBox(iconRes = iconRes, size = 28.dp)+ WeatherIconBox(icon = icon, size = 28.dp) Spacer(Modifier.height(3.dp)) Text( time,
weather/src/main/java/com/vayunmathur/weather/ui/components/LocationItem.kt
diff --git a/weather/src/main/java/com/vayunmathur/weather/ui/components/LocationItem.kt b/weather/src/main/java/com/vayunmathur/weather/ui/components/LocationItem.ktindex fa0f26a5b1..403c86bb75 100644--- a/weather/src/main/java/com/vayunmathur/weather/ui/components/LocationItem.kt+++ b/weather/src/main/java/com/vayunmathur/weather/ui/components/LocationItem.kt@@ -74,7 +74,7 @@ fun LocationItem( contentAlignment = Alignment.Center, ) { WeatherIconBox(- iconRes = condition.iconRes(isDay),+ icon = condition.iconContent(isDay), size = 34.dp, tint = contentColor, )
weather/src/main/java/com/vayunmathur/weather/ui/components/WeatherIconBox.kt
diff --git a/weather/src/main/java/com/vayunmathur/weather/ui/components/WeatherIconBox.kt b/weather/src/main/java/com/vayunmathur/weather/ui/components/WeatherIconBox.ktindex 9ab2233b06..fc9f9aadef 100644--- a/weather/src/main/java/com/vayunmathur/weather/ui/components/WeatherIconBox.kt+++ b/weather/src/main/java/com/vayunmathur/weather/ui/components/WeatherIconBox.kt@@ -1,30 +1,49 @@ package com.vayunmathur.weather.ui.components -import com.vayunmathur.library.ui.Icon-import com.vayunmathur.library.ui.MaterialTheme import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.foundation.layout.size import androidx.compose.ui.graphics.Color-import androidx.compose.ui.res.painterResource import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp+import com.vayunmathur.library.ui.IconClearNight+import com.vayunmathur.library.ui.IconCloudy+import com.vayunmathur.library.ui.IconDrizzle+import com.vayunmathur.library.ui.IconFog+import com.vayunmathur.library.ui.IconPartlyCloudyDay+import com.vayunmathur.library.ui.IconPartlyCloudyNight+import com.vayunmathur.library.ui.IconRain+import com.vayunmathur.library.ui.IconSnow+import com.vayunmathur.library.ui.IconSunny+import com.vayunmathur.library.ui.IconThunder+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.weather.util.WeatherCondition /** * Reusable weather-icon renderer. Same role as WeatherMaster's- * `WeatherIconBox` — caller provides the drawable id, we render it at the+ * `WeatherIconBox` — caller provides the icon composable, we render it at the * requested size in `onSurface` color (overridable). */ @Composable fun WeatherIconBox(- iconRes: Int,+ icon: @Composable (Modifier, Color) -> Unit, size: Dp = 24.dp, tint: Color = MaterialTheme.colorScheme.onSurface, ) {- Icon(- painter = painterResource(iconRes),- contentDescription = null,- modifier = Modifier.size(size),- tint = tint,- )+ icon(Modifier.size(size), tint)+}++/** Composable icon for this condition. `isDay` swaps clear / partly-cloudy night variants. */+fun WeatherCondition.iconContent(isDay: Boolean): @Composable (Modifier, Color) -> Unit = when (this) {+ WeatherCondition.Clear ->+ { m, t -> if (isDay) IconSunny(m, t) else IconClearNight(m, t) }+ WeatherCondition.PartlyCloudy ->+ { m, t -> if (isDay) IconPartlyCloudyDay(m, t) else IconPartlyCloudyNight(m, t) }+ WeatherCondition.Cloudy -> { m, t -> IconCloudy(m, t) }+ WeatherCondition.Fog -> { m, t -> IconFog(m, t) }+ WeatherCondition.Drizzle -> { m, t -> IconDrizzle(m, t) }+ WeatherCondition.Rain -> { m, t -> IconRain(m, t) }+ WeatherCondition.Snow -> { m, t -> IconSnow(m, t) }+ WeatherCondition.Thunderstorm -> { m, t -> IconThunder(m, t) }+ WeatherCondition.Unknown -> { m, t -> IconCloudy(m, t) } }
weather/src/main/java/com/vayunmathur/weather/ui/components/blocks/PressureBlock.kt
diff --git a/weather/src/main/java/com/vayunmathur/weather/ui/components/blocks/PressureBlock.kt b/weather/src/main/java/com/vayunmathur/weather/ui/components/blocks/PressureBlock.ktindex 39a6397cea..666342165b 100644--- a/weather/src/main/java/com/vayunmathur/weather/ui/components/blocks/PressureBlock.kt+++ b/weather/src/main/java/com/vayunmathur/weather/ui/components/blocks/PressureBlock.kt@@ -4,7 +4,7 @@ import androidx.compose.foundation.Image import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.offset import com.vayunmathur.library.ui.MaterialTheme-import com.vayunmathur.library.ui.Icon+import com.vayunmathur.library.ui.IconPressure import com.vayunmathur.library.ui.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment@@ -64,7 +64,7 @@ fun PressureBlock(current: Current, pressureUnit: PressureUnit) { ) Box(Modifier.align(Alignment.TopCenter)) { BlockHeader(- icon = { m, c -> Icon(painterResource(R.drawable.outline_pressure_24), null, m, c) },+ icon = { m, c -> IconPressure(m, c) }, title = "Pressure", topPadding = 38.dp, )
weather/src/main/res/drawable/outline_pressure_24.xml
diff --git a/weather/src/main/res/drawable/outline_pressure_24.xml b/weather/src/main/res/drawable/outline_pressure_24.xmldeleted file mode 100644index 2773b8f702..0000000000--- a/weather/src/main/res/drawable/outline_pressure_24.xml+++ /dev/null@@ -1,10 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android"- android:width="24dp"- android:height="24dp"- android:viewportWidth="960"- android:viewportHeight="960"- android:tint="?attr/colorControlNormal">- <path- android:fillColor="@android:color/white"- android:pathData="M160,560L160,480L800,480L800,560L160,560ZM160,440L160,360L800,360L800,440L160,440ZM440,880L440,752L376,816L320,760L480,600L640,760L584,816L520,754L520,880L440,880ZM480,320L320,160L376,104L440,168L440,40L520,40L520,168L584,104L640,160L480,320Z"/>-</vector>
weather/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
diff --git a/weather/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/weather/src/main/res/mipmap-anydpi-v26/ic_launcher.xmldeleted file mode 100644index 1a599ed99d..0000000000--- a/weather/src/main/res/mipmap-anydpi-v26/ic_launcher.xml+++ /dev/null@@ -1,21 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<!--- ~ 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 distri
Diff truncated.