├── server ├── requirements.txt ├── __pycache__ │ └── main.cpython-39.pyc ├── app │ ├── utils │ │ ├── __pycache__ │ │ │ ├── app.cpython-39.pyc │ │ │ └── expert_system.cpython-39.pyc │ │ ├── test.py │ │ └── expert_system.py │ └── schemas.py └── main.py ├── client └── client_app │ ├── ios │ ├── Flutter │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ └── AppFrameworkInfo.plist │ ├── 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 │ ├── 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 │ ├── RunnerTests │ │ └── RunnerTests.swift │ └── .gitignore │ ├── assets │ └── bg.jpg │ ├── android │ ├── gradle.properties │ ├── app │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable │ │ │ │ │ │ └── launch_background.xml │ │ │ │ │ ├── drawable-v21 │ │ │ │ │ │ └── launch_background.xml │ │ │ │ │ ├── values │ │ │ │ │ │ └── styles.xml │ │ │ │ │ └── values-night │ │ │ │ │ │ └── styles.xml │ │ │ │ ├── kotlin │ │ │ │ │ └── com │ │ │ │ │ │ └── example │ │ │ │ │ │ └── client_app │ │ │ │ │ │ └── MainActivity.kt │ │ │ │ └── AndroidManifest.xml │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ └── profile │ │ │ │ └── AndroidManifest.xml │ │ └── build.gradle │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ ├── .gitignore │ ├── build.gradle │ └── settings.gradle │ ├── lib │ ├── main.dart │ ├── api.dart │ ├── models │ │ ├── answer_model.dart │ │ └── question_model.dart │ ├── app.dart │ ├── expert_system_provider.dart │ └── main_view.dart │ ├── README.md │ ├── test │ └── widget_test.dart │ ├── .gitignore │ ├── analysis_options.yaml │ ├── .metadata │ ├── pubspec.yaml │ └── pubspec.lock └── README.md /server/requirements.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /client/client_app/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /client/client_app/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /client/client_app/assets/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/assets/bg.jpg -------------------------------------------------------------------------------- /client/client_app/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx4G 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /server/__pycache__/main.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/server/__pycache__/main.cpython-39.pyc -------------------------------------------------------------------------------- /server/app/utils/__pycache__/app.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/server/app/utils/__pycache__/app.cpython-39.pyc -------------------------------------------------------------------------------- /server/app/utils/__pycache__/expert_system.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/server/app/utils/__pycache__/expert_system.cpython-39.pyc -------------------------------------------------------------------------------- /client/client_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /client/client_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /client/client_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /client/client_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /client/client_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /client/client_app/android/app/src/main/kotlin/com/example/client_app/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.client_app 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() 6 | -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /client/client_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /client/client_app/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1FarZ1/Pc-Diagnoses-Expert-System/HEAD/client/client_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /client/client_app/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 3 | 4 | import 'app.dart'; 5 | 6 | void main() { 7 | runApp(const ProviderScope(child: PcDiagnosisApp())); 8 | } 9 | -------------------------------------------------------------------------------- /client/client_app/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip 6 | -------------------------------------------------------------------------------- /server/app/schemas.py: -------------------------------------------------------------------------------- 1 | from typing import List 2 | 3 | from pydantic import BaseModel 4 | 5 | 6 | class Symptom(BaseModel): 7 | symptom: str 8 | 9 | 10 | class AnswerModel(BaseModel): 11 | symptoms: List[Symptom] 12 | 13 | 14 | class Question(BaseModel): 15 | question: str 16 | symptom : str 17 | -------------------------------------------------------------------------------- /client/client_app/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /client/client_app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /client/client_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /client/client_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /client/client_app/android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /client/client_app/ios/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /client/client_app/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. -------------------------------------------------------------------------------- /client/client_app/android/build.gradle: -------------------------------------------------------------------------------- 1 | allprojects { 2 | repositories { 3 | google() 4 | mavenCentral() 5 | } 6 | } 7 | 8 | rootProject.buildDir = '../build' 9 | subprojects { 10 | project.buildDir = "${rootProject.buildDir}/${project.name}" 11 | } 12 | subprojects { 13 | project.evaluationDependsOn(':app') 14 | } 15 | 16 | tasks.register("clean", Delete) { 17 | delete rootProject.buildDir 18 | } 19 | -------------------------------------------------------------------------------- /client/client_app/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /client/client_app/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /client/client_app/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 | -------------------------------------------------------------------------------- /client/client_app/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /client/client_app/android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /client/client_app/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 | -------------------------------------------------------------------------------- /client/client_app/README.md: -------------------------------------------------------------------------------- 1 | # client_app 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) 13 | 14 | For help getting started with Flutter development, view the 15 | [online documentation](https://docs.flutter.dev/), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Pc Diagnoses Expert System 2 | 3 | - A Pc Diagnoses System that help users identify their Problem Based on A yes and no queestions , currently not that effiecent , 4 | 5 | ## Strcuture 6 | 7 | ### Consist of 8 | 9 | - A Client App Made by Flutter 10 | - A Server Made by FastApi 11 | 12 | ### Contrubution 13 | 14 | - You can contribute by adding more questions and more diagnosis to the system 15 | 16 | ## How to Run 17 | 18 | - Clone the repo 19 | - install the dependencies by running `pip install -r requirements.txt` 20 | - Run the server by running `python main.py` 21 | - Run the client by running `flutter run` 22 | 23 | ## Author 24 | 25 | - 1FarZ1 26 | -------------------------------------------------------------------------------- /client/client_app/ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /client/client_app/test/widget_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_test/flutter_test.dart'; 3 | import 'package:client_app/app.dart'; 4 | 5 | void main() { 6 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 7 | // Build our app and trigger a frame. 8 | await tester.pumpWidget(const PcDiagnosisApp()); 9 | 10 | // Verify that our counter starts at 0. 11 | expect(find.text('0'), findsOneWidget); 12 | expect(find.text('1'), findsNothing); 13 | 14 | // Tap the '+' icon and trigger a frame. 15 | await tester.tap(find.byIcon(Icons.add)); 16 | await tester.pump(); 17 | 18 | // Verify that our counter has incremented. 19 | expect(find.text('0'), findsNothing); 20 | expect(find.text('1'), findsOneWidget); 21 | }); 22 | } 23 | -------------------------------------------------------------------------------- /client/client_app/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Symbolication related 35 | app.*.symbols 36 | 37 | # Obfuscation related 38 | app.*.map.json 39 | 40 | # Android Studio will place build artifacts here 41 | /android/app/debug 42 | /android/app/profile 43 | /android/app/release 44 | -------------------------------------------------------------------------------- /client/client_app/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 12.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /client/client_app/android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | def flutterSdkPath = { 3 | def properties = new Properties() 4 | file("local.properties").withInputStream { properties.load(it) } 5 | def flutterSdkPath = properties.getProperty("flutter.sdk") 6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 7 | return flutterSdkPath 8 | } 9 | settings.ext.flutterSdkPath = flutterSdkPath() 10 | 11 | includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") 12 | 13 | repositories { 14 | google() 15 | mavenCentral() 16 | gradlePluginPortal() 17 | } 18 | } 19 | 20 | plugins { 21 | id "dev.flutter.flutter-plugin-loader" version "1.0.0" 22 | id "com.android.application" version "7.3.0" apply false 23 | id "org.jetbrains.kotlin.android" version "1.7.10" apply false 24 | } 25 | 26 | include ":app" 27 | -------------------------------------------------------------------------------- /client/client_app/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /client/client_app/android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /client/client_app/lib/api.dart: -------------------------------------------------------------------------------- 1 | import 'package:dio/dio.dart'; 2 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 3 | 4 | import 'models/answer_model.dart'; 5 | 6 | final dioProvider = Provider((ref) => Dio()); 7 | 8 | final apiProvider = 9 | Provider((ref) => TestingApi(ref.watch(dioProvider))); 10 | 11 | class TestingApi { 12 | TestingApi(this.client); 13 | 14 | final Dio client; 15 | Future fetch() async { 16 | try { 17 | final response = await client 18 | .get('https://grizzly-trusty-purely.ngrok-free.app/questions/'); 19 | return response; 20 | } catch (e) { 21 | print(e.toString()); 22 | rethrow; 23 | } 24 | } 25 | 26 | Future getResults(List answers) async { 27 | try { 28 | final response = await client.post( 29 | 'https://grizzly-trusty-purely.ngrok-free.app/diagnose_issue', 30 | data: {'symptoms': answers.map((e) => e.toMap()).toList()}); 31 | return response; 32 | } catch (e) { 33 | print(e.toString()); 34 | rethrow; 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /client/client_app/lib/models/answer_model.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: public_member_api_docs, sort_constructors_first 2 | 3 | import 'dart:convert'; 4 | 5 | class AnswerModel { 6 | final String symptom; 7 | AnswerModel({ 8 | required this.symptom, 9 | }); 10 | 11 | AnswerModel copyWith({ 12 | String? symptom, 13 | }) { 14 | return AnswerModel( 15 | symptom: symptom ?? this.symptom, 16 | ); 17 | } 18 | 19 | Map toMap() { 20 | return { 21 | 'symptom': symptom, 22 | }; 23 | } 24 | 25 | factory AnswerModel.fromMap(Map map) { 26 | return AnswerModel( 27 | symptom: map['symptom'] as String, 28 | ); 29 | } 30 | 31 | String toJson() => json.encode(toMap()); 32 | 33 | factory AnswerModel.fromJson(String source) => 34 | AnswerModel.fromMap(json.decode(source) as Map); 35 | 36 | @override 37 | String toString() => 'AnswerModel(symptom: $symptom)'; 38 | 39 | @override 40 | bool operator ==(covariant AnswerModel other) { 41 | if (identical(this, other)) return true; 42 | 43 | return other.symptom == symptom; 44 | } 45 | 46 | @override 47 | int get hashCode => symptom.hashCode; 48 | } 49 | -------------------------------------------------------------------------------- /server/app/utils/test.py: -------------------------------------------------------------------------------- 1 | 2 | from expert_system import PCDiagnosis 3 | from experta import Fact 4 | 5 | def main(): 6 | engine = PCDiagnosis() 7 | symptoms = [ 8 | 'PC_does_not_boot', 9 | # 'Power_indicator_on_but_no_display', 10 | # 'Unusual_noise_from_PC', 11 | # 'System_overheating', 12 | # 'Intermittent_freezing', 13 | # 'System_crashes_on_startup', 14 | # 'Slow_system_performance', 15 | # 'Hardware_failure_warning', 16 | # 'Unable_to_access_data', 17 | # 'Strange_error_messages', 18 | # 'Peripheral_device_failure', 19 | # 'Blue_screen_of_death', 20 | # 'Network_connection_issues', 21 | # 'Battery_not_charging', 22 | # 'Missing_files_or_icons', 23 | # 'Application_errors', 24 | # 'Random_restarts', 25 | # 'Loud_fan_noise', 26 | # 'Computer_shuts_down_abruptly', 27 | # 'USB_device_not_recognized' 28 | ] 29 | 30 | engine.initialFacts = symptoms 31 | engine.reset() 32 | engine.run() 33 | 34 | 35 | print(engine.agenda) 36 | print(engine.facts) 37 | print(engine.diagnoses) 38 | 39 | 40 | if __name__ == '__main__': 41 | main() 42 | 43 | # : Fact() -------------------------------------------------------------------------------- /client/client_app/lib/models/question_model.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | class QuestionModel { 4 | final String question; 5 | final String symptom; 6 | 7 | QuestionModel({ 8 | required this.question, 9 | required this.symptom, 10 | }); 11 | 12 | QuestionModel copyWith({ 13 | String? question, 14 | String? symptom, 15 | }) { 16 | return QuestionModel( 17 | question: question ?? this.question, 18 | symptom: symptom ?? this.symptom, 19 | ); 20 | } 21 | 22 | Map toMap() { 23 | return { 24 | 'question': question, 25 | 'symptom': symptom, 26 | }; 27 | } 28 | 29 | factory QuestionModel.fromMap(Map map) { 30 | return QuestionModel( 31 | question: map['question'] as String, 32 | symptom: map['symptom'] as String, 33 | ); 34 | } 35 | 36 | String toJson() => json.encode(toMap()); 37 | 38 | factory QuestionModel.fromJson(String source) => 39 | QuestionModel.fromMap(json.decode(source) as Map); 40 | 41 | @override 42 | String toString() => 'QuestionModel(question: $question, symptom: $symptom)'; 43 | 44 | @override 45 | bool operator ==(covariant QuestionModel other) { 46 | if (identical(this, other)) return true; 47 | 48 | return other.question == question && other.symptom == symptom; 49 | } 50 | 51 | @override 52 | int get hashCode => question.hashCode ^ symptom.hashCode; 53 | } 54 | -------------------------------------------------------------------------------- /client/client_app/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at https://dart.dev/lints. 17 | # 18 | # Instead of disabling a lint rule for the entire project in the 19 | # section below, it can also be suppressed for a single line of code 20 | # or a specific dart file by using the `// ignore: name_of_lint` and 21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 22 | # producing the lint. 23 | rules: 24 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 25 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 26 | 27 | # Additional information about this file can be found at 28 | # https://dart.dev/guides/language/analysis-options 29 | -------------------------------------------------------------------------------- /client/client_app/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 | -------------------------------------------------------------------------------- /client/client_app/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Client App 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | client_app 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | CADisableMinimumFrameDurationOnPhone 45 | 46 | UIApplicationSupportsIndirectInputEvents 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /client/client_app/.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: "bae5e49bc2a867403c43b2aae2de8f8c33b037e4" 8 | channel: "stable" 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: bae5e49bc2a867403c43b2aae2de8f8c33b037e4 17 | base_revision: bae5e49bc2a867403c43b2aae2de8f8c33b037e4 18 | - platform: android 19 | create_revision: bae5e49bc2a867403c43b2aae2de8f8c33b037e4 20 | base_revision: bae5e49bc2a867403c43b2aae2de8f8c33b037e4 21 | - platform: ios 22 | create_revision: bae5e49bc2a867403c43b2aae2de8f8c33b037e4 23 | base_revision: bae5e49bc2a867403c43b2aae2de8f8c33b037e4 24 | - platform: linux 25 | create_revision: bae5e49bc2a867403c43b2aae2de8f8c33b037e4 26 | base_revision: bae5e49bc2a867403c43b2aae2de8f8c33b037e4 27 | - platform: macos 28 | create_revision: bae5e49bc2a867403c43b2aae2de8f8c33b037e4 29 | base_revision: bae5e49bc2a867403c43b2aae2de8f8c33b037e4 30 | - platform: web 31 | create_revision: bae5e49bc2a867403c43b2aae2de8f8c33b037e4 32 | base_revision: bae5e49bc2a867403c43b2aae2de8f8c33b037e4 33 | - platform: windows 34 | create_revision: bae5e49bc2a867403c43b2aae2de8f8c33b037e4 35 | base_revision: bae5e49bc2a867403c43b2aae2de8f8c33b037e4 36 | 37 | # User provided section 38 | 39 | # List of Local paths (relative to this file) that should be 40 | # ignored by the migrate tool. 41 | # 42 | # Files that are not part of the templates will be ignored by default. 43 | unmanaged_files: 44 | - 'lib/main.dart' 45 | - 'ios/Runner.xcodeproj/project.pbxproj' 46 | -------------------------------------------------------------------------------- /server/main.py: -------------------------------------------------------------------------------- 1 | from fastapi import FastAPI, HTTPException 2 | from app.utils.expert_system import PCDiagnosis 3 | from server.app.schemas import Question, AnswerModel 4 | app = FastAPI() 5 | 6 | 7 | questions = [ 8 | Question(question="Is the system overheating?", symptom="System_overheating"), 9 | Question(question="Is the system freezing intermittently?", symptom="Intermittent_freezing"), 10 | Question(question="Is the system performing slowly?", symptom="Slow_system_performance"), 11 | Question(question="Are you experiencing peripheral device failures?", symptom="Peripheral_device_failure"), 12 | Question(question="Is the USB device not recognized?", symptom="USB_device_not_recognized"), 13 | Question(question="Are you experiencing network connection issues?", symptom="Network_connection_issues"), 14 | Question(question="Are you seeing strange error messages?", symptom="Strange_error_messages"), 15 | Question(question="Are you seeing the blue screen of death?", symptom="Blue_screen_of_death"), 16 | Question(question="Are files or icons missing?", symptom="Missing_files_or_icons"), 17 | Question(question="Are you unable to access data?", symptom="Unable_to_access_data"), 18 | Question(question="Are you experiencing application errors?", symptom="Application_errors"), 19 | 20 | ] 21 | 22 | @app.get("/questions") 23 | async def get_questions(): 24 | try : 25 | return questions 26 | except: 27 | raise HTTPException(status_code=404, detail="Questions not found") 28 | 29 | 30 | 31 | @app.post("/diagnose_issue") 32 | async def diagnose_issue(answer: AnswerModel): 33 | try: 34 | engine = PCDiagnosis() 35 | engine.initialFacts = [symptom.symptom for symptom in answer.symptoms] 36 | engine.reset() 37 | engine.diagnoses = [] 38 | engine.run() 39 | print(engine.diagnoses) 40 | if not engine.diagnoses: 41 | raise HTTPException(status_code=404, detail="No diagnosis found") 42 | 43 | return engine.diagnoses 44 | except: 45 | raise HTTPException(status_code=500, detail="Internal server error") 46 | -------------------------------------------------------------------------------- /client/client_app/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id "com.android.application" 3 | id "kotlin-android" 4 | id "dev.flutter.flutter-gradle-plugin" 5 | } 6 | 7 | def localProperties = new Properties() 8 | def localPropertiesFile = rootProject.file('local.properties') 9 | if (localPropertiesFile.exists()) { 10 | localPropertiesFile.withReader('UTF-8') { reader -> 11 | localProperties.load(reader) 12 | } 13 | } 14 | 15 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 16 | if (flutterVersionCode == null) { 17 | flutterVersionCode = '1' 18 | } 19 | 20 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 21 | if (flutterVersionName == null) { 22 | flutterVersionName = '1.0' 23 | } 24 | 25 | android { 26 | namespace "com.example.client_app" 27 | compileSdk flutter.compileSdkVersion 28 | ndkVersion flutter.ndkVersion 29 | 30 | compileOptions { 31 | sourceCompatibility JavaVersion.VERSION_1_8 32 | targetCompatibility JavaVersion.VERSION_1_8 33 | } 34 | 35 | kotlinOptions { 36 | jvmTarget = '1.8' 37 | } 38 | 39 | sourceSets { 40 | main.java.srcDirs += 'src/main/kotlin' 41 | } 42 | 43 | defaultConfig { 44 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 45 | applicationId "com.example.client_app" 46 | // You can update the following values to match your application needs. 47 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. 48 | minSdkVersion flutter.minSdkVersion 49 | targetSdkVersion flutter.targetSdkVersion 50 | versionCode flutterVersionCode.toInteger() 51 | versionName flutterVersionName 52 | } 53 | 54 | buildTypes { 55 | release { 56 | // TODO: Add your own signing config for the release build. 57 | // Signing with the debug keys for now, so `flutter run --release` works. 58 | signingConfig signingConfigs.debug 59 | } 60 | } 61 | } 62 | 63 | flutter { 64 | source '../..' 65 | } 66 | 67 | dependencies {} 68 | -------------------------------------------------------------------------------- /client/client_app/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 14 | 18 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 32 | 33 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /client/client_app/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 | -------------------------------------------------------------------------------- /client/client_app/lib/app.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'main_view.dart'; 4 | 5 | class PcDiagnosisApp extends StatelessWidget { 6 | const PcDiagnosisApp({super.key}); 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return MaterialApp( 11 | title: 'Aima client', 12 | debugShowCheckedModeBanner: false, 13 | theme: ThemeData( 14 | colorScheme: ColorScheme.fromSeed(seedColor: Colors.white), 15 | useMaterial3: true, 16 | ), 17 | home: const WelcomeView(), 18 | ); 19 | } 20 | } 21 | 22 | class WelcomeView extends StatelessWidget { 23 | const WelcomeView({ 24 | super.key, 25 | }); 26 | 27 | @override 28 | Widget build(BuildContext context) { 29 | return Scaffold( 30 | backgroundColor: Colors.white.withOpacity(0.95), 31 | body: Container( 32 | decoration: const BoxDecoration( 33 | image: DecorationImage( 34 | image: AssetImage('assets/bg.jpg'), 35 | fit: BoxFit.cover, 36 | ), 37 | ), 38 | child: Column( 39 | mainAxisAlignment: MainAxisAlignment.center, 40 | children: [ 41 | Container( 42 | padding: const EdgeInsets.symmetric( 43 | horizontal: 20, 44 | vertical: 100, 45 | ), 46 | alignment: Alignment.center, 47 | decoration: const BoxDecoration( 48 | color: Colors.transparent, 49 | borderRadius: BorderRadius.all(Radius.circular(10))), 50 | child: Column( 51 | children: [ 52 | const Text('Welcome to the Pc Diagnostics App', 53 | style: TextStyle( 54 | fontSize: 16, 55 | fontWeight: FontWeight.bold, 56 | color: Colors.white)), 57 | const SizedBox(height: 20), 58 | const Text( 59 | 'Click the button below to start diagnosing your PC', 60 | style: TextStyle( 61 | fontSize: 12, 62 | fontWeight: FontWeight.bold, 63 | color: Colors.white)), 64 | const SizedBox(height: 20), 65 | ElevatedButton( 66 | onPressed: () { 67 | Navigator.push( 68 | context, 69 | MaterialPageRoute( 70 | builder: (context) => const MainView())); 71 | }, 72 | child: const Text('Start Diagnosis'), 73 | ), 74 | ], 75 | ), 76 | ), 77 | ], 78 | ), 79 | ), 80 | ); 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /client/client_app/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 | -------------------------------------------------------------------------------- /client/client_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 43 | 49 | 50 | 51 | 52 | 53 | 63 | 65 | 71 | 72 | 73 | 74 | 80 | 82 | 88 | 89 | 90 | 91 | 93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /client/client_app/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: client_app 2 | description: "A new Flutter project." 3 | # The following line prevents the package from being accidentally published to 4 | # pub.dev using `flutter pub publish`. This is preferred for private packages. 5 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 6 | 7 | # The following defines the version and build number for your application. 8 | # A version number is three numbers separated by dots, like 1.2.43 9 | # followed by an optional build number separated by a +. 10 | # Both the version and the builder number may be overridden in flutter 11 | # build by specifying --build-name and --build-number, respectively. 12 | # In Android, build-name is used as versionName while build-number used as versionCode. 13 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 14 | # In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. 15 | # Read more about iOS versioning at 16 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 17 | # In Windows, build-name is used as the major, minor, and patch parts 18 | # of the product and file versions while build-number is used as the build suffix. 19 | version: 1.0.0+1 20 | 21 | environment: 22 | sdk: '>=3.3.0 <4.0.0' 23 | 24 | # Dependencies specify other packages that your package needs in order to work. 25 | # To automatically upgrade your package dependencies to the latest versions 26 | # consider running `flutter pub upgrade --major-versions`. Alternatively, 27 | # dependencies can be manually updated by changing the version numbers below to 28 | # the latest version available on pub.dev. To see which dependencies have newer 29 | # versions available, run `flutter pub outdated`. 30 | dependencies: 31 | flutter: 32 | sdk: flutter 33 | 34 | 35 | # The following adds the Cupertino Icons font to your application. 36 | # Use with the CupertinoIcons class for iOS style icons. 37 | cupertino_icons: ^1.0.6 38 | dio: ^5.4.3+1 39 | flutter_riverpod: ^2.5.1 40 | flutter_hooks: ^0.20.5 41 | shared_preferences: ^2.2.3 42 | go_router: ^13.2.4 43 | hooks_riverpod: ^2.5.1 44 | logger: ^2.2.0 45 | 46 | dev_dependencies: 47 | flutter_test: 48 | sdk: flutter 49 | 50 | # The "flutter_lints" package below contains a set of recommended lints to 51 | # encourage good coding practices. The lint set provided by the package is 52 | # activated in the `analysis_options.yaml` file located at the root of your 53 | # package. See that file for information about deactivating specific lint 54 | # rules and activating additional ones. 55 | flutter_lints: ^3.0.0 56 | 57 | # For information on the generic Dart part of this file, see the 58 | # following page: https://dart.dev/tools/pub/pubspec 59 | 60 | # The following section is specific to Flutter packages. 61 | flutter: 62 | 63 | # The following line ensures that the Material Icons font is 64 | # included with your application, so that you can use the icons in 65 | # the material Icons class. 66 | uses-material-design: true 67 | 68 | assets: 69 | - assets/ 70 | 71 | # An image asset can refer to one or more resolution-specific "variants", see 72 | # https://flutter.dev/assets-and-images/#resolution-aware 73 | 74 | # For details regarding adding assets from package dependencies, see 75 | # https://flutter.dev/assets-and-images/#from-packages 76 | 77 | # To add custom fonts to your application, add a fonts section here, 78 | # in this "flutter" section. Each entry in this list should have a 79 | # "family" key with the font family name, and a "fonts" key with a 80 | # list giving the asset and other descriptors for the font. For 81 | # example: 82 | # fonts: 83 | # - family: Schyler 84 | # fonts: 85 | # - asset: fonts/Schyler-Regular.ttf 86 | # - asset: fonts/Schyler-Italic.ttf 87 | # style: italic 88 | # - family: Trajan Pro 89 | # fonts: 90 | # - asset: fonts/TrajanPro.ttf 91 | # - asset: fonts/TrajanPro_Bold.ttf 92 | # weight: 700 93 | # 94 | # For details regarding fonts from package dependencies, 95 | # see https://flutter.dev/custom-fonts/#from-packages 96 | -------------------------------------------------------------------------------- /client/client_app/lib/expert_system_provider.dart: -------------------------------------------------------------------------------- 1 | import 'dart:developer'; 2 | 3 | import 'package:flutter_riverpod/flutter_riverpod.dart'; 4 | 5 | import 'api.dart'; 6 | import 'models/answer_model.dart'; 7 | import 'models/question_model.dart'; 8 | 9 | final expertSystemControllerProvider = 10 | StateNotifierProvider((ref) { 11 | return ExpertSystemController(ref.watch(apiProvider)); 12 | }); 13 | 14 | class ExpertSystemController extends StateNotifier { 15 | ExpertSystemController(this.api) : super(ExpertSystemState.initial()) { 16 | fetchQuestions(); 17 | } 18 | 19 | final TestingApi api; 20 | 21 | void fetchQuestions() async { 22 | try { 23 | final response = await api.fetch(); 24 | final data = response.data as List; 25 | final List questions = 26 | data.map((e) => QuestionModel.fromMap(e)).toList(); 27 | inspect(questions); 28 | 29 | state = state.copyWith(questions: AsyncValue.data(questions)); 30 | } catch (e, st) { 31 | print(st); 32 | state = state.copyWith(questions: AsyncValue.error(e, st)); 33 | } 34 | } 35 | 36 | void nextQuestion() { 37 | final questionIndex = state.questionIndex + 1; 38 | state = state.copyWith(questionIndex: questionIndex); 39 | } 40 | 41 | void addAnswer(AnswerModel answer) { 42 | final answers = [...state.answers, answer]; 43 | state = state.copyWith(answers: answers); 44 | } 45 | 46 | void reset() { 47 | state = ExpertSystemState.initial(); 48 | 49 | fetchQuestions(); 50 | } 51 | 52 | void submitAnswers() async { 53 | final response = await api.getResults(state.answers); 54 | 55 | final data = response.data as List; 56 | 57 | final List symptoms = data.map((e) => DiagnosesModel.fromMap(e)).toList(); 58 | 59 | state = state.copyWith(symptoms: symptoms); 60 | } 61 | } 62 | 63 | class DiagnosesModel { 64 | final String diagnosisName; 65 | final String solutions; 66 | 67 | DiagnosesModel({ 68 | required this.diagnosisName, 69 | required this.solutions, 70 | }); 71 | 72 | DiagnosesModel copyWith({ 73 | String? diagnosisName, 74 | String? solutions, 75 | }) { 76 | return DiagnosesModel( 77 | diagnosisName: diagnosisName ?? this.diagnosisName, 78 | solutions: solutions ?? this.solutions, 79 | ); 80 | } 81 | 82 | Map toMap() { 83 | return { 84 | 'diagnosis': diagnosisName, 85 | 'solutions': solutions, 86 | }; 87 | } 88 | 89 | factory DiagnosesModel.fromMap(Map map) { 90 | return DiagnosesModel( 91 | diagnosisName: map['diagnosis'] as String, 92 | solutions: map['Solution'] as String, 93 | ); 94 | } 95 | 96 | } 97 | 98 | 99 | 100 | class ExpertSystemState { 101 | final AsyncValue> questions; 102 | final int questionIndex; 103 | final List answers; 104 | final List symptoms; 105 | final bool isLoading; 106 | 107 | ExpertSystemState({ 108 | required this.questions, 109 | required this.questionIndex, 110 | required this.answers, 111 | this.symptoms = const [], 112 | this.isLoading = false, 113 | }); 114 | 115 | factory ExpertSystemState.initial() { 116 | return ExpertSystemState( 117 | questions: const AsyncValue.loading(), 118 | questionIndex: 0, 119 | answers: [], 120 | symptoms: [], 121 | isLoading: false); 122 | } 123 | 124 | ExpertSystemState copyWith({ 125 | AsyncValue>? questions, 126 | int? questionIndex, 127 | List? answers, 128 | List? symptoms, 129 | bool? isLoading, 130 | }) { 131 | return ExpertSystemState( 132 | questions: questions ?? this.questions, 133 | questionIndex: questionIndex ?? this.questionIndex, 134 | answers: answers ?? this.answers, 135 | symptoms: symptoms ?? this.symptoms, 136 | isLoading: isLoading ?? this.isLoading, 137 | ); 138 | } 139 | 140 | @override 141 | String toString() => 142 | 'ExpertSystemState(questions: $questions, questionIndex: $questionIndex, answers: $answers)'; 143 | } 144 | -------------------------------------------------------------------------------- /client/client_app/lib/main_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:client_app/expert_system_Provider.dart'; 2 | import 'package:client_app/models/answer_model.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 5 | 6 | class MainView extends HookConsumerWidget { 7 | const MainView({super.key}); 8 | 9 | @override 10 | Widget build(BuildContext context, WidgetRef ref) { 11 | final questions = ref.watch(expertSystemControllerProvider).questions; 12 | final results = ref.watch(expertSystemControllerProvider).symptoms; 13 | final questionIndex = 14 | ref.watch(expertSystemControllerProvider).questionIndex; 15 | final expertSystemController = 16 | ref.read(expertSystemControllerProvider.notifier); 17 | return Scaffold( 18 | backgroundColor: Colors.white.withOpacity(0.95), 19 | body: Container( 20 | decoration: BoxDecoration( 21 | image: DecorationImage( 22 | colorFilter: ColorFilter.mode( 23 | Colors.grey.withOpacity(0.7), BlendMode.dstATop), 24 | 25 | image: const AssetImage('assets/bg.jpg'), 26 | fit: BoxFit.cover, 27 | ), 28 | ), 29 | child: Column( 30 | mainAxisAlignment: MainAxisAlignment.center, 31 | children: [ 32 | Container( 33 | height: MediaQuery.of(context).size.height * 1, 34 | width: MediaQuery.of(context).size.width, 35 | decoration: const BoxDecoration( 36 | color: Colors.transparent, 37 | borderRadius: BorderRadius.all(Radius.circular(10))), 38 | child: Column( 39 | mainAxisAlignment: MainAxisAlignment.center, 40 | children: [ 41 | results.isNotEmpty 42 | ? Column( 43 | children: [ 44 | const Align( 45 | alignment: Alignment.center, 46 | child: Text('The diagnosis is: ', 47 | style: TextStyle( 48 | fontSize: 12, 49 | fontWeight: FontWeight.bold, 50 | color: Colors.white)), 51 | ), 52 | const SizedBox(height: 20), 53 | ...results.map((e) => Text(e.diagnosisName, 54 | style: const TextStyle( 55 | fontSize: 12, 56 | fontWeight: FontWeight.bold, 57 | color: Colors.white))), 58 | 59 | // button to reset the app 60 | const SizedBox(height: 50), 61 | 62 | // the solution to the diagnosis 63 | const Align( 64 | alignment: Alignment.center, 65 | child: Text('Solution is: ', 66 | style: TextStyle( 67 | fontSize: 12, 68 | fontWeight: FontWeight.bold, 69 | color: Colors.white)), 70 | ), 71 | 72 | const SizedBox(height: 20), 73 | 74 | Container( 75 | height: 200, 76 | width: 200, 77 | padding: const EdgeInsets.all(10), 78 | alignment: Alignment.center, 79 | decoration: BoxDecoration( 80 | color: Colors.white.withOpacity(0.7), 81 | borderRadius: BorderRadius.circular(10), 82 | ), 83 | child: Text(results[0].solutions, 84 | style: const TextStyle( 85 | fontSize: 10, 86 | fontWeight: FontWeight.bold, 87 | color: Colors.black)), 88 | ), 89 | 90 | Align( 91 | alignment: Alignment.center, 92 | child: ElevatedButton( 93 | onPressed: () { 94 | expertSystemController.reset(); 95 | }, 96 | child: const Text('Reset The Diagnosis', 97 | style: TextStyle( 98 | fontSize: 12, 99 | fontWeight: FontWeight.bold, 100 | color: Colors.black)), 101 | ), 102 | ), 103 | ], 104 | ) 105 | : questions.when( 106 | data: (data) { 107 | if (questionIndex >= data.length) { 108 | // submit button to see the result 109 | return Column( 110 | children: [ 111 | ElevatedButton.icon( 112 | onPressed: () { 113 | expertSystemController.submitAnswers(); 114 | }, 115 | icon: const Icon(Icons.send), 116 | label: const Text('Submit'), 117 | ), 118 | 119 | const SizedBox(height: 20), 120 | 121 | // reset button to start over 122 | ElevatedButton( 123 | onPressed: () { 124 | expertSystemController.reset(); 125 | }, 126 | child: const Text('Reset'), 127 | ), 128 | ], 129 | ); 130 | } 131 | return Column( 132 | children: [ 133 | Text( 134 | 'Please answer the following question', 135 | style: TextStyle( 136 | fontSize: 16, 137 | fontWeight: FontWeight.bold, 138 | color: Colors.white.withOpacity(0.8), 139 | ), 140 | ), 141 | const SizedBox(height: 20), 142 | Text(data[questionIndex].question, 143 | style: const TextStyle( 144 | fontSize: 12, 145 | fontWeight: FontWeight.bold, 146 | color: Colors.white)), 147 | const SizedBox(height: 20), 148 | Row( 149 | mainAxisAlignment: 150 | MainAxisAlignment.spaceEvenly, 151 | children: [ 152 | 153 | ElevatedButton( 154 | onPressed: () { 155 | expertSystemController.addAnswer( 156 | AnswerModel( 157 | symptom: data[questionIndex] 158 | .symptom)); 159 | expertSystemController.nextQuestion(); 160 | }, 161 | style: ElevatedButton.styleFrom( 162 | foregroundColor: Colors.white, 163 | backgroundColor: Colors.green, 164 | ), 165 | child: const Text('Yes'), 166 | ), 167 | ElevatedButton( 168 | onPressed: () { 169 | expertSystemController.nextQuestion(); 170 | }, 171 | style: ElevatedButton.styleFrom( 172 | foregroundColor: Colors.white, 173 | backgroundColor: Colors.red, 174 | ), 175 | child: const Text('No'), 176 | ), 177 | ], 178 | ), 179 | ], 180 | ); 181 | }, 182 | loading: () => const CircularProgressIndicator(), 183 | error: (error, _) => Text('Error: $error'), 184 | ), 185 | ], 186 | ), 187 | ), 188 | ], 189 | ), 190 | )); 191 | } 192 | } 193 | -------------------------------------------------------------------------------- /server/app/utils/expert_system.py: -------------------------------------------------------------------------------- 1 | from experta import * 2 | 3 | class PCDiagnosis(KnowledgeEngine): 4 | diagnoses = [] 5 | initialFacts = [] 6 | 7 | 8 | @DefFacts() 9 | def initial(self): 10 | for fact in self.initialFacts: 11 | yield Fact(symptom = fact) 12 | # yield Fact(symptom='PC_does_not_boot') 13 | # yield Fact(symptom='Power_indicator_on_but_no_display') 14 | # yield Fact(symptom='Unusual_noise_from_PC') 15 | # yield Fact(symptom='System_overheating') 16 | # yield Fact(symptom='Intermittent_freezing') 17 | # yield Fact(symptom='System_crashes_on_startup') 18 | # yield Fact(symptom='Slow_system_performance') 19 | # yield Fact(symptom='Hardware_failure_warning') 20 | # yield Fact(symptom='Unable_to_access_data') 21 | # yield Fact(symptom='Strange_error_messages') 22 | # yield Fact(symptom='Peripheral_device_failure') 23 | # yield Fact(symptom='Blue_screen_of_death') 24 | # yield Fact(symptom='Network_connection_issues') 25 | # yield Fact(symptom='Battery_not_charging') 26 | # yield Fact(symptom='Missing_files_or_icons') 27 | # yield Fact(symptom='Application_errors') 28 | # yield Fact(symptom='Random_restarts') 29 | # yield Fact(symptom='Loud_fan_noise') 30 | # yield Fact(symptom='Computer_shuts_down_abruptly') 31 | # yield Fact(symptom='USB_device_not_recognized') 32 | 33 | 34 | 35 | 36 | 37 | @Rule(Fact(symptom='PC_does_not_boot')) 38 | def pc_does_not_boot(self): 39 | if not check_if_value_in_dict(self.diagnoses,'PC does not boot'): 40 | diagnoses = { 41 | 'diagnosis': 'PC does not boot', 42 | 'Solution': 'You Should check the power supply, the power indicator and the system crashes on startup.' 43 | } 44 | self.diagnoses.append(diagnoses) 45 | 46 | 47 | ## 48 | @Rule(AND( 49 | Fact(symptom='PC_does_not_boot'), 50 | OR( 51 | Fact(symptom='Power_indicator_on_but_no_display'), 52 | Fact(symptom='System_crashes_on_startup') 53 | ), 54 | NOT(Fact(symptom='Peripheral_device_failure')) 55 | )) 56 | def boot_issue(self): 57 | if not check_if_value_in_dict(self.diagnoses,'Boot issue'): 58 | diagnnose = { 59 | 'diagnosis': 'Boot issue', 60 | 'Solution': '''This issue is related to the computer not booting. It could be as a result of the power indicator being on but no display or the system crashes on startup. , you should 61 | check the power supply, the power indicator and the system crashes on startup. 62 | ''' 63 | } 64 | self.diagnoses.append(diagnnose) 65 | 66 | @Rule(AND( 67 | Fact(symptom='Slow_system_performance'), 68 | OR( 69 | Fact(symptom='Application_errors'), 70 | Fact(symptom='Random_restarts') 71 | ) 72 | )) 73 | def performance_issue(self): 74 | if not check_if_value_in_dict(self.diagnoses,'Performance issue'): 75 | diagnoses = { 76 | 'diagnosis': 'Performance issue', 77 | 'Solution': '''You should check the system overheating, the intermittent freezing and the application errors.''' 78 | 79 | } 80 | self.diagnoses.append(diagnoses) 81 | 82 | @Rule(AND( 83 | Fact(symptom='Unusual_noise_from_PC'), 84 | OR( 85 | Fact(symptom='Loud_fan_noise'), 86 | Fact(symptom='Computer_shuts_down_abruptly') 87 | ) 88 | )) 89 | def hardware_issue(self): 90 | if not check_if_value_in_dict(self.diagnoses,'Hardware issue'): 91 | diagnoses = { 92 | 'diagnosis': 'Hardware issue', 93 | 'Solution': ''' This is typically a hardware issue. You should check the system overheating, the intermittent freezing and the application errors.''' 94 | } 95 | self.diagnoses.append(diagnoses) 96 | 97 | 98 | @Rule(AND( 99 | Fact(symptom='System_overheating'), 100 | OR( 101 | Fact(symptom='Intermittent_freezing'), 102 | Fact(symptom='Slow_system_performance') 103 | ) 104 | )) 105 | def cooling_issue(self): 106 | if not check_if_value_in_dict(self.diagnoses,'Cooling issue'): 107 | diagnoses = { 108 | 'diagnosis': 'Cooling issue', 109 | 'Solution': '''This issue is related to the system overheating, the intermittent freezing and the slow system performance.''' 110 | } 111 | self.diagnoses.append(diagnoses) 112 | 113 | @Rule(AND( 114 | Fact(symptom='Peripheral_device_failure'), 115 | OR( 116 | Fact(symptom='USB_device_not_recognized'), 117 | Fact(symptom='Network_connection_issues') 118 | ) 119 | )) 120 | def peripheral_issue(self): 121 | if not check_if_value_in_dict(self.diagnoses,'Peripheral issue'): 122 | diagnoses = { 123 | 'diagnosis': 'Peripheral issue', 124 | 'Solution': '''This issue is related to the peripheral device failure, the USB device not recognized and the network connection issues.''' 125 | } 126 | self.diagnoses.append(diagnoses) 127 | 128 | @Rule(AND( 129 | Fact(symptom='Strange_error_messages'), 130 | OR( 131 | Fact(symptom='Blue_screen_of_death'), 132 | Fact(symptom='Missing_files_or_icons') 133 | ) 134 | )) 135 | def software_issue(self): 136 | if not check_if_value_in_dict(self.diagnoses,'Software issue'): 137 | diagnoses = { 138 | 'diagnosis': 'Software issue', 139 | 'Solution': '''This issue is related to the strange error messages, the blue screen of death and the missing files or icons.''' 140 | } 141 | self.diagnoses.append(diagnoses) 142 | 143 | @Rule(AND( 144 | Fact(symptom='Unable_to_access_data'), 145 | Fact(symptom='Missing_files_or_icons'), 146 | NOT(Fact(symptom='Strange_error_messages')) 147 | )) 148 | def data_access_issue(self): 149 | 150 | if not check_if_value_in_dict( 151 | self.diagnoses, 152 | 'Data access issue' 153 | ): 154 | 155 | diagnoses = { 156 | 'diagnosis': 'Data access issue', 157 | 'Solution': '''This issue is related to the unable to access data, the missing files or icons and the strange error messages.''' 158 | } 159 | self.diagnoses.append(diagnoses) 160 | 161 | 162 | @Rule(AND( 163 | Fact(symptom='System_overheating'), 164 | Fact(symptom='Intermittent_freezing'), 165 | Fact(symptom='Application_errors') 166 | )) 167 | def overheating_issue(self): 168 | if not check_if_value_in_dict(self.diagnoses,'Overheating issue'): 169 | diagnoses = { 170 | 'diagnosis': 'Overheating issue', 171 | 'Solution': '''This issue is related to the system overheating, the intermittent freezing and the application errors.''' 172 | } 173 | 174 | @Rule(AND( 175 | Fact(symptom='Peripheral_device_failure'), 176 | Fact(symptom='USB_device_not_recognized'), 177 | NOT(Fact(symptom='Network_connection_issues')) 178 | )) 179 | def usb_issue(self): 180 | if not check_if_value_in_dict(self.diagnoses,'USB device issue'): 181 | diagnoses = { 182 | 'diagnosis': 'USB device issue', 183 | 'Solution': '''This issue is related to the peripheral device failure, the USB device not recognized and the network connection issues.''' 184 | } 185 | self.diagnoses.append(diagnoses) 186 | 187 | @Rule(AND( 188 | Fact(symptom='PC_does_not_boot'), 189 | Fact(symptom='Strange_error_messages'), 190 | Fact(symptom='Peripheral_device_failure') 191 | )) 192 | def boot_failure(self): 193 | if not check_if_value_in_dict( 194 | self.diagnoses, 195 | 'Boot failure' 196 | ): 197 | 198 | 199 | diagnoses = { 200 | 'diagnosis': 'Boot failure', 201 | 'Solution': '''This issue is related to the PC does not boot, the strange error messages and the peripheral device failure.''' 202 | } 203 | self.diagnoses.append(diagnoses) 204 | 205 | @Rule(AND( 206 | Fact(symptom='System_overheating'), 207 | Fact(symptom='Intermittent_freezing'), 208 | Fact(symptom='Slow_system_performance'), 209 | Fact(symptom='Application_errors') 210 | )) 211 | def critical_issue(self): 212 | if not check_if_value_in_dict(self.diagnoses, 213 | 'Critical issue' 214 | ): 215 | diagnoses = { 216 | 'diagnosis': 'Critical issue', 217 | 'Solution': ''' this is typically a critical issue. You should check the system overheating, the intermittent freezing, the slow system performance and the application errors.''' 218 | 219 | } 220 | self.diagnoses.append(diagnoses) 221 | 222 | @Rule(AND( 223 | Fact(symptom='Peripheral_device_failure'), 224 | Fact(symptom='Random_restarts') 225 | )) 226 | def peripheral_restart_issue(self): 227 | if not check_if_value_in_dict(self.diagnoses, 228 | 'Peripheral restart issue' 229 | ): 230 | diagnoses = { 231 | 'diagnosis': 'Peripheral restart issue', 232 | 'Solution': '''This issue is related to the peripheral device failure and the random restarts. , to fix this you need to check the peripheral device failure and the random restarts.''' 233 | } 234 | self.diagnoses.append(diagnoses) 235 | 236 | @Rule(AND( 237 | Fact(symptom='PC_does_not_boot'), 238 | Fact(symptom='Slow_system_performance'), 239 | NOT(Fact(symptom='System_crashes_on_startup')) 240 | )) 241 | def boot_performance_issue(self): 242 | if not check_if_value_in_dict(self.diagnoses, 243 | 'Boot performance issue' 244 | ): 245 | diagnoses = { 246 | 'diagnosis': 'Boot performance issue', 247 | 'Solution': '''This issue is related to the PC does not boot, the slow system performance and the system crashes on startup.''' 248 | } 249 | self.diagnoses.append(diagnoses) 250 | 251 | @Rule() 252 | def default_diagnosis(self): 253 | if not self.diagnoses: 254 | diagnoses = { 255 | 'diagnosis': 'No diagnosis found', 256 | 'Solution': 'No solution found' 257 | } 258 | self.diagnoses.append(diagnoses) 259 | 260 | @Rule(Fact(symptom=MATCH.symptom), salience=-1) 261 | def display_diagnoses(self, symptom): 262 | if self.diagnoses: 263 | print("Diagnoses for symptom", symptom) 264 | for diagnosis in self.diagnoses: 265 | print("- ", diagnosis) 266 | else: 267 | print("No diagnoses for symptom", symptom) 268 | 269 | 270 | def check_if_value_in_dict(dict, value): 271 | for item in dict: 272 | if item['diagnosis'] == value: 273 | return True -------------------------------------------------------------------------------- /client/client_app/pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" 9 | url: "https://pub.dev" 10 | source: hosted 11 | version: "2.11.0" 12 | boolean_selector: 13 | dependency: transitive 14 | description: 15 | name: boolean_selector 16 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" 17 | url: "https://pub.dev" 18 | source: hosted 19 | version: "2.1.1" 20 | characters: 21 | dependency: transitive 22 | description: 23 | name: characters 24 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" 25 | url: "https://pub.dev" 26 | source: hosted 27 | version: "1.3.0" 28 | clock: 29 | dependency: transitive 30 | description: 31 | name: clock 32 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf 33 | url: "https://pub.dev" 34 | source: hosted 35 | version: "1.1.1" 36 | collection: 37 | dependency: transitive 38 | description: 39 | name: collection 40 | sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a 41 | url: "https://pub.dev" 42 | source: hosted 43 | version: "1.18.0" 44 | cupertino_icons: 45 | dependency: "direct main" 46 | description: 47 | name: cupertino_icons 48 | sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 49 | url: "https://pub.dev" 50 | source: hosted 51 | version: "1.0.8" 52 | dio: 53 | dependency: "direct main" 54 | description: 55 | name: dio 56 | sha256: "11e40df547d418cc0c4900a9318b26304e665da6fa4755399a9ff9efd09034b5" 57 | url: "https://pub.dev" 58 | source: hosted 59 | version: "5.4.3+1" 60 | fake_async: 61 | dependency: transitive 62 | description: 63 | name: fake_async 64 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" 65 | url: "https://pub.dev" 66 | source: hosted 67 | version: "1.3.1" 68 | ffi: 69 | dependency: transitive 70 | description: 71 | name: ffi 72 | sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21" 73 | url: "https://pub.dev" 74 | source: hosted 75 | version: "2.1.2" 76 | file: 77 | dependency: transitive 78 | description: 79 | name: file 80 | sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" 81 | url: "https://pub.dev" 82 | source: hosted 83 | version: "7.0.0" 84 | flutter: 85 | dependency: "direct main" 86 | description: flutter 87 | source: sdk 88 | version: "0.0.0" 89 | flutter_hooks: 90 | dependency: "direct main" 91 | description: 92 | name: flutter_hooks 93 | sha256: cde36b12f7188c85286fba9b38cc5a902e7279f36dd676967106c041dc9dde70 94 | url: "https://pub.dev" 95 | source: hosted 96 | version: "0.20.5" 97 | flutter_lints: 98 | dependency: "direct dev" 99 | description: 100 | name: flutter_lints 101 | sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1" 102 | url: "https://pub.dev" 103 | source: hosted 104 | version: "3.0.2" 105 | flutter_riverpod: 106 | dependency: "direct main" 107 | description: 108 | name: flutter_riverpod 109 | sha256: "0f1974eff5bbe774bf1d870e406fc6f29e3d6f1c46bd9c58e7172ff68a785d7d" 110 | url: "https://pub.dev" 111 | source: hosted 112 | version: "2.5.1" 113 | flutter_test: 114 | dependency: "direct dev" 115 | description: flutter 116 | source: sdk 117 | version: "0.0.0" 118 | flutter_web_plugins: 119 | dependency: transitive 120 | description: flutter 121 | source: sdk 122 | version: "0.0.0" 123 | go_router: 124 | dependency: "direct main" 125 | description: 126 | name: go_router 127 | sha256: "771c8feb40ad0ef639973d7ecf1b43d55ffcedb2207fd43fab030f5639e40446" 128 | url: "https://pub.dev" 129 | source: hosted 130 | version: "13.2.4" 131 | hooks_riverpod: 132 | dependency: "direct main" 133 | description: 134 | name: hooks_riverpod 135 | sha256: "45b2030a18bcd6dbd680c2c91bc3b33e3fe7c323e3acb5ecec93a613e2fbaa8a" 136 | url: "https://pub.dev" 137 | source: hosted 138 | version: "2.5.1" 139 | http_parser: 140 | dependency: transitive 141 | description: 142 | name: http_parser 143 | sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" 144 | url: "https://pub.dev" 145 | source: hosted 146 | version: "4.0.2" 147 | leak_tracker: 148 | dependency: transitive 149 | description: 150 | name: leak_tracker 151 | sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" 152 | url: "https://pub.dev" 153 | source: hosted 154 | version: "10.0.0" 155 | leak_tracker_flutter_testing: 156 | dependency: transitive 157 | description: 158 | name: leak_tracker_flutter_testing 159 | sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 160 | url: "https://pub.dev" 161 | source: hosted 162 | version: "2.0.1" 163 | leak_tracker_testing: 164 | dependency: transitive 165 | description: 166 | name: leak_tracker_testing 167 | sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 168 | url: "https://pub.dev" 169 | source: hosted 170 | version: "2.0.1" 171 | lints: 172 | dependency: transitive 173 | description: 174 | name: lints 175 | sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 176 | url: "https://pub.dev" 177 | source: hosted 178 | version: "3.0.0" 179 | logger: 180 | dependency: "direct main" 181 | description: 182 | name: logger 183 | sha256: "8c94b8c219e7e50194efc8771cd0e9f10807d8d3e219af473d89b06cc2ee4e04" 184 | url: "https://pub.dev" 185 | source: hosted 186 | version: "2.2.0" 187 | logging: 188 | dependency: transitive 189 | description: 190 | name: logging 191 | sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" 192 | url: "https://pub.dev" 193 | source: hosted 194 | version: "1.2.0" 195 | matcher: 196 | dependency: transitive 197 | description: 198 | name: matcher 199 | sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb 200 | url: "https://pub.dev" 201 | source: hosted 202 | version: "0.12.16+1" 203 | material_color_utilities: 204 | dependency: transitive 205 | description: 206 | name: material_color_utilities 207 | sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" 208 | url: "https://pub.dev" 209 | source: hosted 210 | version: "0.8.0" 211 | meta: 212 | dependency: transitive 213 | description: 214 | name: meta 215 | sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 216 | url: "https://pub.dev" 217 | source: hosted 218 | version: "1.11.0" 219 | path: 220 | dependency: transitive 221 | description: 222 | name: path 223 | sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" 224 | url: "https://pub.dev" 225 | source: hosted 226 | version: "1.9.0" 227 | path_provider_linux: 228 | dependency: transitive 229 | description: 230 | name: path_provider_linux 231 | sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 232 | url: "https://pub.dev" 233 | source: hosted 234 | version: "2.2.1" 235 | path_provider_platform_interface: 236 | dependency: transitive 237 | description: 238 | name: path_provider_platform_interface 239 | sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" 240 | url: "https://pub.dev" 241 | source: hosted 242 | version: "2.1.2" 243 | path_provider_windows: 244 | dependency: transitive 245 | description: 246 | name: path_provider_windows 247 | sha256: "8bc9f22eee8690981c22aa7fc602f5c85b497a6fb2ceb35ee5a5e5ed85ad8170" 248 | url: "https://pub.dev" 249 | source: hosted 250 | version: "2.2.1" 251 | platform: 252 | dependency: transitive 253 | description: 254 | name: platform 255 | sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" 256 | url: "https://pub.dev" 257 | source: hosted 258 | version: "3.1.4" 259 | plugin_platform_interface: 260 | dependency: transitive 261 | description: 262 | name: plugin_platform_interface 263 | sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" 264 | url: "https://pub.dev" 265 | source: hosted 266 | version: "2.1.8" 267 | riverpod: 268 | dependency: transitive 269 | description: 270 | name: riverpod 271 | sha256: f21b32ffd26a36555e501b04f4a5dca43ed59e16343f1a30c13632b2351dfa4d 272 | url: "https://pub.dev" 273 | source: hosted 274 | version: "2.5.1" 275 | shared_preferences: 276 | dependency: "direct main" 277 | description: 278 | name: shared_preferences 279 | sha256: d3bbe5553a986e83980916ded2f0b435ef2e1893dfaa29d5a7a790d0eca12180 280 | url: "https://pub.dev" 281 | source: hosted 282 | version: "2.2.3" 283 | shared_preferences_android: 284 | dependency: transitive 285 | description: 286 | name: shared_preferences_android 287 | sha256: "1ee8bf911094a1b592de7ab29add6f826a7331fb854273d55918693d5364a1f2" 288 | url: "https://pub.dev" 289 | source: hosted 290 | version: "2.2.2" 291 | shared_preferences_foundation: 292 | dependency: transitive 293 | description: 294 | name: shared_preferences_foundation 295 | sha256: "7708d83064f38060c7b39db12aefe449cb8cdc031d6062280087bc4cdb988f5c" 296 | url: "https://pub.dev" 297 | source: hosted 298 | version: "2.3.5" 299 | shared_preferences_linux: 300 | dependency: transitive 301 | description: 302 | name: shared_preferences_linux 303 | sha256: "9f2cbcf46d4270ea8be39fa156d86379077c8a5228d9dfdb1164ae0bb93f1faa" 304 | url: "https://pub.dev" 305 | source: hosted 306 | version: "2.3.2" 307 | shared_preferences_platform_interface: 308 | dependency: transitive 309 | description: 310 | name: shared_preferences_platform_interface 311 | sha256: "22e2ecac9419b4246d7c22bfbbda589e3acf5c0351137d87dd2939d984d37c3b" 312 | url: "https://pub.dev" 313 | source: hosted 314 | version: "2.3.2" 315 | shared_preferences_web: 316 | dependency: transitive 317 | description: 318 | name: shared_preferences_web 319 | sha256: "9aee1089b36bd2aafe06582b7d7817fd317ef05fc30e6ba14bff247d0933042a" 320 | url: "https://pub.dev" 321 | source: hosted 322 | version: "2.3.0" 323 | shared_preferences_windows: 324 | dependency: transitive 325 | description: 326 | name: shared_preferences_windows 327 | sha256: "841ad54f3c8381c480d0c9b508b89a34036f512482c407e6df7a9c4aa2ef8f59" 328 | url: "https://pub.dev" 329 | source: hosted 330 | version: "2.3.2" 331 | sky_engine: 332 | dependency: transitive 333 | description: flutter 334 | source: sdk 335 | version: "0.0.99" 336 | source_span: 337 | dependency: transitive 338 | description: 339 | name: source_span 340 | sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" 341 | url: "https://pub.dev" 342 | source: hosted 343 | version: "1.10.0" 344 | stack_trace: 345 | dependency: transitive 346 | description: 347 | name: stack_trace 348 | sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" 349 | url: "https://pub.dev" 350 | source: hosted 351 | version: "1.11.1" 352 | state_notifier: 353 | dependency: transitive 354 | description: 355 | name: state_notifier 356 | sha256: b8677376aa54f2d7c58280d5a007f9e8774f1968d1fb1c096adcb4792fba29bb 357 | url: "https://pub.dev" 358 | source: hosted 359 | version: "1.0.0" 360 | stream_channel: 361 | dependency: transitive 362 | description: 363 | name: stream_channel 364 | sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 365 | url: "https://pub.dev" 366 | source: hosted 367 | version: "2.1.2" 368 | string_scanner: 369 | dependency: transitive 370 | description: 371 | name: string_scanner 372 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" 373 | url: "https://pub.dev" 374 | source: hosted 375 | version: "1.2.0" 376 | term_glyph: 377 | dependency: transitive 378 | description: 379 | name: term_glyph 380 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 381 | url: "https://pub.dev" 382 | source: hosted 383 | version: "1.2.1" 384 | test_api: 385 | dependency: transitive 386 | description: 387 | name: test_api 388 | sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" 389 | url: "https://pub.dev" 390 | source: hosted 391 | version: "0.6.1" 392 | typed_data: 393 | dependency: transitive 394 | description: 395 | name: typed_data 396 | sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c 397 | url: "https://pub.dev" 398 | source: hosted 399 | version: "1.3.2" 400 | vector_math: 401 | dependency: transitive 402 | description: 403 | name: vector_math 404 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" 405 | url: "https://pub.dev" 406 | source: hosted 407 | version: "2.1.4" 408 | vm_service: 409 | dependency: transitive 410 | description: 411 | name: vm_service 412 | sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 413 | url: "https://pub.dev" 414 | source: hosted 415 | version: "13.0.0" 416 | web: 417 | dependency: transitive 418 | description: 419 | name: web 420 | sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" 421 | url: "https://pub.dev" 422 | source: hosted 423 | version: "0.5.1" 424 | win32: 425 | dependency: transitive 426 | description: 427 | name: win32 428 | sha256: "0a989dc7ca2bb51eac91e8fd00851297cfffd641aa7538b165c62637ca0eaa4a" 429 | url: "https://pub.dev" 430 | source: hosted 431 | version: "5.4.0" 432 | xdg_directories: 433 | dependency: transitive 434 | description: 435 | name: xdg_directories 436 | sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d 437 | url: "https://pub.dev" 438 | source: hosted 439 | version: "1.0.4" 440 | sdks: 441 | dart: ">=3.3.0 <4.0.0" 442 | flutter: ">=3.19.0" 443 | -------------------------------------------------------------------------------- /client/client_app/ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 14 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 15 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 16 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 97C146E61CF9000F007C117D /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 97C146ED1CF9000F007C117D; 25 | remoteInfo = Runner; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXCopyFilesBuildPhase section */ 30 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 31 | isa = PBXCopyFilesBuildPhase; 32 | buildActionMask = 2147483647; 33 | dstPath = ""; 34 | dstSubfolderSpec = 10; 35 | files = ( 36 | ); 37 | name = "Embed Frameworks"; 38 | runOnlyForDeploymentPostprocessing = 0; 39 | }; 40 | /* End PBXCopyFilesBuildPhase section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 44 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 45 | 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 46 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 48 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 49 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 50 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 51 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 52 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 53 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 55 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 56 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 57 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXFrameworksBuildPhase section */ 69 | 70 | /* Begin PBXGroup section */ 71 | 331C8082294A63A400263BE5 /* RunnerTests */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 331C807B294A618700263BE5 /* RunnerTests.swift */, 75 | ); 76 | path = RunnerTests; 77 | sourceTree = ""; 78 | }; 79 | 9740EEB11CF90186004384FC /* Flutter */ = { 80 | isa = PBXGroup; 81 | children = ( 82 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 83 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 84 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 85 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 86 | ); 87 | name = Flutter; 88 | sourceTree = ""; 89 | }; 90 | 97C146E51CF9000F007C117D = { 91 | isa = PBXGroup; 92 | children = ( 93 | 9740EEB11CF90186004384FC /* Flutter */, 94 | 97C146F01CF9000F007C117D /* Runner */, 95 | 97C146EF1CF9000F007C117D /* Products */, 96 | 331C8082294A63A400263BE5 /* RunnerTests */, 97 | ); 98 | sourceTree = ""; 99 | }; 100 | 97C146EF1CF9000F007C117D /* Products */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 97C146EE1CF9000F007C117D /* Runner.app */, 104 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */, 105 | ); 106 | name = Products; 107 | sourceTree = ""; 108 | }; 109 | 97C146F01CF9000F007C117D /* Runner */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 113 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 114 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 115 | 97C147021CF9000F007C117D /* Info.plist */, 116 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 117 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 118 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 119 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 120 | ); 121 | path = Runner; 122 | sourceTree = ""; 123 | }; 124 | /* End PBXGroup section */ 125 | 126 | /* Begin PBXNativeTarget section */ 127 | 331C8080294A63A400263BE5 /* RunnerTests */ = { 128 | isa = PBXNativeTarget; 129 | buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; 130 | buildPhases = ( 131 | 331C807D294A63A400263BE5 /* Sources */, 132 | 331C807F294A63A400263BE5 /* Resources */, 133 | ); 134 | buildRules = ( 135 | ); 136 | dependencies = ( 137 | 331C8086294A63A400263BE5 /* PBXTargetDependency */, 138 | ); 139 | name = RunnerTests; 140 | productName = RunnerTests; 141 | productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; 142 | productType = "com.apple.product-type.bundle.unit-test"; 143 | }; 144 | 97C146ED1CF9000F007C117D /* Runner */ = { 145 | isa = PBXNativeTarget; 146 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 147 | buildPhases = ( 148 | 9740EEB61CF901F6004384FC /* Run Script */, 149 | 97C146EA1CF9000F007C117D /* Sources */, 150 | 97C146EB1CF9000F007C117D /* Frameworks */, 151 | 97C146EC1CF9000F007C117D /* Resources */, 152 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 153 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 154 | ); 155 | buildRules = ( 156 | ); 157 | dependencies = ( 158 | ); 159 | name = Runner; 160 | productName = Runner; 161 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 162 | productType = "com.apple.product-type.application"; 163 | }; 164 | /* End PBXNativeTarget section */ 165 | 166 | /* Begin PBXProject section */ 167 | 97C146E61CF9000F007C117D /* Project object */ = { 168 | isa = PBXProject; 169 | attributes = { 170 | BuildIndependentTargetsInParallel = YES; 171 | LastUpgradeCheck = 1510; 172 | ORGANIZATIONNAME = ""; 173 | TargetAttributes = { 174 | 331C8080294A63A400263BE5 = { 175 | CreatedOnToolsVersion = 14.0; 176 | TestTargetID = 97C146ED1CF9000F007C117D; 177 | }; 178 | 97C146ED1CF9000F007C117D = { 179 | CreatedOnToolsVersion = 7.3.1; 180 | LastSwiftMigration = 1100; 181 | }; 182 | }; 183 | }; 184 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 185 | compatibilityVersion = "Xcode 9.3"; 186 | developmentRegion = en; 187 | hasScannedForEncodings = 0; 188 | knownRegions = ( 189 | en, 190 | Base, 191 | ); 192 | mainGroup = 97C146E51CF9000F007C117D; 193 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 194 | projectDirPath = ""; 195 | projectRoot = ""; 196 | targets = ( 197 | 97C146ED1CF9000F007C117D /* Runner */, 198 | 331C8080294A63A400263BE5 /* RunnerTests */, 199 | ); 200 | }; 201 | /* End PBXProject section */ 202 | 203 | /* Begin PBXResourcesBuildPhase section */ 204 | 331C807F294A63A400263BE5 /* Resources */ = { 205 | isa = PBXResourcesBuildPhase; 206 | buildActionMask = 2147483647; 207 | files = ( 208 | ); 209 | runOnlyForDeploymentPostprocessing = 0; 210 | }; 211 | 97C146EC1CF9000F007C117D /* Resources */ = { 212 | isa = PBXResourcesBuildPhase; 213 | buildActionMask = 2147483647; 214 | files = ( 215 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 216 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 217 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 218 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 219 | ); 220 | runOnlyForDeploymentPostprocessing = 0; 221 | }; 222 | /* End PBXResourcesBuildPhase section */ 223 | 224 | /* Begin PBXShellScriptBuildPhase section */ 225 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 226 | isa = PBXShellScriptBuildPhase; 227 | alwaysOutOfDate = 1; 228 | buildActionMask = 2147483647; 229 | files = ( 230 | ); 231 | inputPaths = ( 232 | "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", 233 | ); 234 | name = "Thin Binary"; 235 | outputPaths = ( 236 | ); 237 | runOnlyForDeploymentPostprocessing = 0; 238 | shellPath = /bin/sh; 239 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 240 | }; 241 | 9740EEB61CF901F6004384FC /* Run Script */ = { 242 | isa = PBXShellScriptBuildPhase; 243 | alwaysOutOfDate = 1; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | ); 247 | inputPaths = ( 248 | ); 249 | name = "Run Script"; 250 | outputPaths = ( 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | shellPath = /bin/sh; 254 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 255 | }; 256 | /* End PBXShellScriptBuildPhase section */ 257 | 258 | /* Begin PBXSourcesBuildPhase section */ 259 | 331C807D294A63A400263BE5 /* Sources */ = { 260 | isa = PBXSourcesBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, 264 | ); 265 | runOnlyForDeploymentPostprocessing = 0; 266 | }; 267 | 97C146EA1CF9000F007C117D /* Sources */ = { 268 | isa = PBXSourcesBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 272 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 273 | ); 274 | runOnlyForDeploymentPostprocessing = 0; 275 | }; 276 | /* End PBXSourcesBuildPhase section */ 277 | 278 | /* Begin PBXTargetDependency section */ 279 | 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { 280 | isa = PBXTargetDependency; 281 | target = 97C146ED1CF9000F007C117D /* Runner */; 282 | targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; 283 | }; 284 | /* End PBXTargetDependency section */ 285 | 286 | /* Begin PBXVariantGroup section */ 287 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 288 | isa = PBXVariantGroup; 289 | children = ( 290 | 97C146FB1CF9000F007C117D /* Base */, 291 | ); 292 | name = Main.storyboard; 293 | sourceTree = ""; 294 | }; 295 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 296 | isa = PBXVariantGroup; 297 | children = ( 298 | 97C147001CF9000F007C117D /* Base */, 299 | ); 300 | name = LaunchScreen.storyboard; 301 | sourceTree = ""; 302 | }; 303 | /* End PBXVariantGroup section */ 304 | 305 | /* Begin XCBuildConfiguration section */ 306 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 307 | isa = XCBuildConfiguration; 308 | buildSettings = { 309 | ALWAYS_SEARCH_USER_PATHS = NO; 310 | ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; 311 | CLANG_ANALYZER_NONNULL = YES; 312 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 313 | CLANG_CXX_LIBRARY = "libc++"; 314 | CLANG_ENABLE_MODULES = YES; 315 | CLANG_ENABLE_OBJC_ARC = YES; 316 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 317 | CLANG_WARN_BOOL_CONVERSION = YES; 318 | CLANG_WARN_COMMA = YES; 319 | CLANG_WARN_CONSTANT_CONVERSION = YES; 320 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 321 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 322 | CLANG_WARN_EMPTY_BODY = YES; 323 | CLANG_WARN_ENUM_CONVERSION = YES; 324 | CLANG_WARN_INFINITE_RECURSION = YES; 325 | CLANG_WARN_INT_CONVERSION = YES; 326 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 327 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 328 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 329 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 330 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 331 | CLANG_WARN_STRICT_PROTOTYPES = YES; 332 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 333 | CLANG_WARN_UNREACHABLE_CODE = YES; 334 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 335 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 336 | COPY_PHASE_STRIP = NO; 337 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 338 | ENABLE_NS_ASSERTIONS = NO; 339 | ENABLE_STRICT_OBJC_MSGSEND = YES; 340 | ENABLE_USER_SCRIPT_SANDBOXING = NO; 341 | GCC_C_LANGUAGE_STANDARD = gnu99; 342 | GCC_NO_COMMON_BLOCKS = YES; 343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 345 | GCC_WARN_UNDECLARED_SELECTOR = YES; 346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 347 | GCC_WARN_UNUSED_FUNCTION = YES; 348 | GCC_WARN_UNUSED_VARIABLE = YES; 349 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 350 | MTL_ENABLE_DEBUG_INFO = NO; 351 | SDKROOT = iphoneos; 352 | SUPPORTED_PLATFORMS = iphoneos; 353 | TARGETED_DEVICE_FAMILY = "1,2"; 354 | VALIDATE_PRODUCT = YES; 355 | }; 356 | name = Profile; 357 | }; 358 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 359 | isa = XCBuildConfiguration; 360 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 361 | buildSettings = { 362 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 363 | CLANG_ENABLE_MODULES = YES; 364 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 365 | ENABLE_BITCODE = NO; 366 | INFOPLIST_FILE = Runner/Info.plist; 367 | LD_RUNPATH_SEARCH_PATHS = ( 368 | "$(inherited)", 369 | "@executable_path/Frameworks", 370 | ); 371 | PRODUCT_BUNDLE_IDENTIFIER = com.example.clientApp; 372 | PRODUCT_NAME = "$(TARGET_NAME)"; 373 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 374 | SWIFT_VERSION = 5.0; 375 | VERSIONING_SYSTEM = "apple-generic"; 376 | }; 377 | name = Profile; 378 | }; 379 | 331C8088294A63A400263BE5 /* Debug */ = { 380 | isa = XCBuildConfiguration; 381 | buildSettings = { 382 | BUNDLE_LOADER = "$(TEST_HOST)"; 383 | CODE_SIGN_STYLE = Automatic; 384 | CURRENT_PROJECT_VERSION = 1; 385 | GENERATE_INFOPLIST_FILE = YES; 386 | MARKETING_VERSION = 1.0; 387 | PRODUCT_BUNDLE_IDENTIFIER = com.example.clientApp.RunnerTests; 388 | PRODUCT_NAME = "$(TARGET_NAME)"; 389 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 390 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 391 | SWIFT_VERSION = 5.0; 392 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 393 | }; 394 | name = Debug; 395 | }; 396 | 331C8089294A63A400263BE5 /* Release */ = { 397 | isa = XCBuildConfiguration; 398 | buildSettings = { 399 | BUNDLE_LOADER = "$(TEST_HOST)"; 400 | CODE_SIGN_STYLE = Automatic; 401 | CURRENT_PROJECT_VERSION = 1; 402 | GENERATE_INFOPLIST_FILE = YES; 403 | MARKETING_VERSION = 1.0; 404 | PRODUCT_BUNDLE_IDENTIFIER = com.example.clientApp.RunnerTests; 405 | PRODUCT_NAME = "$(TARGET_NAME)"; 406 | SWIFT_VERSION = 5.0; 407 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 408 | }; 409 | name = Release; 410 | }; 411 | 331C808A294A63A400263BE5 /* Profile */ = { 412 | isa = XCBuildConfiguration; 413 | buildSettings = { 414 | BUNDLE_LOADER = "$(TEST_HOST)"; 415 | CODE_SIGN_STYLE = Automatic; 416 | CURRENT_PROJECT_VERSION = 1; 417 | GENERATE_INFOPLIST_FILE = YES; 418 | MARKETING_VERSION = 1.0; 419 | PRODUCT_BUNDLE_IDENTIFIER = com.example.clientApp.RunnerTests; 420 | PRODUCT_NAME = "$(TARGET_NAME)"; 421 | SWIFT_VERSION = 5.0; 422 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 423 | }; 424 | name = Profile; 425 | }; 426 | 97C147031CF9000F007C117D /* Debug */ = { 427 | isa = XCBuildConfiguration; 428 | buildSettings = { 429 | ALWAYS_SEARCH_USER_PATHS = NO; 430 | ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; 431 | CLANG_ANALYZER_NONNULL = YES; 432 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 433 | CLANG_CXX_LIBRARY = "libc++"; 434 | CLANG_ENABLE_MODULES = YES; 435 | CLANG_ENABLE_OBJC_ARC = YES; 436 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 437 | CLANG_WARN_BOOL_CONVERSION = YES; 438 | CLANG_WARN_COMMA = YES; 439 | CLANG_WARN_CONSTANT_CONVERSION = YES; 440 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 441 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 442 | CLANG_WARN_EMPTY_BODY = YES; 443 | CLANG_WARN_ENUM_CONVERSION = YES; 444 | CLANG_WARN_INFINITE_RECURSION = YES; 445 | CLANG_WARN_INT_CONVERSION = YES; 446 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 447 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 448 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 449 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 450 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 451 | CLANG_WARN_STRICT_PROTOTYPES = YES; 452 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 453 | CLANG_WARN_UNREACHABLE_CODE = YES; 454 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 455 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 456 | COPY_PHASE_STRIP = NO; 457 | DEBUG_INFORMATION_FORMAT = dwarf; 458 | ENABLE_STRICT_OBJC_MSGSEND = YES; 459 | ENABLE_TESTABILITY = YES; 460 | ENABLE_USER_SCRIPT_SANDBOXING = NO; 461 | GCC_C_LANGUAGE_STANDARD = gnu99; 462 | GCC_DYNAMIC_NO_PIC = NO; 463 | GCC_NO_COMMON_BLOCKS = YES; 464 | GCC_OPTIMIZATION_LEVEL = 0; 465 | GCC_PREPROCESSOR_DEFINITIONS = ( 466 | "DEBUG=1", 467 | "$(inherited)", 468 | ); 469 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 470 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 471 | GCC_WARN_UNDECLARED_SELECTOR = YES; 472 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 473 | GCC_WARN_UNUSED_FUNCTION = YES; 474 | GCC_WARN_UNUSED_VARIABLE = YES; 475 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 476 | MTL_ENABLE_DEBUG_INFO = YES; 477 | ONLY_ACTIVE_ARCH = YES; 478 | SDKROOT = iphoneos; 479 | TARGETED_DEVICE_FAMILY = "1,2"; 480 | }; 481 | name = Debug; 482 | }; 483 | 97C147041CF9000F007C117D /* Release */ = { 484 | isa = XCBuildConfiguration; 485 | buildSettings = { 486 | ALWAYS_SEARCH_USER_PATHS = NO; 487 | ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; 488 | CLANG_ANALYZER_NONNULL = YES; 489 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 490 | CLANG_CXX_LIBRARY = "libc++"; 491 | CLANG_ENABLE_MODULES = YES; 492 | CLANG_ENABLE_OBJC_ARC = YES; 493 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 494 | CLANG_WARN_BOOL_CONVERSION = YES; 495 | CLANG_WARN_COMMA = YES; 496 | CLANG_WARN_CONSTANT_CONVERSION = YES; 497 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 498 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 499 | CLANG_WARN_EMPTY_BODY = YES; 500 | CLANG_WARN_ENUM_CONVERSION = YES; 501 | CLANG_WARN_INFINITE_RECURSION = YES; 502 | CLANG_WARN_INT_CONVERSION = YES; 503 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 504 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 505 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 506 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 507 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 508 | CLANG_WARN_STRICT_PROTOTYPES = YES; 509 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 510 | CLANG_WARN_UNREACHABLE_CODE = YES; 511 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 512 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 513 | COPY_PHASE_STRIP = NO; 514 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 515 | ENABLE_NS_ASSERTIONS = NO; 516 | ENABLE_STRICT_OBJC_MSGSEND = YES; 517 | ENABLE_USER_SCRIPT_SANDBOXING = NO; 518 | GCC_C_LANGUAGE_STANDARD = gnu99; 519 | GCC_NO_COMMON_BLOCKS = YES; 520 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 521 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 522 | GCC_WARN_UNDECLARED_SELECTOR = YES; 523 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 524 | GCC_WARN_UNUSED_FUNCTION = YES; 525 | GCC_WARN_UNUSED_VARIABLE = YES; 526 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 527 | MTL_ENABLE_DEBUG_INFO = NO; 528 | SDKROOT = iphoneos; 529 | SUPPORTED_PLATFORMS = iphoneos; 530 | SWIFT_COMPILATION_MODE = wholemodule; 531 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 532 | TARGETED_DEVICE_FAMILY = "1,2"; 533 | VALIDATE_PRODUCT = YES; 534 | }; 535 | name = Release; 536 | }; 537 | 97C147061CF9000F007C117D /* Debug */ = { 538 | isa = XCBuildConfiguration; 539 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 540 | buildSettings = { 541 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 542 | CLANG_ENABLE_MODULES = YES; 543 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 544 | ENABLE_BITCODE = NO; 545 | INFOPLIST_FILE = Runner/Info.plist; 546 | LD_RUNPATH_SEARCH_PATHS = ( 547 | "$(inherited)", 548 | "@executable_path/Frameworks", 549 | ); 550 | PRODUCT_BUNDLE_IDENTIFIER = com.example.clientApp; 551 | PRODUCT_NAME = "$(TARGET_NAME)"; 552 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 553 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 554 | SWIFT_VERSION = 5.0; 555 | VERSIONING_SYSTEM = "apple-generic"; 556 | }; 557 | name = Debug; 558 | }; 559 | 97C147071CF9000F007C117D /* Release */ = { 560 | isa = XCBuildConfiguration; 561 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 562 | buildSettings = { 563 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 564 | CLANG_ENABLE_MODULES = YES; 565 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 566 | ENABLE_BITCODE = NO; 567 | INFOPLIST_FILE = Runner/Info.plist; 568 | LD_RUNPATH_SEARCH_PATHS = ( 569 | "$(inherited)", 570 | "@executable_path/Frameworks", 571 | ); 572 | PRODUCT_BUNDLE_IDENTIFIER = com.example.clientApp; 573 | PRODUCT_NAME = "$(TARGET_NAME)"; 574 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 575 | SWIFT_VERSION = 5.0; 576 | VERSIONING_SYSTEM = "apple-generic"; 577 | }; 578 | name = Release; 579 | }; 580 | /* End XCBuildConfiguration section */ 581 | 582 | /* Begin XCConfigurationList section */ 583 | 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { 584 | isa = XCConfigurationList; 585 | buildConfigurations = ( 586 | 331C8088294A63A400263BE5 /* Debug */, 587 | 331C8089294A63A400263BE5 /* Release */, 588 | 331C808A294A63A400263BE5 /* Profile */, 589 | ); 590 | defaultConfigurationIsVisible = 0; 591 | defaultConfigurationName = Release; 592 | }; 593 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 594 | isa = XCConfigurationList; 595 | buildConfigurations = ( 596 | 97C147031CF9000F007C117D /* Debug */, 597 | 97C147041CF9000F007C117D /* Release */, 598 | 249021D3217E4FDB00AE95B9 /* Profile */, 599 | ); 600 | defaultConfigurationIsVisible = 0; 601 | defaultConfigurationName = Release; 602 | }; 603 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 604 | isa = XCConfigurationList; 605 | buildConfigurations = ( 606 | 97C147061CF9000F007C117D /* Debug */, 607 | 97C147071CF9000F007C117D /* Release */, 608 | 249021D4217E4FDB00AE95B9 /* Profile */, 609 | ); 610 | defaultConfigurationIsVisible = 0; 611 | defaultConfigurationName = Release; 612 | }; 613 | /* End XCConfigurationList section */ 614 | }; 615 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 616 | } 617 | --------------------------------------------------------------------------------