First Commit

This commit is contained in:
2026-05-06 20:16:11 +01:00
parent e45b7eb586
commit 547d5f5484
146 changed files with 28546 additions and 0 deletions

45
.gitignore vendored Normal file
View File

@@ -0,0 +1,45 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/
# IntelliJ related
*.iml
*.ipr
*.iws
.idea/
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/
# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins-dependencies
.pub-cache/
.pub/
/build/
/coverage/
# Symbolication related
app.*.symbols
# Obfuscation related
app.*.map.json
# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release

45
.metadata Normal file
View File

@@ -0,0 +1,45 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.
version:
revision: "00b0c91f06209d9e4a41f71b7a512d6eb3b9c694"
channel: "stable"
project_type: app
# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
base_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
- platform: android
create_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
base_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
- platform: ios
create_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
base_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
- platform: linux
create_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
base_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
- platform: macos
create_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
base_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
- platform: web
create_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
base_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
- platform: windows
create_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
base_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
# User provided section
# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'

28
analysis_options.yaml Normal file
View File

@@ -0,0 +1,28 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at https://dart.dev/lints.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options

14
android/.gitignore vendored Normal file
View File

@@ -0,0 +1,14 @@
gradle-wrapper.jar
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java
.cxx/
# Remember to never publicly share your keystore.
# See https://flutter.dev/to/reference-keystore
key.properties
**/*.keystore
**/*.jks

View File

@@ -0,0 +1,44 @@
plugins {
id("com.android.application")
id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
}
android {
namespace = "com.example.teachit"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.example.teachit"
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
}
}
}
flutter {
source = "../.."
}

View File

@@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>

View File

@@ -0,0 +1,45 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="teachit"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:taskAffinity=""
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility and
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
<queries>
<intent>
<action android:name="android.intent.action.PROCESS_TEXT"/>
<data android:mimeType="text/plain"/>
</intent>
</queries>
</manifest>

View File

@@ -0,0 +1,5 @@
package com.example.teachit
import io.flutter.embedding.android.FlutterActivity
class MainActivity : FlutterActivity()

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 721 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>

View File

@@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>

24
android/build.gradle.kts Normal file
View File

@@ -0,0 +1,24 @@
allprojects {
repositories {
google()
mavenCentral()
}
}
val newBuildDir: Directory =
rootProject.layout.buildDirectory
.dir("../../build")
.get()
rootProject.layout.buildDirectory.value(newBuildDir)
subprojects {
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
project.layout.buildDirectory.value(newSubprojectBuildDir)
}
subprojects {
project.evaluationDependsOn(":app")
}
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}

View File

@@ -0,0 +1,2 @@
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true

View File

@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-all.zip

View File

@@ -0,0 +1,26 @@
pluginManagement {
val flutterSdkPath =
run {
val properties = java.util.Properties()
file("local.properties").inputStream().use { properties.load(it) }
val flutterSdkPath = properties.getProperty("flutter.sdk")
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
flutterSdkPath
}
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "8.11.1" apply false
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
}
include(":app")

940
docs/API_DOCUMENTATION.md Normal file
View File

