├── ios ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist ├── .gitignore ├── Podfile.lock └── Podfile ├── web ├── favicon.png ├── icons │ ├── Icon-192.png │ └── Icon-512.png ├── manifest.json └── index.html ├── screenshots ├── 1.png ├── 2.png ├── 3.png ├── 4.png ├── 5.png └── 6.png ├── android ├── .settings │ └── org.eclipse.buildship.core.prefs ├── gradle.properties ├── .gitignore ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ └── values │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── tcp_chat │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .project ├── settings.gradle └── build.gradle ├── macos ├── .gitignore ├── Runner │ ├── Configs │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ ├── Warnings.xcconfig │ │ └── AppInfo.xcconfig │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ ├── app_icon_16.png │ │ │ ├── app_icon_32.png │ │ │ ├── app_icon_64.png │ │ │ ├── app_icon_1024.png │ │ │ ├── app_icon_128.png │ │ │ ├── app_icon_256.png │ │ │ ├── app_icon_512.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Release.entitlements │ ├── MainFlutterWindow.swift │ ├── DebugProfile.entitlements │ ├── Info.plist │ └── Base.lproj │ │ └── MainMenu.xib ├── Flutter │ ├── Flutter-Debug.xcconfig │ ├── Flutter-Release.xcconfig │ └── GeneratedPluginRegistrant.swift ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Podfile.lock └── Podfile ├── lib ├── core │ ├── services │ │ └── providerRegistrar.dart │ ├── model │ │ ├── tcpData.dart │ │ └── message.dart │ └── viewmodel │ │ └── server_vm.dart ├── utils │ ├── margin.dart │ └── navigation.dart ├── main.dart ├── widgets │ ├── messageWidget.dart │ └── qrDialog.dart └── views │ ├── intersit │ ├── intersit.dart │ ├── serve.dart │ └── client.dart │ └── home.dart ├── .metadata ├── README.md ├── .gitignore ├── test └── widget_test.dart ├── pubspec.yaml └── pubspec.lock /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/web/favicon.png -------------------------------------------------------------------------------- /screenshots/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/screenshots/1.png -------------------------------------------------------------------------------- /screenshots/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/screenshots/2.png -------------------------------------------------------------------------------- /screenshots/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/screenshots/3.png -------------------------------------------------------------------------------- /screenshots/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/screenshots/4.png -------------------------------------------------------------------------------- /screenshots/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/screenshots/5.png -------------------------------------------------------------------------------- /screenshots/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/screenshots/6.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/web/icons/Icon-512.png -------------------------------------------------------------------------------- /android/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir= 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/xcuserdata/ 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/tcp_chat/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/tcp_chat/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com..tcp_chat 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/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 | -------------------------------------------------------------------------------- /lib/core/services/providerRegistrar.dart: -------------------------------------------------------------------------------- 1 | import 'package:provider/provider.dart'; 2 | import 'package:provider/single_child_widget.dart'; 3 | import 'package:tcp_chat/core/viewmodel/server_vm.dart'; 4 | 5 | final registerProviders = [ 6 | ChangeNotifierProvider(create: (_) => ServerViewModel()), 7 | ]; 8 | -------------------------------------------------------------------------------- /macos/Runner.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/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.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: 66eb92e6259687c6e3434e9c76842b0848775c6b 8 | channel: dev 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /macos/Flutter/GeneratedPluginRegistrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | import FlutterMacOS 6 | import Foundation 7 | 8 | import path_provider_macos 9 | 10 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 11 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) 12 | } 13 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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.client 10 | 11 | com.apple.security.network.server 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | android 4 | Project android created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.buildship.core.gradleprojectbuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.buildship.core.gradleprojectnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /lib/core/model/tcpData.dart: -------------------------------------------------------------------------------- 1 | class TCPData { 2 | String ip,name; 3 | int port; 4 | 5 | TCPData({this.ip, this.port, this.name}); 6 | 7 | TCPData.fromJson(Map json) { 8 | ip = json['ip']; 9 | port = json['port']; 10 | name = json['name']; 11 | } 12 | 13 | Map toJson() { 14 | final Map data = new Map(); 15 | data['ip'] = this.ip; 16 | data['port'] = this.port; 17 | data['name'] = this.name; 18 | return data; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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 = tcp_chat 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = com..tcpChat 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2020 com.. All rights reserved. 15 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tcp_chat", 3 | "short_name": "tcp_chat", 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.61' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /lib/core/model/message.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class Message { 4 | //Message content 5 | String message; 6 | //User who sent message, 0-current user, 1-other user 7 | int user; 8 | String name; 9 | bool isBold; 10 | 11 | Message({ 12 | @required this.message, 13 | this.user, 14 | this.name, 15 | this.isBold = false, 16 | }); 17 | 18 | Message.fromJson(Map json) { 19 | message = json['message']; 20 | name = json['name']; 21 | } 22 | 23 | Map toJson() { 24 | final Map data = new Map(); 25 | data['message'] = this.message; 26 | data['name'] = this.name; 27 | return data; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /lib/utils/margin.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class XMargin extends StatelessWidget { 4 | final double x; 5 | const XMargin(this.x); 6 | @override 7 | Widget build(BuildContext context) { 8 | return SizedBox(width: x); 9 | } 10 | } 11 | 12 | class YMargin extends StatelessWidget { 13 | final double y; 14 | const YMargin(this.y); 15 | @override 16 | Widget build(BuildContext context) { 17 | return SizedBox(height: y); 18 | } 19 | } 20 | 21 | double screenHeight(BuildContext context, {double percent = 1}) => 22 | MediaQuery.of(context).size.height * percent; 23 | 24 | double screenWidth(BuildContext context, {double percent = 1}) => 25 | MediaQuery.of(context).size.width * percent; 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # tcp_chat 2 | 3 | P2P Chat Application that uses IP Sockets over a Network to Communicate. 4 | 5 |

6 | 7 | 8 | 9 |

10 |

11 | 12 | 13 |

14 |

15 | 16 |

17 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:google_fonts/google_fonts.dart'; 3 | import 'package:provider/provider.dart'; 4 | import 'package:tcp_chat/views/intersit/intersit.dart'; 5 | 6 | import 'core/services/providerRegistrar.dart'; 7 | 8 | void main() { 9 | runApp(MyApp()); 10 | } 11 | 12 | class MyApp extends StatelessWidget { 13 | // This widget is the root of your application. 14 | @override 15 | Widget build(BuildContext context) { 16 | return MultiProvider( 17 | providers: registerProviders, 18 | child: MaterialApp( 19 | title: 'TCP|Chat', 20 | debugShowCheckedModeBanner: false, 21 | theme: ThemeData( 22 | textTheme: GoogleFonts.nunitoTextTheme( 23 | Theme.of(context).textTheme, 24 | ), 25 | primarySwatch: Colors.red, 26 | primaryColor: Colors.red[800], 27 | ), 28 | home: Intersit(), 29 | ), 30 | ); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /macos/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - FlutterMacOS (1.0.0) 3 | - path_provider (0.0.1) 4 | - path_provider_macos (0.0.1): 5 | - FlutterMacOS 6 | 7 | DEPENDENCIES: 8 | - FlutterMacOS (from `Flutter/ephemeral/.symlinks/flutter/darwin-x64`) 9 | - path_provider (from `Flutter/ephemeral/.symlinks/plugins/path_provider/macos`) 10 | - path_provider_macos (from `Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos`) 11 | 12 | EXTERNAL SOURCES: 13 | FlutterMacOS: 14 | :path: Flutter/ephemeral/.symlinks/flutter/darwin-x64 15 | path_provider: 16 | :path: Flutter/ephemeral/.symlinks/plugins/path_provider/macos 17 | path_provider_macos: 18 | :path: Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos 19 | 20 | SPEC CHECKSUMS: 21 | FlutterMacOS: 15bea8a44d2fa024068daa0140371c020b4b6ff9 22 | path_provider: e0848572d1d38b9a7dd099e79cf83f5b7e2cde9f 23 | path_provider_macos: a0a3fd666cb7cd0448e936fb4abad4052961002b 24 | 25 | PODFILE CHECKSUM: d8ba9b3e9e93c62c74a660b46c6fcb09f03991a7 26 | 27 | COCOAPODS: 1.8.4 28 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:tcp_chat/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | tcp_chat 18 | 19 | 20 | 21 | 24 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - barcode_scan (0.0.1): 3 | - Flutter 4 | - MTBBarcodeScanner 5 | - SwiftProtobuf 6 | - Flutter (1.0.0) 7 | - get_ip (0.0.1): 8 | - Flutter 9 | - MTBBarcodeScanner (5.0.11) 10 | - path_provider (0.0.1): 11 | - Flutter 12 | - path_provider_macos (0.0.1): 13 | - Flutter 14 | - SwiftProtobuf (1.8.0) 15 | 16 | DEPENDENCIES: 17 | - barcode_scan (from `.symlinks/plugins/barcode_scan/ios`) 18 | - Flutter (from `Flutter`) 19 | - get_ip (from `.symlinks/plugins/get_ip/ios`) 20 | - path_provider (from `.symlinks/plugins/path_provider/ios`) 21 | - path_provider_macos (from `.symlinks/plugins/path_provider_macos/ios`) 22 | 23 | SPEC REPOS: 24 | trunk: 25 | - MTBBarcodeScanner 26 | - SwiftProtobuf 27 | 28 | EXTERNAL SOURCES: 29 | barcode_scan: 30 | :path: ".symlinks/plugins/barcode_scan/ios" 31 | Flutter: 32 | :path: Flutter 33 | get_ip: 34 | :path: ".symlinks/plugins/get_ip/ios" 35 | path_provider: 36 | :path: ".symlinks/plugins/path_provider/ios" 37 | path_provider_macos: 38 | :path: ".symlinks/plugins/path_provider_macos/ios" 39 | 40 | SPEC CHECKSUMS: 41 | barcode_scan: a5c27959edfafaa0c771905bad0b29d6d39e4479 42 | Flutter: 0e3d915762c693b495b44d77113d4970485de6ec 43 | get_ip: c063133e0a399ae4089048c90d6a232cb2344846 44 | MTBBarcodeScanner: f453b33c4b7dfe545d8c6484ed744d55671788cb 45 | path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c 46 | path_provider_macos: f760a3c5b04357c380e2fddb6f9db6f3015897e0 47 | SwiftProtobuf: 2cbd9409689b7df170d82a92a33443c8e3e14a70 48 | 49 | PODFILE CHECKSUM: c34e2287a9ccaa606aeceab922830efb9a6ff69a 50 | 51 | COCOAPODS: 1.8.4 52 | -------------------------------------------------------------------------------- /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 | tcp_chat 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 | io.flutter.embedded_views_preview 45 | 46 | NSCameraUsageDescription 47 | Camera permission is required for barcode scanning. 48 | 49 | 50 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 28 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "com..tcp_chat" 42 | minSdkVersion 16 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | } 47 | 48 | buildTypes { 49 | release { 50 | // TODO: Add your own signing config for the release build. 51 | // Signing with the debug keys for now, so `flutter run --release` works. 52 | signingConfig signingConfigs.debug 53 | } 54 | } 55 | } 56 | 57 | flutter { 58 | source '../..' 59 | } 60 | 61 | dependencies { 62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 63 | } 64 | -------------------------------------------------------------------------------- /lib/utils/navigation.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | navigateReplace(BuildContext context, Widget route, {isDialog = false}) => 4 | Navigator.pushReplacement( 5 | context, 6 | MaterialPageRoute( 7 | fullscreenDialog: isDialog, 8 | builder: (context) => route, 9 | ), 10 | ); 11 | 12 | navigate(BuildContext context, Widget route, {isDialog = false}) => 13 | Navigator.push( 14 | context, 15 | MaterialPageRoute( 16 | fullscreenDialog: isDialog, 17 | builder: (context) => route, 18 | ), 19 | ); 20 | 21 | popToFirst(BuildContext context) => 22 | Navigator.of(context).popUntil((route) => route.isFirst); 23 | 24 | 25 | popView(BuildContext context) => Navigator.pop(context); 26 | 27 | navigateTransparentRoute(BuildContext context, Widget route) { 28 | return Navigator.push( 29 | context, 30 | TransparentRoute( 31 | builder: (context) => route, 32 | ), 33 | ); 34 | } 35 | 36 | class TransparentRoute extends PageRoute { 37 | TransparentRoute({ 38 | @required this.builder, 39 | RouteSettings settings, 40 | }) : assert(builder != null), 41 | super(settings: settings, fullscreenDialog: false); 42 | 43 | final WidgetBuilder builder; 44 | 45 | @override 46 | bool get opaque => false; 47 | 48 | @override 49 | Color get barrierColor => null; 50 | 51 | @override 52 | String get barrierLabel => null; 53 | 54 | @override 55 | bool get maintainState => true; 56 | 57 | @override 58 | Duration get transitionDuration => Duration(milliseconds: 350); 59 | 60 | @override 61 | Widget buildPage(BuildContext context, Animation animation, 62 | Animation secondaryAnimation) { 63 | final result = builder(context); 64 | return FadeTransition( 65 | opacity: Tween(begin: 0, end: 1).animate(animation), 66 | child: Semantics( 67 | scopesRoute: true, 68 | explicitChildNodes: true, 69 | child: result, 70 | ), 71 | ); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/widgets/messageWidget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:tcp_chat/core/model/message.dart'; 3 | import 'package:tcp_chat/utils/margin.dart'; 4 | 5 | class MessageWidget extends StatelessWidget { 6 | final Message message; 7 | 8 | const MessageWidget({ 9 | Key key, 10 | @required this.message, 11 | }) : super(key: key); 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return Padding( 16 | padding: const EdgeInsets.all(8.0), 17 | child: Directionality( 18 | textDirection: message.user != null && message.user == 0 19 | ? TextDirection.rtl 20 | : TextDirection.ltr, 21 | child: Column( 22 | crossAxisAlignment: CrossAxisAlignment.start, 23 | children: [ 24 | const YMargin(20), 25 | Container( 26 | // width: screenWidth(context, percent: 0.6), 27 | decoration: BoxDecoration( 28 | borderRadius: BorderRadius.circular(10), 29 | color: message.user != null && message.user == 0 30 | ? Colors.redAccent 31 | : Colors.grey[200]), 32 | padding: EdgeInsets.all(14), 33 | child: message?.isBold ?? false 34 | ? Column( 35 | children: [ 36 | Container( 37 | height: 7, 38 | width: 30, 39 | child: ClipRRect( 40 | borderRadius: BorderRadius.circular(10), 41 | child: LinearProgressIndicator())) 42 | ], 43 | ) 44 | : Text( 45 | message.message ?? '', 46 | style: TextStyle( 47 | color: message.user != null && message.user == 0 48 | ? Colors.white 49 | : Colors.grey[600]), 50 | ), 51 | ), 52 | const YMargin(5), 53 | Padding( 54 | padding: const EdgeInsets.only(right: 4), 55 | child: Text( 56 | message.user != null && message.user == 0 57 | ? "You" 58 | : message.name ?? '', 59 | style: TextStyle( 60 | color: Colors.grey[600], 61 | fontSize: 11, 62 | fontWeight: FontWeight.w200), 63 | ), 64 | ) 65 | ], 66 | )), 67 | ); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 9 | 10 | 11 | 15 | 22 | 26 | 30 | 35 | 39 | 40 | 41 | 42 | 43 | 44 | 46 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: tcp_chat 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 | get_ip: 32 | provider: 4.1.0-dev+3 33 | google_fonts: 1.0.0 34 | qr_flutter: ^3.1.0 35 | barcode_scan: any 36 | 37 | 38 | 39 | dev_dependencies: 40 | flutter_test: 41 | sdk: flutter 42 | 43 | # For information on the generic Dart part of this file, see the 44 | # following page: https://dart.dev/tools/pub/pubspec 45 | 46 | # The following section is specific to Flutter. 47 | flutter: 48 | 49 | # The following line ensures that the Material Icons font is 50 | # included with your application, so that you can use the icons in 51 | # the material Icons class. 52 | uses-material-design: true 53 | 54 | # To add assets to your application, add an assets section, like this: 55 | # assets: 56 | # - images/a_dot_burr.jpeg 57 | # - images/a_dot_ham.jpeg 58 | 59 | # An image asset can refer to one or more resolution-specific "variants", see 60 | # https://flutter.dev/assets-and-images/#resolution-aware. 61 | 62 | # For details regarding adding assets from package dependencies, see 63 | # https://flutter.dev/assets-and-images/#from-packages 64 | 65 | # To add custom fonts to your application, add a fonts section here, 66 | # in this "flutter" section. Each entry in this list should have a 67 | # "family" key with the font family name, and a "fonts" key with a 68 | # list giving the asset and other descriptors for the font. For 69 | # example: 70 | # fonts: 71 | # - family: Schyler 72 | # fonts: 73 | # - asset: fonts/Schyler-Regular.ttf 74 | # - asset: fonts/Schyler-Italic.ttf 75 | # style: italic 76 | # - family: Trajan Pro 77 | # fonts: 78 | # - asset: fonts/TrajanPro.ttf 79 | # - asset: fonts/TrajanPro_Bold.ttf 80 | # weight: 700 81 | # 82 | # For details regarding fonts from package dependencies, 83 | # see https://flutter.dev/custom-fonts/#from-packages 84 | -------------------------------------------------------------------------------- /lib/widgets/qrDialog.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:google_fonts/google_fonts.dart'; 5 | import 'package:qr_flutter/qr_flutter.dart'; 6 | import 'package:tcp_chat/core/model/tcpData.dart'; 7 | import 'package:tcp_chat/utils/margin.dart'; 8 | 9 | showQRDialog(BuildContext context, {TCPData tcpData}) => showDialog( 10 | context: context, 11 | builder: (BuildContext context) { 12 | return Dialog( 13 | elevation: 0, 14 | shape: RoundedRectangleBorder( 15 | borderRadius: BorderRadius.all(Radius.circular(12.0))), 16 | child: Container( 17 | width: screenWidth(context, percent: 0.6), 18 | height: screenHeight(context, percent: 0.43), 19 | child: Column( 20 | mainAxisAlignment: MainAxisAlignment.center, 21 | mainAxisSize: MainAxisSize.min, 22 | children: [ 23 | Text( 24 | "Scan to Connect", 25 | style: GoogleFonts.nunito( 26 | color: Colors.grey[500], 27 | fontSize: 20, 28 | fontWeight: FontWeight.w100), 29 | ), 30 | const YMargin(40), 31 | QrImage( 32 | data: json.encode(TCPData( 33 | ip: tcpData?.ip ?? "192.168.10.101", 34 | port: tcpData?.port ?? 4000, 35 | ).toJson()), 36 | padding: EdgeInsets.zero, 37 | version: QrVersions.auto, 38 | foregroundColor: Colors.redAccent, 39 | size: 180.0, 40 | ), 41 | const YMargin(20), 42 | ], 43 | ), 44 | ), 45 | ); 46 | }); 47 | 48 | showErrorDialog(BuildContext context, {String error}) => showDialog( 49 | context: context, 50 | builder: (BuildContext context) { 51 | return Dialog( 52 | elevation: 0, 53 | shape: RoundedRectangleBorder( 54 | borderRadius: BorderRadius.all(Radius.circular(12.0))), 55 | child: Container( 56 | width: screenWidth(context, percent: 0.6), 57 | height: screenHeight(context, percent: 0.3), 58 | child: Center( 59 | child: Column( 60 | mainAxisAlignment: MainAxisAlignment.center, 61 | mainAxisSize: MainAxisSize.min, 62 | crossAxisAlignment: CrossAxisAlignment.center, 63 | children: [ 64 | Text( 65 | "Error", 66 | style: GoogleFonts.nunito( 67 | color: Colors.grey[700], 68 | fontSize: 20, 69 | fontWeight: FontWeight.w800), 70 | ), 71 | const YMargin(10), 72 | Padding( 73 | padding: const EdgeInsets.all(18.0), 74 | child: Text( 75 | error ?? ' ', 76 | style: GoogleFonts.nunito( 77 | color: Colors.grey[500], 78 | fontSize: 13, 79 | fontWeight: FontWeight.w100), 80 | ), 81 | ), 82 | const YMargin(20), 83 | ], 84 | ), 85 | ), 86 | ), 87 | ); 88 | }); 89 | -------------------------------------------------------------------------------- /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/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /lib/views/intersit/intersit.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:google_fonts/google_fonts.dart'; 3 | import 'package:tcp_chat/utils/margin.dart'; 4 | import 'package:tcp_chat/utils/navigation.dart'; 5 | import 'package:tcp_chat/views/intersit/client.dart'; 6 | import 'package:tcp_chat/views/intersit/serve.dart'; 7 | 8 | class Intersit extends StatefulWidget { 9 | Intersit({Key key}) : super(key: key); 10 | 11 | @override 12 | _IntersitState createState() => _IntersitState(); 13 | } 14 | 15 | class _IntersitState extends State { 16 | @override 17 | Widget build(BuildContext context) { 18 | return Scaffold( 19 | body: Center( 20 | child: Column( 21 | mainAxisAlignment: MainAxisAlignment.center, 22 | crossAxisAlignment: CrossAxisAlignment.center, 23 | children: [ 24 | Spacer(), 25 | Row( 26 | mainAxisAlignment: MainAxisAlignment.center, 27 | children: [ 28 | Text( 29 | "TCP ", 30 | style: GoogleFonts.nunito( 31 | color: Colors.redAccent, 32 | fontSize: 30, 33 | fontWeight: FontWeight.w800), 34 | ), 35 | Text( 36 | "| Chat", 37 | style: GoogleFonts.lato( 38 | color: Colors.grey, 39 | fontSize: 30, 40 | fontWeight: FontWeight.w200), 41 | ), 42 | ], 43 | ), 44 | Spacer(), 45 | Row( 46 | mainAxisAlignment: MainAxisAlignment.center, 47 | children: [ 48 | Container( 49 | height: 50, 50 | width: screenWidth(context, percent: 0.4), 51 | decoration: BoxDecoration( 52 | color: Colors.redAccent, 53 | boxShadow: [ 54 | BoxShadow( 55 | color: Colors.grey[400].withOpacity(0.5), 56 | offset: Offset(0, 13), 57 | blurRadius: 30) 58 | ], 59 | ), 60 | child: FlatButton( 61 | onPressed: () => navigate(context, Client()), 62 | child: Text( 63 | "Connect", 64 | style: GoogleFonts.nunito( 65 | color: Colors.white, 66 | fontSize: 14, 67 | fontWeight: FontWeight.w400), 68 | ), 69 | ), 70 | ), 71 | const XMargin(20), 72 | Container( 73 | height: 50, 74 | width: screenWidth(context, percent: 0.4), 75 | decoration: BoxDecoration( 76 | color: Colors.white, 77 | boxShadow: [ 78 | BoxShadow( 79 | color: Colors.grey[400].withOpacity(0.3), 80 | offset: Offset(0, 13), 81 | blurRadius: 30) 82 | ], 83 | ), 84 | child: FlatButton( 85 | onPressed: () => navigate(context, Serve()), 86 | color: Colors.white, 87 | child: Text( 88 | "Start Server", 89 | style: GoogleFonts.nunito( 90 | color: Colors.redAccent, 91 | fontSize: 14, 92 | fontWeight: FontWeight.w400), 93 | ), 94 | ), 95 | ), 96 | ], 97 | ), 98 | const YMargin(50) 99 | ], 100 | ), 101 | ), 102 | ); 103 | } 104 | } 105 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/views/home.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'package:flutter/material.dart'; 3 | import 'package:google_fonts/google_fonts.dart'; 4 | import 'package:provider/provider.dart'; 5 | import 'package:tcp_chat/core/model/tcpData.dart'; 6 | import 'package:tcp_chat/core/viewmodel/server_vm.dart'; 7 | import 'package:tcp_chat/utils/margin.dart'; 8 | import 'package:tcp_chat/widgets/messageWidget.dart'; 9 | import 'package:tcp_chat/widgets/qrDialog.dart'; 10 | 11 | class HomePage extends StatefulWidget { 12 | final TCPData tcpData; 13 | final bool isHost; 14 | 15 | const HomePage({Key key, @required this.tcpData, this.isHost = false}) 16 | : super(key: key); 17 | @override 18 | _HomePageState createState() => _HomePageState(); 19 | } 20 | 21 | class _HomePageState extends State { 22 | ServerViewModel serverProvider; 23 | 24 | @override 25 | void dispose() { 26 | if (widget.isHost) serverProvider.server.close(); 27 | serverProvider.closeSocket(); 28 | super.dispose(); 29 | } 30 | 31 | @override 32 | Widget build(BuildContext context) { 33 | serverProvider = context.watch(); 34 | 35 | return Scaffold( 36 | appBar: AppBar( 37 | elevation: 0, 38 | iconTheme: 39 | IconThemeData(color: widget.isHost ? Colors.white : Colors.black), 40 | title: Row( 41 | mainAxisAlignment: MainAxisAlignment.center, 42 | crossAxisAlignment: CrossAxisAlignment.center, 43 | children: [ 44 | Text( 45 | "TCP ", 46 | style: GoogleFonts.nunito( 47 | color: widget.isHost ? Colors.white : Colors.redAccent, 48 | fontSize: 18, 49 | fontWeight: FontWeight.w800), 50 | ), 51 | Text( 52 | "| Chat", 53 | style: GoogleFonts.lato( 54 | color: widget.isHost ? Colors.white : Colors.grey, 55 | fontSize: 18, 56 | fontWeight: FontWeight.w300), 57 | ), 58 | ], 59 | ), 60 | backgroundColor: widget.isHost ? Colors.redAccent : Colors.white, 61 | actions: [ 62 | IconButton( 63 | icon: Icon(Icons.info_outline), 64 | color: Colors.grey[300], 65 | onPressed: () { 66 | showQRDialog(context, tcpData: widget.tcpData); 67 | }, 68 | ) 69 | ], 70 | ), 71 | body: Container( 72 | width: screenWidth(context), 73 | height: screenHeight(context), 74 | child: Column( 75 | children: [ 76 | Expanded( 77 | child: ListView( 78 | reverse: true, 79 | children: [ 80 | for (var messageItem in serverProvider.messageList) 81 | MessageWidget(message: messageItem), 82 | ], 83 | ), 84 | ), 85 | const YMargin(20), 86 | Container( 87 | margin: EdgeInsets.symmetric(horizontal: 20), 88 | decoration: BoxDecoration(color: Colors.white, boxShadow: [ 89 | BoxShadow( 90 | color: Colors.grey[400].withOpacity(0.1), 91 | offset: Offset(0, 13), 92 | blurRadius: 30) 93 | ]), 94 | child: Row( 95 | crossAxisAlignment: CrossAxisAlignment.center, 96 | children: [ 97 | const XMargin(20), 98 | Container( 99 | width: screenWidth(context, percent: 0.43), 100 | child: TextField( 101 | decoration: InputDecoration.collapsed( 102 | hintText: 'Enter your message', 103 | hintStyle: TextStyle( 104 | fontSize: 13, 105 | color: Colors.grey[300], 106 | ), 107 | ), 108 | style: TextStyle( 109 | fontSize: 13, 110 | color: Colors.grey[700], 111 | ), 112 | controller: serverProvider.msg, 113 | autofocus: false), 114 | ), 115 | Spacer(), 116 | Container( 117 | height: 50, 118 | child: FlatButton( 119 | onPressed: () { 120 | if (serverProvider.msg.text != null && 121 | serverProvider.msg.text.isNotEmpty && 122 | widget.tcpData != null) 123 | serverProvider.sendMessage( 124 | context, 125 | widget?.tcpData, 126 | isHost: widget.isHost, 127 | ); 128 | }, 129 | color: Colors.grey[100], 130 | textColor: Colors.black, 131 | child: Text('Send'), 132 | ), 133 | ), 134 | /* Spacer(), 135 | Container( 136 | height: 20, 137 | child: IconButton( 138 | onPressed: () {}, 139 | iconSize:19, 140 | color: Colors.grey[500], 141 | icon: Icon(Icons.attach_file), 142 | ), 143 | ), 144 | const XMargin(10), */ 145 | ], 146 | ), 147 | ), 148 | const YMargin(30) 149 | ], 150 | ), 151 | ), 152 | ); 153 | } 154 | } 155 | -------------------------------------------------------------------------------- /lib/core/viewmodel/server_vm.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'dart:convert' show json, utf8; 3 | 4 | import 'package:barcode_scan/barcode_scan.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:flutter/services.dart'; 7 | import 'package:get_ip/get_ip.dart'; 8 | import 'package:tcp_chat/core/model/message.dart'; 9 | import 'package:tcp_chat/core/model/tcpData.dart'; 10 | import 'package:tcp_chat/utils/navigation.dart'; 11 | import 'package:tcp_chat/views/home.dart'; 12 | import 'package:tcp_chat/widgets/qrDialog.dart'; 13 | 14 | class ServerViewModel extends ChangeNotifier { 15 | List _messageList = []; 16 | List get messageList => _messageList; 17 | String errorMessage = ''; 18 | 19 | ServerSocket _server; 20 | ServerSocket get server => _server; 21 | 22 | Socket _socket; 23 | Socket get socket => _socket; 24 | 25 | bool _isLoading = false; 26 | bool get isLoading => _isLoading; 27 | 28 | set isLoading(bool val) { 29 | _isLoading = val; 30 | notifyListeners(); 31 | } 32 | 33 | final TextEditingController ip = new TextEditingController(); 34 | final TextEditingController port = new TextEditingController(); 35 | final TextEditingController name = new TextEditingController(); 36 | final TextEditingController msg = new TextEditingController(); 37 | 38 | set server(ServerSocket val) { 39 | _server = val; 40 | notifyListeners(); 41 | } 42 | 43 | set socket(Socket val) { 44 | _socket = val; 45 | notifyListeners(); 46 | } 47 | 48 | void initState() async { 49 | if (!Platform.isMacOS) { 50 | ip.text = await GetIp.ipAddress; 51 | } else { 52 | ip.text = ''; 53 | } 54 | 55 | port.text = "4000"; 56 | errorMessage = ''; 57 | } 58 | 59 | getTCPData() { 60 | return TCPData(ip: ip.text, port: int.parse(port.text), name: name.text); 61 | } 62 | 63 | void startServer(context) async { 64 | if (ip.text == null || ip.text.isEmpty) { 65 | errorMessage = "IP Address cant be empty!"; 66 | notifyListeners(); 67 | } else if (port.text == null || port.text.isEmpty) { 68 | errorMessage = "Port cant be empty!"; 69 | notifyListeners(); 70 | } else if (name.text == null || name.text.isEmpty) { 71 | errorMessage = "Name cant be empty!"; 72 | notifyListeners(); 73 | } else { 74 | errorMessage = ""; 75 | notifyListeners(); 76 | try { 77 | _server = await ServerSocket.bind(ip.text, int.parse(port.text), 78 | shared: true); 79 | notifyListeners(); 80 | 81 | if (_server != null) { 82 | _server.listen((Socket _) { 83 | _socket = _; 84 | _.listen((List data) { 85 | try { 86 | String result = new String.fromCharCodes(data); 87 | 88 | if (result.contains('name')) { 89 | var message = Message.fromJson(json.decode(result)); 90 | _messageList.insert( 91 | 0, 92 | Message( 93 | message: message.message, 94 | name: message.name, 95 | user: message.name == getTCPData().name ? 0 : 1)); 96 | notifyListeners(); 97 | } 98 | _.add(data); 99 | } catch (e) { 100 | print(e.toString()); 101 | } 102 | notifyListeners(); 103 | }); 104 | }); 105 | 106 | print('Started: ${server.address.toString()}'); 107 | connectToServer(context); 108 | navigateReplace( 109 | context, 110 | HomePage( 111 | tcpData: getTCPData(), 112 | isHost: true, 113 | ), 114 | ); 115 | } 116 | } catch (e) { 117 | print(e.toString()); 118 | showErrorDialog(context, error: e.toString()); 119 | } 120 | } 121 | } 122 | 123 | connectToServer(context, {bool isHost = true}) async { 124 | if (ip.text == null || ip.text.isEmpty) { 125 | errorMessage = "IP Address cant be empty!"; 126 | notifyListeners(); 127 | } else if (port.text == null || port.text.isEmpty) { 128 | errorMessage = "Port cant be empty!"; 129 | notifyListeners(); 130 | } else if (name.text == null || name.text.isEmpty) { 131 | errorMessage = "Name cant be empty!"; 132 | notifyListeners(); 133 | } else { 134 | try { 135 | _isLoading = true; 136 | notifyListeners(); 137 | _socket = await Socket.connect(ip.text, int.parse(port.text)) 138 | .timeout(Duration(seconds: 10), onTimeout: () { 139 | throw "TimeOUt"; 140 | }); 141 | notifyListeners(); 142 | // listen to the received data event stream 143 | _socket.listen((List data) { 144 | try { 145 | String result = new String.fromCharCodes(data); 146 | 147 | if (result.contains('name')) { 148 | var message = Message.fromJson(json.decode(result)); 149 | _messageList.insert( 150 | 0, 151 | Message( 152 | message: message.message, 153 | name: message.name, 154 | user: message.name == getTCPData().name ? 0 : 1)); 155 | notifyListeners(); 156 | } 157 | } catch (e) { 158 | print(e.toString()); 159 | } 160 | }); 161 | print('connected'); 162 | if (!isHost) 163 | navigateReplace( 164 | context, 165 | HomePage( 166 | tcpData: TCPData( 167 | ip: ip.text, port: int.parse(port.text), name: name.text), 168 | ), 169 | ); 170 | 171 | _isLoading = false; 172 | notifyListeners(); 173 | } catch (e) { 174 | _isLoading = false; 175 | notifyListeners(); 176 | showErrorDialog(context, error: e.toString()); 177 | print(e.toString()); 178 | } 179 | } 180 | } 181 | 182 | closeSocket() async { 183 | await _socket.close(); 184 | } 185 | 186 | void sendMessage(context, TCPData tcpData, {bool isHost}) { 187 | /* _messageList.insert( 188 | 0, new Message(message: msg.text, user: 0, userID: null)); */ 189 | 190 | var message = utf8.encode(json.encode( 191 | Message(message: msg.text, name: tcpData?.name ?? '').toJson())); 192 | 193 | if (isHost) { 194 | _messageList.insert( 195 | 0, 196 | Message(message: msg.text, name: tcpData?.name, user: 0), 197 | ); 198 | notifyListeners(); 199 | } 200 | 201 | try { 202 | _socket.add(message); 203 | 204 | msg.clear(); 205 | } catch (e) { 206 | showErrorDialog(context, error: e.toString()); 207 | print(e.toString()); 208 | } 209 | notifyListeners(); 210 | } 211 | 212 | @override 213 | void dispose() { 214 | closeSocket(); 215 | _server.close(); 216 | super.dispose(); 217 | } 218 | 219 | void scan(context) async { 220 | errorMessage = ""; 221 | try { 222 | var result = await BarcodeScanner.scan(); 223 | notifyListeners(); 224 | if (result != null) { 225 | var tcpData = TCPData.fromJson(json.decode(result.rawContent)); 226 | 227 | ip.text = tcpData.ip; 228 | port.text = tcpData.port.toString(); 229 | notifyListeners(); 230 | 231 | connectToServer(context, isHost: false); 232 | } 233 | } on PlatformException catch (e) { 234 | var result = ScanResult( 235 | type: ResultType.Error, 236 | format: BarcodeFormat.unknown, 237 | ); 238 | 239 | if (e.code == BarcodeScanner.cameraAccessDenied) { 240 | result.rawContent = 'The user did not grant the camera permission!'; 241 | } else { 242 | result.rawContent = 'Unknown error: $e'; 243 | } 244 | showErrorDialog(context, error: result.rawContent); 245 | } 246 | } 247 | } 248 | -------------------------------------------------------------------------------- /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 | barcode_scan: 26 | dependency: "direct main" 27 | description: 28 | name: barcode_scan 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "3.0.0" 32 | boolean_selector: 33 | dependency: transitive 34 | description: 35 | name: boolean_selector 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "2.0.0" 39 | charcode: 40 | dependency: transitive 41 | description: 42 | name: charcode 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.1.3" 46 | collection: 47 | dependency: transitive 48 | description: 49 | name: collection 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.14.12" 53 | convert: 54 | dependency: transitive 55 | description: 56 | name: convert 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.1.1" 60 | crypto: 61 | dependency: transitive 62 | description: 63 | name: crypto 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "2.1.4" 67 | cupertino_icons: 68 | dependency: "direct main" 69 | description: 70 | name: cupertino_icons 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "0.1.3" 74 | fixnum: 75 | dependency: transitive 76 | description: 77 | name: fixnum 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "0.10.11" 81 | flutter: 82 | dependency: "direct main" 83 | description: flutter 84 | source: sdk 85 | version: "0.0.0" 86 | flutter_test: 87 | dependency: "direct dev" 88 | description: flutter 89 | source: sdk 90 | version: "0.0.0" 91 | get_ip: 92 | dependency: "direct main" 93 | description: 94 | name: get_ip 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "0.4.0" 98 | google_fonts: 99 | dependency: "direct main" 100 | description: 101 | name: google_fonts 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "1.0.0" 105 | http: 106 | dependency: transitive 107 | description: 108 | name: http 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "0.12.1" 112 | http_parser: 113 | dependency: transitive 114 | description: 115 | name: http_parser 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "3.1.4" 119 | image: 120 | dependency: transitive 121 | description: 122 | name: image 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "2.1.12" 126 | matcher: 127 | dependency: transitive 128 | description: 129 | name: matcher 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "0.12.6" 133 | meta: 134 | dependency: transitive 135 | description: 136 | name: meta 137 | url: "https://pub.dartlang.org" 138 | source: hosted 139 | version: "1.1.8" 140 | nested: 141 | dependency: transitive 142 | description: 143 | name: nested 144 | url: "https://pub.dartlang.org" 145 | source: hosted 146 | version: "0.0.4" 147 | path: 148 | dependency: transitive 149 | description: 150 | name: path 151 | url: "https://pub.dartlang.org" 152 | source: hosted 153 | version: "1.6.4" 154 | path_provider: 155 | dependency: transitive 156 | description: 157 | name: path_provider 158 | url: "https://pub.dartlang.org" 159 | source: hosted 160 | version: "1.6.7" 161 | path_provider_macos: 162 | dependency: transitive 163 | description: 164 | name: path_provider_macos 165 | url: "https://pub.dartlang.org" 166 | source: hosted 167 | version: "0.0.4+2" 168 | path_provider_platform_interface: 169 | dependency: transitive 170 | description: 171 | name: path_provider_platform_interface 172 | url: "https://pub.dartlang.org" 173 | source: hosted 174 | version: "1.0.1" 175 | pedantic: 176 | dependency: transitive 177 | description: 178 | name: pedantic 179 | url: "https://pub.dartlang.org" 180 | source: hosted 181 | version: "1.9.0" 182 | petitparser: 183 | dependency: transitive 184 | description: 185 | name: petitparser 186 | url: "https://pub.dartlang.org" 187 | source: hosted 188 | version: "2.4.0" 189 | platform: 190 | dependency: transitive 191 | description: 192 | name: platform 193 | url: "https://pub.dartlang.org" 194 | source: hosted 195 | version: "2.2.1" 196 | plugin_platform_interface: 197 | dependency: transitive 198 | description: 199 | name: plugin_platform_interface 200 | url: "https://pub.dartlang.org" 201 | source: hosted 202 | version: "1.0.2" 203 | protobuf: 204 | dependency: transitive 205 | description: 206 | name: protobuf 207 | url: "https://pub.dartlang.org" 208 | source: hosted 209 | version: "1.0.1" 210 | provider: 211 | dependency: "direct main" 212 | description: 213 | name: provider 214 | url: "https://pub.dartlang.org" 215 | source: hosted 216 | version: "4.1.0-dev+3" 217 | qr: 218 | dependency: transitive 219 | description: 220 | name: qr 221 | url: "https://pub.dartlang.org" 222 | source: hosted 223 | version: "1.2.0" 224 | qr_flutter: 225 | dependency: "direct main" 226 | description: 227 | name: qr_flutter 228 | url: "https://pub.dartlang.org" 229 | source: hosted 230 | version: "3.2.0" 231 | quiver: 232 | dependency: transitive 233 | description: 234 | name: quiver 235 | url: "https://pub.dartlang.org" 236 | source: hosted 237 | version: "2.1.3" 238 | sky_engine: 239 | dependency: transitive 240 | description: flutter 241 | source: sdk 242 | version: "0.0.99" 243 | source_span: 244 | dependency: transitive 245 | description: 246 | name: source_span 247 | url: "https://pub.dartlang.org" 248 | source: hosted 249 | version: "1.7.0" 250 | stack_trace: 251 | dependency: transitive 252 | description: 253 | name: stack_trace 254 | url: "https://pub.dartlang.org" 255 | source: hosted 256 | version: "1.9.3" 257 | stream_channel: 258 | dependency: transitive 259 | description: 260 | name: stream_channel 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "2.0.0" 264 | string_scanner: 265 | dependency: transitive 266 | description: 267 | name: string_scanner 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "1.0.5" 271 | term_glyph: 272 | dependency: transitive 273 | description: 274 | name: term_glyph 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "1.1.0" 278 | test_api: 279 | dependency: transitive 280 | description: 281 | name: test_api 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "0.2.15" 285 | typed_data: 286 | dependency: transitive 287 | description: 288 | name: typed_data 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "1.1.6" 292 | vector_math: 293 | dependency: transitive 294 | description: 295 | name: vector_math 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "2.0.8" 299 | xml: 300 | dependency: transitive 301 | description: 302 | name: xml 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "3.6.1" 306 | sdks: 307 | dart: ">=2.7.0 <3.0.0" 308 | flutter: ">=1.15.17-pre.5 <2.0.0" 309 | -------------------------------------------------------------------------------- /lib/views/intersit/serve.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:google_fonts/google_fonts.dart'; 3 | import 'package:tcp_chat/utils/margin.dart'; 4 | import 'package:provider/provider.dart'; 5 | import 'package:tcp_chat/core/viewmodel/server_vm.dart'; 6 | 7 | class Serve extends StatefulWidget { 8 | Serve({Key key}) : super(key: key); 9 | 10 | @override 11 | _ServeState createState() => _ServeState(); 12 | } 13 | 14 | class _ServeState extends State { 15 | @override 16 | void initState() { 17 | context.read().initState(); 18 | 19 | super.initState(); 20 | } 21 | 22 | @override 23 | Widget build(BuildContext context) { 24 | var provider = context.watch(); 25 | 26 | return Scaffold( 27 | body: Center( 28 | child: ListView( 29 | children: [ 30 | Container( 31 | height: screenHeight(context), 32 | child: Column( 33 | mainAxisAlignment: MainAxisAlignment.center, 34 | crossAxisAlignment: CrossAxisAlignment.center, 35 | children: [ 36 | Spacer(), 37 | Row( 38 | mainAxisAlignment: MainAxisAlignment.center, 39 | crossAxisAlignment: CrossAxisAlignment.end, 40 | children: [ 41 | Text( 42 | "TCP ", 43 | style: GoogleFonts.nunito( 44 | color: Colors.redAccent, 45 | fontSize: 30, 46 | fontWeight: FontWeight.w800), 47 | ), 48 | Text( 49 | "| Chat", 50 | style: GoogleFonts.lato( 51 | color: Colors.grey, 52 | fontSize: 30, 53 | fontWeight: FontWeight.w300), 54 | ), 55 | Padding( 56 | padding: const EdgeInsets.only(bottom: 2.0), 57 | child: Text( 58 | " Server", 59 | style: GoogleFonts.lato( 60 | color: Colors.grey, 61 | fontSize: 20, 62 | fontWeight: FontWeight.w300), 63 | ), 64 | ), 65 | ], 66 | ), 67 | const YMargin(50), 68 | Container( 69 | margin: EdgeInsets.symmetric(horizontal: 20), 70 | decoration: BoxDecoration( 71 | color: Colors.white, 72 | boxShadow: [ 73 | BoxShadow( 74 | color: Colors.grey[400].withOpacity(0.1), 75 | offset: Offset(0, 13), 76 | blurRadius: 30) 77 | ], 78 | ), 79 | child: Container( 80 | width: screenWidth(context, percent: 0.8), 81 | padding: EdgeInsets.symmetric(horizontal: 30), 82 | child: TextField( 83 | decoration: InputDecoration.collapsed( 84 | hintText: 'Enter IP Address', 85 | hintStyle: TextStyle( 86 | fontSize: 13, 87 | color: Colors.grey[300], 88 | ), 89 | ), 90 | controller: provider.ip, 91 | style: TextStyle( 92 | fontSize: 13, 93 | color: Colors.grey[700], 94 | ), 95 | keyboardAppearance: Brightness.light, 96 | autofocus: false), 97 | ), 98 | ), 99 | const YMargin(30), 100 | Container( 101 | margin: EdgeInsets.symmetric(horizontal: 20), 102 | decoration: BoxDecoration( 103 | color: Colors.white, 104 | boxShadow: [ 105 | BoxShadow( 106 | color: Colors.grey[400].withOpacity(0.1), 107 | offset: Offset(0, 13), 108 | blurRadius: 30) 109 | ], 110 | ), 111 | child: Container( 112 | width: screenWidth(context, percent: 0.8), 113 | padding: EdgeInsets.symmetric(horizontal: 30), 114 | child: TextField( 115 | decoration: InputDecoration.collapsed( 116 | hintText: 'Enter Port', 117 | hintStyle: TextStyle( 118 | fontSize: 13, 119 | color: Colors.grey[300], 120 | ), 121 | ), 122 | controller: provider.port, 123 | style: TextStyle( 124 | fontSize: 13, 125 | color: Colors.grey[700], 126 | ), 127 | keyboardAppearance: Brightness.light, 128 | autofocus: false), 129 | ), 130 | ), 131 | const YMargin(30), 132 | Container( 133 | margin: EdgeInsets.symmetric(horizontal: 20), 134 | decoration: BoxDecoration( 135 | color: Colors.white, 136 | boxShadow: [ 137 | BoxShadow( 138 | color: Colors.grey[400].withOpacity(0.1), 139 | offset: Offset(0, 13), 140 | blurRadius: 30) 141 | ], 142 | ), 143 | child: Container( 144 | width: screenWidth(context, percent: 0.8), 145 | padding: EdgeInsets.symmetric(horizontal: 30), 146 | child: TextField( 147 | decoration: InputDecoration.collapsed( 148 | hintText: 'Enter Name', 149 | hintStyle: TextStyle( 150 | fontSize: 13, 151 | color: Colors.grey[300], 152 | ), 153 | ), 154 | controller: provider.name, 155 | style: TextStyle( 156 | fontSize: 13, 157 | color: Colors.grey[700], 158 | ), 159 | keyboardAppearance: Brightness.light, 160 | autofocus: false), 161 | ), 162 | ), 163 | const YMargin(30), 164 | Container( 165 | width: screenWidth(context, percent: 0.8), 166 | child: Row( 167 | children: [ 168 | Text( 169 | provider?.errorMessage ?? '', 170 | style: GoogleFonts.nunito( 171 | color: Colors.red, 172 | fontSize: 11, 173 | fontWeight: FontWeight.w400), 174 | ), 175 | ], 176 | ), 177 | ), 178 | Spacer(), 179 | Row( 180 | mainAxisAlignment: MainAxisAlignment.center, 181 | children: [ 182 | Container( 183 | height: 50, 184 | width: screenWidth(context, percent: 0.8), 185 | decoration: BoxDecoration( 186 | color: Colors.redAccent, 187 | boxShadow: [ 188 | BoxShadow( 189 | color: Colors.grey[400].withOpacity(0.5), 190 | offset: Offset(0, 13), 191 | blurRadius: 30) 192 | ], 193 | ), 194 | child: FlatButton( 195 | onPressed: () { 196 | provider.startServer(context); 197 | }, 198 | child: Text( 199 | "Energize", 200 | style: GoogleFonts.nunito( 201 | color: Colors.white, 202 | fontSize: 14, 203 | fontWeight: FontWeight.w400), 204 | ), 205 | ), 206 | ), 207 | ], 208 | ), 209 | const YMargin(150) 210 | ], 211 | ), 212 | ), 213 | ], 214 | ), 215 | ), 216 | ); 217 | } 218 | } 219 | -------------------------------------------------------------------------------- /lib/views/intersit/client.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:google_fonts/google_fonts.dart'; 4 | import 'package:tcp_chat/core/viewmodel/server_vm.dart'; 5 | import 'package:tcp_chat/utils/margin.dart'; 6 | import 'package:provider/provider.dart'; 7 | 8 | class Client extends StatefulWidget { 9 | Client({Key key}) : super(key: key); 10 | 11 | @override 12 | _ClientState createState() => _ClientState(); 13 | } 14 | 15 | class _ClientState extends State { 16 | @override 17 | void initState() { 18 | context.read().initState(); 19 | 20 | super.initState(); 21 | } 22 | 23 | @override 24 | Widget build(BuildContext context) { 25 | var provider = context.watch(); 26 | 27 | return Scaffold( 28 | backgroundColor: Colors.redAccent, 29 | body: Theme( 30 | data: ThemeData( 31 | cursorColor: Colors.white, 32 | cupertinoOverrideTheme: CupertinoThemeData( 33 | primaryColor: Colors.white, 34 | ), 35 | ), 36 | child: Center( 37 | child: ListView( 38 | children: [ 39 | Container( 40 | height: screenHeight(context), 41 | child: Column( 42 | mainAxisAlignment: MainAxisAlignment.center, 43 | crossAxisAlignment: CrossAxisAlignment.center, 44 | children: [ 45 | Spacer(), 46 | Row( 47 | mainAxisAlignment: MainAxisAlignment.center, 48 | crossAxisAlignment: CrossAxisAlignment.end, 49 | children: [ 50 | Text( 51 | "TCP ", 52 | style: GoogleFonts.nunito( 53 | color: Colors.white, 54 | fontSize: 30, 55 | fontWeight: FontWeight.w800), 56 | ), 57 | Text( 58 | "| Chat", 59 | style: GoogleFonts.lato( 60 | color: Colors.white, 61 | fontSize: 30, 62 | fontWeight: FontWeight.w300), 63 | ), 64 | Padding( 65 | padding: const EdgeInsets.only(bottom: 2.0), 66 | child: Text( 67 | " Client", 68 | style: GoogleFonts.lato( 69 | color: Colors.white, 70 | fontSize: 20, 71 | fontWeight: FontWeight.w300), 72 | ), 73 | ), 74 | ], 75 | ), 76 | const YMargin(50), 77 | Container( 78 | margin: EdgeInsets.symmetric(horizontal: 20), 79 | decoration: BoxDecoration( 80 | color: Colors.red, 81 | boxShadow: [ 82 | BoxShadow( 83 | color: Colors.grey[900].withOpacity(0.1), 84 | offset: Offset(0, 13), 85 | blurRadius: 30) 86 | ], 87 | ), 88 | child: Container( 89 | width: screenWidth(context, percent: 0.8), 90 | padding: EdgeInsets.symmetric(horizontal: 30), 91 | child: TextField( 92 | decoration: InputDecoration.collapsed( 93 | hintText: 'Enter IP Address', 94 | hintStyle: TextStyle( 95 | fontSize: 13, 96 | color: Colors.white60, 97 | ), 98 | ), 99 | controller: provider.ip, 100 | style: TextStyle( 101 | fontSize: 13, 102 | color: Colors.white, 103 | ), 104 | keyboardAppearance: Brightness.light, 105 | autofocus: false), 106 | ), 107 | ), 108 | const YMargin(30), 109 | Container( 110 | margin: EdgeInsets.symmetric(horizontal: 20), 111 | decoration: BoxDecoration( 112 | color: Colors.red, 113 | boxShadow: [ 114 | BoxShadow( 115 | color: Colors.grey[900].withOpacity(0.1), 116 | offset: Offset(0, 13), 117 | blurRadius: 30) 118 | ], 119 | ), 120 | child: Container( 121 | width: screenWidth(context, percent: 0.8), 122 | padding: EdgeInsets.symmetric(horizontal: 30), 123 | child: TextField( 124 | decoration: InputDecoration.collapsed( 125 | hintText: 'Enter Port', 126 | hintStyle: TextStyle( 127 | fontSize: 13, 128 | color: Colors.white60, 129 | ), 130 | ), 131 | controller: provider.port, 132 | style: TextStyle( 133 | fontSize: 13, 134 | color: Colors.white, 135 | ), 136 | keyboardAppearance: Brightness.light, 137 | autofocus: false), 138 | ), 139 | ), 140 | const YMargin(30), 141 | Container( 142 | margin: EdgeInsets.symmetric(horizontal: 20), 143 | decoration: BoxDecoration( 144 | color: Colors.red, 145 | boxShadow: [ 146 | BoxShadow( 147 | color: Colors.grey[900].withOpacity(0.1), 148 | offset: Offset(0, 13), 149 | blurRadius: 30) 150 | ], 151 | ), 152 | child: Container( 153 | width: screenWidth(context, percent: 0.8), 154 | padding: EdgeInsets.symmetric(horizontal: 30), 155 | child: TextField( 156 | decoration: InputDecoration.collapsed( 157 | hintText: 'Enter Name', 158 | hintStyle: TextStyle( 159 | fontSize: 13, 160 | color: Colors.white60, 161 | ), 162 | ), 163 | controller: provider.name, 164 | style: TextStyle( 165 | fontSize: 13, 166 | color: Colors.white, 167 | ), 168 | keyboardAppearance: Brightness.light, 169 | autofocus: false), 170 | ), 171 | ), 172 | const YMargin(30), 173 | Container( 174 | width: screenWidth(context, percent: 0.8), 175 | child: Row( 176 | children: [ 177 | Text( 178 | provider?.errorMessage ?? '', 179 | style: GoogleFonts.nunito( 180 | color: Colors.white, 181 | fontSize: 11, 182 | fontWeight: FontWeight.w400), 183 | ), 184 | ], 185 | ), 186 | ), 187 | Spacer(), 188 | provider.isLoading? 189 | Container( 190 | height: 30, 191 | width: 30, 192 | child: CircularProgressIndicator( 193 | valueColor: AlwaysStoppedAnimation(Colors.white), 194 | ), 195 | ): 196 | Container( 197 | height: 50, 198 | width: screenWidth(context, percent: 0.8), 199 | decoration: BoxDecoration( 200 | color: Colors.red, 201 | boxShadow: [ 202 | BoxShadow( 203 | color: Colors.grey[900].withOpacity(0.1), 204 | offset: Offset(0, 13), 205 | blurRadius: 30) 206 | ], 207 | ), 208 | child: FlatButton( 209 | onPressed: () { 210 | provider.connectToServer(context, isHost: false); 211 | }, 212 | child: Text( 213 | "Connect to Server", 214 | style: GoogleFonts.nunito( 215 | color: Colors.white, 216 | fontSize: 14, 217 | fontWeight: FontWeight.w400), 218 | ), 219 | ), 220 | ), 221 | const YMargin(40), 222 | IconButton( 223 | onPressed: () { 224 | provider.scan(context); 225 | }, 226 | icon: Icon( 227 | Icons.filter_center_focus, 228 | color: Colors.white, 229 | ), 230 | ), 231 | const YMargin(100) 232 | ], 233 | ), 234 | ), 235 | ], 236 | ), 237 | ), 238 | ), 239 | ); 240 | } 241 | } 242 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | 5704AEA8E8069D8FA1D65774 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A106AE127FBED7F34D49CD54 /* Pods_Runner.framework */; }; 13 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 14 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 15 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 16 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXCopyFilesBuildPhase section */ 20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 21 | isa = PBXCopyFilesBuildPhase; 22 | buildActionMask = 2147483647; 23 | dstPath = ""; 24 | dstSubfolderSpec = 10; 25 | files = ( 26 | ); 27 | name = "Embed Frameworks"; 28 | runOnlyForDeploymentPostprocessing = 0; 29 | }; 30 | /* End PBXCopyFilesBuildPhase section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 34 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 35 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 36 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 37 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 38 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 39 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 40 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 41 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 43 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 44 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 45 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | A106AE127FBED7F34D49CD54 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | A4AB38B297BB3F7CB633F735 /* 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 = ""; }; 48 | B2E8E4045CD0869C2DE9B913 /* 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 = ""; }; 49 | F45014F37A204EE5C66597EB /* 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 = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 5704AEA8E8069D8FA1D65774 /* Pods_Runner.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | /* End PBXFrameworksBuildPhase section */ 62 | 63 | /* Begin PBXGroup section */ 64 | 2AFF992627089C3A0CCEEC86 /* Pods */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | F45014F37A204EE5C66597EB /* Pods-Runner.debug.xcconfig */, 68 | B2E8E4045CD0869C2DE9B913 /* Pods-Runner.release.xcconfig */, 69 | A4AB38B297BB3F7CB633F735 /* Pods-Runner.profile.xcconfig */, 70 | ); 71 | name = Pods; 72 | path = Pods; 73 | sourceTree = ""; 74 | }; 75 | 36A6CA74B89326347AC10490 /* Frameworks */ = { 76 | isa = PBXGroup; 77 | children = ( 78 | A106AE127FBED7F34D49CD54 /* Pods_Runner.framework */, 79 | ); 80 | name = Frameworks; 81 | sourceTree = ""; 82 | }; 83 | 9740EEB11CF90186004384FC /* Flutter */ = { 84 | isa = PBXGroup; 85 | children = ( 86 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 87 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 88 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 89 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 90 | ); 91 | name = Flutter; 92 | sourceTree = ""; 93 | }; 94 | 97C146E51CF9000F007C117D = { 95 | isa = PBXGroup; 96 | children = ( 97 | 9740EEB11CF90186004384FC /* Flutter */, 98 | 97C146F01CF9000F007C117D /* Runner */, 99 | 97C146EF1CF9000F007C117D /* Products */, 100 | 2AFF992627089C3A0CCEEC86 /* Pods */, 101 | 36A6CA74B89326347AC10490 /* Frameworks */, 102 | ); 103 | sourceTree = ""; 104 | }; 105 | 97C146EF1CF9000F007C117D /* Products */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 97C146EE1CF9000F007C117D /* Runner.app */, 109 | ); 110 | name = Products; 111 | sourceTree = ""; 112 | }; 113 | 97C146F01CF9000F007C117D /* Runner */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 117 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 118 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 119 | 97C147021CF9000F007C117D /* Info.plist */, 120 | 97C146F11CF9000F007C117D /* Supporting Files */, 121 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 122 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 123 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 124 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 125 | ); 126 | path = Runner; 127 | sourceTree = ""; 128 | }; 129 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | ); 133 | name = "Supporting Files"; 134 | sourceTree = ""; 135 | }; 136 | /* End PBXGroup section */ 137 | 138 | /* Begin PBXNativeTarget section */ 139 | 97C146ED1CF9000F007C117D /* Runner */ = { 140 | isa = PBXNativeTarget; 141 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 142 | buildPhases = ( 143 | 80EB6E9A8BBE1B219879BFA3 /* [CP] Check Pods Manifest.lock */, 144 | 9740EEB61CF901F6004384FC /* Run Script */, 145 | 97C146EA1CF9000F007C117D /* Sources */, 146 | 97C146EB1CF9000F007C117D /* Frameworks */, 147 | 97C146EC1CF9000F007C117D /* Resources */, 148 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 149 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 150 | 6C83013964C78A9E5D94025F /* [CP] Embed Pods Frameworks */, 151 | ); 152 | buildRules = ( 153 | ); 154 | dependencies = ( 155 | ); 156 | name = Runner; 157 | productName = Runner; 158 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 159 | productType = "com.apple.product-type.application"; 160 | }; 161 | /* End PBXNativeTarget section */ 162 | 163 | /* Begin PBXProject section */ 164 | 97C146E61CF9000F007C117D /* Project object */ = { 165 | isa = PBXProject; 166 | attributes = { 167 | LastUpgradeCheck = 1020; 168 | ORGANIZATIONNAME = ""; 169 | TargetAttributes = { 170 | 97C146ED1CF9000F007C117D = { 171 | CreatedOnToolsVersion = 7.3.1; 172 | LastSwiftMigration = 1100; 173 | }; 174 | }; 175 | }; 176 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 177 | compatibilityVersion = "Xcode 9.3"; 178 | developmentRegion = en; 179 | hasScannedForEncodings = 0; 180 | knownRegions = ( 181 | en, 182 | Base, 183 | ); 184 | mainGroup = 97C146E51CF9000F007C117D; 185 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 186 | projectDirPath = ""; 187 | projectRoot = ""; 188 | targets = ( 189 | 97C146ED1CF9000F007C117D /* Runner */, 190 | ); 191 | }; 192 | /* End PBXProject section */ 193 | 194 | /* Begin PBXResourcesBuildPhase section */ 195 | 97C146EC1CF9000F007C117D /* Resources */ = { 196 | isa = PBXResourcesBuildPhase; 197 | buildActionMask = 2147483647; 198 | files = ( 199 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 200 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 201 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 202 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 203 | ); 204 | runOnlyForDeploymentPostprocessing = 0; 205 | }; 206 | /* End PBXResourcesBuildPhase section */ 207 | 208 | /* Begin PBXShellScriptBuildPhase section */ 209 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 210 | isa = PBXShellScriptBuildPhase; 211 | buildActionMask = 2147483647; 212 | files = ( 213 | ); 214 | inputPaths = ( 215 | ); 216 | name = "Thin Binary"; 217 | outputPaths = ( 218 | ); 219 | runOnlyForDeploymentPostprocessing = 0; 220 | shellPath = /bin/sh; 221 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 222 | }; 223 | 6C83013964C78A9E5D94025F /* [CP] Embed Pods Frameworks */ = { 224 | isa = PBXShellScriptBuildPhase; 225 | buildActionMask = 2147483647; 226 | files = ( 227 | ); 228 | inputFileListPaths = ( 229 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", 230 | ); 231 | name = "[CP] Embed Pods Frameworks"; 232 | outputFileListPaths = ( 233 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", 234 | ); 235 | runOnlyForDeploymentPostprocessing = 0; 236 | shellPath = /bin/sh; 237 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 238 | showEnvVarsInLog = 0; 239 | }; 240 | 80EB6E9A8BBE1B219879BFA3 /* [CP] Check Pods Manifest.lock */ = { 241 | isa = PBXShellScriptBuildPhase; 242 | buildActionMask = 2147483647; 243 | files = ( 244 | ); 245 | inputFileListPaths = ( 246 | ); 247 | inputPaths = ( 248 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 249 | "${PODS_ROOT}/Manifest.lock", 250 | ); 251 | name = "[CP] Check Pods Manifest.lock"; 252 | outputFileListPaths = ( 253 | ); 254 | outputPaths = ( 255 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 256 | ); 257 | runOnlyForDeploymentPostprocessing = 0; 258 | shellPath = /bin/sh; 259 | 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"; 260 | showEnvVarsInLog = 0; 261 | }; 262 | 9740EEB61CF901F6004384FC /* Run Script */ = { 263 | isa = PBXShellScriptBuildPhase; 264 | buildActionMask = 2147483647; 265 | files = ( 266 | ); 267 | inputPaths = ( 268 | ); 269 | name = "Run Script"; 270 | outputPaths = ( 271 | ); 272 | runOnlyForDeploymentPostprocessing = 0; 273 | shellPath = /bin/sh; 274 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 275 | }; 276 | /* End PBXShellScriptBuildPhase section */ 277 | 278 | /* Begin PBXSourcesBuildPhase section */ 279 | 97C146EA1CF9000F007C117D /* Sources */ = { 280 | isa = PBXSourcesBuildPhase; 281 | buildActionMask = 2147483647; 282 | files = ( 283 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 284 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 285 | ); 286 | runOnlyForDeploymentPostprocessing = 0; 287 | }; 288 | /* End PBXSourcesBuildPhase section */ 289 | 290 | /* Begin PBXVariantGroup section */ 291 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 292 | isa = PBXVariantGroup; 293 | children = ( 294 | 97C146FB1CF9000F007C117D /* Base */, 295 | ); 296 | name = Main.storyboard; 297 | sourceTree = ""; 298 | }; 299 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 300 | isa = PBXVariantGroup; 301 | children = ( 302 | 97C147001CF9000F007C117D /* Base */, 303 | ); 304 | name = LaunchScreen.storyboard; 305 | sourceTree = ""; 306 | }; 307 | /* End PBXVariantGroup section */ 308 | 309 | /* Begin XCBuildConfiguration section */ 310 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 311 | isa = XCBuildConfiguration; 312 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 313 | buildSettings = { 314 | ALWAYS_SEARCH_USER_PATHS = NO; 315 | CLANG_ANALYZER_NONNULL = YES; 316 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 317 | CLANG_CXX_LIBRARY = "libc++"; 318 | CLANG_ENABLE_MODULES = YES; 319 | CLANG_ENABLE_OBJC_ARC = YES; 320 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 321 | CLANG_WARN_BOOL_CONVERSION = YES; 322 | CLANG_WARN_COMMA = YES; 323 | CLANG_WARN_CONSTANT_CONVERSION = YES; 324 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 325 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 326 | CLANG_WARN_EMPTY_BODY = YES; 327 | CLANG_WARN_ENUM_CONVERSION = YES; 328 | CLANG_WARN_INFINITE_RECURSION = YES; 329 | CLANG_WARN_INT_CONVERSION = YES; 330 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 331 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 332 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 333 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 334 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 335 | CLANG_WARN_STRICT_PROTOTYPES = YES; 336 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 337 | CLANG_WARN_UNREACHABLE_CODE = YES; 338 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 339 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 340 | COPY_PHASE_STRIP = NO; 341 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 342 | ENABLE_NS_ASSERTIONS = NO; 343 | ENABLE_STRICT_OBJC_MSGSEND = YES; 344 | GCC_C_LANGUAGE_STANDARD = gnu99; 345 | GCC_NO_COMMON_BLOCKS = YES; 346 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 347 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 348 | GCC_WARN_UNDECLARED_SELECTOR = YES; 349 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 350 | GCC_WARN_UNUSED_FUNCTION = YES; 351 | GCC_WARN_UNUSED_VARIABLE = YES; 352 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 353 | MTL_ENABLE_DEBUG_INFO = NO; 354 | SDKROOT = iphoneos; 355 | SUPPORTED_PLATFORMS = iphoneos; 356 | TARGETED_DEVICE_FAMILY = "1,2"; 357 | VALIDATE_PRODUCT = YES; 358 | }; 359 | name = Profile; 360 | }; 361 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 362 | isa = XCBuildConfiguration; 363 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 364 | buildSettings = { 365 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 366 | CLANG_ENABLE_MODULES = YES; 367 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 368 | DEVELOPMENT_TEAM = ZR33Z9G938; 369 | ENABLE_BITCODE = NO; 370 | FRAMEWORK_SEARCH_PATHS = ( 371 | "$(inherited)", 372 | "$(PROJECT_DIR)/Flutter", 373 | ); 374 | INFOPLIST_FILE = Runner/Info.plist; 375 | LD_RUNPATH_SEARCH_PATHS = ( 376 | "$(inherited)", 377 | "@executable_path/Frameworks", 378 | ); 379 | LIBRARY_SEARCH_PATHS = ( 380 | "$(inherited)", 381 | "$(PROJECT_DIR)/Flutter", 382 | ); 383 | PRODUCT_BUNDLE_IDENTIFIER = com..tcpChat; 384 | PRODUCT_NAME = "$(TARGET_NAME)"; 385 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 386 | SWIFT_VERSION = 5.0; 387 | VERSIONING_SYSTEM = "apple-generic"; 388 | }; 389 | name = Profile; 390 | }; 391 | 97C147031CF9000F007C117D /* Debug */ = { 392 | isa = XCBuildConfiguration; 393 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 394 | buildSettings = { 395 | ALWAYS_SEARCH_USER_PATHS = NO; 396 | CLANG_ANALYZER_NONNULL = YES; 397 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 398 | CLANG_CXX_LIBRARY = "libc++"; 399 | CLANG_ENABLE_MODULES = YES; 400 | CLANG_ENABLE_OBJC_ARC = YES; 401 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 402 | CLANG_WARN_BOOL_CONVERSION = YES; 403 | CLANG_WARN_COMMA = YES; 404 | CLANG_WARN_CONSTANT_CONVERSION = YES; 405 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 406 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 407 | CLANG_WARN_EMPTY_BODY = YES; 408 | CLANG_WARN_ENUM_CONVERSION = YES; 409 | CLANG_WARN_INFINITE_RECURSION = YES; 410 | CLANG_WARN_INT_CONVERSION = YES; 411 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 412 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 413 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 414 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 415 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 416 | CLANG_WARN_STRICT_PROTOTYPES = YES; 417 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 418 | CLANG_WARN_UNREACHABLE_CODE = YES; 419 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 420 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 421 | COPY_PHASE_STRIP = NO; 422 | DEBUG_INFORMATION_FORMAT = dwarf; 423 | ENABLE_STRICT_OBJC_MSGSEND = YES; 424 | ENABLE_TESTABILITY = YES; 425 | GCC_C_LANGUAGE_STANDARD = gnu99; 426 | GCC_DYNAMIC_NO_PIC = NO; 427 | GCC_NO_COMMON_BLOCKS = YES; 428 | GCC_OPTIMIZATION_LEVEL = 0; 429 | GCC_PREPROCESSOR_DEFINITIONS = ( 430 | "DEBUG=1", 431 | "$(inherited)", 432 | ); 433 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 434 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 435 | GCC_WARN_UNDECLARED_SELECTOR = YES; 436 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 437 | GCC_WARN_UNUSED_FUNCTION = YES; 438 | GCC_WARN_UNUSED_VARIABLE = YES; 439 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 440 | MTL_ENABLE_DEBUG_INFO = YES; 441 | ONLY_ACTIVE_ARCH = YES; 442 | SDKROOT = iphoneos; 443 | TARGETED_DEVICE_FAMILY = "1,2"; 444 | }; 445 | name = Debug; 446 | }; 447 | 97C147041CF9000F007C117D /* Release */ = { 448 | isa = XCBuildConfiguration; 449 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 450 | buildSettings = { 451 | ALWAYS_SEARCH_USER_PATHS = NO; 452 | CLANG_ANALYZER_NONNULL = YES; 453 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 454 | CLANG_CXX_LIBRARY = "libc++"; 455 | CLANG_ENABLE_MODULES = YES; 456 | CLANG_ENABLE_OBJC_ARC = YES; 457 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 458 | CLANG_WARN_BOOL_CONVERSION = YES; 459 | CLANG_WARN_COMMA = YES; 460 | CLANG_WARN_CONSTANT_CONVERSION = YES; 461 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 462 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 463 | CLANG_WARN_EMPTY_BODY = YES; 464 | CLANG_WARN_ENUM_CONVERSION = YES; 465 | CLANG_WARN_INFINITE_RECURSION = YES; 466 | CLANG_WARN_INT_CONVERSION = YES; 467 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 468 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 469 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 470 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 471 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 472 | CLANG_WARN_STRICT_PROTOTYPES = YES; 473 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 474 | CLANG_WARN_UNREACHABLE_CODE = YES; 475 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 476 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 477 | COPY_PHASE_STRIP = NO; 478 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 479 | ENABLE_NS_ASSERTIONS = NO; 480 | ENABLE_STRICT_OBJC_MSGSEND = YES; 481 | GCC_C_LANGUAGE_STANDARD = gnu99; 482 | GCC_NO_COMMON_BLOCKS = YES; 483 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 484 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 485 | GCC_WARN_UNDECLARED_SELECTOR = YES; 486 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 487 | GCC_WARN_UNUSED_FUNCTION = YES; 488 | GCC_WARN_UNUSED_VARIABLE = YES; 489 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 490 | MTL_ENABLE_DEBUG_INFO = NO; 491 | SDKROOT = iphoneos; 492 | SUPPORTED_PLATFORMS = iphoneos; 493 | SWIFT_COMPILATION_MODE = wholemodule; 494 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 495 | TARGETED_DEVICE_FAMILY = "1,2"; 496 | VALIDATE_PRODUCT = YES; 497 | }; 498 | name = Release; 499 | }; 500 | 97C147061CF9000F007C117D /* Debug */ = { 501 | isa = XCBuildConfiguration; 502 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 503 | buildSettings = { 504 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 505 | CLANG_ENABLE_MODULES = YES; 506 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 507 | DEVELOPMENT_TEAM = ZR33Z9G938; 508 | ENABLE_BITCODE = NO; 509 | FRAMEWORK_SEARCH_PATHS = ( 510 | "$(inherited)", 511 | "$(PROJECT_DIR)/Flutter", 512 | ); 513 | INFOPLIST_FILE = Runner/Info.plist; 514 | LD_RUNPATH_SEARCH_PATHS = ( 515 | "$(inherited)", 516 | "@executable_path/Frameworks", 517 | ); 518 | LIBRARY_SEARCH_PATHS = ( 519 | "$(inherited)", 520 | "$(PROJECT_DIR)/Flutter", 521 | ); 522 | PRODUCT_BUNDLE_IDENTIFIER = com..tcpChat; 523 | PRODUCT_NAME = "$(TARGET_NAME)"; 524 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 525 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 526 | SWIFT_VERSION = 5.0; 527 | VERSIONING_SYSTEM = "apple-generic"; 528 | }; 529 | name = Debug; 530 | }; 531 | 97C147071CF9000F007C117D /* Release */ = { 532 | isa = XCBuildConfiguration; 533 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 534 | buildSettings = { 535 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 536 | CLANG_ENABLE_MODULES = YES; 537 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 538 | DEVELOPMENT_TEAM = ZR33Z9G938; 539 | ENABLE_BITCODE = NO; 540 | FRAMEWORK_SEARCH_PATHS = ( 541 | "$(inherited)", 542 | "$(PROJECT_DIR)/Flutter", 543 | ); 544 | INFOPLIST_FILE = Runner/Info.plist; 545 | LD_RUNPATH_SEARCH_PATHS = ( 546 | "$(inherited)", 547 | "@executable_path/Frameworks", 548 | ); 549 | LIBRARY_SEARCH_PATHS = ( 550 | "$(inherited)", 551 | "$(PROJECT_DIR)/Flutter", 552 | ); 553 | PRODUCT_BUNDLE_IDENTIFIER = com..tcpChat; 554 | PRODUCT_NAME = "$(TARGET_NAME)"; 555 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 556 | SWIFT_VERSION = 5.0; 557 | VERSIONING_SYSTEM = "apple-generic"; 558 | }; 559 | name = Release; 560 | }; 561 | /* End XCBuildConfiguration section */ 562 | 563 | /* Begin XCConfigurationList section */ 564 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 565 | isa = XCConfigurationList; 566 | buildConfigurations = ( 567 | 97C147031CF9000F007C117D /* Debug */, 568 | 97C147041CF9000F007C117D /* Release */, 569 | 249021D3217E4FDB00AE95B9 /* Profile */, 570 | ); 571 | defaultConfigurationIsVisible = 0; 572 | defaultConfigurationName = Release; 573 | }; 574 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 575 | isa = XCConfigurationList; 576 | buildConfigurations = ( 577 | 97C147061CF9000F007C117D /* Debug */, 578 | 97C147071CF9000F007C117D /* Release */, 579 | 249021D4217E4FDB00AE95B9 /* Profile */, 580 | ); 581 | defaultConfigurationIsVisible = 0; 582 | defaultConfigurationName = Release; 583 | }; 584 | /* End XCConfigurationList section */ 585 | }; 586 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 587 | } 588 | -------------------------------------------------------------------------------- /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 | 5AA0A4D0645BA0CEEA218F9D /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 05644BBD331ABA7FADCBB764 /* Pods_Runner.framework */; }; 32 | D73912F022F37F9E000D13A0 /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D73912EF22F37F9E000D13A0 /* App.framework */; }; 33 | D73912F222F3801D000D13A0 /* App.framework in Bundle Framework */ = {isa = PBXBuildFile; fileRef = D73912EF22F37F9E000D13A0 /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 34 | /* End PBXBuildFile section */ 35 | 36 | /* Begin PBXContainerItemProxy section */ 37 | 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { 38 | isa = PBXContainerItemProxy; 39 | containerPortal = 33CC10E52044A3C60003C045 /* Project object */; 40 | proxyType = 1; 41 | remoteGlobalIDString = 33CC111A2044C6BA0003C045; 42 | remoteInfo = FLX; 43 | }; 44 | /* End PBXContainerItemProxy section */ 45 | 46 | /* Begin PBXCopyFilesBuildPhase section */ 47 | 33CC110E2044A8840003C045 /* Bundle Framework */ = { 48 | isa = PBXCopyFilesBuildPhase; 49 | buildActionMask = 2147483647; 50 | dstPath = ""; 51 | dstSubfolderSpec = 10; 52 | files = ( 53 | D73912F222F3801D000D13A0 /* App.framework in Bundle Framework */, 54 | 33D1A10522148B93006C7A3E /* FlutterMacOS.framework in Bundle Framework */, 55 | ); 56 | name = "Bundle Framework"; 57 | runOnlyForDeploymentPostprocessing = 0; 58 | }; 59 | /* End PBXCopyFilesBuildPhase section */ 60 | 61 | /* Begin PBXFileReference section */ 62 | 05644BBD331ABA7FADCBB764 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 63 | 2324E1C7D9A125100AD4F5C1 /* 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 = ""; }; 64 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; 65 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; 66 | 33CC10ED2044A3C60003C045 /* tcp_chat.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = tcp_chat.app; sourceTree = BUILT_PRODUCTS_DIR; }; 67 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 68 | 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; 69 | 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; 70 | 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; 71 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; 72 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; 73 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; 74 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; 75 | 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FlutterMacOS.framework; path = Flutter/ephemeral/FlutterMacOS.framework; sourceTree = SOURCE_ROOT; }; 76 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; 77 | 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; 78 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; 79 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; 80 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; 81 | D73912EF22F37F9E000D13A0 /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/ephemeral/App.framework; sourceTree = SOURCE_ROOT; }; 82 | DDCA9E7B2472F202D3A19CC5 /* 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 = ""; }; 83 | F556C492E3A5760F926D659B /* 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 = ""; }; 84 | /* End PBXFileReference section */ 85 | 86 | /* Begin PBXFrameworksBuildPhase section */ 87 | 33CC10EA2044A3C60003C045 /* Frameworks */ = { 88 | isa = PBXFrameworksBuildPhase; 89 | buildActionMask = 2147483647; 90 | files = ( 91 | D73912F022F37F9E000D13A0 /* App.framework in Frameworks */, 92 | 33D1A10422148B71006C7A3E /* FlutterMacOS.framework in Frameworks */, 93 | 5AA0A4D0645BA0CEEA218F9D /* Pods_Runner.framework in Frameworks */, 94 | ); 95 | runOnlyForDeploymentPostprocessing = 0; 96 | }; 97 | /* End PBXFrameworksBuildPhase section */ 98 | 99 | /* Begin PBXGroup section */ 100 | 33BA886A226E78AF003329D5 /* Configs */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */, 104 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 105 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 106 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, 107 | ); 108 | path = Configs; 109 | sourceTree = ""; 110 | }; 111 | 33CC10E42044A3C60003C045 = { 112 | isa = PBXGroup; 113 | children = ( 114 | 33FAB671232836740065AC1E /* Runner */, 115 | 33CEB47122A05771004F2AC0 /* Flutter */, 116 | 33CC10EE2044A3C60003C045 /* Products */, 117 | D73912EC22F37F3D000D13A0 /* Frameworks */, 118 | 416D429F07F3E727C1A78F70 /* Pods */, 119 | ); 120 | sourceTree = ""; 121 | }; 122 | 33CC10EE2044A3C60003C045 /* Products */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | 33CC10ED2044A3C60003C045 /* tcp_chat.app */, 126 | ); 127 | name = Products; 128 | sourceTree = ""; 129 | }; 130 | 33CC11242044D66E0003C045 /* Resources */ = { 131 | isa = PBXGroup; 132 | children = ( 133 | 33CC10F22044A3C60003C045 /* Assets.xcassets */, 134 | 33CC10F42044A3C60003C045 /* MainMenu.xib */, 135 | 33CC10F72044A3C60003C045 /* Info.plist */, 136 | ); 137 | name = Resources; 138 | path = ..; 139 | sourceTree = ""; 140 | }; 141 | 33CEB47122A05771004F2AC0 /* Flutter */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, 145 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, 146 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, 147 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, 148 | D73912EF22F37F9E000D13A0 /* App.framework */, 149 | 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */, 150 | ); 151 | path = Flutter; 152 | sourceTree = ""; 153 | }; 154 | 33FAB671232836740065AC1E /* Runner */ = { 155 | isa = PBXGroup; 156 | children = ( 157 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */, 158 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, 159 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */, 160 | 33E51914231749380026EE4D /* Release.entitlements */, 161 | 33CC11242044D66E0003C045 /* Resources */, 162 | 33BA886A226E78AF003329D5 /* Configs */, 163 | ); 164 | path = Runner; 165 | sourceTree = ""; 166 | }; 167 | 416D429F07F3E727C1A78F70 /* Pods */ = { 168 | isa = PBXGroup; 169 | children = ( 170 | DDCA9E7B2472F202D3A19CC5 /* Pods-Runner.debug.xcconfig */, 171 | 2324E1C7D9A125100AD4F5C1 /* Pods-Runner.release.xcconfig */, 172 | F556C492E3A5760F926D659B /* Pods-Runner.profile.xcconfig */, 173 | ); 174 | name = Pods; 175 | path = Pods; 176 | sourceTree = ""; 177 | }; 178 | D73912EC22F37F3D000D13A0 /* Frameworks */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | 05644BBD331ABA7FADCBB764 /* Pods_Runner.framework */, 182 | ); 183 | name = Frameworks; 184 | sourceTree = ""; 185 | }; 186 | /* End PBXGroup section */ 187 | 188 | /* Begin PBXNativeTarget section */ 189 | 33CC10EC2044A3C60003C045 /* Runner */ = { 190 | isa = PBXNativeTarget; 191 | buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; 192 | buildPhases = ( 193 | 2DA5542BC9FC93716BA941E3 /* [CP] Check Pods Manifest.lock */, 194 | 33CC10E92044A3C60003C045 /* Sources */, 195 | 33CC10EA2044A3C60003C045 /* Frameworks */, 196 | 33CC10EB2044A3C60003C045 /* Resources */, 197 | 33CC110E2044A8840003C045 /* Bundle Framework */, 198 | 3399D490228B24CF009A79C7 /* ShellScript */, 199 | 780AF0B20D984AF4807AEC16 /* [CP] Embed Pods Frameworks */, 200 | ); 201 | buildRules = ( 202 | ); 203 | dependencies = ( 204 | 33CC11202044C79F0003C045 /* PBXTargetDependency */, 205 | ); 206 | name = Runner; 207 | productName = Runner; 208 | productReference = 33CC10ED2044A3C60003C045 /* tcp_chat.app */; 209 | productType = "com.apple.product-type.application"; 210 | }; 211 | /* End PBXNativeTarget section */ 212 | 213 | /* Begin PBXProject section */ 214 | 33CC10E52044A3C60003C045 /* Project object */ = { 215 | isa = PBXProject; 216 | attributes = { 217 | LastSwiftUpdateCheck = 0920; 218 | LastUpgradeCheck = 0930; 219 | ORGANIZATIONNAME = "The Flutter Authors"; 220 | TargetAttributes = { 221 | 33CC10EC2044A3C60003C045 = { 222 | CreatedOnToolsVersion = 9.2; 223 | LastSwiftMigration = 1100; 224 | ProvisioningStyle = Automatic; 225 | SystemCapabilities = { 226 | com.apple.Sandbox = { 227 | enabled = 1; 228 | }; 229 | }; 230 | }; 231 | 33CC111A2044C6BA0003C045 = { 232 | CreatedOnToolsVersion = 9.2; 233 | ProvisioningStyle = Manual; 234 | }; 235 | }; 236 | }; 237 | buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; 238 | compatibilityVersion = "Xcode 8.0"; 239 | developmentRegion = en; 240 | hasScannedForEncodings = 0; 241 | knownRegions = ( 242 | en, 243 | Base, 244 | ); 245 | mainGroup = 33CC10E42044A3C60003C045; 246 | productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; 247 | projectDirPath = ""; 248 | projectRoot = ""; 249 | targets = ( 250 | 33CC10EC2044A3C60003C045 /* Runner */, 251 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */, 252 | ); 253 | }; 254 | /* End PBXProject section */ 255 | 256 | /* Begin PBXResourcesBuildPhase section */ 257 | 33CC10EB2044A3C60003C045 /* Resources */ = { 258 | isa = PBXResourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, 262 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, 263 | ); 264 | runOnlyForDeploymentPostprocessing = 0; 265 | }; 266 | /* End PBXResourcesBuildPhase section */ 267 | 268 | /* Begin PBXShellScriptBuildPhase section */ 269 | 2DA5542BC9FC93716BA941E3 /* [CP] Check Pods Manifest.lock */ = { 270 | isa = PBXShellScriptBuildPhase; 271 | buildActionMask = 2147483647; 272 | files = ( 273 | ); 274 | inputFileListPaths = ( 275 | ); 276 | inputPaths = ( 277 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 278 | "${PODS_ROOT}/Manifest.lock", 279 | ); 280 | name = "[CP] Check Pods Manifest.lock"; 281 | outputFileListPaths = ( 282 | ); 283 | outputPaths = ( 284 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 285 | ); 286 | runOnlyForDeploymentPostprocessing = 0; 287 | shellPath = /bin/sh; 288 | 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"; 289 | showEnvVarsInLog = 0; 290 | }; 291 | 3399D490228B24CF009A79C7 /* ShellScript */ = { 292 | isa = PBXShellScriptBuildPhase; 293 | buildActionMask = 2147483647; 294 | files = ( 295 | ); 296 | inputFileListPaths = ( 297 | ); 298 | inputPaths = ( 299 | ); 300 | outputFileListPaths = ( 301 | ); 302 | outputPaths = ( 303 | ); 304 | runOnlyForDeploymentPostprocessing = 0; 305 | shellPath = /bin/sh; 306 | shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename\n"; 307 | }; 308 | 33CC111E2044C6BF0003C045 /* ShellScript */ = { 309 | isa = PBXShellScriptBuildPhase; 310 | buildActionMask = 2147483647; 311 | files = ( 312 | ); 313 | inputFileListPaths = ( 314 | Flutter/ephemeral/FlutterInputs.xcfilelist, 315 | ); 316 | inputPaths = ( 317 | Flutter/ephemeral/tripwire, 318 | ); 319 | outputFileListPaths = ( 320 | Flutter/ephemeral/FlutterOutputs.xcfilelist, 321 | ); 322 | outputPaths = ( 323 | ); 324 | runOnlyForDeploymentPostprocessing = 0; 325 | shellPath = /bin/sh; 326 | shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh\ntouch Flutter/ephemeral/tripwire\n"; 327 | }; 328 | 780AF0B20D984AF4807AEC16 /* [CP] Embed Pods Frameworks */ = { 329 | isa = PBXShellScriptBuildPhase; 330 | buildActionMask = 2147483647; 331 | files = ( 332 | ); 333 | inputFileListPaths = ( 334 | ); 335 | name = "[CP] Embed Pods Frameworks"; 336 | outputFileListPaths = ( 337 | ); 338 | runOnlyForDeploymentPostprocessing = 0; 339 | shellPath = /bin/sh; 340 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 341 | showEnvVarsInLog = 0; 342 | }; 343 | /* End PBXShellScriptBuildPhase section */ 344 | 345 | /* Begin PBXSourcesBuildPhase section */ 346 | 33CC10E92044A3C60003C045 /* Sources */ = { 347 | isa = PBXSourcesBuildPhase; 348 | buildActionMask = 2147483647; 349 | files = ( 350 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, 351 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, 352 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, 353 | ); 354 | runOnlyForDeploymentPostprocessing = 0; 355 | }; 356 | /* End PBXSourcesBuildPhase section */ 357 | 358 | /* Begin PBXTargetDependency section */ 359 | 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { 360 | isa = PBXTargetDependency; 361 | target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; 362 | targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; 363 | }; 364 | /* End PBXTargetDependency section */ 365 | 366 | /* Begin PBXVariantGroup section */ 367 | 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { 368 | isa = PBXVariantGroup; 369 | children = ( 370 | 33CC10F52044A3C60003C045 /* Base */, 371 | ); 372 | name = MainMenu.xib; 373 | path = Runner; 374 | sourceTree = ""; 375 | }; 376 | /* End PBXVariantGroup section */ 377 | 378 | /* Begin XCBuildConfiguration section */ 379 | 338D0CE9231458BD00FA5F75 /* Profile */ = { 380 | isa = XCBuildConfiguration; 381 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 382 | buildSettings = { 383 | ALWAYS_SEARCH_USER_PATHS = NO; 384 | CLANG_ANALYZER_NONNULL = YES; 385 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 386 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 387 | CLANG_CXX_LIBRARY = "libc++"; 388 | CLANG_ENABLE_MODULES = YES; 389 | CLANG_ENABLE_OBJC_ARC = YES; 390 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 391 | CLANG_WARN_BOOL_CONVERSION = YES; 392 | CLANG_WARN_CONSTANT_CONVERSION = YES; 393 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 394 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 395 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 396 | CLANG_WARN_EMPTY_BODY = YES; 397 | CLANG_WARN_ENUM_CONVERSION = YES; 398 | CLANG_WARN_INFINITE_RECURSION = YES; 399 | CLANG_WARN_INT_CONVERSION = YES; 400 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 401 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 402 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 403 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 404 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 405 | CODE_SIGN_IDENTITY = "-"; 406 | COPY_PHASE_STRIP = NO; 407 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 408 | ENABLE_NS_ASSERTIONS = NO; 409 | ENABLE_STRICT_OBJC_MSGSEND = YES; 410 | GCC_C_LANGUAGE_STANDARD = gnu11; 411 | GCC_NO_COMMON_BLOCKS = YES; 412 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 413 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 414 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 415 | GCC_WARN_UNUSED_FUNCTION = YES; 416 | GCC_WARN_UNUSED_VARIABLE = YES; 417 | MACOSX_DEPLOYMENT_TARGET = 10.11; 418 | MTL_ENABLE_DEBUG_INFO = NO; 419 | SDKROOT = macosx; 420 | SWIFT_COMPILATION_MODE = wholemodule; 421 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 422 | }; 423 | name = Profile; 424 | }; 425 | 338D0CEA231458BD00FA5F75 /* Profile */ = { 426 | isa = XCBuildConfiguration; 427 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; 428 | buildSettings = { 429 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 430 | CLANG_ENABLE_MODULES = YES; 431 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; 432 | CODE_SIGN_STYLE = Automatic; 433 | COMBINE_HIDPI_IMAGES = YES; 434 | FRAMEWORK_SEARCH_PATHS = ( 435 | "$(inherited)", 436 | "$(PROJECT_DIR)/Flutter/ephemeral", 437 | ); 438 | INFOPLIST_FILE = Runner/Info.plist; 439 | LD_RUNPATH_SEARCH_PATHS = ( 440 | "$(inherited)", 441 | "@executable_path/../Frameworks", 442 | ); 443 | PROVISIONING_PROFILE_SPECIFIER = ""; 444 | SWIFT_VERSION = 5.0; 445 | }; 446 | name = Profile; 447 | }; 448 | 338D0CEB231458BD00FA5F75 /* Profile */ = { 449 | isa = XCBuildConfiguration; 450 | buildSettings = { 451 | CODE_SIGN_STYLE = Manual; 452 | PRODUCT_NAME = "$(TARGET_NAME)"; 453 | }; 454 | name = Profile; 455 | }; 456 | 33CC10F92044A3C60003C045 /* Debug */ = { 457 | isa = XCBuildConfiguration; 458 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 459 | buildSettings = { 460 | ALWAYS_SEARCH_USER_PATHS = NO; 461 | CLANG_ANALYZER_NONNULL = YES; 462 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 463 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 464 | CLANG_CXX_LIBRARY = "libc++"; 465 | CLANG_ENABLE_MODULES = YES; 466 | CLANG_ENABLE_OBJC_ARC = YES; 467 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 468 | CLANG_WARN_BOOL_CONVERSION = YES; 469 | CLANG_WARN_CONSTANT_CONVERSION = YES; 470 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 471 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 472 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 473 | CLANG_WARN_EMPTY_BODY = YES; 474 | CLANG_WARN_ENUM_CONVERSION = YES; 475 | CLANG_WARN_INFINITE_RECURSION = YES; 476 | CLANG_WARN_INT_CONVERSION = YES; 477 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 478 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 479 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 480 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 481 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 482 | CODE_SIGN_IDENTITY = "-"; 483 | COPY_PHASE_STRIP = NO; 484 | DEBUG_INFORMATION_FORMAT = dwarf; 485 | ENABLE_STRICT_OBJC_MSGSEND = YES; 486 | ENABLE_TESTABILITY = YES; 487 | GCC_C_LANGUAGE_STANDARD = gnu11; 488 | GCC_DYNAMIC_NO_PIC = NO; 489 | GCC_NO_COMMON_BLOCKS = YES; 490 | GCC_OPTIMIZATION_LEVEL = 0; 491 | GCC_PREPROCESSOR_DEFINITIONS = ( 492 | "DEBUG=1", 493 | "$(inherited)", 494 | ); 495 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 496 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 497 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 498 | GCC_WARN_UNUSED_FUNCTION = YES; 499 | GCC_WARN_UNUSED_VARIABLE = YES; 500 | MACOSX_DEPLOYMENT_TARGET = 10.11; 501 | MTL_ENABLE_DEBUG_INFO = YES; 502 | ONLY_ACTIVE_ARCH = YES; 503 | SDKROOT = macosx; 504 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 505 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 506 | }; 507 | name = Debug; 508 | }; 509 | 33CC10FA2044A3C60003C045 /* Release */ = { 510 | isa = XCBuildConfiguration; 511 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 512 | buildSettings = { 513 | ALWAYS_SEARCH_USER_PATHS = NO; 514 | CLANG_ANALYZER_NONNULL = YES; 515 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 516 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 517 | CLANG_CXX_LIBRARY = "libc++"; 518 | CLANG_ENABLE_MODULES = YES; 519 | CLANG_ENABLE_OBJC_ARC = YES; 520 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 521 | CLANG_WARN_BOOL_CONVERSION = YES; 522 | CLANG_WARN_CONSTANT_CONVERSION = YES; 523 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 524 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 525 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 526 | CLANG_WARN_EMPTY_BODY = YES; 527 | CLANG_WARN_ENUM_CONVERSION = YES; 528 | CLANG_WARN_INFINITE_RECURSION = YES; 529 | CLANG_WARN_INT_CONVERSION = YES; 530 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 531 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 532 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 533 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 534 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 535 | CODE_SIGN_IDENTITY = "-"; 536 | COPY_PHASE_STRIP = NO; 537 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 538 | ENABLE_NS_ASSERTIONS = NO; 539 | ENABLE_STRICT_OBJC_MSGSEND = YES; 540 | GCC_C_LANGUAGE_STANDARD = gnu11; 541 | GCC_NO_COMMON_BLOCKS = YES; 542 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 543 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 544 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 545 | GCC_WARN_UNUSED_FUNCTION = YES; 546 | GCC_WARN_UNUSED_VARIABLE = YES; 547 | MACOSX_DEPLOYMENT_TARGET = 10.11; 548 | MTL_ENABLE_DEBUG_INFO = NO; 549 | SDKROOT = macosx; 550 | SWIFT_COMPILATION_MODE = wholemodule; 551 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 552 | }; 553 | name = Release; 554 | }; 555 | 33CC10FC2044A3C60003C045 /* Debug */ = { 556 | isa = XCBuildConfiguration; 557 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; 558 | buildSettings = { 559 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 560 | CLANG_ENABLE_MODULES = YES; 561 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; 562 | CODE_SIGN_STYLE = Automatic; 563 | COMBINE_HIDPI_IMAGES = YES; 564 | FRAMEWORK_SEARCH_PATHS = ( 565 | "$(inherited)", 566 | "$(PROJECT_DIR)/Flutter/ephemeral", 567 | ); 568 | INFOPLIST_FILE = Runner/Info.plist; 569 | LD_RUNPATH_SEARCH_PATHS = ( 570 | "$(inherited)", 571 | "@executable_path/../Frameworks", 572 | ); 573 | PROVISIONING_PROFILE_SPECIFIER = ""; 574 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 575 | SWIFT_VERSION = 5.0; 576 | }; 577 | name = Debug; 578 | }; 579 | 33CC10FD2044A3C60003C045 /* Release */ = { 580 | isa = XCBuildConfiguration; 581 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; 582 | buildSettings = { 583 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 584 | CLANG_ENABLE_MODULES = YES; 585 | CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; 586 | CODE_SIGN_STYLE = Automatic; 587 | COMBINE_HIDPI_IMAGES = YES; 588 | FRAMEWORK_SEARCH_PATHS = ( 589 | "$(inherited)", 590 | "$(PROJECT_DIR)/Flutter/ephemeral", 591 | ); 592 | INFOPLIST_FILE = Runner/Info.plist; 593 | LD_RUNPATH_SEARCH_PATHS = ( 594 | "$(inherited)", 595 | "@executable_path/../Frameworks", 596 | ); 597 | PROVISIONING_PROFILE_SPECIFIER = ""; 598 | SWIFT_VERSION = 5.0; 599 | }; 600 | name = Release; 601 | }; 602 | 33CC111C2044C6BA0003C045 /* Debug */ = { 603 | isa = XCBuildConfiguration; 604 | buildSettings = { 605 | CODE_SIGN_STYLE = Manual; 606 | PRODUCT_NAME = "$(TARGET_NAME)"; 607 | }; 608 | name = Debug; 609 | }; 610 | 33CC111D2044C6BA0003C045 /* Release */ = { 611 | isa = XCBuildConfiguration; 612 | buildSettings = { 613 | CODE_SIGN_STYLE = Automatic; 614 | PRODUCT_NAME = "$(TARGET_NAME)"; 615 | }; 616 | name = Release; 617 | }; 618 | /* End XCBuildConfiguration section */ 619 | 620 | /* Begin XCConfigurationList section */ 621 | 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { 622 | isa = XCConfigurationList; 623 | buildConfigurations = ( 624 | 33CC10F92044A3C60003C045 /* Debug */, 625 | 33CC10FA2044A3C60003C045 /* Release */, 626 | 338D0CE9231458BD00FA5F75 /* Profile */, 627 | ); 628 | defaultConfigurationIsVisible = 0; 629 | defaultConfigurationName = Release; 630 | }; 631 | 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { 632 | isa = XCConfigurationList; 633 | buildConfigurations = ( 634 | 33CC10FC2044A3C60003C045 /* Debug */, 635 | 33CC10FD2044A3C60003C045 /* Release */, 636 | 338D0CEA231458BD00FA5F75 /* Profile */, 637 | ); 638 | defaultConfigurationIsVisible = 0; 639 | defaultConfigurationName = Release; 640 | }; 641 | 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { 642 | isa = XCConfigurationList; 643 | buildConfigurations = ( 644 | 33CC111C2044C6BA0003C045 /* Debug */, 645 | 33CC111D2044C6BA0003C045 /* Release */, 646 | 338D0CEB231458BD00FA5F75 /* Profile */, 647 | ); 648 | defaultConfigurationIsVisible = 0; 649 | defaultConfigurationName = Release; 650 | }; 651 | /* End XCConfigurationList section */ 652 | }; 653 | rootObject = 33CC10E52044A3C60003C045 /* Project object */; 654 | } 655 | --------------------------------------------------------------------------------