├── ios
├── Runner
│ ├── Runner-Bridging-Header.h
│ ├── Assets.xcassets
│ │ ├── LaunchImage.imageset
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ ├── README.md
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ ├── Icon-App-20x20@1x.png
│ │ │ ├── Icon-App-20x20@2x.png
│ │ │ ├── Icon-App-20x20@3x.png
│ │ │ ├── Icon-App-29x29@1x.png
│ │ │ ├── Icon-App-29x29@2x.png
│ │ │ ├── Icon-App-29x29@3x.png
│ │ │ ├── Icon-App-40x40@1x.png
│ │ │ ├── Icon-App-40x40@2x.png
│ │ │ ├── Icon-App-40x40@3x.png
│ │ │ ├── Icon-App-60x60@2x.png
│ │ │ ├── Icon-App-60x60@3x.png
│ │ │ ├── Icon-App-76x76@1x.png
│ │ │ ├── Icon-App-76x76@2x.png
│ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ ├── Icon-App-83.5x83.5@2x.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ └── Info.plist
├── Flutter
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── AppFrameworkInfo.plist
├── Runner.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ └── project.pbxproj
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── IDEWorkspaceChecks.plist
├── .gitignore
├── Podfile
└── Podfile.lock
├── .vscode
└── settings.json
├── assets
└── images
│ └── logo.png
├── android
├── gradle.properties
├── app
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── drawable-v21
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── values-night
│ │ │ │ │ └── styles.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── chat_firebase
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── profile
│ │ │ └── AndroidManifest.xml
│ ├── google-services.json
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── .gitignore
├── settings.gradle
└── build.gradle
├── lib
├── utils
│ ├── constant.dart
│ └── app_util.dart
├── theme
│ └── color.dart
├── pages
│ ├── root.dart
│ ├── home.dart
│ ├── login.dart
│ └── register.dart
├── main.dart
├── model
│ ├── service_response.dart
│ └── message.dart
├── services
│ ├── message.dart
│ └── auth.dart
└── widgets
│ ├── custom_textfield.dart
│ ├── custom_image.dart
│ ├── custom_dialog.dart
│ └── chat_room_item.dart
├── .metadata
├── .gitignore
├── test
└── widget_test.dart
├── README.md
├── pubspec.yaml
└── pubspec.lock
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "dart.flutterSdkPath": "/Users/sangvaleapvanny/fvm/versions/stable"
3 | }
--------------------------------------------------------------------------------
/assets/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/assets/images/logo.png
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sangvaleap/app-flutter-firebase-chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/chat_firebase/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.sangvaleap.firebasechat
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
7 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/lib/utils/constant.dart:
--------------------------------------------------------------------------------
1 | const String ROOM_COLLECTION = "rooms";
2 | const String ROOM_ID = "public";
3 |
4 | class MessageType {
5 | static const int text = 0;
6 | static const int image = 1;
7 | static const int video = 2;
8 | }
9 |
10 | class RoomType {
11 | static const int personal = 0;
12 | static const int group = 1;
13 | }
--------------------------------------------------------------------------------
/lib/theme/color.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class AppColor {
4 | static const primary = Color(0xFF99a4f3);
5 | static const mainColor = Color(0xFF000000);
6 | static const secondary = Color(0xFFe54140);
7 | static const appBgColor = Color(0xFFFAFAFA);
8 | static const shadowColor = Colors.black87;
9 | }
10 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: d79295af24c3ed621c33713ecda14ad196fd9c31
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/lib/utils/app_util.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/foundation.dart';
2 | import 'package:timeago/timeago.dart' as timeago;
3 |
4 | class AppUtil {
5 | static void debugPrint(var value) {
6 | if (kDebugMode) print(value);
7 | }
8 |
9 | static getTimeAgo(DateTime dt) {
10 | return timeago.format(dt, allowFromNow: true, locale: 'en_short');
11 | }
12 |
13 | static bool checkIsNull(value) {
14 | return [null, "null", ""].contains(value);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/lib/pages/root.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth/firebase_auth.dart';
2 | import 'package:flutter/material.dart';
3 | import 'home.dart';
4 | import 'login.dart';
5 |
6 | class RootApp extends StatelessWidget {
7 | const RootApp({Key? key}) : super(key: key);
8 |
9 | @override
10 | Widget build(BuildContext context) {
11 | return StreamBuilder(
12 | stream: FirebaseAuth.instance.authStateChanges(),
13 | builder: ((context, snapshot) {
14 | return snapshot.hasData ? const HomePage() : const LoginPage();
15 | }),
16 | );
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:chat_firebase/pages/root.dart';
2 | import 'package:firebase_core/firebase_core.dart';
3 | import 'package:flutter/material.dart';
4 | import 'theme/color.dart';
5 |
6 | void main() async {
7 | WidgetsFlutterBinding.ensureInitialized();
8 | await Firebase.initializeApp();
9 |
10 | runApp(MyApp());
11 | }
12 |
13 | class MyApp extends StatelessWidget {
14 | @override
15 | Widget build(BuildContext context) {
16 | return MaterialApp(
17 | debugShowCheckedModeBanner: false,
18 | title: 'Firebase Chat',
19 | theme: ThemeData(
20 | primaryColor: AppColor.primary,
21 | ),
22 | home: const RootApp(),
23 | );
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/ephemeral/
22 | Flutter/app.flx
23 | Flutter/app.zip
24 | Flutter/flutter_assets/
25 | Flutter/flutter_export_environment.sh
26 | ServiceDefinitions.json
27 | Runner/GeneratedPluginRegistrant.*
28 |
29 | # Exceptions to above rules.
30 | !default.mode1v3
31 | !default.mode2v3
32 | !default.pbxuser
33 | !default.perspectivev3
34 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.6.10'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.1.2'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | classpath 'com.google.gms:google-services:4.3.15'
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | google()
18 | jcenter()
19 | }
20 | }
21 |
22 | rootProject.buildDir = '../build'
23 | subprojects {
24 | project.buildDir = "${rootProject.buildDir}/${project.name}"
25 | project.evaluationDependsOn(':app')
26 | }
27 |
28 | task clean(type: Delete) {
29 | delete rootProject.buildDir
30 | }
31 |
--------------------------------------------------------------------------------
/lib/model/service_response.dart:
--------------------------------------------------------------------------------
1 | class ServiceResponse {
2 | final bool status;
3 | final String? statusCode;
4 | final String message;
5 | final data;
6 |
7 | ServiceResponse({
8 | required this.status,
9 | required this.message,
10 | this.statusCode,
11 | this.data,
12 | });
13 |
14 | Map toJson() {
15 | return {
16 | "status": status,
17 | "statusCode": statusCode,
18 | "message": message,
19 | "data": data,
20 | };
21 | }
22 |
23 | factory ServiceResponse.fromJson(Map json) {
24 | return ServiceResponse(
25 | status: json["status"],
26 | statusCode: json.containsKey("statusCode") ? json["statusCode"] : null,
27 | message: json["message"],
28 | data: json.containsKey("data") ? json["data"] : null,
29 | );
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Android Studio will place build artifacts here
44 | /android/app/debug
45 | /android/app/profile
46 | /android/app/release
47 |
--------------------------------------------------------------------------------
/lib/model/message.dart:
--------------------------------------------------------------------------------
1 |
2 | class Message {
3 | final String userId;
4 | final String userName;
5 | final String roomId;
6 | final String message;
7 | final int messageType;
8 | final DateTime createdAt;
9 |
10 | const Message({
11 | required this.userId,
12 | required this.userName,
13 | required this.roomId,
14 | required this.message,
15 | required this.messageType,
16 | required this.createdAt,
17 | });
18 |
19 | static Message fromJson(Map json) => Message(
20 | userId: json['userId'],
21 | userName: json['userName'],
22 | roomId: json['roomId'],
23 | message: json['message'],
24 | messageType: json['messageType'],
25 | createdAt: json['createdAt']?.toDate(),
26 | );
27 |
28 | Map toJson() => {
29 | 'userId': userId,
30 | 'userName': userName,
31 | 'roomId': roomId,
32 | 'message': message,
33 | 'messageType': messageType,
34 | 'createdAt': createdAt.toUtc(),
35 | };
36 | }
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:chat_firebase/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Chat App with Firebase - Flutter
2 |
3 | - Preview video: https://youtu.be/bS5tkTDqFqU
4 | - Support my work: https://www.patreon.com/sangvaleap
5 |
6 | - [My Twitter](https://twitter.com/sangvaleap)
7 | - [My Patreon](https://www.patreon.com/sangvaleap)
8 | - [My Linkedin](https://www.linkedin.com/in/sangvaleap-vanny-353b25aa/)
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/android/app/google-services.json:
--------------------------------------------------------------------------------
1 | {
2 | "project_info": {
3 | "project_number": "192825699924",
4 | "project_id": "fir-chat-a5ad2",
5 | "storage_bucket": "fir-chat-a5ad2.appspot.com"
6 | },
7 | "client": [
8 | {
9 | "client_info": {
10 | "mobilesdk_app_id": "1:192825699924:android:c1cd30f1ba7bf2fed887c1",
11 | "android_client_info": {
12 | "package_name": "com.sangvaleap.firebasechat"
13 | }
14 | },
15 | "oauth_client": [
16 | {
17 | "client_id": "192825699924-bb55h67r7be26np6c60ckah0q8u32jrf.apps.googleusercontent.com",
18 | "client_type": 3
19 | }
20 | ],
21 | "api_key": [
22 | {
23 | "current_key": "AIzaSyCjI5znQwx11fomt7QxesF5No3ybHp_mBU"
24 | }
25 | ],
26 | "services": {
27 | "appinvite_service": {
28 | "other_platform_oauth_client": [
29 | {
30 | "client_id": "192825699924-bb55h67r7be26np6c60ckah0q8u32jrf.apps.googleusercontent.com",
31 | "client_type": 3
32 | },
33 | {
34 | "client_id": "192825699924-20rrplggmiehp9i5d79it4o68drj6ei9.apps.googleusercontent.com",
35 | "client_type": 2,
36 | "ios_info": {
37 | "bundle_id": "com.sangvaleap.firebasechat"
38 | }
39 | }
40 | ]
41 | }
42 | }
43 | }
44 | ],
45 | "configuration_version": "1"
46 | }
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | platform :ios, '10.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | end
36 |
37 | post_install do |installer|
38 | installer.pods_project.targets.each do |target|
39 | flutter_additional_ios_build_settings(target)
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/lib/services/message.dart:
--------------------------------------------------------------------------------
1 | import 'package:chat_firebase/model/message.dart';
2 | import 'package:chat_firebase/model/service_response.dart';
3 | import 'package:chat_firebase/utils/app_util.dart';
4 | import 'package:chat_firebase/utils/constant.dart';
5 | import 'package:cloud_firestore/cloud_firestore.dart';
6 | import 'package:firebase_auth/firebase_auth.dart';
7 |
8 | class MessageService {
9 | MessageService(this.firebaseAuth);
10 |
11 | final FirebaseAuth firebaseAuth;
12 | final _database = FirebaseFirestore.instance;
13 |
14 | Future sendMessage(String message) async {
15 | final newMessage = Message(
16 | userId: firebaseAuth.currentUser!.uid,
17 | userName: firebaseAuth.currentUser!.displayName ?? "N/A",
18 | roomId: ROOM_ID,
19 | message: message.trim(),
20 | messageType: MessageType.text,
21 | createdAt: DateTime.now(),
22 | );
23 |
24 | try {
25 | var refMessage = _database.collection(ROOM_COLLECTION);
26 | var res = await refMessage.add(newMessage.toJson());
27 | AppUtil.debugPrint(res);
28 | return ServiceResponse.fromJson(
29 | {"status": true, "message": "success"},
30 | );
31 | } on FirebaseAuthException catch (e) {
32 | AppUtil.debugPrint(e.message);
33 | return ServiceResponse.fromJson(
34 | {"status": false, "message": e.message.toString()},
35 | );
36 | }
37 | }
38 |
39 | Stream loadStreamMessage(int limit) {
40 | return _database
41 | .collection(ROOM_COLLECTION)
42 | .orderBy('createdAt')
43 | .snapshots();
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | chat_firebase
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/lib/widgets/custom_textfield.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class CustomTextField extends StatelessWidget {
4 | const CustomTextField({
5 | Key? key,
6 | this.onTap,
7 | this.onChanged,
8 | this.keyboardType,
9 | this.controller,
10 | this.hintText,
11 | this.labelText,
12 | this.readOnly = false,
13 | this.validatedField = true,
14 | this.errorText = 'Cannot be empty',
15 | this.leadingIcon,
16 | this.suffixIcon,
17 | this.obscureText = false,
18 | }) : super(key: key);
19 |
20 | final bool validatedField;
21 | final bool readOnly;
22 | final bool obscureText;
23 | final Widget? leadingIcon;
24 | final Widget? suffixIcon;
25 | final String? errorText;
26 | final String? hintText;
27 | final String? labelText;
28 | final TextEditingController? controller;
29 | final TextInputType? keyboardType;
30 | final GestureTapCallback? onTap;
31 | final ValueChanged? onChanged;
32 |
33 | @override
34 | Widget build(BuildContext context) {
35 | return TextField(
36 | onTap: onTap,
37 | onChanged: onChanged,
38 | controller: controller,
39 | keyboardType: keyboardType,
40 | cursorColor: Theme.of(context).colorScheme.secondary,
41 | readOnly: readOnly,
42 | obscureText: obscureText,
43 | decoration: InputDecoration(
44 | prefixIcon: leadingIcon != null ? leadingIcon : null,
45 | suffixIcon: suffixIcon != null ? suffixIcon : null,
46 | border: InputBorder.none,
47 | hintText: hintText,
48 | hintStyle: TextStyle(color: Colors.grey, fontSize: 15),
49 | labelText: labelText,
50 | errorText: validatedField ? null : errorText,
51 | ),
52 | );
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/lib/services/auth.dart:
--------------------------------------------------------------------------------
1 | import 'package:chat_firebase/model/service_response.dart';
2 | import 'package:chat_firebase/utils/app_util.dart';
3 | import 'package:firebase_auth/firebase_auth.dart';
4 |
5 | class AuthService {
6 | const AuthService(this.firebaseAuth);
7 | final FirebaseAuth firebaseAuth;
8 |
9 | Future signInWithEmailPassword(
10 | String email, String password) async {
11 | try {
12 | var result = await firebaseAuth.signInWithEmailAndPassword(
13 | email: email.trim(), password: password.trim());
14 | AppUtil.debugPrint(result.user);
15 | return ServiceResponse.fromJson(
16 | {"status": true, "message": "success", "data": result.user},
17 | );
18 | } on FirebaseAuthException catch (e) {
19 | AppUtil.debugPrint(e.toString());
20 | return ServiceResponse.fromJson(
21 | {"status": false, "message": e.message.toString()},
22 | );
23 | } on Exception catch (e) {
24 | return ServiceResponse.fromJson(
25 | {"status": false, "message": e.toString()},
26 | );
27 | }
28 | }
29 |
30 | Future registerWithEmailPassword(
31 | String name, String email, String password) async {
32 | try {
33 | var res = await firebaseAuth.createUserWithEmailAndPassword(
34 | email: email.trim(), password: password.trim());
35 | AppUtil.debugPrint(res);
36 | res.user?.updateDisplayName(name);
37 | await firebaseAuth.currentUser?.reload();
38 | return ServiceResponse.fromJson(
39 | {"status": true, "message": "success", "data": res.user},
40 | );
41 | } on FirebaseAuthException catch (e) {
42 | AppUtil.debugPrint(e.toString());
43 | return ServiceResponse.fromJson(
44 | {"status": false, "message": e.message.toString()},
45 | );
46 | } on Exception catch (e) {
47 | return ServiceResponse.fromJson(
48 | {"status": false, "message": e.toString()},
49 | );
50 | }
51 | }
52 |
53 | Future logOut() async {
54 | await firebaseAuth.signOut();
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply plugin: 'com.google.gms.google-services'
27 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
28 |
29 | android {
30 | compileSdkVersion 31
31 |
32 | sourceSets {
33 | main.java.srcDirs += 'src/main/kotlin'
34 | }
35 |
36 | defaultConfig {
37 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
38 | applicationId "com.sangvaleap.firebasechat"
39 | minSdkVersion 19
40 | targetSdkVersion 31
41 | versionCode flutterVersionCode.toInteger()
42 | versionName flutterVersionName
43 | multiDexEnabled true
44 | }
45 |
46 | buildTypes {
47 | release {
48 | // TODO: Add your own signing config for the release build.
49 | // Signing with the debug keys for now, so `flutter run --release` works.
50 | signingConfig signingConfigs.debug
51 | }
52 | }
53 | }
54 |
55 | flutter {
56 | source '../..'
57 | }
58 |
59 | dependencies {
60 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
61 | implementation 'com.android.support:multidex:1.0.3'
62 | implementation 'com.google.firebase:firebase-bom:31.2.0'
63 | }
64 |
--------------------------------------------------------------------------------
/lib/widgets/custom_image.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_svg/flutter_svg.dart';
3 | import 'package:multiavatar/multiavatar.dart';
4 |
5 | class CustomImage extends StatelessWidget {
6 | const CustomImage(
7 | this.name, {
8 | this.width = 100,
9 | this.height = 100,
10 | this.bgColor,
11 | this.borderWidth = 0,
12 | this.borderColor,
13 | this.trBackground = false,
14 | this.isSVG = true,
15 | this.radius = 50,
16 | });
17 |
18 | final String name;
19 | final double width;
20 | final double height;
21 | final double borderWidth;
22 | final Color? borderColor;
23 | final Color? bgColor;
24 | final bool trBackground;
25 | final bool isSVG;
26 | final double radius;
27 |
28 | @override
29 | Widget build(BuildContext context) {
30 | return isSVG ? _buildSVG(context) : _buildNetworkImage(context);
31 | }
32 |
33 | Widget _buildNetworkImage(context) {
34 | return Container(
35 | width: width,
36 | height: height,
37 | decoration: BoxDecoration(
38 | border: Border.all(
39 | color: borderColor ?? Theme.of(context).cardColor,
40 | width: borderWidth,
41 | ),
42 | color: bgColor,
43 | borderRadius: BorderRadius.circular(radius),
44 | boxShadow: [
45 | BoxShadow(
46 | color: Colors.grey.withOpacity(0.1),
47 | spreadRadius: 1,
48 | blurRadius: 1,
49 | offset: Offset(1, 2), // changes position of shadow
50 | ),
51 | ],
52 | image: DecorationImage(
53 | image: NetworkImage(name),
54 | fit: BoxFit.cover,
55 | ),
56 | ),
57 | );
58 | }
59 |
60 | Widget _buildSVG(context) {
61 | return Container(
62 | width: width,
63 | height: height,
64 | decoration: BoxDecoration(
65 | border: Border.all(
66 | color: borderColor ?? Theme.of(context).cardColor,
67 | width: borderWidth,
68 | ),
69 | color: bgColor,
70 | shape: BoxShape.circle,
71 | ),
72 | child: SvgPicture.string(
73 | multiavatar(name, trBackground: trBackground),
74 | ),
75 | );
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
7 |
15 |
19 |
23 |
28 |
32 |
33 |
34 |
35 |
36 |
37 |
39 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: chat_firebase
2 | description: A new Flutter project.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `pub publish`. This is preferred for private packages.
6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.12.0 <3.0.0"
22 |
23 | dependencies:
24 | flutter:
25 | sdk: flutter
26 |
27 |
28 | # The following adds the Cupertino Icons font to your application.
29 | # Use with the CupertinoIcons class for iOS style icons.
30 | cupertino_icons: ^1.0.2
31 | rounded_loading_button: ^2.0.9
32 | firebase_auth: ^3.1.1
33 | firebase_core: ^1.6.0
34 | cloud_firestore: ^2.5.1
35 | multiavatar: ^0.1.5
36 | flutter_svg: ^0.22.0
37 | timeago: ^3.1.0
38 |
39 | dev_dependencies:
40 | flutter_test:
41 | sdk: flutter
42 |
43 | # For information on the generic Dart part of this file, see the
44 | # following page: https://dart.dev/tools/pub/pubspec
45 |
46 | # The following section is specific to Flutter.
47 | flutter:
48 |
49 | # The following line ensures that the Material Icons font is
50 | # included with your application, so that you can use the icons in
51 | # the material Icons class.
52 | uses-material-design: true
53 |
54 | # To add assets to your application, add an assets section, like this:
55 | assets:
56 | - assets/images/
57 |
58 | # assets:
59 | # - images/a_dot_burr.jpeg
60 | # - images/a_dot_ham.jpeg
61 |
62 | # An image asset can refer to one or more resolution-specific "variants", see
63 | # https://flutter.dev/assets-and-images/#resolution-aware.
64 |
65 | # For details regarding adding assets from package dependencies, see
66 | # https://flutter.dev/assets-and-images/#from-packages
67 |
68 | # To add custom fonts to your application, add a fonts section here,
69 | # in this "flutter" section. Each entry in this list should have a
70 | # "family" key with the font family name, and a "fonts" key with a
71 | # list giving the asset and other descriptors for the font. For
72 | # example:
73 | # fonts:
74 | # - family: Schyler
75 | # fonts:
76 | # - asset: fonts/Schyler-Regular.ttf
77 | # - asset: fonts/Schyler-Italic.ttf
78 | # style: italic
79 | # - family: Trajan Pro
80 | # fonts:
81 | # - asset: fonts/TrajanPro.ttf
82 | # - asset: fonts/TrajanPro_Bold.ttf
83 | # weight: 700
84 | #
85 | # For details regarding fonts from package dependencies,
86 | # see https://flutter.dev/custom-fonts/#from-packages
87 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/lib/widgets/custom_dialog.dart:
--------------------------------------------------------------------------------
1 | import 'package:chat_firebase/theme/color.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class CustomDialogBox extends StatelessWidget {
5 | const CustomDialogBox({
6 | Key? key,
7 | this.title = "Message",
8 | this.descriptions = "",
9 | this.buttonText = "Ok",
10 | this.logo = "https://cdn-icons-png.flaticon.com/512/3820/3820331.png",
11 | }) : super(key: key);
12 |
13 | final String title;
14 | final String descriptions;
15 | final String buttonText;
16 | final String logo;
17 |
18 | @override
19 | Widget build(BuildContext context) {
20 | return Dialog(
21 | shape: RoundedRectangleBorder(
22 | borderRadius: BorderRadius.circular(Constants.padding),
23 | ),
24 | elevation: 0,
25 | backgroundColor: Colors.transparent,
26 | child: _buildContent(context),
27 | );
28 | }
29 |
30 | _buildContent(context) {
31 | return Stack(
32 | children: [
33 | Container(
34 | padding: EdgeInsets.only(
35 | left: Constants.padding,
36 | top: Constants.avatarRadius + Constants.padding,
37 | right: Constants.padding,
38 | bottom: Constants.padding,
39 | ),
40 | margin: EdgeInsets.only(top: Constants.avatarRadius),
41 | decoration: BoxDecoration(
42 | shape: BoxShape.rectangle,
43 | color: Colors.white,
44 | borderRadius: BorderRadius.circular(Constants.padding),
45 | boxShadow: [
46 | BoxShadow(
47 | color: Colors.black,
48 | offset: Offset(0, 10),
49 | blurRadius: 10,
50 | ),
51 | ],
52 | ),
53 | child: Column(
54 | mainAxisSize: MainAxisSize.min,
55 | children: [
56 | Text(
57 | title,
58 | style: TextStyle(fontSize: 22, fontWeight: FontWeight.w600),
59 | ),
60 | const SizedBox(
61 | height: 15,
62 | ),
63 | Text(
64 | descriptions,
65 | style: TextStyle(fontSize: 14),
66 | textAlign: TextAlign.center,
67 | ),
68 | const SizedBox(
69 | height: 22,
70 | ),
71 | Align(
72 | alignment: Alignment.bottomRight,
73 | child: TextButton(
74 | onPressed: () {
75 | Navigator.of(context).pop();
76 | },
77 | child: Text(
78 | buttonText,
79 | style: TextStyle(
80 | fontSize: 18,
81 | color: AppColor.primary,
82 | ),
83 | ),
84 | ),
85 | ),
86 | ],
87 | ),
88 | ),
89 | Positioned(
90 | left: Constants.padding,
91 | right: Constants.padding,
92 | child: CircleAvatar(
93 | backgroundColor: Colors.transparent,
94 | radius: Constants.avatarRadius,
95 | child: ClipRRect(
96 | borderRadius: BorderRadius.all(Radius.circular(5)),
97 | child: Image(
98 | image: NetworkImage(
99 | logo,
100 | ),
101 | ),
102 | ),
103 | ),
104 | ),
105 | ],
106 | );
107 | }
108 | }
109 |
110 | class Constants {
111 | Constants._();
112 | static const double padding = 20;
113 | static const double avatarRadius = 45;
114 | }
115 |
--------------------------------------------------------------------------------
/lib/widgets/chat_room_item.dart:
--------------------------------------------------------------------------------
1 | import 'package:chat_firebase/model/message.dart';
2 | import 'package:chat_firebase/utils/app_util.dart';
3 | import 'package:chat_firebase/widgets/custom_image.dart';
4 | import 'package:firebase_auth/firebase_auth.dart';
5 | import 'package:flutter/material.dart';
6 |
7 | class ChatRoomItem extends StatelessWidget {
8 | ChatRoomItem({Key? key, required this.message}) : super(key: key);
9 |
10 | final FirebaseAuth _firebaseAuth = FirebaseAuth.instance;
11 | final Message message;
12 |
13 | @override
14 | Widget build(BuildContext context) {
15 | return Padding(
16 | padding: const EdgeInsets.all(5.0),
17 | child: _getGroupChat(),
18 | );
19 | }
20 |
21 | _getGroupChat() {
22 | return message.userId == _firebaseAuth.currentUser!.uid
23 | ? _buildMyMessage()
24 | : _buildOtherMessage();
25 | }
26 |
27 | Widget _buildMyMessage() {
28 | return Row(
29 | crossAxisAlignment: CrossAxisAlignment.end,
30 | mainAxisAlignment: MainAxisAlignment.end,
31 | children: [
32 | Container(
33 | constraints: const BoxConstraints(maxWidth: 280),
34 | padding: EdgeInsets.all(10),
35 | decoration: BoxDecoration(
36 | color: Colors.blue.shade50,
37 | borderRadius: BorderRadius.only(
38 | topLeft: Radius.circular(20),
39 | topRight: Radius.circular(20),
40 | bottomLeft: Radius.circular(20),
41 | ),
42 | boxShadow: [
43 | BoxShadow(
44 | color: Colors.grey.withOpacity(0.2),
45 | spreadRadius: 1,
46 | blurRadius: 1,
47 | offset: Offset(0, 1),
48 | ),
49 | ],
50 | ),
51 | child: Column(
52 | crossAxisAlignment: CrossAxisAlignment.start,
53 | children: [
54 | RichText(
55 | text: TextSpan(
56 | children: [
57 | TextSpan(
58 | text: this.message.message,
59 | style: TextStyle(
60 | fontSize: 15,
61 | color: Colors.black,
62 | height: 1.5,
63 | ),
64 | ),
65 | TextSpan(text: " "),
66 | TextSpan(
67 | text: AppUtil.getTimeAgo(this.message.createdAt),
68 | style: TextStyle(fontSize: 13, color: Colors.grey),
69 | ),
70 | ],
71 | ),
72 | )
73 | ],
74 | ),
75 | )
76 | ],
77 | );
78 | }
79 |
80 | Widget _buildOtherMessage() {
81 | return Row(
82 | crossAxisAlignment: CrossAxisAlignment.end,
83 | children: [
84 | CustomImage(
85 | this.message.userId.toString(),
86 | width: 40,
87 | height: 40,
88 | ),
89 | const SizedBox(
90 | width: 5,
91 | ),
92 | Container(
93 | constraints: const BoxConstraints(maxWidth: 280),
94 | padding: EdgeInsets.all(10),
95 | decoration: BoxDecoration(
96 | color: Colors.lightGreen.shade50,
97 | borderRadius: BorderRadius.only(
98 | topLeft: Radius.circular(20),
99 | topRight: Radius.circular(20),
100 | bottomRight: Radius.circular(20),
101 | ),
102 | boxShadow: [
103 | BoxShadow(
104 | color: Colors.grey.withOpacity(0.2),
105 | spreadRadius: 1,
106 | blurRadius: 1,
107 | offset: Offset(0, 1),
108 | ),
109 | ],
110 | ),
111 | child: Column(
112 | crossAxisAlignment: CrossAxisAlignment.start,
113 | children: [
114 | Text(
115 | this.message.userName,
116 | style: TextStyle(fontSize: 15, fontWeight: FontWeight.w700),
117 | ),
118 | const SizedBox(
119 | height: 5,
120 | ),
121 | RichText(
122 | text: TextSpan(
123 | children: [
124 | TextSpan(
125 | text: this.message.message,
126 | style: TextStyle(
127 | fontSize: 14,
128 | color: Colors.black,
129 | height: 1.5,
130 | ),
131 | ),
132 | TextSpan(text: " "),
133 | TextSpan(
134 | text: AppUtil.getTimeAgo(this.message.createdAt),
135 | style: TextStyle(fontSize: 12, color: Colors.grey),
136 | ),
137 | ],
138 | ),
139 | )
140 | ],
141 | ),
142 | )
143 | ],
144 | );
145 | }
146 | }
147 |
--------------------------------------------------------------------------------
/lib/pages/home.dart:
--------------------------------------------------------------------------------
1 | import 'package:chat_firebase/model/message.dart';
2 | import 'package:chat_firebase/services/auth.dart';
3 | import 'package:chat_firebase/services/message.dart';
4 | import 'package:chat_firebase/theme/color.dart';
5 | import 'package:chat_firebase/widgets/chat_room_item.dart';
6 | import 'package:chat_firebase/widgets/custom_dialog.dart';
7 | import 'package:chat_firebase/widgets/custom_textfield.dart';
8 | import 'package:cloud_firestore/cloud_firestore.dart';
9 | import 'package:firebase_auth/firebase_auth.dart';
10 | import 'package:flutter/cupertino.dart';
11 | import 'package:flutter/material.dart';
12 |
13 | class HomePage extends StatefulWidget {
14 | const HomePage({Key? key}) : super(key: key);
15 |
16 | @override
17 | _HomePageState createState() => _HomePageState();
18 | }
19 |
20 | class _HomePageState extends State {
21 | late TextEditingController _messageController;
22 | late MessageService service;
23 | bool _isLoading = false;
24 |
25 | @override
26 | void initState() {
27 | service = MessageService(FirebaseAuth.instance);
28 | _messageController = TextEditingController();
29 | super.initState();
30 | }
31 |
32 | @override
33 | dispose() {
34 | _messageController.dispose();
35 | super.dispose();
36 | }
37 |
38 | @override
39 | Widget build(BuildContext context) {
40 | return Scaffold(
41 | backgroundColor: AppColor.appBgColor,
42 | appBar: _buildAppBar(),
43 | body: Padding(
44 | padding: EdgeInsets.only(bottom: 60),
45 | child: _buildChats(),
46 | ),
47 | floatingActionButton: _buildFooter(),
48 | floatingActionButtonLocation:
49 | FloatingActionButtonLocation.miniCenterDocked,
50 | );
51 | }
52 |
53 | AppBar _buildAppBar() {
54 | return AppBar(
55 | title: Text("Chat Room"),
56 | actions: [
57 | IconButton(
58 | onPressed: () {
59 | _showConfirmLogout();
60 | },
61 | icon: Icon(Icons.logout_rounded),
62 | ),
63 | ],
64 | );
65 | }
66 |
67 | _buildChats() {
68 | return StreamBuilder(
69 | stream: service.loadStreamMessage(10),
70 | builder: (context, snapshot) {
71 | if (!snapshot.hasData) {
72 | return Container();
73 | }
74 | var data = snapshot.data!.docs;
75 | return ListView.builder(
76 | itemBuilder: (context, index) {
77 | var msg =
78 | Message.fromJson(data[index].data() as Map);
79 | return ChatRoomItem(message: msg);
80 | },
81 | shrinkWrap: true,
82 | itemCount: data.length,
83 | );
84 | },
85 | );
86 | }
87 |
88 | _buildFooter() {
89 | return Container(
90 | padding: EdgeInsets.only(left: 15, right: 5),
91 | margin: EdgeInsets.symmetric(horizontal: 10),
92 | decoration: BoxDecoration(
93 | color: Colors.grey.shade200,
94 | borderRadius: BorderRadius.circular(20),
95 | ),
96 | child: Row(
97 | children: [
98 | Expanded(
99 | child: CustomTextField(
100 | controller: _messageController,
101 | hintText: "Write your message",
102 | ),
103 | ),
104 | IconButton(
105 | onPressed: () {
106 | _sendMessage();
107 | },
108 | icon: Icon(
109 | Icons.send_rounded,
110 | color: _isLoading ? Colors.grey : AppColor.primary,
111 | size: 35,
112 | ),
113 | )
114 | ],
115 | ),
116 | );
117 | }
118 |
119 | _sendMessage() async {
120 | if (_isLoading) return;
121 |
122 | setState(() {
123 | _isLoading = true;
124 | });
125 |
126 | var res = await service.sendMessage(_messageController.text);
127 |
128 | setState(() {
129 | _isLoading = false;
130 | });
131 |
132 | if (res.status) {
133 | _messageController.clear();
134 | } else {
135 | showDialog(
136 | context: context,
137 | builder: (BuildContext context) {
138 | return CustomDialogBox(
139 | title: "Chat",
140 | descriptions: res.message,
141 | );
142 | },
143 | );
144 | }
145 | }
146 |
147 | _showConfirmLogout() {
148 | showCupertinoModalPopup(
149 | context: context,
150 | builder: (context) => CupertinoActionSheet(
151 | message: Text("Would you like to log out?"),
152 | actions: [
153 | CupertinoActionSheetAction(
154 | onPressed: () async {
155 | Navigator.of(context).pop();
156 | AuthService auth = AuthService(FirebaseAuth.instance);
157 | await auth.logOut();
158 | },
159 | child: const Text(
160 | "Log out",
161 | style: TextStyle(color: AppColor.secondary),
162 | ),
163 | )
164 | ],
165 | cancelButton: CupertinoActionSheetAction(
166 | child: const Text("Cancel"),
167 | onPressed: () {
168 | Navigator.of(context).pop();
169 | },
170 | ),
171 | ),
172 | );
173 | }
174 | }
175 |
--------------------------------------------------------------------------------
/lib/pages/login.dart:
--------------------------------------------------------------------------------
1 | import 'package:chat_firebase/services/auth.dart';
2 | import 'package:chat_firebase/theme/color.dart';
3 | import 'package:chat_firebase/widgets/custom_dialog.dart';
4 | import 'package:chat_firebase/widgets/custom_image.dart';
5 | import 'package:chat_firebase/widgets/custom_textfield.dart';
6 | import 'package:firebase_auth/firebase_auth.dart';
7 | import 'package:flutter/material.dart';
8 | import 'package:rounded_loading_button/rounded_loading_button.dart';
9 | import 'register.dart';
10 |
11 | class LoginPage extends StatefulWidget {
12 | const LoginPage({Key? key}) : super(key: key);
13 |
14 | @override
15 | _LoginPageState createState() => _LoginPageState();
16 | }
17 |
18 | class _LoginPageState extends State {
19 | bool _isHidePwd = true;
20 | late AuthService service;
21 | late TextEditingController _emailController;
22 | late TextEditingController _passwordController;
23 | late RoundedLoadingButtonController _loginBtnController;
24 |
25 | @override
26 | void initState() {
27 | service = AuthService(FirebaseAuth.instance);
28 | _emailController = TextEditingController();
29 | _passwordController = TextEditingController();
30 | _loginBtnController = RoundedLoadingButtonController();
31 | super.initState();
32 | }
33 |
34 | @override
35 | void dispose() {
36 | _emailController.dispose();
37 | _passwordController.dispose();
38 | super.dispose();
39 | }
40 |
41 | @override
42 | Widget build(BuildContext context) {
43 | bool keyboardIsOpen = MediaQuery.of(context).viewInsets.bottom != 0;
44 | return Scaffold(
45 | body: _buildBody(),
46 | floatingActionButton: Visibility(
47 | visible: !keyboardIsOpen,
48 | child: _buildRegisterButton(),
49 | ),
50 | floatingActionButtonLocation:
51 | FloatingActionButtonLocation.miniCenterFloat,
52 | );
53 | }
54 |
55 | _buildBody() {
56 | return SingleChildScrollView(
57 | child: Container(
58 | padding: EdgeInsets.symmetric(horizontal: 20),
59 | height: MediaQuery.of(context).size.height,
60 | child: Column(
61 | mainAxisAlignment: MainAxisAlignment.center,
62 | mainAxisSize: MainAxisSize.max,
63 | children: [
64 | _buildLogo(),
65 | const SizedBox(
66 | height: 10,
67 | ),
68 | const Text(
69 | "Login",
70 | style: TextStyle(fontWeight: FontWeight.bold, fontSize: 40),
71 | ),
72 | const SizedBox(
73 | height: 80,
74 | ),
75 | _buildEmail(),
76 | const Divider(
77 | color: Colors.grey,
78 | height: 10,
79 | ),
80 | const SizedBox(
81 | height: 10,
82 | ),
83 | _buildPassword(),
84 | const Divider(
85 | color: Colors.grey,
86 | height: 10,
87 | ),
88 | const SizedBox(
89 | height: 15,
90 | ),
91 | _buildForgotPassword(),
92 | const SizedBox(
93 | height: 25,
94 | ),
95 | _buildLogin(),
96 | ],
97 | ),
98 | ),
99 | );
100 | }
101 |
102 | Widget _buildLogo() {
103 | return Container(
104 | padding: EdgeInsets.all(10),
105 | width: 150,
106 | height: 150,
107 | child: CustomImage(
108 | "https://cdn-icons-png.flaticon.com/512/3820/3820331.png",
109 | isSVG: false,
110 | bgColor: AppColor.appBgColor,
111 | radius: 5,
112 | ),
113 | );
114 | }
115 |
116 | Widget _buildForgotPassword() {
117 | return Align(
118 | alignment: Alignment.centerRight,
119 | child: GestureDetector(
120 | onTap: null,
121 | child: const Text(
122 | "Forgot Password?",
123 | style: TextStyle(
124 | color: AppColor.primary,
125 | fontWeight: FontWeight.w400,
126 | fontSize: 14,
127 | ),
128 | ),
129 | ),
130 | );
131 | }
132 |
133 | Widget _buildLogin() {
134 | return Row(
135 | children: [
136 | Expanded(
137 | child: RoundedLoadingButton(
138 | width: MediaQuery.of(context).size.width,
139 | color: AppColor.primary,
140 | controller: _loginBtnController,
141 | onPressed: onLogin,
142 | child: const Text(
143 | "Login",
144 | style: TextStyle(
145 | color: Colors.white,
146 | fontWeight: FontWeight.bold,
147 | ),
148 | ),
149 | ),
150 | ),
151 | ],
152 | );
153 | }
154 |
155 | Future onLogin() async {
156 | FocusScope.of(context).unfocus();
157 | if (!_validateForm(_emailController.text, _passwordController.text)) {
158 | return;
159 | }
160 |
161 | var res = await service.signInWithEmailPassword(
162 | _emailController.text,
163 | _passwordController.text,
164 | );
165 | if (res.status) {
166 | _loginBtnController.success();
167 | } else {
168 | _loginBtnController.reset();
169 | showDialog(
170 | context: context,
171 | builder: (BuildContext context) {
172 | return CustomDialogBox(
173 | title: "Login",
174 | descriptions: res.message,
175 | );
176 | },
177 | );
178 | }
179 | }
180 |
181 | bool _validateForm(String email, String pwd) {
182 | if (email.isEmpty || pwd.isEmpty) {
183 | _loginBtnController.reset();
184 | showDialog(
185 | context: context,
186 | builder: (BuildContext context) {
187 | return CustomDialogBox(
188 | descriptions: "Please enter your email and password.",
189 | );
190 | },
191 | );
192 | return false;
193 | }
194 | return true;
195 | }
196 |
197 | Widget _buildPassword() {
198 | return CustomTextField(
199 | controller: _passwordController,
200 | leadingIcon: Icon(
201 | Icons.lock_outline,
202 | color: Colors.grey,
203 | ),
204 | suffixIcon: GestureDetector(
205 | onTap: () {
206 | setState(() {
207 | _isHidePwd = !_isHidePwd;
208 | });
209 | },
210 | child: Icon(
211 | _isHidePwd
212 | ? Icons.visibility_off_outlined
213 | : Icons.visibility_outlined,
214 | color: Colors.grey,
215 | ),
216 | ),
217 | obscureText: _isHidePwd,
218 | hintText: "Password",
219 | );
220 | }
221 |
222 | Widget _buildEmail() {
223 | return CustomTextField(
224 | controller: _emailController,
225 | keyboardType: TextInputType.emailAddress,
226 | leadingIcon: Icon(
227 | Icons.email_outlined,
228 | color: Colors.grey,
229 | ),
230 | hintText: "Email",
231 | );
232 | }
233 |
234 | Widget _buildRegisterButton() {
235 | return Row(
236 | mainAxisAlignment: MainAxisAlignment.end,
237 | children: [
238 | GestureDetector(
239 | onTap: () {
240 | Navigator.push(
241 | context,
242 | MaterialPageRoute(
243 | builder: (context) => const RegisterPage(),
244 | ),
245 | );
246 | },
247 | child: Container(
248 | width: 90,
249 | height: 40,
250 | alignment: Alignment.center,
251 | decoration: BoxDecoration(
252 | color: Theme.of(context).cardColor,
253 | borderRadius: BorderRadius.only(
254 | topLeft: Radius.circular(20),
255 | bottomLeft: Radius.circular(20),
256 | ),
257 | boxShadow: [
258 | BoxShadow(
259 | color: Theme.of(context).shadowColor.withOpacity(0.1),
260 | spreadRadius: 1,
261 | blurRadius: 2,
262 | offset: Offset(0, 2), // changes position of shadow
263 | ),
264 | ],
265 | ),
266 | child: const Text(
267 | "Register",
268 | style: TextStyle(color: AppColor.primary),
269 | ),
270 | ),
271 | )
272 | ],
273 | );
274 | }
275 | }
276 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.8.2"
11 | boolean_selector:
12 | dependency: transitive
13 | description:
14 | name: boolean_selector
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "2.1.0"
18 | characters:
19 | dependency: transitive
20 | description:
21 | name: characters
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "1.2.0"
25 | charcode:
26 | dependency: transitive
27 | description:
28 | name: charcode
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.3.1"
32 | clock:
33 | dependency: transitive
34 | description:
35 | name: clock
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.1.0"
39 | cloud_firestore:
40 | dependency: "direct main"
41 | description:
42 | name: cloud_firestore
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "2.5.4"
46 | cloud_firestore_platform_interface:
47 | dependency: transitive
48 | description:
49 | name: cloud_firestore_platform_interface
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "5.4.10"
53 | cloud_firestore_web:
54 | dependency: transitive
55 | description:
56 | name: cloud_firestore_web
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "2.6.5"
60 | collection:
61 | dependency: transitive
62 | description:
63 | name: collection
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "1.15.0"
67 | crypto:
68 | dependency: transitive
69 | description:
70 | name: crypto
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "3.0.1"
74 | cupertino_icons:
75 | dependency: "direct main"
76 | description:
77 | name: cupertino_icons
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "1.0.4"
81 | fake_async:
82 | dependency: transitive
83 | description:
84 | name: fake_async
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "1.2.0"
88 | firebase_auth:
89 | dependency: "direct main"
90 | description:
91 | name: firebase_auth
92 | url: "https://pub.dartlang.org"
93 | source: hosted
94 | version: "3.3.4"
95 | firebase_auth_platform_interface:
96 | dependency: transitive
97 | description:
98 | name: firebase_auth_platform_interface
99 | url: "https://pub.dartlang.org"
100 | source: hosted
101 | version: "6.1.9"
102 | firebase_auth_web:
103 | dependency: transitive
104 | description:
105 | name: firebase_auth_web
106 | url: "https://pub.dartlang.org"
107 | source: hosted
108 | version: "3.3.5"
109 | firebase_core:
110 | dependency: "direct main"
111 | description:
112 | name: firebase_core
113 | url: "https://pub.dartlang.org"
114 | source: hosted
115 | version: "1.10.6"
116 | firebase_core_platform_interface:
117 | dependency: transitive
118 | description:
119 | name: firebase_core_platform_interface
120 | url: "https://pub.dartlang.org"
121 | source: hosted
122 | version: "4.2.3"
123 | firebase_core_web:
124 | dependency: transitive
125 | description:
126 | name: firebase_core_web
127 | url: "https://pub.dartlang.org"
128 | source: hosted
129 | version: "1.5.3"
130 | flutter:
131 | dependency: "direct main"
132 | description: flutter
133 | source: sdk
134 | version: "0.0.0"
135 | flutter_svg:
136 | dependency: "direct main"
137 | description:
138 | name: flutter_svg
139 | url: "https://pub.dartlang.org"
140 | source: hosted
141 | version: "0.22.0"
142 | flutter_test:
143 | dependency: "direct dev"
144 | description: flutter
145 | source: sdk
146 | version: "0.0.0"
147 | flutter_web_plugins:
148 | dependency: transitive
149 | description: flutter
150 | source: sdk
151 | version: "0.0.0"
152 | http_parser:
153 | dependency: transitive
154 | description:
155 | name: http_parser
156 | url: "https://pub.dartlang.org"
157 | source: hosted
158 | version: "4.0.0"
159 | intl:
160 | dependency: transitive
161 | description:
162 | name: intl
163 | url: "https://pub.dartlang.org"
164 | source: hosted
165 | version: "0.17.0"
166 | js:
167 | dependency: transitive
168 | description:
169 | name: js
170 | url: "https://pub.dartlang.org"
171 | source: hosted
172 | version: "0.6.3"
173 | matcher:
174 | dependency: transitive
175 | description:
176 | name: matcher
177 | url: "https://pub.dartlang.org"
178 | source: hosted
179 | version: "0.12.11"
180 | material_color_utilities:
181 | dependency: transitive
182 | description:
183 | name: material_color_utilities
184 | url: "https://pub.dartlang.org"
185 | source: hosted
186 | version: "0.1.3"
187 | meta:
188 | dependency: transitive
189 | description:
190 | name: meta
191 | url: "https://pub.dartlang.org"
192 | source: hosted
193 | version: "1.7.0"
194 | multiavatar:
195 | dependency: "direct main"
196 | description:
197 | name: multiavatar
198 | url: "https://pub.dartlang.org"
199 | source: hosted
200 | version: "0.1.5"
201 | path:
202 | dependency: transitive
203 | description:
204 | name: path
205 | url: "https://pub.dartlang.org"
206 | source: hosted
207 | version: "1.8.0"
208 | path_drawing:
209 | dependency: transitive
210 | description:
211 | name: path_drawing
212 | url: "https://pub.dartlang.org"
213 | source: hosted
214 | version: "0.5.1+1"
215 | path_parsing:
216 | dependency: transitive
217 | description:
218 | name: path_parsing
219 | url: "https://pub.dartlang.org"
220 | source: hosted
221 | version: "0.2.1"
222 | petitparser:
223 | dependency: transitive
224 | description:
225 | name: petitparser
226 | url: "https://pub.dartlang.org"
227 | source: hosted
228 | version: "4.1.0"
229 | plugin_platform_interface:
230 | dependency: transitive
231 | description:
232 | name: plugin_platform_interface
233 | url: "https://pub.dartlang.org"
234 | source: hosted
235 | version: "2.0.2"
236 | rounded_loading_button:
237 | dependency: "direct main"
238 | description:
239 | name: rounded_loading_button
240 | url: "https://pub.dartlang.org"
241 | source: hosted
242 | version: "2.0.9"
243 | rxdart:
244 | dependency: transitive
245 | description:
246 | name: rxdart
247 | url: "https://pub.dartlang.org"
248 | source: hosted
249 | version: "0.27.3"
250 | sky_engine:
251 | dependency: transitive
252 | description: flutter
253 | source: sdk
254 | version: "0.0.99"
255 | source_span:
256 | dependency: transitive
257 | description:
258 | name: source_span
259 | url: "https://pub.dartlang.org"
260 | source: hosted
261 | version: "1.8.1"
262 | stack_trace:
263 | dependency: transitive
264 | description:
265 | name: stack_trace
266 | url: "https://pub.dartlang.org"
267 | source: hosted
268 | version: "1.10.0"
269 | stream_channel:
270 | dependency: transitive
271 | description:
272 | name: stream_channel
273 | url: "https://pub.dartlang.org"
274 | source: hosted
275 | version: "2.1.0"
276 | string_scanner:
277 | dependency: transitive
278 | description:
279 | name: string_scanner
280 | url: "https://pub.dartlang.org"
281 | source: hosted
282 | version: "1.1.0"
283 | term_glyph:
284 | dependency: transitive
285 | description:
286 | name: term_glyph
287 | url: "https://pub.dartlang.org"
288 | source: hosted
289 | version: "1.2.0"
290 | test_api:
291 | dependency: transitive
292 | description:
293 | name: test_api
294 | url: "https://pub.dartlang.org"
295 | source: hosted
296 | version: "0.4.8"
297 | timeago:
298 | dependency: "direct main"
299 | description:
300 | name: timeago
301 | url: "https://pub.dartlang.org"
302 | source: hosted
303 | version: "3.1.0"
304 | typed_data:
305 | dependency: transitive
306 | description:
307 | name: typed_data
308 | url: "https://pub.dartlang.org"
309 | source: hosted
310 | version: "1.3.0"
311 | vector_math:
312 | dependency: transitive
313 | description:
314 | name: vector_math
315 | url: "https://pub.dartlang.org"
316 | source: hosted
317 | version: "2.1.1"
318 | xml:
319 | dependency: transitive
320 | description:
321 | name: xml
322 | url: "https://pub.dartlang.org"
323 | source: hosted
324 | version: "5.1.2"
325 | sdks:
326 | dart: ">=2.14.0 <3.0.0"
327 | flutter: ">=1.24.0-7.0"
328 |
--------------------------------------------------------------------------------
/lib/pages/register.dart:
--------------------------------------------------------------------------------
1 | import 'package:chat_firebase/services/auth.dart';
2 | import 'package:chat_firebase/theme/color.dart';
3 | import 'package:chat_firebase/utils/app_util.dart';
4 | import 'package:chat_firebase/widgets/custom_dialog.dart';
5 | import 'package:chat_firebase/widgets/custom_image.dart';
6 | import 'package:chat_firebase/widgets/custom_textfield.dart';
7 | import 'package:firebase_auth/firebase_auth.dart';
8 | import 'package:flutter/material.dart';
9 | import 'package:rounded_loading_button/rounded_loading_button.dart';
10 |
11 | class RegisterPage extends StatefulWidget {
12 | const RegisterPage({Key? key}) : super(key: key);
13 |
14 | @override
15 | _RegisterPageState createState() => _RegisterPageState();
16 | }
17 |
18 | class _RegisterPageState extends State {
19 | bool _hidedPwd = true;
20 | bool _hidenConfirmPwd = true;
21 | late AuthService service;
22 | late TextEditingController _nameController;
23 | late TextEditingController _emailController;
24 | late TextEditingController _passwordController;
25 | late TextEditingController _confrimPasswordController;
26 | late RoundedLoadingButtonController _registerBtnController;
27 |
28 | @override
29 | void initState() {
30 | service = AuthService(FirebaseAuth.instance);
31 | _nameController = TextEditingController();
32 | _emailController = TextEditingController();
33 | _passwordController = TextEditingController();
34 | _confrimPasswordController = TextEditingController();
35 | _registerBtnController = RoundedLoadingButtonController();
36 | super.initState();
37 | }
38 |
39 | @override
40 | void dispose() {
41 | _nameController.dispose();
42 | _emailController.dispose();
43 | _passwordController.dispose();
44 | _confrimPasswordController.dispose();
45 | super.dispose();
46 | }
47 |
48 | @override
49 | Widget build(BuildContext context) {
50 | bool keyboardIsOpen = MediaQuery.of(context).viewInsets.bottom != 0;
51 | return Scaffold(
52 | body: _buildBody(),
53 | floatingActionButton: Visibility(
54 | visible: !keyboardIsOpen,
55 | child: _buildLoginButton(),
56 | ),
57 | floatingActionButtonLocation:
58 | FloatingActionButtonLocation.miniCenterFloat,
59 | );
60 | }
61 |
62 | _buildBody() {
63 | return SingleChildScrollView(
64 | child: Container(
65 | padding: EdgeInsets.symmetric(horizontal: 20),
66 | height: MediaQuery.of(context).size.height,
67 | child: Column(
68 | mainAxisAlignment: MainAxisAlignment.center,
69 | mainAxisSize: MainAxisSize.max,
70 | children: [
71 | _buildLogo(),
72 | const SizedBox(
73 | height: 10,
74 | ),
75 | const Text(
76 | "Register",
77 | style: TextStyle(fontWeight: FontWeight.bold, fontSize: 40),
78 | ),
79 | const SizedBox(
80 | height: 40,
81 | ),
82 | _buildName(),
83 | const Divider(
84 | color: Colors.grey,
85 | height: 10,
86 | ),
87 | const SizedBox(
88 | height: 10,
89 | ),
90 | _buildEmail(),
91 | const Divider(
92 | color: Colors.grey,
93 | height: 10,
94 | ),
95 | const SizedBox(
96 | height: 10,
97 | ),
98 | _buildPassword(),
99 | const Divider(
100 | color: Colors.grey,
101 | height: 10,
102 | ),
103 | const SizedBox(
104 | height: 10,
105 | ),
106 | _buildConfirmPassword(),
107 | const Divider(
108 | color: Colors.grey,
109 | height: 10,
110 | ),
111 | const SizedBox(
112 | height: 30,
113 | ),
114 | _buildRegister(),
115 | ],
116 | ),
117 | ),
118 | );
119 | }
120 |
121 | Widget _buildName() {
122 | return CustomTextField(
123 | controller: _nameController,
124 | leadingIcon: Icon(
125 | Icons.person_outline,
126 | color: Colors.grey,
127 | ),
128 | hintText: "Name",
129 | );
130 | }
131 |
132 | Widget _buildEmail() {
133 | return CustomTextField(
134 | controller: _emailController,
135 | keyboardType: TextInputType.emailAddress,
136 | leadingIcon: Icon(
137 | Icons.email_outlined,
138 | color: Colors.grey,
139 | ),
140 | hintText: "Email",
141 | );
142 | }
143 |
144 | Widget _buildPassword() {
145 | return CustomTextField(
146 | controller: _passwordController,
147 | leadingIcon: Icon(
148 | Icons.lock_outline,
149 | color: Colors.grey,
150 | ),
151 | suffixIcon: GestureDetector(
152 | onTap: () {
153 | setState(() {
154 | _hidedPwd = !_hidedPwd;
155 | });
156 | },
157 | child: Icon(
158 | _hidedPwd ? Icons.visibility_off_outlined : Icons.visibility_outlined,
159 | color: Colors.grey,
160 | ),
161 | ),
162 | obscureText: _hidedPwd,
163 | hintText: "Password",
164 | );
165 | }
166 |
167 | Widget _buildConfirmPassword() {
168 | return CustomTextField(
169 | controller: _confrimPasswordController,
170 | leadingIcon: Icon(
171 | Icons.lock_outline,
172 | color: Colors.grey,
173 | ),
174 | suffixIcon: GestureDetector(
175 | onTap: () {
176 | setState(() {
177 | _hidenConfirmPwd = !_hidenConfirmPwd;
178 | });
179 | },
180 | child: Icon(
181 | _hidenConfirmPwd
182 | ? Icons.visibility_off_outlined
183 | : Icons.visibility_outlined,
184 | color: Colors.grey,
185 | ),
186 | ),
187 | obscureText: _hidenConfirmPwd,
188 | hintText: "Confirm Password",
189 | );
190 | }
191 |
192 | Widget _buildRegister() {
193 | return Row(
194 | children: [
195 | Expanded(
196 | child: RoundedLoadingButton(
197 | width: MediaQuery.of(context).size.width,
198 | color: AppColor.primary,
199 | controller: _registerBtnController,
200 | onPressed: _onRegister,
201 | child: const Text(
202 | "Register",
203 | style: TextStyle(
204 | color: Colors.white,
205 | fontWeight: FontWeight.bold,
206 | ),
207 | ),
208 | ),
209 | ),
210 | ],
211 | );
212 | }
213 |
214 | Widget _buildLogo() {
215 | return Container(
216 | padding: EdgeInsets.all(10),
217 | width: 150,
218 | height: 150,
219 | child: CustomImage(
220 | "https://cdn-icons-png.flaticon.com/512/3820/3820331.png",
221 | isSVG: false,
222 | bgColor: AppColor.appBgColor,
223 | radius: 5,
224 | ),
225 | );
226 | }
227 |
228 | Widget _buildLoginButton() {
229 | return Container(
230 | child: Row(
231 | mainAxisAlignment: MainAxisAlignment.start,
232 | children: [
233 | GestureDetector(
234 | onTap: () {
235 | Navigator.of(context).pop();
236 | },
237 | child: Container(
238 | width: 80,
239 | height: 40,
240 | alignment: Alignment.center,
241 | decoration: BoxDecoration(
242 | color: Theme.of(context).cardColor,
243 | borderRadius: BorderRadius.only(
244 | topRight: Radius.circular(20),
245 | bottomRight: Radius.circular(20),
246 | ),
247 | boxShadow: [
248 | BoxShadow(
249 | color: Theme.of(context).shadowColor.withOpacity(0.1),
250 | spreadRadius: 1,
251 | blurRadius: 2,
252 | offset: Offset(0, 2), // changes position of shadow
253 | ),
254 | ],
255 | ),
256 | child: Text(
257 | "Login",
258 | style: TextStyle(color: AppColor.primary),
259 | ),
260 | ),
261 | )
262 | ],
263 | ),
264 | );
265 | }
266 |
267 | Future _onRegister() async {
268 | FocusScope.of(context).unfocus();
269 | if (!validatePassword(
270 | _passwordController.text, _confrimPasswordController.text) ||
271 | !_validateForm(_nameController.text, _emailController.text,
272 | _passwordController.text, _confrimPasswordController.text)) {
273 | return;
274 | }
275 |
276 | var res = await service.registerWithEmailPassword(
277 | _nameController.text,
278 | _emailController.text,
279 | _passwordController.text,
280 | );
281 |
282 | if (res.status) {
283 | _registerBtnController.success();
284 | AppUtil.debugPrint("Success");
285 | Navigator.of(context).pop();
286 | } else {
287 | _registerBtnController.reset();
288 | showDialog(
289 | context: context,
290 | builder: (BuildContext context) {
291 | return CustomDialogBox(
292 | title: "Register",
293 | descriptions: res.message,
294 | );
295 | },
296 | );
297 | }
298 | }
299 |
300 | bool validatePassword(String pwd, String confPwd) {
301 | if (pwd != confPwd) {
302 | _registerBtnController.reset();
303 | showDialog(
304 | context: context,
305 | builder: (BuildContext context) {
306 | return CustomDialogBox(
307 | descriptions: "Password and Confirm Password are not matched.",
308 | );
309 | },
310 | );
311 | return false;
312 | }
313 | return true;
314 | }
315 |
316 | bool _validateForm(String name, String email, String pwd, String confirmPwd) {
317 | if (name.isEmpty || email.isEmpty || pwd.isEmpty || confirmPwd.isEmpty) {
318 | _registerBtnController.reset();
319 | showDialog(
320 | context: context,
321 | builder: (BuildContext context) {
322 | return CustomDialogBox(
323 | descriptions: "Please enter all required information.",
324 | );
325 | },
326 | );
327 | return false;
328 | }
329 | return true;
330 | }
331 | }
332 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - abseil/algorithm (0.20200225.0):
3 | - abseil/algorithm/algorithm (= 0.20200225.0)
4 | - abseil/algorithm/container (= 0.20200225.0)
5 | - abseil/algorithm/algorithm (0.20200225.0):
6 | - abseil/base/config
7 | - abseil/algorithm/container (0.20200225.0):
8 | - abseil/algorithm/algorithm
9 | - abseil/base/core_headers
10 | - abseil/meta/type_traits
11 | - abseil/base (0.20200225.0):
12 | - abseil/base/atomic_hook (= 0.20200225.0)
13 | - abseil/base/base (= 0.20200225.0)
14 | - abseil/base/base_internal (= 0.20200225.0)
15 | - abseil/base/bits (= 0.20200225.0)
16 | - abseil/base/config (= 0.20200225.0)
17 | - abseil/base/core_headers (= 0.20200225.0)
18 | - abseil/base/dynamic_annotations (= 0.20200225.0)
19 | - abseil/base/endian (= 0.20200225.0)
20 | - abseil/base/errno_saver (= 0.20200225.0)
21 | - abseil/base/exponential_biased (= 0.20200225.0)
22 | - abseil/base/log_severity (= 0.20200225.0)
23 | - abseil/base/malloc_internal (= 0.20200225.0)
24 | - abseil/base/periodic_sampler (= 0.20200225.0)
25 | - abseil/base/pretty_function (= 0.20200225.0)
26 | - abseil/base/raw_logging_internal (= 0.20200225.0)
27 | - abseil/base/spinlock_wait (= 0.20200225.0)
28 | - abseil/base/throw_delegate (= 0.20200225.0)
29 | - abseil/base/atomic_hook (0.20200225.0):
30 | - abseil/base/config
31 | - abseil/base/core_headers
32 | - abseil/base/base (0.20200225.0):
33 | - abseil/base/atomic_hook
34 | - abseil/base/base_internal
35 | - abseil/base/config
36 | - abseil/base/core_headers
37 | - abseil/base/dynamic_annotations
38 | - abseil/base/log_severity
39 | - abseil/base/raw_logging_internal
40 | - abseil/base/spinlock_wait
41 | - abseil/meta/type_traits
42 | - abseil/base/base_internal (0.20200225.0):
43 | - abseil/base/config
44 | - abseil/meta/type_traits
45 | - abseil/base/bits (0.20200225.0):
46 | - abseil/base/config
47 | - abseil/base/core_headers
48 | - abseil/base/config (0.20200225.0)
49 | - abseil/base/core_headers (0.20200225.0):
50 | - abseil/base/config
51 | - abseil/base/dynamic_annotations (0.20200225.0)
52 | - abseil/base/endian (0.20200225.0):
53 | - abseil/base/config
54 | - abseil/base/core_headers
55 | - abseil/base/errno_saver (0.20200225.0):
56 | - abseil/base/config
57 | - abseil/base/exponential_biased (0.20200225.0):
58 | - abseil/base/config
59 | - abseil/base/core_headers
60 | - abseil/base/log_severity (0.20200225.0):
61 | - abseil/base/config
62 | - abseil/base/core_headers
63 | - abseil/base/malloc_internal (0.20200225.0):
64 | - abseil/base/base
65 | - abseil/base/base_internal
66 | - abseil/base/config
67 | - abseil/base/core_headers
68 | - abseil/base/dynamic_annotations
69 | - abseil/base/raw_logging_internal
70 | - abseil/base/periodic_sampler (0.20200225.0):
71 | - abseil/base/core_headers
72 | - abseil/base/exponential_biased
73 | - abseil/base/pretty_function (0.20200225.0)
74 | - abseil/base/raw_logging_internal (0.20200225.0):
75 | - abseil/base/atomic_hook
76 | - abseil/base/config
77 | - abseil/base/core_headers
78 | - abseil/base/log_severity
79 | - abseil/base/spinlock_wait (0.20200225.0):
80 | - abseil/base/base_internal
81 | - abseil/base/core_headers
82 | - abseil/base/errno_saver
83 | - abseil/base/throw_delegate (0.20200225.0):
84 | - abseil/base/config
85 | - abseil/base/raw_logging_internal
86 | - abseil/container/common (0.20200225.0):
87 | - abseil/meta/type_traits
88 | - abseil/types/optional
89 | - abseil/container/compressed_tuple (0.20200225.0):
90 | - abseil/utility/utility
91 | - abseil/container/container_memory (0.20200225.0):
92 | - abseil/memory/memory
93 | - abseil/utility/utility
94 | - abseil/container/fixed_array (0.20200225.0):
95 | - abseil/algorithm/algorithm
96 | - abseil/base/core_headers
97 | - abseil/base/dynamic_annotations
98 | - abseil/base/throw_delegate
99 | - abseil/container/compressed_tuple
100 | - abseil/memory/memory
101 | - abseil/container/flat_hash_map (0.20200225.0):
102 | - abseil/algorithm/container
103 | - abseil/container/container_memory
104 | - abseil/container/hash_function_defaults
105 | - abseil/container/raw_hash_map
106 | - abseil/memory/memory
107 | - abseil/container/hash_function_defaults (0.20200225.0):
108 | - abseil/base/config
109 | - abseil/hash/hash
110 | - abseil/strings/strings
111 | - abseil/container/hash_policy_traits (0.20200225.0):
112 | - abseil/meta/type_traits
113 | - abseil/container/hashtable_debug_hooks (0.20200225.0):
114 | - abseil/base/config
115 | - abseil/container/hashtablez_sampler (0.20200225.0):
116 | - abseil/base/base
117 | - abseil/base/core_headers
118 | - abseil/base/exponential_biased
119 | - abseil/container/have_sse
120 | - abseil/debugging/stacktrace
121 | - abseil/memory/memory
122 | - abseil/synchronization/synchronization
123 | - abseil/utility/utility
124 | - abseil/container/have_sse (0.20200225.0)
125 | - abseil/container/inlined_vector (0.20200225.0):
126 | - abseil/algorithm/algorithm
127 | - abseil/base/core_headers
128 | - abseil/base/throw_delegate
129 | - abseil/container/inlined_vector_internal
130 | - abseil/memory/memory
131 | - abseil/container/inlined_vector_internal (0.20200225.0):
132 | - abseil/base/core_headers
133 | - abseil/container/compressed_tuple
134 | - abseil/memory/memory
135 | - abseil/meta/type_traits
136 | - abseil/types/span
137 | - abseil/container/layout (0.20200225.0):
138 | - abseil/base/core_headers
139 | - abseil/meta/type_traits
140 | - abseil/strings/strings
141 | - abseil/types/span
142 | - abseil/utility/utility
143 | - abseil/container/raw_hash_map (0.20200225.0):
144 | - abseil/base/throw_delegate
145 | - abseil/container/container_memory
146 | - abseil/container/raw_hash_set
147 | - abseil/container/raw_hash_set (0.20200225.0):
148 | - abseil/base/bits
149 | - abseil/base/config
150 | - abseil/base/core_headers
151 | - abseil/base/endian
152 | - abseil/container/common
153 | - abseil/container/compressed_tuple
154 | - abseil/container/container_memory
155 | - abseil/container/hash_policy_traits
156 | - abseil/container/hashtable_debug_hooks
157 | - abseil/container/hashtablez_sampler
158 | - abseil/container/have_sse
159 | - abseil/container/layout
160 | - abseil/memory/memory
161 | - abseil/meta/type_traits
162 | - abseil/utility/utility
163 | - abseil/debugging/debugging_internal (0.20200225.0):
164 | - abseil/base/config
165 | - abseil/base/core_headers
166 | - abseil/base/dynamic_annotations
167 | - abseil/base/errno_saver
168 | - abseil/base/raw_logging_internal
169 | - abseil/debugging/demangle_internal (0.20200225.0):
170 | - abseil/base/base
171 | - abseil/base/config
172 | - abseil/base/core_headers
173 | - abseil/debugging/stacktrace (0.20200225.0):
174 | - abseil/base/config
175 | - abseil/base/core_headers
176 | - abseil/debugging/debugging_internal
177 | - abseil/debugging/symbolize (0.20200225.0):
178 | - abseil/base/base
179 | - abseil/base/config
180 | - abseil/base/core_headers
181 | - abseil/base/dynamic_annotations
182 | - abseil/base/malloc_internal
183 | - abseil/base/raw_logging_internal
184 | - abseil/debugging/debugging_internal
185 | - abseil/debugging/demangle_internal
186 | - abseil/hash/city (0.20200225.0):
187 | - abseil/base/config
188 | - abseil/base/core_headers
189 | - abseil/base/endian
190 | - abseil/hash/hash (0.20200225.0):
191 | - abseil/base/core_headers
192 | - abseil/base/endian
193 | - abseil/container/fixed_array
194 | - abseil/hash/city
195 | - abseil/meta/type_traits
196 | - abseil/numeric/int128
197 | - abseil/strings/strings
198 | - abseil/types/optional
199 | - abseil/types/variant
200 | - abseil/utility/utility
201 | - abseil/memory (0.20200225.0):
202 | - abseil/memory/memory (= 0.20200225.0)
203 | - abseil/memory/memory (0.20200225.0):
204 | - abseil/base/core_headers
205 | - abseil/meta/type_traits
206 | - abseil/meta (0.20200225.0):
207 | - abseil/meta/type_traits (= 0.20200225.0)
208 | - abseil/meta/type_traits (0.20200225.0):
209 | - abseil/base/config
210 | - abseil/numeric/int128 (0.20200225.0):
211 | - abseil/base/config
212 | - abseil/base/core_headers
213 | - abseil/strings/internal (0.20200225.0):
214 | - abseil/base/config
215 | - abseil/base/core_headers
216 | - abseil/base/endian
217 | - abseil/base/raw_logging_internal
218 | - abseil/meta/type_traits
219 | - abseil/strings/str_format (0.20200225.0):
220 | - abseil/strings/str_format_internal
221 | - abseil/strings/str_format_internal (0.20200225.0):
222 | - abseil/base/config
223 | - abseil/base/core_headers
224 | - abseil/meta/type_traits
225 | - abseil/numeric/int128
226 | - abseil/strings/strings
227 | - abseil/types/span
228 | - abseil/strings/strings (0.20200225.0):
229 | - abseil/base/base
230 | - abseil/base/bits
231 | - abseil/base/config
232 | - abseil/base/core_headers
233 | - abseil/base/endian
234 | - abseil/base/raw_logging_internal
235 | - abseil/base/throw_delegate
236 | - abseil/memory/memory
237 | - abseil/meta/type_traits
238 | - abseil/numeric/int128
239 | - abseil/strings/internal
240 | - abseil/synchronization/graphcycles_internal (0.20200225.0):
241 | - abseil/base/base
242 | - abseil/base/base_internal
243 | - abseil/base/config
244 | - abseil/base/core_headers
245 | - abseil/base/malloc_internal
246 | - abseil/base/raw_logging_internal
247 | - abseil/synchronization/kernel_timeout_internal (0.20200225.0):
248 | - abseil/base/core_headers
249 | - abseil/base/raw_logging_internal
250 | - abseil/time/time
251 | - abseil/synchronization/synchronization (0.20200225.0):
252 | - abseil/base/atomic_hook
253 | - abseil/base/base
254 | - abseil/base/base_internal
255 | - abseil/base/config
256 | - abseil/base/core_headers
257 | - abseil/base/dynamic_annotations
258 | - abseil/base/malloc_internal
259 | - abseil/base/raw_logging_internal
260 | - abseil/debugging/stacktrace
261 | - abseil/debugging/symbolize
262 | - abseil/synchronization/graphcycles_internal
263 | - abseil/synchronization/kernel_timeout_internal
264 | - abseil/time/time
265 | - abseil/time (0.20200225.0):
266 | - abseil/time/internal (= 0.20200225.0)
267 | - abseil/time/time (= 0.20200225.0)
268 | - abseil/time/internal (0.20200225.0):
269 | - abseil/time/internal/cctz (= 0.20200225.0)
270 | - abseil/time/internal/cctz (0.20200225.0):
271 | - abseil/time/internal/cctz/civil_time (= 0.20200225.0)
272 | - abseil/time/internal/cctz/time_zone (= 0.20200225.0)
273 | - abseil/time/internal/cctz/civil_time (0.20200225.0):
274 | - abseil/base/config
275 | - abseil/time/internal/cctz/time_zone (0.20200225.0):
276 | - abseil/base/config
277 | - abseil/time/internal/cctz/civil_time
278 | - abseil/time/time (0.20200225.0):
279 | - abseil/base/base
280 | - abseil/base/core_headers
281 | - abseil/base/raw_logging_internal
282 | - abseil/numeric/int128
283 | - abseil/strings/strings
284 | - abseil/time/internal/cctz/civil_time
285 | - abseil/time/internal/cctz/time_zone
286 | - abseil/types (0.20200225.0):
287 | - abseil/types/any (= 0.20200225.0)
288 | - abseil/types/bad_any_cast (= 0.20200225.0)
289 | - abseil/types/bad_any_cast_impl (= 0.20200225.0)
290 | - abseil/types/bad_optional_access (= 0.20200225.0)
291 | - abseil/types/bad_variant_access (= 0.20200225.0)
292 | - abseil/types/compare (= 0.20200225.0)
293 | - abseil/types/optional (= 0.20200225.0)
294 | - abseil/types/span (= 0.20200225.0)
295 | - abseil/types/variant (= 0.20200225.0)
296 | - abseil/types/any (0.20200225.0):
297 | - abseil/base/config
298 | - abseil/base/core_headers
299 | - abseil/meta/type_traits
300 | - abseil/types/bad_any_cast
301 | - abseil/utility/utility
302 | - abseil/types/bad_any_cast (0.20200225.0):
303 | - abseil/base/config
304 | - abseil/types/bad_any_cast_impl
305 | - abseil/types/bad_any_cast_impl (0.20200225.0):
306 | - abseil/base/config
307 | - abseil/base/raw_logging_internal
308 | - abseil/types/bad_optional_access (0.20200225.0):
309 | - abseil/base/config
310 | - abseil/base/raw_logging_internal
311 | - abseil/types/bad_variant_access (0.20200225.0):
312 | - abseil/base/config
313 | - abseil/base/raw_logging_internal
314 | - abseil/types/compare (0.20200225.0):
315 | - abseil/base/core_headers
316 | - abseil/meta/type_traits
317 | - abseil/types/optional (0.20200225.0):
318 | - abseil/base/base_internal
319 | - abseil/base/config
320 | - abseil/base/core_headers
321 | - abseil/memory/memory
322 | - abseil/meta/type_traits
323 | - abseil/types/bad_optional_access
324 | - abseil/utility/utility
325 | - abseil/types/span (0.20200225.0):
326 | - abseil/algorithm/algorithm
327 | - abseil/base/core_headers
328 | - abseil/base/throw_delegate
329 | - abseil/meta/type_traits
330 | - abseil/types/variant (0.20200225.0):
331 | - abseil/base/base_internal
332 | - abseil/base/config
333 | - abseil/base/core_headers
334 | - abseil/meta/type_traits
335 | - abseil/types/bad_variant_access
336 | - abseil/utility/utility
337 | - abseil/utility/utility (0.20200225.0):
338 | - abseil/base/base_internal
339 | - abseil/base/config
340 | - abseil/meta/type_traits
341 | - BoringSSL-GRPC (0.0.7):
342 | - BoringSSL-GRPC/Implementation (= 0.0.7)
343 | - BoringSSL-GRPC/Interface (= 0.0.7)
344 | - BoringSSL-GRPC/Implementation (0.0.7):
345 | - BoringSSL-GRPC/Interface (= 0.0.7)
346 | - BoringSSL-GRPC/Interface (0.0.7)
347 | - cloud_firestore (2.5.4):
348 | - Firebase/Firestore (= 8.9.0)
349 | - firebase_core
350 | - Flutter
351 | - Firebase/Auth (8.9.0):
352 | - Firebase/CoreOnly
353 | - FirebaseAuth (~> 8.9.0)
354 | - Firebase/CoreOnly (8.9.0):
355 | - FirebaseCore (= 8.9.0)
356 | - Firebase/Firestore (8.9.0):
357 | - Firebase/CoreOnly
358 | - FirebaseFirestore (~> 8.9.0)
359 | - firebase_auth (3.3.4):
360 | - Firebase/Auth (= 8.9.0)
361 | - firebase_core
362 | - Flutter
363 | - firebase_core (1.10.6):
364 | - Firebase/CoreOnly (= 8.9.0)
365 | - Flutter
366 | - FirebaseAuth (8.9.0):
367 | - FirebaseCore (~> 8.0)
368 | - GoogleUtilities/AppDelegateSwizzler (~> 7.6)
369 | - GoogleUtilities/Environment (~> 7.6)
370 | - GTMSessionFetcher/Core (~> 1.5)
371 | - FirebaseCore (8.9.0):
372 | - FirebaseCoreDiagnostics (~> 8.0)
373 | - GoogleUtilities/Environment (~> 7.6)
374 | - GoogleUtilities/Logger (~> 7.6)
375 | - FirebaseCoreDiagnostics (8.10.0):
376 | - GoogleDataTransport (~> 9.1)
377 | - GoogleUtilities/Environment (~> 7.6)
378 | - GoogleUtilities/Logger (~> 7.6)
379 | - nanopb (~> 2.30908.0)
380 | - FirebaseFirestore (8.9.1):
381 | - abseil/algorithm (= 0.20200225.0)
382 | - abseil/base (= 0.20200225.0)
383 | - abseil/container/flat_hash_map (= 0.20200225.0)
384 | - abseil/memory (= 0.20200225.0)
385 | - abseil/meta (= 0.20200225.0)
386 | - abseil/strings/strings (= 0.20200225.0)
387 | - abseil/time (= 0.20200225.0)
388 | - abseil/types (= 0.20200225.0)
389 | - FirebaseCore (~> 8.0)
390 | - "gRPC-C++ (~> 1.28.0)"
391 | - leveldb-library (~> 1.22)
392 | - nanopb (~> 2.30908.0)
393 | - Flutter (1.0.0)
394 | - GoogleDataTransport (9.1.2):
395 | - GoogleUtilities/Environment (~> 7.2)
396 | - nanopb (~> 2.30908.0)
397 | - PromisesObjC (< 3.0, >= 1.2)
398 | - GoogleUtilities/AppDelegateSwizzler (7.6.0):
399 | - GoogleUtilities/Environment
400 | - GoogleUtilities/Logger
401 | - GoogleUtilities/Network
402 | - GoogleUtilities/Environment (7.6.0):
403 | - PromisesObjC (< 3.0, >= 1.2)
404 | - GoogleUtilities/Logger (7.6.0):
405 | - GoogleUtilities/Environment
406 | - GoogleUtilities/Network (7.6.0):
407 | - GoogleUtilities/Logger
408 | - "GoogleUtilities/NSData+zlib"
409 | - GoogleUtilities/Reachability
410 | - "GoogleUtilities/NSData+zlib (7.6.0)"
411 | - GoogleUtilities/Reachability (7.6.0):
412 | - GoogleUtilities/Logger
413 | - "gRPC-C++ (1.28.2)":
414 | - "gRPC-C++/Implementation (= 1.28.2)"
415 | - "gRPC-C++/Interface (= 1.28.2)"
416 | - "gRPC-C++/Implementation (1.28.2)":
417 | - abseil/container/inlined_vector (= 0.20200225.0)
418 | - abseil/memory/memory (= 0.20200225.0)
419 | - abseil/strings/str_format (= 0.20200225.0)
420 | - abseil/strings/strings (= 0.20200225.0)
421 | - abseil/types/optional (= 0.20200225.0)
422 | - "gRPC-C++/Interface (= 1.28.2)"
423 | - gRPC-Core (= 1.28.2)
424 | - "gRPC-C++/Interface (1.28.2)"
425 | - gRPC-Core (1.28.2):
426 | - gRPC-Core/Implementation (= 1.28.2)
427 | - gRPC-Core/Interface (= 1.28.2)
428 | - gRPC-Core/Implementation (1.28.2):
429 | - abseil/container/inlined_vector (= 0.20200225.0)
430 | - abseil/memory/memory (= 0.20200225.0)
431 | - abseil/strings/str_format (= 0.20200225.0)
432 | - abseil/strings/strings (= 0.20200225.0)
433 | - abseil/types/optional (= 0.20200225.0)
434 | - BoringSSL-GRPC (= 0.0.7)
435 | - gRPC-Core/Interface (= 1.28.2)
436 | - gRPC-Core/Interface (1.28.2)
437 | - GTMSessionFetcher/Core (1.7.0)
438 | - leveldb-library (1.22.1)
439 | - nanopb (2.30908.0):
440 | - nanopb/decode (= 2.30908.0)
441 | - nanopb/encode (= 2.30908.0)
442 | - nanopb/decode (2.30908.0)
443 | - nanopb/encode (2.30908.0)
444 | - PromisesObjC (2.0.0)
445 |
446 | DEPENDENCIES:
447 | - cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)
448 | - firebase_auth (from `.symlinks/plugins/firebase_auth/ios`)
449 | - firebase_core (from `.symlinks/plugins/firebase_core/ios`)
450 | - Flutter (from `Flutter`)
451 |
452 | SPEC REPOS:
453 | trunk:
454 | - abseil
455 | - BoringSSL-GRPC
456 | - Firebase
457 | - FirebaseAuth
458 | - FirebaseCore
459 | - FirebaseCoreDiagnostics
460 | - FirebaseFirestore
461 | - GoogleDataTransport
462 | - GoogleUtilities
463 | - "gRPC-C++"
464 | - gRPC-Core
465 | - GTMSessionFetcher
466 | - leveldb-library
467 | - nanopb
468 | - PromisesObjC
469 |
470 | EXTERNAL SOURCES:
471 | cloud_firestore:
472 | :path: ".symlinks/plugins/cloud_firestore/ios"
473 | firebase_auth:
474 | :path: ".symlinks/plugins/firebase_auth/ios"
475 | firebase_core:
476 | :path: ".symlinks/plugins/firebase_core/ios"
477 | Flutter:
478 | :path: Flutter
479 |
480 | SPEC CHECKSUMS:
481 | abseil: 6c8eb7892aefa08d929b39f9bb108e5367e3228f
482 | BoringSSL-GRPC: 8edf627ee524575e2f8d19d56f068b448eea3879
483 | cloud_firestore: 0c744725c0d1544d77db2c8eb35ef919cb19a176
484 | Firebase: 13d8d96499e2635428d5bf0ec675df21f95d9a95
485 | firebase_auth: e875a50b81aefb20f305dfede425647e9675c19e
486 | firebase_core: c263d7daf1dc92fcd9895e6abdc04872b0ee07ff
487 | FirebaseAuth: 2b78b2a32c07b3ecfa4970bdf1d3632b8304099b
488 | FirebaseCore: 599ee609343eaf4941bd188f85e3aa077ffe325b
489 | FirebaseCoreDiagnostics: 56fb7216d87e0e6ec2feddefa9d8a392fe8b2c18
490 | FirebaseFirestore: 15ae9648476436efed698a909e44c4737498f9b4
491 | Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c
492 | GoogleDataTransport: 629c20a4d363167143f30ea78320d5a7eb8bd940
493 | GoogleUtilities: 684ee790a24f73ebb2d1d966e9711c203f2a4237
494 | "gRPC-C++": 13d8ccef97d5c3c441b7e3c529ef28ebee86fad2
495 | gRPC-Core: 4afa11bfbedf7cdecd04de535a9e046893404ed5
496 | GTMSessionFetcher: 43748f93435c2aa068b1cbe39655aaf600652e91
497 | leveldb-library: 50c7b45cbd7bf543c81a468fe557a16ae3db8729
498 | nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96
499 | PromisesObjC: 68159ce6952d93e17b2dfe273b8c40907db5ba58
500 |
501 | PODFILE CHECKSUM: fe0e1ee7f3d1f7d00b11b474b62dd62134535aea
502 |
503 | COCOAPODS: 1.10.1
504 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 26F09613B22751F16105C909 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9DC8E033AE77190A1C608A43 /* Pods_Runner.framework */; };
12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
13 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
14 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
15 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
16 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
17 | EFB35DFE2773144B0076DDF6 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = EFB35DFD2773144B0076DDF6 /* GoogleService-Info.plist */; };
18 | /* End PBXBuildFile section */
19 |
20 | /* Begin PBXCopyFilesBuildPhase section */
21 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
22 | isa = PBXCopyFilesBuildPhase;
23 | buildActionMask = 2147483647;
24 | dstPath = "";
25 | dstSubfolderSpec = 10;
26 | files = (
27 | );
28 | name = "Embed Frameworks";
29 | runOnlyForDeploymentPostprocessing = 0;
30 | };
31 | /* End PBXCopyFilesBuildPhase section */
32 |
33 | /* Begin PBXFileReference section */
34 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
35 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
36 | 3279A6CDAD62B8DF9B8744DD /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
37 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
38 | 5577EAED9D6FBC3B2ECDAAA6 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
39 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
40 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
41 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
42 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
43 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
44 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
45 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
46 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
47 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
48 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
49 | 9DC8E033AE77190A1C608A43 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
50 | E3505FC62E5F8B7E37C4517C /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
51 | EFB35DFD2773144B0076DDF6 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; };
52 | /* End PBXFileReference section */
53 |
54 | /* Begin PBXFrameworksBuildPhase section */
55 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
56 | isa = PBXFrameworksBuildPhase;
57 | buildActionMask = 2147483647;
58 | files = (
59 | 26F09613B22751F16105C909 /* Pods_Runner.framework in Frameworks */,
60 | );
61 | runOnlyForDeploymentPostprocessing = 0;
62 | };
63 | /* End PBXFrameworksBuildPhase section */
64 |
65 | /* Begin PBXGroup section */
66 | 6A60428BDCF4A44D11114EE4 /* Frameworks */ = {
67 | isa = PBXGroup;
68 | children = (
69 | 9DC8E033AE77190A1C608A43 /* Pods_Runner.framework */,
70 | );
71 | name = Frameworks;
72 | sourceTree = "";
73 | };
74 | 7379067B559A3823312843DF /* Pods */ = {
75 | isa = PBXGroup;
76 | children = (
77 | 3279A6CDAD62B8DF9B8744DD /* Pods-Runner.debug.xcconfig */,
78 | 5577EAED9D6FBC3B2ECDAAA6 /* Pods-Runner.release.xcconfig */,
79 | E3505FC62E5F8B7E37C4517C /* Pods-Runner.profile.xcconfig */,
80 | );
81 | name = Pods;
82 | path = Pods;
83 | sourceTree = "";
84 | };
85 | 9740EEB11CF90186004384FC /* Flutter */ = {
86 | isa = PBXGroup;
87 | children = (
88 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
89 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
90 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
91 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
92 | );
93 | name = Flutter;
94 | sourceTree = "";
95 | };
96 | 97C146E51CF9000F007C117D = {
97 | isa = PBXGroup;
98 | children = (
99 | 9740EEB11CF90186004384FC /* Flutter */,
100 | 97C146F01CF9000F007C117D /* Runner */,
101 | 97C146EF1CF9000F007C117D /* Products */,
102 | 7379067B559A3823312843DF /* Pods */,
103 | 6A60428BDCF4A44D11114EE4 /* Frameworks */,
104 | );
105 | sourceTree = "";
106 | };
107 | 97C146EF1CF9000F007C117D /* Products */ = {
108 | isa = PBXGroup;
109 | children = (
110 | 97C146EE1CF9000F007C117D /* Runner.app */,
111 | );
112 | name = Products;
113 | sourceTree = "";
114 | };
115 | 97C146F01CF9000F007C117D /* Runner */ = {
116 | isa = PBXGroup;
117 | children = (
118 | EFB35DFD2773144B0076DDF6 /* GoogleService-Info.plist */,
119 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
120 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
121 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
122 | 97C147021CF9000F007C117D /* Info.plist */,
123 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
124 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
125 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
126 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
127 | );
128 | path = Runner;
129 | sourceTree = "";
130 | };
131 | /* End PBXGroup section */
132 |
133 | /* Begin PBXNativeTarget section */
134 | 97C146ED1CF9000F007C117D /* Runner */ = {
135 | isa = PBXNativeTarget;
136 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
137 | buildPhases = (
138 | C617F10770EC3B169F1B9265 /* [CP] Check Pods Manifest.lock */,
139 | 9740EEB61CF901F6004384FC /* Run Script */,
140 | 97C146EA1CF9000F007C117D /* Sources */,
141 | 97C146EB1CF9000F007C117D /* Frameworks */,
142 | 97C146EC1CF9000F007C117D /* Resources */,
143 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
144 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
145 | 2A1D19B4B4B7834CF33A2C05 /* [CP] Embed Pods Frameworks */,
146 | );
147 | buildRules = (
148 | );
149 | dependencies = (
150 | );
151 | name = Runner;
152 | productName = Runner;
153 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
154 | productType = "com.apple.product-type.application";
155 | };
156 | /* End PBXNativeTarget section */
157 |
158 | /* Begin PBXProject section */
159 | 97C146E61CF9000F007C117D /* Project object */ = {
160 | isa = PBXProject;
161 | attributes = {
162 | LastUpgradeCheck = 1020;
163 | ORGANIZATIONNAME = "";
164 | TargetAttributes = {
165 | 97C146ED1CF9000F007C117D = {
166 | CreatedOnToolsVersion = 7.3.1;
167 | LastSwiftMigration = 1100;
168 | };
169 | };
170 | };
171 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
172 | compatibilityVersion = "Xcode 9.3";
173 | developmentRegion = en;
174 | hasScannedForEncodings = 0;
175 | knownRegions = (
176 | en,
177 | Base,
178 | );
179 | mainGroup = 97C146E51CF9000F007C117D;
180 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
181 | projectDirPath = "";
182 | projectRoot = "";
183 | targets = (
184 | 97C146ED1CF9000F007C117D /* Runner */,
185 | );
186 | };
187 | /* End PBXProject section */
188 |
189 | /* Begin PBXResourcesBuildPhase section */
190 | 97C146EC1CF9000F007C117D /* Resources */ = {
191 | isa = PBXResourcesBuildPhase;
192 | buildActionMask = 2147483647;
193 | files = (
194 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
195 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
196 | EFB35DFE2773144B0076DDF6 /* GoogleService-Info.plist in Resources */,
197 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
198 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
199 | );
200 | runOnlyForDeploymentPostprocessing = 0;
201 | };
202 | /* End PBXResourcesBuildPhase section */
203 |
204 | /* Begin PBXShellScriptBuildPhase section */
205 | 2A1D19B4B4B7834CF33A2C05 /* [CP] Embed Pods Frameworks */ = {
206 | isa = PBXShellScriptBuildPhase;
207 | buildActionMask = 2147483647;
208 | files = (
209 | );
210 | inputFileListPaths = (
211 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
212 | );
213 | name = "[CP] Embed Pods Frameworks";
214 | outputFileListPaths = (
215 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
216 | );
217 | runOnlyForDeploymentPostprocessing = 0;
218 | shellPath = /bin/sh;
219 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
220 | showEnvVarsInLog = 0;
221 | };
222 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
223 | isa = PBXShellScriptBuildPhase;
224 | buildActionMask = 2147483647;
225 | files = (
226 | );
227 | inputPaths = (
228 | );
229 | name = "Thin Binary";
230 | outputPaths = (
231 | );
232 | runOnlyForDeploymentPostprocessing = 0;
233 | shellPath = /bin/sh;
234 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
235 | };
236 | 9740EEB61CF901F6004384FC /* Run Script */ = {
237 | isa = PBXShellScriptBuildPhase;
238 | buildActionMask = 2147483647;
239 | files = (
240 | );
241 | inputPaths = (
242 | );
243 | name = "Run Script";
244 | outputPaths = (
245 | );
246 | runOnlyForDeploymentPostprocessing = 0;
247 | shellPath = /bin/sh;
248 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
249 | };
250 | C617F10770EC3B169F1B9265 /* [CP] Check Pods Manifest.lock */ = {
251 | isa = PBXShellScriptBuildPhase;
252 | buildActionMask = 2147483647;
253 | files = (
254 | );
255 | inputFileListPaths = (
256 | );
257 | inputPaths = (
258 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
259 | "${PODS_ROOT}/Manifest.lock",
260 | );
261 | name = "[CP] Check Pods Manifest.lock";
262 | outputFileListPaths = (
263 | );
264 | outputPaths = (
265 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
266 | );
267 | runOnlyForDeploymentPostprocessing = 0;
268 | shellPath = /bin/sh;
269 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
270 | showEnvVarsInLog = 0;
271 | };
272 | /* End PBXShellScriptBuildPhase section */
273 |
274 | /* Begin PBXSourcesBuildPhase section */
275 | 97C146EA1CF9000F007C117D /* Sources */ = {
276 | isa = PBXSourcesBuildPhase;
277 | buildActionMask = 2147483647;
278 | files = (
279 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
280 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
281 | );
282 | runOnlyForDeploymentPostprocessing = 0;
283 | };
284 | /* End PBXSourcesBuildPhase section */
285 |
286 | /* Begin PBXVariantGroup section */
287 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
288 | isa = PBXVariantGroup;
289 | children = (
290 | 97C146FB1CF9000F007C117D /* Base */,
291 | );
292 | name = Main.storyboard;
293 | sourceTree = "";
294 | };
295 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
296 | isa = PBXVariantGroup;
297 | children = (
298 | 97C147001CF9000F007C117D /* Base */,
299 | );
300 | name = LaunchScreen.storyboard;
301 | sourceTree = "";
302 | };
303 | /* End PBXVariantGroup section */
304 |
305 | /* Begin XCBuildConfiguration section */
306 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
307 | isa = XCBuildConfiguration;
308 | buildSettings = {
309 | ALWAYS_SEARCH_USER_PATHS = NO;
310 | CLANG_ANALYZER_NONNULL = YES;
311 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
312 | CLANG_CXX_LIBRARY = "libc++";
313 | CLANG_ENABLE_MODULES = YES;
314 | CLANG_ENABLE_OBJC_ARC = YES;
315 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
316 | CLANG_WARN_BOOL_CONVERSION = YES;
317 | CLANG_WARN_COMMA = YES;
318 | CLANG_WARN_CONSTANT_CONVERSION = YES;
319 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
320 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
321 | CLANG_WARN_EMPTY_BODY = YES;
322 | CLANG_WARN_ENUM_CONVERSION = YES;
323 | CLANG_WARN_INFINITE_RECURSION = YES;
324 | CLANG_WARN_INT_CONVERSION = YES;
325 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
326 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
327 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
328 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
329 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
330 | CLANG_WARN_STRICT_PROTOTYPES = YES;
331 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
332 | CLANG_WARN_UNREACHABLE_CODE = YES;
333 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
334 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
335 | COPY_PHASE_STRIP = NO;
336 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
337 | ENABLE_NS_ASSERTIONS = NO;
338 | ENABLE_STRICT_OBJC_MSGSEND = YES;
339 | GCC_C_LANGUAGE_STANDARD = gnu99;
340 | GCC_NO_COMMON_BLOCKS = YES;
341 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
342 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
343 | GCC_WARN_UNDECLARED_SELECTOR = YES;
344 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
345 | GCC_WARN_UNUSED_FUNCTION = YES;
346 | GCC_WARN_UNUSED_VARIABLE = YES;
347 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
348 | MTL_ENABLE_DEBUG_INFO = NO;
349 | SDKROOT = iphoneos;
350 | SUPPORTED_PLATFORMS = iphoneos;
351 | TARGETED_DEVICE_FAMILY = "1,2";
352 | VALIDATE_PRODUCT = YES;
353 | };
354 | name = Profile;
355 | };
356 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
357 | isa = XCBuildConfiguration;
358 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
359 | buildSettings = {
360 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
361 | CLANG_ENABLE_MODULES = YES;
362 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
363 | ENABLE_BITCODE = NO;
364 | INFOPLIST_FILE = Runner/Info.plist;
365 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
366 | LD_RUNPATH_SEARCH_PATHS = (
367 | "$(inherited)",
368 | "@executable_path/Frameworks",
369 | );
370 | PRODUCT_BUNDLE_IDENTIFIER = com.sangvaleap.firebasechat;
371 | PRODUCT_NAME = "$(TARGET_NAME)";
372 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
373 | SWIFT_VERSION = 5.0;
374 | VERSIONING_SYSTEM = "apple-generic";
375 | };
376 | name = Profile;
377 | };
378 | 97C147031CF9000F007C117D /* Debug */ = {
379 | isa = XCBuildConfiguration;
380 | buildSettings = {
381 | ALWAYS_SEARCH_USER_PATHS = NO;
382 | CLANG_ANALYZER_NONNULL = YES;
383 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
384 | CLANG_CXX_LIBRARY = "libc++";
385 | CLANG_ENABLE_MODULES = YES;
386 | CLANG_ENABLE_OBJC_ARC = YES;
387 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
388 | CLANG_WARN_BOOL_CONVERSION = YES;
389 | CLANG_WARN_COMMA = YES;
390 | CLANG_WARN_CONSTANT_CONVERSION = YES;
391 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
392 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
393 | CLANG_WARN_EMPTY_BODY = YES;
394 | CLANG_WARN_ENUM_CONVERSION = YES;
395 | CLANG_WARN_INFINITE_RECURSION = YES;
396 | CLANG_WARN_INT_CONVERSION = YES;
397 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
398 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
399 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
400 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
401 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
402 | CLANG_WARN_STRICT_PROTOTYPES = YES;
403 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
404 | CLANG_WARN_UNREACHABLE_CODE = YES;
405 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
406 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
407 | COPY_PHASE_STRIP = NO;
408 | DEBUG_INFORMATION_FORMAT = dwarf;
409 | ENABLE_STRICT_OBJC_MSGSEND = YES;
410 | ENABLE_TESTABILITY = YES;
411 | GCC_C_LANGUAGE_STANDARD = gnu99;
412 | GCC_DYNAMIC_NO_PIC = NO;
413 | GCC_NO_COMMON_BLOCKS = YES;
414 | GCC_OPTIMIZATION_LEVEL = 0;
415 | GCC_PREPROCESSOR_DEFINITIONS = (
416 | "DEBUG=1",
417 | "$(inherited)",
418 | );
419 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
420 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
421 | GCC_WARN_UNDECLARED_SELECTOR = YES;
422 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
423 | GCC_WARN_UNUSED_FUNCTION = YES;
424 | GCC_WARN_UNUSED_VARIABLE = YES;
425 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
426 | MTL_ENABLE_DEBUG_INFO = YES;
427 | ONLY_ACTIVE_ARCH = YES;
428 | SDKROOT = iphoneos;
429 | TARGETED_DEVICE_FAMILY = "1,2";
430 | };
431 | name = Debug;
432 | };
433 | 97C147041CF9000F007C117D /* Release */ = {
434 | isa = XCBuildConfiguration;
435 | buildSettings = {
436 | ALWAYS_SEARCH_USER_PATHS = NO;
437 | CLANG_ANALYZER_NONNULL = YES;
438 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
439 | CLANG_CXX_LIBRARY = "libc++";
440 | CLANG_ENABLE_MODULES = YES;
441 | CLANG_ENABLE_OBJC_ARC = YES;
442 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
443 | CLANG_WARN_BOOL_CONVERSION = YES;
444 | CLANG_WARN_COMMA = YES;
445 | CLANG_WARN_CONSTANT_CONVERSION = YES;
446 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
447 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
448 | CLANG_WARN_EMPTY_BODY = YES;
449 | CLANG_WARN_ENUM_CONVERSION = YES;
450 | CLANG_WARN_INFINITE_RECURSION = YES;
451 | CLANG_WARN_INT_CONVERSION = YES;
452 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
453 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
454 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
455 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
456 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
457 | CLANG_WARN_STRICT_PROTOTYPES = YES;
458 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
459 | CLANG_WARN_UNREACHABLE_CODE = YES;
460 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
461 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
462 | COPY_PHASE_STRIP = NO;
463 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
464 | ENABLE_NS_ASSERTIONS = NO;
465 | ENABLE_STRICT_OBJC_MSGSEND = YES;
466 | GCC_C_LANGUAGE_STANDARD = gnu99;
467 | GCC_NO_COMMON_BLOCKS = YES;
468 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
469 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
470 | GCC_WARN_UNDECLARED_SELECTOR = YES;
471 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
472 | GCC_WARN_UNUSED_FUNCTION = YES;
473 | GCC_WARN_UNUSED_VARIABLE = YES;
474 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
475 | MTL_ENABLE_DEBUG_INFO = NO;
476 | SDKROOT = iphoneos;
477 | SUPPORTED_PLATFORMS = iphoneos;
478 | SWIFT_COMPILATION_MODE = wholemodule;
479 | SWIFT_OPTIMIZATION_LEVEL = "-O";
480 | TARGETED_DEVICE_FAMILY = "1,2";
481 | VALIDATE_PRODUCT = YES;
482 | };
483 | name = Release;
484 | };
485 | 97C147061CF9000F007C117D /* Debug */ = {
486 | isa = XCBuildConfiguration;
487 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
488 | buildSettings = {
489 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
490 | CLANG_ENABLE_MODULES = YES;
491 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
492 | ENABLE_BITCODE = NO;
493 | INFOPLIST_FILE = Runner/Info.plist;
494 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
495 | LD_RUNPATH_SEARCH_PATHS = (
496 | "$(inherited)",
497 | "@executable_path/Frameworks",
498 | );
499 | PRODUCT_BUNDLE_IDENTIFIER = com.sangvaleap.firebasechat;
500 | PRODUCT_NAME = "$(TARGET_NAME)";
501 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
502 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
503 | SWIFT_VERSION = 5.0;
504 | VERSIONING_SYSTEM = "apple-generic";
505 | };
506 | name = Debug;
507 | };
508 | 97C147071CF9000F007C117D /* Release */ = {
509 | isa = XCBuildConfiguration;
510 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
511 | buildSettings = {
512 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
513 | CLANG_ENABLE_MODULES = YES;
514 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
515 | ENABLE_BITCODE = NO;
516 | INFOPLIST_FILE = Runner/Info.plist;
517 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
518 | LD_RUNPATH_SEARCH_PATHS = (
519 | "$(inherited)",
520 | "@executable_path/Frameworks",
521 | );
522 | PRODUCT_BUNDLE_IDENTIFIER = com.sangvaleap.firebasechat;
523 | PRODUCT_NAME = "$(TARGET_NAME)";
524 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
525 | SWIFT_VERSION = 5.0;
526 | VERSIONING_SYSTEM = "apple-generic";
527 | };
528 | name = Release;
529 | };
530 | /* End XCBuildConfiguration section */
531 |
532 | /* Begin XCConfigurationList section */
533 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
534 | isa = XCConfigurationList;
535 | buildConfigurations = (
536 | 97C147031CF9000F007C117D /* Debug */,
537 | 97C147041CF9000F007C117D /* Release */,
538 | 249021D3217E4FDB00AE95B9 /* Profile */,
539 | );
540 | defaultConfigurationIsVisible = 0;
541 | defaultConfigurationName = Release;
542 | };
543 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
544 | isa = XCConfigurationList;
545 | buildConfigurations = (
546 | 97C147061CF9000F007C117D /* Debug */,
547 | 97C147071CF9000F007C117D /* Release */,
548 | 249021D4217E4FDB00AE95B9 /* Profile */,
549 | );
550 | defaultConfigurationIsVisible = 0;
551 | defaultConfigurationName = Release;
552 | };
553 | /* End XCConfigurationList section */
554 | };
555 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
556 | }
557 |
--------------------------------------------------------------------------------