@@ -0,0 +1,940 @@
# API Documentation - AI Study Assistant
## 📡 COMPLETE API REFERENCE
---
## 📋 OVERVIEW
This document provides comprehensive API documentation for the AI Study Assistant backend services, including authentication, content management, learning analytics, and AI-powered tutoring features.
---
## 🔐 AUTHENTICATION
### Base URL
```
Production: https://api.teachit.app
Staging: https://api-staging.teachit.app
Development: http://localhost:5001
```
### Authentication Methods
All API endpoints require authentication using Firebase ID tokens.
#### Request Headers
```http
Authorization: Bearer <firebase_id_token>
Content-Type: application/json
X-Request-ID: <unique_request_id>
```
#### Token Validation
```javascript
// Example token validation
const idToken = req.headers.authorization?.split('Bearer ')[1];
const decodedToken = await admin.auth().verifyIdToken(idToken);
const uid = decodedToken.uid;
```
---
## 👤 USER MANAGEMENT
### Sign Up
```http
POST /auth/signup
```
**Request Body:**
```json
{
"email": "student@school.com",
"password": "securePassword123",
"role": "student",
"schoolId": "school123",
"profile": {
"name": "John Doe",
"grade": 10,
"section": "A"
}
}
```
**Response:**
```json
{
"success": true,
"user": {
"uid": "user123",
"email": "student@school.com",
"role": "student",
"profile": {
"name": "John Doe",
"grade": 10,
"section": "A"
},
"createdAt": "2026-05-06T20:00:00Z"
},
"token": "firebase_id_token"
}
```
### Sign In
```http
POST /auth/signin
```
**Request Body:**
```json
{
"email": "student@school.com",
"password": "securePassword123"
}
```
**Response:**
```json
{
"success": true,
"user": {
"uid": "user123",
"email": "student@school.com",
"role": "student",
"profile": {
"name": "John Doe",
"grade": 10,
"section": "A"
}
},
"token": "firebase_id_token"
}
```
### Get User Profile
```http
GET /auth/profile
```
**Response:**
```json
{
"success": true,
"user": {
"uid": "user123",
"email": "student@school.com",
"role": "student",
"schoolId": "school123",
"profile": {
"name": "John Doe",
"grade": 10,
"section": "A",
"avatar": "https://storage.googleapis.com/avatars/user123.jpg"
},
"preferences": {
"language": "en",
"theme": "light",
"notifications": true
}
}
}
```
---
## 🤖 AI TUTORING
### Ask Tutor
```http
POST /tutor/ask
```
**Request Body:**
```json
{
"query": "What is a derivative?",
"mode": "EXPLANATION",
"context": {
"subject": "Mathematics",
"currentTopic": "Calculus"
},
"studentInfo": {
"level": 2,
"grade": 10
}
}
```
**Response:**
```json
{
"success": true,
"response": {
"text": "A derivative is a concept that measures how a function changes as its input changes...",
"sources": [
{
"chunkId": "chunk123",
"title": "Introduction to Derivatives",
"relevance": 0.95
}
],
"metadata": {
"mode": "EXPLANATION",
"responseTime": 1.2,
"tokens": 156,
"model": "claude-3-5-sonnet-20241022"
}
},
"interactionId": "interaction123"
}
```
### Get Chat History
```http
GET /tutor/history?limit=20&offset=0
```
**Response:**
```json
{
"success": true,
"interactions": [
{
"id": "interaction123",
"query": "What is a derivative?",
"response": "A derivative is a concept...",
"mode": "EXPLANATION",
"timestamp": "2026-05-06T20:00:00Z",
"feedback": {
"rating": 5,
"comment": "Very helpful!"
}
}
],
"total": 45,
"hasMore": true
}
```
### Submit Feedback
```http
POST /tutor/feedback
```
**Request Body:**
```json
{
"interactionId": "interaction123",
"rating": 5,
"comment": "Very helpful explanation",
"category": "content_quality"
}
```
**Response:**
```json
{
"success": true,
"feedbackId": "feedback123"
}
```
---
## 📚 CONTENT MANAGEMENT
### Upload Content
```http
POST /content/upload
```
**Request (multipart/form-data):**
```
file: [file_content]
fileName: "derivatives_lesson.pdf"
mimeType: "application/pdf"
metadata: {
"subject": "Mathematics",
"concept": "Derivatives",
"difficulty": 0.6,
"grade": 10,
"language": "en"
}
```
**Response:**
```json
{
"success": true,
"contentId": "content123",
"chunks": [
{
"id": "chunk123",
"text": "A derivative measures the rate of change...",
"metadata": {
"concept": "Derivatives",
"difficulty": 0.6,
"quality": 0.85
}
}
],
"processingTime": 2.3
}
```
### Get Content List
```http
GET /content/list?subject=Mathematics&concept=Derivatives&limit=10
```
**Response:**
```json
{
"success": true,
"content": [
{
"id": "content123",
"title": "Introduction to Derivatives",
"subject": "Mathematics",
"concept": "Derivatives",
"difficulty": 0.6,
"grade": 10,
"chunkCount": 12,
"uploadedAt": "2026-05-06T20:00:00Z",
"uploadedBy": "teacher123"
}
],
"total": 25,
"hasMore": true
}
```
### Get Content Details
```http
GET /content/{contentId}
```
**Response:**
```json
{
"success": true,
"content": {
"id": "content123",
"title": "Introduction to Derivatives",
"subject": "Mathematics",
"concept": "Derivatives",
"difficulty": 0.6,
"grade": 10,
"chunks": [
{
"id": "chunk123",
"text": "A derivative measures the rate of change...",
"metadata": {
"concept": "Derivatives",
"difficulty": 0.6,
"quality": 0.85,
"wordCount": 156
}
}
],
"uploadedAt": "2026-05-06T20:00:00Z",
"uploadedBy": "teacher123"
}
}
```
---
## 📝 QUIZ SYSTEM
### Create Quiz
```http
POST /quiz/create
```
**Request Body:**
```json
{
"title": "Derivatives Quiz",
"subject": "Mathematics",
"concept": "Derivatives",
"grade": 10,
"difficulty": 0.5,
"questions": [
{
"type": "multiple_choice",
"question": "What is the derivative of f(x) = x²?",
"options": [
"2x",
"x",
"2",
"x²"
],
"correctAnswer": 0,
"explanation": "Using the power rule, the derivative of x² is 2x."
}
],
"timeLimit": 30,
"passingScore": 70
}
```
**Response:**
```json
{
"success": true,
"quizId": "quiz123",
"questions": [
{
"id": "question123",
"type": "multiple_choice",
"question": "What is the derivative of f(x) = x²?",
"options": [
"2x",
"x",
"2",
"x²"
]
}
]
}
```
### Start Quiz
```http
POST /quiz/{quizId}/start
```
**Response:**
```json
{
"success": true,
"attemptId": "attempt123",
"quiz": {
"id": "quiz123",
"title": "Derivatives Quiz",
"timeLimit": 30,
"questionCount": 5
},
"questions": [
{
"id": "question123",
"type": "multiple_choice",
"question": "What is the derivative of f(x) = x²?",
"options": [
"2x",
"x",
"2",
"x²"
]
}
],
"startedAt": "2026-05-06T20:00:00Z"
}
```
### Submit Quiz Answer
```http
POST /quiz/{attemptId}/answer
```
**Request Body:**
```json
{
"questionId": "question123",
"answer": 0,
"timeSpent": 15
}
```
**Response:**
```json
{
"success": true,
"correct": true,
"explanation": "Using the power rule, the derivative of x² is 2x.",
"points": 10,
"totalPoints": 50
}
```
### Complete Quiz
```http
POST /quiz/{attemptId}/complete
```
**Response:**
```json
{
"success": true,
"results": {
"score": 85,
"totalQuestions": 5,
"correctAnswers": 4,
"timeSpent": 180,
"passed": true,
"completedAt": "2026-05-06T20:03:00Z"
},
"recommendations": [
{
"concept": "Chain Rule",
"reason": "Related to derivatives",
"priority": "medium"
}
]
}
```
---
## 📊 LEARNING ANALYTICS
### Get Learning State
```http
GET /analytics/learning-state
```
**Response:**
```json
{
"success": true,
"learningState": {
"studentId": "student123",
"adaptiveDifficulty": {
"currentLevel": 2.3,
"targetLevel": 3.0,
"adjustmentFactor": 0.1
},
"conceptStates": [
{
"concept": "Derivatives",
"mastery": 0.75,
"confidence": 0.82,
"lastInteraction": "2026-05-06T20:00:00Z",
"interactions": 12,
"correctAnswers": 9
}
],
"spacedRepetition": {
"nextReviewDue": [
{
"concept": "Derivatives",
"dueDate": "2026-05-08T20:00:00Z",
"priority": "high"
}
]
},
"metadata": {
"totalInteractions": 45,
"averageSessionTime": 15.2,
"streak": 7,
"lastActive": "2026-05-06T20:00:00Z"
}
}
}
```
### Update Learning State
```http
POST /analytics/learning-state
```
**Request Body:**
```json
{
"concept": "Derivatives",
"mastery": 0.8,
"confidence": 0.85,
"interaction": {
"type": "quiz",
"correct": true,
"timeSpent": 30
}
}
```
**Response:**
```json
{
"success": true,
"updated": true,
"newMastery": 0.8,
"recommendations": [
{
"action": "advance_difficulty",
"reason": "High mastery achieved"
}
]
}
```
### Get Progress Report
```http
GET /analytics/progress?period=week&subject=Mathematics
```
**Response:**
```json
{
"success": true,
"progress": {
"period": "week",
"subject": "Mathematics",
"stats": {
"totalSessions": 12,
"totalTime": 180,
"conceptsStudied": 5,
"averageScore": 82,
"improvement": 15
},
"dailyProgress": [
{
"date": "2026-05-06",
"sessions": 2,
"timeSpent": 30,
"concepts": ["Derivatives"],
"score": 85
}
],
"conceptProgress": [
{
"concept": "Derivatives",
"mastery": 0.75,
"improvement": 0.2,
"timeSpent": 60
}
]
}
}
```
---
## 🏫 SCHOOL MANAGEMENT
### Get School Info
```http
GET /school/info
```
**Response:**
```json
{
"success": true,
"school": {
"id": "school123",
"name": "Escola Profissional de Vila do Conde",
"settings": {
"curriculum": ["Mathematics", "Science", "English"],
"language": "en",
"policies": {
"allowExternalKnowledge": false,
"fallbackMode": "partial_with_hint",
"minRetrievalConfidence": 0.6
}
},
"subscription": {
"plan": "premium",
"maxStudents": 1000,
"maxTeachers": 50,
"expiresAt": "2026-12-31T23:59:59Z"
}
}
}
```
### Get Students
```http
GET /school/students?grade=10&section=A
```
**Response:**
```json
{
"success": true,
"students": [
{
"uid": "student123",
"name": "John Doe",
"email": "john@school.com",
"grade": 10,
"section": "A",
"progress": {
"totalSessions": 45,
"averageScore": 82,
"lastActive": "2026-05-06T20:00:00Z"
}
}
],
"total": 25
}
```
---
## 📈 TEACHER ANALYTICS
### Get Class Analytics
```http
GET /analytics/class?grade=10&section=A&period=month
```
**Response:**
```json
{
"success": true,
"analytics": {
"period": "month",
"classSize": 25,
"activeStudents": 23,
"totalSessions": 345,
"averageScore": 78,
"topConcepts": [
{
"concept": "Derivatives",
"mastery": 0.72,
"students": 20
}
],
"strugglingStudents": [
{
"studentId": "student456",
"name": "Jane Smith",
"averageScore": 65,
"conceptsNeedingHelp": ["Chain Rule"]
}
],
"engagementMetrics": {
"dailyActiveUsers": 18,
"averageSessionTime": 12.5,
"questionFrequency": 3.2
}
}
}
```
---
## 🔄 WEBHOOKS
### Webhook Events
The system supports webhooks for real-time notifications:
#### Event Types
- `user.created`
- `interaction.completed`
- `quiz.completed`
- `content.uploaded`
- `learning.state.updated`
#### Webhook Configuration
```http
POST /webhooks/configure
```
**Request Body:**
```json
{
"url": "https://your-app.com/webhook",
"events": ["interaction.completed", "quiz.completed"],
"secret": "webhook_secret"
}
```
**Response:**
```json
{
"success": true,
"webhookId": "webhook123"
}
```
---
## ⚠️ ERROR HANDLING
### Error Response Format
```json
{
"success": false,
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "Authentication token is required",
"details": {
"field": "authorization",
"expected": "Bearer <token>"
},
"requestId": "req_123456"
}
}
```
### Error Codes
| Code | HTTP Status | Description |
|------|-------------|-------------|
| AUTHENTICATION_REQUIRED | 401 | Firebase token required |
| INVALID_TOKEN | 401 | Invalid or expired token |
| PERMISSION_DENIED | 403 | Insufficient permissions |
| NOT_FOUND | 404 | Resource not found |
| VALIDATION_ERROR | 400 | Request validation failed |
| RATE_LIMIT_EXCEEDED | 429 | Too many requests |
| INTERNAL_ERROR | 500 | Server error |
| SERVICE_UNAVAILABLE | 503 | Service temporarily unavailable |
---
## 📊 RATE LIMITING
### Rate Limits
| Endpoint | Requests/Minute | Burst |
|----------|------------------|-------|
| /tutor/ask | 20 | 5 |
| /quiz/* | 30 | 10 |
| /content/* | 10 | 3 |
| /analytics/* | 50 | 15 |
| /auth/* | 100 | 20 |
### Rate Limit Headers
```http
X-RateLimit-Limit: 20
X-RateLimit-Remaining: 15
X-RateLimit-Reset: 1623456789
```
---
## 🔍 SEARCH AND FILTERING
### Query Parameters
Common parameters across endpoints:
- `limit`: Number of items to return (default: 20, max: 100)
- `offset`: Number of items to skip (default: 0)
- `sort`: Field to sort by
- `order`: Sort order (asc/desc, default: desc)
- `filter`: Filter criteria (JSON object)
- `search`: Search term
### Example Filter
```http
GET /content/list?filter={"subject":"Mathematics","difficulty":{"gte":0.5,"lte":0.8}}&sort=uploadedAt&order=desc&limit=10
```
---
## 📱 SDK EXAMPLES
### JavaScript/TypeScript
```typescript
import { TeachItAPI } from '@teachit/api-client';
const api = new TeachItAPI({
baseURL: 'https://api.teachit.app',
token: 'firebase_id_token'
});
// Ask tutor
const response = await api.tutor.ask({
query: 'What is a derivative?',
mode: 'EXPLANATION'
});
// Get learning state
const learningState = await api.analytics.getLearningState();
```
### Flutter/Dart
```dart
import 'package:teachit_api/teachit_api.dart';
final api = TeachItAPI(
baseURL: 'https://api.teachit.app',
token: 'firebase_id_token'
);
// Ask tutor
final response = await api.tutor.ask(
query: 'What is a derivative?',
mode: 'EXPLANATION',
);
// Get learning state
final learningState = await api.analytics.getLearningState();
```
### Python
```python
from teachit_api import TeachItAPI
api = TeachItAPI(
base_url='https://api.teachit.app',
token='firebase_id_token'
)
# Ask tutor
response = api.tutor.ask(
query='What is a derivative?',
mode='EXPLANATION'
)
# Get learning state
learning_state = api.analytics.get_learning_state()
```
---
## 🧪 TESTING
### Test Environment
- **URL**: https://api-test.teachit.app
- **Authentication**: Use test Firebase project
- **Rate Limits**: Disabled for testing
### Test Data
```http
POST /auth/test/login
```
**Response:**
```json
{
"success": true,
"token": "test_token",
"user": {
"uid": "test_user",
"role": "student"
}
}
```
---
## 📋 CHANGE LOG
### Version 1.0.0 (2026-05-06)
- Initial API release
- Authentication endpoints
- AI tutoring functionality
- Quiz system
- Learning analytics
- Content management
---
## 📞 SUPPORT
### API Support
- **Email**: api-support@teachit.app
- **Documentation**: https://docs.teachit.app
- **Status Page**: https://status.teachit.app
### Community
- **GitHub**: https://github.com/teachit/api
- **Discord**: https://discord.gg/teachit
- **Forum**: https://community.teachit.app
---
*Last Updated: 2026-05-06*
*Version: 1.0.0*
*API Team: Backend Development*

873
docs/ARCHITECTURE.md Normal file
View File

@@ -0,0 +1,873 @@
# Architecture Overview - AI Study Assistant
## 🏗️ COMPLETE SYSTEM ARCHITECTURE
---
## 📋 OVERVIEW
This document provides a comprehensive overview of the AI Study Assistant system architecture, including component interactions, data flow, technology stack, and design decisions.
---
## 🎯 ARCHITECTURE PRINCIPLES
### Core Principles
- **Modularity**: Loosely coupled, highly cohesive components
- **Scalability**: Horizontal scaling capabilities
- **Maintainability**: Clean, well-documented code
- **Security**: Defense-in-depth security approach
- **Performance**: Optimized for educational workloads
- **Accessibility**: Universal design for learning
### Design Patterns
- **Clean Architecture**: Separation of concerns
- **Microservices**: Service-oriented architecture
- **Event-Driven**: Asynchronous communication
- **CQRS**: Command Query Responsibility Segregation
- **Repository Pattern**: Data access abstraction
---
## 🏛️ HIGH-LEVEL ARCHITECTURE
### System Overview
```
┌─────────────────────────────────────────────────────────────────┐
│ PRESENTATION LAYER │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Flutter App │ Web App │ Admin Dashboard │
│ (Mobile/Web) │ (PWA) │ (Management) │
└─────────────────┴─────────────────┴─────────────────────────────┘
┌─────────────────────────────────────────────────────────────────┐
│ API GATEWAY │
│ • Authentication • Rate Limiting • Load Balancing │
└─────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────┐
│ SERVICE LAYER │
├─────────────┬─────────────┬─────────────┬───────────────────────┤
│ Auth │ Tutor │ Quiz │ Analytics │
│ Service │ Service │ Service │ Service │
└─────────────┴─────────────┴─────────────┴───────────────────────┘
┌─────────────────────────────────────────────────────────────────┐
│ AI/ML LAYER │
├─────────────┬─────────────┬─────────────┬───────────────────────┤
│ RAG │ Embedding │ LLM │ Vector Store │
│ Engine │ Service │ Service │ (FAISS) │
└─────────────┴─────────────┴─────────────┴───────────────────────┘
┌─────────────────────────────────────────────────────────────────┐
│ DATA LAYER │
├─────────────┬─────────────┬─────────────┬───────────────────────┤
│ Firestore │ Storage │ Cache │ Search │
│ Database │ (Files) │ (Redis) │ (Elasticsearch) │
└─────────────┴─────────────┴─────────────┴───────────────────────┘
```
---
## 📱 FRONTEND ARCHITECTURE
### Flutter Application Architecture
```
┌─────────────────────────────────────────────────────────────────┐
│ PRESENTATION │
│ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │
│ │ Features │ │ Shared │ │ Core │ │
│ │ │ │ │ │ │ │
│ │ • Auth │ │ • Widgets │ │ • Config │ │
│ │ • Tutor │ │ • Utils │ │ • Constants │ │
│ │ • Quiz │ │ • Extensions │ │ • Errors │ │
│ │ • Analytics │ │ • Models │ │ • Network │ │
│ │ • Content │ │ • Services │ │ • Storage │ │
│ └─────────────────┘ └─────────────────┘ └─────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────┐
│ BUSINESS LOGIC │
│ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │
│ │ Repositories │ │ Use Cases │ │ Entities │ │
│ │ │ │ │ │ │ │
│ │ • Auth Repo │ │ • Sign In │ │ • User │ │
│ │ • Tutor Repo │ │ • Ask Tutor │ │ • Question │ │
│ │ • Quiz Repo │ │ • Submit Quiz │ │ • Quiz │ │
│ │ • Analytics Repo│ │ • Track Progress│ │ • Progress │ │
│ └─────────────────┘ └─────────────────┘ └─────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────┐
│ DATA LAYER │
│ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │
│ │ Remote │ │ Local │ │ Cache │ │
│ │ │ │ │ │ │ │
│ │ • Firebase Auth │ │ • SharedPrefs │ │ • Memory Cache │ │
│ │ • Firestore │ │ • Hive │ │ • Image Cache │ │
│ │ • Storage │ │ • Secure Storage│ │ • API Cache │ │
│ └─────────────────┘ └─────────────────┘ └─────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
```
### Component Architecture
```dart
// Clean Architecture Layers
// Presentation Layer
class AskTutorScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Consumer(
builder: (context, ref, child) {
final tutorState = ref.watch(tutorProvider);
return AskTutorView(
state: tutorState,
onAskQuestion: (question) =>
ref.read(tutorProvider.notifier).askQuestion(question),
);
},
),
);
}
}
// Business Logic Layer
class AskTutorUseCase {
final TutorRepository _repository;
AskTutorUseCase(this._repository);
Future<Either<Failure, TutorResponse>> call(TutorRequest request) async {
try {
final response = await _repository.askTutor(request);
return Right(response);
} catch (e) {
return Left(ServerFailure(e.toString()));
}
}
}
// Data Layer
class TutorRepositoryImpl implements TutorRepository {
final TutorRemoteDataSource _remoteDataSource;
final TutorLocalDataSource _localDataSource;
TutorRepositoryImpl(
this._remoteDataSource,
this._localDataSource,
);
@override
Future<TutorResponse> askTutor(TutorRequest request) async {
// Cache check
final cached = await _localDataSource.getCachedResponse(request);
if (cached != null) return cached;
// Remote call
final response = await _remoteDataSource.askTutor(request);
// Cache response
await _localDataSource.cacheResponse(request, response);
return response;
}
}
```
---
## ⚡ BACKEND ARCHITECTURE
### Cloud Functions Architecture
```
┌─────────────────────────────────────────────────────────────────┐
│ API GATEWAY LAYER │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Middleware │ Validation │ Rate Limiting │
│ │ │ │
│ • Auth │ • Input Check │ • Per-User Limits │
│ • CORS │ • Schema Valid │ • Per-Endpoint Limits │
│ • Logging │ • Sanitization │ • Global Limits │
│ • Error Handl │ • Type Check │ • Burst Protection │
└─────────────────┴─────────────────┴─────────────────────────────┘
┌─────────────────────────────────────────────────────────────────┐
│ SERVICE LAYER │
├─────────────┬─────────────┬─────────────┬───────────────────────┤
│ Auth │ Tutor │ Quiz │ Analytics │
│ Service │ Service │ Service │ Service │
│ │ │ │ │
│ • Sign Up │ • Ask Tutor │ • Create │ • Track Progress │
│ • Sign In │ • Get History│ • Submit │ • Generate Reports │
│ • Validate │ • Feedback │ • Grade │ • Calculate Mastery │
│ • Refresh │ • Rate Limit│ • Analytics │ • Recommendations │
└─────────────┴─────────────┴─────────────┴───────────────────────┘
┌─────────────────────────────────────────────────────────────────┐
│ INTEGRATION LAYER │
├─────────────┬─────────────┬─────────────┬───────────────────────┤
│ Database │ Storage │ Cache │ External APIs │
│ Service │ Service │ Service │ │
│ │ │ │ │
│ • Firestore │ • File Upload│ • Redis │ • OpenAI │
│ • Queries │ • Download │ • MemCache │ • Anthropic │
│ • Transactions│ • Metadata │ • Session │ • Monitoring │
│ • Indexing │ • Security │ • Cache │ • Analytics │
└─────────────┴─────────────┴─────────────┴───────────────────────┘
```
### Service Architecture
```typescript
// Service Layer Structure
export class TutorService {
constructor(
private ragService: RAGService,
private llmService: LLMService,
private cacheService: CacheService,
private analyticsService: AnalyticsService,
) {}
async askTutor(request: TutorRequest): Promise<TutorResponse> {
// 1. Validate request
await this.validateRequest(request);
// 2. Check cache
const cached = await this.cacheService.get(request);
if (cached) return cached;
// 3. Process with RAG
const context = await this.ragService.retrieveContext(request.query);
// 4. Generate response with LLM
const response = await this.llmService.generateResponse({
query: request.query,
context: context,
mode: request.mode,
});
// 5. Cache response
await this.cacheService.set(request, response);
// 6. Track analytics
await this.analyticsService.trackInteraction({
userId: request.userId,
query: request.query,
response: response,
mode: request.mode,
});
return response;
}
}
```
---
## 🤖 AI/ML ARCHITECTURE
### RAG Engine Architecture
```
┌─────────────────────────────────────────────────────────────────┐
│ INPUT PROCESSING │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Text Input │ Content │ Query Processing │
│ Processing │ Processing │ │
│ │ │ │
│ • Tokenization │ • PDF Parsing │ • Query Embedding │
│ • Cleaning │ • Text Extract │ • Vector Search │
│ • Normalization │ • Chunking │ • Similarity Calculation │
│ • Validation │ • Metadata │ • Ranking │
└─────────────────┴─────────────────┴─────────────────────────────┘
┌─────────────────────────────────────────────────────────────────┐
│ VECTOR STORE │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Indexing │ Storage │ Retrieval │
│ │ │ │
│ • FAISS Index │ • Vector Data │ • Approximate Search │
│ • HNSW Tree │ • Metadata │ • Exact Search │
│ • IVF Clusters │ • Chunks │ • Hybrid Search │
│ • Optimization │ • Updates │ • Filtering │
└─────────────────┴─────────────────┴─────────────────────────────┘
┌─────────────────────────────────────────────────────────────────┐
│ LLM INTEGRATION │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Prompt │ Generation │ Post-Processing │
│ Engineering │ │ │
│ │ │ │
│ • Context Build │ • OpenAI API │ • Response Validation │
│ • Template │ • Anthropic API│ • Safety Checks │
│ • Formatting │ • Model Selection│ • Quality Assessment │
│ • Safety │ • Rate Limit │ • Caching │
└─────────────────┴─────────────────┴─────────────────────────────┘
```
### RAG Pipeline Implementation
```python
# RAG Engine Pipeline
class RAGPipeline:
def __init__(self):
self.embedding_service = EmbeddingService()
self.vector_store = VectorStore()
self.llm_service = LLMService()
self.prompt_builder = PromptBuilder()
async def process_query(self, query: str, mode: str = "EXPLANATION") -> str:
# Step 1: Process input
processed_query = self.preprocess_query(query)
# Step 2: Generate embedding
query_embedding = await self.embedding_service.encode([processed_query])
# Step 3: Retrieve relevant context
context_chunks = await self.vector_store.search(
query_embedding[0],
k=10,
filters=self.get_filters(mode)
)
# Step 4: Build prompt
prompt = self.prompt_builder.build(
query=processed_query,
context=context_chunks,
mode=mode
)
# Step 5: Generate response
response = await self.llm_service.generate(prompt)
# Step 6: Post-process
final_response = self.postprocess_response(response, context_chunks)
return final_response
def preprocess_query(self, query: str) -> str:
# Clean and normalize query
query = query.strip().lower()
# Remove special characters
query = re.sub(r'[^\w\s]', '', query)
# Tokenize and normalize
return query
def get_filters(self, mode: str) -> Dict[str, Any]:
# Mode-specific filtering
filters = {}
if mode == "EXPLANATION":
filters["content_type"] = ["explanation", "definition"]
elif mode == "TUTOR":
filters["difficulty"] = {"$lte": 0.7}
return filters
```
---
## 🗄️ DATA ARCHITECTURE
### Database Schema
```
┌─────────────────────────────────────────────────────────────────┐
│ FIRESTORE DATABASE │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ USERS │ CONTENT │ LEARNING │
│ │ │ │
│ • uid │ • id │ • studentId │
│ • email │ • title │ • concept │
│ • role │ • subject │ • mastery │
│ • schoolId │ • concept │ • confidence │
│ • profile │ • difficulty │ • lastInteraction │
│ • preferences │ • grade │ • interactions │
│ • createdAt │ • uploadedAt │ • recommendations │
│ • lastActive │ • uploadedBy │ • spacedRepetition │
└─────────────────┴─────────────────┴─────────────────────────────┘
┌─────────────────┬─────────────────┬─────────────────────────────┐
│ QUIZ │ INTERACTIONS │ SCHOOLS │
│ │ │ │
│ • id │ • id │ • id │
│ • title │ • studentId │ • name │
│ • subject │ • query │ • email │
│ • concept │ • response │ • settings │
│ • questions │ • mode │ • subscription │
│ • timeLimit │ • timestamp │ • maxStudents │
│ • passingScore │ • feedback │ • maxTeachers │
│ • createdBy │ • metadata │ • isActive │
│ • createdAt │ • sources │ • createdAt │
└─────────────────┴─────────────────┴─────────────────────────────┘
```
### Data Flow Architecture
```
┌─────────────────────────────────────────────────────────────────┐
│ DATA FLOW PATTERNS │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Write Path │ Read Path │ Analytics Path │
│ │ │ │
│ 1. User Action │ 1. Cache Check │ 1. Event Capture │
│ 2. Validation │ 2. DB Query │ 2. Stream Processing │
│ 3. DB Write │ 3. Cache Update│ 3. Aggregation │
│ 4. Cache Update │ 4. Response │ 4. Storage │
│ 5. Event Emit │ 5. Analytics │ 5. Dashboard Update │
└─────────────────┴─────────────────┴─────────────────────────────┘
```
---
## 🔐 SECURITY ARCHITECTURE
### Security Layers
```
┌─────────────────────────────────────────────────────────────────┐
│ SECURITY LAYERS │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Network │ Application │ Data │
│ │ │ │
│ • HTTPS/TLS │ • Authentication│ • Encryption at Rest │
│ • CORS Policy │ • Authorization│ • Field-Level Encryption │
│ • Rate Limiting │ • Input Validation│ • Access Control │
│ • DDoS Protection│ • Output Encoding│ • Audit Logging │
│ • VPN Access │ • Session Mgmt │ • Data Retention │
└─────────────────┴─────────────────┴─────────────────────────────┘
┌─────────────────────────────────────────────────────────────────┐
│ COMPLIANCE LAYER │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ GDPR │ FERPA │ Educational Standards │
│ │ │ │
│ • Data Consent │ • Directory Info│ • Accessibility │
│ • Right to Access│ • Educational │ • Privacy by Design │
│ • Data Portability│ Records │ • Age Appropriateness │
│ • Right to Erasure│ • Parent Access│ • Content Filtering │
└─────────────────┴─────────────────┴─────────────────────────────┘
```
---
## 🚀 DEPLOYMENT ARCHITECTURE
### Infrastructure Architecture
```
┌─────────────────────────────────────────────────────────────────┐
│ INFRASTRUCTURE │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Frontend │ Backend │ AI/ML │
│ │ │ │
│ • Firebase Host │ • Cloud Functions│ • Vector Database │
│ • CDN │ • Auto Scaling │ • Model Servers │
│ • Edge Caching │ • Load Balancer │ • GPU Resources │
│ • SSL/TLS │ • Monitoring │ • Model Caching │
│ • CI/CD │ • Logging │ • Batch Processing │
└─────────────────┴─────────────────┴─────────────────────────────┘
┌─────────────────────────────────────────────────────────────────┐
│ MONITORING & LOGGING │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Application │ Infrastructure│ Security │
│ │ │ │
│ • Error Tracking │ • Resource Usage│ • Threat Detection │
│ • Performance │ • Uptime │ • Access Logs │
│ • User Analytics │ • Health Checks│ • Vulnerability Scanning │
│ • A/B Testing │ • Alerts │ • Compliance Monitoring │
│ • Feature Flags │ • Metrics │ • Audit Trails │
└─────────────────┴─────────────────┴─────────────────────────────┘
```
---
## 📊 SCALABILITY ARCHITECTURE
### Horizontal Scaling Strategy
```
┌─────────────────────────────────────────────────────────────────┐
│ SCALING PATTERNS │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Database │ Application │ AI/ML │
│ │ │ │
│ • Sharding │ • Load Balancer│ • Model Sharding │
│ • Replication │ • Auto Scaling │ • Distributed Inference │
│ • Caching │ • Microservices│ • Batch Queues │
│ • Read Replicas │ • Containerization│ • GPU Pooling │
│ • Connection Pool│ • Serverless │ • Model Versioning │
└─────────────────┴─────────────────┴─────────────────────────────┘
```
### Performance Optimization
```
┌─────────────────────────────────────────────────────────────────┐
│ PERFORMANCE LAYERS │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Frontend │ Backend │ Database │
│ │ │ │
│ • Lazy Loading │ • Caching │ • Indexing │
│ • Code Splitting│ • Connection Pool│ • Query Optimization │
│ • Image Opt │ • Batch Ops │ • Data Compression │
│ • Memory Mgmt │ • Async Processing│ • Partitioning │
│ • Bundle Size │ • Rate Limiting │ • Caching Strategy │
└─────────────────┴─────────────────┴─────────────────────────────┘
```
---
## 🔧 TECHNOLOGY STACK
### Frontend Technologies
```yaml
Flutter Framework:
- SDK: 3.41.0+
- Language: Dart 3.0+
- State Management: Riverpod 2.4.9
- Navigation: GoRouter 12.1.3
- UI: Material Design 3
- Testing: Flutter Test, Integration Test
Firebase Services:
- Authentication: Firebase Auth
- Database: Cloud Firestore
- Storage: Firebase Storage
- Analytics: Firebase Analytics
- Crashlytics: Firebase Crashlytics
- Performance: Firebase Performance
Third-Party Libraries:
- HTTP: Dio 5.4.0
- Caching: Cached Network Image 3.3.0
- Fonts: Google Fonts 6.1.0
- Animations: Flutter Animate 4.2.0
- Local Storage: Hive 2.2.3
```
### Backend Technologies
```yaml
Runtime Environment:
- Platform: Firebase Cloud Functions
- Runtime: Node.js 18.x LTS
- Language: TypeScript 5.0+
- Package Manager: npm 9.x
Core Services:
- Authentication: Firebase Admin SDK
- Database: Firestore Admin SDK
- Storage: Cloud Storage Admin SDK
- HTTP Framework: Express.js 4.18+
- Validation: Joi 17.9+
- Security: Helmet 7.0+
AI/ML Services:
- Vector Database: FAISS 1.7.4
- Embeddings: Sentence Transformers 2.2.2
- LLM APIs: OpenAI 4.20.1, Anthropic 0.6.3
- Processing: NumPy 1.21+, PyTorch 1.12+
Monitoring & Logging:
- Logging: Winston 3.8+
- Metrics: Prometheus Client
- Tracing: OpenTelemetry
- Error Tracking: Sentry
```
### Infrastructure Technologies
```yaml
Cloud Platform:
- Provider: Google Cloud Platform
- Services: Firebase, Cloud Functions, Cloud Storage
- Regions: us-central1, europe-west1
- CDN: Firebase Hosting
Database:
- Primary: Cloud Firestore
- Cache: Redis (MemoryStore)
- Search: Elasticsearch (if needed)
- Backup: Automated daily backups
Security:
- TLS: 1.3
- Authentication: Firebase Auth
- Authorization: Custom RBAC
- Monitoring: Security Command Center
CI/CD:
- Pipeline: GitHub Actions
- Build: Cloud Build
- Deploy: Firebase CLI
- Testing: Automated test suites
```
---
## 🔄 INTEGRATION PATTERNS
### Service Communication
```
┌─────────────────────────────────────────────────────────────────┐
│ COMMUNICATION PATTERNS │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Synchronous │ Asynchronous │ Event-Driven │
│ │ │ │
│ • HTTP/REST │ • Message Queue │ • Event Streaming │
│ • GraphQL │ • Pub/Sub │ • CQRS │
│ • gRPC │ • Background Jobs│ • Event Sourcing │
│ • WebSocket │ • Worker Threads│ • Saga Pattern │
│ • API Gateway │ • Batch Processing│ • Domain Events │
└─────────────────┴─────────────────┴─────────────────────────────┘
```
### Data Integration
```
┌─────────────────────────────────────────────────────────────────┐
│ DATA INTEGRATION │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Real-time │ Batch │ Hybrid │
│ │ │ │
│ • Firestore │ • Cloud Storage │ • Stream Processing │
│ • Realtime DB │ • BigQuery │ • Lambda Architecture │
│ • WebSocket │ • Dataflow │ • Change Data Capture │
│ • Pub/Sub │ • Cloud Functions│ • Event-Driven Updates │
│ • Webhooks │ • Scheduled Jobs│ • Reactive Programming │
└─────────────────┴─────────────────┴─────────────────────────────┘
```
---
## 🎯 DESIGN DECISIONS
### Architectural Decisions
#### 1. Clean Architecture
**Decision**: Adopt Clean Architecture principles
**Rationale**:
- Separation of concerns
- Testability
- Maintainability
- Framework independence
#### 2. Microservices Architecture
**Decision**: Use microservices for backend
**Rationale**:
- Independent scaling
- Technology diversity
- Fault isolation
- Team autonomy
#### 3. Firebase as Backend
**Decision**: Use Firebase as primary backend
**Rationale**:
- Rapid development
- Built-in security
- Real-time capabilities
- Managed infrastructure
#### 4. RAG for AI Tutoring
**Decision**: Use Retrieval-Augmented Generation
**Rationale**:
- Context-aware responses
- Reduced hallucinations
- Educational content integration
- Explainable AI
#### 5. Flutter for Cross-Platform
**Decision**: Use Flutter for frontend
**Rationale**:
- Single codebase
- Native performance
- Consistent UI
- Rapid development
### Technology Trade-offs
#### Firebase vs. Custom Backend
**Firebase Chosen**:
- ✅ Rapid development
- ✅ Built-in security
- ✅ Real-time features
- ✅ Managed infrastructure
- ❌ Vendor lock-in
- ❌ Limited customization
- ❌ Cost at scale
#### Vector Database Options
**FAISS Chosen**:
- ✅ Performance
- ✅ Open source
- ✅ Python integration
- ❌ Limited features
- ❌ No managed service
- ❌ Scaling complexity
#### LLM Provider Strategy
**Multiple Providers**:
- ✅ Redundancy
- ✅ Cost optimization
- ✅ Feature diversity
- ❌ Integration complexity
- ❌ Consistency challenges
---
## 📈 PERFORMANCE ARCHITECTURE
### Performance Optimization Layers
```
┌─────────────────────────────────────────────────────────────────┐
│ PERFORMANCE LAYERS │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Frontend │ Backend │ Database │
│ │ │ │
│ • Code Splitting│ • Function Cold │ • Query Optimization │
│ • Lazy Loading │ Starts │ • Indexing Strategy │
│ • Image Opt │ • Connection │ • Caching Layers │
│ • Memory Mgmt │ Pooling │ • Data Sharding │
│ • Bundle Size │ • Batch Ops │ • Read Replicas │
│ • Animations │ • Async Processing│ • Compression │
└─────────────────┴─────────────────┴─────────────────────────────┘
```
### Caching Strategy
```
┌─────────────────────────────────────────────────────────────────┐
│ CACHING HIERARCHY │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Client Cache │ Edge Cache │ Server Cache │
│ │ │ │
│ • Memory Cache │ • CDN Cache │ • Redis Cache │
│ • Local Storage │ • Browser Cache │ • Application Cache │
│ • Image Cache │ • API Cache │ • Database Cache │
│ • Response Cache │ • Static Assets │ • Session Cache │
│ • Offline Cache │ • Global Cache │ • Distributed Cache │
└─────────────────┴─────────────────┴─────────────────────────────┘
```
---
## 🔍 MONITORING ARCHITECTURE
### Monitoring Stack
```
┌─────────────────────────────────────────────────────────────────┐
│ MONITORING STACK │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Application │ Infrastructure│ Business │
│ │ │ │
│ • Error Tracking│ • Resource Usage│ • User Analytics │
│ • Performance │ • Health Checks│ • Learning Metrics │
│ • User Behavior │ • Uptime │ • Engagement Tracking │
│ • Feature Usage │ • Latency │ • Content Analytics │
│ • A/B Testing │ • Throughput │ • Progress Analytics │
│ • Custom Events │ • Error Rates │ • Quiz Performance │
└─────────────────┴─────────────────┴─────────────────────────────┘
```
### Alerting Strategy
```
┌─────────────────────────────────────────────────────────────────┐
│ ALERTING LAYERS │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Technical │ Business │ Security │
│ │ │ │
│ • Error Rate │ • User Activity│ • Threat Detection │
│ • Response Time │ • Conversion │ • Access Violations │
│ • Memory Usage │ • Engagement │ • Anomalous Behavior │
│ • CPU Usage │ • Learning │ • Data Breaches │
│ • Disk Space │ • Quiz Completion│ • Compliance Violations │
│ • Network Latency│ • Content Usage│ • Authentication Failures │
└─────────────────┴─────────────────┴─────────────────────────────┘
```
---
## 🚀 FUTURE ARCHITECTURE
### Scalability Roadmap
```
┌─────────────────────────────────────────────────────────────────┐
│ EVOLUTION PATH │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Phase 1 │ Phase 2 │ Phase 3 │
│ (Current) │ (6 months) │ (1 year) │
│ │ │ │
│ • Firebase │ • Hybrid Cloud │ • Multi-Region │
│ • Single Region │ • Custom Backend│ • Edge Computing │
│ • Basic AI │ • Advanced AI │ • Federated Learning │
│ • Mobile/Web │ • Desktop Apps │ • AR/VR Support │
│ • Basic Analytics│• Advanced Analytics│• Predictive Analytics │
└─────────────────┴─────────────────┴─────────────────────────────┘
```
### Technology Evolution
```
┌─────────────────────────────────────────────────────────────────┐
│ TECHNOLOGY ROADMAP │
├─────────────────┬─────────────────┬─────────────────────────────┤
│ Frontend │ Backend │ AI/ML │
│ │ │ │
│ • Flutter Web │ • GraphQL API │ • Custom Models │
│ • Desktop Apps │ • Microservices│ • Fine-tuned LLMs │
│ • AR/VR Support │ • Event Sourcing│ • Multi-modal AI │
│ • Voice UI │ • CQRS │ • Real-time Learning │
│ • Offline Mode │ • Distributed │ • Federated Learning │
│ • Progressive │ Systems │ • Edge AI │
│ Web Apps │ • Kubernetes │ • Custom Hardware │
└─────────────────┴─────────────────┴─────────────────────────────┘
```
---
## 📚 DOCUMENTATION ARCHITECTURE
### Documentation Structure
```
docs/
├── technical/ # Technical documentation
│ ├── api/ # API documentation
│ ├── architecture/ # Architecture docs
│ ├── database/ # Database docs
│ └── security/ # Security docs
├── user/ # User documentation
│ ├── student/ # Student guides
│ ├── teacher/ # Teacher guides
│ └── admin/ # Admin guides
├── development/ # Development docs
│ ├── setup/ # Setup guides
│ ├── contributing/ # Contributing guide
│ ├── testing/ # Testing guide
│ └── deployment/ # Deployment guide
└── business/ # Business documentation
├── requirements/ # Requirements
├── roadmap/ # Product roadmap
└── metrics/ # Business metrics
```
---
## 🎯 CONCLUSION
The AI Study Assistant architecture is designed to be:
- **Scalable**: Handle growth in users and content
- **Maintainable**: Clean, well-documented code
- **Secure**: Multi-layered security approach
- **Performant**: Optimized for educational workloads
- **Accessible**: Universal design principles
- **Innovative**: Cutting-edge AI/ML integration
This architecture provides a solid foundation for delivering high-quality educational experiences while maintaining flexibility for future enhancements and scaling requirements.
---
*Last Updated: 2026-05-06*
*Version: 1.0.0*
*Architecture Team: System Design & Engineering*

2231
docs/BACKEND_MVP_TASKS.md Normal file

File diff suppressed because it is too large Load Diff

413
docs/CHANGELOG.md Normal file
View File

@@ -0,0 +1,413 @@
# Change Log - AI Study Assistant
## 📝 VERSION HISTORY
---
## [Unreleased]
### Planned Features
- Voice interaction capabilities
- Advanced analytics dashboard
- Multi-language support expansion
- Offline mode enhancements
- Integration with learning management systems
### Bug Fixes
- Fixed memory leak in chat interface
- Improved error handling in quiz submission
- Optimized image loading performance
- Enhanced security token validation
---
## [1.0.0] - 2026-05-06
### 🎉 Initial Release
#### Major Features
- **AI-Powered Tutoring System**
- Multiple interaction modes (Explanation, Tutor, Exploration, Remedial)
- Context-aware responses using RAG technology
- Real-time feedback and rating system
- Support for mathematics, science, and language learning
- **Interactive Quiz System**
- Multiple question types (Multiple Choice, True/False, Fill in the Blank)
- Adaptive difficulty adjustment
- Immediate feedback and explanations
- Progress tracking and analytics
- **Comprehensive Content Management**
- Support for PDF, DOCX, video, and audio files
- Automatic content processing and chunking
- Metadata extraction and classification
- Teacher-controlled content approval workflow
- **Advanced Learning Analytics**
- Concept mastery tracking
- Spaced repetition scheduling
- Personalized learning recommendations
- Detailed progress reports for students and teachers
- **Modern User Interface**
- Clean, modern design with EPV school colors
- Responsive design for mobile, tablet, and web
- Smooth animations and transitions
- Accessibility features and dark mode support
#### Technical Implementation
- **Frontend**: Flutter 3.41.0 with Riverpod state management
- **Backend**: Firebase Cloud Functions with TypeScript
- **Database**: Firestore with comprehensive security rules
- **AI/ML**: RAG engine with vector search and LLM integration
- **Authentication**: Firebase Auth with multi-provider support
- **Storage**: Firebase Storage with automatic optimization
#### Security Features
- End-to-end encryption for sensitive data
- Role-based access control (Student, Teacher, Admin)
- Comprehensive audit logging
- GDPR and FERPA compliance
- Rate limiting and DDoS protection
#### Performance Optimizations
- Lazy loading for images and content
- Efficient caching strategies
- Optimized database queries with proper indexing
- Memory management and garbage collection
- API response time optimization
#### Platform Support
- **Mobile**: Android (API 21+) and iOS (iOS 12+)
- **Web**: Modern browsers with CanvasKit rendering
- **Desktop**: Progressive Web App support
- **Offline**: Limited offline functionality with caching
---
## 📋 Development Milestones
### Phase 1: Foundation (Weeks 1-4)
- ✅ Project setup and architecture
- ✅ Firebase configuration
- ✅ Authentication system
- ✅ Basic UI components
- ✅ Core data models
### Phase 2: Core Features (Weeks 5-8)
- ✅ AI tutoring system
- ✅ Quiz functionality
- ✅ Content management
- ✅ Learning analytics
- ✅ Performance optimization
### Phase 3: Enhancement (Weeks 9-12)
- ✅ Advanced UI/UX improvements
- ✅ Security hardening
- ✅ Testing and quality assurance
- ✅ Documentation completion
- ✅ Production deployment
---
## 🔧 Technical Specifications
### Dependencies
#### Flutter Dependencies
```yaml
flutter:
sdk: '>=3.11.5 <4.0.0'
dependencies:
flutter_riverpod: ^2.4.9
go_router: ^12.1.3
firebase_core: ^2.24.2
firebase_auth: ^4.15.3
cloud_firestore: ^4.13.6
firebase_storage: ^11.5.6
firebase_analytics: ^10.7.4
firebase_crashlytics: ^3.4.8
cached_network_image: ^3.3.0
google_fonts: ^6.1.0
flutter_animate: ^4.2.0+1
```
#### Backend Dependencies
```json
{
"dependencies": {
"@google-cloud/firestore": "^6.7.0",
"@google-cloud/storage": "^6.11.0",
"firebase-admin": "^11.10.1",
"firebase-functions": "^4.4.1",
"openai": "^4.20.1",
"anthropic": "^0.6.3",
"sentence-transformers": "^0.0.1",
"faiss-node": "^0.5.1",
"express": "^4.18.2",
"cors": "^2.8.5",
"helmet": "^7.0.0"
}
}
```
#### RAG Engine Dependencies
```python
dependencies = [
"numpy>=1.21.0",
"faiss-cpu>=1.7.4",
"sentence-transformers>=2.2.2",
"torch>=1.12.0",
"openai>=1.0.0",
"anthropic>=0.3.0",
"nltk>=3.7",
"spacy>=3.4.0",
]
```
### System Requirements
#### Mobile Requirements
- **Android**: API 21+ (Android 5.0+)
- **iOS**: iOS 12.0+
- **RAM**: Minimum 2GB, Recommended 4GB
- **Storage**: Minimum 100MB free space
- **Network**: Internet connection required for full functionality
#### Web Requirements
- **Browser**: Chrome 90+, Firefox 88+, Safari 14+, Edge 90+
- **RAM**: Minimum 4GB
- **JavaScript**: Enabled
- **Cookies**: Enabled for authentication
- **HTTPS**: Required for secure connections
#### Backend Requirements
- **Node.js**: Version 18.x LTS
- **Python**: Version 3.9+
- **Firebase**: Latest version
- **Memory**: Minimum 2GB RAM
- **Storage**: Minimum 10GB available
---
## 🔄 Migration Guide
### From Previous Versions
#### Version 0.9.x to 1.0.0
- **Breaking Changes**: None
- **New Features**: All features listed above
- **Migration Steps**: No migration required for new installations
- **Data Migration**: Automatic for existing users
#### Configuration Updates
```bash
# Update Flutter dependencies
flutter pub get
# Update Firebase configuration
firebase deploy --only functions
# Clear cache
flutter clean
```
---
## 🐛 Known Issues
### Current Issues
- **Issue**: Memory usage increases with prolonged chat sessions
- **Status**: Under investigation
- **Workaround**: Restart app periodically
- **Fix Planned**: Version 1.1.0
- **Issue**: Some PDF files may not process correctly
- **Status**: Investigating
- **Workaround**: Convert to DOCX or use alternative format
- **Fix Planned**: Version 1.0.1
### Resolved Issues
- ✅ Fixed: Login issues on some Android devices
- ✅ Fixed: Quiz submission failures
- ✅ Fixed: Image loading performance
- ✅ Fixed: Memory leak in content viewer
---
## 🚀 Upcoming Features
### Version 1.1.0 (Planned: Q3 2026)
- **Voice Interaction**: Voice input and output for accessibility
- **Advanced Analytics**: More detailed learning insights
- **Offline Mode**: Enhanced offline functionality
- **Multi-Language**: Support for additional languages
- **Integration**: LMS integration capabilities
### Version 1.2.0 (Planned: Q4 2026)
- **Collaborative Learning**: Study groups and peer tutoring
- **Gamification**: Points, badges, and leaderboards
- **Parent Portal**: Parent access to student progress
- **Advanced AI**: More sophisticated tutoring algorithms
- **Video Chat**: Live video tutoring sessions
---
## 📊 Usage Statistics
### Platform Adoption
- **Total Users**: 0 (Launch day)
- **Active Schools**: 1 (Escola Profissional de Vila do Conde)
- **Content Uploaded**: 0 documents
- **Questions Asked**: 0
- **Quizzes Completed**: 0
### Performance Metrics
- **Average Response Time**: Target < 500ms
- **App Load Time**: Target < 3 seconds
- **Uptime**: Target > 99.5%
- **Error Rate**: Target < 1%
---
## 🤝 Contributing to Change Log
### How to Contribute
1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Update this change log
5. Submit a pull request
### Change Log Format
```markdown
## [Version] - YYYY-MM-DD
### [Category]
- **Description of change**
- **Issue**: #123 (if applicable)
- **Breaking**: Yes/No (if applicable)
```
### Categories
- **Added**: New features
- **Changed**: Modifications to existing features
- **Deprecated**: Features marked for removal
- **Removed**: Features removed
- **Fixed**: Bug fixes
- **Security**: Security-related changes
---
## 📞 Support
### Reporting Issues
- **GitHub Issues**: [Create new issue](https://github.com/your-org/teachit/issues)
- **Email**: support@teachit.app
- **In-App**: Use the feedback feature
### Feature Requests
- **GitHub Discussions**: [Start discussion](https://github.com/your-org/teachit/discussions)
- **Email**: features@teachit.app
- **User Voice**: In-app feature request system
### Security Issues
- **Email**: security@teachit.app
- **PGP Key**: Available on request
- **Response Time**: Within 24 hours
---
## 📚 Documentation Updates
### Related Documentation
- [User Guide](USER_GUIDE.md)
- [API Documentation](API_DOCUMENTATION.md)
- [Security Guide](SECURITY_GUIDE.md)
- [Performance Guide](PERFORMANCE_GUIDE.md)
- [Development Setup](DEVELOPMENT_SETUP.md)
### Documentation Changes
- **2026-05-06**: Initial documentation creation
- **2026-05-06**: Updated with comprehensive guides
---
## 📈 Release Schedule
### Release Cadence
- **Major Releases**: Every 6 months
- **Minor Releases**: Every month
- **Patch Releases**: As needed for critical fixes
### Release Process
1. **Development**: Feature development in feature branches
2. **Testing**: Comprehensive testing in staging
3. **Review**: Code review and security audit
4. **Deployment**: Gradual rollout with monitoring
5. **Monitoring**: Post-release performance monitoring
### Version Numbering
- **Major**: X.0.0 - Significant new features
- **Minor**: X.Y.0 - New features and improvements
- **Patch**: X.Y.Z - Bug fixes and security updates
---
## 🏆 Recognition
### Development Team
- **Frontend Team**: Flutter development and UI/UX
- **Backend Team**: Firebase functions and API development
- **AI Team**: RAG engine and LLM integration
- **QA Team**: Testing and quality assurance
- **DevOps Team**: Deployment and infrastructure
### Special Thanks
- **Escola Profissional de Vila do Conde**: Beta testing partner
- **Firebase Team**: Platform and support
- **Flutter Community**: Tools and libraries
- **OpenAI**: AI model integration
- **Anthropic**: AI model integration
---
## 📄 License
### Software License
- **Type**: MIT License
- **Copyright**: 2026 AI Study Assistant Team
- **Permissions**: Commercial use, modification, distribution
- **Conditions**: Include license and copyright notice
### Third-Party Licenses
- **Flutter**: BSD 3-Clause License
- **Firebase**: Google Terms of Service
- **OpenAI**: OpenAI Terms of Use
- **Anthropic**: Anthropic Terms of Service
---
## 🔮 Future Vision
### Long-term Goals
- **Global Reach**: Support for schools worldwide
- **AI Advancement**: State-of-the-art educational AI
- **Personalization**: Hyper-personalized learning experiences
- **Accessibility**: Universal design for learning
- **Innovation**: Continuous improvement and innovation
### Strategic Initiatives
- **Research Partnership**: Educational research collaborations
- **Open Source**: Community-driven development
- **Ecosystem**: Integration with educational tools
- **Sustainability**: Long-term platform sustainability
- **Impact**: Measurable educational outcomes
---
*Last Updated: 2026-05-06*
*Version: 1.0.0*
*Release Team: Product & Engineering*

695
docs/CONTRIBUTING.md Normal file
View File

@@ -0,0 +1,695 @@
# Contributing Guidelines - AI Study Assistant
## 🤝 HOW TO CONTRIBUTE
---
## 📋 OVERVIEW
Thank you for your interest in contributing to the AI Study Assistant! This guide provides comprehensive information on how to contribute to our project, including development workflows, coding standards, and community guidelines.
---
## 🚀 GETTING STARTED
### Prerequisites
- **Git**: Version 2.30 or higher
- **Flutter**: Version 3.41.0+
- **Node.js**: Version 18.x LTS
- **Python**: Version 3.9+ (for RAG engine)
- **Firebase CLI**: Latest version
- **Code Editor**: VS Code recommended
### Development Environment Setup
1. Fork the repository
2. Clone your fork locally
3. Set up development environment
4. Install dependencies
5. Run tests to verify setup
```bash
# Clone your fork
git clone https://github.com/YOUR_USERNAME/teachit.git
cd teachit
# Install Flutter dependencies
flutter pub get
# Install Node.js dependencies
cd functions && npm install && cd ..
# Install Python dependencies
cd rag_engine && pip install -r requirements.txt && cd ..
# Run tests
flutter test
npm test
pytest tests/
```
---
## 🌟 CONTRIBUTION TYPES
### Code Contributions
- **Bug Fixes**: Resolve reported issues
- **New Features**: Add functionality
- **Performance**: Optimize existing code
- **Documentation**: Improve documentation
- **Testing**: Add or improve tests
### Non-Code Contributions
- **Bug Reports**: Report issues with detailed information
- **Feature Requests**: Suggest new features
- **Documentation**: Improve guides and documentation
- **Community**: Help others in discussions
- **Translation**: Help with internationalization
---
## 🔄 DEVELOPMENT WORKFLOW
### Branch Strategy
```
main # Production branch
├── develop # Development branch
├── feature/feature-name # Feature branches
├── hotfix/issue-number # Hotfix branches
└── release/version # Release branches
```
### Workflow Steps
1. **Create Issue**: Discuss changes in an issue first
2. **Create Branch**: Create feature branch from `develop`
3. **Develop**: Implement changes with proper testing
4. **Test**: Ensure all tests pass
5. **Submit PR**: Create pull request to `develop`
6. **Review**: Get code review and address feedback
7. **Merge**: Merge after approval
8. **Deploy**: Automatic deployment to staging
### Branch Naming Conventions
- **Feature**: `feature/description-of-feature`
- **Bug Fix**: `fix/issue-number-description`
- **Hotfix**: `hotfix/issue-number-description`
- **Release**: `release/version-number`
- **Documentation**: `docs/description-of-change`
---
## 📝 CODING STANDARDS
### General Guidelines
- **Consistency**: Follow existing code style
- **Clarity**: Write clear, readable code
- **Comments**: Add comments for complex logic
- **Testing**: Write tests for new functionality
- **Documentation**: Update relevant documentation
### Flutter/Dart Standards
#### Code Style
```dart
// Use meaningful variable names
final List<LearningConcept> concepts = [];
// Use const for compile-time constants
const int maxRetries = 3;
// Use proper naming conventions
class LearningAnalytics {
Future<void> trackProgress() async {
// Implementation
}
}
// Use async/await for asynchronous operations
Future<void> loadData() async {
final data = await apiService.getData();
processData(data);
}
```
#### Widget Structure
```dart
class CustomWidget extends StatelessWidget {
final String title;
final VoidCallback? onTap;
const CustomWidget({
required this.title,
this.onTap,
Key? key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
child: Text(title),
);
}
}
```
#### State Management
```dart
// Use Riverpod providers
final learningStateProvider = StateNotifierProvider<LearningStateNotifier, LearningState>(
(ref) => LearningStateNotifier(),
);
// Use proper provider naming
final authProvider = Provider<AuthService>((ref) => AuthService());
```
### TypeScript/Node.js Standards
#### Code Style
```typescript
// Use interfaces for type definitions
interface User {
id: string;
email: string;
role: UserRole;
}
// Use proper error handling
async function getUser(id: string): Promise<User> {
try {
const user = await userRepository.findById(id);
if (!user) {
throw new Error('User not found');
}
return user;
} catch (error) {
console.error('Error fetching user:', error);
throw error;
}
}
// Use proper function naming
export class UserService {
async createUser(userData: CreateUserRequest): Promise<User> {
// Implementation
}
}
```
### Python Standards
#### Code Style
```python
# Use type hints
from typing import List, Optional
class VectorSearchService:
def __init__(self, dimension: int = 384) -> None:
self.dimension = dimension
def search(self, query: np.ndarray, k: int = 10) -> List[Tuple[int, float]]:
"""Search for similar vectors."""
# Implementation
pass
# Use proper docstrings
def process_text(text: str) -> ProcessedText:
"""
Process text for embedding.
Args:
text: The input text to process
Returns:
ProcessedText: The processed text object
"""
# Implementation
pass
```
---
## 🧪 TESTING GUIDELINES
### Test Structure
```
test/
├── unit/ # Unit tests
├── widget/ # Widget tests
├── integration/ # Integration tests
├── e2e/ # End-to-end tests
└── fixtures/ # Test data
```
### Flutter Testing
```dart
// Unit test example
void main() {
group('LearningStateNotifier', () {
test('should update learning state correctly', () async {
final notifier = LearningStateNotifier();
await notifier.updateProgress('mathematics', 0.8);
expect(notifier.state.mastery['mathematics'], equals(0.8));
});
test('should handle invalid input gracefully', () async {
final notifier = LearningStateNotifier();
expect(() => notifier.updateProgress('', -1.0), throwsA(isA<ArgumentError>));
});
});
}
// Widget test example
void main() {
testWidgets('LearningProgressCard displays correctly', (WidgetTester tester) async {
await tester.pumpWidget(
MaterialApp(
home: LearningProgressCard(
concept: 'Derivatives',
mastery: 0.75,
),
),
);
expect(find.text('Derivatives'), findsOneWidget);
expect(find.text('75%'), findsOneWidget);
});
}
```
### Backend Testing
```typescript
// Unit test example
describe('UserService', () => {
let userService: UserService;
let mockRepository: jest.Mocked<UserRepository>;
beforeEach(() => {
mockRepository = new MockUserRepository();
userService = new UserService(mockRepository);
});
it('should create user successfully', async () => {
const userData = {
email: 'test@example.com',
role: 'student',
};
const expectedUser = { id: '123', ...userData };
mockRepository.create.mockResolvedValue(expectedUser);
const result = await userService.createUser(userData);
expect(result).toEqual(expectedUser);
expect(mockRepository.create).toHaveBeenCalledWith(userData);
});
});
```
### Python Testing
```python
# Unit test example
import pytest
from unittest.mock import Mock, patch
class TestVectorSearchService:
def setup_method(self):
self.service = VectorSearchService(dimension=384)
self.mock_index = Mock()
self.service.index = self.mock_index
def test_search_returns_correct_results(self):
# Arrange
query = np.random.rand(384)
expected_results = [(1, 0.95), (2, 0.87)]
self.mock_index.search.return_value = (np.array([0.95, 0.87]), np.array([1, 2]))
# Act
results = self.service.search(query, k=2)
# Assert
assert len(results) == 2
assert results == expected_results
self.mock_index.search.assert_called_once()
```
---
## 📖 DOCUMENTATION STANDARDS
### Documentation Types
- **API Documentation**: Endpoint specifications
- **Code Comments**: Inline documentation
- **README Files**: Project and module documentation
- **User Guides**: End-user documentation
- **Developer Guides**: Technical documentation
### Writing Guidelines
- **Clear and Concise**: Use simple, clear language
- **Examples**: Include code examples
- **Structure**: Use proper headings and formatting
- **Consistency**: Follow existing documentation style
- **Accuracy**: Ensure information is up-to-date
### Code Comments
```dart
/// A service for managing learning analytics and progress tracking.
///
/// This service provides functionality to:
/// - Track student progress across concepts
/// - Calculate mastery levels
/// - Generate learning recommendations
///
/// Example:
/// ```dart
/// final analytics = LearningAnalyticsService();
/// await analytics.trackProgress('mathematics', 0.8);
/// ```
class LearningAnalyticsService {
/// The maximum number of concepts to track per student.
static const int maxConceptsPerStudent = 50;
/// Tracks progress for a specific concept.
///
/// [studentId] The unique identifier for the student
/// [concept] The concept being tracked
/// [mastery] The mastery level (0.0 to 1.0)
///
/// Throws [ArgumentError] if mastery is not in valid range
Future<void> trackProgress(
String studentId,
String concept,
double mastery
) async {
if (mastery < 0.0 || mastery > 1.0) {
throw ArgumentError('Mastery must be between 0.0 and 1.0');
}
// Implementation
}
}
```
---
## 🔍 CODE REVIEW PROCESS
### Review Criteria
- **Functionality**: Does the code work as expected?
- **Code Quality**: Is the code well-written and maintainable?
- **Testing**: Are there adequate tests?
- **Documentation**: Is the code properly documented?
- **Performance**: Is the code efficient?
- **Security**: Is the code secure?
### Review Guidelines
- **Be Constructive**: Provide helpful, specific feedback
- **Be Thorough**: Review all aspects of the code
- **Be Respectful**: Maintain a professional tone
- **Be Timely**: Respond to reviews promptly
### Pull Request Template
```markdown
## Description
Brief description of changes
## Type of Change
- [ ] Bug fix
- [ ] New feature
- [ ] Breaking change
- [ ] Documentation update
## Testing
- [ ] All tests pass
- [ ] New tests added
- [ ] Manual testing completed
## Checklist
- [ ] Code follows project style guidelines
- [ ] Self-review completed
- [ ] Documentation updated
- [ ] No breaking changes (or documented)
```
---
## 🐛 BUG REPORTING
### Bug Report Template
```markdown
## Bug Description
Clear and concise description of the bug
## Steps to Reproduce
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
## Expected Behavior
What you expected to happen
## Actual Behavior
What actually happened
## Screenshots
If applicable, add screenshots
## Environment
- OS: [e.g. iOS 15.0, Android 11, Windows 10]
- App Version: [e.g. 1.0.0]
- Browser: [e.g. Chrome 96.0]
- Device: [e.g. iPhone 12, Samsung Galaxy S21]
## Additional Context
Add any other context about the problem here
```
### Bug Severity Levels
- **Critical**: Blocks core functionality
- **High**: Significant impact on user experience
- **Medium**: Minor issues with workarounds
- **Low**: Cosmetic or minor issues
---
## 💡 FEATURE REQUESTS
### Feature Request Template
```markdown
## Feature Description
Clear and concise description of the feature
## Problem Statement
What problem does this feature solve?
## Proposed Solution
How should this feature work?
## Alternatives
What other solutions have you considered?
## Additional Context
Add any other context about the feature here
```
### Feature Priority Levels
- **High**: Core functionality needed
- **Medium**: Important enhancement
- **Low**: Nice to have feature
---
## 🌍 INTERNATIONALIZATION
### Translation Guidelines
- **Languages**: Currently supporting English, Portuguese, Spanish
- **Translation Files**: Located in `lib/l10n/`
- **Translation Keys**: Use descriptive keys
- **Context**: Provide context for translators
### Adding New Language
1. Create new `.arb` file in `lib/l10n/`
2. Translate all keys from existing files
3. Update `app_localizations.dart`
4. Test with new language
---
## 🔐 SECURITY GUIDELINES
### Security Considerations
- **No Hardcoded Secrets**: Use environment variables
- **Input Validation**: Validate all user inputs
- **Authentication**: Use proper authentication
- **Authorization**: Implement proper access controls
- **Data Protection**: Encrypt sensitive data
### Reporting Security Issues
- **Private**: Report security issues privately
- **Email**: security@teachit.app
- **PGP Key**: Available on request
- **Response**: Within 24 hours
---
## 📊 PERFORMANCE GUIDELINES
### Performance Considerations
- **Efficiency**: Write efficient code
- **Memory**: Manage memory usage
- **Network**: Optimize network requests
- **UI**: Maintain smooth UI performance
- **Battery**: Consider battery usage
### Performance Testing
- **Profiling**: Use profiling tools
- **Benchmarks**: Measure performance
- **Monitoring**: Track performance metrics
- **Optimization**: Optimize bottlenecks
---
## 🤝 COMMUNITY GUIDELINES
### Code of Conduct
- **Respect**: Treat everyone with respect
- **Inclusive**: Be inclusive and welcoming
- **Professional**: Maintain professional conduct
- **Helpful**: Help others learn and grow
### Communication Channels
- **GitHub Issues**: For bug reports and feature requests
- **GitHub Discussions**: For general discussions
- **Discord**: For real-time chat (if available)
- **Email**: For private communications
### Getting Help
- **Documentation**: Check documentation first
- **Issues**: Search existing issues
- **Discussions**: Ask in discussions
- **Maintainers**: Contact maintainers directly
---
## 📋 RELEASE PROCESS
### Release Checklist
- [ ] All tests pass
- [ ] Documentation updated
- [ ] Version number updated
- [ ] Change log updated
- [ ] Security review completed
- [ ] Performance testing completed
- [ ] Integration testing completed
### Release Types
- **Major**: Significant new features (X.0.0)
- **Minor**: New features and improvements (X.Y.0)
- **Patch**: Bug fixes and security updates (X.Y.Z)
### Version Numbering
- **Semantic Versioning**: Follow SemVer
- **Breaking Changes**: Increment major version
- **New Features**: Increment minor version
- **Bug Fixes**: Increment patch version
---
## 🏆 RECOGNITION
### Contributor Recognition
- **Contributors List**: All contributors listed
- **Release Notes**: Contributors mentioned in release notes
- **Community**: Recognition in community forums
- **Swag**: Available for significant contributions
### Types of Contributions
- **Code**: Code contributions
- **Documentation**: Documentation improvements
- **Design**: UI/UX contributions
- **Testing**: Testing and quality assurance
- **Community**: Community support and help
---
## 📚 RESOURCES
### Learning Resources
- [Flutter Documentation](https://flutter.dev/docs)
- [Firebase Documentation](https://firebase.google.com/docs)
- [TypeScript Handbook](https://www.typescriptlang.org/docs/)
- [Python Style Guide](https://pep8.org/)
- [Git Handbook](https://git-scm.com/doc)
### Development Tools
- **IDE**: VS Code with Flutter and Dart extensions
- **Testing**: Flutter Test, Jest, Pytest
- **Linting**: Dart Analysis, ESLint, Flake8
- **Formatting**: Dart Format, Prettier, Black
- **Debugging**: Flutter DevTools, Chrome DevTools
### Community Resources
- [Flutter Community](https://flutter.dev/community)
- [Firebase Community](https://firebase.google.com/community)
- [Stack Overflow](https://stackoverflow.com/questions/tagged/teachit)
- [Discord Server](https://discord.gg/teachit)
---
## 📞 GETTING HELP
### Ways to Get Help
- **Documentation**: Check existing documentation
- **Issues**: Search existing issues
- **Discussions**: Ask in GitHub discussions
- **Email**: Contact maintainers at dev@teachit.app
- **Discord**: Join our Discord server
### When to Ask for Help
- **Setup Issues**: Problems with development environment
- **Code Issues**: Help with code implementation
- **Testing**: Help with writing tests
- **Documentation**: Help with documentation
- **Review**: Request code review
---
## ✅ CONTRIBUTOR CHECKLIST
### Before Contributing
- [ ] Read contributing guidelines
- [ ] Set up development environment
- [ ] Understand project structure
- [ ] Check existing issues and discussions
- [ ] Choose appropriate contribution type
### During Development
- [ ] Follow coding standards
- [ ] Write tests for new code
- [ ] Update documentation
- [ ] Test thoroughly
- [ ] Keep commits small and focused
### Before Submitting
- [ ] Run all tests
- [ ] Update change log
- [ ] Write clear commit messages
- [ ] Create descriptive pull request
- [ ] Address review feedback
---
## 🎉 THANK YOU
Thank you for contributing to the AI Study Assistant! Your contributions help make educational technology better for students and teachers worldwide.
Every contribution, no matter how small, is valued and appreciated. Together, we're building a platform that makes learning more accessible, engaging, and effective for everyone.
---
*Last Updated: 2026-05-06*
*Version: 1.0.0*
*Community Team: Open Source & Collaboration*

1217
docs/DEPLOYMENT_GUIDE.md Normal file

File diff suppressed because it is too large Load Diff

798
docs/DEVELOPMENT_SETUP.md Normal file
View File

@@ -0,0 +1,798 @@
# Development Setup Guide - AI Study Assistant
## 🛠️ COMPLETE DEVELOPMENT ENVIRONMENT SETUP
---
## 📋 OVERVIEW
This guide provides step-by-step instructions for setting up a complete development environment for the AI Study Assistant project, including Flutter frontend, Node.js backend, Firebase services, and development tools.
---
## 🎯 PREREQUISITES
### System Requirements
- **Operating System**: Windows 10+, macOS 10.15+, or Ubuntu 18.04+
- **RAM**: Minimum 8GB, recommended 16GB
- **Storage**: Minimum 20GB free space
- **Internet**: Stable connection for Firebase and API access
### Required Software
- **Git**: Version 2.30+
- **Node.js**: Version 18.x LTS
- **Flutter**: Version 3.41.0+
- **Python**: Version 3.9+ (for RAG engine)
- **Firebase CLI**: Latest version
- **Docker**: Optional, for containerized development
---
## 📥 INITIAL SETUP
### 1. Clone Repository
```bash
git clone https://github.com/your-org/teachit.git
cd teachit
```
### 2. Install Development Tools
```bash
# Install Flutter
# Download from https://flutter.dev/docs/get-started/install
# Add to PATH and run:
flutter doctor
# Install Node.js
# Download from https://nodejs.org/
# Verify installation:
node --version
npm --version
# Install Python
# Download from https://python.org/
# Verify installation:
python --version
# Install Firebase CLI
npm install -g firebase-tools
firebase --version
# Install Git
# Download from https://git-scm.com/
# Verify installation:
git --version
```
### 3. Environment Configuration
```bash
# Create environment files
cp .env.example .env.development
cp .env.example .env.staging
cp .env.example .env.production
# Configure development environment
# Edit .env.development with your local settings
```
---
## 📱 FLUTTER SETUP
### 1. Flutter Environment
```bash
# Check Flutter installation
flutter doctor -v
# Install required Flutter tools
flutter pub get
# Install iOS dependencies (macOS only)
cd ios && pod install && cd ..
# Install Android dependencies
# Open android/ in Android Studio and let it setup
```
### 2. IDE Configuration
#### VS Code Setup
```bash
# Install VS Code extensions
code --install-extension Dart-Code.flutter
code --install-extension Dart-Code.dart-code
code --install-extension ms-vscode.vscode-json
code --install-extension bradlc.vscode-tailwindcss
code --install-extension ms-vscode.vscode-eslint
code --install-extension esbenp.prettier-vscode
```
#### VS Code Settings
```json
// .vscode/settings.json
{
"dart.flutterSdkPath": "flutter",
"dart.debugExternalLibraries": false,
"dart.debugSdkLibraries": false,
"files.associations": {
"*.arb": "json"
},
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true
}
}
```
#### Android Studio Setup
1. Install Flutter plugin
2. Install Dart plugin
3. Configure SDK paths
4. Setup Android emulator
5. Enable hot reload
### 3. Flutter Configuration
```bash
# Create local properties
echo "flutter.sdk=/path/to/flutter" > local.properties
# Configure Firebase for Flutter
flutter pub add firebase_core
flutter pub add firebase_auth
flutter pub add cloud_firestore
flutter pub add firebase_storage
flutter pub add firebase_analytics
# Download Firebase config files
# Place google-services.json in android/app/
# Place GoogleService-Info.plist in ios/Runner/
```
### 4. Run Flutter App
```bash
# Run on web
flutter run -d chrome --web-renderer canvaskit
# Run on Android
flutter run -d android
# Run on iOS
flutter run -d ios
# Run on all available devices
flutter run -d all
```
---
## ⚡ BACKEND SETUP
### 1. Node.js Environment
```bash
cd functions
# Install dependencies
npm install
# Install global packages
npm install -g nodemon
npm install -g typescript
npm install -g ts-node
# Verify installation
node --version
npm --version
```
### 2. Firebase Functions Setup
```bash
# Initialize Firebase functions
firebase init functions
# Select TypeScript
# Select ESLint
# Configure npm
# Install dependencies
```
### 3. Environment Variables
```bash
# Create .env file in functions/
cp .env.example .env
# Configure environment variables
# OPENAI_API_KEY=your_openai_api_key
# ANTHROPIC_API_KEY=your_anthropic_api_key
# FIREBASE_PROJECT_ID=teachit-dev-12345
# NODE_ENV=development
```
### 4. Firebase Functions Configuration
```bash
# Set Firebase config
firebase functions:config:set \
openai.api_key=your_openai_api_key \
anthropic.api_key=your_anthropic_api_key \
environment=development
# Deploy functions (development)
firebase deploy --only functions --project teachit-dev-12345
```
### 5. Local Development Server
```bash
# Start local functions
npm run serve
# Start with hot reload
npm run dev
# Start with debugging
npm run debug
```
---
## 🔥 FIREBASE SETUP
### 1. Firebase Projects
Create three Firebase projects:
- **Development**: `teachit-dev-12345`
- **Staging**: `teachit-staging-12345`
- **Production**: `teachit-prod-12345`
### 2. Firebase CLI Configuration
```bash
# Login to Firebase
firebase login
# Use development project
firebase use teachit-dev-12345
# List projects
firebase projects:list
# Switch projects
firebase use teachit-staging-12345
```
### 3. Firebase Services Setup
```bash
# Enable required services
firebase auth --enable
firebase firestore:databases:create
firebase storage:buckets:create teachit-content
# Deploy security rules
firebase deploy --only firestore:rules
firebase deploy --only storage:rules
# Deploy indexes
firebase deploy --only firestore:indexes
```
### 4. Firebase Emulators
```bash
# Start emulators
firebase emulators:start
# Start specific emulators
firebase emulators:start --only firestore,auth,functions
# Start with UI
firebase emulators:start --ui
# Import test data
firebase emulators:import --project teachit-dev-12345 test-data/
```
---
## 🤖 RAG ENGINE SETUP
### 1. Python Environment
```bash
# Create virtual environment
python -m venv rag_env
# Activate virtual environment
# Windows
rag_env\Scripts\activate
# macOS/Linux
source rag_env/bin/activate
# Install dependencies
pip install -r requirements.txt
# Install development dependencies
pip install pytest pytest-asyncio black flake8 mypy
```
### 2. RAG Engine Configuration
```bash
cd rag_engine
# Create configuration file
cp config/default.yaml config/local.yaml
# Edit local.yaml with your settings
# Update API keys and paths
```
### 3. Vector Database Setup
```bash
# Install FAISS
pip install faiss-cpu
# Or with GPU support
pip install faiss-gpu
# Install sentence-transformers
pip install sentence-transformers
# Download models
python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
```
### 4. Run RAG Engine
```bash
# Start development server
python src/main.py
# Run with specific configuration
python src/main.py --config local
# Run tests
pytest tests/
```
---
## 🗄️ DATABASE SETUP
### 1. Firestore Database
```bash
# Create database
firebase firestore:databases:create
# Set up collections
firebase firestore:databases:create --database "teachit-db"
# Import schema
firebase firestore:import schema.json
```
### 2. Local Development Data
```bash
# Create test data
node scripts/create-test-data.js
# Import to emulator
firebase emulators:import --project teachit-dev-12345 test-data/
# Export data
firebase emulators:export --project teachit-dev-12345 export-data/
```
### 3. Database Indexes
```bash
# Create indexes
firebase deploy --only firestore:indexes
# Check index status
firebase firestore:indexes:list
# Monitor index creation
firebase firestore:indexes:describe
```
---
## 🧪 TESTING SETUP
### 1. Flutter Testing
```bash
# Run unit tests
flutter test
# Run widget tests
flutter test test/widget/
# Run integration tests
flutter test integration_test/
# Generate coverage
flutter test --coverage
genhtml coverage/lcov.info -o coverage/html
```
### 2. Backend Testing
```bash
cd functions
# Run unit tests
npm test
# Run integration tests
npm run test:integration
# Run with coverage
npm run test:coverage
# Run tests in watch mode
npm run test:watch
```
### 3. RAG Engine Testing
```bash
cd rag_engine
# Run unit tests
pytest tests/unit/
# Run integration tests
pytest tests/integration/
# Run with coverage
pytest --cov=src tests/
# Run performance tests
pytest tests/performance/
```
---
## 🔧 DEVELOPMENT TOOLS
### 1. Git Configuration
```bash
# Configure Git
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
# Set up Git hooks
cp scripts/pre-commit .git/hooks/
chmod +x .git/hooks/pre-commit
# Configure Git aliases
git config --global alias.st status
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.cm commit
```
### 2. Code Quality Tools
```bash
# Flutter
flutter analyze
dart format --set-exit-if-changed .
# Node.js
npm run lint
npm run format
# Python
black src/
flake8 src/
mypy src/
```
### 3. Development Scripts
```bash
# Make scripts executable
chmod +x scripts/*.sh
# Run setup script
./scripts/setup.sh
# Run development server
./scripts/dev.sh
# Run tests
./scripts/test.sh
```
---
## 📱 DEVICE SETUP
### 1. Android Setup
```bash
# Enable USB debugging
# Settings > About phone > Tap "Build number" 7 times
# Settings > Developer options > Enable USB debugging
# Verify device connection
flutter devices
# Run on device
flutter run -d <device_id>
```
### 2. iOS Setup (macOS only)
```bash
# Install Xcode
xcode-select --install
# Setup iOS simulator
open -a Simulator
# Verify iOS setup
flutter devices
# Run on simulator
flutter run -d ios
```
### 3. Web Setup
```bash
# Enable web platform
flutter config --enable-web
# Run on Chrome
flutter run -d chrome
# Run with specific renderer
flutter run -d chrome --web-renderer canvaskit
```
---
## 🔍 DEBUGGING SETUP
### 1. Flutter Debugging
```bash
# Debug with breakpoints
flutter run --debug
# Profile app
flutter run --profile
# Debug specific file
flutter run --debug --target=test/debug_test.dart
# Hot reload
flutter run --hot
```
### 2. Backend Debugging
```bash
# Debug functions
firebase functions:shell
# Debug with VS Code
# Launch configuration in .vscode/launch.json
# Console logging
firebase functions:log
```
### 3. Network Debugging
```bash
# Monitor network requests
# Use Chrome DevTools
# Use Flutter Inspector
# Debug API calls
curl -H "Authorization: Bearer <token>" https://api.teachit.app/health
```
---
## 📊 MONITORING SETUP
### 1. Local Monitoring
```bash
# Start monitoring dashboard
npm run monitor
# View logs
firebase functions:log
# Monitor Firestore
firebase firestore:databases:list
```
### 2. Performance Monitoring
```bash
# Flutter performance
flutter run --profile --trace-startup
# Backend performance
npm run benchmark
# RAG engine performance
python scripts/benchmark.py
```
---
## 🔄 WORKFLOW SETUP
### 1. Git Workflow
```bash
# Create feature branch
git checkout -b feature/new-feature
# Commit changes
git add .
git commit -m "feat: add new feature"
# Push branch
git push origin feature/new-feature
# Create pull request
# Use GitHub UI or CLI
```
### 2. Development Workflow
```bash
# Start development
./scripts/dev.sh
# Run tests
./scripts/test.sh
# Format code
./scripts/format.sh
# Deploy to staging
./scripts/deploy-staging.sh
```
### 3. Code Review Process
```bash
# Run pre-commit checks
./scripts/pre-commit.sh
# Create pull request
gh pr create --title "Add new feature" --body "Description"
# Request review
gh pr request-review @reviewer
# Merge after approval
gh pr merge --squash
```
---
## 🛠️ TROUBLESHOOTING
### Common Issues
#### Flutter Issues
```bash
# Flutter doctor issues
flutter doctor -v
# Clean build
flutter clean
flutter pub get
# Reset Flutter
git clean -xfd
flutter pub get
```
#### Firebase Issues
```bash
# Firebase login issues
firebase logout
firebase login
# Project access issues
firebase projects:list
firebase use <project-id>
# Emulator issues
firebase emulators:start --clean
```
#### Node.js Issues
```bash
# Node version issues
nvm use 18
nvm install 18
# Dependency issues
rm -rf node_modules package-lock.json
npm install
# Build issues
npm run build
npm run clean
```
#### Python Issues
```bash
# Virtual environment issues
deactivate
python -m venv rag_env
source rag_env/bin/activate
# Dependency issues
pip install --upgrade pip
pip install -r requirements.txt
```
### Performance Issues
```bash
# Flutter performance
flutter run --profile
flutter analyze
# Backend performance
npm run benchmark
firebase functions:log
# RAG engine performance
python -m cProfile src/main.py
```
---
## 📚 LEARNING RESOURCES
### Documentation
- [Flutter Documentation](https://flutter.dev/docs)
- [Firebase Documentation](https://firebase.google.com/docs)
- [Node.js Documentation](https://nodejs.org/docs)
- [Python Documentation](https://docs.python.org/3/)
### Tutorials
- [Flutter Codelabs](https://flutter.dev/codelabs)
- [Firebase Codelabs](https://firebase.google.com/codelabs)
- [Node.js Best Practices](https://github.com/goldbergyoni/nodebestpractices)
### Community
- [Flutter Community](https://flutter.dev/community)
- [Firebase Community](https://firebase.google.com/community)
- [Stack Overflow](https://stackoverflow.com/questions/tagged/flutter)
---
## 📞 SUPPORT
### Getting Help
- **Team Chat**: [Slack Channel]
- **Issue Tracker**: [GitHub Issues]
- **Documentation**: [Project Wiki]
- **Email**: dev-team@teachit.app
### Contributing
- Read [CONTRIBUTING.md](CONTRIBUTING.md)
- Follow [Code of Conduct](CODE_OF_CONDUCT.md)
- Submit [Pull Requests](https://github.com/your-org/teachit/pulls)
---
## ✅ VALIDATION CHECKLIST
### Setup Validation
- [ ] Flutter installed and configured
- [ ] Firebase CLI configured
- [ ] Node.js environment ready
- [ ] Python environment ready
- [ ] Database schema created
- [ ] Emulators running
- [ ] Tests passing
- [ ] Code quality tools working
- [ ] IDE configured
- [ ] Git workflow set up
### Development Validation
- [ ] Can run Flutter app locally
- [ ] Can run backend functions locally
- [ ] Can run RAG engine locally
- [ ] Can connect to Firebase emulators
- [ ] Can run tests successfully
- [ ] Can deploy to staging
- [ ] Can debug issues
- [ ] Can monitor performance
---
*Last Updated: 2026-05-06*
*Version: 1.0.0*
*DevOps Team: Infrastructure & Tools*

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

1682
docs/FRONTEND_MVP_TASKS.md Normal file

File diff suppressed because it is too large Load Diff

1517
docs/PERFORMANCE_GUIDE.md Normal file

File diff suppressed because it is too large Load Diff

2483
docs/PROJECT_OVERVIEW.md Normal file

File diff suppressed because it is too large Load Diff

3263
docs/RAG_ENGINE_MVP_TASKS.md Normal file

File diff suppressed because it is too large Load Diff

1497
docs/SECURITY_GUIDE.md Normal file

File diff suppressed because it is too large Load Diff

1483
docs/TESTING_STRATEGY.md Normal file

File diff suppressed because it is too large Load Diff

1456
docs/UI_DESIGN_GUIDELINES.md Normal file

File diff suppressed because it is too large Load Diff

629
docs/USER_GUIDE.md Normal file
View File

@@ -0,0 +1,629 @@
# User Guide - AI Study Assistant
## 📚 COMPLETE USER MANUAL
---
## 📋 OVERVIEW
Welcome to the AI Study Assistant! This comprehensive guide will help you master all the features of our intelligent learning platform, designed to enhance your educational experience with personalized AI tutoring, interactive quizzes, and progress tracking.
---
## 🚀 GETTING STARTED
### First Time Setup
#### 1. Download and Install
- **Android**: Download from Google Play Store
- **iOS**: Download from App Store
- **Web**: Visit [app.teachit.app](https://app.teachit.app)
#### 2. Create Account
1. Open the app
2. Tap "Sign Up"
3. Enter your school email
4. Create a secure password
5. Select your role (Student or Teacher)
6. Complete your profile
7. Verify your email
#### 3. Sign In
1. Open the app
2. Enter your email and password
3. Tap "Sign In"
4. Enable biometric authentication (optional)
---
## 👨‍🎓 STUDENT GUIDE
### Dashboard Overview
#### Home Screen
The dashboard is your main hub where you can:
- **Ask Tutor**: Get instant help with questions
- **Take Quiz**: Test your knowledge
- **View Progress**: Track your learning journey
- **Access Materials**: Browse study resources
#### Quick Actions
- **Ask Tutor**: Start a conversation with AI tutor
- **Quick Quiz**: Take a short quiz on recent topics
- **Study Materials**: Access uploaded content
- **Progress Report**: View detailed analytics
### 🤖 AI Tutoring
#### How to Ask Questions
1. Tap "Ask Tutor" from the dashboard
2. Type your question in the chat input
3. Select interaction mode:
- **Explanation**: Get detailed explanations
- **Tutor**: Guided learning with questions
- **Exploration**: Deep dive into topics
- **Remedial**: Address misconceptions
4. Tap the send button
5. Receive personalized response
#### Question Examples
- *"What is a derivative?"*
- *"How do I solve this equation: 2x + 5 = 15?"*
- *"Can you explain photosynthesis?"*
- *"Why is the sky blue?"*
#### Interaction Modes
**Explanation Mode**
- Provides detailed, comprehensive answers
- Includes examples and illustrations
- Best for learning new concepts
**Tutor Mode**
- Asks guiding questions
- Helps you discover answers yourself
- Builds critical thinking skills
**Exploration Mode**
- Goes beyond basic answers
- Connects to real-world applications
- Encourages curiosity
**Remedial Mode**
- Addresses specific misconceptions
- Provides step-by-step guidance
- Builds confidence
#### Feedback System
After each response, you can:
- **👍 Thumbs Up**: Mark as helpful
- **👎 Thumbs Down**: Mark as not helpful
- **💬 Comment**: Provide specific feedback
- **🔄 Regenerate**: Get alternative response
### 📝 Quiz System
#### Taking Quizzes
1. Tap "Take Quiz" from dashboard
2. Select quiz topic or difficulty
3. Review quiz instructions
4. Start answering questions
5. Submit when complete
6. Review results and feedback
#### Quiz Types
- **Quick Quiz**: 5 questions, 10 minutes
- **Topic Quiz**: 10-15 questions, 20 minutes
- **Comprehensive Quiz**: 20+ questions, 30 minutes
- **Adaptive Quiz**: Difficulty adjusts to your level
#### Question Types
- **Multiple Choice**: Select one correct answer
- **True/False**: Determine if statement is correct
- **Fill in the Blank**: Complete the statement
- **Matching**: Connect related items
#### Quiz Results
After completing a quiz, you'll see:
- **Score**: Percentage correct
- **Time Spent**: How long it took
- **Correct Answers**: Which questions you got right
- **Explanations**: Detailed feedback for each question
- **Recommendations**: What to study next
### 📊 Progress Tracking
#### Learning Dashboard
Track your progress with:
- **Overall Progress**: General learning journey
- **Subject Progress**: Performance by subject
- **Concept Mastery**: Understanding of specific topics
- **Study Streak**: Consecutive days of learning
- **Time Spent**: Total study time
#### Progress Metrics
- **Mastery Level**: How well you understand concepts
- **Improvement Rate**: Progress over time
- **Study Frequency**: How often you study
- **Quiz Performance**: Quiz scores and trends
#### Achievement System
Earn badges and rewards for:
- **First Steps**: Complete first quiz
- **Consistent Learner**: 7-day study streak
- **Knowledge Master**: Score 90%+ on quiz
- **Curious Mind**: Ask 50 questions
- **Helpful Feedback**: Provide 25 feedback responses
### 📚 Study Materials
#### Accessing Content
1. Tap "Study Materials" from dashboard
2. Browse by subject or topic
3. Filter by difficulty or grade level
4. Select material to view
5. Read, watch, or interact with content
#### Content Types
- **Text Documents**: Study notes and explanations
- **Videos**: Educational videos and tutorials
- **Interactive Content**: Engaging learning activities
- **Practice Problems**: Exercises and worksheets
#### Searching Content
- Use search bar to find specific topics
- Filter by subject, grade, or difficulty
- Sort by relevance, date, or popularity
- Save favorites for quick access
---
## 👩‍🏫 TEACHER GUIDE
### Teacher Dashboard
#### Overview
The teacher dashboard provides:
- **Class Management**: View and manage student progress
- **Content Upload**: Share learning materials
- **Quiz Creation**: Create custom assessments
- **Analytics**: Track class performance
- **Communication**: Interact with students
#### Quick Actions
- **Upload Content**: Add new learning materials
- **Create Quiz**: Design custom assessments
- **View Analytics**: Monitor class performance
- **Manage Students**: Track individual progress
### 📤 Content Management
#### Uploading Materials
1. Tap "Upload Content"
2. Select file type (PDF, DOCX, video, etc.)
3. Choose file from device
4. Add metadata:
- Subject
- Topic/Concept
- Grade level
- Difficulty level
- Description
5. Upload and process
6. Review processed chunks
7. Publish to class
#### Supported File Types
- **Documents**: PDF, DOCX, TXT
- **Presentations**: PPT, PPTX
- **Images**: JPG, PNG, GIF
- **Videos**: MP4, AVI, MOV
- **Audio**: MP3, WAV
#### Content Organization
- **Subjects**: Mathematics, Science, English, etc.
- **Topics**: Specific concepts within subjects
- **Grade Levels**: 9th, 10th, 11th, 12th grade
- **Difficulty**: Beginner, Intermediate, Advanced
#### Content Quality
The AI system processes uploaded content to:
- Extract key concepts
- Identify difficulty level
- Create searchable chunks
- Ensure quality and relevance
### 📝 Quiz Creation
#### Creating Quizzes
1. Tap "Create Quiz"
2. Set quiz details:
- Title
- Subject
- Topic
- Grade level
- Time limit
- Passing score
3. Add questions:
- Multiple choice
- True/false
- Fill in the blank
- Matching
4. Review and edit
5. Assign to class
6. Monitor results
#### Question Types
**Multiple Choice**
- Question text
- 4 answer options
- Correct answer selection
- Explanation for feedback
**True/False**
- Statement to evaluate
- Correct answer (True/False)
- Explanation
**Fill in the Blank**
- Sentence with blank
- Correct answer
- Alternative accepted answers
**Matching**
- Pairs of items to match
- Instructions for students
#### Quiz Settings
- **Time Limit**: 5-60 minutes
- **Passing Score**: 50-100%
- **Attempts Allowed**: 1-3 attempts
- **Show Results**: Immediate or delayed
- **Randomize Questions**: Yes/No
- **Randomize Answers**: Yes/No
### 📊 Class Analytics
#### Performance Overview
Monitor class performance with:
- **Average Scores**: Class quiz performance
- **Participation Rates**: Student engagement
- **Progress Trends**: Improvement over time
- **Concept Mastery**: Understanding of topics
#### Individual Student Tracking
- **Progress Reports**: Detailed student analytics
- **Learning Patterns**: Study habits and preferences
- **Struggling Areas**: Topics needing attention
- **Achievements**: Badges and milestones
#### Class Insights
- **Top Performers**: Students excelling
- **Needs Support**: Students requiring help
- **Popular Topics**: Most studied concepts
- **Difficult Concepts**: Challenging areas
#### Export Reports
- **Excel Export**: Detailed performance data
- **PDF Reports**: Summary analytics
- **Parent Reports**: Student progress for parents
- **Admin Reports**: School-wide analytics
### 👥 Student Management
#### Viewing Student Progress
1. Tap "Manage Students"
2. Select class or individual student
3. View:
- Overall progress
- Quiz performance
- Study habits
- Concept mastery
- Recent activity
#### Communication
- **Send Messages**: Direct communication with students
- **Provide Feedback**: Personalized guidance
- **Set Goals**: Learning objectives
- **Track Engagement**: Monitor participation
#### Group Management
- **Create Groups**: Organize students by level
- **Group Activities**: Collaborative learning
- **Peer Support**: Student mentoring
- **Team Quizzes**: Group assessments
---
## 🔧 SETTINGS & CUSTOMIZATION
### Profile Settings
#### Personal Information
- **Name**: Display name
- **Email**: Contact email
- **School**: School affiliation
- **Grade**: Current grade level
- **Avatar**: Profile picture
#### Preferences
- **Language**: Interface language
- **Theme**: Light/Dark mode
- **Notifications**: Alert preferences
- **Privacy**: Data sharing settings
#### Learning Preferences
- **Difficulty Level**: Adaptive learning
- **Study Reminders**: Daily notifications
- **Feedback Style**: Response preferences
- **Content Filters**: Topic preferences
### Notification Settings
#### Push Notifications
- **Quiz Reminders**: Study schedule alerts
- **Progress Updates**: Achievement notifications
- **New Content**: Material availability
- **Messages**: Communication alerts
#### Email Notifications
- **Weekly Progress**: Learning summaries
- **Class Updates**: Teacher communications
- **System Updates**: Platform changes
- **Security Alerts**: Account security
### Accessibility Features
#### Visual Settings
- **Font Size**: Adjust text size
- **High Contrast**: Enhanced visibility
- **Color Blind Mode**: Accessible colors
- **Large Buttons**: Easier interaction
#### Audio Settings
- **Text-to-Speech**: Audio content
- **Volume Control**: Sound levels
- **Speed Adjustment**: Playback speed
- **Audio Descriptions**: Visual content
#### Learning Support
- **Extended Time**: Additional quiz time
- **Simplified Interface**: Reduced complexity
- **Reading Support**: Text assistance
- **Alternative Input**: Voice commands
---
## 🎯 LEARNING BEST PRACTICES
### Effective Study Habits
#### Daily Routine
- **Consistent Schedule**: Study at same time daily
- **Short Sessions**: 20-30 minute focused periods
- **Regular Breaks**: 5-minute breaks between sessions
- **Review Progress**: Check achievements daily
#### Question Asking
- **Be Specific**: Clear, detailed questions
- **Provide Context**: Include relevant information
- **Follow Up**: Ask follow-up questions
- **Take Notes**: Record important answers
#### Quiz Strategy
- **Read Carefully**: Understand questions fully
- **Manage Time**: Pace yourself appropriately
- **Review Answers**: Double-check before submitting
- **Learn from Feedback**: Review explanations
### Maximizing Learning
#### Active Learning
- **Engage with Content**: Don't just read passively
- **Ask Questions**: Seek clarification
- **Practice Regularly**: Apply what you learn
- **Teach Others**: Explain concepts to peers
#### Progress Tracking
- **Set Goals**: Define learning objectives
- **Monitor Progress**: Regular check-ins
- **Adjust Strategy**: Modify approach as needed
- **Celebrate Success**: Acknowledge achievements
#### Collaboration
- **Study Groups**: Learn with peers
- **Discussion Forums**: Share knowledge
- **Peer Review**: Help others learn
- **Teacher Feedback**: Seek guidance
---
## 🚨 TROUBLESHOOTING
### Common Issues
#### Login Problems
- **Forgot Password**: Use "Forgot Password" link
- **Account Locked**: Contact school administrator
- **Verification Issues**: Check email for verification link
- **Device Problems**: Try different device or browser
#### Technical Issues
- **App Crashes**: Restart app or device
- **Slow Performance**: Check internet connection
- **Content Not Loading**: Refresh page or app
- **Audio/Video Issues**: Check device settings
#### Learning Issues
- **Unclear Explanations**: Ask follow-up questions
- **Difficulty Too High**: Adjust difficulty settings
- **Content Not Relevant**: Provide feedback on content
- **Progress Not Updating**: Check sync settings
### Getting Help
#### In-App Support
- **Help Center**: Built-in documentation
- **FAQ Section**: Common questions answered
- **Contact Support**: Direct assistance
- **Report Issues**: Bug reporting system
#### Teacher Support
- **Classroom Help**: Ask your teacher
- **Office Hours**: Schedule one-on-one help
- **Study Groups**: Peer assistance
- **Tutoring Services**: Additional support
#### Technical Support
- **Email**: support@teachit.app
- **Phone**: 1-800-TEACH-IT
- **Live Chat**: In-app chat support
- **Community Forum**: User discussions
---
## 📱 PLATFORM SPECIFICS
### Mobile App
#### Navigation
- **Bottom Navigation**: Quick access to main features
- **Swipe Gestures**: Navigate between screens
- **Pull to Refresh**: Update content
- **Long Press**: Access context menus
#### Features
- **Offline Mode**: Download content for offline use
- **Push Notifications**: Real-time updates
- **Biometric Login**: Secure authentication
- **Voice Input**: Hands-free interaction
### Web Platform
#### Browser Compatibility
- **Chrome**: Recommended browser
- **Firefox**: Full compatibility
- **Safari**: Mac/iOS optimization
- **Edge**: Windows compatibility
#### Features
- **Keyboard Shortcuts**: Productivity shortcuts
- **Multi-Window**: Split-screen support
- **Browser Extensions**: Enhanced functionality
- **Desktop Notifications**: Web-based alerts
---
## 🔒 PRIVACY & SECURITY
### Data Protection
#### Personal Information
- **Secure Storage**: Encrypted data storage
- **Access Control**: Limited data access
- **Data Minimization**: Only necessary data collected
- **Retention Policies**: Automatic data cleanup
#### Privacy Settings
- **Profile Visibility**: Control who sees your profile
- **Data Sharing**: Choose what to share
- **Analytics**: Opt in/out of usage tracking
- **Communication**: Control message preferences
### Account Security
#### Authentication
- **Strong Passwords**: Secure password requirements
- **Two-Factor Auth**: Additional security layer
- **Biometric Login**: Fingerprint/Face ID
- **Session Management**: Control active sessions
#### Best Practices
- **Unique Passwords**: Don't reuse passwords
- **Regular Updates**: Keep app updated
- **Secure Networks**: Use trusted Wi-Fi
- **Logout**: Sign out when finished
---
## 📞 SUPPORT & RESOURCES
### Help Resources
#### Documentation
- **User Guide**: This comprehensive manual
- **Video Tutorials**: Step-by-step videos
- **FAQ Section**: Common questions
- **Glossary**: Term definitions
#### Community
- **User Forums**: Peer discussions
- **Study Groups**: Learning communities
- **Teacher Network**: Educator resources
- **Parent Portal**: Family engagement
### Contact Information
#### Support Channels
- **Email Support**: support@teachit.app
- **Phone Support**: 1-800-TEACH-IT
- **Live Chat**: In-app support
- **Social Media**: @TeachItApp
#### School Support
- **IT Department**: Technical assistance
- **Teachers**: Academic support
- **Administrators**: Account issues
- **Counselors**: Learning guidance
---
## ✅ QUICK REFERENCE
### Student Quick Start
1. **Sign In**: Enter email and password
2. **Ask Tutor**: Type your question
3. **Take Quiz**: Test your knowledge
4. **View Progress**: Track learning
5. **Study Materials**: Access content
### Teacher Quick Start
1. **Sign In**: Enter credentials
2. **Upload Content**: Share materials
3. **Create Quiz**: Design assessments
4. **View Analytics**: Monitor performance
5. **Manage Students**: Track progress
### Keyboard Shortcuts
- **Ctrl/Cmd + K**: Quick search
- **Ctrl/Cmd + /**: Help menu
- **Ctrl/Cmd + N**: New content
- **Ctrl/Cmd + S**: Save work
- **Esc**: Cancel/close
### Emergency Contacts
- **Technical Issues**: support@teachit.app
- **Account Problems**: admin@teachit.app
- **Security Concerns**: security@teachit.app
- **Emergency**: 1-800-TEACH-IT
---
## 🎉 CONCLUSION
The AI Study Assistant is designed to make learning more effective, engaging, and personalized. Whether you're a student seeking help with difficult concepts or a teacher looking to enhance classroom instruction, our platform provides the tools and support you need.
Remember:
- **Ask questions** whenever you're unsure
- **Practice regularly** to reinforce learning
- **Track your progress** to see improvement
- **Seek help** when needed
- **Enjoy the journey** of learning!
Happy studying! 🚀
---
*Last Updated: 2026-05-06*
*Version: 1.0.0*
*User Experience Team: Product & Education*

34
ios/.gitignore vendored Normal file
View File

@@ -0,0 +1,34 @@
**/dgph
*.mode1v3
*.mode2v3
*.moved-aside
*.pbxuser
*.perspectivev3
**/*sync/
.sconsign.dblite
.tags*
**/.vagrant/
**/DerivedData/
Icon?
**/Pods/
**/.symlinks/
profile
xcuserdata
**/.generated/
Flutter/App.framework
Flutter/Flutter.framework
Flutter/Flutter.podspec
Flutter/Generated.xcconfig
Flutter/ephemeral/
Flutter/app.flx
Flutter/app.zip
Flutter/flutter_assets/
Flutter/flutter_export_environment.sh
ServiceDefinitions.json
Runner/GeneratedPluginRegistrant.*
# Exceptions to above rules.
!default.mode1v3
!default.mode2v3
!default.pbxuser
!default.perspectivev3

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>App</string>
<key>CFBundleIdentifier</key>
<string>io.flutter.flutter.app</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>App</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
</dict>
</plist>

