diff --git a/.gitignore b/.gitignore
index f9e186c..8b3e939 100644
--- a/.gitignore
+++ b/.gitignore
@@ -84,3 +84,5 @@ yarn.lock
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
/graalvm_test/build
/graalvm_test_native_interop/build
+crossword_companion/firebase.json
+crossword_companion/lib/firebase_options.dart
diff --git a/crossword_companion/.gitignore b/crossword_companion/.gitignore
new file mode 100644
index 0000000..3820a95
--- /dev/null
+++ b/crossword_companion/.gitignore
@@ -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
diff --git a/crossword_companion/.metadata b/crossword_companion/.metadata
new file mode 100644
index 0000000..b9fd747
--- /dev/null
+++ b/crossword_companion/.metadata
@@ -0,0 +1,30 @@
+# 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: "adc901062556672b4138e18a4dc62a4be8f4b3c2"
+ channel: "stable"
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: adc901062556672b4138e18a4dc62a4be8f4b3c2
+ base_revision: adc901062556672b4138e18a4dc62a4be8f4b3c2
+ - platform: ios
+ create_revision: adc901062556672b4138e18a4dc62a4be8f4b3c2
+ base_revision: adc901062556672b4138e18a4dc62a4be8f4b3c2
+
+ # 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'
diff --git a/crossword_companion/GEMINI.md b/crossword_companion/GEMINI.md
new file mode 100644
index 0000000..2dcce8f
--- /dev/null
+++ b/crossword_companion/GEMINI.md
@@ -0,0 +1,250 @@
+# Gemini Code-Gen Best Practices for This Project
+
+This document outlines the best practices and coding standards to be followed
+during the development of this Flutter project. Adhering to these guidelines
+will ensure the codebase is clean, maintainable, and scalable.
+
+## Architectural Principles
+
+- **DRY (Don’t Repeat Yourself)** – eliminate duplicated logic by extracting
+ shared utilities and modules.
+- **Separation of Concerns** – each module should handle one distinct
+ responsibility.
+- **Single Responsibility Principle (SRP)** – every class/module/function/file
+ should have exactly one reason to change.
+- **Clear Abstractions & Contracts** – expose intent through small, stable
+ interfaces and hide implementation details.
+- **Low Coupling, High Cohesion** – keep modules self-contained, minimize
+ cross-dependencies.
+- **Scalability & Statelessness** – design components to scale horizontally and
+ prefer stateless services when possible.
+- **Observability & Testability** – build in logging, metrics, tracing, and
+ ensure components can be unit/integration tested.
+- **KISS (Keep It Simple, Sir)** - keep solutions as simple as possible.
+- **YAGNI (You're Not Gonna Need It)** – avoid speculative complexity or
+ over-engineering.
+
+## Coding Standards
+
+### Linting
+This project uses the standard set of lints provided by the `flutter_lints`
+package. Ensure that all code adheres to these rules to maintain code quality
+and consistency. Run `flutter analyze` frequently to check for linting issues.
+
+### Naming Conventions
+- **Files:** Use `snake_case` for file names (e.g., `user_profile.dart`).
+- **Classes:** Use `PascalCase` for classes (e.g., `UserProfile`).
+- **Methods and Variables:** Use `camelCase` for methods and variables (e.g.,
+ `getUserProfile`).
+- **Constants:** Use `camelCase` for constants (e.g., `defaultTimeout`).
+
+### Cross-Platform Compatibility
+This application targets Android, iOS, web, and macOS. All code must be written
+to be platform-agnostic.
+
+- **Avoid Platform-Specific APIs:** Do not use platform-specific libraries or
+ APIs directly (e.g., `dart:io`'s `File` class for UI rendering). When
+ platform-specific code is unavoidable, it is abstracted away behind a common
+ interface using an adapter pattern, as seen in the `lib/platform` directory.
+- **Use Flutter-Native Solutions:** Prefer Flutter's built-in, cross-platform
+ widgets and utilities (e.g., `Image.memory` with byte data for displaying
+ images from `image_picker`, which works on all platforms).
+- **Verify Plugin Compatibility:** Before using a new package, ensure it
+ supports all target platforms (Android, iOS, web).
+
+### Don't Swallow Errors
+- **Don't Swallow Errors** by catching expections, silently filling in required
+ but missing values or adding timeouts when something hangs unexpectedly. All
+ of those are exceptions that should be thrown so that the errors can be seen,
+ root causes can be found and fixes can be applied.
+- **Use Assertions for Invariants:** Use `assert` statements to validate
+ assumptions and logical invariants in your code. For example, if a function
+ requires a list to be non-empty before proceeding, assert that condition at
+ the beginning of the function. This practice turns potential silent failures
+ into loud, immediate errors during development, making complex bugs
+ significantly easier to track down.
+
+### Null Value Handling
+- Prefer using required parameters in constructors and methods when a value is
+ not expected to be null.
+- When the compiler requires a non-null value and you are certain a value is not
+ null at that point, use the `!` (bang) operator. This turns invalid null
+ assumptions into runtime exceptions, making them easier to find and fix.
+- Avoid providing default values for nullable types simply to satisfy the
+ compiler, as this can hide underlying data issues.
+
+### Widget Development
+- **`const` Constructors:** Use `const` constructors for widgets whenever
+ possible to improve performance by allowing Flutter to cache and reuse widget
+ instances.
+- **Break Down Large Widgets:** Decompose large widget build methods into
+ smaller, more manageable widgets. This improves readability, reusability, and
+ performance.
+
+### No Placeholder Code
+- We're building production code here, not toys. Avoid placeholder code.
+
+### No Comments for Removed Functionality
+- The source is not the place to keep a history of what's changed; it's the
+ place to implement the current requirements only. Use version control for
+ history.
+
+## Styling and Theming
+
+### Avoid Hardcoded Values
+- **Do not** hardcode colors, dimensions, text styles, or other style values
+ directly in widgets.
+- All centralized style-related code should be consolidated into
+ `lib/styles.dart`.
+- Create descriptive, `camelCase` constants in a dedicated `lib/styles.dart`
+ file for any reusable style values that are not part of the main theme.
+
+### Theme Architecture
+- The app uses Material Design 3 with a centralized theme defined in
+ `main.dart`.
+- All UI components should inherit styles from this central theme. Avoid custom,
+ one-off styling for individual widgets.
+- Only use per-widget theme or style overrides when a particular widget requires
+ a value that is explicitly different from the application-wide theme (e.g., a
+ special-purpose button with a unique color).
+
+#### Prioritize Blame Correctly
+When debugging, assume the bug is in the local, new, application-specific code
+before assuming a bug in a mature framework.
+
+## State Management
+- **Provider:** use the provider package for state management
+
+## Testing
+- Write unit tests for business logic (e.g., services, state management
+ controllers).
+- Write widget tests to verify the UI and interactions of your widgets.
+- Aim for a reasonable level of test coverage to ensure application stability
+ and prevent regressions.
+
+## Project Structure
+- **`lib/`**: Contains all Dart code.
+ - **`main.dart`**: The application entry point and theme definition.
+ - **`styles.dart`**: Centralized file for style constants.
+ - **`models/`**: Directory for data model classes.
+ - `clue_answer.dart`: Model for a clue and its answer.
+ - `clue.dart`: Model for a single clue.
+ - `crossword_data.dart`: Model for the entire crossword puzzle data.
+ - `crossword_grid.dart`: Model for the crossword grid.
+ - `crossword_state.dart`: State management for the crossword puzzle.
+ - `grid_cell.dart`: Model for a single cell in the grid.
+ - `todo_item.dart`: (likely unused example code)
+ - **`platform/`**: Platform-specific implementations.
+ - `platform_io.dart`: IO-specific implementation.
+ - `platform_web.dart`: Web-specific implementation.
+ - `platform.dart`: Common platform interface.
+ - **`screens/`**: Top-level screen widgets.
+ - `crossword_screen.dart`: The main screen of the application.
+ - **`services/`**: Business logic services.
+ - `gemini_service.dart`: Service for interacting with the Gemini API.
+ - `image_picker_service.dart`: Service for picking images.
+ - `puzzle_solver.dart`: Service for solving the puzzle.
+ - **`widgets/`**: Reusable, shared widgets.
+ - `clue_list.dart`: Widget for displaying the list of clues.
+ - `grid_view.dart`: Widget for displaying the crossword grid.
+ - `step_state_base.dart`: Base class for step state management.
+ - `step1_select_image.dart`: Widget for the first step (selecting an image).
+ - `step2_verify_grid_size.dart`: Widget for the second step (verifying grid
+ size).
+ - `step3_verify_grid_contents.dart`: Widget for the third step (verifying
+ grid contents).
+ - `step4_verify_clue_text.dart`: Widget for the fourth step (verifying clue
+ text).
+ - `step5_solve_puzzle.dart`: Widget for the fifth step (solving the puzzle).
+ - `todo_list_widget.dart`: (likely unused example code)
+- **`assets/`**: Contains static assets like images and fonts.
+- **`test/`**: Contains tests for the application.
+- **`web/`**: Contains web-specific files.
+- **`macos/`**: Contains macOS-specific files.
+- **`specs/`**: Contains project specifications and design documents.
+
+## Technical Accuracy and Verification
+
+To ensure the highest level of accuracy, the following verification steps are
+mandatory when dealing with technical details like API names, library versions,
+or other critical identifiers.
+
+1. **Prioritize Primary Sources:** Official documentation, API references, and
+ the project's own source code are the highest authority. Information from
+ secondary sources (e.g., blog posts, forum answers) must be cross-verified
+ against a primary source before being used. When a user provides a link to
+ official documentation, it must be treated as the ground truth.
+
+2. **Mandate Exact Identifier Verification:** When using a specific
+ identifier—such as a model name, package version, or function name—you must
+ find and use the **exact, literal string** from the primary source. Do not
+ shorten, paraphrase, or infer the name from surrounding text or titles.
+
+3. **Quote Before Use:** Before implementing a critical identifier obtained
+ from documentation, you must first quote the specific line or code block
+ from the source that confirms the identifier. This acts as a final
+ verification step to ensure you have found the precise value.
+
+## Project-Specific Implementation
+
+This Crossword Companion project serves as a practical example of the principles
+outlined above:
+
+- **State Management:** The application uses the `provider` package for state
+ management, with a central `CrosswordState` class that acts as a
+ `ChangeNotifier`. This single source of truth manages the application's
+ data, such as the puzzle details and solver status.
+
+- **Event-Driven Navigation:** Step transitions are handled by a robust
+ two-phase state machine (`enteringStep`/`enteredStep`) within
+ `CrosswordState`. This allows each step widget to listen for when it is
+ being entered and run its own initialization logic in a self-contained
+ manner.
+
+- **Abstracted State Management:** To adhere to the DRY principle, the common
+ state management logic for each stepper page is encapsulated in a
+ `StepStateBase` abstract class. This base class handles the listener
+ registration and the two-phase state machine logic for entering a step. Each
+ step's state class then extends this base class and provides its `stepIndex`
+ and the specific logic to execute when the step is entered.
+
+- **Widget Decomposition:** The UI is broken down into small, single-purpose
+ widgets. For example, the main `CrosswordScreen` is composed of a `Stepper`
+ widget, which in turn uses a series of `Step...Content` widgets for each
+ step in the process. This makes the code more readable, reusable, and easier
+ to test.
+
+- **Centralized Theme:** The application's theme is defined in `main.dart` and
+ applied to the entire `MaterialApp`. This ensures a consistent look and feel
+ across all widgets and avoids hardcoded style values.
+
+- **Services:** Business logic is separated into a `GeminiService`. This
+ service is configured with a detailed system prompt that instructs the
+ `gemini-2.5-flash` model to act as a crossword-solving expert. This
+ decouples the UI from the underlying AI logic, making the code more modular
+ and easier to maintain.
+
+- **App-Driven Solving:** The puzzle-solving logic is not a simple API call
+ but an intelligent, app-driven loop managed by a dedicated `PuzzleSolver`
+ service, which is coordinated by `CrosswordState`. For each clue, the app
+ calculates the word's length and current letter pattern from the grid. It
+ then sends a highly focused prompt to the expert model. The app validates
+ the model's response, updates the grid, and automatically retries clues that
+ were answered incorrectly, creating a robust and resilient solving process.
+
+## Verification and Maintenance
+
+### Post-Change Verification
+After any significant refactoring or feature addition, the following steps are
+required to maintain code quality:
+
+1. **Run Static Analysis:** Execute `dart analyze` and fix all reported issues.
+2. **Audit Against Best Practices:** Review the changes against the principles
+ outlined in the "Architectural Principles" and "Coding Standards" sections
+ of this document to ensure the code remains clean, robust, and maintainable.
+
+## Git Workflow
+
+- **Committing Changes:** After the changes are complete and verified, I will not
+ commit them to the repository. You, the user, are responsible for all git
+ commits.
\ No newline at end of file
diff --git a/crossword_companion/README.md b/crossword_companion/README.md
new file mode 100644
index 0000000..244487f
--- /dev/null
+++ b/crossword_companion/README.md
@@ -0,0 +1,90 @@
+# Crossword Companion
+
+The Crossword Companion is a Flutter sample app demonstrating an intelligent,
+app-driven workflow using Flutter and the Google Gemini API through Firebase.
+The app allows users to take or upload a picture of a crossword puzzle, verifies
+the puzzle's structure and clues with the user, and then uses Gemini to solve it
+ in real-time.
+
+This project is an open-source sample intended to showcase how easy it is to
+build an AI-powered app in Flutter beyond simple chat, allowing the user to step
+in and direct the model as appropriate.
+
+The Crossword Companion app is supported where Firebase is support: Android,
+iOS, web and macOS.
+
+## How It Works
+
+The application uses a multi-modal Gemini model (`gemini-2.5-pro`) to analyze an
+image of a crossword puzzle. It then uses a separate model (`gemini-2.5-flash`),
+configured with a detailed system prompt to act as a crossword "expert", to
+solve the puzzle. Additionally, the app integrates with an external dictionary
+API [dictionaryapi.dev](https://dictionaryapi.dev) to provide word metadata
+(e.g., part of speech) when requested by the Gemini model during the solving
+process. This integration allows the Gemini model to verify grammatical
+constraints, such as part of speech, for potential answers, thereby improving
+the accuracy and relevance of its solutions.
+
+The app itself drives the solving process. For each clue, it determines the
+required word length and the current known letter pattern from the grid. It then
+sends this focused context to the expert model. The app validates the answer,
+updates the grid, and automatically retries clues that were answered
+incorrectly, creating a robust feedback loop.
+
+
+
+## Getting Started
+
+### Prerequisites
+
+- The [Flutter SDK](https://docs.flutter.dev/install) installed.
+
+- A [Firebase project enabled for
+ Generative AI](https://firebase.google.com/docs/ai-logic/get-started?api=dev).
+
+### Installation
+
+1. Clone the repository.
+2. Configure your Firebase project by running the following command at the
+ project root and following the instructions:
+
+ ```bash
+ flutterfire config
+ ```
+
+ This will connect your Flutter application to your Firebase project, which
+ is necessary to use the Gemini API.
+
+3. Run the application on your desired platform:
+
+ ```bash
+ flutter run
+ ```
+
+## Functionality
+
+This application guides the user through a step-by-step workflow to solve a
+crossword puzzle from an image.
+
+1. **Select Crossword Image:** The user can select an image of a crossword
+ puzzle from their device's gallery or by taking a photo.
+
+2. **Verify Grid Size:** The application uses Gemini to infer the information
+ about the crossword. On this step, the app shows the inferred grid
+ dimensions (width and height) and allows the user to make corrections.
+
+3. **Verify Grid Contents:** The app displays the inferred grid and the user
+ can tap on cells to toggle them between inactive, blank or numbered.
+
+4. **Verify Clue Text:** The inferred "Across" and "Down" clues are displayed,
+ and the user can edit them for accuracy. After this step, the app validates
+ that the user's edits on the grid have resulted in a consistent puzzle, e.g.
+ there are numbers on the grid that match the clues, etc.
+
+5. **LLM-based Solving:** The application uses Gemini model to solve the
+ puzzle. The app manages the solving loop, sending focused prompts for each
+ clue. The UI displays the model's confidence and color-codes letters to show
+ conflicts, allowing the user to watch the puzzle being solved in real-time.
+
+ The user may pause or resume the solving process as well as start over with
+ a new puzzle as they choose.
\ No newline at end of file
diff --git a/crossword_companion/analysis_options.yaml b/crossword_companion/analysis_options.yaml
new file mode 100644
index 0000000..f9b3034
--- /dev/null
+++ b/crossword_companion/analysis_options.yaml
@@ -0,0 +1 @@
+include: package:flutter_lints/flutter.yaml
diff --git a/crossword_companion/android/.gitignore b/crossword_companion/android/.gitignore
new file mode 100644
index 0000000..be3943c
--- /dev/null
+++ b/crossword_companion/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/crossword_companion/android/app/build.gradle.kts b/crossword_companion/android/app/build.gradle.kts
new file mode 100644
index 0000000..066839f
--- /dev/null
+++ b/crossword_companion/android/app/build.gradle.kts
@@ -0,0 +1,47 @@
+plugins {
+ id("com.android.application")
+ // START: FlutterFire Configuration
+ id("com.google.gms.google-services")
+ // END: FlutterFire Configuration
+ 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.crossword_companion"
+ compileSdk = flutter.compileSdkVersion
+ ndkVersion = flutter.ndkVersion
+
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_11
+ targetCompatibility = JavaVersion.VERSION_11
+ }
+
+ kotlinOptions {
+ jvmTarget = JavaVersion.VERSION_11.toString()
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId = "com.example.crossword_companion"
+ // 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 = "../.."
+}
diff --git a/crossword_companion/android/app/google-services.json b/crossword_companion/android/app/google-services.json
new file mode 100644
index 0000000..f8111d5
--- /dev/null
+++ b/crossword_companion/android/app/google-services.json
@@ -0,0 +1,67 @@
+{
+ "project_info": {
+ "project_number": "775552889844",
+ "project_id": "crossword-companion-b7759",
+ "storage_bucket": "crossword-companion-b7759.firebasestorage.app"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:775552889844:android:cde9d25b42e6c936f03fa1",
+ "android_client_info": {
+ "package_name": "com.example.crossword_companion"
+ }
+ },
+ "oauth_client": [],
+ "api_key": [
+ {
+ "current_key": "AIzaSyDU7JpCA_1eLvlYHa_Y208J3ei46KpkHx8"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": []
+ }
+ }
+ },
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:775552889844:android:45ff33e8fd39589af03fa1",
+ "android_client_info": {
+ "package_name": "com.example.flutter_crosswo"
+ }
+ },
+ "oauth_client": [],
+ "api_key": [
+ {
+ "current_key": "AIzaSyDU7JpCA_1eLvlYHa_Y208J3ei46KpkHx8"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": []
+ }
+ }
+ },
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:775552889844:android:8ab2c0fdc70779c3f03fa1",
+ "android_client_info": {
+ "package_name": "com.example.flutter_crossword_companion"
+ }
+ },
+ "oauth_client": [],
+ "api_key": [
+ {
+ "current_key": "AIzaSyDU7JpCA_1eLvlYHa_Y208J3ei46KpkHx8"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": []
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/crossword_companion/android/app/src/debug/AndroidManifest.xml b/crossword_companion/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /dev/null
+++ b/crossword_companion/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/crossword_companion/android/app/src/main/AndroidManifest.xml b/crossword_companion/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..37d06a4
--- /dev/null
+++ b/crossword_companion/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/crossword_companion/android/app/src/main/kotlin/com/example/crossword_companion/MainActivity.kt b/crossword_companion/android/app/src/main/kotlin/com/example/crossword_companion/MainActivity.kt
new file mode 100644
index 0000000..ec33e45
--- /dev/null
+++ b/crossword_companion/android/app/src/main/kotlin/com/example/crossword_companion/MainActivity.kt
@@ -0,0 +1,5 @@
+package com.example.crossword_companion
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity : FlutterActivity()
diff --git a/crossword_companion/android/app/src/main/res/drawable-v21/launch_background.xml b/crossword_companion/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 0000000..f74085f
--- /dev/null
+++ b/crossword_companion/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/crossword_companion/android/app/src/main/res/drawable/launch_background.xml b/crossword_companion/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 0000000..304732f
--- /dev/null
+++ b/crossword_companion/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/crossword_companion/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/crossword_companion/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..db77bb4
Binary files /dev/null and b/crossword_companion/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/crossword_companion/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/crossword_companion/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..17987b7
Binary files /dev/null and b/crossword_companion/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/crossword_companion/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/crossword_companion/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..09d4391
Binary files /dev/null and b/crossword_companion/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/crossword_companion/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/crossword_companion/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..d5f1c8d
Binary files /dev/null and b/crossword_companion/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/crossword_companion/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/crossword_companion/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4d6372e
Binary files /dev/null and b/crossword_companion/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/crossword_companion/android/app/src/main/res/values-night/styles.xml b/crossword_companion/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..06952be
--- /dev/null
+++ b/crossword_companion/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/crossword_companion/android/app/src/main/res/values/styles.xml b/crossword_companion/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..cb1ef88
--- /dev/null
+++ b/crossword_companion/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/crossword_companion/android/app/src/profile/AndroidManifest.xml b/crossword_companion/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /dev/null
+++ b/crossword_companion/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/crossword_companion/android/build.gradle.kts b/crossword_companion/android/build.gradle.kts
new file mode 100644
index 0000000..dbee657
--- /dev/null
+++ b/crossword_companion/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/crossword_companion/android/gradle.properties b/crossword_companion/android/gradle.properties
new file mode 100644
index 0000000..f018a61
--- /dev/null
+++ b/crossword_companion/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/crossword_companion/android/gradle/wrapper/gradle-wrapper.properties b/crossword_companion/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..ac3b479
--- /dev/null
+++ b/crossword_companion/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/crossword_companion/android/settings.gradle.kts b/crossword_companion/android/settings.gradle.kts
new file mode 100644
index 0000000..ff284ff
--- /dev/null
+++ b/crossword_companion/android/settings.gradle.kts
@@ -0,0 +1,29 @@
+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
+ // START: FlutterFire Configuration
+ id("com.google.gms.google-services") version("4.3.15") apply false
+ // END: FlutterFire Configuration
+ id("org.jetbrains.kotlin.android") version "2.1.0" apply false
+}
+
+include(":app")
diff --git a/crossword_companion/assets/cc-title.svg b/crossword_companion/assets/cc-title.svg
new file mode 100644
index 0000000..c91ad57
--- /dev/null
+++ b/crossword_companion/assets/cc-title.svg
@@ -0,0 +1,188 @@
+
diff --git a/crossword_companion/assets/cc-title.svg.vec b/crossword_companion/assets/cc-title.svg.vec
new file mode 100644
index 0000000..51f7b8a
Binary files /dev/null and b/crossword_companion/assets/cc-title.svg.vec differ
diff --git a/crossword_companion/devtools_options.yaml b/crossword_companion/devtools_options.yaml
new file mode 100644
index 0000000..fa0b357
--- /dev/null
+++ b/crossword_companion/devtools_options.yaml
@@ -0,0 +1,3 @@
+description: This file stores settings for Dart & Flutter DevTools.
+documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
+extensions:
diff --git a/crossword_companion/ios/.gitignore b/crossword_companion/ios/.gitignore
new file mode 100644
index 0000000..7a7f987
--- /dev/null
+++ b/crossword_companion/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/crossword_companion/ios/Flutter/AppFrameworkInfo.plist b/crossword_companion/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 0000000..1dc6cf7
--- /dev/null
+++ b/crossword_companion/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/crossword_companion/ios/Flutter/Debug.xcconfig b/crossword_companion/ios/Flutter/Debug.xcconfig
new file mode 100644
index 0000000..ec97fc6
--- /dev/null
+++ b/crossword_companion/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/crossword_companion/ios/Flutter/Release.xcconfig b/crossword_companion/ios/Flutter/Release.xcconfig
new file mode 100644
index 0000000..c4855bf
--- /dev/null
+++ b/crossword_companion/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/crossword_companion/ios/Podfile b/crossword_companion/ios/Podfile
new file mode 100644
index 0000000..6649374
--- /dev/null
+++ b/crossword_companion/ios/Podfile
@@ -0,0 +1,43 @@
+# Uncomment this line to define a global platform for your project
+platform :ios, '15.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/crossword_companion/ios/Runner.xcodeproj/project.pbxproj b/crossword_companion/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..24df49d
--- /dev/null
+++ b/crossword_companion/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,732 @@
+// !$*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 */; };
+ 33F1E93A641EBEF19662D5CA /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 148FB525A99CE069C75EB9DD /* GoogleService-Info.plist */; };
+ 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 */; };
+ DD24B70BA1B2F3B717DAFB8D /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DF9FA8C80473229BBAA9EC81 /* Pods_Runner.framework */; };
+ FB8FC6480B266E596C250441 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 87A3FBBBAD55B721A9BAFB8C /* Pods_RunnerTests.framework */; };
+/* 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 */
+ 02631963DF074D98C4D94B61 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; };
+ 0B9E48F289134B8B815A06A0 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; };
+ 148FB525A99CE069C75EB9DD /* GoogleService-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "Runner/GoogleService-Info.plist"; sourceTree = ""; };
+ 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 = ""; };
+ 488047A4CA7CF75335BC1CB9 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; };
+ 5DC9EA2F2AA2C12CCDA79937 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
+ 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 = ""; };
+ 87A3FBBBAD55B721A9BAFB8C /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ 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 = ""; };
+ DF9FA8C80473229BBAA9EC81 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ FAA2B9F9FC65E2A60DB742E6 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
+ FF9D88EF78D7FAA4AD37DEB7 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ DD24B70BA1B2F3B717DAFB8D /* Pods_Runner.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ A89B19E69C1759B1F05BD73E /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ FB8FC6480B266E596C250441 /* Pods_RunnerTests.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 331C8082294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXGroup;
+ children = (
+ 331C807B294A618700263BE5 /* RunnerTests.swift */,
+ );
+ path = RunnerTests;
+ sourceTree = "";
+ };
+ 6EED3AB89C7B6B6E569913C4 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ DF9FA8C80473229BBAA9EC81 /* Pods_Runner.framework */,
+ 87A3FBBBAD55B721A9BAFB8C /* Pods_RunnerTests.framework */,
+ );
+ name = Frameworks;
+ 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 */,
+ 148FB525A99CE069C75EB9DD /* GoogleService-Info.plist */,
+ B5A79047352A064715ED3039 /* Pods */,
+ 6EED3AB89C7B6B6E569913C4 /* Frameworks */,
+ );
+ 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 = "";
+ };
+ B5A79047352A064715ED3039 /* Pods */ = {
+ isa = PBXGroup;
+ children = (
+ 5DC9EA2F2AA2C12CCDA79937 /* Pods-Runner.debug.xcconfig */,
+ FF9D88EF78D7FAA4AD37DEB7 /* Pods-Runner.release.xcconfig */,
+ FAA2B9F9FC65E2A60DB742E6 /* Pods-Runner.profile.xcconfig */,
+ 02631963DF074D98C4D94B61 /* Pods-RunnerTests.debug.xcconfig */,
+ 488047A4CA7CF75335BC1CB9 /* Pods-RunnerTests.release.xcconfig */,
+ 0B9E48F289134B8B815A06A0 /* Pods-RunnerTests.profile.xcconfig */,
+ );
+ name = Pods;
+ path = Pods;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 331C8080294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
+ buildPhases = (
+ 6016E37099C15589CB841864 /* [CP] Check Pods Manifest.lock */,
+ 331C807D294A63A400263BE5 /* Sources */,
+ 331C807F294A63A400263BE5 /* Resources */,
+ A89B19E69C1759B1F05BD73E /* Frameworks */,
+ );
+ 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 = (
+ 044B34897A7E5A4B1954EC6C /* [CP] Check Pods Manifest.lock */,
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ 9ED9CD583A81BE10B3A5029B /* [CP] Embed Pods Frameworks */,
+ );
+ 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 */,
+ 33F1E93A641EBEF19662D5CA /* GoogleService-Info.plist in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 044B34897A7E5A4B1954EC6C /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 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";
+ };
+ 6016E37099C15589CB841864 /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 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";
+ };
+ 9ED9CD583A81BE10B3A5029B /* [CP] Embed Pods Frameworks */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
+ );
+ name = "[CP] Embed Pods Frameworks";
+ outputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
+ showEnvVarsInLog = 0;
+ };
+/* 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)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.crosswordCompanion;
+ 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;
+ baseConfigurationReference = 02631963DF074D98C4D94B61 /* Pods-RunnerTests.debug.xcconfig */;
+ 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.crosswordCompanion.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;
+ baseConfigurationReference = 488047A4CA7CF75335BC1CB9 /* Pods-RunnerTests.release.xcconfig */;
+ 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.crosswordCompanion.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;
+ baseConfigurationReference = 0B9E48F289134B8B815A06A0 /* Pods-RunnerTests.profile.xcconfig */;
+ 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.crosswordCompanion.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.crosswordCompanion;
+ 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.crosswordCompanion;
+ 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/crossword_companion/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/crossword_companion/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/crossword_companion/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/crossword_companion/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/crossword_companion/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/crossword_companion/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/crossword_companion/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/crossword_companion/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/crossword_companion/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/crossword_companion/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/crossword_companion/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 0000000..e3773d4
--- /dev/null
+++ b/crossword_companion/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/crossword_companion/ios/Runner.xcworkspace/contents.xcworkspacedata b/crossword_companion/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..21a3cc1
--- /dev/null
+++ b/crossword_companion/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/crossword_companion/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/crossword_companion/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/crossword_companion/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/crossword_companion/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/crossword_companion/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/crossword_companion/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/crossword_companion/ios/Runner/AppDelegate.swift b/crossword_companion/ios/Runner/AppDelegate.swift
new file mode 100644
index 0000000..6266644
--- /dev/null
+++ b/crossword_companion/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/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..d36b1fa
--- /dev/null
+++ b/crossword_companion/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/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
new file mode 100644
index 0000000..dc9ada4
Binary files /dev/null and b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 0000000..7353c41
Binary files /dev/null and b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 0000000..797d452
Binary files /dev/null and b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 0000000..6ed2d93
Binary files /dev/null and b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 0000000..4cd7b00
Binary files /dev/null and b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 0000000..fe73094
Binary files /dev/null and b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 0000000..321773c
Binary files /dev/null and b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 0000000..797d452
Binary files /dev/null and b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 0000000..502f463
Binary files /dev/null and b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 0000000..0ec3034
Binary files /dev/null and b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 0000000..0ec3034
Binary files /dev/null and b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 0000000..e9f5fea
Binary files /dev/null and b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 0000000..84ac32a
Binary files /dev/null and b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 0000000..8953cba
Binary files /dev/null and b/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/crossword_companion/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/crossword_companion/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/crossword_companion/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/crossword_companion/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 0000000..0bedcf2
--- /dev/null
+++ b/crossword_companion/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/crossword_companion/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/crossword_companion/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/crossword_companion/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/crossword_companion/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/crossword_companion/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/crossword_companion/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/crossword_companion/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/crossword_companion/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/crossword_companion/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
diff --git a/crossword_companion/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/crossword_companion/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 0000000..89c2725
--- /dev/null
+++ b/crossword_companion/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/crossword_companion/ios/Runner/Base.lproj/LaunchScreen.storyboard b/crossword_companion/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000..f2e259c
--- /dev/null
+++ b/crossword_companion/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/crossword_companion/ios/Runner/Base.lproj/Main.storyboard b/crossword_companion/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..f3c2851
--- /dev/null
+++ b/crossword_companion/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/crossword_companion/ios/Runner/GoogleService-Info.plist b/crossword_companion/ios/Runner/GoogleService-Info.plist
new file mode 100644
index 0000000..337c158
--- /dev/null
+++ b/crossword_companion/ios/Runner/GoogleService-Info.plist
@@ -0,0 +1,30 @@
+
+
+
+
+ API_KEY
+ AIzaSyDxmtUAXptAZ4ioCP0XK8qwal__JIc_cuQ
+ GCM_SENDER_ID
+ 775552889844
+ PLIST_VERSION
+ 1
+ BUNDLE_ID
+ com.example.crosswordCompanion
+ PROJECT_ID
+ crossword-companion-b7759
+ STORAGE_BUCKET
+ crossword-companion-b7759.firebasestorage.app
+ IS_ADS_ENABLED
+
+ IS_ANALYTICS_ENABLED
+
+ IS_APPINVITE_ENABLED
+
+ IS_GCM_ENABLED
+
+ IS_SIGNIN_ENABLED
+
+ GOOGLE_APP_ID
+ 1:775552889844:ios:7ff0fbf45b8bfd98f03fa1
+
+
\ No newline at end of file
diff --git a/crossword_companion/ios/Runner/Info.plist b/crossword_companion/ios/Runner/Info.plist
new file mode 100644
index 0000000..b19f7f1
--- /dev/null
+++ b/crossword_companion/ios/Runner/Info.plist
@@ -0,0 +1,53 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Crossword Companion
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ crossword_companion
+ 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
+
+ NSCameraUsageDescription
+ This app needs access to your camera to take pictures of crossword puzzles.
+ NSPhotoLibraryUsageDescription
+ This app needs access to your photo library to select images of crossword puzzles.
+
+
diff --git a/crossword_companion/ios/Runner/Runner-Bridging-Header.h b/crossword_companion/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 0000000..308a2a5
--- /dev/null
+++ b/crossword_companion/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/crossword_companion/ios/RunnerTests/RunnerTests.swift b/crossword_companion/ios/RunnerTests/RunnerTests.swift
new file mode 100644
index 0000000..86a7c3b
--- /dev/null
+++ b/crossword_companion/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/crossword_companion/lib/main.dart b/crossword_companion/lib/main.dart
new file mode 100644
index 0000000..20f804c
--- /dev/null
+++ b/crossword_companion/lib/main.dart
@@ -0,0 +1,55 @@
+// Copyright 2025 The Flutter team. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import 'package:firebase_core/firebase_core.dart';
+import 'package:flutter/material.dart';
+import 'package:provider/provider.dart';
+
+import 'firebase_options.dart';
+import 'screens/crossword_screen.dart';
+import 'services/gemini_service.dart';
+import 'state/app_step_state.dart';
+import 'state/puzzle_data_state.dart';
+import 'state/puzzle_solver_state.dart';
+
+Future main() async {
+ WidgetsFlutterBinding.ensureInitialized();
+ await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
+ runApp(const MainApp());
+}
+
+class MainApp extends StatelessWidget {
+ const MainApp({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ // Create instances of the services and state notifiers.
+ final geminiService = GeminiService();
+ final appStepState = AppStepState();
+ final puzzleDataState = PuzzleDataState(geminiService: geminiService);
+ final puzzleSolverState = PuzzleSolverState(
+ puzzleDataState: puzzleDataState,
+ geminiService: geminiService,
+ );
+
+ // Wire up the dependency between data changes and solver initialization.
+ puzzleDataState.onDataChanged = puzzleSolverState.initializeTodos;
+
+ return MultiProvider(
+ providers: [
+ ChangeNotifierProvider.value(value: appStepState),
+ ChangeNotifierProvider.value(value: puzzleDataState),
+ ChangeNotifierProvider.value(value: puzzleSolverState),
+ ],
+ child: MaterialApp(
+ theme: ThemeData.from(
+ colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
+ useMaterial3: true,
+ ),
+ home: const CrosswordScreen(),
+ debugShowCheckedModeBanner: false,
+ ),
+ );
+ }
+}
diff --git a/crossword_companion/lib/models/clue.dart b/crossword_companion/lib/models/clue.dart
new file mode 100644
index 0000000..7ec05a1
--- /dev/null
+++ b/crossword_companion/lib/models/clue.dart
@@ -0,0 +1,44 @@
+// Copyright 2025 The Flutter team. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import 'package:uuid/uuid.dart';
+
+enum ClueDirection { across, down }
+
+class Clue {
+ Clue({required this.number, required this.direction, required this.text})
+ : id = const Uuid().v4();
+
+ Clue.private({
+ required this.id,
+ required this.number,
+ required this.direction,
+ required this.text,
+ });
+
+ factory Clue.fromJson(Map json) => Clue(
+ number: json['number'],
+ direction: ClueDirection.values.byName(json['direction']),
+ text: json['text'],
+ );
+ String id;
+ int number;
+ ClueDirection direction;
+ String text;
+
+ Clue copyWith({int? number, ClueDirection? direction, String? text}) =>
+ Clue.private(
+ id: id,
+ number: number ?? this.number,
+ direction: direction ?? this.direction,
+ text: text ?? this.text,
+ );
+
+ Map toJson() => {
+ 'id': id,
+ 'number': number,
+ 'direction': direction.toString().split('.').last,
+ 'text': text,
+ };
+}
diff --git a/crossword_companion/lib/models/clue_answer.dart b/crossword_companion/lib/models/clue_answer.dart
new file mode 100644
index 0000000..cf21873
--- /dev/null
+++ b/crossword_companion/lib/models/clue_answer.dart
@@ -0,0 +1,14 @@
+// Copyright 2025 The Flutter team. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+class ClueAnswer {
+ ClueAnswer({required this.answer, required this.confidence});
+ final String answer;
+ final double confidence;
+
+ ClueAnswer copyWith({String? answer, double? confidence}) => ClueAnswer(
+ answer: answer ?? this.answer,
+ confidence: confidence ?? this.confidence,
+ );
+}
diff --git a/crossword_companion/lib/models/crossword_data.dart b/crossword_companion/lib/models/crossword_data.dart
new file mode 100644
index 0000000..b121e4a
--- /dev/null
+++ b/crossword_companion/lib/models/crossword_data.dart
@@ -0,0 +1,47 @@
+// Copyright 2025 The Flutter team. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import 'clue.dart';
+import 'crossword_grid.dart';
+
+class CrosswordData {
+ CrosswordData({
+ required this.width,
+ required this.height,
+ required this.grid,
+ required this.clues,
+ });
+
+ factory CrosswordData.fromJson(Map json) => CrosswordData(
+ width: json['width'],
+ height: json['height'],
+ grid: CrosswordGrid.fromJson(json['grid']),
+ clues: (json['clues'] as List)
+ .map((clueJson) => Clue.fromJson(clueJson))
+ .toList(),
+ );
+ final int width;
+ final int height;
+ final CrosswordGrid grid;
+ final List clues;
+
+ Map toJson() => {
+ 'width': width,
+ 'height': height,
+ 'grid': grid.toJson(),
+ 'clues': clues.map((clue) => clue.toJson()).toList(),
+ };
+
+ CrosswordData copyWith({
+ int? width,
+ int? height,
+ CrosswordGrid? grid,
+ List? clues,
+ }) => CrosswordData(
+ width: width ?? this.width,
+ height: height ?? this.height,
+ grid: grid ?? this.grid,
+ clues: clues ?? this.clues,
+ );
+}
diff --git a/crossword_companion/lib/models/crossword_grid.dart b/crossword_companion/lib/models/crossword_grid.dart
new file mode 100644
index 0000000..5246953
--- /dev/null
+++ b/crossword_companion/lib/models/crossword_grid.dart
@@ -0,0 +1,37 @@
+// Copyright 2025 The Flutter team. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import 'grid_cell.dart';
+
+class CrosswordGrid {
+ CrosswordGrid({
+ required this.width,
+ required this.height,
+ required this.cells,
+ });
+
+ factory CrosswordGrid.fromJson(Map json) => CrosswordGrid(
+ width: json['width'],
+ height: json['height'],
+ cells: (json['cells'] as List)
+ .map((cellJson) => GridCell.fromJson(cellJson))
+ .toList(),
+ );
+ final int width;
+ final int height;
+ final List cells;
+
+ Map toJson() => {
+ 'width': width,
+ 'height': height,
+ 'cells': cells.map((cell) => cell.toJson()).toList(),
+ };
+
+ CrosswordGrid copyWith({int? width, int? height, List? cells}) =>
+ CrosswordGrid(
+ width: width ?? this.width,
+ height: height ?? this.height,
+ cells: cells ?? this.cells,
+ );
+}
diff --git a/crossword_companion/lib/models/grid_cell.dart b/crossword_companion/lib/models/grid_cell.dart
new file mode 100644
index 0000000..ff4c7f1
--- /dev/null
+++ b/crossword_companion/lib/models/grid_cell.dart
@@ -0,0 +1,68 @@
+// Copyright 2025 The Flutter team. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+enum GridCellType { inactive, empty, numbered }
+
+class GridCell {
+ GridCell({
+ this.type = GridCellType.empty,
+ this.clueNumber,
+ this.acrossLetter,
+ this.downLetter,
+ this.userLetter,
+ });
+
+ factory GridCell.fromJson(Map json) {
+ final typeString = json['type'] as String?;
+ GridCellType type;
+ switch (typeString) {
+ case 'inactive':
+ type = GridCellType.inactive;
+ case 'numbered':
+ type = GridCellType.numbered;
+ case 'empty':
+ default:
+ type = GridCellType.empty;
+ }
+
+ return GridCell(
+ type: type,
+ clueNumber: json['clueNumber'] as int?,
+ acrossLetter: json['acrossLetter'] as String?,
+ downLetter: json['downLetter'] as String?,
+ userLetter: json['userLetter'] as String?,
+ );
+ }
+ final GridCellType type;
+ final int? clueNumber;
+ final String? acrossLetter;
+ final String? downLetter;
+ final String? userLetter;
+
+ Map toJson() => {
+ 'type': type.toString().split('.').last,
+ 'clueNumber': clueNumber,
+ 'acrossLetter': acrossLetter,
+ 'downLetter': downLetter,
+ 'userLetter': userLetter,
+ };
+
+ GridCell copyWith({
+ GridCellType? type,
+ int? clueNumber,
+ bool clearClueNumber = false,
+ String? acrossLetter,
+ bool clearAcrossLetter = false,
+ String? downLetter,
+ bool clearDownLetter = false,
+ String? userLetter,
+ bool clearUserLetter = false,
+ }) => GridCell(
+ type: type ?? this.type,
+ clueNumber: clearClueNumber ? null : clueNumber ?? this.clueNumber,
+ acrossLetter: clearAcrossLetter ? null : acrossLetter ?? this.acrossLetter,
+ downLetter: clearDownLetter ? null : downLetter ?? this.downLetter,
+ userLetter: clearUserLetter ? null : userLetter ?? this.userLetter,
+ );
+}
diff --git a/crossword_companion/lib/models/todo_item.dart b/crossword_companion/lib/models/todo_item.dart
new file mode 100644
index 0000000..0b70ab5
--- /dev/null
+++ b/crossword_companion/lib/models/todo_item.dart
@@ -0,0 +1,22 @@
+// Copyright 2025 The Flutter team. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import 'clue_answer.dart';
+
+enum TodoStatus { notDone, inProgress, done }
+
+class TodoItem {
+ TodoItem({
+ required this.id,
+ required this.description,
+ this.status = TodoStatus.notDone,
+ this.answer,
+ this.isWrong = false,
+ });
+ final String id;
+ final String description;
+ final TodoStatus status;
+ final ClueAnswer? answer;
+ final bool isWrong;
+}
diff --git a/crossword_companion/lib/platform/platform.dart b/crossword_companion/lib/platform/platform.dart
new file mode 100644
index 0000000..ea8fa91
--- /dev/null
+++ b/crossword_companion/lib/platform/platform.dart
@@ -0,0 +1,5 @@
+// Copyright 2025 The Flutter team. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+export 'platform_web.dart' if (dart.library.io) 'platform_io.dart';
diff --git a/crossword_companion/lib/platform/platform_io.dart b/crossword_companion/lib/platform/platform_io.dart
new file mode 100644
index 0000000..9efae90
--- /dev/null
+++ b/crossword_companion/lib/platform/platform_io.dart
@@ -0,0 +1,8 @@
+// Copyright 2025 The Flutter team. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import 'dart:io';
+
+bool isMobile() => Platform.isIOS || Platform.isAndroid;
+bool isDesktop() => Platform.isWindows || Platform.isMacOS || Platform.isLinux;
diff --git a/crossword_companion/lib/platform/platform_web.dart b/crossword_companion/lib/platform/platform_web.dart
new file mode 100644
index 0000000..436a2b0
--- /dev/null
+++ b/crossword_companion/lib/platform/platform_web.dart
@@ -0,0 +1,6 @@
+// Copyright 2025 The Flutter team. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+bool isMobile() => false;
+bool isDesktop() => true;
diff --git a/crossword_companion/lib/screens/crossword_screen.dart b/crossword_companion/lib/screens/crossword_screen.dart
new file mode 100644
index 0000000..e545022
--- /dev/null
+++ b/crossword_companion/lib/screens/crossword_screen.dart
@@ -0,0 +1,104 @@
+// Copyright 2025 The Flutter team. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import 'package:flutter/material.dart';
+import 'package:flutter_svg/svg.dart';
+import 'package:provider/provider.dart';
+import 'package:vector_graphics/vector_graphics.dart';
+
+import '../state/app_step_state.dart';
+import '../widgets/step1_select_image.dart';
+import '../widgets/step2_verify_grid_size.dart';
+import '../widgets/step3_verify_grid_contents.dart';
+import '../widgets/step4_verify_clue_text.dart';
+import '../widgets/step5_solve_puzzle.dart';
+
+const _showScreenWidth = false;
+
+class CrosswordScreen extends StatelessWidget {
+ const CrosswordScreen({super.key});
+
+ @override
+ Widget build(BuildContext context) => Consumer(
+ builder: (context, appStepState, child) {
+ final steps = [
+ Step(
+ title: const Text('Select crossword image'),
+ content: StepOneSelectImage(isActive: appStepState.currentStep == 0),
+ ),
+ Step(
+ title: const Text('Verify grid size'),
+ content: StepTwoVerifyGridSize(
+ isActive: appStepState.currentStep == 1,
+ ),
+ ),
+ Step(
+ title: const Text('Verify grid contents'),
+ content: StepThreeVerifyGridContents(
+ isActive: appStepState.currentStep == 2,
+ ),
+ ),
+ Step(
+ title: const Text('Verify grid clues'),
+ content: StepFourVerifyClueText(
+ isActive: appStepState.currentStep == 3,
+ ),
+ ),
+ Step(
+ title: const Text('Solve the puzzle'),
+ content: StepFiveSolvePuzzle(isActive: appStepState.currentStep == 4),
+ ),
+ ];
+
+ return Scaffold(
+ body: Column(
+ children: [
+ const Padding(
+ padding: EdgeInsets.only(left: 32, right: 32, top: 64),
+ child: SvgPicture(
+ AssetBytesLoader('assets/cc-title.svg.vec'),
+ height: 100,
+ ),
+ ),
+ Expanded(
+ child: Stepper(
+ currentStep: appStepState.currentStep,
+ onStepTapped: null,
+ onStepContinue: null,
+ onStepCancel: null,
+ // Hide the default buttons
+ controlsBuilder: (_, _) => const SizedBox.shrink(),
+ steps: steps.asMap().entries.map((entry) {
+ final index = entry.key;
+ final step = entry.value;
+ return Step(
+ title: step.title,
+ content: step.content,
+ state: appStepState.currentStep > index
+ ? StepState.complete
+ : StepState.indexed,
+ isActive: appStepState.currentStep == index,
+ );
+ }).toList(),
+ ),
+ ),
+ if (_showScreenWidth)
+ Container(
+ color: Colors.grey[200],
+ padding: const EdgeInsets.all(8),
+ child: LayoutBuilder(
+ builder: (context, constraints) => Center(
+ child: Text(
+ 'Screen width: '
+ '${constraints.maxWidth.toStringAsFixed(0)}px',
+ ),
+ ),
+ ),
+ ),
+ ],
+ ),
+ );
+ },
+ );
+}
diff --git a/crossword_companion/lib/services/gemini_service.dart b/crossword_companion/lib/services/gemini_service.dart
new file mode 100644
index 0000000..c96a6a3
--- /dev/null
+++ b/crossword_companion/lib/services/gemini_service.dart
@@ -0,0 +1,357 @@
+// Copyright 2025 The Flutter team. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// ignore_for_file: avoid_dynamic_calls
+
+import 'dart:async';
+import 'dart:convert';
+
+import 'package:firebase_ai/firebase_ai.dart';
+import 'package:flutter/foundation.dart';
+import 'package:http/http.dart' as http;
+import 'package:image_picker/image_picker.dart';
+
+import '../models/clue.dart';
+import '../models/clue_answer.dart';
+import '../models/crossword_data.dart';
+import '../models/crossword_grid.dart';
+import '../models/grid_cell.dart';
+
+class GeminiService {
+ GeminiService() {
+ // The model for inferring crossword data from images.
+ _crosswordModel = FirebaseAI.googleAI().generativeModel(
+ model: 'gemini-2.5-pro',
+ generationConfig: GenerationConfig(
+ responseMimeType: 'application/json',
+ responseSchema: _crosswordSchema,
+ ),
+ );
+
+ // The model for solving clues.
+ _clueSolverModel = FirebaseAI.googleAI().generativeModel(
+ model: 'gemini-2.5-flash',
+ systemInstruction: Content.text(clueSolverSystemInstruction),
+ tools: [
+ Tool.functionDeclarations([
+ _getWordMetadataFunction,
+ _returnResultFunction,
+ ]),
+ ],
+ );
+ }
+
+ late final GenerativeModel _crosswordModel;
+ late final GenerativeModel _clueSolverModel;
+ StreamSubscription? _clueSolverSubscription;
+
+ Future cancelCurrentSolve() async {
+ await _clueSolverSubscription?.cancel();
+ _clueSolverSubscription = null;
+ }
+
+ static final _getWordMetadataFunction = FunctionDeclaration(
+ 'getWordMetadata',
+ 'Gets grammatical metadata for a word, like its part of speech. '
+ 'Best used to verify a candidate answer against a clue that implies a '
+ 'grammatical constraint.',
+ parameters: {
+ 'word': Schema(SchemaType.string, description: 'The word to look up.'),
+ },
+ );
+
+ static final _returnResultFunction = FunctionDeclaration(
+ 'returnResult',
+ 'Returns the final result of the clue solving process.',
+ parameters: {
+ 'answer': Schema(
+ SchemaType.string,
+ description: 'The answer to the clue.',
+ ),
+ 'confidence': Schema(
+ SchemaType.number,
+ description: 'The confidence score in the answer from 0.0 to 1.0.',
+ ),
+ },
+ );
+
+ static String get clueSolverSystemInstruction =>
+ '''
+You are an expert crossword puzzle solver.
+
+**Follow these rules at all times:**
+1. **Prefer Common Words:** Prioritize common English words and proper nouns. Avoid obscure, archaic, or highly technical terms unless the clue strongly implies them.
+2. **Match the Clue:** Ensure your answer strictly matches the clue's tense, plurality (singular vs. plural), and part of speech.
+3. **Verify Grammatically:** If a clue implies a specific part of speech (e.g., it's a verb, adverb, or plural), it's a good idea to use the `getWordMetadata` tool to verify your candidate answer matches. However, avoid using it for every clue.
+4. **Be Confident:** Provide a confidence score from 0.0 to 1.0 indicating your certainty.
+5. **Trust the Clue Over the Pattern:** The provided letter pattern is only a suggestion based on other potentially incorrect answers. Your primary goal is to find the best word that fits the **clue text**. If you are confident in an answer that contradicts the provided pattern, you should use that answer.
+6. **Format Correctly:** You must return your answer in the specified JSON format.
+
+---
+
+### Tool: `getWordMetadata`
+
+You have a tool to get grammatical information about a word.
+
+**When to use:**
+- This tool is most helpful as a verification step after you have a likely answer.
+- Consider using this tool when a clue contains a grammatical hint that could be ambiguous.
+- **Good candidates for verification:**
+ - Clues that seem to be verbs (e.g., "To run," "Waving").
+ - Clues that are adverbs (e.g., "Happily," "Quickly").
+ - Clues that specify a plural form.
+- **Try to avoid using the tool for:**
+ - Simple definitions (e.g., "A small dog").
+ - Fill-in-the-blank clues (e.g., "___ and flow").
+ - Proper nouns (e.g., "Capital of France").
+
+**Function signature:**
+```json
+${jsonEncode(_getWordMetadataFunction.toJson())}
+```
+
+### Tool: `returnResult`
+
+You have a tool to return the final result of the clue solving process.
+
+**When to use:**
+- Use this tool when you have a final answer and confidence score to return. You
+ must use this tool exactly once, and only once, to return the final result.
+
+**Function signature:**
+```json
+${jsonEncode(_returnResultFunction.toJson())}
+```
+''';
+
+ static final _crosswordSchema = Schema(
+ SchemaType.object,
+ properties: {
+ 'width': Schema(SchemaType.integer),
+ 'height': Schema(SchemaType.integer),
+ 'grid': Schema(
+ SchemaType.array,
+ items: Schema(
+ SchemaType.array,
+ items: Schema(
+ SchemaType.object,
+ properties: {
+ 'color': Schema(SchemaType.string),
+ 'clueNumber': Schema(SchemaType.integer, nullable: true),
+ },
+ ),
+ ),
+ ),
+ 'clues': Schema(
+ SchemaType.object,
+ properties: {
+ 'across': Schema(
+ SchemaType.array,
+ items: Schema(
+ SchemaType.object,
+ properties: {
+ 'number': Schema(SchemaType.integer),
+ 'text': Schema(SchemaType.string),
+ },
+ ),
+ ),
+ 'down': Schema(
+ SchemaType.array,
+ items: Schema(
+ SchemaType.object,
+ properties: {
+ 'number': Schema(SchemaType.integer),
+ 'text': Schema(SchemaType.string),
+ },
+ ),
+ ),
+ },
+ ),
+ },
+ );
+
+ Future inferCrosswordData(List images) async {
+ final imageParts = [];
+ for (final image in images) {
+ final imageBytes = await image.readAsBytes();
+ imageParts.add(InlineDataPart('image/jpeg', imageBytes));
+ }
+
+ final content = [
+ Content.multi([
+ TextPart('''
+Analyze the following crossword puzzle images and return a JSON object
+representing the grid size, contents, and clues. The images may contain
+different parts of the same puzzle (e.g., the grid the across clues, the down
+clues). Combine them to form a complete puzzle.
+The JSON schema is as follows: ${jsonEncode(_crosswordSchema.toJson())}
+ '''),
+ ...imageParts,
+ ]),
+ ];
+
+ final response = await _crosswordModel.generateContent(content);
+
+ final json = jsonDecode(response.text!);
+
+ final width = json['width'] as int;
+ final height = json['height'] as int;
+ final gridData = json['grid'] as List;
+ final cluesData = json['clues'] as Map;
+
+ final cells = gridData
+ .expand(
+ (row) => (row as List).map((cellData) {
+ final isBlack = cellData['color'] == 'black';
+ final type = isBlack ? GridCellType.inactive : GridCellType.empty;
+ final clueNumber = isBlack ? null : cellData['clueNumber'] as int?;
+ return GridCell(type: type, clueNumber: clueNumber);
+ }),
+ )
+ .toList();
+
+ final grid = CrosswordGrid(width: width, height: height, cells: cells);
+
+ final acrossClues = (cluesData['across'] as List).map(
+ (clueData) => Clue(
+ number: clueData['number'],
+ direction: ClueDirection.across,
+ text: clueData['text'],
+ ),
+ );
+
+ final downClues = (cluesData['down'] as List).map(
+ (clueData) => Clue(
+ number: clueData['number'],
+ direction: ClueDirection.down,
+ text: clueData['text'],
+ ),
+ );
+
+ final clues = [...acrossClues, ...downClues];
+
+ return CrosswordData(
+ width: width,
+ height: height,
+ grid: grid,
+ clues: clues,
+ );
+ }
+
+ // Buffer for the result of the clue solving process.
+ final _returnResult = {};
+
+ Future solveClue(Clue clue, int length, String pattern) async {
+ // Cancel any previous, in-flight request.
+ await cancelCurrentSolve();
+
+ // Clear the return result cache; this is where the result will be stored.
+ _returnResult.clear();
+
+ // Generate JSON response with functions and schema.
+ await _clueSolverModel.generateContentWithFunctions(
+ prompt: getSolverPrompt(clue, length, pattern),
+ onFunctionCall: (functionCall) async => switch (functionCall.name) {
+ 'getWordMetadata' => await _getWordMetadataFromApi(
+ functionCall.args['word'] as String,
+ ),
+ 'returnResult' => _cacheReturnResult(functionCall.args),
+ _ => throw Exception('Unknown function call: ${functionCall.name}'),
+ },
+ );
+
+ assert(_returnResult.isNotEmpty, 'The return result cache is empty.');
+ return ClueAnswer(
+ answer: _returnResult['answer'] as String,
+ confidence: (_returnResult['confidence'] as num).toDouble(),
+ );
+ }
+
+ // Look up the metadata for a word in the dictionary API.
+ Future