π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
ensu: remove drawer brand/logo from android and ios
Prateek Sunal5c0a88cebd36
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-ui/src/main/java/io/ente/ensu/HomeView.ktindex 29624148c7..722f285835 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeView.kt+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeView.kt@@ -281,9 +281,6 @@ fun HomeView(popUpTo(HomeRoute.Chat) { inclusive = false }}scope.launch { drawerState.close() }- },- onDeveloperTap = {- handleDeveloperTap()})}diff --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-ui/src/main/java/io/ente/ensu/chat/SessionDrawer.ktindex e738f412a4..f9316c35cf 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-ui/src/main/java/io/ente/ensu/chat/SessionDrawer.kt@@ -43,7 +43,6 @@ import androidx.compose.ui.text.font.FontWeightimport androidx.compose.ui.text.style.TextOverflowimport androidx.compose.ui.unit.dpimport androidx.compose.ui.unit.sp-import io.ente.ensu.components.ensuRiveAnimationimport io.ente.ensu.designsystem.EnsuColorimport io.ente.ensu.designsystem.EnsuCornerRadiusimport io.ente.ensu.designsystem.HugeIcons@@ -62,8 +61,7 @@ fun SessionDrawer(onSelectSession: (ChatSession) -> Unit,onDeleteSession: (ChatSession) -> Unit,onSync: () -> Unit,- onOpenSettings: () -> Unit,- onDeveloperTap: () -> Unit+ onOpenSettings: () -> Unit) {var searchQuery by remember { mutableStateOf("") }val filteredSessions = remember(searchQuery, sessions) {@@ -92,7 +90,6 @@ fun SessionDrawer(isLoggedIn = isLoggedIn,searchQuery = searchQuery,onSearchChange = { searchQuery = it },- onDeveloperTap = onDeveloperTap,onNewChat = onNewChat,onSync = onSync)@@ -123,7 +120,6 @@ private fun DrawerHeader(isLoggedIn: Boolean,searchQuery: String,onSearchChange: (String) -> Unit,- onDeveloperTap: () -> Unit,onNewChat: () -> Unit,onSync: () -> Unit) {@@ -138,17 +134,6 @@ private fun DrawerHeader(modifier = Modifier.fillMaxWidth(),verticalAlignment = Alignment.CenterVertically) {- Box(- modifier = Modifier- .clickable(enabled = !isLoggedIn) { onDeveloperTap() }- ) {- ensuRiveAnimation(- modifier = Modifier- .width(248.dp)- .height(64.dp)- )- }-Spacer(modifier = Modifier.weight(1f))if (isLoggedIn) {diff --git a/mobile/native/darwin/Apps/ensu/ensu/Chat/ChatView.swift b/mobile/native/darwin/Apps/ensu/ensu/Chat/ChatView.swiftindex cd6a10534f..51c3b5177f 100644--- a/mobile/native/darwin/Apps/ensu/ensu/Chat/ChatView.swift+++ b/mobile/native/darwin/Apps/ensu/ensu/Chat/ChatView.swift@@ -420,9 +420,6 @@ struct ChatView: View {onOpenSettings: {viewState.isDrawerOpen = falseviewState.showSettings = true- },- onDeveloperTap: {- handleDeveloperTap()}).frame(width: drawerWidth)diff --git a/mobile/native/darwin/Apps/ensu/ensu/Chat/SessionDrawerView.swift b/mobile/native/darwin/Apps/ensu/ensu/Chat/SessionDrawerView.swiftindex ea50f437b2..efd3f70267 100644--- a/mobile/native/darwin/Apps/ensu/ensu/Chat/SessionDrawerView.swift+++ b/mobile/native/darwin/Apps/ensu/ensu/Chat/SessionDrawerView.swift@@ -11,7 +11,6 @@ struct SessionDrawerView: View {let onDeleteSession: (ChatSession) -> Voidlet onSync: () -> Voidlet onOpenSettings: () -> Void- let onDeveloperTap: () -> Void@State private var searchQuery: String = ""@@ -50,16 +49,6 @@ struct SessionDrawerView: View {private var drawerHeader: some View {VStack(alignment: .leading, spacing: EnsuSpacing.md) {HStack {- if isLoggedIn {- drawerLogo- } else {- drawerLogo- .contentShape(Rectangle())- .onTapGesture {- onDeveloperTap()- }- }-Spacer()if isLoggedIn {@@ -78,10 +67,6 @@ struct SessionDrawerView: View {.background(EnsuColor.backgroundBase)}- private var drawerLogo: some View {- EnsuBrandIllustration(width: 248, height: 64)- }-private var headerControls: some View {HStack(alignment: .center, spacing: EnsuSpacing.sm) {searchField