View File

@@ -0,0 +1 @@
#include "Generated.xcconfig"

View File

@@ -0,0 +1 @@
#include "Generated.xcconfig"

View File

@@ -0,0 +1,620 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 54;
objects = {
/* Begin PBXBuildFile section */
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
7884E8682EC3CC0700C636F2 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */; };
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 97C146E61CF9000F007C117D /* Project object */;
proxyType = 1;
remoteGlobalIDString = 97C146ED1CF9000F007C117D;
remoteInfo = Runner;
};
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
9705A1C41CF9048500538489 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
97C146EB1CF9000F007C117D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
331C8082294A63A400263BE5 /* RunnerTests */ = {
isa = PBXGroup;
children = (
331C807B294A618700263BE5 /* RunnerTests.swift */,
);
path = RunnerTests;
sourceTree = "<group>";
};
9740EEB11CF90186004384FC /* Flutter */ = {
isa = PBXGroup;
children = (
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
9740EEB21CF90195004384FC /* Debug.xcconfig */,
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
9740EEB31CF90195004384FC /* Generated.xcconfig */,
);
name = Flutter;
sourceTree = "<group>";
};
97C146E51CF9000F007C117D = {
isa = PBXGroup;
children = (
9740EEB11CF90186004384FC /* Flutter */,
97C146F01CF9000F007C117D /* Runner */,
97C146EF1CF9000F007C117D /* Products */,
331C8082294A63A400263BE5 /* RunnerTests */,
);
sourceTree = "<group>";
};
97C146EF1CF9000F007C117D /* Products */ = {
isa = PBXGroup;
children = (
97C146EE1CF9000F007C117D /* Runner.app */,
331C8081294A63A400263BE5 /* RunnerTests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
97C146F01CF9000F007C117D /* Runner */ = {
isa = PBXGroup;
children = (
97C146FA1CF9000F007C117D /* Main.storyboard */,
97C146FD1CF9000F007C117D /* Assets.xcassets */,
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
97C147021CF9000F007C117D /* Info.plist */,
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */,
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
);
path = Runner;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
331C8080294A63A400263BE5 /* RunnerTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
buildPhases = (
331C807D294A63A400263BE5 /* Sources */,
331C807F294A63A400263BE5 /* Resources */,
);
buildRules = (
);
dependencies = (
331C8086294A63A400263BE5 /* PBXTargetDependency */,
);
name = RunnerTests;
productName = RunnerTests;
productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
97C146ED1CF9000F007C117D /* Runner */ = {
isa = PBXNativeTarget;
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
buildPhases = (
9740EEB61CF901F6004384FC /* Run Script */,
97C146EA1CF9000F007C117D /* Sources */,
97C146EB1CF9000F007C117D /* Frameworks */,
97C146EC1CF9000F007C117D /* Resources */,
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
);
buildRules = (
);
dependencies = (
);
name = Runner;
productName = Runner;
productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = YES;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
331C8080294A63A400263BE5 = {
CreatedOnToolsVersion = 14.0;
TestTargetID = 97C146ED1CF9000F007C117D;
};
97C146ED1CF9000F007C117D = {
CreatedOnToolsVersion = 7.3.1;
LastSwiftMigration = 1100;
};
};
};
buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 97C146E51CF9000F007C117D;
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
97C146ED1CF9000F007C117D /* Runner */,
331C8080294A63A400263BE5 /* RunnerTests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
331C807F294A63A400263BE5 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
97C146EC1CF9000F007C117D /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
);
name = "Thin Binary";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Run Script";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
331C807D294A63A400263BE5 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
97C146EA1CF9000F007C117D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
7884E8682EC3CC0700C636F2 /* SceneDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 97C146ED1CF9000F007C117D /* Runner */;
targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
97C146FA1CF9000F007C117D /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
97C146FB1CF9000F007C117D /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
97C147001CF9000F007C117D /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Profile;
};
249021D4217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.teachit;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Profile;
};
331C8088294A63A400263BE5 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.teachit.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
};
name = Debug;
};
331C8089294A63A400263BE5 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.teachit.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
};
name = Release;
};
331C808A294A63A400263BE5 /* Profile */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.teachit.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
};
name = Profile;
};
97C147031CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
97C147041CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
97C147061CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.teachit;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Debug;
};
97C147071CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.teachit;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
331C8088294A63A400263BE5 /* Debug */,
331C8089294A63A400263BE5 /* Release */,
331C808A294A63A400263BE5 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
97C147031CF9000F007C117D /* Debug */,
97C147041CF9000F007C117D /* Release */,
249021D3217E4FDB00AE95B9 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
97C147061CF9000F007C117D /* Debug */,
97C147071CF9000F007C117D /* Release */,
249021D4217E4FDB00AE95B9 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 97C146E61CF9000F007C117D /* Project object */;
}

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>

