From 7ef15e8afa435c0cc7bd2d3552eb160919db6c90 Mon Sep 17 00:00:00 2001 From: cp-megh Date: Wed, 9 Oct 2024 15:56:11 +0530 Subject: [PATCH] change space to group --- .../ui/flow/auth/SignInMethodViewModel.kt | 4 ++ .../ui/flow/auth/SignInMethodsScreen.kt | 1 + app/src/main/res/values/strings.xml | 56 +++++++++---------- 3 files changed, 33 insertions(+), 28 deletions(-) diff --git a/app/src/main/java/com/canopas/yourspace/ui/flow/auth/SignInMethodViewModel.kt b/app/src/main/java/com/canopas/yourspace/ui/flow/auth/SignInMethodViewModel.kt index 21021a6e..c3ccfa24 100644 --- a/app/src/main/java/com/canopas/yourspace/ui/flow/auth/SignInMethodViewModel.kt +++ b/app/src/main/java/com/canopas/yourspace/ui/flow/auth/SignInMethodViewModel.kt @@ -104,6 +104,10 @@ class SignInMethodViewModel @Inject constructor( ) } } + + fun showAppleLoadingState() { + _state.value = _state.value.copy(showAppleLoading = true) + } } data class SignInMethodScreenState( diff --git a/app/src/main/java/com/canopas/yourspace/ui/flow/auth/SignInMethodsScreen.kt b/app/src/main/java/com/canopas/yourspace/ui/flow/auth/SignInMethodsScreen.kt index 2fc65cb9..db09828b 100644 --- a/app/src/main/java/com/canopas/yourspace/ui/flow/auth/SignInMethodsScreen.kt +++ b/app/src/main/java/com/canopas/yourspace/ui/flow/auth/SignInMethodsScreen.kt @@ -153,6 +153,7 @@ fun AppleSignInBtn() { PrimaryTextButton( onClick = { + viewModel.showAppleLoadingState() val provider = OAuthProvider.newBuilder("apple.com") provider.setScopes(arrayListOf("email", "name")) FirebaseAuth.getInstance().pendingAuthResult diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f9003f0c..dac8cc90 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -8,7 +8,7 @@ Verify Allow Create new - Join space + Join group Okay Got it Congratulations! @@ -22,7 +22,7 @@ Reply Save - Let\'s stay connected! Use invite code %s to join my Space.\nDownload the app. + Let\'s stay connected! Use invite code %s to join my Group.\nDownload the app. You\'ve been logged out You need to sign in again to continue using the application. Turn on location/GPS @@ -32,8 +32,8 @@ Go to settings > select "Allow all the time" Go to settings > GroupTrack app info > Location permission > select "Allow all the time" Go to Settings - No Space Found! - The space you are looking for isn\'t available or you may have been removed. + No Group Found! + The group you are looking for isn\'t available or you may have been removed. In-App messaging It is used to show messages @@ -72,22 +72,22 @@ What\'s your name? First name Last name - Connect, Share, Explore.\nJoin Your Trusted Space for Safe Location Sharing. - A Space is your exclusive and private area, just for you and your family. - Have a Space Invitation? - Get the code from the space creator and input it here to join.\n\nIf you don\'t have an invitation code, create a new space. - Create a new space - Space Name + Connect, Share, Explore.\nJoin Your Trusted Group for Safe Location Sharing. + A Group is your exclusive and private area, just for you and your family. + Have a Group Invitation? + Get the code from the group creator and input it here to join.\n\nIf you don\'t have an invitation code, create a new group. + Create a new group + Group Name "%s\'s Family" - Give your space a name - Tips: You can create dedicated spaces for work, family, friends, and more. - Unlock the Space! + Give your group a name + Tips: You can create dedicated groups for work, family, friends, and more. + Unlock the Group! Share this code in your own style. Connecting is as flexible as you are. Share this invite code with your trusted ones. Share code This code will be active for 2 days. Get set to connect! - You\'re about to become a member of the %s Space. + You\'re about to become a member of the %s Group. Here\'s presenting those eagerly waiting: It appears the code is no longer valid or has expired. Please review and enter a valid code. @@ -115,7 +115,7 @@ Location sharing is currently not possible Some permissions are missing - grant access - Select a space + Select a group By %s • %s members By %s • %s member Some suggestions… @@ -137,7 +137,7 @@ Share this invite code with your trusted ones in your own style. Connecting is as flexible as you are. Enter the invite code - Join Space + Join Group You\'re now a member of the %s group for sharing your real-time location. Just now @@ -165,7 +165,7 @@ Delete Account Deleting your account is permanent and you will lose all your data. Are you sure you want to delete your account permanently? Notifications - Space settings + Group settings Location Sharing Others Contact support @@ -184,21 +184,21 @@ Phone Your location sharing - Space member status - Space Name + Group member status + Group Name No members in %s - Delete Space - Leave Space + Delete Group + Leave Group Delete - Confirming will permanently delete this space and associated data. This action cannot be undone. + Confirming will permanently delete this group and associated data. This action cannot be undone. Leave - Are you sure you want to leave this space? You will no longer be able to view or share location with members of this space. + Are you sure you want to leave this group? You will no longer be able to view or share location with members of this group. Messages Add members to send messages - At least one member needs to join your space to be able to chat. + At least one member needs to join your group to be able to chat. Add a new member - Tap on \'+\' to send new message to anyone in your space + Tap on \'+\' to send new message to anyone in your group Delete Thread? Are you sure you want to delete this thread? This action cannot be undone. Delete @@ -216,10 +216,10 @@ Submit Attachment size should be less than 5MB Thanks! Your feedback has been recorded. - Your spaces + Your groups Turn off Battery Optimization for Location Sharing - For location sharing feature to work properly for your Spaces, turn off Battery Optimization in your phone settings for the GroupTrack app. This won\'t affect your other apps. + For location sharing feature to work properly for your Groups, turn off Battery Optimization in your phone settings for the GroupTrack app. This won\'t affect your other apps. Change now Places @@ -233,7 +233,7 @@ Enter place name Add Place %s Added - You will be notified when members of your space arrive/leave this place + You will be notified when members of your group arrive/leave this place Getting Address… Edit Place Place details