From ecca0a37c3b4ec09774316212795ea697968efda Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Sat, 28 Mar 2026 19:21:48 +0530 Subject: [PATCH] chore: update Google Sign-In client ID and remove redundant AnimatedSwitcher from app shell --- android/app/src/demo/google-services.json | 57 +++++++++++++- android/app/src/dev/google-services.json | 76 ++++++++++++++++++- lib/core/widgets/app_shell.dart | 24 +----- .../presentation/providers/auth_provider.dart | 2 +- 4 files changed, 127 insertions(+), 32 deletions(-) diff --git a/android/app/src/demo/google-services.json b/android/app/src/demo/google-services.json index c8ca78e..43284a6 100644 --- a/android/app/src/demo/google-services.json +++ b/android/app/src/demo/google-services.json @@ -12,7 +12,12 @@ "package_name": "com.requestn.real_estate_mobile.demo" } }, - "oauth_client": [], + "oauth_client": [ + { + "client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com", + "client_type": 3 + } + ], "api_key": [ { "current_key": "AIzaSyAwb_9fc7n9gbN_IQqWeYRkHSSykzVHCyc" @@ -20,7 +25,12 @@ ], "services": { "appinvite_service": { - "other_platform_oauth_client": [] + "other_platform_oauth_client": [ + { + "client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com", + "client_type": 3 + } + ] } } }, @@ -31,7 +41,12 @@ "package_name": "com.requestn.real_estate_mobile.dev" } }, - "oauth_client": [], + "oauth_client": [ + { + "client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com", + "client_type": 3 + } + ], "api_key": [ { "current_key": "AIzaSyAwb_9fc7n9gbN_IQqWeYRkHSSykzVHCyc" @@ -39,7 +54,41 @@ ], "services": { "appinvite_service": { - "other_platform_oauth_client": [] + "other_platform_oauth_client": [ + { + "client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com", + "client_type": 3 + } + ] + } + } + }, + { + "client_info": { + "mobilesdk_app_id": "1:703616926518:android:2eb242f07b174c25fca997", + "android_client_info": { + "package_name": "com.requestn.real_estate_mobile.local" + } + }, + "oauth_client": [ + { + "client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com", + "client_type": 3 + } + ], + "api_key": [ + { + "current_key": "AIzaSyAwb_9fc7n9gbN_IQqWeYRkHSSykzVHCyc" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [ + { + "client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com", + "client_type": 3 + } + ] } } } diff --git a/android/app/src/dev/google-services.json b/android/app/src/dev/google-services.json index 40df83f..43284a6 100644 --- a/android/app/src/dev/google-services.json +++ b/android/app/src/dev/google-services.json @@ -7,12 +7,17 @@ "client": [ { "client_info": { - "mobilesdk_app_id": "1:703616926518:android:4342b796fbabb690fca997", + "mobilesdk_app_id": "1:703616926518:android:270639d6887d2cb4fca997", "android_client_info": { - "package_name": "com.requestn.real_estate_mobile.dev" + "package_name": "com.requestn.real_estate_mobile.demo" } }, - "oauth_client": [], + "oauth_client": [ + { + "client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com", + "client_type": 3 + } + ], "api_key": [ { "current_key": "AIzaSyAwb_9fc7n9gbN_IQqWeYRkHSSykzVHCyc" @@ -20,7 +25,70 @@ ], "services": { "appinvite_service": { - "other_platform_oauth_client": [] + "other_platform_oauth_client": [ + { + "client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com", + "client_type": 3 + } + ] + } + } + }, + { + "client_info": { + "mobilesdk_app_id": "1:703616926518:android:4342b796fbabb690fca997", + "android_client_info": { + "package_name": "com.requestn.real_estate_mobile.dev" + } + }, + "oauth_client": [ + { + "client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com", + "client_type": 3 + } + ], + "api_key": [ + { + "current_key": "AIzaSyAwb_9fc7n9gbN_IQqWeYRkHSSykzVHCyc" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [ + { + "client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com", + "client_type": 3 + } + ] + } + } + }, + { + "client_info": { + "mobilesdk_app_id": "1:703616926518:android:2eb242f07b174c25fca997", + "android_client_info": { + "package_name": "com.requestn.real_estate_mobile.local" + } + }, + "oauth_client": [ + { + "client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com", + "client_type": 3 + } + ], + "api_key": [ + { + "current_key": "AIzaSyAwb_9fc7n9gbN_IQqWeYRkHSSykzVHCyc" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [ + { + "client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com", + "client_type": 3 + } + ] } } } diff --git a/lib/core/widgets/app_shell.dart b/lib/core/widgets/app_shell.dart index 7bd1f40..c5845ef 100644 --- a/lib/core/widgets/app_shell.dart +++ b/lib/core/widgets/app_shell.dart @@ -40,29 +40,7 @@ class _AppShellState extends State { child: const HomeHeader(), ), Expanded( - child: AnimatedSwitcher( - duration: const Duration(milliseconds: 150), - switchOutCurve: Curves.easeIn, - switchInCurve: Curves.easeOut, - layoutBuilder: (currentChild, previousChildren) { - return Stack( - children: [ - ...previousChildren, - if (currentChild != null) currentChild, - ], - ); - }, - transitionBuilder: (child, animation) { - return FadeTransition( - opacity: animation, - child: child, - ); - }, - child: KeyedSubtree( - key: ValueKey(GoRouterState.of(context).uri.toString()), - child: widget.child, - ), - ), + child: widget.child, ), ], ), diff --git a/lib/features/auth/presentation/providers/auth_provider.dart b/lib/features/auth/presentation/providers/auth_provider.dart index 98e2efc..59acd32 100644 --- a/lib/features/auth/presentation/providers/auth_provider.dart +++ b/lib/features/auth/presentation/providers/auth_provider.dart @@ -188,7 +188,7 @@ class AuthNotifier extends StateNotifier { try { final googleSignIn = GoogleSignIn( scopes: ['email', 'profile'], - serverClientId: '721413957511-goij5fnpal64o86vcppmkh743jhiv4nj.apps.googleusercontent.com', + serverClientId: '703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com', ); final account = await googleSignIn.signIn();