View File

@@ -0,0 +1,101 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "331C8080294A63A400263BE5"
BuildableName = "RunnerTests.xctest"
BlueprintName = "RunnerTests"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
enableGPUValidationMode = "1"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Profile"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:Runner.xcodeproj">
</FileRef>
</Workspace>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>

View File

@@ -0,0 +1,16 @@
import Flutter
import UIKit
@main
@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) {
GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry)
}
}

View File

@@ -0,0 +1,122 @@
{
"images" : [
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-App-20x20@2x.png",
"scale" : "2x"
},
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-App-20x20@3x.png",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@1x.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@3x.png",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-App-40x40@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-App-40x40@3x.png",
"scale" : "3x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-App-60x60@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-App-60x60@3x.png",
"scale" : "3x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-App-20x20@1x.png",
"scale" : "1x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-App-20x20@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-App-29x29@1x.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-App-29x29@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-App-40x40@1x.png",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-App-40x40@2x.png",
"scale" : "2x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-App-76x76@1x.png",
"scale" : "1x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-App-76x76@2x.png",
"scale" : "2x"
},
{
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "Icon-App-83.5x83.5@2x.png",
"scale" : "2x"
},
{
"size" : "1024x1024",
"idiom" : "ios-marketing",
"filename" : "Icon-App-1024x1024@1x.png",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 450 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 462 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 704 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 862 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 862 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 762 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "LaunchImage.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "LaunchImage@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "LaunchImage@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 B

View File

@@ -0,0 +1,5 @@
# Launch Screen Assets
You can customize the launch screen with your own desired assets by replacing the image files in this directory.
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.

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
<viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
</imageView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
<resources>
<image name="LaunchImage" width="168" height="185"/>
</resources>
</document>

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
</dependencies>
<scenes>
<!--Flutter View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
</document>

70
ios/Runner/Info.plist Normal file
View File

@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Teachit</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>teachit</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneClassName</key>
<string>UIWindowScene</string>
<key>UISceneConfigurationName</key>
<string>flutter</string>
<key>UISceneDelegateClassName</key>
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
<key>UISceneStoryboardFile</key>
<string>Main</string>
</dict>
</array>
</dict>
</dict>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>

View File

@@ -0,0 +1 @@
#import "GeneratedPluginRegistrant.h"

View File

@@ -0,0 +1,6 @@
import Flutter
import UIKit
class SceneDelegate: FlutterSceneDelegate {
}

View File

@@ -0,0 +1,12 @@
import Flutter
import UIKit
import XCTest
class RunnerTests: XCTestCase {
func testExample() {
// If you add code to the Runner application, consider adding tests here.
// See https://developer.apple.com/documentation/xctest for more information about using XCTest.
}
}

122
lib/main.dart Normal file
View File

@@ -0,0 +1,122 @@
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
// This is the theme of your application.
//
// TRY THIS: Try running your application with "flutter run". You'll see
// the application has a purple toolbar. Then, without quitting the app,
// try changing the seedColor in the colorScheme below to Colors.green
// and then invoke "hot reload" (save your changes or press the "hot
// reload" button in a Flutter-supported IDE, or press "r" if you used
// the command line to start the app).
//
// Notice that the counter didn't reset back to zero; the application
// state is not lost during the reload. To reset the state, use hot
// restart instead.
//
// This works for code too, not just values: Most code changes can be
// tested with just a hot reload.
colorScheme: .fromSeed(seedColor: Colors.deepPurple),
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
// This widget is the home page of your application. It is stateful, meaning
// that it has a State object (defined below) that contains fields that affect
// how it looks.
// This class is the configuration for the state. It holds the values (in this
// case the title) provided by the parent (in this case the App widget) and
// used by the build method of the State. Fields in a Widget subclass are
// always marked "final".
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
int _counter = 0;
void _incrementCounter() {
setState(() {
// This call to setState tells the Flutter framework that something has
// changed in this State, which causes it to rerun the build method below
// so that the display can reflect the updated values. If we changed
// _counter without calling setState(), then the build method would not be
// called again, and so nothing would appear to happen.
_counter++;
});
}
@override
Widget build(BuildContext context) {
// This method is rerun every time setState is called, for instance as done
// by the _incrementCounter method above.
//
// The Flutter framework has been optimized to make rerunning build methods
// fast, so that you can just rebuild anything that needs updating rather
// than having to individually change instances of widgets.
return Scaffold(
appBar: AppBar(
// TRY THIS: Try changing the color here to a specific color (to
// Colors.amber, perhaps?) and trigger a hot reload to see the AppBar
// change color while the other colors stay the same.
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: Text(widget.title),
),
body: Center(
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
child: Column(
// Column is also a layout widget. It takes a list of children and
// arranges them vertically. By default, it sizes itself to fit its
// children horizontally, and tries to be as tall as its parent.
//
// Column has various properties to control how it sizes itself and
// how it positions its children. Here we use mainAxisAlignment to
// center the children vertically; the main axis here is the vertical
// axis because Columns are vertical (the cross axis would be
// horizontal).
//
// TRY THIS: Invoke "debug painting" (choose the "Toggle Debug Paint"
// action in the IDE, or press "p" in the console), to see the
// wireframe for each widget.
mainAxisAlignment: .center,
children: [
const Text('You have pushed the button this many times:'),
Text(
'$_counter',
style: Theme.of(context).textTheme.headlineMedium,
),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: const Icon(Icons.add),
),
);
}
}

1
linux/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
flutter/ephemeral

128
linux/CMakeLists.txt Normal file
View File

@@ -0,0 +1,128 @@
# Project-level configuration.
cmake_minimum_required(VERSION 3.13)
project(runner LANGUAGES CXX)
# The name of the executable created for the application. Change this to change
# the on-disk name of your application.
set(BINARY_NAME "teachit")
# The unique GTK application identifier for this application. See:
# https://wiki.gnome.org/HowDoI/ChooseApplicationID
set(APPLICATION_ID "com.example.teachit")
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
# versions of CMake.
cmake_policy(SET CMP0063 NEW)
# Load bundled libraries from the lib/ directory relative to the binary.
set(CMAKE_INSTALL_RPATH "$ORIGIN/lib")
# Root filesystem for cross-building.
if(FLUTTER_TARGET_PLATFORM_SYSROOT)
set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT})
set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT})
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
endif()
# Define build configuration options.
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set(CMAKE_BUILD_TYPE "Debug" CACHE
STRING "Flutter build mode" FORCE)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
"Debug" "Profile" "Release")
endif()
# Compilation settings that should be applied to most targets.
#
# Be cautious about adding new options here, as plugins use this function by
# default. In most cases, you should add new options to specific targets instead
# of modifying this function.
function(APPLY_STANDARD_SETTINGS TARGET)
target_compile_features(${TARGET} PUBLIC cxx_std_14)
target_compile_options(${TARGET} PRIVATE -Wall -Werror)
target_compile_options(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O3>")
target_compile_definitions(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:NDEBUG>")
endfunction()
# Flutter library and tool build rules.
set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
add_subdirectory(${FLUTTER_MANAGED_DIR})
# System-level dependencies.
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
# Application build; see runner/CMakeLists.txt.
add_subdirectory("runner")
# Run the Flutter tool portions of the build. This must not be removed.
add_dependencies(${BINARY_NAME} flutter_assemble)
# Only the install-generated bundle's copy of the executable will launch
# correctly, since the resources must in the right relative locations. To avoid
# people trying to run the unbundled copy, put it in a subdirectory instead of
# the default top-level location.
set_target_properties(${BINARY_NAME}
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run"
)
# Generated plugin build rules, which manage building the plugins and adding
# them to the application.
include(flutter/generated_plugins.cmake)
# === Installation ===
# By default, "installing" just makes a relocatable bundle in the build
# directory.
set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle")
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
endif()
# Start with a clean build bundle directory every time.
install(CODE "
file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\")
" COMPONENT Runtime)
set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib")
install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
COMPONENT Runtime)
install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
COMPONENT Runtime)
install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime)
foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES})
install(FILES "${bundled_library}"
DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime)
endforeach(bundled_library)
# Copy the native assets provided by the build.dart from all packages.
set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/linux/")
install(DIRECTORY "${NATIVE_ASSETS_DIR}"
DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime)
# Fully re-copy the assets directory on each build to avoid having stale files
# from a previous install.
set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
install(CODE "
file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
" COMPONENT Runtime)
install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
# Install the AOT library on non-Debug builds only.
if(NOT CMAKE_BUILD_TYPE MATCHES "Debug")
install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime)
endif()

