├── .github └── FUNDING.yml ├── .gitignore ├── .metadata ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── chatapp │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── 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 │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets ├── fonts │ └── overpass_regular.otf └── images │ ├── logo.png │ ├── search_white.png │ └── send.png ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Podfile.lock ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── 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-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── helper │ ├── authenticate.dart │ ├── constants.dart │ ├── helperfunctions.dart │ └── theme.dart ├── main.dart ├── models │ └── user.dart ├── services │ ├── auth.dart │ └── database.dart ├── views │ ├── chat.dart │ ├── chatrooms.dart │ ├── forgot_password.dart │ ├── search.dart │ ├── signin.dart │ └── signup.dart └── widget │ └── widget.dart ├── macos ├── .gitignore ├── Flutter │ ├── Flutter-Debug.xcconfig │ ├── Flutter-Release.xcconfig │ └── GeneratedPluginRegistrant.swift ├── Podfile ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── app_icon_1024.png │ │ ├── app_icon_128.png │ │ ├── app_icon_16.png │ │ ├── app_icon_256.png │ │ ├── app_icon_32.png │ │ ├── app_icon_512.png │ │ └── app_icon_64.png │ ├── Base.lproj │ └── MainMenu.xib │ ├── Configs │ ├── AppInfo.xcconfig │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── Warnings.xcconfig │ ├── DebugProfile.entitlements │ ├── Info.plist │ ├── MainFlutterWindow.swift │ └── Release.entitlements ├── pubspec.lock ├── pubspec.yaml ├── test └── widget_test.dart └── web ├── favicon.png ├── icons ├── Icon-192.png └── Icon-512.png ├── index.html └── manifest.json /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: theindianappguy 4 | custom: ['https://www.buymeacoffee.com/sanskartiwari'] 5 | -------------------------------------------------------------------------------- /.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 | .dart_tool/ 26 | .flutter-plugins 27 | .flutter-plugins-dependencies 28 | .packages 29 | .pub-cache/ 30 | .pub/ 31 | /build/ 32 | 33 | # Web related 34 | lib/generated_plugin_registrant.dart 35 | 36 | # Symbolication related 37 | app.*.symbols 38 | 39 | # Obfuscation related 40 | app.*.map.json 41 | 42 | # Exceptions to above rules. 43 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 44 | -------------------------------------------------------------------------------- /.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: dadc3ead47e75319c8ed6b6f15899ad56725c68a 8 | channel: master 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![how to make a chat app with flutter by theindianappguy](https://user-images.githubusercontent.com/55942632/81176283-938adc80-8fc2-11ea-8d59-7392205a1ed0.png) 2 | 3 | Installation 4 | 5 | ``` 6 | flutter pub get 7 | ``` 8 | Usage 9 | 10 | ``` 11 | flutter run 12 | ``` 13 | 14 | ### Learn 15 | 16 | About Course : We will build Fully Functioning Chat App with Flutter & Firebase in 5 hours the course is divided into 4 Parts, Everything is explained with single prerequisite of having flutter installed and run at least the sample app that's all 17 | 18 | Full PlayList : https://www.youtube.com/playlist?list=PLBxWkM8PLHcr2vkdY2n9rIcxjZ9Th3Us7 19 | 20 | 📕 Things covered in this Series: 21 | - Firebase Auth : Sign in, Sign up and Sign out 22 | - Firebase Firestore : Upload & Retrieve data stored in Cloud Firestore 23 | - Perform simple and compound queries in Cloud Firestore 24 | - Building Complexe UI 25 | - Shared Preference to keep user logged in, Create chat room ( with username) & Send message ( by username) 26 | - Using Stream & Stream builder 27 | 28 | Live at [flutterdevconnect.web.app](https://flutterdevconnect.web.app) 29 | 30 | ### Created & Maintained By 31 | 32 | [Sanskar Tiwari](https://github.com/theindianappguy) ([@theindianappguy](https://twitter.com/Theindianappguy)) ([YouTube](https://www.youtube.com/c/SanskarTiwari)) 33 | 34 | > If you found this project helpful or you learned something from the source code and want to thank me, 35 | > consider checking out what i am building at [MagicSlides.app](https://www.magicslides.app), [MagicForm.app](https://www.magicform.app) & [SheetAI.app](https://www.sheetai.app) 36 | 37 | ### License 38 | 39 | Copyright 2020 Sanskar Tiwari 40 | 41 | Licensed under the Apache License, Version 2.0 (the "License"); 42 | you may not use this file except in compliance with the License. 43 | You may obtain a copy of the License at 44 | 45 | http://www.apache.org/licenses/LICENSE-2.0 46 | 47 | Unless required by applicable law or agreed to in writing, software 48 | distributed under the License is distributed on an "AS IS" BASIS, 49 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 50 | See the License for the specific language governing permissions and 51 | limitations under the License. 52 | 53 | 54 | ## Getting Started 55 | 56 | This project is a starting point for a Flutter application. 57 | 58 | A few resources to get you started if this is your first Flutter project: 59 | 60 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 61 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 62 | 63 | For help getting started with Flutter, view our 64 | [online documentation](https://flutter.dev/docs), which offers tutorials, 65 | samples, guidance on mobile development, and a full API reference. 66 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | -------------------------------------------------------------------------------- /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: 'com.google.gms.google-services' 26 | apply plugin: 'kotlin-android' 27 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 28 | 29 | android { 30 | compileSdkVersion 28 31 | 32 | sourceSets { 33 | main.java.srcDirs += 'src/main/kotlin' 34 | } 35 | 36 | lintOptions { 37 | disable 'InvalidPackage' 38 | } 39 | 40 | defaultConfig { 41 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 42 | applicationId "com.example.chatapp" 43 | minSdkVersion 19 44 | multiDexEnabled true 45 | targetSdkVersion 28 46 | versionCode flutterVersionCode.toInteger() 47 | versionName flutterVersionName 48 | } 49 | 50 | buildTypes { 51 | release { 52 | // TODO: Add your own signing config for the release build. 53 | // Signing with the debug keys for now, so `flutter run --release` works. 54 | signingConfig signingConfigs.debug 55 | } 56 | } 57 | } 58 | 59 | flutter { 60 | source '../..' 61 | } 62 | 63 | dependencies { 64 | implementation "com.android.support:multidex:1.0.3" 65 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 66 | implementation 'com.google.firebase:firebase-analytics:17.2.2' 67 | } 68 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 12 | 19 | 23 | 27 | 32 | 36 | 37 | 38 | 39 | 40 | 41 | 43 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/chatapp/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.chatapp 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath 'com.google.gms:google-services:4.3.3' 11 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 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 | } 26 | subprojects { 27 | project.evaluationDependsOn(':app') 28 | } 29 | 30 | task clean(type: Delete) { 31 | delete rootProject.buildDir 32 | } 33 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /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-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /assets/fonts/overpass_regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/assets/fonts/overpass_regular.otf -------------------------------------------------------------------------------- /assets/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/assets/images/logo.png -------------------------------------------------------------------------------- /assets/images/search_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/assets/images/search_white.png -------------------------------------------------------------------------------- /assets/images/send.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/assets/images/send.png -------------------------------------------------------------------------------- /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/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.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 parse_KV_file(file, separator='=') 14 | file_abs_path = File.expand_path(file) 15 | if !File.exists? file_abs_path 16 | return []; 17 | end 18 | generated_key_values = {} 19 | skip_line_start_symbols = ["#", "/"] 20 | File.foreach(file_abs_path) do |line| 21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } 22 | plugin = line.split(pattern=separator) 23 | if plugin.length == 2 24 | podname = plugin[0].strip() 25 | path = plugin[1].strip() 26 | podpath = File.expand_path("#{path}", file_abs_path) 27 | generated_key_values[podname] = podpath 28 | else 29 | puts "Invalid plugin specification: #{line}" 30 | end 31 | end 32 | generated_key_values 33 | end 34 | 35 | target 'Runner' do 36 | use_frameworks! 37 | use_modular_headers! 38 | 39 | # Flutter Pod 40 | 41 | copied_flutter_dir = File.join(__dir__, 'Flutter') 42 | copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework') 43 | copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec') 44 | unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path) 45 | # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet. 46 | # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration. 47 | # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist. 48 | 49 | generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig') 50 | unless File.exist?(generated_xcode_build_settings_path) 51 | raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first" 52 | end 53 | generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path) 54 | cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR']; 55 | 56 | unless File.exist?(copied_framework_path) 57 | FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir) 58 | end 59 | unless File.exist?(copied_podspec_path) 60 | FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir) 61 | end 62 | end 63 | 64 | # Keep pod path relative so it can be checked into Podfile.lock. 65 | pod 'Flutter', :path => 'Flutter' 66 | 67 | # Plugin Pods 68 | 69 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 70 | # referring to absolute paths on developers' machines. 71 | system('rm -rf .symlinks') 72 | system('mkdir -p .symlinks/plugins') 73 | plugin_pods = parse_KV_file('../.flutter-plugins') 74 | plugin_pods.each do |name, path| 75 | symlink = File.join('.symlinks', 'plugins', name) 76 | File.symlink(path, symlink) 77 | pod name, :path => File.join(symlink, 'ios') 78 | end 79 | end 80 | 81 | post_install do |installer| 82 | installer.pods_project.targets.each do |target| 83 | target.build_configurations.each do |config| 84 | config.build_settings['ENABLE_BITCODE'] = 'NO' 85 | end 86 | end 87 | end 88 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - abseil/algorithm (0.20190808): 3 | - abseil/algorithm/algorithm (= 0.20190808) 4 | - abseil/algorithm/container (= 0.20190808) 5 | - abseil/algorithm/algorithm (0.20190808) 6 | - abseil/algorithm/container (0.20190808): 7 | - abseil/algorithm/algorithm 8 | - abseil/base/core_headers 9 | - abseil/meta/type_traits 10 | - abseil/base (0.20190808): 11 | - abseil/base/atomic_hook (= 0.20190808) 12 | - abseil/base/base (= 0.20190808) 13 | - abseil/base/base_internal (= 0.20190808) 14 | - abseil/base/bits (= 0.20190808) 15 | - abseil/base/config (= 0.20190808) 16 | - abseil/base/core_headers (= 0.20190808) 17 | - abseil/base/dynamic_annotations (= 0.20190808) 18 | - abseil/base/endian (= 0.20190808) 19 | - abseil/base/log_severity (= 0.20190808) 20 | - abseil/base/malloc_internal (= 0.20190808) 21 | - abseil/base/pretty_function (= 0.20190808) 22 | - abseil/base/spinlock_wait (= 0.20190808) 23 | - abseil/base/throw_delegate (= 0.20190808) 24 | - abseil/base/atomic_hook (0.20190808) 25 | - abseil/base/base (0.20190808): 26 | - abseil/base/atomic_hook 27 | - abseil/base/base_internal 28 | - abseil/base/config 29 | - abseil/base/core_headers 30 | - abseil/base/dynamic_annotations 31 | - abseil/base/log_severity 32 | - abseil/base/spinlock_wait 33 | - abseil/meta/type_traits 34 | - abseil/base/base_internal (0.20190808): 35 | - abseil/meta/type_traits 36 | - abseil/base/bits (0.20190808): 37 | - abseil/base/core_headers 38 | - abseil/base/config (0.20190808) 39 | - abseil/base/core_headers (0.20190808): 40 | - abseil/base/config 41 | - abseil/base/dynamic_annotations (0.20190808) 42 | - abseil/base/endian (0.20190808): 43 | - abseil/base/config 44 | - abseil/base/core_headers 45 | - abseil/base/log_severity (0.20190808): 46 | - abseil/base/core_headers 47 | - abseil/base/malloc_internal (0.20190808): 48 | - abseil/base/base 49 | - abseil/base/config 50 | - abseil/base/core_headers 51 | - abseil/base/dynamic_annotations 52 | - abseil/base/spinlock_wait 53 | - abseil/base/pretty_function (0.20190808) 54 | - abseil/base/spinlock_wait (0.20190808): 55 | - abseil/base/core_headers 56 | - abseil/base/throw_delegate (0.20190808): 57 | - abseil/base/base 58 | - abseil/base/config 59 | - abseil/memory (0.20190808): 60 | - abseil/memory/memory (= 0.20190808) 61 | - abseil/memory/memory (0.20190808): 62 | - abseil/base/core_headers 63 | - abseil/meta/type_traits 64 | - abseil/meta (0.20190808): 65 | - abseil/meta/type_traits (= 0.20190808) 66 | - abseil/meta/type_traits (0.20190808): 67 | - abseil/base/config 68 | - abseil/numeric/int128 (0.20190808): 69 | - abseil/base/config 70 | - abseil/base/core_headers 71 | - abseil/strings/internal (0.20190808): 72 | - abseil/base/core_headers 73 | - abseil/base/endian 74 | - abseil/meta/type_traits 75 | - abseil/strings/strings (0.20190808): 76 | - abseil/base/base 77 | - abseil/base/bits 78 | - abseil/base/config 79 | - abseil/base/core_headers 80 | - abseil/base/endian 81 | - abseil/base/throw_delegate 82 | - abseil/memory/memory 83 | - abseil/meta/type_traits 84 | - abseil/numeric/int128 85 | - abseil/strings/internal 86 | - abseil/time (0.20190808): 87 | - abseil/time/internal (= 0.20190808) 88 | - abseil/time/time (= 0.20190808) 89 | - abseil/time/internal (0.20190808): 90 | - abseil/time/internal/cctz (= 0.20190808) 91 | - abseil/time/internal/cctz (0.20190808): 92 | - abseil/time/internal/cctz/civil_time (= 0.20190808) 93 | - abseil/time/internal/cctz/includes (= 0.20190808) 94 | - abseil/time/internal/cctz/time_zone (= 0.20190808) 95 | - abseil/time/internal/cctz/civil_time (0.20190808) 96 | - abseil/time/internal/cctz/includes (0.20190808) 97 | - abseil/time/internal/cctz/time_zone (0.20190808): 98 | - abseil/time/internal/cctz/civil_time 99 | - abseil/time/time (0.20190808): 100 | - abseil/base/base 101 | - abseil/base/core_headers 102 | - abseil/numeric/int128 103 | - abseil/strings/strings 104 | - abseil/time/internal/cctz/civil_time 105 | - abseil/time/internal/cctz/time_zone 106 | - abseil/types (0.20190808): 107 | - abseil/types/any (= 0.20190808) 108 | - abseil/types/bad_any_cast (= 0.20190808) 109 | - abseil/types/bad_any_cast_impl (= 0.20190808) 110 | - abseil/types/bad_optional_access (= 0.20190808) 111 | - abseil/types/bad_variant_access (= 0.20190808) 112 | - abseil/types/compare (= 0.20190808) 113 | - abseil/types/optional (= 0.20190808) 114 | - abseil/types/span (= 0.20190808) 115 | - abseil/types/variant (= 0.20190808) 116 | - abseil/types/any (0.20190808): 117 | - abseil/base/config 118 | - abseil/base/core_headers 119 | - abseil/meta/type_traits 120 | - abseil/types/bad_any_cast 121 | - abseil/utility/utility 122 | - abseil/types/bad_any_cast (0.20190808): 123 | - abseil/base/config 124 | - abseil/types/bad_any_cast_impl 125 | - abseil/types/bad_any_cast_impl (0.20190808): 126 | - abseil/base/base 127 | - abseil/base/config 128 | - abseil/types/bad_optional_access (0.20190808): 129 | - abseil/base/base 130 | - abseil/base/config 131 | - abseil/types/bad_variant_access (0.20190808): 132 | - abseil/base/base 133 | - abseil/base/config 134 | - abseil/types/compare (0.20190808): 135 | - abseil/base/core_headers 136 | - abseil/meta/type_traits 137 | - abseil/types/optional (0.20190808): 138 | - abseil/base/base_internal 139 | - abseil/base/config 140 | - abseil/base/core_headers 141 | - abseil/memory/memory 142 | - abseil/meta/type_traits 143 | - abseil/types/bad_optional_access 144 | - abseil/utility/utility 145 | - abseil/types/span (0.20190808): 146 | - abseil/algorithm/algorithm 147 | - abseil/base/core_headers 148 | - abseil/base/throw_delegate 149 | - abseil/meta/type_traits 150 | - abseil/types/variant (0.20190808): 151 | - abseil/base/base_internal 152 | - abseil/base/config 153 | - abseil/base/core_headers 154 | - abseil/meta/type_traits 155 | - abseil/types/bad_variant_access 156 | - abseil/utility/utility 157 | - abseil/utility/utility (0.20190808): 158 | - abseil/base/base_internal 159 | - abseil/base/config 160 | - abseil/meta/type_traits 161 | - AppAuth (1.3.0): 162 | - AppAuth/Core (= 1.3.0) 163 | - AppAuth/ExternalUserAgent (= 1.3.0) 164 | - AppAuth/Core (1.3.0) 165 | - AppAuth/ExternalUserAgent (1.3.0) 166 | - BoringSSL-GRPC (0.0.3): 167 | - BoringSSL-GRPC/Implementation (= 0.0.3) 168 | - BoringSSL-GRPC/Interface (= 0.0.3) 169 | - BoringSSL-GRPC/Implementation (0.0.3): 170 | - BoringSSL-GRPC/Interface (= 0.0.3) 171 | - BoringSSL-GRPC/Interface (0.0.3) 172 | - cloud_firestore (0.0.1): 173 | - Firebase/Core 174 | - Firebase/Firestore (~> 6.0) 175 | - Flutter 176 | - cloud_firestore_web (0.1.0): 177 | - Flutter 178 | - Firebase/Auth (6.16.0): 179 | - Firebase/CoreOnly 180 | - FirebaseAuth (~> 6.4.3) 181 | - Firebase/Core (6.16.0): 182 | - Firebase/CoreOnly 183 | - FirebaseAnalytics (= 6.2.2) 184 | - Firebase/CoreOnly (6.16.0): 185 | - FirebaseCore (= 6.6.1) 186 | - Firebase/Firestore (6.16.0): 187 | - Firebase/CoreOnly 188 | - FirebaseFirestore (~> 1.10.0) 189 | - firebase_auth (0.0.1): 190 | - Firebase/Auth (~> 6.3) 191 | - Firebase/Core 192 | - Flutter 193 | - firebase_auth_web (0.1.0): 194 | - Flutter 195 | - firebase_core (0.0.1): 196 | - Firebase/Core 197 | - Flutter 198 | - firebase_core_web (0.1.0): 199 | - Flutter 200 | - FirebaseAnalytics (6.2.2): 201 | - FirebaseCore (~> 6.6) 202 | - FirebaseInstanceID (~> 4.3) 203 | - GoogleAppMeasurement (= 6.2.2) 204 | - GoogleUtilities/AppDelegateSwizzler (~> 6.0) 205 | - GoogleUtilities/MethodSwizzler (~> 6.0) 206 | - GoogleUtilities/Network (~> 6.0) 207 | - "GoogleUtilities/NSData+zlib (~> 6.0)" 208 | - nanopb (= 0.3.9011) 209 | - FirebaseAuth (6.4.3): 210 | - FirebaseAuthInterop (~> 1.0) 211 | - FirebaseCore (~> 6.6) 212 | - GoogleUtilities/AppDelegateSwizzler (~> 6.5) 213 | - GoogleUtilities/Environment (~> 6.5) 214 | - GTMSessionFetcher/Core (~> 1.1) 215 | - FirebaseAuthInterop (1.0.0) 216 | - FirebaseCore (6.6.1): 217 | - FirebaseCoreDiagnostics (~> 1.2) 218 | - FirebaseCoreDiagnosticsInterop (~> 1.2) 219 | - GoogleUtilities/Environment (~> 6.5) 220 | - GoogleUtilities/Logger (~> 6.5) 221 | - FirebaseCoreDiagnostics (1.2.0): 222 | - FirebaseCoreDiagnosticsInterop (~> 1.2) 223 | - GoogleDataTransportCCTSupport (~> 1.3) 224 | - GoogleUtilities/Environment (~> 6.5) 225 | - GoogleUtilities/Logger (~> 6.5) 226 | - nanopb (~> 0.3.901) 227 | - FirebaseCoreDiagnosticsInterop (1.2.0) 228 | - FirebaseFirestore (1.10.0): 229 | - abseil/algorithm (= 0.20190808) 230 | - abseil/base (= 0.20190808) 231 | - abseil/memory (= 0.20190808) 232 | - abseil/meta (= 0.20190808) 233 | - abseil/strings/strings (= 0.20190808) 234 | - abseil/time (= 0.20190808) 235 | - abseil/types (= 0.20190808) 236 | - FirebaseAuthInterop (~> 1.0) 237 | - FirebaseCore (~> 6.2) 238 | - "gRPC-C++ (= 0.0.9)" 239 | - leveldb-library (~> 1.22) 240 | - nanopb (~> 0.3.901) 241 | - FirebaseInstallations (1.1.0): 242 | - FirebaseCore (~> 6.6) 243 | - GoogleUtilities/UserDefaults (~> 6.5) 244 | - PromisesObjC (~> 1.2) 245 | - FirebaseInstanceID (4.3.0): 246 | - FirebaseCore (~> 6.6) 247 | - FirebaseInstallations (~> 1.0) 248 | - GoogleUtilities/Environment (~> 6.5) 249 | - GoogleUtilities/UserDefaults (~> 6.5) 250 | - Flutter (1.0.0) 251 | - google_sign_in (0.0.1): 252 | - Flutter 253 | - GoogleSignIn (~> 5.0) 254 | - google_sign_in_web (0.8.1): 255 | - Flutter 256 | - GoogleAppMeasurement (6.2.2): 257 | - GoogleUtilities/AppDelegateSwizzler (~> 6.0) 258 | - GoogleUtilities/MethodSwizzler (~> 6.0) 259 | - GoogleUtilities/Network (~> 6.0) 260 | - "GoogleUtilities/NSData+zlib (~> 6.0)" 261 | - nanopb (= 0.3.9011) 262 | - GoogleDataTransport (3.3.1) 263 | - GoogleDataTransportCCTSupport (1.3.1): 264 | - GoogleDataTransport (~> 3.3) 265 | - nanopb (~> 0.3.901) 266 | - GoogleSignIn (5.0.2): 267 | - AppAuth (~> 1.2) 268 | - GTMAppAuth (~> 1.0) 269 | - GTMSessionFetcher/Core (~> 1.1) 270 | - GoogleUtilities/AppDelegateSwizzler (6.5.1): 271 | - GoogleUtilities/Environment 272 | - GoogleUtilities/Logger 273 | - GoogleUtilities/Network 274 | - GoogleUtilities/Environment (6.5.1) 275 | - GoogleUtilities/Logger (6.5.1): 276 | - GoogleUtilities/Environment 277 | - GoogleUtilities/MethodSwizzler (6.5.1): 278 | - GoogleUtilities/Logger 279 | - GoogleUtilities/Network (6.5.1): 280 | - GoogleUtilities/Logger 281 | - "GoogleUtilities/NSData+zlib" 282 | - GoogleUtilities/Reachability 283 | - "GoogleUtilities/NSData+zlib (6.5.1)" 284 | - GoogleUtilities/Reachability (6.5.1): 285 | - GoogleUtilities/Logger 286 | - GoogleUtilities/UserDefaults (6.5.1): 287 | - GoogleUtilities/Logger 288 | - "gRPC-C++ (0.0.9)": 289 | - "gRPC-C++/Implementation (= 0.0.9)" 290 | - "gRPC-C++/Interface (= 0.0.9)" 291 | - "gRPC-C++/Implementation (0.0.9)": 292 | - "gRPC-C++/Interface (= 0.0.9)" 293 | - gRPC-Core (= 1.21.0) 294 | - nanopb (~> 0.3) 295 | - "gRPC-C++/Interface (0.0.9)" 296 | - gRPC-Core (1.21.0): 297 | - gRPC-Core/Implementation (= 1.21.0) 298 | - gRPC-Core/Interface (= 1.21.0) 299 | - gRPC-Core/Implementation (1.21.0): 300 | - BoringSSL-GRPC (= 0.0.3) 301 | - gRPC-Core/Interface (= 1.21.0) 302 | - nanopb (~> 0.3) 303 | - gRPC-Core/Interface (1.21.0) 304 | - GTMAppAuth (1.0.0): 305 | - AppAuth/Core (~> 1.0) 306 | - GTMSessionFetcher (~> 1.1) 307 | - GTMSessionFetcher (1.3.1): 308 | - GTMSessionFetcher/Full (= 1.3.1) 309 | - GTMSessionFetcher/Core (1.3.1) 310 | - GTMSessionFetcher/Full (1.3.1): 311 | - GTMSessionFetcher/Core (= 1.3.1) 312 | - leveldb-library (1.22) 313 | - nanopb (0.3.9011): 314 | - nanopb/decode (= 0.3.9011) 315 | - nanopb/encode (= 0.3.9011) 316 | - nanopb/decode (0.3.9011) 317 | - nanopb/encode (0.3.9011) 318 | - PromisesObjC (1.2.8) 319 | - shared_preferences (0.0.1): 320 | - Flutter 321 | - shared_preferences_macos (0.0.1): 322 | - Flutter 323 | - shared_preferences_web (0.0.1): 324 | - Flutter 325 | 326 | DEPENDENCIES: 327 | - cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) 328 | - cloud_firestore_web (from `.symlinks/plugins/cloud_firestore_web/ios`) 329 | - firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) 330 | - firebase_auth_web (from `.symlinks/plugins/firebase_auth_web/ios`) 331 | - firebase_core (from `.symlinks/plugins/firebase_core/ios`) 332 | - firebase_core_web (from `.symlinks/plugins/firebase_core_web/ios`) 333 | - Flutter (from `Flutter`) 334 | - google_sign_in (from `.symlinks/plugins/google_sign_in/ios`) 335 | - google_sign_in_web (from `.symlinks/plugins/google_sign_in_web/ios`) 336 | - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`) 337 | - shared_preferences_macos (from `.symlinks/plugins/shared_preferences_macos/ios`) 338 | - shared_preferences_web (from `.symlinks/plugins/shared_preferences_web/ios`) 339 | 340 | SPEC REPOS: 341 | trunk: 342 | - abseil 343 | - AppAuth 344 | - BoringSSL-GRPC 345 | - Firebase 346 | - FirebaseAnalytics 347 | - FirebaseAuth 348 | - FirebaseAuthInterop 349 | - FirebaseCore 350 | - FirebaseCoreDiagnostics 351 | - FirebaseCoreDiagnosticsInterop 352 | - FirebaseFirestore 353 | - FirebaseInstallations 354 | - FirebaseInstanceID 355 | - GoogleAppMeasurement 356 | - GoogleDataTransport 357 | - GoogleDataTransportCCTSupport 358 | - GoogleSignIn 359 | - GoogleUtilities 360 | - "gRPC-C++" 361 | - gRPC-Core 362 | - GTMAppAuth 363 | - GTMSessionFetcher 364 | - leveldb-library 365 | - nanopb 366 | - PromisesObjC 367 | 368 | EXTERNAL SOURCES: 369 | cloud_firestore: 370 | :path: ".symlinks/plugins/cloud_firestore/ios" 371 | cloud_firestore_web: 372 | :path: ".symlinks/plugins/cloud_firestore_web/ios" 373 | firebase_auth: 374 | :path: ".symlinks/plugins/firebase_auth/ios" 375 | firebase_auth_web: 376 | :path: ".symlinks/plugins/firebase_auth_web/ios" 377 | firebase_core: 378 | :path: ".symlinks/plugins/firebase_core/ios" 379 | firebase_core_web: 380 | :path: ".symlinks/plugins/firebase_core_web/ios" 381 | Flutter: 382 | :path: Flutter 383 | google_sign_in: 384 | :path: ".symlinks/plugins/google_sign_in/ios" 385 | google_sign_in_web: 386 | :path: ".symlinks/plugins/google_sign_in_web/ios" 387 | shared_preferences: 388 | :path: ".symlinks/plugins/shared_preferences/ios" 389 | shared_preferences_macos: 390 | :path: ".symlinks/plugins/shared_preferences_macos/ios" 391 | shared_preferences_web: 392 | :path: ".symlinks/plugins/shared_preferences_web/ios" 393 | 394 | SPEC CHECKSUMS: 395 | abseil: 18063d773f5366ff8736a050fe035a28f635fd27 396 | AppAuth: 73574f3013a1e65b9601a3ddc8b3158cce68c09d 397 | BoringSSL-GRPC: db8764df3204ccea016e1c8dd15d9a9ad63ff318 398 | cloud_firestore: 56ea1a42d4a4b3c9cf22e0e0f73140b5d07376a8 399 | cloud_firestore_web: 9ec3dc7f5f98de5129339802d491c1204462bfec 400 | Firebase: 497158b816d0a86fc31babbd05546fcd7e6083ff 401 | firebase_auth: 1f46484071219159ad6c64d304af425ad7373052 402 | firebase_auth_web: 0955c07bcc06e84af76b9d4e32e6f31518f2d7de 403 | firebase_core: 0d8be0e0d14c4902953aeb5ac5d7316d1fe4b978 404 | firebase_core_web: d501d8b946b60c8af265428ce483b0fff5ad52d1 405 | FirebaseAnalytics: cf95d3aab897612783020fbd98401d5366f135ee 406 | FirebaseAuth: 5ce2b03a3d7fe56b7a6e4c5ec7ff1522890b1d6f 407 | FirebaseAuthInterop: 0ffa57668be100582bb7643d4fcb7615496c41fc 408 | FirebaseCore: 85064903ed6c28e47fec9c7bd149d94ba1b6b6e7 409 | FirebaseCoreDiagnostics: 5e78803ab276bc5b50340e3c539c06c3de35c649 410 | FirebaseCoreDiagnosticsInterop: 296e2c5f5314500a850ad0b83e9e7c10b011a850 411 | FirebaseFirestore: cee8f861d68dadce998876b78a4b75701bc94302 412 | FirebaseInstallations: 575cd32f2aec0feeb0e44f5d0110a09e5e60b47b 413 | FirebaseInstanceID: 6668efc1655a4052c083f287a7141f1ead12f9c2 414 | Flutter: 0e3d915762c693b495b44d77113d4970485de6ec 415 | google_sign_in: f32920a589fdf4ab2918ec6dc5e5b0d5b8040ff5 416 | google_sign_in_web: 52deb24929ac0992baff65c57956031c44ed44c3 417 | GoogleAppMeasurement: d0560d915abf15e692e8538ba1d58442217b6aff 418 | GoogleDataTransport: 0048df6388dab1c254799f2a30365b1dffe20422 419 | GoogleDataTransportCCTSupport: f880d70972efa2ed1be4e9173a0f4c5f3dc2d176 420 | GoogleSignIn: 7137d297ddc022a7e0aa4619c86d72c909fa7213 421 | GoogleUtilities: 06eb53bb579efe7099152735900dd04bf09e7275 422 | "gRPC-C++": 9dfe7b44821e7b3e44aacad2af29d2c21f7cde83 423 | gRPC-Core: c9aef9a261a1247e881b18059b84d597293c9947 424 | GTMAppAuth: 4deac854479704f348309e7b66189e604cf5e01e 425 | GTMSessionFetcher: cea130bbfe5a7edc8d06d3f0d17288c32ffe9925 426 | leveldb-library: 55d93ee664b4007aac644a782d11da33fba316f7 427 | nanopb: 18003b5e52dab79db540fe93fe9579f399bd1ccd 428 | PromisesObjC: c119f3cd559f50b7ae681fa59dc1acd19173b7e6 429 | shared_preferences: af6bfa751691cdc24be3045c43ec037377ada40d 430 | shared_preferences_macos: f3f29b71ccbb56bf40c9dd6396c9acf15e214087 431 | shared_preferences_web: 141cce0c3ed1a1c5bf2a0e44f52d31eeb66e5ea9 432 | 433 | PODFILE CHECKSUM: c34e2287a9ccaa606aeceab922830efb9a6ff69a 434 | 435 | COCOAPODS: 1.9.0 436 | -------------------------------------------------------------------------------- /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 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 7FFAC5E92AD3DFA195EDB91A /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B7BECDB71FF1DF20D349C93B /* Pods_Runner.framework */; }; 14 | 919FF152245E927300009F19 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 919FF151245E927200009F19 /* GoogleService-Info.plist */; }; 15 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 16 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 17 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 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 | 1D5E47395717E4EFF5831F31 /* 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 = ""; }; 37 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 38 | 6292D9C91153CE280B3F4A5C /* 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 | 919FF151245E927200009F19 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; }; 43 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 44 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 45 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 47 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 48 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 49 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 50 | A004B2480EFAE93A0CB62C11 /* 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 = ""; }; 51 | B7BECDB71FF1DF20D349C93B /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | /* End PBXFileReference section */ 53 | 54 | /* Begin PBXFrameworksBuildPhase section */ 55 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 56 | isa = PBXFrameworksBuildPhase; 57 | buildActionMask = 2147483647; 58 | files = ( 59 | 7FFAC5E92AD3DFA195EDB91A /* Pods_Runner.framework in Frameworks */, 60 | ); 61 | runOnlyForDeploymentPostprocessing = 0; 62 | }; 63 | /* End PBXFrameworksBuildPhase section */ 64 | 65 | /* Begin PBXGroup section */ 66 | 618ECF8794016448C33A88D0 /* Frameworks */ = { 67 | isa = PBXGroup; 68 | children = ( 69 | B7BECDB71FF1DF20D349C93B /* Pods_Runner.framework */, 70 | ); 71 | name = Frameworks; 72 | sourceTree = ""; 73 | }; 74 | 9740EEB11CF90186004384FC /* Flutter */ = { 75 | isa = PBXGroup; 76 | children = ( 77 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 78 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 79 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 80 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 81 | ); 82 | name = Flutter; 83 | sourceTree = ""; 84 | }; 85 | 97C146E51CF9000F007C117D = { 86 | isa = PBXGroup; 87 | children = ( 88 | 9740EEB11CF90186004384FC /* Flutter */, 89 | 97C146F01CF9000F007C117D /* Runner */, 90 | 97C146EF1CF9000F007C117D /* Products */, 91 | B2094C0B10938F9864ED6B68 /* Pods */, 92 | 618ECF8794016448C33A88D0 /* Frameworks */, 93 | ); 94 | sourceTree = ""; 95 | }; 96 | 97C146EF1CF9000F007C117D /* Products */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | 97C146EE1CF9000F007C117D /* Runner.app */, 100 | ); 101 | name = Products; 102 | sourceTree = ""; 103 | }; 104 | 97C146F01CF9000F007C117D /* Runner */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 919FF151245E927200009F19 /* GoogleService-Info.plist */, 108 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 109 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 110 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 111 | 97C147021CF9000F007C117D /* Info.plist */, 112 | 97C146F11CF9000F007C117D /* Supporting Files */, 113 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 114 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 115 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 116 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 117 | ); 118 | path = Runner; 119 | sourceTree = ""; 120 | }; 121 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | ); 125 | name = "Supporting Files"; 126 | sourceTree = ""; 127 | }; 128 | B2094C0B10938F9864ED6B68 /* Pods */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | A004B2480EFAE93A0CB62C11 /* Pods-Runner.debug.xcconfig */, 132 | 6292D9C91153CE280B3F4A5C /* Pods-Runner.release.xcconfig */, 133 | 1D5E47395717E4EFF5831F31 /* Pods-Runner.profile.xcconfig */, 134 | ); 135 | path = Pods; 136 | sourceTree = ""; 137 | }; 138 | /* End PBXGroup section */ 139 | 140 | /* Begin PBXNativeTarget section */ 141 | 97C146ED1CF9000F007C117D /* Runner */ = { 142 | isa = PBXNativeTarget; 143 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 144 | buildPhases = ( 145 | F459C89DB1AA0E49FE3F7420 /* [CP] Check Pods Manifest.lock */, 146 | 9740EEB61CF901F6004384FC /* Run Script */, 147 | 97C146EA1CF9000F007C117D /* Sources */, 148 | 97C146EB1CF9000F007C117D /* Frameworks */, 149 | 97C146EC1CF9000F007C117D /* Resources */, 150 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 151 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 152 | 5D41594C46F6E4439E5B6D71 /* [CP] Embed Pods Frameworks */, 153 | AC562A6157BBC5CEE65E616A /* [CP] Copy Pods Resources */, 154 | ); 155 | buildRules = ( 156 | ); 157 | dependencies = ( 158 | ); 159 | name = Runner; 160 | productName = Runner; 161 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 162 | productType = "com.apple.product-type.application"; 163 | }; 164 | /* End PBXNativeTarget section */ 165 | 166 | /* Begin PBXProject section */ 167 | 97C146E61CF9000F007C117D /* Project object */ = { 168 | isa = PBXProject; 169 | attributes = { 170 | LastUpgradeCheck = 1020; 171 | ORGANIZATIONNAME = ""; 172 | TargetAttributes = { 173 | 97C146ED1CF9000F007C117D = { 174 | CreatedOnToolsVersion = 7.3.1; 175 | LastSwiftMigration = 1100; 176 | }; 177 | }; 178 | }; 179 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 180 | compatibilityVersion = "Xcode 9.3"; 181 | developmentRegion = en; 182 | hasScannedForEncodings = 0; 183 | knownRegions = ( 184 | en, 185 | Base, 186 | ); 187 | mainGroup = 97C146E51CF9000F007C117D; 188 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 189 | projectDirPath = ""; 190 | projectRoot = ""; 191 | targets = ( 192 | 97C146ED1CF9000F007C117D /* Runner */, 193 | ); 194 | }; 195 | /* End PBXProject section */ 196 | 197 | /* Begin PBXResourcesBuildPhase section */ 198 | 97C146EC1CF9000F007C117D /* Resources */ = { 199 | isa = PBXResourcesBuildPhase; 200 | buildActionMask = 2147483647; 201 | files = ( 202 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 203 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 204 | 919FF152245E927300009F19 /* GoogleService-Info.plist in Resources */, 205 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 206 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 207 | ); 208 | runOnlyForDeploymentPostprocessing = 0; 209 | }; 210 | /* End PBXResourcesBuildPhase section */ 211 | 212 | /* Begin PBXShellScriptBuildPhase section */ 213 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 214 | isa = PBXShellScriptBuildPhase; 215 | buildActionMask = 2147483647; 216 | files = ( 217 | ); 218 | inputPaths = ( 219 | ); 220 | name = "Thin Binary"; 221 | outputPaths = ( 222 | ); 223 | runOnlyForDeploymentPostprocessing = 0; 224 | shellPath = /bin/sh; 225 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 226 | }; 227 | 5D41594C46F6E4439E5B6D71 /* [CP] Embed Pods Frameworks */ = { 228 | isa = PBXShellScriptBuildPhase; 229 | buildActionMask = 2147483647; 230 | files = ( 231 | ); 232 | inputFileListPaths = ( 233 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", 234 | ); 235 | name = "[CP] Embed Pods Frameworks"; 236 | outputFileListPaths = ( 237 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", 238 | ); 239 | runOnlyForDeploymentPostprocessing = 0; 240 | shellPath = /bin/sh; 241 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 242 | showEnvVarsInLog = 0; 243 | }; 244 | 9740EEB61CF901F6004384FC /* Run Script */ = { 245 | isa = PBXShellScriptBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | ); 249 | inputPaths = ( 250 | ); 251 | name = "Run Script"; 252 | outputPaths = ( 253 | ); 254 | runOnlyForDeploymentPostprocessing = 0; 255 | shellPath = /bin/sh; 256 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 257 | }; 258 | AC562A6157BBC5CEE65E616A /* [CP] Copy Pods Resources */ = { 259 | isa = PBXShellScriptBuildPhase; 260 | buildActionMask = 2147483647; 261 | files = ( 262 | ); 263 | inputFileListPaths = ( 264 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist", 265 | ); 266 | name = "[CP] Copy Pods Resources"; 267 | outputFileListPaths = ( 268 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist", 269 | ); 270 | runOnlyForDeploymentPostprocessing = 0; 271 | shellPath = /bin/sh; 272 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n"; 273 | showEnvVarsInLog = 0; 274 | }; 275 | F459C89DB1AA0E49FE3F7420 /* [CP] Check Pods Manifest.lock */ = { 276 | isa = PBXShellScriptBuildPhase; 277 | buildActionMask = 2147483647; 278 | files = ( 279 | ); 280 | inputFileListPaths = ( 281 | ); 282 | inputPaths = ( 283 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 284 | "${PODS_ROOT}/Manifest.lock", 285 | ); 286 | name = "[CP] Check Pods Manifest.lock"; 287 | outputFileListPaths = ( 288 | ); 289 | outputPaths = ( 290 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 291 | ); 292 | runOnlyForDeploymentPostprocessing = 0; 293 | shellPath = /bin/sh; 294 | 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"; 295 | showEnvVarsInLog = 0; 296 | }; 297 | /* End PBXShellScriptBuildPhase section */ 298 | 299 | /* Begin PBXSourcesBuildPhase section */ 300 | 97C146EA1CF9000F007C117D /* Sources */ = { 301 | isa = PBXSourcesBuildPhase; 302 | buildActionMask = 2147483647; 303 | files = ( 304 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 305 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | }; 309 | /* End PBXSourcesBuildPhase section */ 310 | 311 | /* Begin PBXVariantGroup section */ 312 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 313 | isa = PBXVariantGroup; 314 | children = ( 315 | 97C146FB1CF9000F007C117D /* Base */, 316 | ); 317 | name = Main.storyboard; 318 | sourceTree = ""; 319 | }; 320 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 321 | isa = PBXVariantGroup; 322 | children = ( 323 | 97C147001CF9000F007C117D /* Base */, 324 | ); 325 | name = LaunchScreen.storyboard; 326 | sourceTree = ""; 327 | }; 328 | /* End PBXVariantGroup section */ 329 | 330 | /* Begin XCBuildConfiguration section */ 331 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 332 | isa = XCBuildConfiguration; 333 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 334 | buildSettings = { 335 | ALWAYS_SEARCH_USER_PATHS = NO; 336 | CLANG_ANALYZER_NONNULL = YES; 337 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 338 | CLANG_CXX_LIBRARY = "libc++"; 339 | CLANG_ENABLE_MODULES = YES; 340 | CLANG_ENABLE_OBJC_ARC = YES; 341 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 342 | CLANG_WARN_BOOL_CONVERSION = YES; 343 | CLANG_WARN_COMMA = YES; 344 | CLANG_WARN_CONSTANT_CONVERSION = YES; 345 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 347 | CLANG_WARN_EMPTY_BODY = YES; 348 | CLANG_WARN_ENUM_CONVERSION = YES; 349 | CLANG_WARN_INFINITE_RECURSION = YES; 350 | CLANG_WARN_INT_CONVERSION = YES; 351 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 352 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 353 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 354 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 355 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 356 | CLANG_WARN_STRICT_PROTOTYPES = YES; 357 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 358 | CLANG_WARN_UNREACHABLE_CODE = YES; 359 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 360 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 361 | COPY_PHASE_STRIP = NO; 362 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 363 | ENABLE_NS_ASSERTIONS = NO; 364 | ENABLE_STRICT_OBJC_MSGSEND = YES; 365 | GCC_C_LANGUAGE_STANDARD = gnu99; 366 | GCC_NO_COMMON_BLOCKS = YES; 367 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 368 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 369 | GCC_WARN_UNDECLARED_SELECTOR = YES; 370 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 371 | GCC_WARN_UNUSED_FUNCTION = YES; 372 | GCC_WARN_UNUSED_VARIABLE = YES; 373 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 374 | MTL_ENABLE_DEBUG_INFO = NO; 375 | SDKROOT = iphoneos; 376 | SUPPORTED_PLATFORMS = iphoneos; 377 | TARGETED_DEVICE_FAMILY = "1,2"; 378 | VALIDATE_PRODUCT = YES; 379 | }; 380 | name = Profile; 381 | }; 382 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 383 | isa = XCBuildConfiguration; 384 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 385 | buildSettings = { 386 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 387 | CLANG_ENABLE_MODULES = YES; 388 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 389 | ENABLE_BITCODE = NO; 390 | FRAMEWORK_SEARCH_PATHS = ( 391 | "$(inherited)", 392 | "$(PROJECT_DIR)/Flutter", 393 | ); 394 | INFOPLIST_FILE = Runner/Info.plist; 395 | LD_RUNPATH_SEARCH_PATHS = ( 396 | "$(inherited)", 397 | "@executable_path/Frameworks", 398 | ); 399 | LIBRARY_SEARCH_PATHS = ( 400 | "$(inherited)", 401 | "$(PROJECT_DIR)/Flutter", 402 | ); 403 | PRODUCT_BUNDLE_IDENTIFIER = com.example.chatapp; 404 | PRODUCT_NAME = "$(TARGET_NAME)"; 405 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 406 | SWIFT_VERSION = 5.0; 407 | VERSIONING_SYSTEM = "apple-generic"; 408 | }; 409 | name = Profile; 410 | }; 411 | 97C147031CF9000F007C117D /* Debug */ = { 412 | isa = XCBuildConfiguration; 413 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 414 | buildSettings = { 415 | ALWAYS_SEARCH_USER_PATHS = NO; 416 | CLANG_ANALYZER_NONNULL = YES; 417 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 418 | CLANG_CXX_LIBRARY = "libc++"; 419 | CLANG_ENABLE_MODULES = YES; 420 | CLANG_ENABLE_OBJC_ARC = YES; 421 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 422 | CLANG_WARN_BOOL_CONVERSION = YES; 423 | CLANG_WARN_COMMA = YES; 424 | CLANG_WARN_CONSTANT_CONVERSION = YES; 425 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 426 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 427 | CLANG_WARN_EMPTY_BODY = YES; 428 | CLANG_WARN_ENUM_CONVERSION = YES; 429 | CLANG_WARN_INFINITE_RECURSION = YES; 430 | CLANG_WARN_INT_CONVERSION = YES; 431 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 432 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 433 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 434 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 435 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 436 | CLANG_WARN_STRICT_PROTOTYPES = YES; 437 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 438 | CLANG_WARN_UNREACHABLE_CODE = YES; 439 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 440 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 441 | COPY_PHASE_STRIP = NO; 442 | DEBUG_INFORMATION_FORMAT = dwarf; 443 | ENABLE_STRICT_OBJC_MSGSEND = YES; 444 | ENABLE_TESTABILITY = YES; 445 | GCC_C_LANGUAGE_STANDARD = gnu99; 446 | GCC_DYNAMIC_NO_PIC = NO; 447 | GCC_NO_COMMON_BLOCKS = YES; 448 | GCC_OPTIMIZATION_LEVEL = 0; 449 | GCC_PREPROCESSOR_DEFINITIONS = ( 450 | "DEBUG=1", 451 | "$(inherited)", 452 | ); 453 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 454 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 455 | GCC_WARN_UNDECLARED_SELECTOR = YES; 456 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 457 | GCC_WARN_UNUSED_FUNCTION = YES; 458 | GCC_WARN_UNUSED_VARIABLE = YES; 459 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 460 | MTL_ENABLE_DEBUG_INFO = YES; 461 | ONLY_ACTIVE_ARCH = YES; 462 | SDKROOT = iphoneos; 463 | TARGETED_DEVICE_FAMILY = "1,2"; 464 | }; 465 | name = Debug; 466 | }; 467 | 97C147041CF9000F007C117D /* Release */ = { 468 | isa = XCBuildConfiguration; 469 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 470 | buildSettings = { 471 | ALWAYS_SEARCH_USER_PATHS = NO; 472 | CLANG_ANALYZER_NONNULL = YES; 473 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 474 | CLANG_CXX_LIBRARY = "libc++"; 475 | CLANG_ENABLE_MODULES = YES; 476 | CLANG_ENABLE_OBJC_ARC = YES; 477 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 478 | CLANG_WARN_BOOL_CONVERSION = YES; 479 | CLANG_WARN_COMMA = YES; 480 | CLANG_WARN_CONSTANT_CONVERSION = YES; 481 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 482 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 483 | CLANG_WARN_EMPTY_BODY = YES; 484 | CLANG_WARN_ENUM_CONVERSION = YES; 485 | CLANG_WARN_INFINITE_RECURSION = YES; 486 | CLANG_WARN_INT_CONVERSION = YES; 487 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 488 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 489 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 490 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 491 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 492 | CLANG_WARN_STRICT_PROTOTYPES = YES; 493 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 494 | CLANG_WARN_UNREACHABLE_CODE = YES; 495 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 496 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 497 | COPY_PHASE_STRIP = NO; 498 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 499 | ENABLE_NS_ASSERTIONS = NO; 500 | ENABLE_STRICT_OBJC_MSGSEND = YES; 501 | GCC_C_LANGUAGE_STANDARD = gnu99; 502 | GCC_NO_COMMON_BLOCKS = YES; 503 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 504 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 505 | GCC_WARN_UNDECLARED_SELECTOR = YES; 506 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 507 | GCC_WARN_UNUSED_FUNCTION = YES; 508 | GCC_WARN_UNUSED_VARIABLE = YES; 509 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 510 | MTL_ENABLE_DEBUG_INFO = NO; 511 | SDKROOT = iphoneos; 512 | SUPPORTED_PLATFORMS = iphoneos; 513 | SWIFT_COMPILATION_MODE = wholemodule; 514 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 515 | TARGETED_DEVICE_FAMILY = "1,2"; 516 | VALIDATE_PRODUCT = YES; 517 | }; 518 | name = Release; 519 | }; 520 | 97C147061CF9000F007C117D /* Debug */ = { 521 | isa = XCBuildConfiguration; 522 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 523 | buildSettings = { 524 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 525 | CLANG_ENABLE_MODULES = YES; 526 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 527 | ENABLE_BITCODE = NO; 528 | FRAMEWORK_SEARCH_PATHS = ( 529 | "$(inherited)", 530 | "$(PROJECT_DIR)/Flutter", 531 | ); 532 | INFOPLIST_FILE = Runner/Info.plist; 533 | LD_RUNPATH_SEARCH_PATHS = ( 534 | "$(inherited)", 535 | "@executable_path/Frameworks", 536 | ); 537 | LIBRARY_SEARCH_PATHS = ( 538 | "$(inherited)", 539 | "$(PROJECT_DIR)/Flutter", 540 | ); 541 | PRODUCT_BUNDLE_IDENTIFIER = com.example.chatapp; 542 | PRODUCT_NAME = "$(TARGET_NAME)"; 543 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 544 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 545 | SWIFT_VERSION = 5.0; 546 | VERSIONING_SYSTEM = "apple-generic"; 547 | }; 548 | name = Debug; 549 | }; 550 | 97C147071CF9000F007C117D /* Release */ = { 551 | isa = XCBuildConfiguration; 552 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 553 | buildSettings = { 554 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 555 | CLANG_ENABLE_MODULES = YES; 556 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 557 | ENABLE_BITCODE = NO; 558 | FRAMEWORK_SEARCH_PATHS = ( 559 | "$(inherited)", 560 | "$(PROJECT_DIR)/Flutter", 561 | ); 562 | INFOPLIST_FILE = Runner/Info.plist; 563 | LD_RUNPATH_SEARCH_PATHS = ( 564 | "$(inherited)", 565 | "@executable_path/Frameworks", 566 | ); 567 | LIBRARY_SEARCH_PATHS = ( 568 | "$(inherited)", 569 | "$(PROJECT_DIR)/Flutter", 570 | ); 571 | PRODUCT_BUNDLE_IDENTIFIER = com.example.chatapp; 572 | PRODUCT_NAME = "$(TARGET_NAME)"; 573 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 574 | SWIFT_VERSION = 5.0; 575 | VERSIONING_SYSTEM = "apple-generic"; 576 | }; 577 | name = Release; 578 | }; 579 | /* End XCBuildConfiguration section */ 580 | 581 | /* Begin XCConfigurationList section */ 582 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 583 | isa = XCConfigurationList; 584 | buildConfigurations = ( 585 | 97C147031CF9000F007C117D /* Debug */, 586 | 97C147041CF9000F007C117D /* Release */, 587 | 249021D3217E4FDB00AE95B9 /* Profile */, 588 | ); 589 | defaultConfigurationIsVisible = 0; 590 | defaultConfigurationName = Release; 591 | }; 592 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 593 | isa = XCConfigurationList; 594 | buildConfigurations = ( 595 | 97C147061CF9000F007C117D /* Debug */, 596 | 97C147071CF9000F007C117D /* Release */, 597 | 249021D4217E4FDB00AE95B9 /* Profile */, 598 | ); 599 | defaultConfigurationIsVisible = 0; 600 | defaultConfigurationName = Release; 601 | }; 602 | /* End XCConfigurationList section */ 603 | }; 604 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 605 | } 606 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/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/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/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/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/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/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/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/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/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/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/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/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/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/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/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/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/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/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/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/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/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/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/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/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /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. -------------------------------------------------------------------------------- /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/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 | chatapp 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 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/helper/authenticate.dart: -------------------------------------------------------------------------------- 1 | import 'package:chatapp/views/signin.dart'; 2 | import 'package:chatapp/views/signup.dart'; 3 | import 'package:flutter/material.dart'; 4 | 5 | class Authenticate extends StatefulWidget { 6 | @override 7 | _AuthenticateState createState() => _AuthenticateState(); 8 | } 9 | 10 | class _AuthenticateState extends State { 11 | bool showSignIn = true; 12 | 13 | void toggleView() { 14 | setState(() { 15 | showSignIn = !showSignIn; 16 | }); 17 | } 18 | 19 | @override 20 | Widget build(BuildContext context) { 21 | if (showSignIn) { 22 | return SignIn(toggleView); 23 | } else { 24 | return SignUp(toggleView); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /lib/helper/constants.dart: -------------------------------------------------------------------------------- 1 | 2 | class Constants{ 3 | 4 | static String myName = ""; 5 | } 6 | -------------------------------------------------------------------------------- /lib/helper/helperfunctions.dart: -------------------------------------------------------------------------------- 1 | import 'package:shared_preferences/shared_preferences.dart'; 2 | 3 | class HelperFunctions{ 4 | 5 | static String sharedPreferenceUserLoggedInKey = "ISLOGGEDIN"; 6 | static String sharedPreferenceUserNameKey = "USERNAMEKEY"; 7 | static String sharedPreferenceUserEmailKey = "USEREMAILKEY"; 8 | 9 | /// saving data to sharedpreference 10 | static Future saveUserLoggedInSharedPreference(bool isUserLoggedIn) async{ 11 | 12 | SharedPreferences preferences = await SharedPreferences.getInstance(); 13 | return await preferences.setBool(sharedPreferenceUserLoggedInKey, isUserLoggedIn); 14 | } 15 | 16 | static Future saveUserNameSharedPreference(String userName) async{ 17 | SharedPreferences preferences = await SharedPreferences.getInstance(); 18 | return await preferences.setString(sharedPreferenceUserNameKey, userName); 19 | } 20 | 21 | static Future saveUserEmailSharedPreference(String userEmail) async{ 22 | SharedPreferences preferences = await SharedPreferences.getInstance(); 23 | return await preferences.setString(sharedPreferenceUserEmailKey, userEmail); 24 | } 25 | 26 | /// fetching data from sharedpreference 27 | 28 | static Future getUserLoggedInSharedPreference() async{ 29 | SharedPreferences preferences = await SharedPreferences.getInstance(); 30 | return await preferences.getBool(sharedPreferenceUserLoggedInKey); 31 | } 32 | 33 | static Future getUserNameSharedPreference() async{ 34 | SharedPreferences preferences = await SharedPreferences.getInstance(); 35 | return await preferences.getString(sharedPreferenceUserNameKey); 36 | } 37 | 38 | static Future getUserEmailSharedPreference() async{ 39 | SharedPreferences preferences = await SharedPreferences.getInstance(); 40 | return await preferences.getString(sharedPreferenceUserEmailKey); 41 | } 42 | 43 | } -------------------------------------------------------------------------------- /lib/helper/theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class CustomTheme { 4 | static Color colorAccent = Color(0xff007EF4); 5 | static Color textColor = Color(0xff071930); 6 | } 7 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:chatapp/helper/authenticate.dart'; 2 | import 'package:chatapp/helper/helperfunctions.dart'; 3 | import 'package:chatapp/views/chatrooms.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | void main() { 7 | runApp(MyApp()); 8 | } 9 | 10 | class MyApp extends StatefulWidget { 11 | // This widget is the root of your application. 12 | @override 13 | _MyAppState createState() => _MyAppState(); 14 | } 15 | 16 | class _MyAppState extends State { 17 | 18 | bool userIsLoggedIn; 19 | 20 | @override 21 | void initState() { 22 | getLoggedInState(); 23 | super.initState(); 24 | } 25 | 26 | getLoggedInState() async { 27 | await HelperFunctions.getUserLoggedInSharedPreference().then((value){ 28 | setState(() { 29 | userIsLoggedIn = value; 30 | }); 31 | }); 32 | } 33 | 34 | @override 35 | Widget build(BuildContext context) { 36 | return MaterialApp( 37 | title: 'FlutterChat', 38 | debugShowCheckedModeBanner: false, 39 | theme: ThemeData( 40 | primaryColor: Color(0xff145C9E), 41 | scaffoldBackgroundColor: Color(0xff1F1F1F), 42 | accentColor: Color(0xff007EF4), 43 | fontFamily: "OverpassRegular", 44 | visualDensity: VisualDensity.adaptivePlatformDensity, 45 | ), 46 | home: userIsLoggedIn != null ? userIsLoggedIn ? ChatRoom() : Authenticate() 47 | : Container( 48 | child: Center( 49 | child: Authenticate(), 50 | ), 51 | ), 52 | ); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /lib/models/user.dart: -------------------------------------------------------------------------------- 1 | class User { 2 | final String uid; 3 | User({this.uid}); 4 | } 5 | -------------------------------------------------------------------------------- /lib/services/auth.dart: -------------------------------------------------------------------------------- 1 | import 'package:chatapp/models/user.dart'; 2 | import 'package:chatapp/views/chat.dart'; 3 | import 'package:firebase_auth/firebase_auth.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:google_sign_in/google_sign_in.dart'; 6 | 7 | class AuthService { 8 | final FirebaseAuth _auth = FirebaseAuth.instance; 9 | 10 | User _userFromFirebaseUser(FirebaseUser user) { 11 | return user != null ? User(uid: user.uid) : null; 12 | } 13 | 14 | Future signInWithEmailAndPassword(String email, String password) async { 15 | try { 16 | AuthResult result = await _auth.signInWithEmailAndPassword( 17 | email: email, password: password); 18 | FirebaseUser user = result.user; 19 | return _userFromFirebaseUser(user); 20 | } catch (e) { 21 | print(e.toString()); 22 | return null; 23 | } 24 | } 25 | 26 | Future signUpWithEmailAndPassword(String email, String password) async { 27 | try { 28 | AuthResult result = await _auth.createUserWithEmailAndPassword( 29 | email: email, password: password); 30 | FirebaseUser user = result.user; 31 | return _userFromFirebaseUser(user); 32 | } catch (e) { 33 | print(e.toString()); 34 | return null; 35 | } 36 | } 37 | 38 | Future resetPass(String email) async { 39 | try { 40 | return await _auth.sendPasswordResetEmail(email: email); 41 | } catch (e) { 42 | print(e.toString()); 43 | return null; 44 | } 45 | } 46 | 47 | Future signInWithGoogle(BuildContext context) async { 48 | final GoogleSignIn _googleSignIn = new GoogleSignIn(); 49 | 50 | final GoogleSignInAccount googleSignInAccount = 51 | await _googleSignIn.signIn(); 52 | final GoogleSignInAuthentication googleSignInAuthentication = 53 | await googleSignInAccount.authentication; 54 | 55 | final AuthCredential credential = GoogleAuthProvider.getCredential( 56 | idToken: googleSignInAuthentication.idToken, 57 | accessToken: googleSignInAuthentication.accessToken); 58 | 59 | AuthResult result = await _auth.signInWithCredential(credential); 60 | FirebaseUser userDetails = result.user; 61 | 62 | if (result == null) { 63 | } else { 64 | Navigator.push(context, MaterialPageRoute(builder: (context) => Chat())); 65 | } 66 | } 67 | 68 | Future signOut() async { 69 | try { 70 | return await _auth.signOut(); 71 | } catch (e) { 72 | print(e.toString()); 73 | return null; 74 | } 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /lib/services/database.dart: -------------------------------------------------------------------------------- 1 | import 'package:cloud_firestore/cloud_firestore.dart'; 2 | 3 | class DatabaseMethods { 4 | Future addUserInfo(userData) async { 5 | Firestore.instance.collection("users").add(userData).catchError((e) { 6 | print(e.toString()); 7 | }); 8 | } 9 | 10 | getUserInfo(String email) async { 11 | return Firestore.instance 12 | .collection("users") 13 | .where("userEmail", isEqualTo: email) 14 | .getDocuments() 15 | .catchError((e) { 16 | print(e.toString()); 17 | }); 18 | } 19 | 20 | searchByName(String searchField) { 21 | return Firestore.instance 22 | .collection("users") 23 | .where('userName', isEqualTo: searchField) 24 | .getDocuments(); 25 | } 26 | 27 | Future addChatRoom(chatRoom, chatRoomId) { 28 | Firestore.instance 29 | .collection("chatRoom") 30 | .document(chatRoomId) 31 | .setData(chatRoom) 32 | .catchError((e) { 33 | print(e); 34 | }); 35 | } 36 | 37 | getChats(String chatRoomId) async{ 38 | return Firestore.instance 39 | .collection("chatRoom") 40 | .document(chatRoomId) 41 | .collection("chats") 42 | .orderBy('time') 43 | .snapshots(); 44 | } 45 | 46 | 47 | Future addMessage(String chatRoomId, chatMessageData){ 48 | 49 | Firestore.instance.collection("chatRoom") 50 | .document(chatRoomId) 51 | .collection("chats") 52 | .add(chatMessageData).catchError((e){ 53 | print(e.toString()); 54 | }); 55 | } 56 | 57 | getUserChats(String itIsMyName) async { 58 | return await Firestore.instance 59 | .collection("chatRoom") 60 | .where('users', arrayContains: itIsMyName) 61 | .snapshots(); 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /lib/views/chat.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'package:chatapp/helper/constants.dart'; 3 | import 'package:chatapp/services/database.dart'; 4 | import 'package:chatapp/widget/widget.dart'; 5 | import 'package:cloud_firestore/cloud_firestore.dart'; 6 | import 'package:flutter/material.dart'; 7 | 8 | class Chat extends StatefulWidget { 9 | final String chatRoomId; 10 | 11 | Chat({this.chatRoomId}); 12 | 13 | @override 14 | _ChatState createState() => _ChatState(); 15 | } 16 | 17 | class _ChatState extends State { 18 | 19 | Stream chats; 20 | TextEditingController messageEditingController = new TextEditingController(); 21 | 22 | Widget chatMessages(){ 23 | return StreamBuilder( 24 | stream: chats, 25 | builder: (context, snapshot){ 26 | return snapshot.hasData ? ListView.builder( 27 | itemCount: snapshot.data.documents.length, 28 | itemBuilder: (context, index){ 29 | return MessageTile( 30 | message: snapshot.data.documents[index].data["message"], 31 | sendByMe: Constants.myName == snapshot.data.documents[index].data["sendBy"], 32 | ); 33 | }) : Container(); 34 | }, 35 | ); 36 | } 37 | 38 | addMessage() { 39 | if (messageEditingController.text.isNotEmpty) { 40 | Map chatMessageMap = { 41 | "sendBy": Constants.myName, 42 | "message": messageEditingController.text, 43 | 'time': DateTime 44 | .now() 45 | .millisecondsSinceEpoch, 46 | }; 47 | 48 | DatabaseMethods().addMessage(widget.chatRoomId, chatMessageMap); 49 | 50 | setState(() { 51 | messageEditingController.text = ""; 52 | }); 53 | } 54 | } 55 | 56 | @override 57 | void initState() { 58 | DatabaseMethods().getChats(widget.chatRoomId).then((val) { 59 | setState(() { 60 | chats = val; 61 | }); 62 | }); 63 | super.initState(); 64 | } 65 | 66 | @override 67 | Widget build(BuildContext context) { 68 | return Scaffold( 69 | appBar: appBarMain(context), 70 | body: Container( 71 | child: Stack( 72 | children: [ 73 | chatMessages(), 74 | Container(alignment: Alignment.bottomCenter, 75 | width: MediaQuery 76 | .of(context) 77 | .size 78 | .width, 79 | child: Container( 80 | padding: EdgeInsets.symmetric(horizontal: 24, vertical: 24), 81 | color: Color(0x54FFFFFF), 82 | child: Row( 83 | children: [ 84 | Expanded( 85 | child: TextField( 86 | controller: messageEditingController, 87 | style: simpleTextStyle(), 88 | decoration: InputDecoration( 89 | hintText: "Message ...", 90 | hintStyle: TextStyle( 91 | color: Colors.white, 92 | fontSize: 16, 93 | ), 94 | border: InputBorder.none 95 | ), 96 | )), 97 | SizedBox(width: 16,), 98 | GestureDetector( 99 | onTap: () { 100 | addMessage(); 101 | }, 102 | child: Container( 103 | height: 40, 104 | width: 40, 105 | decoration: BoxDecoration( 106 | gradient: LinearGradient( 107 | colors: [ 108 | const Color(0x36FFFFFF), 109 | const Color(0x0FFFFFFF) 110 | ], 111 | begin: FractionalOffset.topLeft, 112 | end: FractionalOffset.bottomRight 113 | ), 114 | borderRadius: BorderRadius.circular(40) 115 | ), 116 | padding: EdgeInsets.all(12), 117 | child: Image.asset("assets/images/send.png", 118 | height: 25, width: 25,)), 119 | ), 120 | ], 121 | ), 122 | ), 123 | ), 124 | ], 125 | ), 126 | ), 127 | ); 128 | } 129 | 130 | } 131 | 132 | class MessageTile extends StatelessWidget { 133 | final String message; 134 | final bool sendByMe; 135 | 136 | MessageTile({@required this.message, @required this.sendByMe}); 137 | 138 | 139 | @override 140 | Widget build(BuildContext context) { 141 | return Container( 142 | padding: EdgeInsets.only( 143 | top: 8, 144 | bottom: 8, 145 | left: sendByMe ? 0 : 24, 146 | right: sendByMe ? 24 : 0), 147 | alignment: sendByMe ? Alignment.centerRight : Alignment.centerLeft, 148 | child: Container( 149 | margin: sendByMe 150 | ? EdgeInsets.only(left: 30) 151 | : EdgeInsets.only(right: 30), 152 | padding: EdgeInsets.only( 153 | top: 17, bottom: 17, left: 20, right: 20), 154 | decoration: BoxDecoration( 155 | borderRadius: sendByMe ? BorderRadius.only( 156 | topLeft: Radius.circular(23), 157 | topRight: Radius.circular(23), 158 | bottomLeft: Radius.circular(23) 159 | ) : 160 | BorderRadius.only( 161 | topLeft: Radius.circular(23), 162 | topRight: Radius.circular(23), 163 | bottomRight: Radius.circular(23)), 164 | gradient: LinearGradient( 165 | colors: sendByMe ? [ 166 | const Color(0xff007EF4), 167 | const Color(0xff2A75BC) 168 | ] 169 | : [ 170 | const Color(0x1AFFFFFF), 171 | const Color(0x1AFFFFFF) 172 | ], 173 | ) 174 | ), 175 | child: Text(message, 176 | textAlign: TextAlign.start, 177 | style: TextStyle( 178 | color: Colors.white, 179 | fontSize: 16, 180 | fontFamily: 'OverpassRegular', 181 | fontWeight: FontWeight.w300)), 182 | ), 183 | ); 184 | } 185 | } 186 | 187 | -------------------------------------------------------------------------------- /lib/views/chatrooms.dart: -------------------------------------------------------------------------------- 1 | import 'package:chatapp/helper/authenticate.dart'; 2 | import 'package:chatapp/helper/constants.dart'; 3 | import 'package:chatapp/helper/helperfunctions.dart'; 4 | import 'package:chatapp/helper/theme.dart'; 5 | import 'package:chatapp/services/auth.dart'; 6 | import 'package:chatapp/services/database.dart'; 7 | import 'package:chatapp/views/chat.dart'; 8 | import 'package:chatapp/views/search.dart'; 9 | import 'package:flutter/material.dart'; 10 | 11 | class ChatRoom extends StatefulWidget { 12 | @override 13 | _ChatRoomState createState() => _ChatRoomState(); 14 | } 15 | 16 | class _ChatRoomState extends State { 17 | Stream chatRooms; 18 | 19 | Widget chatRoomsList() { 20 | return StreamBuilder( 21 | stream: chatRooms, 22 | builder: (context, snapshot) { 23 | return snapshot.hasData 24 | ? ListView.builder( 25 | itemCount: snapshot.data.documents.length, 26 | shrinkWrap: true, 27 | itemBuilder: (context, index) { 28 | return ChatRoomsTile( 29 | userName: snapshot.data.documents[index].data['chatRoomId'] 30 | .toString() 31 | .replaceAll("_", "") 32 | .replaceAll(Constants.myName, ""), 33 | chatRoomId: snapshot.data.documents[index].data["chatRoomId"], 34 | ); 35 | }) 36 | : Container(); 37 | }, 38 | ); 39 | } 40 | 41 | @override 42 | void initState() { 43 | getUserInfogetChats(); 44 | super.initState(); 45 | } 46 | 47 | getUserInfogetChats() async { 48 | Constants.myName = await HelperFunctions.getUserNameSharedPreference(); 49 | DatabaseMethods().getUserChats(Constants.myName).then((snapshots) { 50 | setState(() { 51 | chatRooms = snapshots; 52 | print( 53 | "we got the data + ${chatRooms.toString()} this is name ${Constants.myName}"); 54 | }); 55 | }); 56 | } 57 | 58 | @override 59 | Widget build(BuildContext context) { 60 | return Scaffold( 61 | appBar: AppBar( 62 | title: Image.asset( 63 | "assets/images/logo.png", 64 | height: 40, 65 | ), 66 | elevation: 0.0, 67 | centerTitle: false, 68 | actions: [ 69 | GestureDetector( 70 | onTap: () { 71 | AuthService().signOut(); 72 | Navigator.pushReplacement(context, 73 | MaterialPageRoute(builder: (context) => Authenticate())); 74 | }, 75 | child: Container( 76 | padding: EdgeInsets.symmetric(horizontal: 16), 77 | child: Icon(Icons.exit_to_app)), 78 | ) 79 | ], 80 | ), 81 | body: Container( 82 | child: chatRoomsList(), 83 | ), 84 | floatingActionButton: FloatingActionButton( 85 | child: Icon(Icons.search), 86 | onPressed: () { 87 | Navigator.push( 88 | context, MaterialPageRoute(builder: (context) => Search())); 89 | }, 90 | ), 91 | ); 92 | } 93 | } 94 | 95 | class ChatRoomsTile extends StatelessWidget { 96 | final String userName; 97 | final String chatRoomId; 98 | 99 | ChatRoomsTile({this.userName,@required this.chatRoomId}); 100 | 101 | @override 102 | Widget build(BuildContext context) { 103 | return GestureDetector( 104 | onTap: (){ 105 | Navigator.push(context, MaterialPageRoute( 106 | builder: (context) => Chat( 107 | chatRoomId: chatRoomId, 108 | ) 109 | )); 110 | }, 111 | child: Container( 112 | color: Colors.black26, 113 | padding: EdgeInsets.symmetric(horizontal: 24, vertical: 20), 114 | child: Row( 115 | children: [ 116 | Container( 117 | height: 30, 118 | width: 30, 119 | decoration: BoxDecoration( 120 | color: CustomTheme.colorAccent, 121 | borderRadius: BorderRadius.circular(30)), 122 | child: Text(userName.substring(0, 1), 123 | textAlign: TextAlign.center, 124 | style: TextStyle( 125 | color: Colors.white, 126 | fontSize: 16, 127 | fontFamily: 'OverpassRegular', 128 | fontWeight: FontWeight.w300)), 129 | ), 130 | SizedBox( 131 | width: 12, 132 | ), 133 | Text(userName, 134 | textAlign: TextAlign.start, 135 | style: TextStyle( 136 | color: Colors.white, 137 | fontSize: 16, 138 | fontFamily: 'OverpassRegular', 139 | fontWeight: FontWeight.w300)) 140 | ], 141 | ), 142 | ), 143 | ); 144 | } 145 | } 146 | -------------------------------------------------------------------------------- /lib/views/forgot_password.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ForgotPassword extends StatefulWidget { 4 | @override 5 | _ForgotPasswordState createState() => _ForgotPasswordState(); 6 | } 7 | 8 | class _ForgotPasswordState extends State { 9 | @override 10 | Widget build(BuildContext context) { 11 | return Container(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /lib/views/search.dart: -------------------------------------------------------------------------------- 1 | import 'package:chatapp/helper/constants.dart'; 2 | import 'package:chatapp/models/user.dart'; 3 | import 'package:chatapp/services/database.dart'; 4 | import 'package:chatapp/views/chat.dart'; 5 | import 'package:chatapp/widget/widget.dart'; 6 | import 'package:cloud_firestore/cloud_firestore.dart'; 7 | import 'package:flutter/material.dart'; 8 | 9 | class Search extends StatefulWidget { 10 | @override 11 | _SearchState createState() => _SearchState(); 12 | } 13 | 14 | class _SearchState extends State { 15 | 16 | DatabaseMethods databaseMethods = new DatabaseMethods(); 17 | TextEditingController searchEditingController = new TextEditingController(); 18 | QuerySnapshot searchResultSnapshot; 19 | 20 | bool isLoading = false; 21 | bool haveUserSearched = false; 22 | 23 | initiateSearch() async { 24 | if(searchEditingController.text.isNotEmpty){ 25 | setState(() { 26 | isLoading = true; 27 | }); 28 | await databaseMethods.searchByName(searchEditingController.text) 29 | .then((snapshot){ 30 | searchResultSnapshot = snapshot; 31 | print("$searchResultSnapshot"); 32 | setState(() { 33 | isLoading = false; 34 | haveUserSearched = true; 35 | }); 36 | }); 37 | } 38 | } 39 | 40 | Widget userList(){ 41 | return haveUserSearched ? ListView.builder( 42 | shrinkWrap: true, 43 | itemCount: searchResultSnapshot.documents.length, 44 | itemBuilder: (context, index){ 45 | return userTile( 46 | searchResultSnapshot.documents[index].data["userName"], 47 | searchResultSnapshot.documents[index].data["userEmail"], 48 | ); 49 | }) : Container(); 50 | } 51 | 52 | /// 1.create a chatroom, send user to the chatroom, other userdetails 53 | sendMessage(String userName){ 54 | List users = [Constants.myName,userName]; 55 | 56 | String chatRoomId = getChatRoomId(Constants.myName,userName); 57 | 58 | Map chatRoom = { 59 | "users": users, 60 | "chatRoomId" : chatRoomId, 61 | }; 62 | 63 | databaseMethods.addChatRoom(chatRoom, chatRoomId); 64 | 65 | Navigator.push(context, MaterialPageRoute( 66 | builder: (context) => Chat( 67 | chatRoomId: chatRoomId, 68 | ) 69 | )); 70 | 71 | } 72 | 73 | Widget userTile(String userName,String userEmail){ 74 | return Container( 75 | padding: EdgeInsets.symmetric(horizontal: 24, vertical: 16), 76 | child: Row( 77 | children: [ 78 | Column( 79 | crossAxisAlignment: CrossAxisAlignment.start, 80 | children: [ 81 | Text( 82 | userName, 83 | style: TextStyle( 84 | color: Colors.white, 85 | fontSize: 16 86 | ), 87 | ), 88 | Text( 89 | userEmail, 90 | style: TextStyle( 91 | color: Colors.white, 92 | fontSize: 16 93 | ), 94 | ) 95 | ], 96 | ), 97 | Spacer(), 98 | GestureDetector( 99 | onTap: (){ 100 | sendMessage(userName); 101 | }, 102 | child: Container( 103 | padding: EdgeInsets.symmetric(horizontal: 12,vertical: 8), 104 | decoration: BoxDecoration( 105 | color: Colors.blue, 106 | borderRadius: BorderRadius.circular(24) 107 | ), 108 | child: Text("Message", 109 | style: TextStyle( 110 | color: Colors.white, 111 | fontSize: 16 112 | ),), 113 | ), 114 | ) 115 | ], 116 | ), 117 | ); 118 | } 119 | 120 | 121 | getChatRoomId(String a, String b) { 122 | if (a.substring(0, 1).codeUnitAt(0) > b.substring(0, 1).codeUnitAt(0)) { 123 | return "$b\_$a"; 124 | } else { 125 | return "$a\_$b"; 126 | } 127 | } 128 | 129 | @override 130 | void initState() { 131 | super.initState(); 132 | } 133 | 134 | 135 | 136 | @override 137 | Widget build(BuildContext context) { 138 | return Scaffold( 139 | appBar: appBarMain(context), 140 | body: isLoading ? Container( 141 | child: Center( 142 | child: CircularProgressIndicator(), 143 | ), 144 | ) : Container( 145 | child: Column( 146 | children: [ 147 | Container( 148 | padding: EdgeInsets.symmetric(horizontal: 24, vertical: 16), 149 | color: Color(0x54FFFFFF), 150 | child: Row( 151 | children: [ 152 | Expanded( 153 | child: TextField( 154 | controller: searchEditingController, 155 | style: simpleTextStyle(), 156 | decoration: InputDecoration( 157 | hintText: "search username ...", 158 | hintStyle: TextStyle( 159 | color: Colors.white, 160 | fontSize: 16, 161 | ), 162 | border: InputBorder.none 163 | ), 164 | ), 165 | ), 166 | GestureDetector( 167 | onTap: (){ 168 | initiateSearch(); 169 | }, 170 | child: Container( 171 | height: 40, 172 | width: 40, 173 | decoration: BoxDecoration( 174 | gradient: LinearGradient( 175 | colors: [ 176 | const Color(0x36FFFFFF), 177 | const Color(0x0FFFFFFF) 178 | ], 179 | begin: FractionalOffset.topLeft, 180 | end: FractionalOffset.bottomRight 181 | ), 182 | borderRadius: BorderRadius.circular(40) 183 | ), 184 | padding: EdgeInsets.all(12), 185 | child: Image.asset("assets/images/search_white.png", 186 | height: 25, width: 25,)), 187 | ) 188 | ], 189 | ), 190 | ), 191 | userList() 192 | ], 193 | ), 194 | ), 195 | ); 196 | } 197 | } 198 | 199 | 200 | -------------------------------------------------------------------------------- /lib/views/signin.dart: -------------------------------------------------------------------------------- 1 | import 'package:chatapp/helper/helperfunctions.dart'; 2 | import 'package:chatapp/helper/theme.dart'; 3 | import 'package:chatapp/services/auth.dart'; 4 | import 'package:chatapp/services/database.dart'; 5 | import 'package:chatapp/views/chatrooms.dart'; 6 | import 'package:chatapp/views/forgot_password.dart'; 7 | import 'package:chatapp/widget/widget.dart'; 8 | import 'package:cloud_firestore/cloud_firestore.dart'; 9 | import 'package:flutter/material.dart'; 10 | 11 | class SignIn extends StatefulWidget { 12 | final Function toggleView; 13 | 14 | SignIn(this.toggleView); 15 | 16 | @override 17 | _SignInState createState() => _SignInState(); 18 | } 19 | 20 | class _SignInState extends State { 21 | TextEditingController emailEditingController = new TextEditingController(); 22 | TextEditingController passwordEditingController = new TextEditingController(); 23 | 24 | AuthService authService = new AuthService(); 25 | 26 | final formKey = GlobalKey(); 27 | 28 | bool isLoading = false; 29 | 30 | signIn() async { 31 | if (formKey.currentState.validate()) { 32 | setState(() { 33 | isLoading = true; 34 | }); 35 | 36 | await authService 37 | .signInWithEmailAndPassword( 38 | emailEditingController.text, passwordEditingController.text) 39 | .then((result) async { 40 | if (result != null) { 41 | QuerySnapshot userInfoSnapshot = 42 | await DatabaseMethods().getUserInfo(emailEditingController.text); 43 | 44 | HelperFunctions.saveUserLoggedInSharedPreference(true); 45 | HelperFunctions.saveUserNameSharedPreference( 46 | userInfoSnapshot.documents[0].data["userName"]); 47 | HelperFunctions.saveUserEmailSharedPreference( 48 | userInfoSnapshot.documents[0].data["userEmail"]); 49 | 50 | Navigator.pushReplacement( 51 | context, MaterialPageRoute(builder: (context) => ChatRoom())); 52 | } else { 53 | setState(() { 54 | isLoading = false; 55 | //show snackbar 56 | }); 57 | } 58 | }); 59 | } 60 | } 61 | 62 | @override 63 | Widget build(BuildContext context) { 64 | return Scaffold( 65 | appBar: appBarMain(context), 66 | body: isLoading 67 | ? Container( 68 | child: Center(child: CircularProgressIndicator()), 69 | ) 70 | : Container( 71 | padding: EdgeInsets.symmetric(horizontal: 24), 72 | child: Column( 73 | children: [ 74 | Spacer(), 75 | Form( 76 | key: formKey, 77 | child: Column( 78 | children: [ 79 | TextFormField( 80 | validator: (val) { 81 | return RegExp( 82 | r"^[a-zA-Z0-9.a-zA-Z0-9.!#$%&'*+-/=?^_`{|}~]+@[a-zA-Z0-9]+\.[a-zA-Z]+") 83 | .hasMatch(val) 84 | ? null 85 | : "Please Enter Correct Email"; 86 | }, 87 | controller: emailEditingController, 88 | style: simpleTextStyle(), 89 | decoration: textFieldInputDecoration("email"), 90 | ), 91 | TextFormField( 92 | obscureText: true, 93 | validator: (val) { 94 | return val.length > 6 95 | ? null 96 | : "Enter Password 6+ characters"; 97 | }, 98 | style: simpleTextStyle(), 99 | controller: passwordEditingController, 100 | decoration: textFieldInputDecoration("password"), 101 | ), 102 | ], 103 | ), 104 | ), 105 | SizedBox( 106 | height: 16, 107 | ), 108 | Row( 109 | mainAxisAlignment: MainAxisAlignment.end, 110 | children: [ 111 | GestureDetector( 112 | onTap: () { 113 | Navigator.push( 114 | context, 115 | MaterialPageRoute( 116 | builder: (context) => ForgotPassword())); 117 | }, 118 | child: Container( 119 | padding: EdgeInsets.symmetric( 120 | horizontal: 16, vertical: 8), 121 | child: Text( 122 | "Forgot Password?", 123 | style: simpleTextStyle(), 124 | )), 125 | ) 126 | ], 127 | ), 128 | SizedBox( 129 | height: 16, 130 | ), 131 | GestureDetector( 132 | onTap: () { 133 | signIn(); 134 | }, 135 | child: Container( 136 | padding: EdgeInsets.symmetric(vertical: 16), 137 | decoration: BoxDecoration( 138 | borderRadius: BorderRadius.circular(30), 139 | gradient: LinearGradient( 140 | colors: [ 141 | const Color(0xff007EF4), 142 | const Color(0xff2A75BC) 143 | ], 144 | )), 145 | width: MediaQuery.of(context).size.width, 146 | child: Text( 147 | "Sign In", 148 | style: biggerTextStyle(), 149 | textAlign: TextAlign.center, 150 | ), 151 | ), 152 | ), 153 | SizedBox( 154 | height: 16, 155 | ), 156 | Container( 157 | padding: EdgeInsets.symmetric(vertical: 16), 158 | decoration: BoxDecoration( 159 | borderRadius: BorderRadius.circular(30), 160 | color: Colors.white), 161 | width: MediaQuery.of(context).size.width, 162 | child: Text( 163 | "Sign In with Google", 164 | style: 165 | TextStyle(fontSize: 17, color: CustomTheme.textColor), 166 | textAlign: TextAlign.center, 167 | ), 168 | ), 169 | SizedBox( 170 | height: 16, 171 | ), 172 | Row( 173 | mainAxisAlignment: MainAxisAlignment.center, 174 | children: [ 175 | Text( 176 | "Don't have account? ", 177 | style: simpleTextStyle(), 178 | ), 179 | GestureDetector( 180 | onTap: () { 181 | widget.toggleView(); 182 | }, 183 | child: Text( 184 | "Register now", 185 | style: TextStyle( 186 | color: Colors.white, 187 | fontSize: 16, 188 | decoration: TextDecoration.underline), 189 | ), 190 | ), 191 | ], 192 | ), 193 | SizedBox( 194 | height: 50, 195 | ) 196 | ], 197 | ), 198 | ), 199 | ); 200 | } 201 | } 202 | -------------------------------------------------------------------------------- /lib/views/signup.dart: -------------------------------------------------------------------------------- 1 | import 'package:chatapp/helper/helperfunctions.dart'; 2 | import 'package:chatapp/helper/theme.dart'; 3 | import 'package:chatapp/services/auth.dart'; 4 | import 'package:chatapp/services/database.dart'; 5 | import 'package:chatapp/views/chatrooms.dart'; 6 | import 'package:chatapp/widget/widget.dart'; 7 | import 'package:flutter/material.dart'; 8 | 9 | class SignUp extends StatefulWidget { 10 | final Function toggleView; 11 | SignUp(this.toggleView); 12 | 13 | @override 14 | _SignUpState createState() => _SignUpState(); 15 | } 16 | 17 | class _SignUpState extends State { 18 | TextEditingController emailEditingController = new TextEditingController(); 19 | TextEditingController passwordEditingController = new TextEditingController(); 20 | TextEditingController usernameEditingController = 21 | new TextEditingController(); 22 | 23 | AuthService authService = new AuthService(); 24 | DatabaseMethods databaseMethods = new DatabaseMethods(); 25 | 26 | final formKey = GlobalKey(); 27 | bool isLoading = false; 28 | 29 | singUp() async { 30 | 31 | if(formKey.currentState.validate()){ 32 | setState(() { 33 | 34 | isLoading = true; 35 | }); 36 | 37 | await authService.signUpWithEmailAndPassword(emailEditingController.text, 38 | passwordEditingController.text).then((result){ 39 | if(result != null){ 40 | 41 | Map userDataMap = { 42 | "userName" : usernameEditingController.text, 43 | "userEmail" : emailEditingController.text 44 | }; 45 | 46 | databaseMethods.addUserInfo(userDataMap); 47 | 48 | HelperFunctions.saveUserLoggedInSharedPreference(true); 49 | HelperFunctions.saveUserNameSharedPreference(usernameEditingController.text); 50 | HelperFunctions.saveUserEmailSharedPreference(emailEditingController.text); 51 | 52 | Navigator.pushReplacement(context, MaterialPageRoute( 53 | builder: (context) => ChatRoom() 54 | )); 55 | } 56 | }); 57 | } 58 | } 59 | 60 | @override 61 | Widget build(BuildContext context) { 62 | return Scaffold( 63 | appBar: appBarMain(context), 64 | body: isLoading ? Container(child: Center(child: CircularProgressIndicator(),),) : Container( 65 | padding: EdgeInsets.symmetric(horizontal: 24), 66 | child: Column( 67 | children: [ 68 | Spacer(), 69 | Form( 70 | key: formKey, 71 | child: Column( 72 | children: [ 73 | TextFormField( 74 | style: simpleTextStyle(), 75 | controller: usernameEditingController, 76 | validator: (val){ 77 | return val.isEmpty || val.length < 3 ? "Enter Username 3+ characters" : null; 78 | }, 79 | decoration: textFieldInputDecoration("username"), 80 | ), 81 | TextFormField( 82 | controller: emailEditingController, 83 | style: simpleTextStyle(), 84 | validator: (val){ 85 | return RegExp(r"^[a-zA-Z0-9.a-zA-Z0-9.!#$%&'*+-/=?^_`{|}~]+@[a-zA-Z0-9]+\.[a-zA-Z]+").hasMatch(val) ? 86 | null : "Enter correct email"; 87 | }, 88 | decoration: textFieldInputDecoration("email"), 89 | ), 90 | TextFormField( 91 | obscureText: true, 92 | style: simpleTextStyle(), 93 | decoration: textFieldInputDecoration("password"), 94 | controller: passwordEditingController, 95 | validator: (val){ 96 | return val.length < 6 ? "Enter Password 6+ characters" : null; 97 | }, 98 | 99 | ), 100 | ], 101 | ), 102 | ), 103 | SizedBox( 104 | height: 16, 105 | ), 106 | GestureDetector( 107 | onTap: (){ 108 | singUp(); 109 | }, 110 | child: Container( 111 | padding: EdgeInsets.symmetric(vertical: 16), 112 | decoration: BoxDecoration( 113 | borderRadius: BorderRadius.circular(30), 114 | gradient: LinearGradient( 115 | colors: [const Color(0xff007EF4), const Color(0xff2A75BC)], 116 | )), 117 | width: MediaQuery.of(context).size.width, 118 | child: Text( 119 | "Sign Up", 120 | style: biggerTextStyle(), 121 | textAlign: TextAlign.center, 122 | ), 123 | ), 124 | ), 125 | SizedBox( 126 | height: 16, 127 | ), 128 | Container( 129 | padding: EdgeInsets.symmetric(vertical: 16), 130 | decoration: BoxDecoration( 131 | borderRadius: BorderRadius.circular(30), color: Colors.white), 132 | width: MediaQuery.of(context).size.width, 133 | child: Text( 134 | "Sign Up with Google", 135 | style: TextStyle(fontSize: 17, color: CustomTheme.textColor), 136 | textAlign: TextAlign.center, 137 | ), 138 | ), 139 | SizedBox( 140 | height: 16, 141 | ), 142 | Row( 143 | mainAxisAlignment: MainAxisAlignment.center, 144 | children: [ 145 | Text( 146 | "Already have an account? ", 147 | style: simpleTextStyle(), 148 | ), 149 | GestureDetector( 150 | onTap: () { 151 | widget.toggleView(); 152 | }, 153 | child: Text( 154 | "SignIn now", 155 | style: TextStyle( 156 | color: Colors.white, 157 | fontSize: 16, 158 | decoration: TextDecoration.underline), 159 | ), 160 | ), 161 | ], 162 | ), 163 | SizedBox( 164 | height: 50, 165 | ) 166 | ], 167 | ), 168 | ), 169 | ); 170 | ; 171 | } 172 | } 173 | -------------------------------------------------------------------------------- /lib/widget/widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | Widget appBarMain(BuildContext context) { 4 | return AppBar( 5 | title: Image.asset( 6 | "assets/images/logo.png", 7 | height: 40, 8 | ), 9 | elevation: 0.0, 10 | centerTitle: false, 11 | ); 12 | } 13 | 14 | InputDecoration textFieldInputDecoration(String hintText) { 15 | return InputDecoration( 16 | hintText: hintText, 17 | hintStyle: TextStyle(color: Colors.white54), 18 | focusedBorder: 19 | UnderlineInputBorder(borderSide: BorderSide(color: Colors.white)), 20 | enabledBorder: 21 | UnderlineInputBorder(borderSide: BorderSide(color: Colors.white))); 22 | } 23 | 24 | TextStyle simpleTextStyle() { 25 | return TextStyle(color: Colors.white, fontSize: 16); 26 | } 27 | 28 | TextStyle biggerTextStyle() { 29 | return TextStyle(color: Colors.white, fontSize: 17); 30 | } 31 | -------------------------------------------------------------------------------- /macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/xcuserdata/ 7 | -------------------------------------------------------------------------------- /macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /macos/Flutter/GeneratedPluginRegistrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | import FlutterMacOS 6 | import Foundation 7 | 8 | import cloud_firestore 9 | import firebase_core 10 | import shared_preferences_macos 11 | 12 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 13 | FLTCloudFirestorePlugin.register(with: registry.registrar(forPlugin: "FLTCloudFirestorePlugin")) 14 | FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin")) 15 | SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) 16 | } 17 | -------------------------------------------------------------------------------- /macos/Podfile: -------------------------------------------------------------------------------- 1 | platform :osx, '10.11' 2 | 3 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 4 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 5 | 6 | project 'Runner', { 7 | 'Debug' => :debug, 8 | 'Profile' => :release, 9 | 'Release' => :release, 10 | } 11 | 12 | def parse_KV_file(file, separator='=') 13 | file_abs_path = File.expand_path(file) 14 | if !File.exists? file_abs_path 15 | return []; 16 | end 17 | pods_ary = [] 18 | skip_line_start_symbols = ["#", "/"] 19 | File.foreach(file_abs_path) { |line| 20 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } 21 | plugin = line.split(pattern=separator) 22 | if plugin.length == 2 23 | podname = plugin[0].strip() 24 | path = plugin[1].strip() 25 | podpath = File.expand_path("#{path}", file_abs_path) 26 | pods_ary.push({:name => podname, :path => podpath}); 27 | else 28 | puts "Invalid plugin specification: #{line}" 29 | end 30 | } 31 | return pods_ary 32 | end 33 | 34 | def pubspec_supports_macos(file) 35 | file_abs_path = File.expand_path(file) 36 | if !File.exists? file_abs_path 37 | return false; 38 | end 39 | File.foreach(file_abs_path) { |line| 40 | return true if line =~ /^\s*macos:/ 41 | } 42 | return false 43 | end 44 | 45 | target 'Runner' do 46 | use_frameworks! 47 | use_modular_headers! 48 | 49 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 50 | # referring to absolute paths on developers' machines. 51 | ephemeral_dir = File.join('Flutter', 'ephemeral') 52 | symlink_dir = File.join(ephemeral_dir, '.symlinks') 53 | symlink_plugins_dir = File.join(symlink_dir, 'plugins') 54 | system("rm -rf #{symlink_dir}") 55 | system("mkdir -p #{symlink_plugins_dir}") 56 | 57 | # Flutter Pods 58 | generated_xcconfig = parse_KV_file(File.join(ephemeral_dir, 'Flutter-Generated.xcconfig')) 59 | if generated_xcconfig.empty? 60 | puts "Flutter-Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first." 61 | end 62 | generated_xcconfig.map { |p| 63 | if p[:name] == 'FLUTTER_FRAMEWORK_DIR' 64 | symlink = File.join(symlink_dir, 'flutter') 65 | File.symlink(File.dirname(p[:path]), symlink) 66 | pod 'FlutterMacOS', :path => File.join(symlink, File.basename(p[:path])) 67 | end 68 | } 69 | 70 | # Plugin Pods 71 | plugin_pods = parse_KV_file('../.flutter-plugins') 72 | plugin_pods.map { |p| 73 | symlink = File.join(symlink_plugins_dir, p[:name]) 74 | File.symlink(p[:path], symlink) 75 | if pubspec_supports_macos(File.join(symlink, 'pubspec.yaml')) 76 | pod p[:name], :path => File.join(symlink, 'macos') 77 | end 78 | } 79 | end 80 | 81 | # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system. 82 | install! 'cocoapods', :disable_input_output_paths => true 83 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 51; 7 | objects = { 8 | 9 | /* Begin PBXAggregateTarget section */ 10 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { 11 | isa = PBXAggregateTarget; 12 | buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; 13 | buildPhases = ( 14 | 33CC111E2044C6BF0003C045 /* ShellScript */, 15 | ); 16 | dependencies = ( 17 | ); 18 | name = "Flutter Assemble"; 19 | productName = FLX; 20 | }; 21 | /* End PBXAggregateTarget section */ 22 | 23 | /* Begin PBXBuildFile section */ 24 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; 25 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; 26 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; 27 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; 28 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; 29 | 33D1A10422148B71006C7A3E /* FlutterMacOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */; }; 30 | 33D1A10522148B93006C7A3E /* FlutterMacOS.framework in Bundle Framework */ = {isa = PBXBuildFile; fileRef = 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 31 | D73912F022F37F9E000D13A0 /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D73912EF22F37F9E000D13A0 /* App.framework */; }; 32 | D73912F222F3801D000D13A0 /* App.framework in Bundle Framework */ = {isa = PBXBuildFile; fileRef = D73912EF22F37F9E000D13A0 /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 33 | /* End PBXBuildFile section */ 34 | 35 | /* Begin PBXContainerItemProxy section */ 36 | 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { 37 | isa = PBXContainerItemProxy; 38 | containerPortal = 33CC10E52044A3C60003C045 /* Project object */; 39 | proxyType = 1; 40 | remoteGlobalIDString = 33CC111A2044C6BA0003C045; 41 | remoteInfo = FLX; 42 | }; 43 | /* End PBXContainerItemProxy section */ 44 | 45 | /* Begin PBXCopyFilesBuildPhase section */ 46 | 33CC110E2044A8840003C045 /* Bundle Framework */ = { 47 | isa = PBXCopyFilesBuildPhase; 48 | buildActionMask = 2147483647; 49 | dstPath = ""; 50 | dstSubfolderSpec = 10; 51 | files = ( 52 | D73912F222F3801D000D13A0 /* App.framework in Bundle Framework */, 53 | 33D1A10522148B93006C7A3E /* FlutterMacOS.framework in Bundle Framework */, 54 | ); 55 | name = "Bundle Framework"; 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | /* End PBXCopyFilesBuildPhase section */ 59 | 60 | /* Begin PBXFileReference section */ 61 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; 62 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; 63 | 33CC10ED2044A3C60003C045 /* chatapp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "chatapp.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 64 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 65 | 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; 66 | 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; 67 | 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; 68 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; 69 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; 70 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; 71 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; 72 | 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FlutterMacOS.framework; path = Flutter/ephemeral/FlutterMacOS.framework; sourceTree = SOURCE_ROOT; }; 73 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; 74 | 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; 75 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; 76 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; 77 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; 78 | D73912EF22F37F9E000D13A0 /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/ephemeral/App.framework; sourceTree = SOURCE_ROOT; }; 79 | /* End PBXFileReference section */ 80 | 81 | /* Begin PBXFrameworksBuildPhase section */ 82 | 33CC10EA2044A3C60003C045 /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | D73912F022F37F9E000D13A0 /* App.framework in Frameworks */, 87 | 33D1A10422148B71006C7A3E /* FlutterMacOS.framework in Frameworks */, 88 | ); 89 | runOnlyForDeploymentPostprocessing = 0; 90 | }; 91 | /* End PBXFrameworksBuildPhase section */ 92 | 93 | /* Begin PBXGroup section */ 94 | 33BA886A226E78AF003329D5 /* Configs */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */, 98 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 99 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 100 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, 101 | ); 102 | path = Configs; 103 | sourceTree = ""; 104 | }; 105 | 33CC10E42044A3C60003C045 = { 106 | isa = PBXGroup; 107 | children = ( 108 | 33FAB671232836740065AC1E /* Runner */, 109 | 33CEB47122A05771004F2AC0 /* Flutter */, 110 | 33CC10EE2044A3C60003C045 /* Products */, 111 | D73912EC22F37F3D000D13A0 /* Frameworks */, 112 | ); 113 | sourceTree = ""; 114 | }; 115 | 33CC10EE2044A3C60003C045 /* Products */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 33CC10ED2044A3C60003C045 /* chatapp.app */, 119 | ); 120 | name = Products; 121 | sourceTree = ""; 122 | }; 123 | 33CC11242044D66E0003C045 /* Resources */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 33CC10F22044A3C60003C045 /* Assets.xcassets */, 127 | 33CC10F42044A3C60003C045 /* MainMenu.xib */, 128 | 33CC10F72044A3C60003C045 /* Info.plist */, 129 | ); 130 | name = Resources; 131 | path = ..; 132 | sourceTree = ""; 133 | }; 134 | 33CEB47122A05771004F2AC0 /* Flutter */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, 138 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, 139 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, 140 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, 141 | D73912EF22F37F9E000D13A0 /* App.framework */, 142 | 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */, 143 | ); 144 | path = Flutter; 145 | sourceTree = ""; 146 | }; 147 | 33FAB671232836740065AC1E /* Runner */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */, 151 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, 152 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */, 153 | 33E51914231749380026EE4D /* Release.entitlements */, 154 | 33CC11242044D66E0003C045 /* Resources */, 155 | 33BA886A226E78AF003329D5 /* Configs */, 156 | ); 157 | path = Runner; 158 | sourceTree = ""; 159 | }; 160 | D73912EC22F37F3D000D13A0 /* Frameworks */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | ); 164 | name = Frameworks; 165 | sourceTree = ""; 166 | }; 167 | /* End PBXGroup section */ 168 | 169 | /* Begin PBXNativeTarget section */ 170 | 33CC10EC2044A3C60003C045 /* Runner */ = { 171 | isa = PBXNativeTarget; 172 | buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; 173 | buildPhases = ( 174 | 33CC10E92044A3C60003C045 /* Sources */, 175 | 33CC10EA2044A3C60003C045 /* Frameworks */, 176 | 33CC10EB2044A3C60003C045 /* Resources */, 177 | 33CC110E2044A8840003C045 /* Bundle Framework */, 178 | 3399D490228B24CF009A79C7 /* ShellScript */, 179 | ); 180 | buildRules = ( 181 | ); 182 | dependencies = ( 183 | 33CC11202044C79F0003C045 /* PBXTargetDependency */, 184 | ); 185 | name = Runner; 186 | productName = Runner; 187 | productReference = 33CC10ED2044A3C60003C045 /* chatapp.app */; 188 | productType = "com.apple.product-type.application"; 189 | }; 190 | /* End PBXNativeTarget section */ 191 | 192 | /* Begin PBXProject section */ 193 | 33CC10E52044A3C60003C045 /* Project object */ = { 194 | isa = PBXProject; 195 | attributes = { 196 | LastSwiftUpdateCheck = 0920; 197 | LastUpgradeCheck = 0930; 198 | ORGANIZATIONNAME = "The Flutter Authors"; 199 | TargetAttributes = { 200 | 33CC10EC2044A3C60003C045 = { 201 | CreatedOnToolsVersion = 9.2; 202 | LastSwiftMigration = 1100; 203 | ProvisioningStyle = Automatic; 204 | SystemCapabilities = { 205 | com.apple.Sandbox = { 206 | enabled = 1; 207 | }; 208 | }; 209 | }; 210 | 33CC111A2044C6BA0003C045 = { 211 | CreatedOnToolsVersion = 9.2; 212 | ProvisioningStyle = Manual; 213 | }; 214 | }; 215 | }; 216 | buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; 217 | compatibilityVersion = "Xcode 8.0"; 218 | developmentRegion = en; 219 | hasScannedForEncodings = 0; 220 | knownRegions = ( 221 | en, 222 | Base, 223 | ); 224 | mainGroup = 33CC10E42044A3C60003C045; 225 | productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; 226 | projectDirPath = ""; 227 | projectRoot = ""; 228 | targets = ( 229 | 33CC10EC2044A3C60003C045 /* Runner */, 230 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */, 231 | ); 232 | }; 233 | /* End PBXProject section */ 234 | 235 | /* Begin PBXResourcesBuildPhase section */ 236 | 33CC10EB2044A3C60003C045 /* Resources */ = { 237 | isa = PBXResourcesBuildPhase; 238 | buildActionMask = 2147483647; 239 | files = ( 240 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, 241 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, 242 | ); 243 | runOnlyForDeploymentPostprocessing = 0; 244 | }; 245 | /* End PBXResourcesBuildPhase section */ 246 | 247 | /* Begin PBXShellScriptBuildPhase section */ 248 | 3399D490228B24CF009A79C7 /* ShellScript */ = { 249 | isa = PBXShellScriptBuildPhase; 250 | buildActionMask = 2147483647; 251 | files = ( 252 | ); 253 | inputFileListPaths = ( 254 | ); 255 | inputPaths = ( 256 | ); 257 | outputFileListPaths = ( 258 | ); 259 | outputPaths = ( 260 | ); 261 | runOnlyForDeploymentPostprocessing = 0; 262 | shellPath = /bin/sh; 263 | shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename\n"; 264 | }; 265 | 33CC111E2044C6BF0003C045 /* ShellScript */ = { 266 | isa = PBXShellScriptBuildPhase; 267 | buildActionMask = 2147483647; 268 | files = ( 269 | ); 270 | inputFileListPaths = ( 271 | Flutter/ephemeral/FlutterInputs.xcfilelist, 272 | ); 273 | inputPaths = ( 274 | Flutter/ephemeral/tripwire, 275 | ); 276 | outputFileListPaths = ( 277 | Flutter/ephemeral/FlutterOutputs.xcfilelist, 278 | ); 279 | outputPaths = ( 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | shellPath = /bin/sh; 283 | shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh\ntouch Flutter/ephemeral/tripwire\n"; 284 | }; 285 | /* End PBXShellScriptBuildPhase section */ 286 | 287 | /* Begin PBXSourcesBuildPhase section */ 288 | 33CC10E92044A3C60003C045 /* Sources */ = { 289 | isa = PBXSourcesBuildPhase; 290 | buildActionMask = 2147483647; 291 | files = ( 292 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, 293 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, 294 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, 295 | ); 296 | runOnlyForDeploymentPostprocessing = 0; 297 | }; 298 | /* End PBXSourcesBuildPhase section */ 299 | 300 | /* Begin PBXTargetDependency section */ 301 | 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { 302 | isa = PBXTargetDependency; 303 | target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; 304 | targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; 305 | }; 306 | /* End PBXTargetDependency section */ 307 | 308 | /* Begin PBXVariantGroup section */ 309 | 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { 310 | isa = PBXVariantGroup; 311 | children = ( 312 | 33CC10F52044A3C60003C045 /* Base */, 313 | ); 314 | name = MainMenu.xib; 315 | path = Runner; 316 | sourceTree = ""; 317 | }; 318 | /* End PBXVariantGroup section */ 319 | 320 | /* Begin XCBuildConfiguration section */ 321 | 338D0CE9231458BD00FA5F75 /* Profile */ = { 322 | isa = XCBuildConfiguration; 323 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 324 | buildSettings = { 325 | ALWAYS_SEARCH_USER_PATHS = NO; 326 | CLANG_ANALYZER_NONNULL = YES; 327 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 328 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 329 | CLANG_CXX_LIBRARY = "libc++"; 330 | CLANG_ENABLE_MODULES = YES; 331 | CLANG_ENABLE_OBJC_ARC = YES; 332 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 333 | CLANG_WARN_BOOL_CONVERSION = YES; 334 | CLANG_WARN_CONSTANT_CONVERSION = YES; 335 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 336 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 337 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 338 | CLANG_WARN_EMPTY_BODY = YES; 339 | CLANG_WARN_ENUM_CONVERSION = YES; 340 | CLANG_WARN_INFINITE_RECURSION = YES; 341 | CLANG_WARN_INT_CONVERSION = YES; 342 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 343 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 344 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 345 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 346 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 347 | CODE_SIGN_IDENTITY = "-"; 348 | COPY_PHASE_STRIP = NO; 349 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 350 | ENABLE_NS_ASSERTIONS = NO; 351 | ENABLE_STRICT_OBJC_MSGSEND = YES; 352 | GCC_C_LANGUAGE_STANDARD = gnu11; 353 | GCC_NO_COMMON_BLOCKS = YES; 354 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 355 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 356 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 357 | GCC_WARN_UNUSED_FUNCTION = YES; 358 | GCC_WARN_UNUSED_VARIABLE = YES; 359 | MACOSX_DEPLOYMENT_TARGET = 10.11; 360 | MTL_ENABLE_DEBUG_INFO = NO; 361 | SDKROOT = macosx; 362 | SWIFT_COMPILATION_MODE = wholemodule; 363 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 364 | }; 365 | name = Profile; 366 | }; 367 | 338D0CEA231458BD00FA5F75 /* Profile */ = { 368 | isa = XCBuildConfiguration; 369 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; 370 | buildSettings = { 371 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 372 | CLANG_ENABLE_MODULES = YES; 373 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; 374 | CODE_SIGN_STYLE = Automatic; 375 | COMBINE_HIDPI_IMAGES = YES; 376 | FRAMEWORK_SEARCH_PATHS = ( 377 | "$(inherited)", 378 | "$(PROJECT_DIR)/Flutter/ephemeral", 379 | ); 380 | INFOPLIST_FILE = Runner/Info.plist; 381 | LD_RUNPATH_SEARCH_PATHS = ( 382 | "$(inherited)", 383 | "@executable_path/../Frameworks", 384 | ); 385 | PROVISIONING_PROFILE_SPECIFIER = ""; 386 | SWIFT_VERSION = 5.0; 387 | }; 388 | name = Profile; 389 | }; 390 | 338D0CEB231458BD00FA5F75 /* Profile */ = { 391 | isa = XCBuildConfiguration; 392 | buildSettings = { 393 | CODE_SIGN_STYLE = Manual; 394 | PRODUCT_NAME = "$(TARGET_NAME)"; 395 | }; 396 | name = Profile; 397 | }; 398 | 33CC10F92044A3C60003C045 /* Debug */ = { 399 | isa = XCBuildConfiguration; 400 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 401 | buildSettings = { 402 | ALWAYS_SEARCH_USER_PATHS = NO; 403 | CLANG_ANALYZER_NONNULL = YES; 404 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 405 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 406 | CLANG_CXX_LIBRARY = "libc++"; 407 | CLANG_ENABLE_MODULES = YES; 408 | CLANG_ENABLE_OBJC_ARC = YES; 409 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 410 | CLANG_WARN_BOOL_CONVERSION = YES; 411 | CLANG_WARN_CONSTANT_CONVERSION = YES; 412 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 413 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 414 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 415 | CLANG_WARN_EMPTY_BODY = YES; 416 | CLANG_WARN_ENUM_CONVERSION = YES; 417 | CLANG_WARN_INFINITE_RECURSION = YES; 418 | CLANG_WARN_INT_CONVERSION = YES; 419 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 420 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 421 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 422 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 423 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 424 | CODE_SIGN_IDENTITY = "-"; 425 | COPY_PHASE_STRIP = NO; 426 | DEBUG_INFORMATION_FORMAT = dwarf; 427 | ENABLE_STRICT_OBJC_MSGSEND = YES; 428 | ENABLE_TESTABILITY = YES; 429 | GCC_C_LANGUAGE_STANDARD = gnu11; 430 | GCC_DYNAMIC_NO_PIC = NO; 431 | GCC_NO_COMMON_BLOCKS = YES; 432 | GCC_OPTIMIZATION_LEVEL = 0; 433 | GCC_PREPROCESSOR_DEFINITIONS = ( 434 | "DEBUG=1", 435 | "$(inherited)", 436 | ); 437 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 438 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 439 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 440 | GCC_WARN_UNUSED_FUNCTION = YES; 441 | GCC_WARN_UNUSED_VARIABLE = YES; 442 | MACOSX_DEPLOYMENT_TARGET = 10.11; 443 | MTL_ENABLE_DEBUG_INFO = YES; 444 | ONLY_ACTIVE_ARCH = YES; 445 | SDKROOT = macosx; 446 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 447 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 448 | }; 449 | name = Debug; 450 | }; 451 | 33CC10FA2044A3C60003C045 /* Release */ = { 452 | isa = XCBuildConfiguration; 453 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 454 | buildSettings = { 455 | ALWAYS_SEARCH_USER_PATHS = NO; 456 | CLANG_ANALYZER_NONNULL = YES; 457 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 458 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 459 | CLANG_CXX_LIBRARY = "libc++"; 460 | CLANG_ENABLE_MODULES = YES; 461 | CLANG_ENABLE_OBJC_ARC = YES; 462 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 463 | CLANG_WARN_BOOL_CONVERSION = YES; 464 | CLANG_WARN_CONSTANT_CONVERSION = YES; 465 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 466 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 467 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 468 | CLANG_WARN_EMPTY_BODY = YES; 469 | CLANG_WARN_ENUM_CONVERSION = YES; 470 | CLANG_WARN_INFINITE_RECURSION = YES; 471 | CLANG_WARN_INT_CONVERSION = YES; 472 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 473 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 474 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 475 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 476 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 477 | CODE_SIGN_IDENTITY = "-"; 478 | COPY_PHASE_STRIP = NO; 479 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 480 | ENABLE_NS_ASSERTIONS = NO; 481 | ENABLE_STRICT_OBJC_MSGSEND = YES; 482 | GCC_C_LANGUAGE_STANDARD = gnu11; 483 | GCC_NO_COMMON_BLOCKS = YES; 484 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 485 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 486 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 487 | GCC_WARN_UNUSED_FUNCTION = YES; 488 | GCC_WARN_UNUSED_VARIABLE = YES; 489 | MACOSX_DEPLOYMENT_TARGET = 10.11; 490 | MTL_ENABLE_DEBUG_INFO = NO; 491 | SDKROOT = macosx; 492 | SWIFT_COMPILATION_MODE = wholemodule; 493 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 494 | }; 495 | name = Release; 496 | }; 497 | 33CC10FC2044A3C60003C045 /* Debug */ = { 498 | isa = XCBuildConfiguration; 499 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; 500 | buildSettings = { 501 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 502 | CLANG_ENABLE_MODULES = YES; 503 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; 504 | CODE_SIGN_STYLE = Automatic; 505 | COMBINE_HIDPI_IMAGES = YES; 506 | FRAMEWORK_SEARCH_PATHS = ( 507 | "$(inherited)", 508 | "$(PROJECT_DIR)/Flutter/ephemeral", 509 | ); 510 | INFOPLIST_FILE = Runner/Info.plist; 511 | LD_RUNPATH_SEARCH_PATHS = ( 512 | "$(inherited)", 513 | "@executable_path/../Frameworks", 514 | ); 515 | PROVISIONING_PROFILE_SPECIFIER = ""; 516 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 517 | SWIFT_VERSION = 5.0; 518 | }; 519 | name = Debug; 520 | }; 521 | 33CC10FD2044A3C60003C045 /* Release */ = { 522 | isa = XCBuildConfiguration; 523 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; 524 | buildSettings = { 525 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 526 | CLANG_ENABLE_MODULES = YES; 527 | CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; 528 | CODE_SIGN_STYLE = Automatic; 529 | COMBINE_HIDPI_IMAGES = YES; 530 | FRAMEWORK_SEARCH_PATHS = ( 531 | "$(inherited)", 532 | "$(PROJECT_DIR)/Flutter/ephemeral", 533 | ); 534 | INFOPLIST_FILE = Runner/Info.plist; 535 | LD_RUNPATH_SEARCH_PATHS = ( 536 | "$(inherited)", 537 | "@executable_path/../Frameworks", 538 | ); 539 | PROVISIONING_PROFILE_SPECIFIER = ""; 540 | SWIFT_VERSION = 5.0; 541 | }; 542 | name = Release; 543 | }; 544 | 33CC111C2044C6BA0003C045 /* Debug */ = { 545 | isa = XCBuildConfiguration; 546 | buildSettings = { 547 | CODE_SIGN_STYLE = Manual; 548 | PRODUCT_NAME = "$(TARGET_NAME)"; 549 | }; 550 | name = Debug; 551 | }; 552 | 33CC111D2044C6BA0003C045 /* Release */ = { 553 | isa = XCBuildConfiguration; 554 | buildSettings = { 555 | CODE_SIGN_STYLE = Automatic; 556 | PRODUCT_NAME = "$(TARGET_NAME)"; 557 | }; 558 | name = Release; 559 | }; 560 | /* End XCBuildConfiguration section */ 561 | 562 | /* Begin XCConfigurationList section */ 563 | 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { 564 | isa = XCConfigurationList; 565 | buildConfigurations = ( 566 | 33CC10F92044A3C60003C045 /* Debug */, 567 | 33CC10FA2044A3C60003C045 /* Release */, 568 | 338D0CE9231458BD00FA5F75 /* Profile */, 569 | ); 570 | defaultConfigurationIsVisible = 0; 571 | defaultConfigurationName = Release; 572 | }; 573 | 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { 574 | isa = XCConfigurationList; 575 | buildConfigurations = ( 576 | 33CC10FC2044A3C60003C045 /* Debug */, 577 | 33CC10FD2044A3C60003C045 /* Release */, 578 | 338D0CEA231458BD00FA5F75 /* Profile */, 579 | ); 580 | defaultConfigurationIsVisible = 0; 581 | defaultConfigurationName = Release; 582 | }; 583 | 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { 584 | isa = XCConfigurationList; 585 | buildConfigurations = ( 586 | 33CC111C2044C6BA0003C045 /* Debug */, 587 | 33CC111D2044C6BA0003C045 /* Release */, 588 | 338D0CEB231458BD00FA5F75 /* Profile */, 589 | ); 590 | defaultConfigurationIsVisible = 0; 591 | defaultConfigurationName = Release; 592 | }; 593 | /* End XCConfigurationList section */ 594 | }; 595 | rootObject = 33CC10E52044A3C60003C045 /* Project object */; 596 | } 597 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 64 | 66 | 72 | 73 | 74 | 75 | 76 | 77 | 83 | 85 | 91 | 92 | 93 | 94 | 96 | 97 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | @NSApplicationMain 5 | class AppDelegate: FlutterAppDelegate { 6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { 7 | return true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "app_icon_16.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "app_icon_32.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "app_icon_32.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "app_icon_64.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "app_icon_128.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "app_icon_256.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "app_icon_256.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "app_icon_512.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "app_icon_512.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "app_icon_1024.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /macos/Runner/Base.lproj/MainMenu.xib: -------------------------------------------------------------------------------- 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 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | -------------------------------------------------------------------------------- /macos/Runner/Configs/AppInfo.xcconfig: -------------------------------------------------------------------------------- 1 | // Application-level settings for the Runner target. 2 | // 3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the 4 | // future. If not, the values below would default to using the project name when this becomes a 5 | // 'flutter create' template. 6 | 7 | // The application's name. By default this is also the title of the Flutter window. 8 | PRODUCT_NAME = chatapp 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.chatapp 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2020 com.example. All rights reserved. 15 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Debug.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Release.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Warnings.xcconfig: -------------------------------------------------------------------------------- 1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings 2 | GCC_WARN_UNDECLARED_SELECTOR = YES 3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES 4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE 5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES 6 | CLANG_WARN_PRAGMA_PACK = YES 7 | CLANG_WARN_STRICT_PROTOTYPES = YES 8 | CLANG_WARN_COMMA = YES 9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES 10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES 11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES 12 | GCC_WARN_SHADOW = YES 13 | CLANG_WARN_UNREACHABLE_CODE = YES 14 | -------------------------------------------------------------------------------- /macos/Runner/DebugProfile.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.cs.allow-jit 8 | 9 | com.apple.security.network.server 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /macos/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | $(PRODUCT_COPYRIGHT) 27 | NSMainNibFile 28 | MainMenu 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController.init() 7 | let windowFrame = self.frame 8 | self.contentViewController = flutterViewController 9 | self.setFrame(windowFrame, display: true) 10 | 11 | RegisterGeneratedPlugins(registry: flutterViewController) 12 | 13 | super.awakeFromNib() 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.0.13" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.6.0" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.4.1" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.0.0" 32 | charcode: 33 | dependency: transitive 34 | description: 35 | name: charcode 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.3" 39 | cloud_firestore: 40 | dependency: "direct main" 41 | description: 42 | name: cloud_firestore 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "0.13.5" 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: "1.1.0" 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: "0.1.1+2" 60 | collection: 61 | dependency: transitive 62 | description: 63 | name: collection 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "1.14.12" 67 | convert: 68 | dependency: transitive 69 | description: 70 | name: convert 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "2.1.1" 74 | crypto: 75 | dependency: transitive 76 | description: 77 | name: crypto 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "2.1.4" 81 | cupertino_icons: 82 | dependency: "direct main" 83 | description: 84 | name: cupertino_icons 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "0.1.3" 88 | firebase: 89 | dependency: transitive 90 | description: 91 | name: firebase 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "7.3.0" 95 | firebase_auth: 96 | dependency: "direct main" 97 | description: 98 | name: firebase_auth 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "0.15.4" 102 | firebase_auth_platform_interface: 103 | dependency: transitive 104 | description: 105 | name: firebase_auth_platform_interface 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "1.1.7" 109 | firebase_auth_web: 110 | dependency: transitive 111 | description: 112 | name: firebase_auth_web 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "0.1.2" 116 | firebase_core: 117 | dependency: transitive 118 | description: 119 | name: firebase_core 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "0.4.4+3" 123 | firebase_core_platform_interface: 124 | dependency: transitive 125 | description: 126 | name: firebase_core_platform_interface 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "1.0.4" 130 | firebase_core_web: 131 | dependency: transitive 132 | description: 133 | name: firebase_core_web 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "0.1.1+2" 137 | flutter: 138 | dependency: "direct main" 139 | description: flutter 140 | source: sdk 141 | version: "0.0.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 | google_sign_in: 153 | dependency: "direct main" 154 | description: 155 | name: google_sign_in 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "4.4.3" 159 | google_sign_in_platform_interface: 160 | dependency: transitive 161 | description: 162 | name: google_sign_in_platform_interface 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "1.1.1" 166 | google_sign_in_web: 167 | dependency: transitive 168 | description: 169 | name: google_sign_in_web 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "0.9.1" 173 | http: 174 | dependency: transitive 175 | description: 176 | name: http 177 | url: "https://pub.dartlang.org" 178 | source: hosted 179 | version: "0.12.1" 180 | http_parser: 181 | dependency: transitive 182 | description: 183 | name: http_parser 184 | url: "https://pub.dartlang.org" 185 | source: hosted 186 | version: "3.1.4" 187 | image: 188 | dependency: transitive 189 | description: 190 | name: image 191 | url: "https://pub.dartlang.org" 192 | source: hosted 193 | version: "2.1.12" 194 | js: 195 | dependency: transitive 196 | description: 197 | name: js 198 | url: "https://pub.dartlang.org" 199 | source: hosted 200 | version: "0.6.1+1" 201 | matcher: 202 | dependency: transitive 203 | description: 204 | name: matcher 205 | url: "https://pub.dartlang.org" 206 | source: hosted 207 | version: "0.12.6" 208 | meta: 209 | dependency: transitive 210 | description: 211 | name: meta 212 | url: "https://pub.dartlang.org" 213 | source: hosted 214 | version: "1.1.8" 215 | path: 216 | dependency: transitive 217 | description: 218 | name: path 219 | url: "https://pub.dartlang.org" 220 | source: hosted 221 | version: "1.6.4" 222 | pedantic: 223 | dependency: transitive 224 | description: 225 | name: pedantic 226 | url: "https://pub.dartlang.org" 227 | source: hosted 228 | version: "1.9.0" 229 | petitparser: 230 | dependency: transitive 231 | description: 232 | name: petitparser 233 | url: "https://pub.dartlang.org" 234 | source: hosted 235 | version: "3.0.2" 236 | plugin_platform_interface: 237 | dependency: transitive 238 | description: 239 | name: plugin_platform_interface 240 | url: "https://pub.dartlang.org" 241 | source: hosted 242 | version: "1.0.2" 243 | quiver: 244 | dependency: transitive 245 | description: 246 | name: quiver 247 | url: "https://pub.dartlang.org" 248 | source: hosted 249 | version: "2.1.3" 250 | random_string: 251 | dependency: "direct main" 252 | description: 253 | name: random_string 254 | url: "https://pub.dartlang.org" 255 | source: hosted 256 | version: "2.0.1" 257 | shared_preferences: 258 | dependency: "direct main" 259 | description: 260 | name: shared_preferences 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "0.5.7" 264 | shared_preferences_macos: 265 | dependency: transitive 266 | description: 267 | name: shared_preferences_macos 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "0.0.1+7" 271 | shared_preferences_platform_interface: 272 | dependency: transitive 273 | description: 274 | name: shared_preferences_platform_interface 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "1.0.3" 278 | shared_preferences_web: 279 | dependency: transitive 280 | description: 281 | name: shared_preferences_web 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "0.1.2+4" 285 | sky_engine: 286 | dependency: transitive 287 | description: flutter 288 | source: sdk 289 | version: "0.0.99" 290 | source_span: 291 | dependency: transitive 292 | description: 293 | name: source_span 294 | url: "https://pub.dartlang.org" 295 | source: hosted 296 | version: "1.7.0" 297 | stack_trace: 298 | dependency: transitive 299 | description: 300 | name: stack_trace 301 | url: "https://pub.dartlang.org" 302 | source: hosted 303 | version: "1.9.3" 304 | stream_channel: 305 | dependency: transitive 306 | description: 307 | name: stream_channel 308 | url: "https://pub.dartlang.org" 309 | source: hosted 310 | version: "2.0.0" 311 | string_scanner: 312 | dependency: transitive 313 | description: 314 | name: string_scanner 315 | url: "https://pub.dartlang.org" 316 | source: hosted 317 | version: "1.0.5" 318 | term_glyph: 319 | dependency: transitive 320 | description: 321 | name: term_glyph 322 | url: "https://pub.dartlang.org" 323 | source: hosted 324 | version: "1.1.0" 325 | test_api: 326 | dependency: transitive 327 | description: 328 | name: test_api 329 | url: "https://pub.dartlang.org" 330 | source: hosted 331 | version: "0.2.15" 332 | typed_data: 333 | dependency: transitive 334 | description: 335 | name: typed_data 336 | url: "https://pub.dartlang.org" 337 | source: hosted 338 | version: "1.1.6" 339 | vector_math: 340 | dependency: transitive 341 | description: 342 | name: vector_math 343 | url: "https://pub.dartlang.org" 344 | source: hosted 345 | version: "2.0.8" 346 | xml: 347 | dependency: transitive 348 | description: 349 | name: xml 350 | url: "https://pub.dartlang.org" 351 | source: hosted 352 | version: "3.7.0" 353 | sdks: 354 | dart: ">=2.7.0 <3.0.0" 355 | flutter: ">=1.12.13+hotfix.5 <2.0.0" 356 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: chatapp 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.7.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: ^0.1.3 31 | google_sign_in: 4.4.3 32 | firebase_auth: 0.15.4 33 | shared_preferences: ^0.5.6+3 34 | random_string: ^2.0.1 35 | cloud_firestore: ^0.13.5 36 | 37 | dev_dependencies: 38 | flutter_test: 39 | sdk: flutter 40 | 41 | # For information on the generic Dart part of this file, see the 42 | # following page: https://dart.dev/tools/pub/pubspec 43 | 44 | # The following section is specific to Flutter. 45 | flutter: 46 | 47 | # The following line ensures that the Material Icons font is 48 | # included with your application, so that you can use the icons in 49 | # the material Icons class. 50 | uses-material-design: true 51 | 52 | # To add assets to your application, add an assets section, like this: 53 | assets: 54 | - assets/images/ 55 | # - images/a_dot_ham.jpeg 56 | 57 | # An image asset can refer to one or more resolution-specific "variants", see 58 | # https://flutter.dev/assets-and-images/#resolution-aware. 59 | 60 | # For details regarding adding assets from package dependencies, see 61 | # https://flutter.dev/assets-and-images/#from-packages 62 | 63 | # To add custom fonts to your application, add a fonts section here, 64 | # in this "flutter" section. Each entry in this list should have a 65 | # "family" key with the font family name, and a "fonts" key with a 66 | # list giving the asset and other descriptors for the font. For 67 | # example: 68 | fonts: 69 | - family: OverpassRegular 70 | fonts: 71 | - asset: assets/fonts/overpass_regular.otf 72 | # - asset: fonts/Schyler-Italic.ttf 73 | # style: italic 74 | # - family: Trajan Pro 75 | # fonts: 76 | # - asset: fonts/TrajanPro.ttf 77 | # - asset: fonts/TrajanPro_Bold.ttf 78 | # weight: 700 79 | # 80 | # For details regarding fonts from package dependencies, 81 | # see https://flutter.dev/custom-fonts/#from-packages 82 | -------------------------------------------------------------------------------- /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:chatapp/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 | -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/web/favicon.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theindianappguy/FlutterChatAppTutorial/fbc9129e92295ab3d4ca62e81001e47b6c3c2fd0/web/icons/Icon-512.png -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | chatapp 18 | 19 | 20 | 21 | 24 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "chatapp", 3 | "short_name": "chatapp", 4 | "start_url": ".", 5 | "display": "minimal-ui", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | } 22 | ] 23 | } 24 | --------------------------------------------------------------------------------