From a9864ac04e96497f242326b1f0f2f180a625b609 Mon Sep 17 00:00:00 2001 From: Perumallpardhiv Date: Sat, 11 Feb 2023 02:26:57 +0530 Subject: [PATCH 1/4] Added Google SignIn to Project --- android/app/google-services.json | 40 ++ android/google-services.json | 99 +---- ios/Runner/GoogleService-Info.plist | 36 ++ ios/firebase_app_id_file.json | 7 + lib/firebase_options.dart | 70 +++- lib/tabs/screens/tabs_screen.dart | 9 +- macos/Flutter/GeneratedPluginRegistrant.swift | 2 +- macos/Runner/GoogleService-Info.plist | 36 ++ macos/firebase_app_id_file.json | 7 + pubspec.lock | 350 +++++++++++------- 10 files changed, 411 insertions(+), 245 deletions(-) create mode 100644 android/app/google-services.json create mode 100644 ios/Runner/GoogleService-Info.plist create mode 100644 ios/firebase_app_id_file.json create mode 100644 macos/Runner/GoogleService-Info.plist create mode 100644 macos/firebase_app_id_file.json diff --git a/android/app/google-services.json b/android/app/google-services.json new file mode 100644 index 0000000..5f49ea4 --- /dev/null +++ b/android/app/google-services.json @@ -0,0 +1,40 @@ +{ + "project_info": { + "project_number": "410079293980", + "firebase_url": "https://loginfirebase-4e349-default-rtdb.firebaseio.com", + "project_id": "loginfirebase-4e349", + "storage_bucket": "loginfirebase-4e349.appspot.com" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:410079293980:android:c4aaff0dacd473ebaaa5d9", + "android_client_info": { + "package_name": "com.example.vritant" + } + }, + "oauth_client": [ + { + "client_id": "410079293980-m65cqngrokeen1ojoh6vidrfd3000sig.apps.googleusercontent.com", + "client_type": 3 + } + ], + "api_key": [ + { + "current_key": "AIzaSyCyXAiOhA2pm8spX2C-1TRevUfJUKPev8Y" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [ + { + "client_id": "410079293980-m65cqngrokeen1ojoh6vidrfd3000sig.apps.googleusercontent.com", + "client_type": 3 + } + ] + } + } + } + ], + "configuration_version": "1" +} \ No newline at end of file diff --git a/android/google-services.json b/android/google-services.json index 437bd79..f7ebdee 100644 --- a/android/google-services.json +++ b/android/google-services.json @@ -1,124 +1,49 @@ { "project_info": { - "project_number": "463875638784", - "project_id": "swarabhaas", - "storage_bucket": "swarabhaas.appspot.com" + "project_number": "410079293980", + "firebase_url": "https://loginfirebase-4e349-default-rtdb.firebaseio.com", + "project_id": "loginfirebase-4e349", + "storage_bucket": "loginfirebase-4e349.appspot.com" }, "client": [ { "client_info": { - "mobilesdk_app_id": "1:463875638784:android:210ae8ad749a0b59e77ae5", - "android_client_info": { - "package_name": "com.example.swarabhaas" - } - }, - "oauth_client": [ - { - "client_id": "463875638784-06lgiuurbaho267pqdphc2dbitb6dapc.apps.googleusercontent.com", - "client_type": 1, - "android_info": { - "package_name": "com.example.swarabhaas", - "certificate_hash": "adbacd138854718f2da6c410bbd48160b8da305a" - } - }, - { - "client_id": "463875638784-1ubd1ehf694ivfe4kgdt8aalj0pvtkd4.apps.googleusercontent.com", - "client_type": 1, - "android_info": { - "package_name": "com.example.swarabhaas", - "certificate_hash": "d01be48eba59c41c236c6994765d919240372071" - } - }, - { - "client_id": "463875638784-465hgrs3tak7kg17u89fps55j19tt358.apps.googleusercontent.com", - "client_type": 1, - "android_info": { - "package_name": "com.example.swarabhaas", - "certificate_hash": "a0ac509a8fa23e32531147533e806ba73ce50157" - } - }, - { - "client_id": "463875638784-crrrkc6td0sabntkca8ueo2f5opgs1o6.apps.googleusercontent.com", - "client_type": 1, - "android_info": { - "package_name": "com.example.swarabhaas", - "certificate_hash": "e7b10127e9de20f7224fbfa7835cd86ae4ba5e76" - } - }, - { - "client_id": "463875638784-lakv07jnjt2c3jkomusc86ooi3bh939n.apps.googleusercontent.com", - "client_type": 1, - "android_info": { - "package_name": "com.example.swarabhaas", - "certificate_hash": "877087bb6cc730b61232322fba931ed5ab8f37bf" - } - }, - { - "client_id": "463875638784-8fktne1ogjbodglhan9ge9odhb3dj5ti.apps.googleusercontent.com", - "client_type": 3 - } - ], - "api_key": [ - { - "current_key": "AIzaSyCpGoBPjnde9avujhIVl3KxpFLUn0np_wk" - } - ], - "services": { - "appinvite_service": { - "other_platform_oauth_client": [ - { - "client_id": "463875638784-8fktne1ogjbodglhan9ge9odhb3dj5ti.apps.googleusercontent.com", - "client_type": 3 - }, - { - "client_id": "463875638784-a1eseek2tor3fj1bqqtasrl3u6q177hg.apps.googleusercontent.com", - "client_type": 2, - "ios_info": { - "bundle_id": "com.example.swarabhaas" - } - } - ] - } - } - }, - { - "client_info": { - "mobilesdk_app_id": "1:463875638784:android:90798fbb1d7aaf83e77ae5", + "mobilesdk_app_id": "1:410079293980:android:c4aaff0dacd473ebaaa5d9", "android_client_info": { "package_name": "com.example.vritant" } }, "oauth_client": [ { - "client_id": "463875638784-3r2l81del2kbs5pmsamsudr8bbbbqu5t.apps.googleusercontent.com", + "client_id": "410079293980-3us9m0k97hm9utr02jttu4dqierqr3ga.apps.googleusercontent.com", "client_type": 1, "android_info": { "package_name": "com.example.vritant", - "certificate_hash": "877087bb6cc730b61232322fba931ed5ab8f37bf" + "certificate_hash": "b69deaaa5412500b41c2b23de5258b48697899c7" } }, { - "client_id": "463875638784-8fktne1ogjbodglhan9ge9odhb3dj5ti.apps.googleusercontent.com", + "client_id": "410079293980-anmrbgabnbitn23qphucujidm400pfb3.apps.googleusercontent.com", "client_type": 3 } ], "api_key": [ { - "current_key": "AIzaSyCpGoBPjnde9avujhIVl3KxpFLUn0np_wk" + "current_key": "AIzaSyCyXAiOhA2pm8spX2C-1TRevUfJUKPev8Y" } ], "services": { "appinvite_service": { "other_platform_oauth_client": [ { - "client_id": "463875638784-8fktne1ogjbodglhan9ge9odhb3dj5ti.apps.googleusercontent.com", + "client_id": "410079293980-anmrbgabnbitn23qphucujidm400pfb3.apps.googleusercontent.com", "client_type": 3 }, { - "client_id": "463875638784-a1eseek2tor3fj1bqqtasrl3u6q177hg.apps.googleusercontent.com", + "client_id": "410079293980-9p4srp8a98l8p095h82v9lo7rjm5o640.apps.googleusercontent.com", "client_type": 2, "ios_info": { - "bundle_id": "com.example.swarabhaas" + "bundle_id": "com.example.vritant" } } ] diff --git a/ios/Runner/GoogleService-Info.plist b/ios/Runner/GoogleService-Info.plist new file mode 100644 index 0000000..0342977 --- /dev/null +++ b/ios/Runner/GoogleService-Info.plist @@ -0,0 +1,36 @@ + + + + + CLIENT_ID + 410079293980-9p4srp8a98l8p095h82v9lo7rjm5o640.apps.googleusercontent.com + REVERSED_CLIENT_ID + com.googleusercontent.apps.410079293980-9p4srp8a98l8p095h82v9lo7rjm5o640 + API_KEY + AIzaSyCf3dCwyBvYE_lQ73cjPL8Q1-O63DpuBdY + GCM_SENDER_ID + 410079293980 + PLIST_VERSION + 1 + BUNDLE_ID + com.example.vritant + PROJECT_ID + loginfirebase-4e349 + STORAGE_BUCKET + loginfirebase-4e349.appspot.com + IS_ADS_ENABLED + + IS_ANALYTICS_ENABLED + + IS_APPINVITE_ENABLED + + IS_GCM_ENABLED + + IS_SIGNIN_ENABLED + + GOOGLE_APP_ID + 1:410079293980:ios:cb09cb6d2dfc7d21aaa5d9 + DATABASE_URL + https://loginfirebase-4e349-default-rtdb.firebaseio.com + + \ No newline at end of file diff --git a/ios/firebase_app_id_file.json b/ios/firebase_app_id_file.json new file mode 100644 index 0000000..9c57970 --- /dev/null +++ b/ios/firebase_app_id_file.json @@ -0,0 +1,7 @@ +{ + "file_generated_by": "FlutterFire CLI", + "purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory", + "GOOGLE_APP_ID": "1:410079293980:ios:cb09cb6d2dfc7d21aaa5d9", + "FIREBASE_PROJECT_ID": "loginfirebase-4e349", + "GCM_SENDER_ID": "410079293980" +} \ No newline at end of file diff --git a/lib/firebase_options.dart b/lib/firebase_options.dart index ec42f8c..01ac2ed 100644 --- a/lib/firebase_options.dart +++ b/lib/firebase_options.dart @@ -1,5 +1,5 @@ // File generated by FlutterFire CLI. -// ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members import 'package:firebase_core/firebase_core.dart' show FirebaseOptions; import 'package:flutter/foundation.dart' show defaultTargetPlatform, kIsWeb, TargetPlatform; @@ -17,37 +17,71 @@ import 'package:flutter/foundation.dart' class DefaultFirebaseOptions { static FirebaseOptions get currentPlatform { if (kIsWeb) { - throw UnsupportedError( - 'DefaultFirebaseOptions have not been configured for web - ' - 'you can reconfigure this by running the FlutterFire CLI again.', - ); + return web; } - // ignore: missing_enum_constant_in_switch switch (defaultTargetPlatform) { case TargetPlatform.android: return android; case TargetPlatform.iOS: + return ios; + case TargetPlatform.macOS: + return macos; + case TargetPlatform.windows: throw UnsupportedError( - 'DefaultFirebaseOptions have not been configured for ios - ' + 'DefaultFirebaseOptions have not been configured for windows - ' 'you can reconfigure this by running the FlutterFire CLI again.', ); - case TargetPlatform.macOS: + case TargetPlatform.linux: throw UnsupportedError( - 'DefaultFirebaseOptions have not been configured for macos - ' + 'DefaultFirebaseOptions have not been configured for linux - ' 'you can reconfigure this by running the FlutterFire CLI again.', ); + default: + throw UnsupportedError( + 'DefaultFirebaseOptions are not supported for this platform.', + ); } - - throw UnsupportedError( - 'DefaultFirebaseOptions are not supported for this platform.', - ); } + static const FirebaseOptions web = FirebaseOptions( + apiKey: 'AIzaSyCmSXR0uqjHYD75YgwUOe4J_EDSfida6Zs', + appId: '1:410079293980:web:ef95b0cc09b895c8aaa5d9', + messagingSenderId: '410079293980', + projectId: 'loginfirebase-4e349', + authDomain: 'loginfirebase-4e349.firebaseapp.com', + databaseURL: 'https://loginfirebase-4e349-default-rtdb.firebaseio.com', + storageBucket: 'loginfirebase-4e349.appspot.com', + measurementId: 'G-SEPNG31MCM', + ); + static const FirebaseOptions android = FirebaseOptions( - apiKey: 'AIzaSyCpGoBPjnde9avujhIVl3KxpFLUn0np_wk', - appId: '1:463875638784:android:210ae8ad749a0b59e77ae5', - messagingSenderId: '463875638784', - projectId: 'swarabhaas', - storageBucket: 'swarabhaas.appspot.com', + apiKey: 'AIzaSyCyXAiOhA2pm8spX2C-1TRevUfJUKPev8Y', + appId: '1:410079293980:android:c4aaff0dacd473ebaaa5d9', + messagingSenderId: '410079293980', + projectId: 'loginfirebase-4e349', + databaseURL: 'https://loginfirebase-4e349-default-rtdb.firebaseio.com', + storageBucket: 'loginfirebase-4e349.appspot.com', + ); + + static const FirebaseOptions ios = FirebaseOptions( + apiKey: 'AIzaSyCf3dCwyBvYE_lQ73cjPL8Q1-O63DpuBdY', + appId: '1:410079293980:ios:cb09cb6d2dfc7d21aaa5d9', + messagingSenderId: '410079293980', + projectId: 'loginfirebase-4e349', + databaseURL: 'https://loginfirebase-4e349-default-rtdb.firebaseio.com', + storageBucket: 'loginfirebase-4e349.appspot.com', + iosClientId: '410079293980-9p4srp8a98l8p095h82v9lo7rjm5o640.apps.googleusercontent.com', + iosBundleId: 'com.example.vritant', + ); + + static const FirebaseOptions macos = FirebaseOptions( + apiKey: 'AIzaSyCf3dCwyBvYE_lQ73cjPL8Q1-O63DpuBdY', + appId: '1:410079293980:ios:cb09cb6d2dfc7d21aaa5d9', + messagingSenderId: '410079293980', + projectId: 'loginfirebase-4e349', + databaseURL: 'https://loginfirebase-4e349-default-rtdb.firebaseio.com', + storageBucket: 'loginfirebase-4e349.appspot.com', + iosClientId: '410079293980-9p4srp8a98l8p095h82v9lo7rjm5o640.apps.googleusercontent.com', + iosBundleId: 'com.example.vritant', ); } diff --git a/lib/tabs/screens/tabs_screen.dart b/lib/tabs/screens/tabs_screen.dart index b773452..193639e 100644 --- a/lib/tabs/screens/tabs_screen.dart +++ b/lib/tabs/screens/tabs_screen.dart @@ -51,8 +51,8 @@ class _TabsScreenState extends State { ), Flexible( child: Text( - "Welcome to Vritant", - // ' ${user?.displayName.toString()}', + // "Welcome to Vritant", + ' ${user?.displayName.toString()}', overflow: TextOverflow.ellipsis, style: const TextStyle( fontFamily: 'Open-Sauce-Sans', @@ -141,9 +141,6 @@ class _TabsScreenState extends State { void changeLang() {} void signOut(GoogleSignInProvider gAuth) { - if (user!.providerData[0].providerId == "google.com") { - // signed via google - gAuth.handleSignOut(); - } + gAuth.handleSignOut(); } } diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index 74d9ae1..3a62ff4 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -12,7 +12,7 @@ import flutter_archive import flutter_tts import geolocator_apple import just_audio -import path_provider_macos +import path_provider_foundation func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { AudioSessionPlugin.register(with: registry.registrar(forPlugin: "AudioSessionPlugin")) diff --git a/macos/Runner/GoogleService-Info.plist b/macos/Runner/GoogleService-Info.plist new file mode 100644 index 0000000..0342977 --- /dev/null +++ b/macos/Runner/GoogleService-Info.plist @@ -0,0 +1,36 @@ + + + + + CLIENT_ID + 410079293980-9p4srp8a98l8p095h82v9lo7rjm5o640.apps.googleusercontent.com + REVERSED_CLIENT_ID + com.googleusercontent.apps.410079293980-9p4srp8a98l8p095h82v9lo7rjm5o640 + API_KEY + AIzaSyCf3dCwyBvYE_lQ73cjPL8Q1-O63DpuBdY + GCM_SENDER_ID + 410079293980 + PLIST_VERSION + 1 + BUNDLE_ID + com.example.vritant + PROJECT_ID + loginfirebase-4e349 + STORAGE_BUCKET + loginfirebase-4e349.appspot.com + IS_ADS_ENABLED + + IS_ANALYTICS_ENABLED + + IS_APPINVITE_ENABLED + + IS_GCM_ENABLED + + IS_SIGNIN_ENABLED + + GOOGLE_APP_ID + 1:410079293980:ios:cb09cb6d2dfc7d21aaa5d9 + DATABASE_URL + https://loginfirebase-4e349-default-rtdb.firebaseio.com + + \ No newline at end of file diff --git a/macos/firebase_app_id_file.json b/macos/firebase_app_id_file.json new file mode 100644 index 0000000..9c57970 --- /dev/null +++ b/macos/firebase_app_id_file.json @@ -0,0 +1,7 @@ +{ + "file_generated_by": "FlutterFire CLI", + "purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory", + "GOOGLE_APP_ID": "1:410079293980:ios:cb09cb6d2dfc7d21aaa5d9", + "FIREBASE_PROJECT_ID": "loginfirebase-4e349", + "GCM_SENDER_ID": "410079293980" +} \ No newline at end of file diff --git a/pubspec.lock b/pubspec.lock index 775df14..7d12621 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,161 +5,184 @@ packages: dependency: transitive description: name: _flutterfire_internals - url: "https://pub.dartlang.org" + sha256: "2f428053492f92303e42c9afa8e3a78ad1886760e7b594e2b5a6b6ee47376360" + url: "https://pub.dev" source: hosted version: "1.0.2" animated_text_kit: dependency: "direct main" description: name: animated_text_kit - url: "https://pub.dartlang.org" + sha256: "37392a5376c9a1a503b02463c38bc0342ef814ddbb8f9977bc90f2a84b22fa92" + url: "https://pub.dev" source: hosted version: "4.2.2" ar_flutter_plugin: dependency: "direct main" description: name: ar_flutter_plugin - url: "https://pub.dartlang.org" + sha256: "52b6b2ccec4b624ca3fb8d7cc68128f11126580b412c3da2da82c41ddfd6d6ae" + url: "https://pub.dev" source: hosted version: "0.7.3" async: dependency: transitive description: name: async - url: "https://pub.dartlang.org" + sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0 + url: "https://pub.dev" source: hosted - version: "2.9.0" + version: "2.10.0" audio_session: dependency: transitive description: name: audio_session - url: "https://pub.dartlang.org" + sha256: e4acc4e9eaa32436dfc5d7aed7f0a370f2d7bb27ee27de30d6c4f220c2a05c73 + url: "https://pub.dev" source: hosted - version: "0.1.11" + version: "0.1.13" boolean_selector: dependency: transitive description: name: boolean_selector - url: "https://pub.dartlang.org" + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.1" characters: dependency: transitive description: name: characters - url: "https://pub.dartlang.org" + sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c + url: "https://pub.dev" source: hosted version: "1.2.1" clock: dependency: transitive description: name: clock - url: "https://pub.dartlang.org" + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" source: hosted version: "1.1.1" cloud_firestore_platform_interface: dependency: transitive description: name: cloud_firestore_platform_interface - url: "https://pub.dartlang.org" + sha256: d023142c18c28b2610c23c196e829c96976569cc2aa2f8e45328ae8a64c428d1 + url: "https://pub.dev" source: hosted version: "5.7.7" cloud_firestore_web: dependency: transitive description: name: cloud_firestore_web - url: "https://pub.dartlang.org" + sha256: "3d7d4fa8c1dc5a1f7cb33985ae0ab9924d33d76d4959fe26aed84b7d282887e3" + url: "https://pub.dev" source: hosted version: "2.8.10" collection: dependency: transitive description: name: collection - url: "https://pub.dartlang.org" + sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0 + url: "https://pub.dev" source: hosted - version: "1.16.0" + version: "1.17.0" cross_file: dependency: transitive description: name: cross_file - url: "https://pub.dartlang.org" + sha256: "0b0036e8cccbfbe0555fd83c1d31a6f30b77a96b598b35a5d36dd41f718695e9" + url: "https://pub.dev" source: hosted - version: "0.3.3+2" + version: "0.3.3+4" crypto: dependency: transitive description: name: crypto - url: "https://pub.dartlang.org" + sha256: aa274aa7774f8964e4f4f38cc994db7b6158dd36e9187aaceaddc994b35c6c67 + url: "https://pub.dev" source: hosted version: "3.0.2" cupertino_icons: dependency: "direct main" description: name: cupertino_icons - url: "https://pub.dartlang.org" + sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be + url: "https://pub.dev" source: hosted version: "1.0.5" fake_async: dependency: transitive description: name: fake_async - url: "https://pub.dartlang.org" + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" source: hosted version: "1.3.1" ffi: dependency: transitive description: name: ffi - url: "https://pub.dartlang.org" + sha256: a38574032c5f1dd06c4aee541789906c12ccaab8ba01446e800d9c5b79c4a978 + url: "https://pub.dev" source: hosted version: "2.0.1" file: dependency: transitive description: name: file - url: "https://pub.dartlang.org" + sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d" + url: "https://pub.dev" source: hosted version: "6.1.4" firebase_auth: dependency: "direct main" description: name: firebase_auth - url: "https://pub.dartlang.org" + sha256: ca3034d35d6ca894487ec80aa1162a135fef7c5d0abef8154789cbeea3a6deaf + url: "https://pub.dev" source: hosted version: "3.11.2" firebase_auth_platform_interface: dependency: transitive description: name: firebase_auth_platform_interface - url: "https://pub.dartlang.org" + sha256: ab20ecbc411726e139250a49fa03fe1ae0105fd990c5330b2a148ec08dfb140b + url: "https://pub.dev" source: hosted version: "6.10.1" firebase_auth_web: dependency: transitive description: name: firebase_auth_web - url: "https://pub.dartlang.org" + sha256: bbe4f4fffcc378ca05c3d8ff33853be86dd27d0fafc85a953acaf5190531b6f9 + url: "https://pub.dev" source: hosted version: "4.6.1" firebase_core: dependency: transitive description: name: firebase_core - url: "https://pub.dartlang.org" + sha256: "4f1d7c13a909e82ff026679c9b8493cdeb35a9c76bc46c42bf9e2240c9e57e80" + url: "https://pub.dev" source: hosted version: "1.24.0" firebase_core_platform_interface: dependency: "direct main" description: name: firebase_core_platform_interface - url: "https://pub.dartlang.org" + sha256: b51257a8b4388565cd66062d727d3e60067b5f5cc3390eb0ecd20b8f97741bdb + url: "https://pub.dev" source: hosted version: "4.5.1" firebase_core_web: dependency: transitive description: name: firebase_core_web - url: "https://pub.dartlang.org" + sha256: "839f1b48032a61962792cea1225fae030d4f27163867f181d6d2072dd40acbee" + url: "https://pub.dev" source: hosted version: "1.7.3" flutter: @@ -171,28 +194,32 @@ packages: dependency: "direct main" description: name: flutter_archive - url: "https://pub.dartlang.org" + sha256: aec85d1da65e5b33a529db00a86df0b8e92bda78088a7cfaeeba5187701d0d85 + url: "https://pub.dev" source: hosted version: "5.0.0" flutter_lints: dependency: "direct dev" description: name: flutter_lints - url: "https://pub.dartlang.org" + sha256: aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c + url: "https://pub.dev" source: hosted version: "2.0.1" flutter_plugin_android_lifecycle: dependency: transitive description: name: flutter_plugin_android_lifecycle - url: "https://pub.dartlang.org" + sha256: "60fc7b78455b94e6de2333d2f95196d32cf5c22f4b0b0520a628804cb463503b" + url: "https://pub.dev" source: hosted version: "2.0.7" flutter_svg: dependency: "direct main" description: name: flutter_svg - url: "https://pub.dartlang.org" + sha256: "6ff9fa12892ae074092de2fa6a9938fb21dbabfdaa2ff57dc697ff912fc8d4b2" + url: "https://pub.dev" source: hosted version: "1.1.6" flutter_test: @@ -204,9 +231,10 @@ packages: dependency: "direct main" description: name: flutter_tts - url: "https://pub.dartlang.org" + sha256: e91ad17793ad12cca9c3066accf99ceb353bf0355ad06b767176f178b5c428f6 + url: "https://pub.dev" source: hosted - version: "3.6.2" + version: "3.6.3" flutter_web_plugins: dependency: transitive description: flutter @@ -216,364 +244,408 @@ packages: dependency: transitive description: name: geolocator - url: "https://pub.dartlang.org" + sha256: "5c23f3613f50586c0bbb2b8f970240ae66b3bd992088cf60dd5ee2e6f7dde3a8" + url: "https://pub.dev" source: hosted version: "9.0.2" geolocator_android: dependency: transitive description: name: geolocator_android - url: "https://pub.dartlang.org" + sha256: "2ba24690aee0a3e1b6b7bd47c2711a50c874e95e4c758346589d35194adf6d6a" + url: "https://pub.dev" source: hosted - version: "4.1.4" + version: "4.1.7" geolocator_apple: dependency: transitive description: name: geolocator_apple - url: "https://pub.dartlang.org" + sha256: "22b60ca3b8c0f58e6a9688ff855ee39ab813ca3f0c0609a48d282f6631266f2e" + url: "https://pub.dev" source: hosted - version: "2.2.3" + version: "2.2.5" geolocator_platform_interface: dependency: transitive description: name: geolocator_platform_interface - url: "https://pub.dartlang.org" + sha256: af4d69231452f9620718588f41acc4cb58312368716bfff2e92e770b46ce6386 + url: "https://pub.dev" source: hosted version: "4.0.7" geolocator_web: dependency: transitive description: name: geolocator_web - url: "https://pub.dartlang.org" + sha256: f68a122da48fcfff68bbc9846bb0b74ef651afe84a1b1f6ec20939de4d6860e1 + url: "https://pub.dev" source: hosted version: "2.1.6" geolocator_windows: dependency: transitive description: name: geolocator_windows - url: "https://pub.dartlang.org" + sha256: f5911c88e23f48b598dd506c7c19eff0e001645bdc03bb6fecb9f4549208354d + url: "https://pub.dev" source: hosted version: "0.1.1" get: dependency: "direct main" description: name: get - url: "https://pub.dartlang.org" + sha256: "2ba20a47c8f1f233bed775ba2dd0d3ac97b4cf32fc17731b3dfc672b06b0e92a" + url: "https://pub.dev" source: hosted version: "4.6.5" google_sign_in: dependency: "direct main" description: name: google_sign_in - url: "https://pub.dartlang.org" + sha256: "821f354c053d51a2d417b02d42532a19a6ea8057d2f9ebb8863c07d81c98aaf9" + url: "https://pub.dev" source: hosted - version: "5.4.2" + version: "5.4.4" google_sign_in_android: dependency: transitive description: name: google_sign_in_android - url: "https://pub.dartlang.org" + sha256: "612bf44d5de01f32bf127ea1c8114281075c7a39f621d1e34cf70aa069840c5c" + url: "https://pub.dev" source: hosted - version: "6.1.4" + version: "6.1.6" google_sign_in_ios: dependency: transitive description: name: google_sign_in_ios - url: "https://pub.dartlang.org" + sha256: "1116aff5e87f89837b052a81abe6259be7c4dd418275786864d27b74cb2a4e70" + url: "https://pub.dev" source: hosted version: "5.5.1" google_sign_in_platform_interface: dependency: transitive description: name: google_sign_in_platform_interface - url: "https://pub.dartlang.org" + sha256: "61306213c76bb8170c3aa20017df296c0131c24d7f6c0cc7e2eeaeac34c9f457" + url: "https://pub.dev" source: hosted version: "2.3.0" google_sign_in_web: dependency: transitive description: name: google_sign_in_web - url: "https://pub.dartlang.org" + sha256: "75cc41ebc53b1756320ee14d9c3018ad3e6cea298147dbcd86e9d0c8d6720b40" + url: "https://pub.dev" source: hosted - version: "0.10.2" + version: "0.10.2+1" http: dependency: "direct main" description: name: http - url: "https://pub.dartlang.org" + sha256: "6aa2946395183537c8b880962d935877325d6a09a2867c3970c05c0fed6ac482" + url: "https://pub.dev" source: hosted version: "0.13.5" http_parser: dependency: transitive description: name: http_parser - url: "https://pub.dartlang.org" + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" source: hosted version: "4.0.2" image_picker: dependency: "direct main" description: name: image_picker - url: "https://pub.dartlang.org" + sha256: f98d76672d309c8b7030c323b3394669e122d52b307d2bbd8d06bd70f5b2aabe + url: "https://pub.dev" source: hosted - version: "0.8.6" + version: "0.8.6+1" image_picker_android: dependency: transitive description: name: image_picker_android - url: "https://pub.dartlang.org" + sha256: "385f12ee9c7288575572c7873a332016ec45ebd092e1c2f6bd421b4a9ad21f1d" + url: "https://pub.dev" source: hosted - version: "0.8.5+3" + version: "0.8.5+6" image_picker_for_web: dependency: transitive description: name: image_picker_for_web - url: "https://pub.dartlang.org" + sha256: "7d319fb74955ca46d9bf7011497860e3923bb67feebcf068f489311065863899" + url: "https://pub.dev" source: hosted version: "2.1.10" image_picker_ios: dependency: transitive description: name: image_picker_ios - url: "https://pub.dartlang.org" + sha256: "8ffb14b43713d7c43fb21299cc18181cc5b39bd3ea1cc427a085c6400fe5aa52" + url: "https://pub.dev" source: hosted - version: "0.8.6+1" + version: "0.8.6+7" image_picker_platform_interface: dependency: transitive description: name: image_picker_platform_interface - url: "https://pub.dartlang.org" + sha256: "7cef2f28f4f2fef99180f636c3d446b4ccbafd6ba0fad2adc9a80c4040f656b8" + url: "https://pub.dev" source: hosted version: "2.6.2" intl: dependency: transitive description: name: intl - url: "https://pub.dartlang.org" + sha256: "910f85bce16fb5c6f614e117efa303e85a1731bb0081edf3604a2ae6e9a3cc91" + url: "https://pub.dev" source: hosted version: "0.17.0" js: dependency: transitive description: name: js - url: "https://pub.dartlang.org" + sha256: "5528c2f391ededb7775ec1daa69e65a2d61276f7552de2b5f7b8d34ee9fd4ab7" + url: "https://pub.dev" source: hosted - version: "0.6.4" + version: "0.6.5" json_annotation: dependency: transitive description: name: json_annotation - url: "https://pub.dartlang.org" + sha256: c33da08e136c3df0190bd5bbe51ae1df4a7d96e7954d1d7249fea2968a72d317 + url: "https://pub.dev" source: hosted - version: "4.7.0" + version: "4.8.0" just_audio: dependency: "direct main" description: name: just_audio - url: "https://pub.dartlang.org" + sha256: "7a5057a4d05c8f88ee968cec6fdfe1015577d5184e591d5ac15ab16d8f5ecb17" + url: "https://pub.dev" source: hosted - version: "0.9.30" + version: "0.9.31" just_audio_platform_interface: dependency: transitive description: name: just_audio_platform_interface - url: "https://pub.dartlang.org" + sha256: eff112d5138bea3ba544b6338b1e0537a32b5e1425e4d0dc38f732771cda7c84 + url: "https://pub.dev" source: hosted version: "4.2.0" just_audio_web: dependency: transitive description: name: just_audio_web - url: "https://pub.dartlang.org" + sha256: "89d8db6f19f3821bb6bf908c4bfb846079afb2ab575b783d781a6bf119e3abaf" + url: "https://pub.dev" source: hosted version: "0.4.7" lints: dependency: transitive description: name: lints - url: "https://pub.dartlang.org" + sha256: "5e4a9cd06d447758280a8ac2405101e0e2094d2a1dbdd3756aec3fe7775ba593" + url: "https://pub.dev" source: hosted version: "2.0.1" matcher: dependency: transitive description: name: matcher - url: "https://pub.dartlang.org" + sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72" + url: "https://pub.dev" source: hosted - version: "0.12.12" + version: "0.12.13" material_color_utilities: dependency: transitive description: name: material_color_utilities - url: "https://pub.dartlang.org" + sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + url: "https://pub.dev" source: hosted - version: "0.1.5" + version: "0.2.0" meta: dependency: transitive description: name: meta - url: "https://pub.dartlang.org" + sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42" + url: "https://pub.dev" source: hosted version: "1.8.0" nested: dependency: transitive description: name: nested - url: "https://pub.dartlang.org" + sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20" + url: "https://pub.dev" source: hosted version: "1.0.0" path: dependency: transitive description: name: path - url: "https://pub.dartlang.org" + sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b + url: "https://pub.dev" source: hosted version: "1.8.2" path_drawing: dependency: transitive description: name: path_drawing - url: "https://pub.dartlang.org" + sha256: bbb1934c0cbb03091af082a6389ca2080345291ef07a5fa6d6e078ba8682f977 + url: "https://pub.dev" source: hosted version: "1.0.1" path_parsing: dependency: transitive description: name: path_parsing - url: "https://pub.dartlang.org" + sha256: e3e67b1629e6f7e8100b367d3db6ba6af4b1f0bb80f64db18ef1fbabd2fa9ccf + url: "https://pub.dev" source: hosted version: "1.0.1" path_provider: dependency: "direct main" description: name: path_provider - url: "https://pub.dartlang.org" + sha256: dcea5feb97d8abf90cab9e9030b497fb7c3cbf26b7a1fe9e3ef7dcb0a1ddec95 + url: "https://pub.dev" source: hosted - version: "2.0.11" + version: "2.0.12" path_provider_android: dependency: transitive description: name: path_provider_android - url: "https://pub.dartlang.org" + sha256: a776c088d671b27f6e3aa8881d64b87b3e80201c64e8869b811325de7a76c15e + url: "https://pub.dev" source: hosted version: "2.0.22" - path_provider_ios: + path_provider_foundation: dependency: transitive description: - name: path_provider_ios - url: "https://pub.dartlang.org" + name: path_provider_foundation + sha256: "62a68e7e1c6c459f9289859e2fae58290c981ce21d1697faf54910fe1faa4c74" + url: "https://pub.dev" source: hosted - version: "2.0.11" + version: "2.1.1" path_provider_linux: dependency: transitive description: name: path_provider_linux - url: "https://pub.dartlang.org" + sha256: ab0987bf95bc591da42dffb38c77398fc43309f0b9b894dcc5d6f40c4b26c379 + url: "https://pub.dev" source: hosted version: "2.1.7" - path_provider_macos: - dependency: transitive - description: - name: path_provider_macos - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.6" path_provider_platform_interface: dependency: transitive description: name: path_provider_platform_interface - url: "https://pub.dartlang.org" + sha256: f0abc8ebd7253741f05488b4813d936b4d07c6bae3e86148a09e342ee4b08e76 + url: "https://pub.dev" source: hosted version: "2.0.5" path_provider_windows: dependency: transitive description: name: path_provider_windows - url: "https://pub.dartlang.org" + sha256: bcabbe399d4042b8ee687e17548d5d3f527255253b4a639f5f8d2094a9c2b45c + url: "https://pub.dev" source: hosted version: "2.1.3" permission_handler: dependency: transitive description: name: permission_handler - url: "https://pub.dartlang.org" + sha256: "33c6a1253d1f95fd06fa74b65b7ba907ae9811f9d5c1d3150e51417d04b8d6a8" + url: "https://pub.dev" source: hosted version: "10.2.0" permission_handler_android: dependency: transitive description: name: permission_handler_android - url: "https://pub.dartlang.org" + sha256: "8028362b40c4a45298f1cbfccd227c8dd6caf0e27088a69f2ba2ab15464159e2" + url: "https://pub.dev" source: hosted version: "10.2.0" permission_handler_apple: dependency: transitive description: name: permission_handler_apple - url: "https://pub.dartlang.org" + sha256: "9c370ef6a18b1c4b2f7f35944d644a56aa23576f23abee654cf73968de93f163" + url: "https://pub.dev" source: hosted version: "9.0.7" permission_handler_platform_interface: dependency: transitive description: name: permission_handler_platform_interface - url: "https://pub.dartlang.org" + sha256: "68abbc472002b5e6dfce47fe9898c6b7d8328d58b5d2524f75e277c07a97eb84" + url: "https://pub.dev" source: hosted version: "3.9.0" permission_handler_windows: dependency: transitive description: name: permission_handler_windows - url: "https://pub.dartlang.org" + sha256: f67cab14b4328574938ecea2db3475dad7af7ead6afab6338772c5f88963e38b + url: "https://pub.dev" source: hosted version: "0.1.2" petitparser: dependency: transitive description: name: petitparser - url: "https://pub.dartlang.org" + sha256: "49392a45ced973e8d94a85fdb21293fbb40ba805fc49f2965101ae748a3683b4" + url: "https://pub.dev" source: hosted version: "5.1.0" platform: dependency: transitive description: name: platform - url: "https://pub.dartlang.org" + sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76" + url: "https://pub.dev" source: hosted version: "3.1.0" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface - url: "https://pub.dartlang.org" + sha256: dbf0f707c78beedc9200146ad3cb0ab4d5da13c246336987be6940f026500d3a + url: "https://pub.dev" source: hosted version: "2.1.3" process: dependency: transitive description: name: process - url: "https://pub.dartlang.org" + sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09" + url: "https://pub.dev" source: hosted version: "4.2.4" provider: dependency: "direct main" description: name: provider - url: "https://pub.dartlang.org" + sha256: cdbe7530b12ecd9eb455bdaa2fcb8d4dad22e80b8afb4798b41479d5ce26847f + url: "https://pub.dev" source: hosted - version: "6.0.4" + version: "6.0.5" quiver: dependency: transitive description: name: quiver - url: "https://pub.dartlang.org" + sha256: b1c1ac5ce6688d77f65f3375a9abb9319b3cb32486bdc7a1e0fdf004d7ba4e47 + url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "3.2.1" rxdart: dependency: transitive description: name: rxdart - url: "https://pub.dartlang.org" + sha256: "0c7c0cedd93788d996e33041ffecda924cc54389199cde4e6a34b440f50044cb" + url: "https://pub.dev" source: hosted version: "0.27.7" sky_engine: @@ -585,86 +657,98 @@ packages: dependency: transitive description: name: source_span - url: "https://pub.dartlang.org" + sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + url: "https://pub.dev" source: hosted - version: "1.9.0" + version: "1.9.1" stack_trace: dependency: transitive description: name: stack_trace - url: "https://pub.dartlang.org" + sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.11.0" stream_channel: dependency: transitive description: name: stream_channel - url: "https://pub.dartlang.org" + sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.1" string_scanner: dependency: transitive description: name: string_scanner - url: "https://pub.dartlang.org" + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.2.0" term_glyph: dependency: transitive description: name: term_glyph - url: "https://pub.dartlang.org" + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" source: hosted version: "1.2.1" test_api: dependency: transitive description: name: test_api - url: "https://pub.dartlang.org" + sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206 + url: "https://pub.dev" source: hosted - version: "0.4.12" + version: "0.4.16" typed_data: dependency: transitive description: name: typed_data - url: "https://pub.dartlang.org" + sha256: "26f87ade979c47a150c9eaab93ccd2bebe70a27dc0b4b29517f2904f04eb11a5" + url: "https://pub.dev" source: hosted version: "1.3.1" uuid: dependency: transitive description: name: uuid - url: "https://pub.dartlang.org" + sha256: "648e103079f7c64a36dc7d39369cabb358d377078a051d6ae2ad3aa539519313" + url: "https://pub.dev" source: hosted version: "3.0.7" vector_math: dependency: transitive description: name: vector_math - url: "https://pub.dartlang.org" + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.4" win32: dependency: transitive description: name: win32 - url: "https://pub.dartlang.org" + sha256: c9ebe7ee4ab0c2194e65d3a07d8c54c5d00bb001b76081c4a04cdb8448b59e46 + url: "https://pub.dev" source: hosted - version: "3.1.1" + version: "3.1.3" xdg_directories: dependency: transitive description: name: xdg_directories - url: "https://pub.dartlang.org" + sha256: bd512f03919aac5f1313eb8249f223bacf4927031bf60b02601f81f687689e86 + url: "https://pub.dev" source: hosted - version: "0.2.0+2" + version: "0.2.0+3" xml: dependency: transitive description: name: xml - url: "https://pub.dartlang.org" + sha256: "979ee37d622dec6365e2efa4d906c37470995871fe9ae080d967e192d88286b5" + url: "https://pub.dev" source: hosted - version: "6.1.0" + version: "6.2.2" sdks: - dart: ">=2.18.2 <3.0.0" + dart: ">=2.18.2 <4.0.0" flutter: ">=3.0.0" From 683d01a029756c9610a3f763469d5dcabfc4d912 Mon Sep 17 00:00:00 2001 From: Perumallpardhiv Date: Sat, 11 Feb 2023 02:30:04 +0530 Subject: [PATCH 2/4] Added Google SignIn to Project --- lib/main.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index e4e9ad5..a84bd28 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -47,8 +47,8 @@ class LandingPage extends StatelessWidget { child: MaterialApp( title: 'Vritant', debugShowCheckedModeBanner: false, - // home: LoginPage(), // enable google sign-in - home: TabsScreen(), + home: LoginPage(), // enable google sign-in + // home: TabsScreen(), // routes: {'/routes': (ctx) => TabsScreen()}, ), ); From 5b8cf386d30495d3c7a9279cb03a4cf4bfab1f80 Mon Sep 17 00:00:00 2001 From: Perumallpardhiv Date: Sat, 11 Feb 2023 02:32:02 +0530 Subject: [PATCH 3/4] Added Google SignIn to Project --- lib/tabs/screens/tabs_screen.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/tabs/screens/tabs_screen.dart b/lib/tabs/screens/tabs_screen.dart index 193639e..e04fd86 100644 --- a/lib/tabs/screens/tabs_screen.dart +++ b/lib/tabs/screens/tabs_screen.dart @@ -141,6 +141,9 @@ class _TabsScreenState extends State { void changeLang() {} void signOut(GoogleSignInProvider gAuth) { - gAuth.handleSignOut(); + if (user!.providerData[0].providerId == "google.com") { + // signed via google + gAuth.handleSignOut(); + } } } From 4f3703d4e6e94072460181236f0f7a22fd337212 Mon Sep 17 00:00:00 2001 From: Perumallpardhiv Date: Sat, 11 Feb 2023 02:58:06 +0530 Subject: [PATCH 4/4] Removed Error on Icon Click on AppBar --- lib/tabs/screens/tabs_screen.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/tabs/screens/tabs_screen.dart b/lib/tabs/screens/tabs_screen.dart index e04fd86..193639e 100644 --- a/lib/tabs/screens/tabs_screen.dart +++ b/lib/tabs/screens/tabs_screen.dart @@ -141,9 +141,6 @@ class _TabsScreenState extends State { void changeLang() {} void signOut(GoogleSignInProvider gAuth) { - if (user!.providerData[0].providerId == "google.com") { - // signed via google - gAuth.handleSignOut(); - } + gAuth.handleSignOut(); } }