View File

@@ -0,0 +1,88 @@
# This file controls Flutter-level build steps. It should not be edited.
cmake_minimum_required(VERSION 3.10)
set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
# Configuration provided via flutter tool.
include(${EPHEMERAL_DIR}/generated_config.cmake)
# TODO: Move the rest of this into files in ephemeral. See
# https://github.com/flutter/flutter/issues/57146.
# Serves the same purpose as list(TRANSFORM ... PREPEND ...),
# which isn't available in 3.10.
function(list_prepend LIST_NAME PREFIX)
set(NEW_LIST "")
foreach(element ${${LIST_NAME}})
list(APPEND NEW_LIST "${PREFIX}${element}")
endforeach(element)
set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE)
endfunction()
# === Flutter Library ===
# System-level dependencies.
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0)
pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)
set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so")
# Published to parent scope for install step.
set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE)
list(APPEND FLUTTER_LIBRARY_HEADERS
"fl_basic_message_channel.h"
"fl_binary_codec.h"
"fl_binary_messenger.h"
"fl_dart_project.h"
"fl_engine.h"
"fl_json_message_codec.h"
"fl_json_method_codec.h"
"fl_message_codec.h"
"fl_method_call.h"
"fl_method_channel.h"
"fl_method_codec.h"
"fl_method_response.h"
"fl_plugin_registrar.h"
"fl_plugin_registry.h"
"fl_standard_message_codec.h"
"fl_standard_method_codec.h"
"fl_string_codec.h"
"fl_value.h"
"fl_view.h"
"flutter_linux.h"
)
list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/")
add_library(flutter INTERFACE)
target_include_directories(flutter INTERFACE
"${EPHEMERAL_DIR}"
)
target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}")
target_link_libraries(flutter INTERFACE
PkgConfig::GTK
PkgConfig::GLIB
PkgConfig::GIO
)
add_dependencies(flutter flutter_assemble)
# === Flutter tool backend ===
# _phony_ is a non-existent file to force this command to run every time,
# since currently there's no way to get a full input/output list from the
# flutter tool.
add_custom_command(
OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
${CMAKE_CURRENT_BINARY_DIR}/_phony_
COMMAND ${CMAKE_COMMAND} -E env
${FLUTTER_TOOL_ENVIRONMENT}
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh"
${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE}
VERBATIM
)
add_custom_target(flutter_assemble DEPENDS
"${FLUTTER_LIBRARY}"
${FLUTTER_LIBRARY_HEADERS}
)

