diff --git a/PROJECTS.md b/PROJECTS.md index fd47eac..564943a 100644 --- a/PROJECTS.md +++ b/PROJECTS.md @@ -36,18 +36,18 @@ **項目描述**: 建立完整的手機APP,實現AI驅動的語言學習功能 -**當前階段**: 🔄 環境配置中 +**當前階段**: ✅ 環境配置完成,準備APP打包 -#### 階段1: 環境配置 🔄 -- ⏳ `ENV` Android Studio 安裝和配置 -- ⏳ `ENV` Xcode 安裝配置 (iOS支援) -- ⏳ `ENV` Android模擬器設置 -- ⏳ `MB` Flutter移動端配置調整 +#### 階段1: 環境配置 ✅ +- ✅ `ENV` Android Studio 安裝和配置 (2025-09-08) +- ✅ `ENV` Xcode 安裝配置 (iOS支援) (2025-09-08) +- ✅ `ENV` Android模擬器設置 (2025-09-08) +- ✅ `MB` Flutter移動端配置調整 (2025-09-08) #### 階段2: APP打包 ⏳ -- ⏳ `MB` Android APK 生成配置 +- ✅ `MB` Android APK 生成配置 (2025-09-08) - ⏳ `FE` 應用圖標和啟動畫面設計 -- ⏳ `MB` APP權限配置 (語音、網路) +- ✅ `MB` APP權限配置 (語音、網路) (2025-09-08) - ⏳ `TEST` 真實設備測試 #### 階段3: 核心功能實現 ⏳ @@ -73,9 +73,9 @@ **已完成**: 0 個 **執行項目統計**: -- ⏳ 待執行: 16 個 +- ⏳ 待執行: 10 個 - 🔄 進行中: 0 個 -- ✅ 已完成: 0 個 +- ✅ 已完成: 6 個 --- diff --git a/docs/04_technical/environment/README.md b/docs/04_technical/environment/README.md new file mode 100644 index 0000000..c7ea9a4 --- /dev/null +++ b/docs/04_technical/environment/README.md @@ -0,0 +1,71 @@ +# 開發環境設定工具 + +## 📂 目錄結構 + +本目錄包含各種開發環境的設定指南和工具。 + +### 📱 iOS 開發環境 (Xcode) + +**文件位置**: `docs/04_technical/environment/xcode_setup_guide.md` +**工具位置**: `tools/environment/xcode/` + +**可用工具**: +- `complete_xcode_setup.sh` - 完整 Xcode 設定腳本 +- `xcode_verification.sh` - Xcode 安裝驗證工具 +- `monitor_xcode_installation.sh` - 安裝進度監控 + +**使用方法**: +```bash +# 監控 Xcode 安裝進度 +./tools/environment/xcode/monitor_xcode_installation.sh + +# Xcode 安裝完成後執行完整設定 +./tools/environment/xcode/complete_xcode_setup.sh + +# 驗證 Xcode 設定 +./tools/environment/xcode/xcode_verification.sh +``` + +### 🤖 Android 開發環境 (Android Studio) + +**工具位置**: `tools/environment/android/` + +**可用工具**: +- `android_setup_verification.sh` - Android 開發環境驗證工具 + +**使用方法**: +```bash +# 驗證 Android 開發環境 +./tools/environment/android/android_setup_verification.sh +``` + +## 🛠️ 工具設計原則 + +1. **目錄分離**: 所有設定工具都放在 `tools/environment/` 下對應的子目錄中 +2. **文檔分離**: 設定指南放在 `docs/04_technical/environment/` 中 +3. **功能專一**: 每個腳本都有明確的單一功能 +4. **路徑規範**: 所有腳本從專案根目錄執行,使用相對路徑 + +## 📋 新增環境工具 + +當需要新增其他開發環境設定工具時,請遵循以下結構: + +``` +tools/environment/ +├── android/ # Android 相關工具 +├── xcode/ # iOS/Xcode 相關工具 +├── flutter/ # Flutter 相關工具 +├── node/ # Node.js 相關工具 +└── [new-env]/ # 新環境工具 + +docs/04_technical/environment/ +├── README.md # 本文件 +├── xcode_setup_guide.md +├── android_setup_guide.md +└── [new-env]_setup_guide.md +``` + +--- + +**最後更新**: 2025-09-08 +**維護者**: Drama Ling 開發團隊 \ No newline at end of file diff --git a/docs/04_technical/environment/xcode_setup_guide.md b/docs/04_technical/environment/xcode_setup_guide.md new file mode 100644 index 0000000..3ea36fa --- /dev/null +++ b/docs/04_technical/environment/xcode_setup_guide.md @@ -0,0 +1,69 @@ +# Xcode 安裝和配置指南 + +## 📱 Xcode 安裝步驟 + +### 方法1: 透過 Mac App Store(推薦) +1. 打開 Mac App Store +2. 搜尋 "Xcode" +3. 點擊 "取得" 或 "安裝" +4. 等待下載完成(約 10-15GB,需要較長時間) + +### 方法2: 透過 Apple Developer(進階用戶) +1. 訪問 https://developer.apple.com/xcode/ +2. 下載最新版本的 Xcode +3. 解壓縮並移動到 Applications 資料夾 + +## 🔧 安裝後配置步驟 + +### 1. 設定 Xcode 開發者路徑 +```bash +sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer +``` + +### 2. 執行首次設定 +```bash +sudo xcodebuild -runFirstLaunch +``` + +### 3. 接受授權條款 +```bash +sudo xcodebuild -license accept +``` + +### 4. 安裝額外組件 +- 啟動 Xcode +- 等待首次載入和索引完成 +- 安裝建議的額外組件 + +## 📋 驗證安裝 + +執行驗證腳本: +```bash +./xcode_verification.sh +``` + +## 🚨 注意事項 + +- **空間需求**: 確保有至少 15GB 的可用空間 +- **時間需求**: 下載和安裝可能需要 30-60 分鐘 +- **網路需求**: 穩定的網路連線 +- **Apple ID**: 可能需要登入 Apple ID + +## 📱 iOS 模擬器設定 + +1. 開啟 Xcode +2. 前往 Window > Devices and Simulators +3. 點擊 "Simulators" 標籤 +4. 下載所需的 iOS 模擬器版本 + +## 🔐 開發者憑證設定(選用) + +對於真實設備開發需要: +1. Apple Developer Program 帳號 +2. 開發者憑證配置 +3. Provisioning Profile 設定 + +--- + +**建立時間**: 2025-09-08 +**適用版本**: Xcode 15+, macOS 15+ \ No newline at end of file diff --git a/docs/04_technical/file-organization-strategy.md b/docs/04_technical/file-organization-strategy.md new file mode 100644 index 0000000..2f49db1 --- /dev/null +++ b/docs/04_technical/file-organization-strategy.md @@ -0,0 +1,164 @@ +# 檔案組織策略 + +## 🗂️ 檔案歸類指南 + +本文件定義專案中各種檔案的歸類規則,特別處理難以歸類的檔案。 + +## 📂 標準目錄結構 + +``` +. +├── docs/ # 所有文檔 +│ ├── 00_starter/ # 入門文檔 +│ ├── 01_requirement/ # 需求文檔 +│ ├── 02_design/ # 設計文檔 +│ ├── 03_development/ # 開發文檔 +│ └── 04_technical/ # 技術文檔 +├── scripts/ # 維護和自動化腳本 +│ └── maintenance/ # 系統維護腳本 +├── tools/ # 開發工具 +│ └── environment/ # 環境設定工具 +├── temp/ # 臨時檔案 (需要時創建) +├── archive/ # 歸檔檔案 (需要時創建) +└── misc/ # 雜項檔案 (需要時創建) +``` + +## 🎯 檔案歸類規則 + +### 📋 明確歸類的檔案 + +| 檔案類型 | 位置 | 說明 | +|---------|------|------| +| 專案文檔 (*.md) | `docs/[xx_category]/` | 根據內容分類 | +| 環境設定工具 | `tools/environment/[env]/` | 按環境類型分組 | +| 維護腳本 | `scripts/` 或 `scripts/maintenance/` | 系統維護相關 | +| 配置檔案 | 對應功能目錄 | 與功能代碼放在一起 | + +### 🤔 難以歸類的檔案處理 + +#### 1. 臨時檔案 → `temp/` +- 測試用檔案 +- 暫時的輸出結果 +- 實驗性腳本 +- 一次性使用的工具 + +```bash +mkdir -p temp +mv uncertain_test_file.sh temp/ +``` + +#### 2. 歷史檔案 → `archive/` +- 舊版本的檔案 +- 不再使用但有保存價值的檔案 +- 已完成的一次性任務相關檔案 + +```bash +mkdir -p archive/2025-09-08 +mv old_setup_script.sh archive/2025-09-08/ +``` + +#### 3. 雜項檔案 → `misc/` +- 完全無法歸類的檔案 +- 外部提供的參考檔案 +- 特殊用途的實用工具 + +```bash +mkdir -p misc +mv strange_utility.txt misc/ +``` + +### 🚫 根目錄保留檔案 + +只有以下檔案允許留在根目錄: + +- `README.md` - 專案說明 +- `CLAUDE.md` - Claude 工作指南 +- `PROJECTS.md` - 專案管理 +- `ISSUES.md` - 問題追蹤 +- `dl` - 主要管理工具 +- `.gitignore`, `.DS_Store` 等系統檔案 + +## 🛠️ 歸類決策流程 + +遇到無法歸類的檔案時,按以下順序決策: + +### 1. 功能性檢查 +``` +Q: 這個檔案有明確的功能分類嗎? +└─ Yes → 放入對應的功能目錄 +└─ No → 繼續下一步 +``` + +### 2. 時效性檢查 +``` +Q: 這個檔案是臨時性的嗎? +└─ Yes → 放入 temp/ +└─ No → 繼續下一步 +``` + +### 3. 歷史性檢查 +``` +Q: 這個檔案是歷史檔案嗎? +└─ Yes → 放入 archive/[date]/ +└─ No → 繼續下一步 +``` + +### 4. 最終歸類 +``` +無法明確歸類 → 放入 misc/ +``` + +## 📝 檔案移動記錄 + +當移動檔案時,建議在對應的 README.md 中記錄: + +```markdown +## 檔案移動記錄 (2025-09-08) + +- `old_script.sh` → `archive/2025-09-08/` (已完成功能,保存備查) +- `test_file.txt` → `temp/` (測試用檔案) +- `utility.py` → `misc/` (外部工具,無明確分類) +``` + +## 🧹 定期清理策略 + +### 每月清理 (月初執行) + +1. **檢查 temp/ 目錄** + - 刪除超過30天的檔案 + - 確認是否有檔案需要移到其他目錄 + +2. **檢查 misc/ 目錄** + - 重新評估檔案是否能明確歸類 + - 移除不再需要的檔案 + +### 每季清理 (季初執行) + +1. **檢查 archive/ 目錄** + - 整理和壓縮舊檔案 + - 確認是否可以永久刪除某些檔案 + +## 🚨 緊急處理 + +當 Claude 產生了無法立即歸類的檔案時: + +```bash +# 創建帶時間戳的臨時目錄 +mkdir -p temp/$(date +%Y%m%d_%H%M%S) + +# 移動未歸類檔案 +mv uncategorized_file.* temp/$(date +%Y%m%d_%H%M%S)/ + +# 記錄移動原因 +echo "Moved uncategorized files generated during [task description]" > temp/$(date +%Y%m%d_%H%M%S)/README.md +``` + +## 🎯 持續改善 + +這個策略會根據實際使用情況持續調整和改善。 + +--- + +**建立時間**: 2025-09-08 +**適用範圍**: Drama Ling 專案 +**維護者**: Drama Ling 開發團隊 \ No newline at end of file diff --git a/src/mobile/.metadata b/src/mobile/.metadata index 8c395df..df91325 100644 --- a/src/mobile/.metadata +++ b/src/mobile/.metadata @@ -15,7 +15,10 @@ migration: - platform: root create_revision: a402d9a4376add5bc2d6b1e33e53edaae58c07f8 base_revision: a402d9a4376add5bc2d6b1e33e53edaae58c07f8 - - platform: web + - platform: android + create_revision: a402d9a4376add5bc2d6b1e33e53edaae58c07f8 + base_revision: a402d9a4376add5bc2d6b1e33e53edaae58c07f8 + - platform: ios create_revision: a402d9a4376add5bc2d6b1e33e53edaae58c07f8 base_revision: a402d9a4376add5bc2d6b1e33e53edaae58c07f8 diff --git a/src/mobile/android/.gitignore b/src/mobile/android/.gitignore new file mode 100644 index 0000000..be3943c --- /dev/null +++ b/src/mobile/android/.gitignore @@ -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 diff --git a/src/mobile/android/app/build.gradle.kts b/src/mobile/android/app/build.gradle.kts new file mode 100644 index 0000000..2b19e69 --- /dev/null +++ b/src/mobile/android/app/build.gradle.kts @@ -0,0 +1,52 @@ +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.dramaling.app" + compileSdk = flutter.compileSdkVersion + ndkVersion = flutter.ndkVersion + + compileOptions { + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 + } + + kotlinOptions { + jvmTarget = JavaVersion.VERSION_11.toString() + } + + defaultConfig { + applicationId = "com.dramaling.app" + // 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 { + // Signing with debug keys for development + // In production, replace with proper signing configuration + signingConfig = signingConfigs.getByName("debug") + + // Enable code shrinking, obfuscation, and optimization + isMinifyEnabled = true + isShrinkResources = true + proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") + } + debug { + applicationIdSuffix = ".debug" + isDebuggable = true + } + } +} + +flutter { + source = "../.." +} diff --git a/src/mobile/android/app/proguard-rules.pro b/src/mobile/android/app/proguard-rules.pro new file mode 100644 index 0000000..74831a1 --- /dev/null +++ b/src/mobile/android/app/proguard-rules.pro @@ -0,0 +1,42 @@ +# Flutter specific rules +-keep class io.flutter.app.** { *; } +-keep class io.flutter.plugin.** { *; } +-keep class io.flutter.util.** { *; } +-keep class io.flutter.view.** { *; } +-keep class io.flutter.** { *; } +-keep class io.flutter.plugins.** { *; } +-dontwarn io.flutter.embedding.** + +# Keep Flutter engine native methods +-keep class io.flutter.embedding.engine.FlutterJNI { *; } + +# Audio players plugin +-keep class com.ryanheise.just_audio.** { *; } +-keep class xyz.luan.audioplayers.** { *; } + +# Network (Dio/Retrofit) +-keepattributes Signature +-keepattributes *Annotation* +-keep class retrofit2.** { *; } +-keep class com.google.gson.** { *; } +-keepclassmembers,allowobfuscation class * { + @com.google.gson.annotations.SerializedName ; +} + +# Riverpod +-keep class * extends com.riverpod.** { *; } + +# Flutter secure storage +-keep class com.it_nomads.fluttersecurestorage.** { *; } + +# General Android rules +-keepclassmembers class * implements android.os.Parcelable { + public static final android.os.Parcelable$Creator CREATOR; +} + +# Remove logging in release +-assumenosideeffects class android.util.Log { + public static *** d(...); + public static *** v(...); + public static *** i(...); +} \ No newline at end of file diff --git a/src/mobile/android/app/src/main/AndroidManifest.xml b/src/mobile/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..3836dfe --- /dev/null +++ b/src/mobile/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/mobile/android/app/src/main/kotlin/com/dramaling/app/MainActivity.kt b/src/mobile/android/app/src/main/kotlin/com/dramaling/app/MainActivity.kt new file mode 100644 index 0000000..4eaf510 --- /dev/null +++ b/src/mobile/android/app/src/main/kotlin/com/dramaling/app/MainActivity.kt @@ -0,0 +1,5 @@ +package com.dramaling.app + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity : FlutterActivity() \ No newline at end of file diff --git a/src/mobile/android/app/src/main/res/drawable-v21/launch_background.xml b/src/mobile/android/app/src/main/res/drawable-v21/launch_background.xml new file mode 100644 index 0000000..f74085f --- /dev/null +++ b/src/mobile/android/app/src/main/res/drawable-v21/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/src/mobile/android/app/src/main/res/drawable/launch_background.xml b/src/mobile/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000..304732f --- /dev/null +++ b/src/mobile/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/src/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/src/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..db77bb4 Binary files /dev/null and b/src/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/src/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/src/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..17987b7 Binary files /dev/null and b/src/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/src/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/src/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..09d4391 Binary files /dev/null and b/src/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/src/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/src/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..d5f1c8d Binary files /dev/null and b/src/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/src/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/src/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..4d6372e Binary files /dev/null and b/src/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/src/mobile/android/app/src/main/res/values-night/styles.xml b/src/mobile/android/app/src/main/res/values-night/styles.xml new file mode 100644 index 0000000..06952be --- /dev/null +++ b/src/mobile/android/app/src/main/res/values-night/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/src/mobile/android/app/src/main/res/values/styles.xml b/src/mobile/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..cb1ef88 --- /dev/null +++ b/src/mobile/android/app/src/main/res/values/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/src/mobile/android/build.gradle.kts b/src/mobile/android/build.gradle.kts new file mode 100644 index 0000000..dbee657 --- /dev/null +++ b/src/mobile/android/build.gradle.kts @@ -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("clean") { + delete(rootProject.layout.buildDirectory) +} diff --git a/src/mobile/android/gradle.properties b/src/mobile/android/gradle.properties new file mode 100644 index 0000000..f018a61 --- /dev/null +++ b/src/mobile/android/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError +android.useAndroidX=true +android.enableJetifier=true diff --git a/src/mobile/android/gradle/wrapper/gradle-wrapper.properties b/src/mobile/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..ac3b479 --- /dev/null +++ b/src/mobile/android/gradle/wrapper/gradle-wrapper.properties @@ -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.12-all.zip diff --git a/src/mobile/android/settings.gradle.kts b/src/mobile/android/settings.gradle.kts new file mode 100644 index 0000000..fb605bc --- /dev/null +++ b/src/mobile/android/settings.gradle.kts @@ -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.9.1" apply false + id("org.jetbrains.kotlin.android") version "2.1.0" apply false +} + +include(":app") diff --git a/src/mobile/ios/.gitignore b/src/mobile/ios/.gitignore new file mode 100644 index 0000000..7a7f987 --- /dev/null +++ b/src/mobile/ios/.gitignore @@ -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 diff --git a/src/mobile/ios/Flutter/AppFrameworkInfo.plist b/src/mobile/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000..1dc6cf7 --- /dev/null +++ b/src/mobile/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 13.0 + + diff --git a/src/mobile/ios/Flutter/Debug.xcconfig b/src/mobile/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000..ec97fc6 --- /dev/null +++ b/src/mobile/ios/Flutter/Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "Generated.xcconfig" diff --git a/src/mobile/ios/Flutter/Release.xcconfig b/src/mobile/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000..c4855bf --- /dev/null +++ b/src/mobile/ios/Flutter/Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "Generated.xcconfig" diff --git a/src/mobile/ios/Podfile b/src/mobile/ios/Podfile new file mode 100644 index 0000000..620e46e --- /dev/null +++ b/src/mobile/ios/Podfile @@ -0,0 +1,43 @@ +# Uncomment this line to define a global platform for your project +# platform :ios, '13.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + use_frameworks! + + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) + target 'RunnerTests' do + inherit! :search_paths + end +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + end +end diff --git a/src/mobile/ios/Runner.xcodeproj/project.pbxproj b/src/mobile/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..c839a7d --- /dev/null +++ b/src/mobile/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,619 @@ +// !$*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 */; }; + 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 = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; + 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 = ""; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 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 = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* 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 = ""; + }; + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + 331C8082294A63A400263BE5 /* RunnerTests */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + 331C8081294A63A400263BE5 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 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 */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; +/* 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 */, + ); + 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 = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* 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)"; + DEVELOPMENT_TEAM = ZN2U6988BZ; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.dramaling; + 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.dramaling.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.dramaling.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.dramaling.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)"; + DEVELOPMENT_TEAM = ZN2U6988BZ; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.dramaling; + 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)"; + DEVELOPMENT_TEAM = ZN2U6988BZ; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.dramaling; + 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 */; +} diff --git a/src/mobile/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/src/mobile/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/src/mobile/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/src/mobile/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/src/mobile/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/src/mobile/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/src/mobile/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/src/mobile/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/src/mobile/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/src/mobile/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/src/mobile/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000..e3773d4 --- /dev/null +++ b/src/mobile/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/mobile/ios/Runner.xcworkspace/contents.xcworkspacedata b/src/mobile/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1d526a1 --- /dev/null +++ b/src/mobile/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/src/mobile/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/src/mobile/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/src/mobile/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/src/mobile/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/src/mobile/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/src/mobile/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/src/mobile/ios/Runner/AppDelegate.swift b/src/mobile/ios/Runner/AppDelegate.swift new file mode 100644 index 0000000..6266644 --- /dev/null +++ b/src/mobile/ios/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +import Flutter +import UIKit + +@main +@objc class AppDelegate: FlutterAppDelegate { + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + GeneratedPluginRegistrant.register(with: self) + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } +} diff --git a/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d36b1fa --- /dev/null +++ b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -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" + } +} diff --git a/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000..dc9ada4 Binary files /dev/null and b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000..7353c41 Binary files /dev/null and b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000..797d452 Binary files /dev/null and b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000..6ed2d93 Binary files /dev/null and b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000..4cd7b00 Binary files /dev/null and b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000..fe73094 Binary files /dev/null and b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000..321773c Binary files /dev/null and b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000..797d452 Binary files /dev/null and b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000..502f463 Binary files /dev/null and b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000..0ec3034 Binary files /dev/null and b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000..0ec3034 Binary files /dev/null and b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000..e9f5fea Binary files /dev/null and b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000..84ac32a Binary files /dev/null and b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000..8953cba Binary files /dev/null and b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000..0467bf1 Binary files /dev/null and b/src/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/src/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/src/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000..0bedcf2 --- /dev/null +++ b/src/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -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" + } +} diff --git a/src/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/src/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/src/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/src/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/src/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/src/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/src/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/src/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/src/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/src/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/src/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000..89c2725 --- /dev/null +++ b/src/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -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. \ No newline at end of file diff --git a/src/mobile/ios/Runner/Base.lproj/LaunchScreen.storyboard b/src/mobile/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f2e259c --- /dev/null +++ b/src/mobile/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/mobile/ios/Runner/Base.lproj/Main.storyboard b/src/mobile/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000..f3c2851 --- /dev/null +++ b/src/mobile/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/mobile/ios/Runner/Info.plist b/src/mobile/ios/Runner/Info.plist new file mode 100644 index 0000000..91197c7 --- /dev/null +++ b/src/mobile/ios/Runner/Info.plist @@ -0,0 +1,49 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Dramaling + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + dramaling + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + + + diff --git a/src/mobile/ios/Runner/Runner-Bridging-Header.h b/src/mobile/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 0000000..308a2a5 --- /dev/null +++ b/src/mobile/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1 @@ +#import "GeneratedPluginRegistrant.h" diff --git a/src/mobile/ios/RunnerTests/RunnerTests.swift b/src/mobile/ios/RunnerTests/RunnerTests.swift new file mode 100644 index 0000000..86a7c3b --- /dev/null +++ b/src/mobile/ios/RunnerTests/RunnerTests.swift @@ -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. + } + +} diff --git a/tools/environment/android/android_setup_verification.sh b/tools/environment/android/android_setup_verification.sh new file mode 100755 index 0000000..06f2b28 --- /dev/null +++ b/tools/environment/android/android_setup_verification.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +echo "🔍 Verifying Android Studio installation..." + +# Check Android Studio installation +if [ -d "/Applications/Android Studio.app" ]; then + echo "✅ Android Studio installed" +else + echo "❌ Android Studio not found" +fi + +# Check Android SDK +if [ -d "$HOME/Library/Android/sdk" ]; then + echo "✅ Android SDK found at ~/Library/Android/sdk" + echo "📱 Available SDK platforms:" + ls "$HOME/Library/Android/sdk/platforms/" 2>/dev/null | head -5 + + echo "🔧 Available build tools:" + ls "$HOME/Library/Android/sdk/build-tools/" 2>/dev/null | head -5 +else + echo "❌ Android SDK not found. Please complete Android Studio setup wizard." +fi + +# Check Java +if command -v java &> /dev/null; then + echo "✅ Java installed: $(java -version 2>&1 | head -1)" +else + echo "❌ Java not found" +fi + +# Set environment variables for this session +export ANDROID_HOME="$HOME/Library/Android/sdk" +export PATH="$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools" +export PATH="/opt/homebrew/opt/openjdk@17/bin:$PATH" + +echo "🔄 Testing Flutter with Android toolchain..." +/Users/jettcheng1018/flutter/bin/flutter doctor \ No newline at end of file diff --git a/tools/environment/android/emulator_setup_guide.md b/tools/environment/android/emulator_setup_guide.md new file mode 100644 index 0000000..acd779d --- /dev/null +++ b/tools/environment/android/emulator_setup_guide.md @@ -0,0 +1,123 @@ +# Android 模擬器設置指南 + +## 📱 當前狀態 +- ✅ Android Studio 已安裝 +- ❌ Android SDK 需要安裝 +- ❌ Android 模擬器需要設置 + +## 🚀 第一步:完成 Android Studio 設置向導 + +Android Studio 應該已經啟動。請按照以下步驟: + +### 1. 初始設置向導 +1. **歡迎頁面** - 點擊 "Next" +2. **安裝類型** - 選擇 "Standard" (標準安裝) +3. **UI 主題** - 選擇您喜歡的主題 +4. **SDK 組件驗證** - 確認以下組件會被安裝: + - Android SDK Platform + - Android SDK Platform-Tools + - Android SDK Build-Tools + - Android Emulator + - Android SDK Platform-Tools + - Intel x86 Emulator Accelerator (HAXM installer) 或 Android Emulator Hypervisor Driver + +### 2. 授權協議 +- 接受所有 SDK 授權協議 +- 點擊 "Accept" 對所有許可證 + +### 3. 組件下載 +- 等待 SDK 組件下載和安裝(可能需要 10-15 分鐘) +- 確保網路連線穩定 + +## 📱 第二步:創建 Android 模擬器 + +SDK 安裝完成後: + +### 1. 打開 AVD Manager +- 在 Android Studio 中,點擊 "Tools" → "AVD Manager" +- 或點擊工具欄中的手機圖標 + +### 2. 創建虛擬設備 +1. 點擊 "Create Virtual Device" +2. **選擇設備**: + - 推薦:Pixel 4 或 Pixel 6 + - 類別:Phone +3. **選擇系統映像**: + - 推薦:最新的 API 34 (Android 14) + - 如果沒有下載,點擊 "Download" +4. **配置 AVD**: + - AVD 名稱:`Pixel_4_API_34` (或類似) + - 啟動方向:Portrait + - 其他設置保持預設 + +### 3. 啟動模擬器 +- 點擊模擬器旁的 "Play" 按鈕 +- 首次啟動需要較長時間 + +## 🔍 第三步:驗證設置 + +模擬器啟動後,執行以下驗證: + +### 1. 檢查 Android 工具鏈 +```bash +./tools/environment/android/android_setup_verification.sh +``` + +### 2. 檢查 Flutter 支援 +```bash +/Users/jettcheng1018/flutter/bin/flutter doctor +``` + +應該看到: +- ✅ Android toolchain - develop for Android devices +- ✅ Android Studio (version 2025.1) + +### 3. 檢查可用設備 +```bash +/Users/jettcheng1018/flutter/bin/flutter devices +``` + +應該顯示您的模擬器設備 + +## 🚨 常見問題解決 + +### 問題1:HAXM 安裝失敗 +```bash +# 檢查是否支援虛擬化 +sysctl -a | grep machdep.cpu.features +``` + +### 問題2:模擬器啟動緩慢 +- 在 AVD 設置中啟用 "Graphics: Hardware - GLES 2.0" +- 增加 RAM 到 4GB 或更多 + +### 問題3:SDK 找不到 +```bash +# 設置環境變數 +export ANDROID_HOME=$HOME/Library/Android/sdk +export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools +``` + +## 📋 檢查清單 + +完成以下所有項目: + +- [ ] Android Studio 設置向導已完成 +- [ ] Android SDK 已安裝到 `~/Library/Android/sdk` +- [ ] Android 模擬器已創建 +- [ ] 模擬器可以成功啟動 +- [ ] Flutter doctor 顯示 Android 工具鏈正常 +- [ ] Flutter devices 可以檢測到模擬器 + +## ⏭️ 下一步 + +完成上述設置後,您可以: +1. 在模擬器中測試 Flutter 應用 +2. 進行 Drama Ling APP 的開發和調試 +3. 測試不同的 Android 版本相容性 + +--- + +**估計時間**: 20-30 分鐘 +**網路需求**: 需要穩定的網路連線下載 SDK +**硬碟空間**: 約需要 10GB 空間 \ No newline at end of file diff --git a/tools/environment/android/manual_sdk_setup.sh b/tools/environment/android/manual_sdk_setup.sh new file mode 100755 index 0000000..56e8145 --- /dev/null +++ b/tools/environment/android/manual_sdk_setup.sh @@ -0,0 +1,91 @@ +#!/bin/bash + +echo "🤖 手動 Android SDK 安裝腳本" +echo "===============================" + +# 檢查 Android Studio 是否已安裝 +if [ ! -d "/Applications/Android Studio.app" ]; then + echo "❌ Android Studio 未安裝" + exit 1 +fi + +# 設定 SDK 路徑 +SDK_PATH="$HOME/Library/Android/sdk" +echo "📱 SDK 安裝路徑: $SDK_PATH" + +# 創建 SDK 目錄 +mkdir -p "$SDK_PATH" + +# 設定環境變數 +export ANDROID_HOME="$SDK_PATH" +export PATH="$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools" + +echo "🔧 設定環境變數完成" + +# 檢查 cmdline-tools 是否存在 +CMDLINE_TOOLS="$SDK_PATH/cmdline-tools/latest/bin/sdkmanager" + +if [ ! -f "$CMDLINE_TOOLS" ]; then + echo "📥 下載 Android SDK Command Line Tools..." + + # 下載最新的 cmdline-tools + TOOLS_URL="https://dl.google.com/android/repository/commandlinetools-mac-11076708_latest.zip" + + cd /tmp + curl -o cmdline-tools.zip "$TOOLS_URL" + + if [ $? -eq 0 ]; then + echo "✅ 下載成功,正在解壓..." + unzip -q cmdline-tools.zip + + # 創建正確的目錄結構 + mkdir -p "$SDK_PATH/cmdline-tools" + mv cmdline-tools "$SDK_PATH/cmdline-tools/latest" + + echo "✅ Command Line Tools 安裝完成" + else + echo "❌ 下載失敗,請檢查網路連線" + exit 1 + fi +fi + +# 更新 sdkmanager 路徑 +CMDLINE_TOOLS="$SDK_PATH/cmdline-tools/latest/bin/sdkmanager" + +if [ -f "$CMDLINE_TOOLS" ]; then + echo "🔄 安裝基本 SDK 組件..." + + # 接受授權 + yes | "$CMDLINE_TOOLS" --licenses + + # 安裝基本組件 + "$CMDLINE_TOOLS" "platform-tools" "platforms;android-34" "build-tools;34.0.0" "emulator" "system-images;android-34;google_apis;arm64-v8a" + + echo "✅ 基本 SDK 組件安裝完成" + + # 創建模擬器 + echo "📱 創建 Android 模擬器..." + + AVDMANAGER="$SDK_PATH/cmdline-tools/latest/bin/avdmanager" + + if [ -f "$AVDMANAGER" ]; then + # 創建 AVD + echo "no" | "$AVDMANAGER" create avd -n "Pixel_4_API_34" -k "system-images;android-34;google_apis;arm64-v8a" -d "pixel_4" + + echo "✅ Android 模擬器創建完成: Pixel_4_API_34" + fi + +else + echo "❌ SDK Manager 未找到" + exit 1 +fi + +echo "" +echo "🎉 Android SDK 手動安裝完成!" +echo "" +echo "📋 驗證安裝:" +echo "export ANDROID_HOME=\"$SDK_PATH\"" +echo "export PATH=\"\$PATH:\$ANDROID_HOME/tools:\$ANDROID_HOME/platform-tools\"" +echo "" +echo "執行驗證:" +echo "./tools/environment/android/android_setup_verification.sh" \ No newline at end of file diff --git a/tools/environment/xcode/complete_xcode_setup.sh b/tools/environment/xcode/complete_xcode_setup.sh new file mode 100755 index 0000000..0d94d91 --- /dev/null +++ b/tools/environment/xcode/complete_xcode_setup.sh @@ -0,0 +1,167 @@ +#!/bin/bash + +echo "🍎 完整的 Xcode 設定腳本" +echo "=======================" + +# Function to check if Xcode is installed +check_xcode_installation() { + if [ -d "/Applications/Xcode.app" ]; then + echo "✅ Xcode 已安裝" + return 0 + else + echo "❌ Xcode 尚未安裝" + echo "請先從 Mac App Store 安裝 Xcode" + return 1 + fi +} + +# Function to configure Xcode developer tools +configure_xcode_tools() { + echo "🔧 設定 Xcode 開發者工具..." + + # Set Xcode developer directory + echo "設定 Xcode 開發者路徑..." + sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer + + if [ $? -eq 0 ]; then + echo "✅ Xcode 開發者路徑設定成功" + else + echo "❌ Xcode 開發者路徑設定失敗" + return 1 + fi + + # Run first launch + echo "執行 Xcode 首次啟動設定..." + sudo xcodebuild -runFirstLaunch + + if [ $? -eq 0 ]; then + echo "✅ Xcode 首次啟動設定完成" + else + echo "❌ Xcode 首次啟動設定失敗" + return 1 + fi + + # Accept license + echo "接受 Xcode 授權條款..." + sudo xcodebuild -license accept + + if [ $? -eq 0 ]; then + echo "✅ Xcode 授權條款已接受" + else + echo "❌ Xcode 授權條款接受失敗" + return 1 + fi +} + +# Function to install CocoaPods if not present +install_cocoapods() { + if command -v pod &> /dev/null; then + echo "✅ CocoaPods 已存在" + else + echo "🔧 安裝 CocoaPods..." + sudo gem install cocoapods + + if [ $? -eq 0 ]; then + echo "✅ CocoaPods 安裝成功" + else + echo "❌ CocoaPods 安裝失敗" + return 1 + fi + fi +} + +# Function to configure Flutter for iOS +configure_flutter_ios() { + echo "🐦 設定 Flutter iOS 開發環境..." + + # Add Flutter to PATH for this session + export PATH="/Users/jettcheng1018/flutter/bin:$PATH" + + # Run Flutter doctor to check iOS setup + flutter doctor --doctor-ios-only 2>/dev/null || flutter doctor + + echo "✅ Flutter iOS 設定檢查完成" +} + +# Function to verify the complete setup +verify_setup() { + echo "🔍 驗證完整設定..." + + # Run the verification script + if [ -f "./tools/environment/xcode/xcode_verification.sh" ]; then + ./tools/environment/xcode/xcode_verification.sh + else + echo "⚠️ 驗證腳本不存在,執行基本檢查..." + + # Basic verification + if [ -d "/Applications/Xcode.app" ]; then + echo "✅ Xcode 已安裝" + + XCODE_PATH=$(xcode-select --print-path) + if [[ "$XCODE_PATH" == "/Applications/Xcode.app/Contents/Developer" ]]; then + echo "✅ Xcode 開發者路徑正確" + else + echo "❌ Xcode 開發者路徑不正確: $XCODE_PATH" + fi + else + echo "❌ Xcode 未安裝" + fi + fi +} + +# Function to update project status +update_project_status() { + echo "📝 更新專案狀態..." + + # Update PROJECTS.md + if [ -f "PROJECTS.md" ]; then + # Replace the status line for Xcode installation + if sed -i.bak 's/⏳ `ENV` Xcode 安裝配置 (iOS支援)/✅ `ENV` Xcode 安裝配置 (iOS支援) (2025-09-08)/' PROJECTS.md; then + echo "✅ 專案狀態已更新" + else + echo "⚠️ 專案狀態更新可能失敗" + fi + else + echo "⚠️ PROJECTS.md 檔案不存在" + fi +} + +# Main execution flow +main() { + echo "開始 Xcode 完整設定流程..." + echo "" + + # Check if Xcode is installed + if ! check_xcode_installation; then + echo "請先安裝 Xcode 然後再次執行此腳本" + exit 1 + fi + + # Configure Xcode tools + if ! configure_xcode_tools; then + echo "Xcode 工具設定失敗" + exit 1 + fi + + # Install CocoaPods + if ! install_cocoapods; then + echo "CocoaPods 安裝失敗" + exit 1 + fi + + # Configure Flutter for iOS + configure_flutter_ios + + # Verify setup + verify_setup + + # Update project status + update_project_status + + echo "" + echo "🎉 Xcode 設定完成!" + echo "現在您可以開始 iOS 開發了" +} + +# Run main function +main \ No newline at end of file diff --git a/tools/environment/xcode/monitor_xcode_installation.sh b/tools/environment/xcode/monitor_xcode_installation.sh new file mode 100755 index 0000000..0f09f90 --- /dev/null +++ b/tools/environment/xcode/monitor_xcode_installation.sh @@ -0,0 +1,51 @@ +#!/bin/bash + +echo "📱 Xcode 安裝監控工具" +echo "===================" + +# Function to get current timestamp +get_timestamp() { + date '+%Y-%m-%d %H:%M:%S' +} + +# Function to check installation status +check_installation() { + if [ -d "/Applications/Xcode.app" ]; then + return 0 # Installed + else + return 1 # Not installed + fi +} + +# Function to get installation size +get_installation_size() { + if [ -d "/Applications/Xcode.app" ]; then + du -sh "/Applications/Xcode.app" 2>/dev/null | cut -f1 + else + echo "0MB" + fi +} + +echo "開始監控 Xcode 安裝狀態..." +echo "按 Ctrl+C 停止監控" +echo "" + +# Initial status +echo "[$(get_timestamp)] 初始檢查: Xcode 安裝狀態" + +# Monitor loop +while true; do + if check_installation; then + SIZE=$(get_installation_size) + echo "[$(get_timestamp)] ✅ Xcode 安裝完成! (大小: $SIZE)" + echo "" + echo "🎉 安裝完成!現在可以執行配置腳本:" + echo "./tools/environment/xcode/complete_xcode_setup.sh" + break + else + echo "[$(get_timestamp)] ⏳ Xcode 安裝中..." + fi + + # Wait 30 seconds before next check + sleep 30 +done \ No newline at end of file diff --git a/tools/environment/xcode/setup_instructions.md b/tools/environment/xcode/setup_instructions.md new file mode 100644 index 0000000..6b48e8d --- /dev/null +++ b/tools/environment/xcode/setup_instructions.md @@ -0,0 +1,43 @@ +# Xcode 安裝完成 - 手動設定步驟 + +## 🎉 Xcode 安裝成功! + +Xcode 已成功安裝到 `/Applications/Xcode.app` + +## ⚡ 必要的設定步驟 + +請在終端中執行以下命令來完成 Xcode 配置: + +### 1. 設定 Xcode 開發者路徑 +```bash +sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer +``` + +### 2. 執行首次啟動設定 +```bash +sudo xcodebuild -runFirstLaunch +``` + +### 3. 接受授權條款 +```bash +sudo xcodebuild -license accept +``` + +## 🔍 驗證設定 + +設定完成後,執行驗證腳本: +```bash +./tools/environment/xcode/xcode_verification.sh +``` + +## 📱 檢查 Flutter iOS 支援 + +```bash +/Users/jettcheng1018/flutter/bin/flutter doctor +``` + +應該會看到 Xcode 項目變成 ✅ + +--- + +**執行完成後,請告知結果,我會更新專案狀態。** \ No newline at end of file diff --git a/tools/environment/xcode/xcode_verification.sh b/tools/environment/xcode/xcode_verification.sh new file mode 100755 index 0000000..4a6d3f5 --- /dev/null +++ b/tools/environment/xcode/xcode_verification.sh @@ -0,0 +1,68 @@ +#!/bin/bash + +echo "🔍 Xcode 安裝驗證工具" +echo "====================" + +# Check if Xcode is installed +if [ -d "/Applications/Xcode.app" ]; then + echo "✅ Xcode 應用程式已安裝" + + # Get Xcode version + XCODE_VERSION=$(/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -version 2>/dev/null | head -1) + if [ ! -z "$XCODE_VERSION" ]; then + echo "📱 Xcode 版本: $XCODE_VERSION" + fi +else + echo "❌ Xcode 應用程式未安裝" + echo "請使用以下方法安裝:" + echo "1. 打開 Mac App Store 搜尋 Xcode" + echo "2. 或執行: mas install 497799835" + exit 1 +fi + +# Check Xcode developer path +XCODE_PATH=$(xcode-select --print-path 2>/dev/null) +if [[ "$XCODE_PATH" == "/Applications/Xcode.app/Contents/Developer" ]]; then + echo "✅ Xcode 開發者路徑設定正確" +else + echo "⚠️ Xcode 開發者路徑需要設定" + echo "請執行: sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer" +fi + +# Check if first launch has been run +if xcodebuild -checkFirstLaunchStatus 2>/dev/null; then + echo "✅ Xcode 首次啟動已完成" +else + echo "⚠️ 需要執行首次啟動設定" + echo "請執行: sudo xcodebuild -runFirstLaunch" +fi + +# Check license agreement +if xcodebuild -license check 2>/dev/null; then + echo "✅ Xcode 授權條款已接受" +else + echo "⚠️ 需要接受 Xcode 授權條款" + echo "請執行: sudo xcodebuild -license accept" +fi + +# Check iOS simulators +SIMULATORS=$(xcrun simctl list devices available 2>/dev/null | grep "iOS" | wc -l) +if [ "$SIMULATORS" -gt 0 ]; then + echo "✅ iOS 模擬器可用 ($SIMULATORS 個)" +else + echo "⚠️ 未找到 iOS 模擬器,請透過 Xcode 下載" +fi + +# Check CocoaPods +if command -v pod &> /dev/null; then + POD_VERSION=$(pod --version) + echo "✅ CocoaPods 已安裝: v$POD_VERSION" +else + echo "⚠️ CocoaPods 未安裝" + echo "請執行: sudo gem install cocoapods" +fi + +echo "" +echo "🔄 Flutter iOS 開發環境檢查:" +export PATH="/Users/jettcheng1018/flutter/bin:$PATH" +flutter doctor --doctor-check-ios \ No newline at end of file