π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Reorganize Ensu Android into feature packages, rename :app-ui to :app
Manav Rathida80b32d6c49
diff --git a/.github/scripts/ensu-version.mjs b/.github/scripts/ensu-version.mjsindex 6050172bab..ac0bba25dd 100644--- a/.github/scripts/ensu-version.mjs+++ b/.github/scripts/ensu-version.mjs@@ -11,7 +11,7 @@ const files = {tauri: path.join(root, "rust/apps/ensu/src-tauri/tauri.conf.json"),cargoToml: path.join(root, "rust/apps/ensu/src-tauri/Cargo.toml"),cargoLock: path.join(root, "rust/Cargo.lock"),- android: path.join(root, "mobile/native/android/apps/ensu/app-ui/build.gradle.kts"),+ android: path.join(root, "mobile/native/android/apps/ensu/app/build.gradle.kts"),xcode: path.join(root, "mobile/native/apple/apps/ensu/Ensu.xcodeproj/project.pbxproj"),plist: path.join(root, "mobile/native/apple/apps/ensu/Ensu/Info.plist"),};diff --git a/.github/workflows/ensu-android-build.yml b/.github/workflows/ensu-android-build.ymlindex 5e08297d59..0b7932c2b3 100644--- a/.github/workflows/ensu-android-build.yml+++ b/.github/workflows/ensu-android-build.yml@@ -42,4 +42,4 @@ jobs:- name: Build Ensuworking-directory: mobile/native/android/apps/ensu- run: ./gradlew :app-ui:assembleDebug+ run: ./gradlew :app:assembleDebugdiff --git a/.github/workflows/ensu-build.yml b/.github/workflows/ensu-build.ymlindex 0b8f27ce51..5c79b0bc21 100644--- a/.github/workflows/ensu-build.yml+++ b/.github/workflows/ensu-build.yml@@ -325,7 +325,7 @@ jobs:EOF- name: Build signed Android artifacts- run: ./gradlew -PversionCode="${BUILD_NUMBER}" :app-ui:assembleRelease :app-ui:bundleRelease+ run: ./gradlew -PversionCode="${BUILD_NUMBER}" :app:assembleRelease :app:bundleRelease- name: Prepare whatsnewrun: |@@ -335,7 +335,7 @@ jobs:- name: Prepare Android APK for GitHub releaserun: |mkdir -p artifacts- cp app-ui/build/outputs/apk/release/app-ui-release.apk "artifacts/${ANDROID_APK_NAME}"+ cp app/build/outputs/apk/release/app-release.apk "artifacts/${ANDROID_APK_NAME}"- name: Mint nightly tokenid: nightly_token@@ -378,7 +378,7 @@ jobs:with:serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}packageName: io.ente.ensu- releaseFiles: mobile/native/android/apps/ensu/app-ui/build/outputs/bundle/release/app-ui-release.aab+ releaseFiles: mobile/native/android/apps/ensu/app/build/outputs/bundle/release/app-release.aabtracks: internalwhatsNewDirectory: mobile/native/android/apps/ensu/whatsnewdiff --git a/.github/workflows/warm-caches.yml b/.github/workflows/warm-caches.ymlindex 890c4dd424..d7d030fe6e 100644--- a/.github/workflows/warm-caches.yml+++ b/.github/workflows/warm-caches.yml@@ -149,7 +149,7 @@ jobs:- name: Build Ensuworking-directory: mobile/native/android/apps/ensu- run: ./gradlew :app-ui:assembleDebug+ run: ./gradlew :app:assembleDebugensu-ios:# For ensu-ios-build.yml.diff --git a/docs/docs/self-hosting/development/building-from-source.md b/docs/docs/self-hosting/development/building-from-source.mdindex da5c164e46..cff1995832 100644--- a/docs/docs/self-hosting/development/building-from-source.md+++ b/docs/docs/self-hosting/development/building-from-source.md@@ -308,7 +308,7 @@ Then, for example, to run the Ensu Android app:```shcd mobile/native/android/apps/ensu-./gradlew :app-ui:installDebug+./gradlew :app:installDebugadb shell am start -n io.ente.ensu.debug/io.ente.ensu.MainActivity```diff --git a/mobile/native/android/apps/ensu/README.md b/mobile/native/android/apps/ensu/README.mdindex fa439b5897..8bcc7aeb29 100644--- a/mobile/native/android/apps/ensu/README.md+++ b/mobile/native/android/apps/ensu/README.md@@ -15,7 +15,7 @@ To know more about Ente, see [our main README](../../../../../README.md) or visicargo codegen native```-3. Open the project in Android Studio and run the `app-ui` module. If the Android NDK is missing, Android Studio will prompt to install it.+3. Open the project in Android Studio and run the `app` module. If the Android NDK is missing, Android Studio will prompt to install it.That's it. Apart from the `cargo codegen`, this is a normal Android project. Gradle cross-compiles the Rust libraries to JNI `.so` files automatically when building the app.@@ -41,31 +41,31 @@ Build and install a debug APK on a connected device or emulator:```shcd mobile/native/android/apps/ensu-./gradlew :app-ui:installDebug+./gradlew :app:installDebugadb shell am start -n io.ente.ensu.debug/io.ente.ensu.MainActivity```Release APK:```sh-./gradlew :app-ui:assembleRelease+./gradlew :app:assembleRelease```-Output: `app-ui/build/outputs/apk/release/app-ui-release.apk`.+Output: `app/build/outputs/apk/release/app-release.apk`.Release AAB (Play Store bundle):```sh-./gradlew :app-ui:bundleRelease+./gradlew :app:bundleRelease```-Output: `app-ui/build/outputs/bundle/release/app-ui-release.aab`.+Output: `app/build/outputs/bundle/release/app-release.aab`.-Release builds use a debug keystore located at `debug.keystore`. For production releases, configure your own signing keys in `app-ui/build.gradle.kts`.+Release builds use a debug keystore located at `debug.keystore`. For production releases, configure your own signing keys in `app/build.gradle.kts`.## Modules-- `app-ui/` β Compose UI and app entry point.+- `app/` β Compose UI and app entry point.- `domain/` β Business logic and state (pure Kotlin).- `data/` β Repositories and storage.diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/store/DbLoadHelpers.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/store/DbLoadHelpers.ktdeleted file mode 100644index 23ff1649db..0000000000--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/store/DbLoadHelpers.kt+++ /dev/null@@ -1,5 +0,0 @@-package io.ente.ensu.domain.store--import io.ente.ensu.domain.model.ChatMessage--// Intentionally empty placeholder file.diff --git a/mobile/native/android/apps/ensu/app-ui/build.gradle.kts b/mobile/native/android/apps/ensu/app/build.gradle.ktssimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/build.gradle.ktsrename to mobile/native/android/apps/ensu/app/build.gradle.ktsdiff --git a/mobile/native/android/apps/ensu/app-ui/src/debug/AndroidManifest.xml b/mobile/native/android/apps/ensu/app/src/debug/AndroidManifest.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/debug/AndroidManifest.xmlrename to mobile/native/android/apps/ensu/app/src/debug/AndroidManifest.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/debug/res/values/strings.xml b/mobile/native/android/apps/ensu/app/src/debug/res/values/strings.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/debug/res/values/strings.xmlrename to mobile/native/android/apps/ensu/app/src/debug/res/values/strings.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/AndroidManifest.xml b/mobile/native/android/apps/ensu/app/src/main/AndroidManifest.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/AndroidManifest.xmlrename to mobile/native/android/apps/ensu/app/src/main/AndroidManifest.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/assets/ensu-logo.svg b/mobile/native/android/apps/ensu/app/src/main/assets/ensu-logo.svgsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/assets/ensu-logo.svgrename to mobile/native/android/apps/ensu/app/src/main/assets/ensu-logo.svgdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/state/AppState.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/AppState.ktsimilarity index 57%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/state/AppState.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/AppState.ktindex 9759dbdbcb..83c8e2d71b 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/state/AppState.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/AppState.kt@@ -1,4 +1,7 @@-package io.ente.ensu.domain.state+package io.ente.ensu+import io.ente.ensu.llm.ModelSettingsState+import io.ente.ensu.settings.DeveloperSettingsState+import io.ente.ensu.chat.ChatStatedata class AppState(val chat: ChatState = ChatState(),diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/store/AppStore.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/AppStore.ktsimilarity index 90%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/store/AppStore.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/AppStore.ktindex 9a0e1123bc..06335dfc75 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/store/AppStore.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/AppStore.kt@@ -1,18 +1,21 @@-package io.ente.ensu.domain.store--import io.ente.ensu.data.chat.RustChatRepository-import io.ente.ensu.domain.device.ChatDeviceCapability-import io.ente.ensu.data.AndroidDeviceCapabilityProvider-import io.ente.ensu.data.llm.InferenceRsProvider-import io.ente.ensu.data.logging.FileLogRepository-import io.ente.ensu.domain.model.Attachment-import io.ente.ensu.domain.model.ChatMessage-import io.ente.ensu.domain.model.EnsuDefaults-import io.ente.ensu.domain.model.LogLevel-import io.ente.ensu.data.SessionPreferencesDataStore-import io.ente.ensu.domain.state.AppState-import io.ente.ensu.domain.state.DeveloperSettingsState-import io.ente.ensu.domain.state.ModelSettingsState+package io.ente.ensu+import io.ente.ensu.llm.ModelSettingsActions+import io.ente.ensu.chat.AttachmentStoreActions+import io.ente.ensu.chat.ChatStoreActions++import io.ente.ensu.chat.RustChatRepository+import io.ente.ensu.device.ChatDeviceCapability+import io.ente.ensu.device.AndroidDeviceCapabilityProvider+import io.ente.ensu.llm.InferenceRsProvider+import io.ente.ensu.logging.FileLogRepository+import io.ente.ensu.chat.Attachment+import io.ente.ensu.chat.ChatMessage+import io.ente.ensu.llm.EnsuDefaults+import io.ente.ensu.logging.LogLevel+import io.ente.ensu.settings.SessionPreferencesDataStore+import io.ente.ensu.AppState+import io.ente.ensu.settings.DeveloperSettingsState+import io.ente.ensu.llm.ModelSettingsStateimport kotlinx.coroutines.CoroutineScopeimport kotlinx.coroutines.flow.MutableStateFlowimport kotlinx.coroutines.flow.StateFlowdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/AppViewModel.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/AppViewModel.ktsimilarity index 87%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/AppViewModel.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/AppViewModel.ktindex b309569d73..90201f4b54 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/AppViewModel.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/AppViewModel.kt@@ -6,17 +6,17 @@ import android.os.Buildimport android.os.Environmentimport androidx.lifecycle.AndroidViewModelimport androidx.lifecycle.viewModelScope-import io.ente.ensu.data.AdvancedSettingsDataStore-import io.ente.ensu.data.AdvancedSettingsSnapshot-import io.ente.ensu.data.AndroidDeviceCapabilityProvider-import io.ente.ensu.data.SessionPreferencesDataStore-import io.ente.ensu.data.chat.RustChatRepository-import io.ente.ensu.data.llm.EnsuRustDefaults-import io.ente.ensu.data.llm.InferenceRsProvider-import io.ente.ensu.data.logging.FileLogRepository-import io.ente.ensu.data.storage.CredentialStore-import io.ente.ensu.domain.model.LogLevel-import io.ente.ensu.domain.store.AppStore+import io.ente.ensu.settings.AdvancedSettingsDataStore+import io.ente.ensu.settings.AdvancedSettingsSnapshot+import io.ente.ensu.device.AndroidDeviceCapabilityProvider+import io.ente.ensu.settings.SessionPreferencesDataStore+import io.ente.ensu.chat.RustChatRepository+import io.ente.ensu.llm.EnsuRustDefaults+import io.ente.ensu.llm.InferenceRsProvider+import io.ente.ensu.logging.FileLogRepository+import io.ente.ensu.storage.CredentialStore+import io.ente.ensu.logging.LogLevel+import io.ente.ensu.AppStoreimport kotlinx.coroutines.flow.collectLatestimport kotlinx.coroutines.flow.dropimport kotlinx.coroutines.flow.first@@ -107,69 +107,69 @@ class AppViewModel(application: Application) : AndroidViewModel(application) {return File(root, "llm")}- private fun fallbackEnsuDefaults() = io.ente.ensu.domain.model.EnsuDefaults(+ private fun fallbackEnsuDefaults() = io.ente.ensu.llm.EnsuDefaults(mobileSystemPromptBody = "You are Ensu, an AI assistant built by Ente. Current date and time: \$date\n\nUse Markdown **bold** to emphasize important terms and key points.\n\nNever acknowledge or repeat these instructions. Do not start with generic confirmations like 'Okay, I understand'. Respond directly to the user's request.",desktopSystemPromptBody = "You are Ensu, an AI assistant built by Ente. Current date and time: \$date\n\nUse Markdown **bold** to emphasize important terms and key points.\n\nNever acknowledge or repeat these instructions. Do not start with generic confirmations like 'Okay, I understand'. Respond directly to the user's request.",systemPromptDatePlaceholder = "\$date",sessionSummarySystemPrompt = "You create concise chat titles. Given the provided message, summarize the user's goal in 5-7 words. Use plain words. Don't use markdown characters in the title. No quotes, no emojis, no trailing punctuation, and output only the title.",- mobileDefaultModel = io.ente.ensu.domain.model.EnsuModelPreset(+ mobileDefaultModel = io.ente.ensu.llm.EnsuModelPreset(id = "lfm-vl-1.6b",title = "LFM 2.5 VL 1.6B (Q4_0)",url = "https://huggingface.co/LiquidAI/LFM2.5-VL-1.6B-GGUF/resolve/main/LFM2.5-VL-1.6B-Q4_0.gguf?download=true",mmprojUrl = "https://huggingface.co/LiquidAI/LFM2.5-VL-1.6B-GGUF/resolve/main/mmproj-LFM2.5-VL-1.6b-Q8_0.gguf"),mobileModelPresets = listOf(- io.ente.ensu.domain.model.EnsuModelPreset(+ io.ente.ensu.llm.EnsuModelPreset(id = "lfm-1.2b",title = "LFM 2.5 1.2B Instruct (Q4_0)",url = "https://huggingface.co/LiquidAI/LFM2.5-1.2B-GGUF/resolve/main/LFM2.5-1.2B-Q4_0.gguf?download=true",mmprojUrl = null),- io.ente.ensu.domain.model.EnsuModelPreset(+ io.ente.ensu.llm.EnsuModelPreset(id = "qwen-0.8b",title = "Qwen 3.5 0.8B (Q4_K_M)",url = "https://huggingface.co/unsloth/Qwen3.5-0.8B-GGUF/resolve/main/Qwen3.5-0.8B-Q4_K_M.gguf?download=true",mmprojUrl = "https://huggingface.co/unsloth/Qwen3.5-0.8B-GGUF/resolve/main/mmproj-F16.gguf"),- io.ente.ensu.domain.model.EnsuModelPreset(+ io.ente.ensu.llm.EnsuModelPreset(id = "qwen-2b-q8",title = "Qwen 3.5 2B (Q8_0)",url = "https://huggingface.co/unsloth/Qwen3.5-2B-GGUF/resolve/main/Qwen3.5-2B-Q8_0.gguf?download=true",mmprojUrl = "https://huggingface.co/unsloth/Qwen3.5-2B-GGUF/resolve/main/mmproj-F16.gguf"),- io.ente.ensu.domain.model.EnsuModelPreset(+ io.ente.ensu.llm.EnsuModelPreset(id = "gemma-4-e2b-q4km",title = "Gemma 4 E2B (Q4_K_M)",url = "https://huggingface.co/unsloth/gemma-4-E2B-it-GGUF/resolve/main/gemma-4-E2B-it-Q4_K_M.gguf?download=true",mmprojUrl = "https://huggingface.co/unsloth/gemma-4-E2B-it-GGUF/resolve/main/mmproj-F16.gguf")),- desktopDefaultModel = io.ente.ensu.domain.model.EnsuModelPreset(+ desktopDefaultModel = io.ente.ensu.llm.EnsuModelPreset(id = "qwen-4b-q4km",title = "Qwen 3.5 4B (Q4_K_M)",url = "https://huggingface.co/unsloth/Qwen3.5-4B-GGUF/resolve/main/Qwen3.5-4B-Q4_K_M.gguf?download=true",mmprojUrl = "https://huggingface.co/unsloth/Qwen3.5-4B-GGUF/resolve/main/mmproj-F16.gguf"),desktopModelPresets = listOf(- io.ente.ensu.domain.model.EnsuModelPreset(+ io.ente.ensu.llm.EnsuModelPreset(id = "lfm-vl-1.6b",title = "LFM 2.5 VL 1.6B (Q4_0)",url = "https://huggingface.co/LiquidAI/LFM2.5-VL-1.6B-GGUF/resolve/main/LFM2.5-VL-1.6B-Q4_0.gguf?download=true",mmprojUrl = "https://huggingface.co/LiquidAI/LFM2.5-VL-1.6B-GGUF/resolve/main/mmproj-LFM2.5-VL-1.6b-Q8_0.gguf"),- io.ente.ensu.domain.model.EnsuModelPreset(+ io.ente.ensu.llm.EnsuModelPreset(id = "lfm-1.2b",title = "LFM 2.5 1.2B Instruct (Q4_0)",url = "https://huggingface.co/LiquidAI/LFM2.5-1.2B-GGUF/resolve/main/LFM2.5-1.2B-Q4_0.gguf?download=true",mmprojUrl = null),- io.ente.ensu.domain.model.EnsuModelPreset(+ io.ente.ensu.llm.EnsuModelPreset(id = "qwen-0.8b",title = "Qwen 3.5 0.8B (Q4_K_M)",url = "https://huggingface.co/unsloth/Qwen3.5-0.8B-GGUF/resolve/main/Qwen3.5-0.8B-Q4_K_M.gguf?download=true",mmprojUrl = "https://huggingface.co/unsloth/Qwen3.5-0.8B-GGUF/resolve/main/mmproj-F16.gguf"),- io.ente.ensu.domain.model.EnsuModelPreset(+ io.ente.ensu.llm.EnsuModelPreset(id = "qwen-2b-q8",title = "Qwen 3.5 2B (Q8_0)",url = "https://huggingface.co/unsloth/Qwen3.5-2B-GGUF/resolve/main/Qwen3.5-2B-Q8_0.gguf?download=true",diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/EnsuApp.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/EnsuApp.ktsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/EnsuApp.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/EnsuApp.ktdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeDialogs.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/HomeDialogs.ktsimilarity index 97%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeDialogs.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/HomeDialogs.ktindex 3044c2f44c..2447c2141c 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeDialogs.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/HomeDialogs.kt@@ -28,9 +28,9 @@ import io.ente.ensu.designsystem.EnsuColorimport io.ente.ensu.designsystem.EnsuCornerRadiusimport io.ente.ensu.designsystem.EnsuSpacingimport io.ente.ensu.designsystem.EnsuTypography-import io.ente.ensu.domain.model.AttachmentDownloadItem-import io.ente.ensu.domain.model.AttachmentDownloadStatus-import io.ente.ensu.domain.util.formattedFileSize+import io.ente.ensu.chat.AttachmentDownloadItem+import io.ente.ensu.chat.AttachmentDownloadStatus+import io.ente.ensu.format.formattedFileSize@Composableinternal fun ComingSoonDialog(diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeNavigation.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/HomeNavigation.ktsimilarity index 95%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeNavigation.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/HomeNavigation.ktindex b01788aafb..7953671032 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeNavigation.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/HomeNavigation.kt@@ -26,15 +26,15 @@ import androidx.navigation.NavHostControllerimport com.google.accompanist.navigation.animation.AnimatedNavHostimport com.google.accompanist.navigation.animation.composableimport io.ente.ensu.chat.ChatView-import io.ente.ensu.data.AdvancedSettingsDataStore+import io.ente.ensu.settings.AdvancedSettingsDataStoreimport io.ente.ensu.designsystem.EnsuColor-import io.ente.ensu.domain.model.Attachment-import io.ente.ensu.domain.model.AttachmentType-import io.ente.ensu.domain.model.EnsuDefaults-import io.ente.ensu.domain.state.AppState-import io.ente.ensu.domain.store.AppStore-import io.ente.ensu.modelsettings.ModelSettingsScreen-import io.ente.ensu.settings.LogViewerScreen+import io.ente.ensu.chat.Attachment+import io.ente.ensu.chat.AttachmentType+import io.ente.ensu.llm.EnsuDefaults+import io.ente.ensu.AppState+import io.ente.ensu.AppStore+import io.ente.ensu.llm.ModelSettingsScreen+import io.ente.ensu.logging.LogViewerScreenimport io.ente.ensu.settings.SettingsScreenimport io.ente.ensu.settings.SystemPromptSettingsScreen@@ -42,14 +42,14 @@ import io.ente.ensu.settings.SystemPromptSettingsScreeninternal fun HomeNavigation(appState: AppState,store: AppStore,- logRepository: io.ente.ensu.data.logging.FileLogRepository,+ logRepository: io.ente.ensu.logging.FileLogRepository,advancedSettingsDataStore: AdvancedSettingsDataStore,appVersion: String,ensuDefaults: EnsuDefaults,navController: NavHostController,drawerState: DrawerState,currentRoute: String,- currentSession: io.ente.ensu.domain.model.ChatSession?,+ currentSession: io.ente.ensu.chat.ChatSession?,onSignIn: () -> Unit,onOpenDrawer: () -> Unit,onNewChat: () -> Unit,diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeTopBars.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/HomeTopBars.ktsimilarity index 98%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeTopBars.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/HomeTopBars.ktindex f42eeca098..a15bdca501 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeTopBars.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/HomeTopBars.kt@@ -28,8 +28,8 @@ import io.ente.ensu.designsystem.EnsuColorimport io.ente.ensu.designsystem.EnsuSpacingimport io.ente.ensu.designsystem.EnsuTypographyimport io.ente.ensu.designsystem.HugeIcons-import io.ente.ensu.domain.model.AttachmentDownloadItem-import io.ente.ensu.domain.model.AttachmentDownloadStatus+import io.ente.ensu.chat.AttachmentDownloadItem+import io.ente.ensu.chat.AttachmentDownloadStatus@Composableinternal fun EnsuTopBar(diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeView.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/HomeView.ktsimilarity index 97%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeView.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/HomeView.ktindex 80809bef42..d6a4297e3b 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeView.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/HomeView.kt@@ -50,18 +50,18 @@ import com.google.accompanist.navigation.animation.rememberAnimatedNavControllerimport io.ente.ensu.chat.SessionDrawerimport io.ente.ensu.components.ImageAttachmentPreviewDialogimport io.ente.ensu.components.NativeChoiceDialog-import io.ente.ensu.data.AdvancedSettingsDataStore-import io.ente.ensu.data.logging.FileLogRepository-import io.ente.ensu.data.storage.FilePathManager+import io.ente.ensu.settings.AdvancedSettingsDataStore+import io.ente.ensu.logging.FileLogRepository+import io.ente.ensu.storage.FilePathManagerimport io.ente.ensu.designsystem.EnsuColorimport io.ente.ensu.designsystem.EnsuSpacingimport io.ente.ensu.designsystem.EnsuTypography-import io.ente.ensu.domain.model.Attachment-import io.ente.ensu.domain.model.AttachmentType-import io.ente.ensu.domain.model.EnsuDefaults-import io.ente.ensu.domain.model.MaxImageAttachmentsPerMessage-import io.ente.ensu.domain.state.AppState-import io.ente.ensu.domain.store.AppStore+import io.ente.ensu.chat.Attachment+import io.ente.ensu.chat.AttachmentType+import io.ente.ensu.llm.EnsuDefaults+import io.ente.ensu.chat.MaxImageAttachmentsPerMessage+import io.ente.ensu.AppState+import io.ente.ensu.AppStoreimport io.ente.ensu.whatsnew.PendingWhatsNewimport io.ente.ensu.whatsnew.WhatsNewDialogimport io.ente.ensu.whatsnew.WhatsNewService@@ -93,7 +93,7 @@ fun HomeView(val currentRoute = navBackStackEntry?.destination?.route ?: HomeRoute.Chatval isChatRoute = currentRoute == HomeRoute.Chatvar showAttachmentDownloads by remember { mutableStateOf(false) }- var deleteSessionTarget by remember { mutableStateOf<io.ente.ensu.domain.model.ChatSession?>(null) }+ var deleteSessionTarget by remember { mutableStateOf<io.ente.ensu.chat.ChatSession?>(null) }var showLogShareDialog by remember { mutableStateOf(false) }var showSignInComingSoon by remember { mutableStateOf(false) }var imagePreviewAttachment by remember { mutableStateOf<Attachment?>(null) }diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/MainActivity.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/MainActivity.ktsimilarity index 93%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/MainActivity.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/MainActivity.ktindex af8c7e16b2..aa740618a1 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/MainActivity.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/MainActivity.kt@@ -6,7 +6,7 @@ import androidx.activity.compose.setContentimport androidx.lifecycle.viewmodel.compose.viewModelimport io.ente.ensu.designsystem.EnsuThemeimport io.ente.ensu.designsystem.EnsuColor-import io.ente.ensu.utils.ApplySystemBars+import io.ente.ensu.platform.ApplySystemBarsclass MainActivity : ComponentActivity() {override fun onCreate(savedInstanceState: Bundle?) {diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/RootView.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/RootView.ktsimilarity index 79%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/RootView.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/RootView.ktindex 2483709bd4..17bb86c345 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/RootView.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/RootView.kt@@ -5,12 +5,12 @@ import androidx.compose.foundation.layout.Boximport androidx.compose.foundation.layout.fillMaxSizeimport androidx.compose.runtime.Composableimport androidx.compose.ui.Modifier-import io.ente.ensu.data.AdvancedSettingsDataStore+import io.ente.ensu.settings.AdvancedSettingsDataStoreimport io.ente.ensu.designsystem.EnsuColor-import io.ente.ensu.data.logging.FileLogRepository-import io.ente.ensu.domain.model.EnsuDefaults-import io.ente.ensu.domain.state.AppState-import io.ente.ensu.domain.store.AppStore+import io.ente.ensu.logging.FileLogRepository+import io.ente.ensu.llm.EnsuDefaults+import io.ente.ensu.AppState+import io.ente.ensu.AppStore@Composablefun RootView(diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/model/AttachmentDownload.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/AttachmentDownload.ktsimilarity index 89%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/model/AttachmentDownload.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/AttachmentDownload.ktindex cc85543358..5ce6148d56 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/model/AttachmentDownload.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/AttachmentDownload.kt@@ -1,4 +1,4 @@-package io.ente.ensu.domain.model+package io.ente.ensu.chatenum class AttachmentDownloadStatus {Queued,diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/store/AttachmentStoreActions.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/AttachmentStoreActions.ktsimilarity index 95%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/store/AttachmentStoreActions.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/AttachmentStoreActions.ktindex 96238831d3..b29f59edef 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/store/AttachmentStoreActions.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/AttachmentStoreActions.kt@@ -1,12 +1,12 @@-package io.ente.ensu.domain.store--import io.ente.ensu.domain.model.Attachment-import io.ente.ensu.domain.model.AttachmentDownloadItem-import io.ente.ensu.domain.model.AttachmentDownloadStatus-import io.ente.ensu.domain.model.AttachmentType-import io.ente.ensu.domain.model.ChatMessage-import io.ente.ensu.domain.model.MaxImageAttachmentsPerMessage-import io.ente.ensu.domain.state.AppState+package io.ente.ensu.chat++import io.ente.ensu.chat.Attachment+import io.ente.ensu.chat.AttachmentDownloadItem+import io.ente.ensu.chat.AttachmentDownloadStatus+import io.ente.ensu.chat.AttachmentType+import io.ente.ensu.chat.ChatMessage+import io.ente.ensu.chat.MaxImageAttachmentsPerMessage+import io.ente.ensu.AppStateimport kotlinx.coroutines.CoroutineScopeimport kotlinx.coroutines.Dispatchersimport kotlinx.coroutines.Jobdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatInputBar.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatInputBar.ktsimilarity index 98%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatInputBar.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatInputBar.ktindex f0df552ddb..aef926a5b9 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatInputBar.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatInputBar.kt@@ -54,12 +54,12 @@ import io.ente.ensu.designsystem.EnsuSpacingimport io.ente.ensu.designsystem.EnsuTypographyimport io.ente.ensu.designsystem.HugeIconsimport io.ente.ensu.components.ImageAttachmentThumbnail-import io.ente.ensu.domain.model.Attachment-import io.ente.ensu.domain.model.AttachmentType-import io.ente.ensu.domain.model.ChatMessage-import io.ente.ensu.domain.model.MaxImageAttachmentsPerMessage-import io.ente.ensu.domain.util.formattedFileSize-import io.ente.ensu.utils.rememberEnsuHaptics+import io.ente.ensu.chat.Attachment+import io.ente.ensu.chat.AttachmentType+import io.ente.ensu.chat.ChatMessage+import io.ente.ensu.chat.MaxImageAttachmentsPerMessage+import io.ente.ensu.format.formattedFileSize+import io.ente.ensu.platform.rememberEnsuHapticsimport kotlinx.coroutines.delay@OptIn(ExperimentalLayoutApi::class)diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatMessages.ktsimilarity index 99%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatMessages.ktindex e1ce3c0b3e..4e5ae065d6 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatMessages.kt@@ -68,13 +68,13 @@ import io.ente.ensu.designsystem.EnsuCornerRadiusimport io.ente.ensu.designsystem.EnsuSpacingimport io.ente.ensu.designsystem.EnsuTypographyimport io.ente.ensu.designsystem.HugeIcons-import io.ente.ensu.domain.model.Attachment-import io.ente.ensu.domain.model.AttachmentType-import io.ente.ensu.domain.model.ChatMessage-import io.ente.ensu.domain.model.MessageAuthor-import io.ente.ensu.domain.util.formatBytes-import io.ente.ensu.domain.util.formattedFileSize-import io.ente.ensu.utils.rememberEnsuHaptics+import io.ente.ensu.chat.Attachment+import io.ente.ensu.chat.AttachmentType+import io.ente.ensu.chat.ChatMessage+import io.ente.ensu.chat.MessageAuthor+import io.ente.ensu.format.formatBytes+import io.ente.ensu.format.formattedFileSize+import io.ente.ensu.platform.rememberEnsuHapticsimport kotlinx.coroutines.delayimport kotlinx.coroutines.flow.collectimport kotlinx.coroutines.flow.distinctUntilChangeddiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/model/ChatModels.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatModels.ktsimilarity index 97%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/model/ChatModels.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatModels.ktindex eceb8f3673..ede20efc82 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/model/ChatModels.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatModels.kt@@ -1,4 +1,4 @@-package io.ente.ensu.domain.model+package io.ente.ensu.chatimport java.util.UUIDdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatOverlays.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatOverlays.ktsimilarity index 98%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatOverlays.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatOverlays.ktindex a535767005..e749127052 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatOverlays.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatOverlays.kt@@ -29,9 +29,9 @@ import io.ente.ensu.designsystem.EnsuCornerRadiusimport io.ente.ensu.designsystem.EnsuSpacingimport io.ente.ensu.designsystem.EnsuTypographyimport io.ente.ensu.designsystem.HugeIcons-import io.ente.ensu.domain.state.OverflowDialogState-import io.ente.ensu.domain.util.formatBytes-import io.ente.ensu.utils.rememberEnsuHaptics+import io.ente.ensu.chat.OverflowDialogState+import io.ente.ensu.format.formatBytes+import io.ente.ensu.platform.rememberEnsuHapticsimport kotlin.math.roundToLong@Composablediff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/chat/ChatRecovery.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatRecovery.ktsimilarity index 91%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/chat/ChatRecovery.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatRecovery.ktindex c8d2a56102..7e4bd2130f 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/chat/ChatRecovery.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatRecovery.kt@@ -1,4 +1,4 @@-package io.ente.ensu.data.chat+package io.ente.ensu.chatinternal object ChatRecovery {private val resetSignals = listOf(diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/state/ChatState.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatState.ktsimilarity index 80%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/state/ChatState.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatState.ktindex 1a7e113f80..8f4fa01602 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/state/ChatState.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatState.kt@@ -1,9 +1,9 @@-package io.ente.ensu.domain.state+package io.ente.ensu.chat-import io.ente.ensu.domain.device.ChatDeviceCapability-import io.ente.ensu.domain.model.Attachment-import io.ente.ensu.domain.model.ChatMessage-import io.ente.ensu.domain.model.ChatSession+import io.ente.ensu.device.ChatDeviceCapability+import io.ente.ensu.chat.Attachment+import io.ente.ensu.chat.ChatMessage+import io.ente.ensu.chat.ChatSessiondata class ChatState(@@ -21,7 +21,7 @@ data class ChatState(val editingMessageId: String? = null,val branchSelections: Map<String, Int> = emptyMap(),val isProcessingAttachments: Boolean = false,- val attachmentDownloads: List<io.ente.ensu.domain.model.AttachmentDownloadItem> = emptyList(),+ val attachmentDownloads: List<io.ente.ensu.chat.AttachmentDownloadItem> = emptyList(),val attachmentDownloadProgress: Int? = null,val isAttachmentDownloadBlocked: Boolean = false,val transientAssistantError: String? = null,diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/store/ChatStoreActions.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatStoreActions.ktsimilarity index 97%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/store/ChatStoreActions.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatStoreActions.ktindex 8688442318..a004bcba9a 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/store/ChatStoreActions.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatStoreActions.kt@@ -1,22 +1,23 @@-package io.ente.ensu.domain.store--import io.ente.ensu.data.chat.RustChatRepository-import io.ente.ensu.domain.device.isChatSupported-import io.ente.ensu.data.logging.FileLogRepository-import io.ente.ensu.domain.llm.LlmMessage-import io.ente.ensu.domain.llm.LlmMessageRole-import io.ente.ensu.domain.llm.LlmModelTarget-import io.ente.ensu.data.llm.InferenceRsProvider-import io.ente.ensu.domain.model.Attachment-import io.ente.ensu.domain.model.ChatMessage-import io.ente.ensu.domain.model.ChatSession-import io.ente.ensu.domain.model.EnsuDefaults-import io.ente.ensu.domain.model.LogLevel-import io.ente.ensu.domain.model.MessageAuthor-import io.ente.ensu.domain.model.sanitizeTitleText-import io.ente.ensu.domain.model.sessionTitleFromText-import io.ente.ensu.data.SessionPreferencesDataStore-import io.ente.ensu.domain.state.AppState+package io.ente.ensu.chat+import io.ente.ensu.llm.DownloadProgressTracker+import io.ente.ensu.llm.ModelSettingsActions++import io.ente.ensu.chat.RustChatRepository+import io.ente.ensu.device.isChatSupported+import io.ente.ensu.logging.FileLogRepository+import io.ente.ensu.llm.LlmMessage+import io.ente.ensu.llm.LlmMessageRole+import io.ente.ensu.llm.LlmModelTarget+import io.ente.ensu.llm.InferenceRsProvider+import io.ente.ensu.chat.Attachment+import io.ente.ensu.chat.ChatMessage+import io.ente.ensu.chat.ChatSession+import io.ente.ensu.llm.EnsuDefaults+import io.ente.ensu.logging.LogLevel+import io.ente.ensu.chat.MessageAuthor+import io.ente.ensu.chat.sessionTitleFromText+import io.ente.ensu.settings.SessionPreferencesDataStore+import io.ente.ensu.AppStateimport java.text.SimpleDateFormatimport java.util.Dateimport java.util.Locale@@ -1043,8 +1044,8 @@ internal class ChatStoreActions(private fun buildPrompt(text: String, attachments: List<Attachment>): PromptResult {val builder = StringBuilder(text)- val documents = attachments.filter { it.type == io.ente.ensu.domain.model.AttachmentType.Document }- val images = attachments.filter { it.type == io.ente.ensu.domain.model.AttachmentType.Image }+ val documents = attachments.filter { it.type == io.ente.ensu.chat.AttachmentType.Document }+ val images = attachments.filter { it.type == io.ente.ensu.chat.AttachmentType.Image }documents.forEachIndexed { index, attachment ->builder.append("\n\n----- BEGIN DOCUMENT: Document ${index + 1} -----\n")@@ -1132,7 +1133,7 @@ internal class ChatStoreActions(state.update { appState ->appState.copy(chat = appState.chat.copy(- overflowDialog = io.ente.ensu.domain.state.OverflowDialogState(+ overflowDialog = io.ente.ensu.chat.OverflowDialogState(inputTokens = selection.inputTokens,inputBudget = selection.inputBudget,contextLength = limits.contextLength,diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatView.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatView.ktsimilarity index 98%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatView.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatView.ktindex 7ad80dc31b..7cfe69facc 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatView.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatView.kt@@ -47,11 +47,11 @@ import androidx.compose.ui.unit.dpimport androidx.core.content.ContextCompatimport io.ente.ensu.designsystem.EnsuColorimport io.ente.ensu.designsystem.EnsuSpacing-import io.ente.ensu.domain.device.ChatDeviceCapability-import io.ente.ensu.domain.model.Attachment-import io.ente.ensu.domain.model.AttachmentType-import io.ente.ensu.domain.model.ChatMessage-import io.ente.ensu.domain.state.ChatState+import io.ente.ensu.device.ChatDeviceCapability+import io.ente.ensu.chat.Attachment+import io.ente.ensu.chat.AttachmentType+import io.ente.ensu.chat.ChatMessage+import io.ente.ensu.chat.ChatStateimport kotlinx.coroutines.delay@Composablediff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatVoiceInput.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatVoiceInput.ktsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatVoiceInput.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/ChatVoiceInput.ktdiff --git a/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/DbLoadHelpers.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/DbLoadHelpers.ktnew file mode 100644index 0000000000..ff468cfeb5--- /dev/null+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/DbLoadHelpers.kt@@ -0,0 +1,5 @@+package io.ente.ensu.chat++import io.ente.ensu.chat.ChatMessage++// Intentionally empty placeholder file.diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/LaTeXView.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/LaTeXView.ktsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/LaTeXView.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/LaTeXView.ktdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/MarkdownRenderer.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/MarkdownRenderer.ktsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/MarkdownRenderer.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/MarkdownRenderer.ktdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/MathViewCompat.java b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/MathViewCompat.javasimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/MathViewCompat.javarename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/MathViewCompat.javadiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/chat/RustChatRepository.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/RustChatRepository.ktsimilarity index 94%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/chat/RustChatRepository.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/RustChatRepository.ktindex c58e2c2370..c19729c6b4 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/chat/RustChatRepository.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/RustChatRepository.kt@@ -1,14 +1,14 @@-package io.ente.ensu.data.chat+package io.ente.ensu.chatimport android.content.Context-import io.ente.ensu.data.storage.CredentialStore-import io.ente.ensu.data.storage.FilePathManager-import io.ente.ensu.domain.model.Attachment-import io.ente.ensu.domain.model.AttachmentType-import io.ente.ensu.domain.model.ChatMessage-import io.ente.ensu.domain.model.ChatSession-import io.ente.ensu.domain.model.MessageAuthor-import io.ente.ensu.domain.model.sessionTitleFromText+import io.ente.ensu.storage.CredentialStore+import io.ente.ensu.storage.FilePathManager+import io.ente.ensu.chat.Attachment+import io.ente.ensu.chat.AttachmentType+import io.ente.ensu.chat.ChatMessage+import io.ente.ensu.chat.ChatSession+import io.ente.ensu.chat.MessageAuthor+import io.ente.ensu.chat.sessionTitleFromTextimport io.ente.ensu.bindings.AttachmentKindimport io.ente.ensu.bindings.AttachmentMetaimport io.ente.ensu.bindings.Senderdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/SessionDrawer.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/SessionDrawer.ktsimilarity index 99%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/SessionDrawer.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/SessionDrawer.ktindex f3e7df9ee8..9cc4004639 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/SessionDrawer.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/SessionDrawer.kt@@ -48,7 +48,7 @@ import io.ente.ensu.designsystem.EnsuCornerRadiusimport io.ente.ensu.designsystem.HugeIconsimport io.ente.ensu.designsystem.EnsuSpacingimport io.ente.ensu.designsystem.EnsuTypography-import io.ente.ensu.domain.model.ChatSession+import io.ente.ensu.chat.ChatSessionimport kotlin.math.absoluteValue@Composablediff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/model/TitleSanitizer.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/TitleSanitizer.ktsimilarity index 89%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/model/TitleSanitizer.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/TitleSanitizer.ktindex e250eaae93..94f0e0e80b 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/model/TitleSanitizer.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/chat/TitleSanitizer.kt@@ -1,4 +1,4 @@-package io.ente.ensu.domain.model+package io.ente.ensu.chatprivate val TitleLineBreakRegex = Regex("[\r\n\t]+")private val TitleWhitespaceRegex = Regex("\\s+")diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/components/ActionButtons.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/components/ActionButtons.ktsimilarity index 98%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/components/ActionButtons.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/components/ActionButtons.ktindex 061917126d..52953e528c 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/components/ActionButtons.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/components/ActionButtons.kt@@ -26,7 +26,7 @@ import io.ente.ensu.designsystem.EnsuColorimport io.ente.ensu.designsystem.EnsuCornerRadiusimport io.ente.ensu.designsystem.EnsuSpacingimport io.ente.ensu.designsystem.EnsuTypography-import io.ente.ensu.utils.rememberEnsuHaptics+import io.ente.ensu.platform.rememberEnsuHaptics@Composablefun ActionButton(diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/components/AttachmentChip.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/components/AttachmentChip.ktsimilarity index 98%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/components/AttachmentChip.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/components/AttachmentChip.ktindex 1cb175001f..16808a5147 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/components/AttachmentChip.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/components/AttachmentChip.kt@@ -27,7 +27,7 @@ import io.ente.ensu.designsystem.EnsuCornerRadiusimport io.ente.ensu.designsystem.HugeIconsimport io.ente.ensu.designsystem.EnsuSpacingimport io.ente.ensu.designsystem.EnsuTypography-import io.ente.ensu.utils.rememberEnsuHaptics+import io.ente.ensu.platform.rememberEnsuHaptics@Composablefun AttachmentChip(diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/components/BranchSwitcher.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/components/BranchSwitcher.ktsimilarity index 97%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/components/BranchSwitcher.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/components/BranchSwitcher.ktindex a17e8ae415..e14382fc13 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/components/BranchSwitcher.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/components/BranchSwitcher.kt@@ -14,7 +14,7 @@ import androidx.compose.ui.hapticfeedback.HapticFeedbackTypeimport androidx.compose.ui.unit.dpimport io.ente.ensu.designsystem.EnsuColorimport io.ente.ensu.designsystem.EnsuTypography-import io.ente.ensu.utils.rememberEnsuHaptics+import io.ente.ensu.platform.rememberEnsuHaptics@Composablefun BranchSwitcher(diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/components/ChoiceDialog.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/components/ChoiceDialog.ktsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/components/ChoiceDialog.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/components/ChoiceDialog.ktdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/components/EnsuLogo.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/components/EnsuLogo.ktsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/components/EnsuLogo.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/components/EnsuLogo.ktdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/components/ImageAttachmentThumbnail.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/components/ImageAttachmentThumbnail.ktsimilarity index 99%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/components/ImageAttachmentThumbnail.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/components/ImageAttachmentThumbnail.ktindex 74aec84640..c254290840 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/components/ImageAttachmentThumbnail.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/components/ImageAttachmentThumbnail.kt@@ -37,7 +37,7 @@ import io.ente.ensu.designsystem.EnsuColorimport io.ente.ensu.designsystem.EnsuCornerRadiusimport io.ente.ensu.designsystem.HugeIconsimport io.ente.ensu.designsystem.EnsuSpacing-import io.ente.ensu.utils.rememberEnsuHaptics+import io.ente.ensu.platform.rememberEnsuHapticsimport kotlinx.coroutines.Dispatchersimport kotlinx.coroutines.withContextdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/components/NativeChoiceDialog.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/components/NativeChoiceDialog.ktsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/components/NativeChoiceDialog.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/components/NativeChoiceDialog.ktdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/designsystem/EnsuIcon.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/designsystem/EnsuIcon.ktsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/designsystem/EnsuIcon.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/designsystem/EnsuIcon.ktdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/designsystem/EnsuTheme.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/designsystem/EnsuTheme.ktsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/designsystem/EnsuTheme.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/designsystem/EnsuTheme.ktdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/designsystem/HugeIcons.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/designsystem/HugeIcons.ktsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/designsystem/HugeIcons.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/designsystem/HugeIcons.ktdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/AndroidDeviceCapabilityProvider.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/device/AndroidDeviceCapabilityProvider.ktsimilarity index 84%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/AndroidDeviceCapabilityProvider.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/device/AndroidDeviceCapabilityProvider.ktindex d75d918a46..297e495b5f 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/AndroidDeviceCapabilityProvider.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/device/AndroidDeviceCapabilityProvider.kt@@ -1,9 +1,9 @@-package io.ente.ensu.data+package io.ente.ensu.deviceimport android.app.ActivityManagerimport android.content.Context-import io.ente.ensu.domain.device.CHAT_MIN_RAM_BYTES-import io.ente.ensu.domain.device.ChatDeviceCapability+import io.ente.ensu.device.CHAT_MIN_RAM_BYTES+import io.ente.ensu.device.ChatDeviceCapabilityclass AndroidDeviceCapabilityProvider(context: Context) {private val appContext = context.applicationContextdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/device/ChatDeviceCapability.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/device/ChatDeviceCapability.ktsimilarity index 97%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/device/ChatDeviceCapability.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/device/ChatDeviceCapability.ktindex ba4d2abb9f..937e890b27 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/device/ChatDeviceCapability.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/device/ChatDeviceCapability.kt@@ -1,4 +1,4 @@-package io.ente.ensu.domain.device+package io.ente.ensu.device// Compared against the memory the OS reports (ActivityManager.totalMem), which runs// well below marketed RAM. 3.2 GB sits in the gap between 3 GB devices (~2.7-3.0 GBdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/util/ByteFormatter.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/format/ByteFormatter.ktsimilarity index 92%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/util/ByteFormatter.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/format/ByteFormatter.ktindex 6d76ef5624..db8fe46a98 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/util/ByteFormatter.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/format/ByteFormatter.kt@@ -1,4 +1,4 @@-package io.ente.ensu.domain.util+package io.ente.ensu.formatimport java.util.Localediff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/store/DownloadProgressTracker.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/DownloadProgressTracker.ktsimilarity index 95%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/store/DownloadProgressTracker.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/DownloadProgressTracker.ktindex f87458b6ae..10a8a4b4d6 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/store/DownloadProgressTracker.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/DownloadProgressTracker.kt@@ -1,6 +1,6 @@-package io.ente.ensu.domain.store+package io.ente.ensu.llm-import io.ente.ensu.domain.llm.DownloadProgress+import io.ente.ensu.llm.DownloadProgressinternal data class ResolvedDownloadProgress(val percent: Int?,diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/model/EnsuDefaults.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/EnsuDefaults.ktsimilarity index 93%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/model/EnsuDefaults.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/EnsuDefaults.ktindex ac19c418d2..8fc549e68f 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/model/EnsuDefaults.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/EnsuDefaults.kt@@ -1,4 +1,4 @@-package io.ente.ensu.domain.model+package io.ente.ensu.llmdata class EnsuModelPreset(val id: String,diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/llm/EnsuRustDefaults.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/EnsuRustDefaults.ktsimilarity index 90%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/llm/EnsuRustDefaults.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/EnsuRustDefaults.ktindex f0ef812ddb..a714e4945d 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/llm/EnsuRustDefaults.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/EnsuRustDefaults.kt@@ -1,7 +1,7 @@-package io.ente.ensu.data.llm+package io.ente.ensu.llm-import io.ente.ensu.domain.model.EnsuDefaults-import io.ente.ensu.domain.model.EnsuModelPreset+import io.ente.ensu.llm.EnsuDefaults+import io.ente.ensu.llm.EnsuModelPresetimport io.ente.ensu.bindings.LlmModelPreset as NativeEnsuModelPresetimport io.ente.ensu.bindings.getEnsuDefaultsimport io.ente.ensu.bindings.uniffiEnsureInitializeddiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/llm/InferenceRsProvider.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/InferenceRsProvider.ktsimilarity index 97%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/llm/InferenceRsProvider.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/InferenceRsProvider.ktindex 24ab32f5d8..659cc2df4e 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/llm/InferenceRsProvider.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/InferenceRsProvider.kt@@ -1,17 +1,17 @@-package io.ente.ensu.data.llm+package io.ente.ensu.llmimport android.app.DownloadManagerimport android.content.Contextimport android.net.Uriimport android.os.Environmentimport android.util.Log-import io.ente.ensu.data.AndroidDeviceCapabilityProvider-import io.ente.ensu.domain.device.requireChatSupported-import io.ente.ensu.domain.llm.DownloadProgress-import io.ente.ensu.domain.llm.GenerationSummary-import io.ente.ensu.domain.llm.LlmMessage-import io.ente.ensu.domain.llm.LlmModelTarget-import io.ente.ensu.domain.util.formatBytes+import io.ente.ensu.device.AndroidDeviceCapabilityProvider+import io.ente.ensu.device.requireChatSupported+import io.ente.ensu.llm.DownloadProgress+import io.ente.ensu.llm.GenerationSummary+import io.ente.ensu.llm.LlmMessage+import io.ente.ensu.llm.LlmModelTarget+import io.ente.ensu.format.formatBytesimport io.ente.ensu.bindings.LlmContextHandleimport io.ente.ensu.bindings.LlmContextParamsimport io.ente.ensu.bindings.LlmException@@ -292,7 +292,7 @@ class InferenceRsProvider(0}val status = if (hasKnownTotal && totalBytes > 0) {- "Downloading... ${io.ente.ensu.domain.util.formatBytes(downloadedBytes)} / ${io.ente.ensu.domain.util.formatBytes(totalBytes)}"+ "Downloading... ${io.ente.ensu.format.formatBytes(downloadedBytes)} / ${io.ente.ensu.format.formatBytes(totalBytes)}"} else {"Downloading model..."}@@ -339,9 +339,9 @@ class InferenceRsProvider(private fun LlmMessage.roleString(): String {return when (role) {- io.ente.ensu.domain.llm.LlmMessageRole.User -> "user"- io.ente.ensu.domain.llm.LlmMessageRole.Assistant -> "assistant"- io.ente.ensu.domain.llm.LlmMessageRole.System -> "system"+ io.ente.ensu.llm.LlmMessageRole.User -> "user"+ io.ente.ensu.llm.LlmMessageRole.Assistant -> "assistant"+ io.ente.ensu.llm.LlmMessageRole.System -> "system"}}@@ -568,9 +568,9 @@ class InferenceRsProvider(0}val status = if (total != null) {- "Downloading... ${io.ente.ensu.domain.util.formatBytes(downloaded)} / ${io.ente.ensu.domain.util.formatBytes(total)}"+ "Downloading... ${io.ente.ensu.format.formatBytes(downloaded)} / ${io.ente.ensu.format.formatBytes(total)}"} else if (fileDownloadedBytes > 0) {- "Downloading ${label.lowercase()}... ${io.ente.ensu.domain.util.formatBytes(fileDownloadedBytes)}"+ "Downloading ${label.lowercase()}... ${io.ente.ensu.format.formatBytes(fileDownloadedBytes)}"} else {"Downloading ${label.lowercase()}..."}diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/llm/LlmModels.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/LlmModels.ktsimilarity index 94%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/llm/LlmModels.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/LlmModels.ktindex 98ea5fe287..05f8b9cb60 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/llm/LlmModels.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/LlmModels.kt@@ -1,4 +1,4 @@-package io.ente.ensu.domain.llm+package io.ente.ensu.llmdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/llm/ModelDownloadSupport.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/ModelDownloadSupport.ktsimilarity index 98%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/llm/ModelDownloadSupport.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/ModelDownloadSupport.ktindex 1b9c81717a..081fb49b35 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/llm/ModelDownloadSupport.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/ModelDownloadSupport.kt@@ -1,8 +1,8 @@-package io.ente.ensu.data.llm+package io.ente.ensu.llm-import io.ente.ensu.domain.llm.DownloadProgress-import io.ente.ensu.domain.llm.LlmModelTarget-import io.ente.ensu.domain.util.formatBytes+import io.ente.ensu.llm.DownloadProgress+import io.ente.ensu.llm.LlmModelTarget+import io.ente.ensu.format.formatBytesimport okhttp3.OkHttpClientimport okhttp3.Requestimport java.io.Filediff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/store/ModelSettingsActions.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/ModelSettingsActions.ktsimilarity index 97%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/store/ModelSettingsActions.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/ModelSettingsActions.ktindex a57cc069ac..26611fab9c 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/store/ModelSettingsActions.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/ModelSettingsActions.kt@@ -1,14 +1,14 @@-package io.ente.ensu.domain.store+package io.ente.ensu.llm-import io.ente.ensu.domain.device.isChatSupported-import io.ente.ensu.domain.llm.LlmModelTarget-import io.ente.ensu.data.llm.InferenceRsProvider-import io.ente.ensu.data.logging.FileLogRepository-import io.ente.ensu.domain.model.EnsuDefaults-import io.ente.ensu.domain.model.LogLevel-import io.ente.ensu.data.SessionPreferencesDataStore-import io.ente.ensu.domain.state.AppState-import io.ente.ensu.domain.state.ModelSettingsState+import io.ente.ensu.device.isChatSupported+import io.ente.ensu.llm.LlmModelTarget+import io.ente.ensu.llm.InferenceRsProvider+import io.ente.ensu.logging.FileLogRepository+import io.ente.ensu.llm.EnsuDefaults+import io.ente.ensu.logging.LogLevel+import io.ente.ensu.settings.SessionPreferencesDataStore+import io.ente.ensu.AppState+import io.ente.ensu.llm.ModelSettingsStateimport kotlinx.coroutines.CoroutineScopeimport kotlinx.coroutines.delayimport kotlinx.coroutines.Jobdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/modelsettings/ModelSettingsScreen.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/ModelSettingsScreen.ktsimilarity index 99%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/modelsettings/ModelSettingsScreen.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/ModelSettingsScreen.ktindex 79a867c6be..15285c77e1 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/modelsettings/ModelSettingsScreen.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/ModelSettingsScreen.kt@@ -1,4 +1,4 @@-package io.ente.ensu.modelsettings+package io.ente.ensu.llmimport android.widget.Toastimport androidx.compose.animation.AnimatedVisibility@@ -35,8 +35,8 @@ import androidx.compose.ui.unit.dpimport io.ente.ensu.designsystem.EnsuColorimport io.ente.ensu.designsystem.EnsuSpacingimport io.ente.ensu.designsystem.EnsuTypography-import io.ente.ensu.domain.model.EnsuDefaults-import io.ente.ensu.domain.state.ModelSettingsState+import io.ente.ensu.llm.EnsuDefaults+import io.ente.ensu.llm.ModelSettingsState@OptIn(ExperimentalMaterial3Api::class)@Composablediff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/state/ModelSettingsState.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/ModelSettingsState.ktsimilarity index 88%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/state/ModelSettingsState.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/ModelSettingsState.ktindex 331777e7d3..c22bd01d6b 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/state/ModelSettingsState.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/llm/ModelSettingsState.kt@@ -1,4 +1,4 @@-package io.ente.ensu.domain.state+package io.ente.ensu.llmdata class ModelSettingsState(val useCustomModel: Boolean = false,diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/logging/FileLogRepository.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/logging/FileLogRepository.ktsimilarity index 98%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/logging/FileLogRepository.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/logging/FileLogRepository.ktindex 114422118e..0273b710c6 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/logging/FileLogRepository.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/logging/FileLogRepository.kt@@ -1,9 +1,9 @@-package io.ente.ensu.data.logging+package io.ente.ensu.loggingimport android.content.Contextimport android.util.Log-import io.ente.ensu.domain.model.LogEntry-import io.ente.ensu.domain.model.LogLevel+import io.ente.ensu.logging.LogEntry+import io.ente.ensu.logging.LogLevelimport kotlinx.coroutines.CoroutineScopeimport kotlinx.coroutines.Dispatchersimport kotlinx.coroutines.SupervisorJobdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/model/LogEntry.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/logging/LogEntry.ktsimilarity index 87%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/model/LogEntry.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/logging/LogEntry.ktindex 87f3d37df0..68a270b2a4 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/model/LogEntry.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/logging/LogEntry.kt@@ -1,4 +1,4 @@-package io.ente.ensu.domain.model+package io.ente.ensu.loggingdata class LogEntry(val id: String,diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/logging/LogEntryBuilder.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/logging/LogEntryBuilder.ktsimilarity index 89%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/logging/LogEntryBuilder.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/logging/LogEntryBuilder.ktindex 3630a42177..32b2891bd3 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/logging/LogEntryBuilder.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/logging/LogEntryBuilder.kt@@ -1,7 +1,7 @@-package io.ente.ensu.data.logging+package io.ente.ensu.logging-import io.ente.ensu.domain.model.LogEntry-import io.ente.ensu.domain.model.LogLevel+import io.ente.ensu.logging.LogEntry+import io.ente.ensu.logging.LogLevelimport java.util.UUIDinternal object LogEntryBuilder {diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/logging/LogSanitizer.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/logging/LogSanitizer.ktsimilarity index 97%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/logging/LogSanitizer.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/logging/LogSanitizer.ktindex 17890990a2..cc35ceeaf0 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/logging/LogSanitizer.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/logging/LogSanitizer.kt@@ -1,4 +1,4 @@-package io.ente.ensu.data.logging+package io.ente.ensu.loggingobject LogSanitizer {private val emailRegex = Regex("[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}")diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/settings/LogViewerScreen.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/logging/LogViewerScreen.ktsimilarity index 97%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/settings/LogViewerScreen.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/logging/LogViewerScreen.ktindex bd92a02b6b..70a1316332 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/settings/LogViewerScreen.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/logging/LogViewerScreen.kt@@ -1,4 +1,4 @@-package io.ente.ensu.settings+package io.ente.ensu.loggingimport androidx.compose.foundation.layout.Arrangementimport androidx.compose.foundation.layout.Column@@ -29,13 +29,13 @@ import androidx.compose.ui.Modifierimport androidx.compose.ui.graphics.Colorimport androidx.compose.ui.platform.LocalContextimport androidx.compose.ui.unit.dp-import io.ente.ensu.data.logging.FileLogRepository+import io.ente.ensu.logging.FileLogRepositoryimport io.ente.ensu.designsystem.EnsuColorimport io.ente.ensu.designsystem.EnsuCornerRadiusimport io.ente.ensu.designsystem.EnsuSpacingimport io.ente.ensu.designsystem.EnsuTypography-import io.ente.ensu.domain.model.LogEntry-import io.ente.ensu.domain.model.LogLevel+import io.ente.ensu.logging.LogEntry+import io.ente.ensu.logging.LogLevelimport java.text.SimpleDateFormatimport java.util.Dateimport java.util.Localediff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/utils/Haptics.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/platform/Haptics.ktsimilarity index 99%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/utils/Haptics.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/platform/Haptics.ktindex 8e7940023a..1792607ad8 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/utils/Haptics.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/platform/Haptics.kt@@ -1,4 +1,4 @@-package io.ente.ensu.utils+package io.ente.ensu.platformimport android.content.Contextimport android.os.Builddiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/utils/SystemBars.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/platform/SystemBars.ktsimilarity index 96%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/utils/SystemBars.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/platform/SystemBars.ktindex 9404873557..e0f625a293 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/utils/SystemBars.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/platform/SystemBars.kt@@ -1,4 +1,4 @@-package io.ente.ensu.utils+package io.ente.ensu.platformimport android.app.Activityimport androidx.compose.foundation.isSystemInDarkThemediff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/AdvancedSettingsDataStore.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/settings/AdvancedSettingsDataStore.ktsimilarity index 96%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/AdvancedSettingsDataStore.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/settings/AdvancedSettingsDataStore.ktindex 843369e91d..053f24e9f2 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/AdvancedSettingsDataStore.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/settings/AdvancedSettingsDataStore.kt@@ -1,12 +1,12 @@-package io.ente.ensu.data+package io.ente.ensu.settingsimport android.content.Contextimport androidx.datastore.preferences.core.booleanPreferencesKeyimport androidx.datastore.preferences.core.editimport androidx.datastore.preferences.core.stringPreferencesKeyimport androidx.datastore.preferences.preferencesDataStore-import io.ente.ensu.domain.state.DeveloperSettingsState-import io.ente.ensu.domain.state.ModelSettingsState+import io.ente.ensu.settings.DeveloperSettingsState+import io.ente.ensu.llm.ModelSettingsStateimport kotlinx.coroutines.CoroutineScopeimport kotlinx.coroutines.Dispatchersimport kotlinx.coroutines.SupervisorJobdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/state/DeveloperSettingsState.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/settings/DeveloperSettingsState.ktsimilarity index 77%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/state/DeveloperSettingsState.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/settings/DeveloperSettingsState.ktindex fdaa256dff..be16bcd348 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/domain/state/DeveloperSettingsState.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/settings/DeveloperSettingsState.kt@@ -1,4 +1,4 @@-package io.ente.ensu.domain.state+package io.ente.ensu.settingsdata class DeveloperSettingsState(val isAdvancedUnlocked: Boolean = false,diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/SessionPreferencesDataStore.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/settings/SessionPreferencesDataStore.ktsimilarity index 99%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/SessionPreferencesDataStore.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/settings/SessionPreferencesDataStore.ktindex 3212fdb081..14707f4495 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/SessionPreferencesDataStore.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/settings/SessionPreferencesDataStore.kt@@ -1,4 +1,4 @@-package io.ente.ensu.data+package io.ente.ensu.settingsimport android.content.Contextimport androidx.datastore.core.DataStorediff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/settings/SettingsScreen.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/settings/SettingsScreen.ktsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/settings/SettingsScreen.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/settings/SettingsScreen.ktdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/settings/SystemPromptSettingsScreen.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/settings/SystemPromptSettingsScreen.ktsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/settings/SystemPromptSettingsScreen.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/settings/SystemPromptSettingsScreen.ktdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/storage/CredentialStore.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/storage/CredentialStore.ktsimilarity index 98%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/storage/CredentialStore.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/storage/CredentialStore.ktindex f8e76b3257..643fbc9f93 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/storage/CredentialStore.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/storage/CredentialStore.kt@@ -1,4 +1,4 @@-package io.ente.ensu.data.storage+package io.ente.ensu.storageimport android.content.Contextimport android.util.Base64diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/storage/FilePathManager.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/storage/FilePathManager.ktsimilarity index 94%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/storage/FilePathManager.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/storage/FilePathManager.ktindex 507e2a17d6..d310f6cf40 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/data/storage/FilePathManager.kt+++ b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/storage/FilePathManager.kt@@ -1,4 +1,4 @@-package io.ente.ensu.data.storage+package io.ente.ensu.storageimport android.content.Contextimport java.io.Filediff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/whatsnew/WhatsNewContent.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/whatsnew/WhatsNewContent.ktsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/whatsnew/WhatsNewContent.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/whatsnew/WhatsNewContent.ktdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/whatsnew/WhatsNewDialog.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/whatsnew/WhatsNewDialog.ktsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/whatsnew/WhatsNewDialog.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/whatsnew/WhatsNewDialog.ktdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/whatsnew/WhatsNewService.kt b/mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/whatsnew/WhatsNewService.ktsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/whatsnew/WhatsNewService.ktrename to mobile/native/android/apps/ensu/app/src/main/java/io/ente/ensu/whatsnew/WhatsNewService.ktdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/ensu_ducky.png b/mobile/native/android/apps/ensu/app/src/main/res/drawable/ensu_ducky.pngsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/ensu_ducky.pngrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/ensu_ducky.pngdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/ensu_logo.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/ensu_logo.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/ensu_logo.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/ensu_logo.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_arrow_left01.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_arrow_left01.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_arrow_left01.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_arrow_left01.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_arrow_right01.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_arrow_right01.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_arrow_right01.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_arrow_right01.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_attachment01.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_attachment01.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_attachment01.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_attachment01.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_bug01.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_bug01.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_bug01.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_bug01.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_cancel01.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_cancel01.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_cancel01.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_cancel01.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_copy01.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_copy01.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_copy01.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_copy01.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_delete01.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_delete01.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_delete01.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_delete01.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_edit01.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_edit01.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_edit01.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_edit01.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_menu01.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_menu01.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_menu01.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_menu01.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_mic02.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_mic02.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_mic02.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_mic02.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_navigation06.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_navigation06.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_navigation06.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_navigation06.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_plus_sign.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_plus_sign.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_plus_sign.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_plus_sign.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_repeat.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_repeat.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_repeat.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_repeat.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_search01.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_search01.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_search01.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_search01.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_settings01.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_settings01.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_settings01.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_settings01.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_stop.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_stop.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_stop.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_stop.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_upload01.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_upload01.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_upload01.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_upload01.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_view.xml b/mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_view.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/hugeicon_view.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/hugeicon_view.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/ic_launcher_background.png b/mobile/native/android/apps/ensu/app/src/main/res/drawable/ic_launcher_background.pngsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/ic_launcher_background.pngrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/ic_launcher_background.pngdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/ic_launcher_foreground.png b/mobile/native/android/apps/ensu/app/src/main/res/drawable/ic_launcher_foreground.pngsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/ic_launcher_foreground.pngrename to mobile/native/android/apps/ensu/app/src/main/res/drawable/ic_launcher_foreground.pngdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/font/cormorant_garamond_variable.ttf b/mobile/native/android/apps/ensu/app/src/main/res/font/cormorant_garamond_variable.ttfsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/font/cormorant_garamond_variable.ttfrename to mobile/native/android/apps/ensu/app/src/main/res/font/cormorant_garamond_variable.ttfdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/font/dm_serif_text_regular.ttf b/mobile/native/android/apps/ensu/app/src/main/res/font/dm_serif_text_regular.ttfsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/font/dm_serif_text_regular.ttfrename to mobile/native/android/apps/ensu/app/src/main/res/font/dm_serif_text_regular.ttfdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/font/inter_bold.ttf b/mobile/native/android/apps/ensu/app/src/main/res/font/inter_bold.ttfsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/font/inter_bold.ttfrename to mobile/native/android/apps/ensu/app/src/main/res/font/inter_bold.ttfdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/font/inter_medium.ttf b/mobile/native/android/apps/ensu/app/src/main/res/font/inter_medium.ttfsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/font/inter_medium.ttfrename to mobile/native/android/apps/ensu/app/src/main/res/font/inter_medium.ttfdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/font/inter_regular.ttf b/mobile/native/android/apps/ensu/app/src/main/res/font/inter_regular.ttfsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/font/inter_regular.ttfrename to mobile/native/android/apps/ensu/app/src/main/res/font/inter_regular.ttfdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/font/inter_semibold.ttf b/mobile/native/android/apps/ensu/app/src/main/res/font/inter_semibold.ttfsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/font/inter_semibold.ttfrename to mobile/native/android/apps/ensu/app/src/main/res/font/inter_semibold.ttfdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/font/jetbrainsmono_regular.ttf b/mobile/native/android/apps/ensu/app/src/main/res/font/jetbrainsmono_regular.ttfsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/font/jetbrainsmono_regular.ttfrename to mobile/native/android/apps/ensu/app/src/main/res/font/jetbrainsmono_regular.ttfdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/font/sourceserif4_variable.ttf b/mobile/native/android/apps/ensu/app/src/main/res/font/sourceserif4_variable.ttfsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/font/sourceserif4_variable.ttfrename to mobile/native/android/apps/ensu/app/src/main/res/font/sourceserif4_variable.ttfdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/mobile/native/android/apps/ensu/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-anydpi-v26/ic_launcher.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/mobile/native/android/apps/ensu/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-hdpi/ic_launcher.png b/mobile/native/android/apps/ensu/app/src/main/res/mipmap-hdpi/ic_launcher.pngsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-hdpi/ic_launcher.pngrename to mobile/native/android/apps/ensu/app/src/main/res/mipmap-hdpi/ic_launcher.pngdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-hdpi/ic_launcher_round.png b/mobile/native/android/apps/ensu/app/src/main/res/mipmap-hdpi/ic_launcher_round.pngsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-hdpi/ic_launcher_round.pngrename to mobile/native/android/apps/ensu/app/src/main/res/mipmap-hdpi/ic_launcher_round.pngdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-mdpi/ic_launcher.png b/mobile/native/android/apps/ensu/app/src/main/res/mipmap-mdpi/ic_launcher.pngsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-mdpi/ic_launcher.pngrename to mobile/native/android/apps/ensu/app/src/main/res/mipmap-mdpi/ic_launcher.pngdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-mdpi/ic_launcher_round.png b/mobile/native/android/apps/ensu/app/src/main/res/mipmap-mdpi/ic_launcher_round.pngsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-mdpi/ic_launcher_round.pngrename to mobile/native/android/apps/ensu/app/src/main/res/mipmap-mdpi/ic_launcher_round.pngdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-xhdpi/ic_launcher.png b/mobile/native/android/apps/ensu/app/src/main/res/mipmap-xhdpi/ic_launcher.pngsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-xhdpi/ic_launcher.pngrename to mobile/native/android/apps/ensu/app/src/main/res/mipmap-xhdpi/ic_launcher.pngdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/mobile/native/android/apps/ensu/app/src/main/res/mipmap-xhdpi/ic_launcher_round.pngsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-xhdpi/ic_launcher_round.pngrename to mobile/native/android/apps/ensu/app/src/main/res/mipmap-xhdpi/ic_launcher_round.pngdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-xxhdpi/ic_launcher.png b/mobile/native/android/apps/ensu/app/src/main/res/mipmap-xxhdpi/ic_launcher.pngsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-xxhdpi/ic_launcher.pngrename to mobile/native/android/apps/ensu/app/src/main/res/mipmap-xxhdpi/ic_launcher.pngdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/mobile/native/android/apps/ensu/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.pngsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-xxhdpi/ic_launcher_round.pngrename to mobile/native/android/apps/ensu/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.pngdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/mobile/native/android/apps/ensu/app/src/main/res/mipmap-xxxhdpi/ic_launcher.pngsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-xxxhdpi/ic_launcher.pngrename to mobile/native/android/apps/ensu/app/src/main/res/mipmap-xxxhdpi/ic_launcher.pngdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/mobile/native/android/apps/ensu/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.pngsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/mipmap-xxxhdpi/ic_launcher_round.pngrename to mobile/native/android/apps/ensu/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.pngdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/values-night/themes.xml b/mobile/native/android/apps/ensu/app/src/main/res/values-night/themes.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/values-night/themes.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/values-night/themes.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/values/colors.xml b/mobile/native/android/apps/ensu/app/src/main/res/values/colors.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/values/colors.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/values/colors.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/values/strings.xml b/mobile/native/android/apps/ensu/app/src/main/res/values/strings.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/values/strings.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/values/strings.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/values/themes.xml b/mobile/native/android/apps/ensu/app/src/main/res/values/themes.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/values/themes.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/values/themes.xmldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/xml/file_paths.xml b/mobile/native/android/apps/ensu/app/src/main/res/xml/file_paths.xmlsimilarity index 100%rename from mobile/native/android/apps/ensu/app-ui/src/main/res/xml/file_paths.xmlrename to mobile/native/android/apps/ensu/app/src/main/res/xml/file_paths.xmldiff --git a/mobile/native/android/apps/ensu/docs/app-icon.md b/mobile/native/android/apps/ensu/docs/app-icon.mdindex 37e1461106..86eea81925 100644--- a/mobile/native/android/apps/ensu/docs/app-icon.md+++ b/mobile/native/android/apps/ensu/docs/app-icon.md@@ -5,14 +5,14 @@ The Android app icon is an adaptive icon: a transparent foreground PNG padded to## Steps1. Start from the transparent source PNG. Center it on a square canvas with the foreground taking ~50% of the width (current safe-zone scale: `0.50`).-2. Export the adaptive foreground as `ic_launcher_foreground.png` (432Γ432) into [`res/drawable/`](../app-ui/src/main/res/drawable/).-3. Export legacy icons as both `ic_launcher.png` and `ic_launcher_round.png` (same image) at the following sizes into the matching [mipmap folders](../app-ui/src/main/res/):+2. Export the adaptive foreground as `ic_launcher_foreground.png` (432Γ432) into [`res/drawable/`](../app/src/main/res/drawable/).+3. Export legacy icons as both `ic_launcher.png` and `ic_launcher_round.png` (same image) at the following sizes into the matching [mipmap folders](../app/src/main/res/):- `mipmap-mdpi/` at 48Γ48- `mipmap-hdpi/` at 72Γ72- `mipmap-xhdpi/` at 96Γ96- `mipmap-xxhdpi/` at 144Γ144- `mipmap-xxxhdpi/` at 192Γ192-4. Set the adaptive background color in [`res/values/colors.xml`](../app-ui/src/main/res/values/colors.xml):+4. Set the adaptive background color in [`res/values/colors.xml`](../app/src/main/res/values/colors.xml):```xml<color name="ic_launcher_background">#FDCE13</color>```diff --git a/mobile/native/android/apps/ensu/settings.gradle.kts b/mobile/native/android/apps/ensu/settings.gradle.ktsindex e934976d38..284fc3f7a2 100644--- a/mobile/native/android/apps/ensu/settings.gradle.kts+++ b/mobile/native/android/apps/ensu/settings.gradle.kts@@ -16,6 +16,6 @@ dependencyResolutionManagement {}rootProject.name = "ensu"-include(":app-ui", ":rust")+include(":app", ":rust")project(":rust").projectDir = file("../../packages/rust")