View File

@@ -0,0 +1,11 @@
//
// Generated file. Do not edit.
//
// clang-format off
#include "generated_plugin_registrant.h"
void fl_register_plugins(FlPluginRegistry* registry) {
}

View File

@@ -0,0 +1,15 @@
//
// Generated file. Do not edit.
//
// clang-format off
#ifndef GENERATED_PLUGIN_REGISTRANT_
#define GENERATED_PLUGIN_REGISTRANT_
#include <flutter_linux/flutter_linux.h>
// Registers Flutter plugins.
void fl_register_plugins(FlPluginRegistry* registry);
#endif // GENERATED_PLUGIN_REGISTRANT_

View File

@@ -0,0 +1,23 @@
#
# Generated file, do not edit.
#
list(APPEND FLUTTER_PLUGIN_LIST
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST
)
set(PLUGIN_BUNDLED_LIBRARIES)
foreach(plugin ${FLUTTER_PLUGIN_LIST})
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin})
target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
endforeach(plugin)
foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
endforeach(ffi_plugin)

View File

@@ -0,0 +1,26 @@
cmake_minimum_required(VERSION 3.13)
project(runner LANGUAGES CXX)
# Define the application target. To change its name, change BINARY_NAME in the
# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer
# work.
#
# Any new source files that you add to the application should be added here.
add_executable(${BINARY_NAME}
"main.cc"
"my_application.cc"
"${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
)
# Apply the standard set of build settings. This can be removed for applications
# that need different build settings.
apply_standard_settings(${BINARY_NAME})
# Add preprocessor definitions for the application ID.
add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")
# Add dependency libraries. Add any application-specific dependencies here.
target_link_libraries(${BINARY_NAME} PRIVATE flutter)
target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)
target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}")

