rust refactors
- Commit
f8ccde07a7da5760a31d5fc53b045d36b29f91bb- Author
- Vayun Mathur <[email protected]>
- When
- 2026-07-20 16:40 UTC (4 months ago)
- Parents
90d5a60
Diff
camera/build.gradle.kts
diff --git a/camera/build.gradle.kts b/camera/build.gradle.ktsindex 0034645939..25e4af50d1 100644--- a/camera/build.gradle.kts+++ b/camera/build.gradle.kts@@ -19,7 +19,7 @@ android { } // ----------------------------------------------------------------------------// Native panorama stitcher + night burst aligner (Rust). See camera/rust/.+// Native panorama stitcher + night burst aligner (Rust). See camera/src/main/rust/. // Cross-compiled per-ABI with the NDK's clang, driven directly from cargo (same // approach as :pdf and :weather). // Contributor/CI prerequisite: rustup target add aarch64-linux-android@@ -55,15 +55,15 @@ val rustAbis = listOf( val perAbiBuildTasks = rustAbis.map { (abiDir, triple) -> tasks.register<Exec>("cargoBuild_${abiDir.replace('-', '_')}") { description = "Cross-compiles the Rust camera stitcher for $abiDir."- workingDir = file("rust")+ workingDir = file("src/main/rust") val clang = "$ndkBin/$triple$androidApiLevel-clang" val linkerVar = "CARGO_TARGET_${triple.uppercase().replace('-', '_')}_LINKER"- val soOut = file("rust/target/$triple/release/libcamera_stitch.so")+ val soOut = file("src/main/rust/target/$triple/release/libcamera_stitch.so") val destSo = layout.buildDirectory.file("rustJniLibs/$abiDir/libcamera_stitch.so").get().asFile - inputs.dir("rust/src")- inputs.file("rust/Cargo.toml")+ inputs.dir("src/main/rust/src")+ inputs.file("src/main/rust/Cargo.toml") outputs.file(destSo) environment("PATH", "$cargoBin:${System.getenv("PATH")}")
camera/src/main/res/drawable/raw_off_24px.xml
diff --git a/camera/src/main/res/drawable/raw_off_24px.xml b/camera/src/main/res/drawable/raw_off_24px.xmldeleted file mode 100644index d2f9bd1a6f..0000000000--- a/camera/src/main/res/drawable/raw_off_24px.xml+++ /dev/null@@ -1,20 +0,0 @@-<!--- ~ Copyright (C) 2026 The Android Open Source Project- ~- ~ Licensed under the Apache License, Version 2.0 (the "License");- ~ you may not use this file except in compliance with the License.- ~ You may obtain a copy of the License at- ~- ~ http://www.apache.org/licenses/LICENSE-2.0- ~- ~ Unless required by applicable law or agreed to in writing, software- ~ distributed under the License is distributed on an "AS IS" BASIS,- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- ~ See the License for the specific language governing permissions and- ~ limitations under the License.- -->-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="#000000" android:viewportHeight="960" android:viewportWidth="960" android:width="24dp">- - <path android:fillColor="@android:color/white" android:pathData="M792,904L56,168L112,112L848,848L792,904ZM740,600L710,478L686,572L588,476L560,360L620,360L650,480L680,360L740,360L770,480L800,360L860,360L800,600L740,600ZM350,600L392,432L440,480L440,480L440,480L500,540L426,540L410,600L350,600ZM120,600L120,360L260,360Q284,360 302,378Q320,396 320,420L320,460Q320,478 310.5,492.5Q301,507 284,516L320,600L260,600L224,520L180,520L180,600L120,600ZM180,460L260,460Q260,460 260,460Q260,460 260,460L260,420Q260,420 260,420Q260,420 260,420L180,420L180,460Z"/>- -</vector>
camera/src/main/res/drawable/raw_on_24px.xml
diff --git a/camera/src/main/res/drawable/raw_on_24px.xml b/camera/src/main/res/drawable/raw_on_24px.xmldeleted file mode 100644index a5cce08071..0000000000--- a/camera/src/main/res/drawable/raw_on_24px.xml+++ /dev/null@@ -1,20 +0,0 @@-<!--- ~ Copyright (C) 2026 The Android Open Source Project- ~- ~ Licensed under the Apache License, Version 2.0 (the "License");- ~ you may not use this file except in compliance with the License.- ~ You may obtain a copy of the License at- ~- ~ http://www.apache.org/licenses/LICENSE-2.0- ~- ~ Unless required by applicable law or agreed to in writing, software- ~ distributed under the License is distributed on an "AS IS" BASIS,- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- ~ See the License for the specific language governing permissions and- ~ limitations under the License.- -->-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="#000000" android:viewportHeight="960" android:viewportWidth="960" android:width="24dp">- - <path android:fillColor="@android:color/white" android:pathData="M120,600L120,360L260,360Q284,360 302,378Q320,396 320,420L320,460Q320,478 310.5,492.5Q301,507 284,516L320,600L260,600L224,520L180,520L180,600L120,600ZM350,600L410,360L510,360L570,600L510,600L496,540L426,540L410,600L350,600ZM620,600L560,360L620,360L650,480L680,360L740,360L770,480L800,360L860,360L800,600L740,600L710,478L680,600L620,600ZM440,480L480,480L470,440L450,440L440,480ZM180,460L260,460Q260,460 260,460Q260,460 260,460L260,420Q260,420 260,420Q260,420 260,420L180,420L180,460Z"/>- -</vector>
camera/src/main/rust/.gitignore
diff --git a/camera/rust/.gitignore b/camera/src/main/rust/.gitignoresimilarity index 100%rename from camera/rust/.gitignorerename to camera/src/main/rust/.gitignore
camera/src/main/rust/Cargo.lock
diff --git a/camera/rust/Cargo.lock b/camera/src/main/rust/Cargo.locksimilarity index 100%rename from camera/rust/Cargo.lockrename to camera/src/main/rust/Cargo.lock
camera/src/main/rust/Cargo.toml
diff --git a/camera/rust/Cargo.toml b/camera/src/main/rust/Cargo.tomlsimilarity index 100%rename from camera/rust/Cargo.tomlrename to camera/src/main/rust/Cargo.toml
camera/src/main/rust/src/blend.rs
diff --git a/camera/rust/src/blend.rs b/camera/src/main/rust/src/blend.rssimilarity index 100%rename from camera/rust/src/blend.rsrename to camera/src/main/rust/src/blend.rs
camera/src/main/rust/src/bundle.rs
diff --git a/camera/rust/src/bundle.rs b/camera/src/main/rust/src/bundle.rssimilarity index 100%rename from camera/rust/src/bundle.rsrename to camera/src/main/rust/src/bundle.rs
camera/src/main/rust/src/camera.rs
diff --git a/camera/rust/src/camera.rs b/camera/src/main/rust/src/camera.rssimilarity index 100%rename from camera/rust/src/camera.rsrename to camera/src/main/rust/src/camera.rs
camera/src/main/rust/src/estimator.rs
diff --git a/camera/rust/src/estimator.rs b/camera/src/main/rust/src/estimator.rssimilarity index 100%rename from camera/rust/src/estimator.rsrename to camera/src/main/rust/src/estimator.rs
camera/src/main/rust/src/exposure.rs
diff --git a/camera/rust/src/exposure.rs b/camera/src/main/rust/src/exposure.rssimilarity index 100%rename from camera/rust/src/exposure.rsrename to camera/src/main/rust/src/exposure.rs
camera/src/main/rust/src/features.rs
diff --git a/camera/rust/src/features.rs b/camera/src/main/rust/src/features.rssimilarity index 100%rename from camera/rust/src/features.rsrename to camera/src/main/rust/src/features.rs
camera/src/main/rust/src/geometry.rs
diff --git a/camera/rust/src/geometry.rs b/camera/src/main/rust/src/geometry.rssimilarity index 100%rename from camera/rust/src/geometry.rsrename to camera/src/main/rust/src/geometry.rs
camera/src/main/rust/src/imgbuf.rs
diff --git a/camera/rust/src/imgbuf.rs b/camera/src/main/rust/src/imgbuf.rssimilarity index 100%rename from camera/rust/src/imgbuf.rsrename to camera/src/main/rust/src/imgbuf.rs
camera/src/main/rust/src/lib.rs
diff --git a/camera/rust/src/lib.rs b/camera/src/main/rust/src/lib.rssimilarity index 100%rename from camera/rust/src/lib.rsrename to camera/src/main/rust/src/lib.rs
camera/src/main/rust/src/matching.rs
diff --git a/camera/rust/src/matching.rs b/camera/src/main/rust/src/matching.rssimilarity index 100%rename from camera/rust/src/matching.rsrename to camera/src/main/rust/src/matching.rs
camera/src/main/rust/src/night.rs
diff --git a/camera/rust/src/night.rs b/camera/src/main/rust/src/night.rssimilarity index 100%rename from camera/rust/src/night.rsrename to camera/src/main/rust/src/night.rs
camera/src/main/rust/src/seam.rs
diff --git a/camera/rust/src/seam.rs b/camera/src/main/rust/src/seam.rssimilarity index 100%rename from camera/rust/src/seam.rsrename to camera/src/main/rust/src/seam.rs
camera/src/main/rust/src/sphere.rs
diff --git a/camera/rust/src/sphere.rs b/camera/src/main/rust/src/sphere.rssimilarity index 100%rename from camera/rust/src/sphere.rsrename to camera/src/main/rust/src/sphere.rs
camera/src/main/rust/src/stitch.rs
diff --git a/camera/rust/src/stitch.rs b/camera/src/main/rust/src/stitch.rssimilarity index 100%rename from camera/rust/src/stitch.rsrename to camera/src/main/rust/src/stitch.rs
camera/src/main/rust/src/warp.rs
diff --git a/camera/rust/src/warp.rs b/camera/src/main/rust/src/warp.rssimilarity index 100%rename from camera/rust/src/warp.rsrename to camera/src/main/rust/src/warp.rs
camera/src/main/rust/src/wave.rs
diff --git a/camera/rust/src/wave.rs b/camera/src/main/rust/src/wave.rssimilarity index 100%rename from camera/rust/src/wave.rsrename to camera/src/main/rust/src/wave.rs
camera/src/main/rust/testdata/output.jpg
diff --git a/camera/rust/testdata/output.jpg b/camera/src/main/rust/testdata/output.jpgsimilarity index 100%rename from camera/rust/testdata/output.jpgrename to camera/src/main/rust/testdata/output.jpg
camera/src/main/rust/testdata/panorama.jpg
diff --git a/camera/rust/testdata/panorama.jpg b/camera/src/main/rust/testdata/panorama.jpgsimilarity index 100%rename from camera/rust/testdata/panorama.jpgrename to camera/src/main/rust/testdata/panorama.jpg
camera/src/main/rust/testdata/q11.jpg
diff --git a/camera/rust/testdata/q11.jpg b/camera/src/main/rust/testdata/q11.jpgsimilarity index 100%rename from camera/rust/testdata/q11.jpgrename to camera/src/main/rust/testdata/q11.jpg
camera/src/main/rust/testdata/q22.jpg
diff --git a/camera/rust/testdata/q22.jpg b/camera/src/main/rust/testdata/q22.jpgsimilarity index 100%rename from camera/rust/testdata/q22.jpgrename to camera/src/main/rust/testdata/q22.jpg
contacts/src/main/res/drawable/search_24px.xml
diff --git a/contacts/src/main/res/drawable/search_24px.xml b/contacts/src/main/res/drawable/search_24px.xmldeleted file mode 100644index 07b76d6275..0000000000--- a/contacts/src/main/res/drawable/search_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="24"- android:viewportHeight="24"- android:tint="?attr/colorControlNormal">- <path- android:fillColor="@android:color/white"- android:pathData="M15.5,14h-0.79l-0.28,-0.27C15.41,12.59 16,11.11 16,9.5 16,5.91 13.09,3 9.5,3S3,5.91 3,9.5 5.91,16 9.5,16c1.61,0 3.09,-0.59 4.23,-1.57l0.27,0.28v0.79l5,4.99L20.49,19l-4.99,-5zM9.5,14C7.01,14 5,11.99 5,9.5S7.01,5 9.5,5 14,7.01 14,9.5 11.99,14 9.5,14z"/>-</vector>
contacts/src/main/res/drawable/upload_24px.xml
diff --git a/contacts/src/main/res/drawable/upload_24px.xml b/contacts/src/main/res/drawable/upload_24px.xmldeleted file mode 100644index 476c0ca701..0000000000--- a/contacts/src/main/res/drawable/upload_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="960" android:viewportWidth="960" android:width="24dp">- - <path android:fillColor="@android:color/white" android:pathData="M440,640L440,314L336,418L280,360L480,160L680,360L624,418L520,314L520,640L440,640ZM240,800Q207,800 183.5,776.5Q160,753 160,720L160,600L240,600L240,720Q240,720 240,720Q240,720 240,720L720,720Q720,720 720,720Q720,720 720,720L720,600L800,600L800,720Q800,753 776.5,776.5Q753,800 720,800L240,800Z"/>- -</vector>
everysync/build.gradle.kts
diff --git a/everysync/build.gradle.kts b/everysync/build.gradle.ktsindex dfe22fdef1..acfdf9f16f 100644--- a/everysync/build.gradle.kts+++ b/everysync/build.gradle.kts@@ -20,19 +20,10 @@ android { val googleClientId = (project.findProperty("EVERYSYNC_GOOGLE_CLIENT_ID") ?: "827025129169-tvph1v4c7b4n36s0prbe3u8dh3kd12t7.apps.googleusercontent.com").toString() - // Google installed-app PKCE uses the reverse-DNS custom scheme derived from- // the client ID (e.g. com.googleusercontent.apps.<id>:/oauth2redirect).- val googleReverse = if (googleClientId.endsWith(".apps.googleusercontent.com"))- "com.googleusercontent.apps." + googleClientId.removeSuffix(".apps.googleusercontent.com")- else ""- val googleRedirectUri = if (googleReverse.isNotBlank()) "$googleReverse:/oauth2redirect"- else "com.vayunmathur.everysync:/oauth"- buildConfigField("String", "GOOGLE_OAUTH_CLIENT_ID", "\"$googleClientId\"")- buildConfigField("String", "GOOGLE_REDIRECT_URI", "\"$googleRedirectUri\"")-- // Register the Google reverse-DNS redirect scheme for OAuthCallbackActivity.- manifestPlaceholders["googleRedirectScheme"] = googleReverse.ifBlank { "com.vayunmathur.everysync.oauthunused" }+ // The OAuth redirect is the app-id custom scheme (com.vayunmathur.everysync:/oauth),+ // caught by OAuthCallbackActivity — see OAuthConfig.REDIRECT_URI. It is NOT+ // derived from the client ID. } buildFeatures { buildConfig = true
everysync/src/main/AndroidManifest.xml
diff --git a/everysync/src/main/AndroidManifest.xml b/everysync/src/main/AndroidManifest.xmlindex 5a85c9e1ac..53f15deddd 100644--- a/everysync/src/main/AndroidManifest.xml+++ b/everysync/src/main/AndroidManifest.xml@@ -64,24 +64,21 @@ </intent-filter> </activity> - <!-- Receives the OAuth2 redirect (com.vayunmathur.everysync:/oauth). -->+ <!-- Receives the OAuth2 redirect (https://everysync.vayunmathur.com/oauth) as+ a verified Android App Link, so the OS routes it straight to the app. --> <activity android:name=".auth.OAuthCallbackActivity" android:exported="true" android:launchMode="singleTask" android:theme="@android:style/Theme.NoDisplay">- <intent-filter>- <action android:name="android.intent.action.VIEW" />- <category android:name="android.intent.category.DEFAULT" />- <category android:name="android.intent.category.BROWSABLE" />- <data android:scheme="com.vayunmathur.everysync" android:host="oauth" />- </intent-filter>- <!-- Google installed-app PKCE reverse-DNS redirect scheme. -->- <intent-filter>+ <intent-filter android:autoVerify="true"> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" />- <data android:scheme="${googleRedirectScheme}" />+ <data+ android:scheme="https"+ android:host="everysync.vayunmathur.com"+ android:path="/oauth" /> </intent-filter> </activity>
everysync/src/main/java/com/vayunmathur/everysync/auth/OAuthCallbackActivity.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/auth/OAuthCallbackActivity.kt b/everysync/src/main/java/com/vayunmathur/everysync/auth/OAuthCallbackActivity.ktindex 242f0f2377..b34beec62c 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/auth/OAuthCallbackActivity.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/auth/OAuthCallbackActivity.kt@@ -9,7 +9,7 @@ import com.vayunmathur.everysync.sync.SyncScheduler import kotlinx.coroutines.launch /**- * Receives the OAuth2 redirect (`com.vayunmathur.everysync:/oauth`), completes the+ * Receives the OAuth2 redirect (`https://everysync.vayunmathur.com/oauth`), completes the * PKCE token exchange, then returns to [MainActivity] and kicks off a first sync. */ class OAuthCallbackActivity : ComponentActivity() {
everysync/src/main/java/com/vayunmathur/everysync/auth/OAuthConfig.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/auth/OAuthConfig.kt b/everysync/src/main/java/com/vayunmathur/everysync/auth/OAuthConfig.ktindex 662fe43d61..0e0b1dbc98 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/auth/OAuthConfig.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/auth/OAuthConfig.kt@@ -16,13 +16,13 @@ data class OAuthConfig( val scopes: List<String>, /** Extra query params appended to the authorization request. */ val extraAuthParams: Map<String, String> = emptyMap(),- /** Redirect URI for this provider (Google needs its reverse-DNS scheme). */+ /** Redirect URI for this provider (app-id custom scheme by default). */ val redirectUri: String = REDIRECT_URI, ) { val hasClientId: Boolean get() = clientId.isNotBlank() companion object {- const val REDIRECT_URI = "com.vayunmathur.everysync:/oauth"+ const val REDIRECT_URI = "https://everysync.vayunmathur.com/oauth" val GOOGLE = OAuthConfig( authEndpoint = "https://accounts.google.com/o/oauth2/v2/auth",@@ -34,7 +34,6 @@ data class OAuthConfig( ), // Force a refresh token to be returned on first consent. extraAuthParams = mapOf("access_type" to "offline", "prompt" to "consent"),- redirectUri = BuildConfig.GOOGLE_REDIRECT_URI, ) // Google Health via the Google Fitness REST API — same Google OAuth client,@@ -50,7 +49,6 @@ data class OAuthConfig( "https://www.googleapis.com/auth/fitness.heart_rate.read", ), extraAuthParams = mapOf("access_type" to "offline", "prompt" to "consent"),- redirectUri = BuildConfig.GOOGLE_REDIRECT_URI, ) } }
everysync/src/main/java/com/vayunmathur/everysync/auth/OAuthManager.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/auth/OAuthManager.kt b/everysync/src/main/java/com/vayunmathur/everysync/auth/OAuthManager.ktindex 21d83a8da6..c2b879b6dc 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/auth/OAuthManager.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/auth/OAuthManager.kt@@ -19,7 +19,7 @@ import kotlinx.serialization.json.longOrNull /** * OAuth2 Authorization Code + PKCE (RFC 7636). The authorization request opens in- * a Custom Tab; the redirect (`com.vayunmathur.everysync:/oauth`) is caught by+ * a Custom Tab; the redirect (`https://everysync.vayunmathur.com/oauth`) is caught by * [OAuthCallbackActivity], which calls [complete] to exchange the code for tokens. */ object OAuthManager {
gradle-module-explorer/extension.js
diff --git a/gradle-module-explorer/extension.js b/gradle-module-explorer/extension.jsindex d35a44604a..7d1badb9ce 100644--- a/gradle-module-explorer/extension.js+++ b/gradle-module-explorer/extension.js@@ -144,8 +144,54 @@ class ModuleTreeProvider { if (node.kind === 'file') { return []; }- const dir = node.kind === 'module' ? node.module.dir : node.path;- return this.readDir(dir);+ if (node.kind === 'module') {+ return this.readModuleChildren(node.module.dir);+ }+ return this.readDir(node.path);+ }++ /**+ * Children shown directly under a module. Collapses the `src/` layer: its+ * children (main, androidTest, test, ...) are lifted to the module root and+ * shown alongside the module's other files/folders.+ */+ readModuleChildren(moduleDir) {+ let entries;+ try {+ entries = fs.readdirSync(moduleDir, { withFileTypes: true });+ } catch (e) {+ return [];+ }++ const dirs = [];+ const files = [];+ for (const entry of entries) {+ if (IGNORED_NAMES.has(entry.name)) {+ continue;+ }+ const full = path.join(moduleDir, entry.name);+ if (entry.isDirectory()) {+ if (entry.name === 'src') {+ // Lift src/'s children up to the module root instead of showing src/.+ for (const child of this.readDir(full)) {+ (child.kind === 'dir' ? dirs : files).push(child);+ }+ continue;+ }+ if (this.isModuleSubtree(full)) {+ continue; // Shown as its own top-level module entry instead.+ }+ dirs.push({ kind: 'dir', path: full });+ } else if (entry.isFile()) {+ files.push({ kind: 'file', path: full });+ }+ }++ const byBasename = (a, b) =>+ path.basename(a.path).localeCompare(path.basename(b.path));+ dirs.sort(byBasename);+ files.sort(byBasename);+ return [...dirs, ...files]; } /** True if `dir` is a module directory or an ancestor of one (a nested-module subtree). */
health/src/main/res/drawable/baseline_add_24.xml
diff --git a/health/src/main/res/drawable/baseline_add_24.xml b/health/src/main/res/drawable/baseline_add_24.xmldeleted file mode 100644index eb232541d8..0000000000--- a/health/src/main/res/drawable/baseline_add_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="24"- android:viewportHeight="24"- android:tint="?attr/colorControlNormal">- <path- android:fillColor="@android:color/white"- android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>-</vector>
music/src/main/res/drawable/ic_repeat_one.xml
diff --git a/music/src/main/res/drawable/ic_repeat_one.xml b/music/src/main/res/drawable/ic_repeat_one.xmldeleted file mode 100644index 42324ac88c..0000000000--- a/music/src/main/res/drawable/ic_repeat_one.xml+++ /dev/null@@ -1,9 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android"- android:width="24dp"- android:height="24dp"- android:viewportWidth="24"- android:viewportHeight="24">- <path- android:fillColor="@android:color/white"- android:pathData="M7,7h10v3l4,-4 -4,-4v3L5,5v6h2L7,7zM17,17L7,17v-3l-4,4 4,4v-3h12v-6h-2v4zM13,15h-2v-2h2v-2h-2V9h4v2h-2v2h2v2z"/>-</vector>\ No newline at end of file
office/src/main/res/drawable/format_bold_24px.xml
diff --git a/office/src/main/res/drawable/format_bold_24px.xml b/office/src/main/res/drawable/format_bold_24px.xmldeleted file mode 100644index 185e6e2107..0000000000--- a/office/src/main/res/drawable/format_bold_24px.xml+++ /dev/null@@ -1,3 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24" android:tint="#000000">- <path android:fillColor="#000000" android:pathData="M15.6,10.79c0.97,-0.67 1.65,-1.77 1.65,-2.79 0,-2.26 -1.75,-4 -4,-4H7v14h7.04c2.09,0 3.71,-1.7 3.71,-3.79 0,-1.52 -0.86,-2.82 -2.15,-3.43zM10,6.5h3c0.83,0 1.5,0.67 1.5,1.5s-0.67,1.5 -1.5,1.5h-3v-3zM13.5,15.5H10v-3h3.5c0.83,0 1.5,0.67 1.5,1.5s-0.67,1.5 -1.5,1.5z"/>-</vector>
office/src/main/res/drawable/format_italic_24px.xml
diff --git a/office/src/main/res/drawable/format_italic_24px.xml b/office/src/main/res/drawable/format_italic_24px.xmldeleted file mode 100644index b7632d55a6..0000000000--- a/office/src/main/res/drawable/format_italic_24px.xml+++ /dev/null@@ -1,3 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24" android:tint="#000000">- <path android:fillColor="#000000" android:pathData="M10,4v3h2.21l-3.42,8H6v3h8v-3h-2.21l3.42,-8H18V4z"/>-</vector>
office/src/main/res/drawable/format_strikethrough_24px.xml
diff --git a/office/src/main/res/drawable/format_strikethrough_24px.xml b/office/src/main/res/drawable/format_strikethrough_24px.xmldeleted file mode 100644index 4c23ea8de3..0000000000--- a/office/src/main/res/drawable/format_strikethrough_24px.xml+++ /dev/null@@ -1,3 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24" android:tint="#000000">- <path android:fillColor="#000000" android:pathData="M10,19h4v-3h-4v3zM5,4v3h5v3h4V7h5V4H5zM3,14h18v-2H3v2z"/>-</vector>
office/src/main/res/drawable/format_underlined_24px.xml
diff --git a/office/src/main/res/drawable/format_underlined_24px.xml b/office/src/main/res/drawable/format_underlined_24px.xmldeleted file mode 100644index d4dbc7f9e0..0000000000--- a/office/src/main/res/drawable/format_underlined_24px.xml+++ /dev/null@@ -1,3 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24" android:tint="#000000">- <path android:fillColor="#000000" android:pathData="M12,17c3.31,0 6,-2.69 6,-6V3h-2.5v8c0,1.93 -1.57,3.5 -3.5,3.5S8.5,12.93 8.5,11V3H6v8c0,3.31 2.69,6 6,6zM5,19v2h14v-2z"/>-</vector>
pdf/build.gradle.kts
diff --git a/pdf/build.gradle.kts b/pdf/build.gradle.ktsindex f18849fb93..c400f2ebf6 100644--- a/pdf/build.gradle.kts+++ b/pdf/build.gradle.kts@@ -19,7 +19,7 @@ android { } // ----------------------------------------------------------------------------// Native PDF renderer (Rust + lopdf). See pdf/rust/.+// Native PDF renderer (Rust + lopdf). See pdf/src/main/rust/. // // Powers the "Open PDF (safe)" viewer: parses PDFs entirely in memory-safe Rust // and returns plain drawing primitives, never touching the system PDF stack.@@ -67,15 +67,15 @@ val rustAbis = listOf( val perAbiBuildTasks = rustAbis.map { (abiDir, triple) -> tasks.register<Exec>("cargoBuild_${abiDir.replace('-', '_')}") { description = "Cross-compiles the Rust PDF renderer for $abiDir."- workingDir = file("rust")+ workingDir = file("src/main/rust") val clang = "$ndkBin/$triple$androidApiLevel-clang" val linkerVar = "CARGO_TARGET_${triple.uppercase().replace('-', '_')}_LINKER"- val soOut = file("rust/target/$triple/release/libpdf_render.so")+ val soOut = file("src/main/rust/target/$triple/release/libpdf_render.so") val destSo = layout.buildDirectory.file("rustJniLibs/$abiDir/libpdf_render.so").get().asFile - inputs.dir("rust/src")- inputs.file("rust/Cargo.toml")+ inputs.dir("src/main/rust/src")+ inputs.file("src/main/rust/Cargo.toml") outputs.file(destSo) // Prepend the rustup toolchain (has the Android targets) ahead of any
pdf/src/main/rust/.gitignore
diff --git a/pdf/rust/.gitignore b/pdf/src/main/rust/.gitignoresimilarity index 100%rename from pdf/rust/.gitignorerename to pdf/src/main/rust/.gitignore
pdf/src/main/rust/Cargo.lock
diff --git a/pdf/rust/Cargo.lock b/pdf/src/main/rust/Cargo.locksimilarity index 100%rename from pdf/rust/Cargo.lockrename to pdf/src/main/rust/Cargo.lock
pdf/src/main/rust/Cargo.toml
diff --git a/pdf/rust/Cargo.toml b/pdf/src/main/rust/Cargo.tomlsimilarity index 100%rename from pdf/rust/Cargo.tomlrename to pdf/src/main/rust/Cargo.toml
pdf/src/main/rust/README.md
diff --git a/pdf/rust/README.md b/pdf/src/main/rust/README.mdsimilarity index 98%rename from pdf/rust/README.mdrename to pdf/src/main/rust/README.mdindex 3cf41b734e..cb11509d84 100644--- a/pdf/rust/README.md+++ b/pdf/src/main/rust/README.md@@ -44,7 +44,7 @@ The interpreter, CMap parser and wire format are validated on the host (no Android / NDK needed): ```sh-cd pdf/rust+cd pdf/src/main/rust cargo test ```
pdf/src/main/rust/src/crypto.rs
diff --git a/pdf/rust/src/crypto.rs b/pdf/src/main/rust/src/crypto.rssimilarity index 100%rename from pdf/rust/src/crypto.rsrename to pdf/src/main/rust/src/crypto.rs
pdf/src/main/rust/src/lib.rs
diff --git a/pdf/rust/src/lib.rs b/pdf/src/main/rust/src/lib.rssimilarity index 100%rename from pdf/rust/src/lib.rsrename to pdf/src/main/rust/src/lib.rs
weather/build.gradle.kts
diff --git a/weather/build.gradle.kts b/weather/build.gradle.ktsindex 4fc45a2ede..63797e19b2 100644--- a/weather/build.gradle.kts+++ b/weather/build.gradle.kts@@ -21,7 +21,7 @@ android { } // ----------------------------------------------------------------------------// Native `.om` decoder (Rust). See weather/rust/.+// Native `.om` decoder (Rust). See weather/src/main/rust/. // // Cross-compiled per-ABI with the NDK's clang. We drive cargo directly (rather // than rust-android-gradle, which needs AGP's removed legacy AppExtension, or@@ -70,15 +70,15 @@ val rustAbis = listOf( val perAbiBuildTasks = rustAbis.map { (abiDir, triple) -> tasks.register<Exec>("cargoBuild_${abiDir.replace('-', '_')}") { description = "Cross-compiles the Rust .om decoder for $abiDir."- workingDir = file("rust")+ workingDir = file("src/main/rust") val clang = "$ndkBin/$triple$androidApiLevel-clang" val linkerVar = "CARGO_TARGET_${triple.uppercase().replace('-', '_')}_LINKER"- val soOut = file("rust/target/$triple/release/libweather_om.so")+ val soOut = file("src/main/rust/target/$triple/release/libweather_om.so") val destSo = layout.buildDirectory.file("rustJniLibs/$abiDir/libweather_om.so").get().asFile - inputs.dir("rust/src")- inputs.file("rust/Cargo.toml")+ inputs.dir("src/main/rust/src")+ inputs.file("src/main/rust/Cargo.toml") outputs.file(destSo) // Prepend the rustup toolchain (has the Android targets) ahead of any
weather/src/main/rust/.gitignore
diff --git a/weather/rust/.gitignore b/weather/src/main/rust/.gitignoresimilarity index 100%rename from weather/rust/.gitignorerename to weather/src/main/rust/.gitignore
weather/src/main/rust/Cargo.lock
diff --git a/weather/rust/Cargo.lock b/weather/src/main/rust/Cargo.locksimilarity index 100%rename from weather/rust/Cargo.lockrename to weather/src/main/rust/Cargo.lock
weather/src/main/rust/Cargo.toml
diff --git a/weather/rust/Cargo.toml b/weather/src/main/rust/Cargo.tomlsimilarity index 100%rename from weather/rust/Cargo.tomlrename to weather/src/main/rust/Cargo.toml
weather/src/main/rust/README.md
diff --git a/weather/rust/README.md b/weather/src/main/rust/README.mdsimilarity index 98%rename from weather/rust/README.mdrename to weather/src/main/rust/README.mdindex c7ddc5197d..213bfdbd7d 100644--- a/weather/rust/README.md+++ b/weather/src/main/rust/README.md@@ -34,7 +34,7 @@ The decode path can be validated on the host (no Android) against the live bucket: ```sh-cd weather/rust+cd weather/src/main/rust cargo test -- --ignored --nocapture ```
weather/src/main/rust/src/lib.rs
diff --git a/weather/rust/src/lib.rs b/weather/src/main/rust/src/lib.rssimilarity index 100%rename from weather/rust/src/lib.rsrename to weather/src/main/rust/src/lib.rs