From 8039bbf63a00f9c9284528eff627eea024fa725a Mon Sep 17 00:00:00 2001 From: amin Date: Wed, 4 Dec 2024 16:37:20 +0330 Subject: [PATCH] android notification done --- android/app/build.gradle | 5 + android/app/google-services.json | 29 +++ android/app/src/main/AndroidManifest.xml | 18 +- android/settings.gradle | 3 + ios/Runner/AppDelegate.swift | 50 ++++ ios/Runner/GoogleService-Info.plist | 30 +++ lib/main.dart | 80 +++++-- lib/screens/auth/login_screen.dart | 4 +- lib/screens/auth/otp_screen.dart | 6 +- lib/screens/auth/state/state.dart | 9 +- lib/screens/home/screen.dart | 215 +++++++++--------- lib/screens/meeting/screen.dart | 5 +- lib/screens/private_meeting/screen.dart | 7 +- lib/screens/report/screen.dart | 5 +- lib/services/auth/auth.dart | 14 +- .../notification/notification_service.dart | 40 ++++ macos/Flutter/GeneratedPluginRegistrant.swift | 4 + pubspec.lock | 56 +++++ pubspec.yaml | 3 + .../flutter/generated_plugin_registrant.cc | 3 + windows/flutter/generated_plugins.cmake | 1 + 21 files changed, 430 insertions(+), 157 deletions(-) create mode 100644 android/app/google-services.json create mode 100644 ios/Runner/GoogleService-Info.plist create mode 100644 lib/services/notification/notification_service.dart diff --git a/android/app/build.gradle b/android/app/build.gradle index 0f5c610..44bbc2e 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -1,5 +1,8 @@ plugins { id "com.android.application" + // START: FlutterFire Configuration + id 'com.google.gms.google-services' + // END: FlutterFire Configuration id "kotlin-android" // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. id "dev.flutter.flutter-gradle-plugin" @@ -42,3 +45,5 @@ android { flutter { source = "../.." } + +apply plugin: 'com.google.gms.google-services' \ No newline at end of file diff --git a/android/app/google-services.json b/android/app/google-services.json new file mode 100644 index 0000000..e68a240 --- /dev/null +++ b/android/app/google-services.json @@ -0,0 +1,29 @@ +{ + "project_info": { + "project_number": "392489806594", + "project_id": "folad-neiriz", + "storage_bucket": "folad-neiriz.firebasestorage.app" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:392489806594:android:76b6661258b6f56f3b301b", + "android_client_info": { + "package_name": "com.example.qadirneyriz" + } + }, + "oauth_client": [], + "api_key": [ + { + "current_key": "AIzaSyAuDK456j4fFdNqrzQRDYyWRcB0VkQ2bCY" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [] + } + } + } + ], + "configuration_version": "1" +} \ No newline at end of file diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index e2401a1..0b40b33 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,10 +1,12 @@ - + - + + - + + +