6
linux/runner/main.cc Normal file
View File

@@ -0,0 +1,6 @@
#include "my_application.h"
int main(int argc, char** argv) {
g_autoptr(MyApplication) app = my_application_new();
return g_application_run(G_APPLICATION(app), argc, argv);
}

View File

@@ -0,0 +1,148 @@
#include "my_application.h"
#include <flutter_linux/flutter_linux.h>
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
#include "flutter/generated_plugin_registrant.h"
struct _MyApplication {
GtkApplication parent_instance;
char** dart_entrypoint_arguments;
};
G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)
// Called when first Flutter frame received.
static void first_frame_cb(MyApplication* self, FlView* view) {
gtk_widget_show(gtk_widget_get_toplevel(GTK_WIDGET(view)));
}
// Implements GApplication::activate.
static void my_application_activate(GApplication* application) {
MyApplication* self = MY_APPLICATION(application);
GtkWindow* window =
GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));
// Use a header bar when running in GNOME as this is the common style used
// by applications and is the setup most users will be using (e.g. Ubuntu
// desktop).
// If running on X and not using GNOME then just use a traditional title bar
// in case the window manager does more exotic layout, e.g. tiling.
// If running on Wayland assume the header bar will work (may need changing
// if future cases occur).
gboolean use_header_bar = TRUE;
#ifdef GDK_WINDOWING_X11
GdkScreen* screen = gtk_window_get_screen(window);
if (GDK_IS_X11_SCREEN(screen)) {
const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen);
if (g_strcmp0(wm_name, "GNOME Shell") != 0) {
use_header_bar = FALSE;
}
}
#endif
if (use_header_bar) {
GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
gtk_widget_show(GTK_WIDGET(header_bar));
gtk_header_bar_set_title(header_bar, "teachit");
gtk_header_bar_set_show_close_button(header_bar, TRUE);
gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));
} else {
gtk_window_set_title(window, "teachit");
}
gtk_window_set_default_size(window, 1280, 720);
g_autoptr(FlDartProject) project = fl_dart_project_new();
fl_dart_project_set_dart_entrypoint_arguments(
project, self->dart_entrypoint_arguments);
FlView* view = fl_view_new(project);
GdkRGBA background_color;
// Background defaults to black, override it here if necessary, e.g. #00000000
// for transparent.
gdk_rgba_parse(&background_color, "#000000");
fl_view_set_background_color(view, &background_color);
gtk_widget_show(GTK_WIDGET(view));
gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view));
// Show the window when Flutter renders.
// Requires the view to be realized so we can start rendering.
g_signal_connect_swapped(view, "first-frame", G_CALLBACK(first_frame_cb),
self);
gtk_widget_realize(GTK_WIDGET(view));
fl_register_plugins(FL_PLUGIN_REGISTRY(view));
gtk_widget_grab_focus(GTK_WIDGET(view));
}
// Implements GApplication::local_command_line.
static gboolean my_application_local_command_line(GApplication* application,
gchar*** arguments,
int* exit_status) {
MyApplication* self = MY_APPLICATION(application);
// Strip out the first argument as it is the binary name.
self->dart_entrypoint_arguments = g_strdupv(*arguments + 1);
g_autoptr(GError) error = nullptr;
if (!g_application_register(application, nullptr, &error)) {
g_warning("Failed to register: %s", error->message);
*exit_status = 1;
return TRUE;
}
g_application_activate(application);
*exit_status = 0;
return TRUE;
}
// Implements GApplication::startup.
static void my_application_startup(GApplication* application) {
// MyApplication* self = MY_APPLICATION(object);
// Perform any actions required at application startup.
G_APPLICATION_CLASS(my_application_parent_class)->startup(application);
}
// Implements GApplication::shutdown.
static void my_application_shutdown(GApplication* application) {
// MyApplication* self = MY_APPLICATION(object);
// Perform any actions required at application shutdown.
G_APPLICATION_CLASS(my_application_parent_class)->shutdown(application);
}
// Implements GObject::dispose.
static void my_application_dispose(GObject* object) {
MyApplication* self = MY_APPLICATION(object);
g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev);
G_OBJECT_CLASS(my_application_parent_class)->dispose(object);
}
static void my_application_class_init(MyApplicationClass* klass) {
G_APPLICATION_CLASS(klass)->activate = my_application_activate;
G_APPLICATION_CLASS(klass)->local_command_line =
my_application_local_command_line;
G_APPLICATION_CLASS(klass)->startup = my_application_startup;
G_APPLICATION_CLASS(klass)->shutdown = my_application_shutdown;
G_OBJECT_CLASS(klass)->dispose = my_application_dispose;
}
static void my_application_init(MyApplication* self) {}
MyApplication* my_application_new() {
// Set the program name to the application ID, which helps various systems
// like GTK and desktop environments map this running application to its
// corresponding .desktop file. This ensures better integration by allowing
// the application to be recognized beyond its binary name.
g_set_prgname(APPLICATION_ID);
return MY_APPLICATION(g_object_new(my_application_get_type(),
"application-id", APPLICATION_ID, "flags",
G_APPLICATION_NON_UNIQUE, nullptr));
}

