Modern Apps git

← Modern-Apps.git

library consolidation

Commit
f239436dd2ff25914f2b7542fc8d89b522be755f
Author
Vayun Mathur <[email protected]>
When
2026-07-25 16:25 UTC (4 months ago)
Parents
a0be1bb

Diff

astronomy/build.gradle.kts
diff --git a/astronomy/build.gradle.kts b/astronomy/build.gradle.ktsindex 8b58dc7bd1..c32df00730 100644--- a/astronomy/build.gradle.kts+++ b/astronomy/build.gradle.kts@@ -24,12 +24,9 @@ metadataScreenshots {  dependencies {     implementation(libs.androidx.camera.core)-    implementation(libs.androidx.camera.camera2)     implementation(libs.androidx.camera.lifecycle)-    implementation(libs.androidx.camera.view)     implementation(libs.androidx.camera.compose)     implementation(libs.androidx.datastore.preferences)-    implementation(libs.androidx.exifinterface)      // Unit tests for Phase 7 (JVM, no Android)     testImplementation(libs.junit)
camera/build.gradle.kts
diff --git a/camera/build.gradle.kts b/camera/build.gradle.ktsindex d474e043f6..de74f3fb86 100644--- a/camera/build.gradle.kts+++ b/camera/build.gradle.kts@@ -130,5 +130,5 @@ dependencies {     implementation(libs.zxing.core)     // On-device portrait segmentation via ncnn (Tencent, BSD-3, CPU-only). Forked     // and published as an AAR through JitPack, same pattern as Stockfish-Library.-    implementation("com.github.vayun-mathur:ncnn-android:1.1.0")+    implementation(libs.ncnn.android) }
education/build.gradle.kts
diff --git a/education/build.gradle.kts b/education/build.gradle.ktsindex 1141ad705d..f514f699a9 100644--- a/education/build.gradle.kts+++ b/education/build.gradle.kts@@ -18,9 +18,6 @@ dependencies {     implementRoom(libs)     implementation(project(":library:room")) -    implementation(libs.coil.compose)-    implementation("androidx.compose.material:material-icons-extended")-     // Video playback (Khan/YouTube streaming via NewPipe + media3), like :youpipe.     implementation(project(":youpipe:extractor"))     implementation(libs.androidx.media3.exoplayer)
email/build.gradle.kts
diff --git a/email/build.gradle.kts b/email/build.gradle.ktsindex 52bf3c62a2..5373d1826a 100644--- a/email/build.gradle.kts+++ b/email/build.gradle.kts@@ -49,10 +49,6 @@ dependencies {     implementation(libs.jakarta.mail)     implementation(libs.jakarta.activation)     implementation(libs.androidx.browser)-    implementation(libs.ktor.client.core)-    implementation(libs.ktor.client.cio)-    implementation(libs.ktor.client.content.negotiation)-    implementation(libs.ktor.serialization.kotlinx.json)     implementation(libs.kotlinx.serialization.json)     // Room     implementation(libs.androidx.room.runtime)@@ -64,5 +60,4 @@ dependencies {     implementation(libs.androidx.glance.appwidget)     implementation(libs.androidx.glance.material3)     implementation(project(":library:widgets"))-    implementation(libs.coil.compose) }
everysync/build.gradle.kts
diff --git a/everysync/build.gradle.kts b/everysync/build.gradle.ktsindex acfdf9f16f..6480b3fa59 100644--- a/everysync/build.gradle.kts+++ b/everysync/build.gradle.kts@@ -53,8 +53,5 @@ dependencies {     // ktor client (custom WebDAV methods + JSON)     implementation(project(":library:network")) -    // Material icons (Default.* + AutoMirrored)-    implementation("androidx.compose.material:material-icons-extended")-     testImplementation(libs.junit) }
games/chess/build.gradle.kts
diff --git a/games/chess/build.gradle.kts b/games/chess/build.gradle.ktsindex 4f44cfcbe1..f77c1ed890 100644--- a/games/chess/build.gradle.kts+++ b/games/chess/build.gradle.kts@@ -18,6 +18,6 @@ android {  dependencies {     implementation(project(":sdk:games"))-    implementation("com.github.vayun-mathur:Stockfish-Library:1.1.0")-    testImplementation("junit:junit:4.13.2")+    implementation(libs.stockfish.library)+    testImplementation(libs.junit) }
gradle/libs.versions.toml
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.tomlindex f17f9d1f57..5dcab7debf 100644--- a/gradle/libs.versions.toml+++ b/gradle/libs.versions.toml@@ -8,7 +8,6 @@ quickjs = "1.0.5" brotli = "0.1.2" # Build & Core Language agp = "9.4.0-alpha04"-fhirModel = "1.0.0-beta02" flatgeobuf = "3.29.0" kotlin = "2.4.0" kotlinGradlePlugin = "2.3.20"@@ -66,9 +65,6 @@ browser = "1.9.0" biometric = "1.4.0-alpha07" glance = "1.3.0-alpha02" connectClient = "1.2.0-alpha04"-healthServicesClient = "1.1.0-rc02"-wearTiles = "1.6.1"-wearProtolayout = "1.4.1" cryptographyCore = "0.6.0" libphonenumber = "9.0.34" material3AdaptiveNavigationSuite = "1.5.0-alpha23"@@ -86,6 +82,11 @@ onnxruntimeAndroid = "1.27.0" jakartaMail = "2.0.3" angusActivation = "2.0.2" jakartaActivationApi = "2.1.3"+stockfishLibrary = "1.1.0"+ncnnAndroid = "1.1.0"+kxml2 = "2.3.0"+libsignalAndroid = "0.86.5"+signalProtocolJava = "2.8.1"  [libraries] # AndroidX Core & Lifecycle@@ -114,7 +115,6 @@ google-jsr305 = { module = "com.google.code.findbugs:jsr305", version.ref = "jsr protobuf-javalite = { module = "com.google.protobuf:protobuf-javalite", version.ref = "protobufJavalite" } quickjs-kt = { module = "io.github.dokar3:quickjs-kt", version.ref = "quickjs" } brotli-dec = { module = "org.brotli:dec", version.ref = "brotli" }-javax-annotation-api = { module = "javax.annotation:javax.annotation-api", version = "1.3.2" }  # Instrumented screenshot tests (metadata generation) junit = { module = "junit:junit", version.ref = "junit" }@@ -131,8 +131,6 @@ androidx-compose-material3 = { group = "androidx.compose.material3", name = "mat androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" } androidx-wear-compose-material = { group = "androidx.wear.compose", name = "compose-material", version.ref = "wearComposeMaterial" } androidx-wear-compose-foundation = { group = "androidx.wear.compose", name = "compose-foundation", version.ref = "wearComposeMaterial" }-androidx-compose-runtime-livedata = { group = "androidx.compose.runtime", name = "runtime-livedata" }- # Navigation androidx-navigation3-runtime = { group = "androidx.navigation3", name = "navigation3-runtime", version.ref = "navigation3" } androidx-navigation3-ui = { group = "androidx.navigation3", name = "navigation3-ui", version.ref = "navigation3" }@@ -150,21 +148,16 @@ androidx-media3-datasource-okhttp = { group = "androidx.media3", name = "media3- coil-compose = { module = "io.coil-kt:coil-compose", version.ref = "coilCompose" } coil-svg = { module = "io.coil-kt:coil-svg", version.ref = "coilCompose" } coil-video = { module = "io.coil-kt:coil-video", version.ref = "coilCompose" }-fhir-model = { module = "com.google.fhir:fhir-model", version.ref = "fhirModel" } flatgeobuf = { module = "org.wololo:flatgeobuf", version.ref = "flatgeobuf" } kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlinGradlePlugin" } litertlm-android = { module = "com.google.ai.edge.litertlm:litertlm-android", version.ref = "litertlmAndroid" } kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "kotlinxCoroutines" }-kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "kotlinxCoroutines" }  # Maps maplibre-compose = { module = "org.maplibre.compose:maplibre-compose", version.ref = "maplibre" } spatialk-geojson = { module = "org.maplibre.spatialk:geojson", version.ref = "spatialk" } -# On-device OCR--# On-device OCR via ONNX Runtime (MIT, FOSS, no Play Services / no ML Kit). Runs-# the PaddleOCR PP-OCR mobile detection + recognition models shipped as assets.+# On-device AI onnxruntime-android = { module = "com.microsoft.onnxruntime:onnxruntime-android", version.ref = "onnxruntimeAndroid" }  # App Widgets (Glance)@@ -191,22 +184,11 @@ kotlinx-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.  # Specialized Utilities androidx-connect-client = { module = "androidx.health.connect:connect-client", version.ref = "connectClient" }-# Wear OS Health Services — direct, OEM-calibrated on-watch measurements. Not-# Google Play / GMS; safe to keep isolated to the watch module.-androidx-health-services-client = { module = "androidx.health:health-services-client", version.ref = "healthServicesClient" }-# Wear OS Tiles + ProtoLayout — quick-glance workout controls surface. Wear-only-# platform components; no Google Play / GMS.-androidx-wear-tiles = { module = "androidx.wear.tiles:tiles", version.ref = "wearTiles" }-androidx-wear-protolayout = { module = "androidx.wear.protolayout:protolayout", version.ref = "wearProtolayout" }-androidx-wear-protolayout-material = { module = "androidx.wear.protolayout:protolayout-material", version.ref = "wearProtolayout" }-androidx-wear-protolayout-expression = { module = "androidx.wear.protolayout:protolayout-expression", version.ref = "wearProtolayout" }-androidx-concurrent-futures = { module = "androidx.concurrent:concurrent-futures", version = "1.3.0" } cryptography-core = { module = "dev.whyoleg.cryptography:cryptography-core", version.ref = "cryptographyCore" } cryptography-provider-jdk = { module = "dev.whyoleg.cryptography:cryptography-provider-jdk", version.ref = "cryptographyCore" } libphonenumber = { module = "com.googlecode.libphonenumber:libphonenumber", version.ref = "libphonenumber" } material = { group = "com.google.android.material", name = "material", version.ref = "material" } jakarta-mail = { module = "org.eclipse.angus:jakarta.mail", version.ref = "jakartaMail" }-jakarta-mail-api = { module = "jakarta.mail:jakarta.mail-api", version = "2.1.3" } jakarta-activation = { module = "org.eclipse.angus:angus-activation", version.ref = "angusActivation" } jakarta-activation-api = { module = "jakarta.activation:jakarta.activation-api", version.ref = "jakartaActivationApi" } androidx-autofill = { group = "androidx.autofill", name = "autofill", version.ref = "autofill" }@@ -223,12 +205,15 @@ androidx-ink-authoring = { group = "androidx.ink", name = "ink-authoring", versi androidx-ink-brush = { group = "androidx.ink", name = "ink-brush", version.ref = "ink" } androidx-ink-strokes = { group = "androidx.ink", name = "ink-strokes", version.ref = "ink" } androidx-ink-rendering = { group = "androidx.ink", name = "ink-rendering", version.ref = "ink" }-androidx-ink-geometry = { group = "androidx.ink", name = "ink-geometry", version.ref = "ink" } protobuf-java = { module = "com.google.protobuf:protobuf-java", version.ref = "protobuf" } zxing-core = { module = "com.google.zxing:core", version.ref = "zxing" } keepassjava2-dom = { module = "org.linguafranca.pwdb:KeePassJava2-dom", version.ref = "keepassJava2" } bouncycastle = { module = "org.bouncycastle:bcprov-jdk18on", version.ref = "bouncycastle" }-bouncycastle-pkix = { module = "org.bouncycastle:bcpkix-jdk18on", version.ref = "bouncycastle" }+stockfish-library = { module = "com.github.vayun-mathur:Stockfish-Library", version.ref = "stockfishLibrary" }+ncnn-android = { module = "com.github.vayun-mathur:ncnn-android", version.ref = "ncnnAndroid" }+kxml2 = { module = "net.sf.kxml:kxml2", version.ref = "kxml2" }+libsignal-android = { module = "org.signal:libsignal-android", version.ref = "libsignalAndroid" }+signal-protocol-java = { module = "org.whispersystems:signal-protocol-java", version.ref = "signalProtocolJava" }  [plugins] android-application = { id = "com.android.application", version.ref = "agp" }
health/build.gradle.kts
diff --git a/health/build.gradle.kts b/health/build.gradle.ktsindex 299fb4d434..b6445f088f 100644--- a/health/build.gradle.kts+++ b/health/build.gradle.kts@@ -20,8 +20,6 @@ dependencies {      implementation(libs.androidx.work.runtime.ktx) -    implementation(libs.fhir.model)-     // room     implementRoom(libs)     implementation(project(":library:room"))
library/build.gradle.kts
diff --git a/library/build.gradle.kts b/library/build.gradle.ktsindex ac074bb09f..044e8632ef 100644--- a/library/build.gradle.kts+++ b/library/build.gradle.kts@@ -17,6 +17,4 @@ dependencies {      // GameHub SDK — GameHubReporter bridge     implementation(project(":sdk:games"))--    api(libs.material) }
library/e2ee-p2p/build.gradle.kts
diff --git a/library/e2ee-p2p/build.gradle.kts b/library/e2ee-p2p/build.gradle.ktsindex da8082ab05..3dab43e307 100644--- a/library/e2ee-p2p/build.gradle.kts+++ b/library/e2ee-p2p/build.gradle.kts@@ -15,5 +15,4 @@ dependencies {     implementation(libs.bouncycastle)      testImplementation(libs.junit)-    testImplementation(libs.kotlinx.coroutines.test) }
library/ink/build.gradle.kts
diff --git a/library/ink/build.gradle.kts b/library/ink/build.gradle.ktsindex e850c891b8..92fc529351 100644--- a/library/ink/build.gradle.kts+++ b/library/ink/build.gradle.kts@@ -10,5 +10,4 @@ dependencies {     api(libs.androidx.ink.brush)     api(libs.androidx.ink.strokes)     api(libs.androidx.ink.rendering)-    api(libs.androidx.ink.geometry) }
library/map/build.gradle.kts
diff --git a/library/map/build.gradle.kts b/library/map/build.gradle.ktsindex 0d10cc7e77..b357fd09c9 100644--- a/library/map/build.gradle.kts+++ b/library/map/build.gradle.kts@@ -11,5 +11,5 @@ dependencies {     // Pure-Kotlin coordinate types (Position / BoundingBox) shared with the apps.     api(libs.spatialk.geojson) -    testImplementation("junit:junit:4.13.2")+    testImplementation(libs.junit) }
library/ocr/build.gradle.kts
diff --git a/library/ocr/build.gradle.kts b/library/ocr/build.gradle.ktsindex 7f609d4dc2..c9f9322e99 100644--- a/library/ocr/build.gradle.kts+++ b/library/ocr/build.gradle.kts@@ -6,6 +6,6 @@ dependencies {     // On-device OCR via PP-OCRv5 on ncnn (BSD-3, FOSS, no Play Services / no ML     // Kit). The models + native pipeline ship inside this AAR; consumers only     // see the OcrEngine API.-    implementation("com.github.vayun-mathur:ncnn-android:1.1.0")+    implementation(libs.ncnn.android)     implementation(libs.kotlinx.coroutines.android) }
library/ui/build.gradle.kts
diff --git a/library/ui/build.gradle.kts b/library/ui/build.gradle.ktsindex e41d7b6928..37095f821d 100644--- a/library/ui/build.gradle.kts+++ b/library/ui/build.gradle.kts@@ -14,5 +14,5 @@ dependencies {     // Used only internally (editor toolbars); not re-exported to apps.     implementation("androidx.compose.material:material-icons-extended") -    testImplementation("junit:junit:4.13.2")+    testImplementation(libs.junit) }
messages/build.gradle.kts
diff --git a/messages/build.gradle.kts b/messages/build.gradle.ktsindex e8cd91c9cd..72832f11f7 100644--- a/messages/build.gradle.kts+++ b/messages/build.gradle.kts@@ -147,9 +147,6 @@ androidComponents { }  dependencies {-    // External Libraries-    implementation(libs.libphonenumber)-     // Room     implementation(libs.androidx.room.runtime)     implementation(libs.androidx.room.ktx)@@ -176,14 +173,13 @@ dependencies {     // CameraX — built-in capture fallback when no system camera app     // handles ACTION_IMAGE_CAPTURE (see ui/CameraCaptureScreen.kt).     implementation(libs.androidx.camera.core)-    implementation(libs.androidx.camera.camera2)     implementation(libs.androidx.camera.lifecycle)     implementation(libs.androidx.camera.view)      // Signal protocol crypto (Double Ratchet, sealed sender, pre-keys, etc.).     // Also provides constant-time X25519 (org.signal.libsignal.protocol.ecc.Curve)     // used by the WhatsApp Noise handshake — no Bouncy Castle needed.-    implementation("org.signal:libsignal-android:0.86.5")+    implementation(libs.libsignal.android)     // Classic pure-Java Signal protocol (X3DH) for the WhatsApp bridge. libsignal-android 0.86     // removed X3DH (PQXDH-only), which WhatsApp companion sessions require. This artifact has no     // native lib and a different package (org.whispersystems.libsignal.*), so it coexists with
notes/build.gradle.kts
diff --git a/notes/build.gradle.kts b/notes/build.gradle.ktsindex dc6e45439d..a80257204f 100644--- a/notes/build.gradle.kts+++ b/notes/build.gradle.kts@@ -19,5 +19,4 @@ dependencies {     implementation(project(":library:room"))     implementation(project(":library:ink"))     implementation(libs.coil.compose)-    implementation("androidx.compose.material:material-icons-extended") }\ No newline at end of file
office/build.gradle.kts
diff --git a/office/build.gradle.kts b/office/build.gradle.ktsindex d70300f203..ad7049edc5 100644--- a/office/build.gradle.kts+++ b/office/build.gradle.kts@@ -23,7 +23,7 @@ dependencies {     implementation(libs.ktor.client.cio)     implementation(libs.ktor.client.websockets) -    testImplementation("junit:junit:4.13.2")+    testImplementation(libs.junit)     // Provides a real XmlPullParser implementation for JVM unit tests (Android's is a stub).-    testImplementation("net.sf.kxml:kxml2:2.3.0")+    testImplementation(libs.kxml2) }
passwords/build.gradle.kts
diff --git a/passwords/build.gradle.kts b/passwords/build.gradle.ktsindex 6b5c5f3f5c..1a48af735f 100644--- a/passwords/build.gradle.kts+++ b/passwords/build.gradle.kts@@ -31,6 +31,6 @@ dependencies {     implementation(libs.ktor.client.cio)     implementation(libs.ktor.client.websockets) -    testImplementation("junit:junit:4.13.2")+    testImplementation(libs.junit)     testImplementation(libs.bouncycastle) }\ No newline at end of file
pdf/build.gradle.kts
diff --git a/pdf/build.gradle.kts b/pdf/build.gradle.ktsindex eefa316ec1..f7c643d414 100644--- a/pdf/build.gradle.kts+++ b/pdf/build.gradle.kts@@ -135,7 +135,6 @@ tasks.matching { it.name == "preBuild" }.configureEach {  dependencies {     implementation(libs.androidx.camera.core)-    implementation(libs.androidx.camera.camera2)     implementation(libs.androidx.camera.lifecycle)     implementation(libs.androidx.camera.view)     implementation(libs.coil.compose)
photos/build.gradle.kts
diff --git a/photos/build.gradle.kts b/photos/build.gradle.ktsindex 9f5871fa51..a221f2677b 100644--- a/photos/build.gradle.kts+++ b/photos/build.gradle.kts@@ -36,7 +36,6 @@ metadataScreenshots {  dependencies {     implementation(libs.androidx.compose.foundation)-    implementation("androidx.compose.material:material-icons-extended")     implementation(libs.androidx.fragment.ktx)     implementation(project(":library:map"))     implementation(libs.coil.compose)@@ -45,7 +44,7 @@ dependencies {     // On-device face detection (SCRFD), face embedding (MobileFaceNet) and     // subject segmentation (U²-Net) run on ncnn via the generalist AAR (BSD-3,     // no ONNX Runtime / Play Services / MediaPipe). OCR uses it via :library:ocr.-    implementation("com.github.vayun-mathur:ncnn-android:1.1.0")+    implementation(libs.ncnn.android)      implementRoom(libs)     implementation(project(":library:room"))
travel/build.gradle.kts
diff --git a/travel/build.gradle.kts b/travel/build.gradle.ktsindex 2963e14034..45f551dbef 100644--- a/travel/build.gradle.kts+++ b/travel/build.gradle.kts@@ -22,6 +22,4 @@ dependencies {     implementation("androidx.compose.material:material-icons-extended")     implementation(libs.coil.compose)     implementation(libs.coil.svg)--    testImplementation(libs.junit) }
whatsapp-signal/build.gradle.kts
diff --git a/whatsapp-signal/build.gradle.kts b/whatsapp-signal/build.gradle.ktsindex 968ff34c3c..bc28031954 100644--- a/whatsapp-signal/build.gradle.kts+++ b/whatsapp-signal/build.gradle.kts@@ -21,7 +21,7 @@ plugins { dependencies {     // Classic X3DH Signal protocol. Transitively pulls curve25519-java:0.5.0     // and protobuf-javalite:3.10.0, both bundled into the shaded jar.-    implementation("org.whispersystems:signal-protocol-java:2.8.1")+    implementation(libs.signal.protocol.java) }  tasks.named<ShadowJar>("shadowJar") {
youpipe/build.gradle.kts
diff --git a/youpipe/build.gradle.kts b/youpipe/build.gradle.ktsindex d8f1d4f4ce..de407e8aa9 100644--- a/youpipe/build.gradle.kts+++ b/youpipe/build.gradle.kts@@ -41,7 +41,6 @@ dependencies {      implementation(libs.androidx.work.runtime.ktx)     implementation(project(":library:work"))-    implementation(libs.androidx.compose.runtime.livedata)      implementation(project(":library:network"))     implementation(libs.okhttp)