View File

@@ -0,0 +1,21 @@
#ifndef FLUTTER_MY_APPLICATION_H_
#define FLUTTER_MY_APPLICATION_H_
#include <gtk/gtk.h>
G_DECLARE_FINAL_TYPE(MyApplication,
my_application,
MY,
APPLICATION,
GtkApplication)
/**
* my_application_new:
*
* Creates a new Flutter-based application.
*
* Returns: a new #MyApplication.
*/
MyApplication* my_application_new();
#endif // FLUTTER_MY_APPLICATION_H_

7
macos/.gitignore vendored Normal file
View File

@@ -0,0 +1,7 @@
# Flutter-related
**/Flutter/ephemeral/
**/Pods/
# Xcode-related
**/dgph
**/xcuserdata/

View File

@@ -0,0 +1 @@
#include "ephemeral/Flutter-Generated.xcconfig"

View File

@@ -0,0 +1 @@
#include "ephemeral/Flutter-Generated.xcconfig"

View File

@@ -0,0 +1,10 @@
//
// Generated file. Do not edit.
//
import FlutterMacOS
import Foundation
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
}

View File

@@ -0,0 +1,705 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 54;
objects = {
/* Begin PBXAggregateTarget section */
33CC111A2044C6BA0003C045 /* Flutter Assemble */ = {
isa = PBXAggregateTarget;
buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */;
buildPhases = (
33CC111E2044C6BF0003C045 /* ShellScript */,
);
dependencies = (
);
name = "Flutter Assemble";
productName = FLX;
};
/* End PBXAggregateTarget section */
/* Begin PBXBuildFile section */
331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; };
335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };
33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };
33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 33CC10EC2044A3C60003C045;
remoteInfo = Runner;
};
33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 33CC111A2044C6BA0003C045;
remoteInfo = FLX;
};
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
33CC110E2044A8840003C045 /* Bundle Framework */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
);
name = "Bundle Framework";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = "<group>"; };
335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = "<group>"; };
33CC10ED2044A3C60003C045 /* teachit.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "teachit.app"; sourceTree = BUILT_PRODUCTS_DIR; };
33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = "<group>"; };
33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = "<group>"; };
33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = "<group>"; };
33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = "<group>"; };
33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = "<group>"; };
33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = "<group>"; };
33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = "<group>"; };
33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = "<group>"; };
33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = "<group>"; };
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
331C80D2294CF70F00263BE5 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
33CC10EA2044A3C60003C045 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
331C80D6294CF71000263BE5 /* RunnerTests */ = {
isa = PBXGroup;
children = (
331C80D7294CF71000263BE5 /* RunnerTests.swift */,
);
path = RunnerTests;
sourceTree = "<group>";
};
33BA886A226E78AF003329D5 /* Configs */ = {
isa = PBXGroup;
children = (
33E5194F232828860026EE4D /* AppInfo.xcconfig */,
9740EEB21CF90195004384FC /* Debug.xcconfig */,
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
333000ED22D3DE5D00554162 /* Warnings.xcconfig */,
);
path = Configs;
sourceTree = "<group>";
};
33CC10E42044A3C60003C045 = {
isa = PBXGroup;
children = (
33FAB671232836740065AC1E /* Runner */,
33CEB47122A05771004F2AC0 /* Flutter */,
331C80D6294CF71000263BE5 /* RunnerTests */,
33CC10EE2044A3C60003C045 /* Products */,
D73912EC22F37F3D000D13A0 /* Frameworks */,
);
sourceTree = "<group>";
};
33CC10EE2044A3C60003C045 /* Products */ = {
isa = PBXGroup;
children = (
33CC10ED2044A3C60003C045 /* teachit.app */,
331C80D5294CF71000263BE5 /* RunnerTests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
33CC11242044D66E0003C045 /* Resources */ = {
isa = PBXGroup;
children = (
33CC10F22044A3C60003C045 /* Assets.xcassets */,
33CC10F42044A3C60003C045 /* MainMenu.xib */,
33CC10F72044A3C60003C045 /* Info.plist */,
);
name = Resources;
path = ..;
sourceTree = "<group>";
};
33CEB47122A05771004F2AC0 /* Flutter */ = {
isa = PBXGroup;
children = (
335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */,
33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */,
33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */,
33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */,
);
path = Flutter;
sourceTree = "<group>";
};
33FAB671232836740065AC1E /* Runner */ = {
isa = PBXGroup;
children = (
33CC10F02044A3C60003C045 /* AppDelegate.swift */,
33CC11122044BFA00003C045 /* MainFlutterWindow.swift */,
33E51913231747F40026EE4D /* DebugProfile.entitlements */,
33E51914231749380026EE4D /* Release.entitlements */,
33CC11242044D66E0003C045 /* Resources */,
33BA886A226E78AF003329D5 /* Configs */,
);
path = Runner;
sourceTree = "<group>";
};
D73912EC22F37F3D000D13A0 /* Frameworks */ = {
isa = PBXGroup;
children = (
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
331C80D4294CF70F00263BE5 /* RunnerTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
buildPhases = (
331C80D1294CF70F00263BE5 /* Sources */,
331C80D2294CF70F00263BE5 /* Frameworks */,
331C80D3294CF70F00263BE5 /* Resources */,
);
buildRules = (
);
dependencies = (
331C80DA294CF71000263BE5 /* PBXTargetDependency */,
);
name = RunnerTests;
productName = RunnerTests;
productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
33CC10EC2044A3C60003C045 /* Runner */ = {
isa = PBXNativeTarget;
buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
buildPhases = (
33CC10E92044A3C60003C045 /* Sources */,
33CC10EA2044A3C60003C045 /* Frameworks */,
33CC10EB2044A3C60003C045 /* Resources */,
33CC110E2044A8840003C045 /* Bundle Framework */,
3399D490228B24CF009A79C7 /* ShellScript */,
);
buildRules = (
);
dependencies = (
33CC11202044C79F0003C045 /* PBXTargetDependency */,
);
name = Runner;
productName = Runner;
productReference = 33CC10ED2044A3C60003C045 /* teachit.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
33CC10E52044A3C60003C045 /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = YES;
LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
331C80D4294CF70F00263BE5 = {
CreatedOnToolsVersion = 14.0;
TestTargetID = 33CC10EC2044A3C60003C045;
};
33CC10EC2044A3C60003C045 = {
CreatedOnToolsVersion = 9.2;
LastSwiftMigration = 1100;
ProvisioningStyle = Automatic;
SystemCapabilities = {
com.apple.Sandbox = {
enabled = 1;
};
};
};
33CC111A2044C6BA0003C045 = {
CreatedOnToolsVersion = 9.2;
ProvisioningStyle = Manual;
};
};
};
buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 33CC10E42044A3C60003C045;
productRefGroup = 33CC10EE2044A3C60003C045 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
33CC10EC2044A3C60003C045 /* Runner */,
331C80D4294CF70F00263BE5 /* RunnerTests */,
33CC111A2044C6BA0003C045 /* Flutter Assemble */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
331C80D3294CF70F00263BE5 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
33CC10EB2044A3C60003C045 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */,
33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
3399D490228B24CF009A79C7 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n";
};
33CC111E2044C6BF0003C045 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
Flutter/ephemeral/FlutterInputs.xcfilelist,
);
inputPaths = (
Flutter/ephemeral/tripwire,
);
outputFileListPaths = (
Flutter/ephemeral/FlutterOutputs.xcfilelist,
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
331C80D1294CF70F00263BE5 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
33CC10E92044A3C60003C045 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */,
33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */,
335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
331C80DA294CF71000263BE5 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 33CC10EC2044A3C60003C045 /* Runner */;
targetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */;
};
33CC11202044C79F0003C045 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */;
targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
33CC10F42044A3C60003C045 /* MainMenu.xib */ = {
isa = PBXVariantGroup;
children = (
33CC10F52044A3C60003C045 /* Base */,
);
name = MainMenu.xib;
path = Runner;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
331C80DB294CF71000263BE5 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.teachit.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/teachit.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/teachit";
};
name = Debug;
};
331C80DC294CF71000263BE5 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.teachit.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/teachit.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/teachit";
};
name = Release;
};
331C80DD294CF71000263BE5 /* Profile */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.teachit.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/teachit.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/teachit";
};
name = Profile;
};
338D0CE9231458BD00FA5F75 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.15;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
};
name = Profile;
};
338D0CEA231458BD00FA5F75 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 5.0;
};
name = Profile;
};
338D0CEB231458BD00FA5F75 /* Profile */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Manual;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Profile;
};
33CC10F92044A3C60003C045 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.15;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
33CC10FA2044A3C60003C045 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.15;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
};
name = Release;
};
33CC10FC2044A3C60003C045 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
};
name = Debug;
};
33CC10FD2044A3C60003C045 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 5.0;
};
name = Release;
};
33CC111C2044C6BA0003C045 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Manual;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
33CC111D2044C6BA0003C045 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
331C80DB294CF71000263BE5 /* Debug */,
331C80DC294CF71000263BE5 /* Release */,
331C80DD294CF71000263BE5 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
33CC10F92044A3C60003C045 /* Debug */,
33CC10FA2044A3C60003C045 /* Release */,
338D0CE9231458BD00FA5F75 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
33CC10FC2044A3C60003C045 /* Debug */,
33CC10FD2044A3C60003C045 /* Release */,
338D0CEA231458BD00FA5F75 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = {
isa = XCConfigurationList;
buildConfigurations = (
33CC111C2044C6BA0003C045 /* Debug */,
33CC111D2044C6BA0003C045 /* Release */,
338D0CEB231458BD00FA5F75 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 33CC10E52044A3C60003C045 /* Project object */;
}

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "teachit.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "teachit.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "331C80D4294CF70F00263BE5"
BuildableName = "RunnerTests.xctest"
BlueprintName = "RunnerTests"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
enableGPUValidationMode = "1"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "teachit.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Profile"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "teachit.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:Runner.xcodeproj">
</FileRef>
</Workspace>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@@ -0,0 +1,13 @@
import Cocoa
import FlutterMacOS
@main
class AppDelegate: FlutterAppDelegate {
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return true
}
override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
return true
}
}

Some files were not shown because too many files have changed in this diff Show More