commit f67e2665692b3de5d91191b751ab4b5ae02f6a65 Author: joe Date: Mon Feb 9 09:06:36 2026 +0900 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3a91c4a --- /dev/null +++ b/.gitignore @@ -0,0 +1,58 @@ +# General +*.log +.DS_Store +# system-specific +*~ +*.swp + +# IDE configurations +.idea/ +.vscode/ + +# Flutter/Dart specific +.dart_tool/ +.flutter-plugins-dependencies +# ios/Pods/ is often ignored, but sometimes specific projects include it +# ios/Pods/ +# For macOS desktop builds +macos/Runner/Flutter/AppFrameworkInfo.plist +macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +# For Windows desktop builds +windows/flutter/ephemeral/ + +# Android specific +android/.gradle/ +android/gradle/wrapper/gradle-wrapper.properties +android/app/build.gradle.kts # Usually generated, but can be ignored if specific configurations are managed elsewhere or to prevent accidental commits +android/app/build/ # Build artifacts +android/captures/ # For Android Studio captures +android/gradle.properties # Usually fine to commit, but depends on project setup + +# iOS specific +ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json # Example for specific asset files, usually not ignored unless generated +ios/Runner.xcworkspace/contents.xcworkspacedata +ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme + +# Web specific +web/icons/ +web/manifest.json + +# Build output +build/ + +# Dependency caching +.pub-cache/ + +# OS-generated files +.DS_Store +Thumbs.db + +# IDE settings (IntelliJ IDEA) +*.iml + +# Temporary files +*.tmp diff --git a/.metadata b/.metadata new file mode 100644 index 0000000..26d3e69 --- /dev/null +++ b/.metadata @@ -0,0 +1,45 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: "67323de285b00232883f53b84095eb72be97d35c" + channel: "stable" + +project_type: app + +# Tracks metadata for the flutter migrate command +migration: + platforms: + - platform: root + create_revision: 67323de285b00232883f53b84095eb72be97d35c + base_revision: 67323de285b00232883f53b84095eb72be97d35c + - platform: android + create_revision: 67323de285b00232883f53b84095eb72be97d35c + base_revision: 67323de285b00232883f53b84095eb72be97d35c + - platform: ios + create_revision: 67323de285b00232883f53b84095eb72be97d35c + base_revision: 67323de285b00232883f53b84095eb72be97d35c + - platform: linux + create_revision: 67323de285b00232883f53b84095eb72be97d35c + base_revision: 67323de285b00232883f53b84095eb72be97d35c + - platform: macos + create_revision: 67323de285b00232883f53b84095eb72be97d35c + base_revision: 67323de285b00232883f53b84095eb72be97d35c + - platform: web + create_revision: 67323de285b00232883f53b84095eb72be97d35c + base_revision: 67323de285b00232883f53b84095eb72be97d35c + - platform: windows + create_revision: 67323de285b00232883f53b84095eb72be97d35c + base_revision: 67323de285b00232883f53b84095eb72be97d35c + + # 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/README.md b/README.md new file mode 100644 index 0000000..8e54b3b --- /dev/null +++ b/README.md @@ -0,0 +1,46 @@ +# gemi_invoice + +A new Flutter project. + +## Getting Started + +!! 日本語が主体のアプリです。アプリの基本言語は日本語です。コメントも日本語と英語併記です。!! +!! 可読性は重視しません。AIの開発効率を最大に上げて下さい。!! + +This project is a starting point for a Flutter application. + +A few resources to get you started if this is your first Flutter project: + +- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) +- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) + +For help getting started with Flutter development, view the +[online documentation](https://docs.flutter.dev/), which offers tutorials, +samples, guidance on mobile development, and a full API reference. + +## 販売アシスト1号の機能 + +販売アシスト1号は、営業マンの販売業務を支援するためのアプリケーションです。主な機能は以下の通りです。 + +- ファイル名の規則 "{date}({請求等}){顧客名}_{件名}_{金額カンマ付}円_{sha256}" 20251202(請求)佐々木製作所_あの件_20,000円_25ab85cc9988 +- 伝票(件名)の管理 +- 管理ではファイルの様にオブジェクトとして管理します。 +- 顧客マスター管理 +- 商品マスター管理 +- 見積納品請求領収証の作成 +- 見積納品請求領収証の一覧表示 +- 見積納品請求領収証のPDF出力 +- PDFの管理 +- GPSと顧客マスターを連携し座標の履歴を記録する機能 +- フォーム入力時にGPS情報で自動的に顧客マスターから候補を選出する機能 +- 入力時にQRコードやOCRをGoogleレンズを使ってアシストします +- レシート印刷するポータブルプリンタを使って領収証印刷する機能 +- 印刷時にQRコードを印刷する機能 +- Googleドライブにバックアップする機能 +- 未来の機能(今は実装しない可能にしておく):odooとの同期・連携 伝票単位で同期 +- アプリの基本言語は日本語です。 +- コメントも日本語と英語併記です。 +- 可読性は重視しません。AIの開発効率を最大に上げるものです。 +- 表示言語は日本語です。環境により英語を表示する機能は未来に実装予定です。 +- 見積・納品・請求・領収証はフォームがほぼ同じですが、項目が時間と共に変化するので件名が同じでも明細は異なる場合があります。 +- 伝票はsqliteで管理します。 diff --git a/Screenshot_2026-01-31-20-41-14-956_com.jpeg b/Screenshot_2026-01-31-20-41-14-956_com.jpeg new file mode 100644 index 0000000..88997dd Binary files /dev/null and b/Screenshot_2026-01-31-20-41-14-956_com.jpeg differ diff --git a/analysis_options.yaml b/analysis_options.yaml new file mode 100644 index 0000000..0d29021 --- /dev/null +++ b/analysis_options.yaml @@ -0,0 +1,28 @@ +# This file configures the analyzer, which statically analyzes Dart code to +# check for errors, warnings, and lints. +# +# The issues identified by the analyzer are surfaced in the UI of Dart-enabled +# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be +# invoked from the command line by running `flutter analyze`. + +# The following line activates a set of recommended lints for Flutter apps, +# packages, and plugins designed to encourage good coding practices. +include: package:flutter_lints/flutter.yaml + +linter: + # The lint rules applied to this project can be customized in the + # section below to disable rules from the `package:flutter_lints/flutter.yaml` + # included above or to enable additional rules. A list of all available lints + # and their documentation is published at https://dart.dev/lints. + # + # Instead of disabling a lint rule for the entire project in the + # section below, it can also be suppressed for a single line of code + # or a specific dart file by using the `// ignore: name_of_lint` and + # `// ignore_for_file: name_of_lint` syntax on the line or in the file + # producing the lint. + rules: + # avoid_print: false # Uncomment to disable the `avoid_print` rule + # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule + +# Additional information about this file can be found at +# https://dart.dev/guides/language/analysis-options diff --git a/android/.gitignore b/android/.gitignore new file mode 100644 index 0000000..be3943c --- /dev/null +++ b/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/android/app/build.gradle.kts b/android/app/build.gradle.kts new file mode 100644 index 0000000..9c178e2 --- /dev/null +++ b/android/app/build.gradle.kts @@ -0,0 +1,44 @@ +plugins { + id("com.android.application") + id("kotlin-android") + // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. + id("dev.flutter.flutter-gradle-plugin") +} + +android { + namespace = "com.example.gemi_invoice" + compileSdk = flutter.compileSdkVersion + ndkVersion = flutter.ndkVersion + + compileOptions { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 + } + + kotlinOptions { + jvmTarget = JavaVersion.VERSION_17.toString() + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId = "com.example.gemi_invoice" + // 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/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000..399f698 --- /dev/null +++ b/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..d7be321 --- /dev/null +++ b/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android/app/src/main/kotlin/com/example/gemi_invoice/MainActivity.kt b/android/app/src/main/kotlin/com/example/gemi_invoice/MainActivity.kt new file mode 100644 index 0000000..b2b225e --- /dev/null +++ b/android/app/src/main/kotlin/com/example/gemi_invoice/MainActivity.kt @@ -0,0 +1,5 @@ +package com.example.gemi_invoice + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity : FlutterActivity() diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml new file mode 100644 index 0000000..f74085f --- /dev/null +++ b/android/app/src/main/res/drawable-v21/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000..304732f --- /dev/null +++ b/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..db77bb4 Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..17987b7 Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..09d4391 Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..d5f1c8d Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..4d6372e Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml new file mode 100644 index 0000000..06952be --- /dev/null +++ b/android/app/src/main/res/values-night/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..cb1ef88 --- /dev/null +++ b/android/app/src/main/res/values/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000..399f698 --- /dev/null +++ b/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/android/build.gradle.kts b/android/build.gradle.kts new file mode 100644 index 0000000..dbee657 --- /dev/null +++ b/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/android/gradle.properties b/android/gradle.properties new file mode 100644 index 0000000..fbee1d8 --- /dev/null +++ b/android/gradle.properties @@ -0,0 +1,2 @@ +org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError +android.useAndroidX=true diff --git a/android/settings.gradle.kts b/android/settings.gradle.kts new file mode 100644 index 0000000..ca7fe06 --- /dev/null +++ b/android/settings.gradle.kts @@ -0,0 +1,26 @@ +pluginManagement { + val flutterSdkPath = + run { + val properties = java.util.Properties() + file("local.properties").inputStream().use { properties.load(it) } + val flutterSdkPath = properties.getProperty("flutter.sdk") + require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" } + flutterSdkPath + } + + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") + + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} + +plugins { + id("dev.flutter.flutter-plugin-loader") version "1.0.0" + id("com.android.application") version "8.11.1" apply false + id("org.jetbrains.kotlin.android") version "2.2.20" apply false +} + +include(":app") diff --git a/assets/fonts/ipaexg.ttf b/assets/fonts/ipaexg.ttf new file mode 100755 index 0000000..811b9c0 Binary files /dev/null and b/assets/fonts/ipaexg.ttf differ diff --git a/dir.tree b/dir.tree new file mode 100644 index 0000000..a939ca9 --- /dev/null +++ b/dir.tree @@ -0,0 +1,2478 @@ +. +├── android +│   ├── app +│   │   ├── build.gradle.kts +│   │   └── src +│   │   ├── debug +│   │   │   └── AndroidManifest.xml +│   │   ├── main +│   │   │   ├── AndroidManifest.xml +│   │   │   ├── java +│   │   │   │   └── io +│   │   │   │   └── flutter +│   │   │   │   └── plugins +│   │   │   │   └── GeneratedPluginRegistrant.java +│   │   │   ├── kotlin +│   │   │   │   └── com +│   │   │   │   └── example +│   │   │   │   └── gemi_invoice +│   │   │   │   └── MainActivity.kt +│   │   │   └── res +│   │   │   ├── drawable +│   │   │   │   └── launch_background.xml +│   │   │   ├── drawable-v21 +│   │   │   │   └── launch_background.xml +│   │   │   ├── mipmap-hdpi +│   │   │   │   └── ic_launcher.png +│   │   │   ├── mipmap-mdpi +│   │   │   │   └── ic_launcher.png +│   │   │   ├── mipmap-xhdpi +│   │   │   │   └── ic_launcher.png +│   │   │   ├── mipmap-xxhdpi +│   │   │   │   └── ic_launcher.png +│   │   │   ├── mipmap-xxxhdpi +│   │   │   │   └── ic_launcher.png +│   │   │   ├── values +│   │   │   │   └── styles.xml +│   │   │   └── values-night +│   │   │   └── styles.xml +│   │   └── profile +│   │   └── AndroidManifest.xml +│   └── gradle +│   └── wrapper +│   ├── gradle-wrapper.jar +│   └── gradle-wrapper.properties +├── assets +│   └── fonts +│   └── ipaexg.ttf +├── build +│   ├── app +│   │   ├── generated +│   │   │   ├── ap_generated_sources +│   │   │   │   └── debug +│   │   │   │   └── out +│   │   │   └── res +│   │   │   ├── pngs +│   │   │   │   └── debug +│   │   │   └── resValues +│   │   │   └── debug +│   │   ├── intermediates +│   │   │   ├── aar_metadata_check +│   │   │   │   └── debug +│   │   │   │   └── checkDebugAarMetadata +│   │   │   ├── annotation_processor_list +│   │   │   │   └── debug +│   │   │   │   └── javaPreCompileDebug +│   │   │   │   └── annotationProcessors.json +│   │   │   ├── apk_ide_redirect_file +│   │   │   │   └── debug +│   │   │   │   └── createDebugApkListingFileRedirect +│   │   │   │   └── redirect.txt +│   │   │   ├── app_metadata +│   │   │   │   └── debug +│   │   │   │   └── writeDebugAppMetadata +│   │   │   │   └── app-metadata.properties +│   │   │   ├── assets +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugAssets +│   │   │   │   └── flutter_assets +│   │   │   │   ├── AssetManifest.bin +│   │   │   │   ├── FontManifest.json +│   │   │   │   ├── NOTICES.Z +│   │   │   │   ├── NativeAssetsManifest.json +│   │   │   │   ├── assets +│   │   │   │   │   └── fonts +│   │   │   │   │   └── ipaexg.ttf +│   │   │   │   ├── fonts +│   │   │   │   │   └── MaterialIcons-Regular.otf +│   │   │   │   ├── isolate_snapshot_data +│   │   │   │   ├── kernel_blob.bin +│   │   │   │   ├── packages +│   │   │   │   │   └── cupertino_icons +│   │   │   │   │   └── assets +│   │   │   │   │   └── CupertinoIcons.ttf +│   │   │   │   ├── shaders +│   │   │   │   │   ├── ink_sparkle.frag +│   │   │   │   │   └── stretch_effect.frag +│   │   │   │   └── vm_snapshot_data +│   │   │   ├── compatible_screen_manifest +│   │   │   │   └── debug +│   │   │   │   └── createDebugCompatibleScreenManifests +│   │   │   │   └── output-metadata.json +│   │   │   ├── compile_and_runtime_not_namespaced_r_class_jar +│   │   │   │   └── debug +│   │   │   │   └── processDebugResources +│   │   │   │   └── R.jar +│   │   │   ├── compressed_assets +│   │   │   │   └── debug +│   │   │   │   └── compressDebugAssets +│   │   │   │   └── out +│   │   │   │   └── assets +│   │   │   │   └── flutter_assets +│   │   │   │   ├── AssetManifest.bin.jar +│   │   │   │   ├── FontManifest.json.jar +│   │   │   │   ├── NOTICES.Z.jar +│   │   │   │   ├── NativeAssetsManifest.json.jar +│   │   │   │   ├── assets +│   │   │   │   │   └── fonts +│   │   │   │   │   └── ipaexg.ttf.jar +│   │   │   │   ├── fonts +│   │   │   │   │   └── MaterialIcons-Regular.otf.jar +│   │   │   │   ├── isolate_snapshot_data.jar +│   │   │   │   ├── kernel_blob.bin.jar +│   │   │   │   ├── packages +│   │   │   │   │   └── cupertino_icons +│   │   │   │   │   └── assets +│   │   │   │   │   └── CupertinoIcons.ttf.jar +│   │   │   │   ├── shaders +│   │   │   │   │   ├── ink_sparkle.frag.jar +│   │   │   │   │   └── stretch_effect.frag.jar +│   │   │   │   └── vm_snapshot_data.jar +│   │   │   ├── cxx +│   │   │   │   └── debug +│   │   │   │   └── 2j4t4b6c +│   │   │   │   ├── logs +│   │   │   │   │   ├── arm64-v8a +│   │   │   │   │   │   ├── build_model.json +│   │   │   │   │   │   ├── configure_command +│   │   │   │   │   │   ├── configure_stderr.txt +│   │   │   │   │   │   ├── configure_stdout.txt +│   │   │   │   │   │   ├── generate_cxx_metadata_5050_timing.txt +│   │   │   │   │   │   └── metadata_generation_record.json +│   │   │   │   │   ├── armeabi-v7a +│   │   │   │   │   │   ├── build_model.json +│   │   │   │   │   │   ├── configure_command +│   │   │   │   │   │   ├── configure_stderr.txt +│   │   │   │   │   │   ├── configure_stdout.txt +│   │   │   │   │   │   ├── generate_cxx_metadata_5053_timing.txt +│   │   │   │   │   │   └── metadata_generation_record.json +│   │   │   │   │   └── x86_64 +│   │   │   │   │   ├── build_model.json +│   │   │   │   │   ├── configure_command +│   │   │   │   │   ├── configure_stderr.txt +│   │   │   │   │   ├── configure_stdout.txt +│   │   │   │   │   ├── generate_cxx_metadata_5055_timing.txt +│   │   │   │   │   └── metadata_generation_record.json +│   │   │   │   └── obj +│   │   │   │   ├── arm64-v8a +│   │   │   │   ├── armeabi-v7a +│   │   │   │   └── x86_64 +│   │   │   ├── data_binding_layout_info_type_merge +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugResources +│   │   │   │   └── out +│   │   │   ├── data_binding_layout_info_type_package +│   │   │   │   └── debug +│   │   │   │   └── packageDebugResources +│   │   │   │   └── out +│   │   │   ├── desugar_graph +│   │   │   │   └── debug +│   │   │   │   └── dexBuilderDebug +│   │   │   │   └── out +│   │   │   │   ├── currentProject +│   │   │   │   │   ├── dirs_bucket_0 +│   │   │   │   │   │   └── graph.bin +│   │   │   │   │   ├── dirs_bucket_1 +│   │   │   │   │   │   └── graph.bin +│   │   │   │   │   ├── dirs_bucket_2 +│   │   │   │   │   │   └── graph.bin +│   │   │   │   │   ├── dirs_bucket_3 +│   │   │   │   │   │   └── graph.bin +│   │   │   │   │   ├── jar_32ac0c1d9401b060884d96cd9adf11dc1a274cd19b4e781c72059b27ddf72418_bucket_0 +│   │   │   │   │   │   └── graph.bin +│   │   │   │   │   ├── jar_32ac0c1d9401b060884d96cd9adf11dc1a274cd19b4e781c72059b27ddf72418_bucket_1 +│   │   │   │   │   │   └── graph.bin +│   │   │   │   │   ├── jar_32ac0c1d9401b060884d96cd9adf11dc1a274cd19b4e781c72059b27ddf72418_bucket_2 +│   │   │   │   │   │   └── graph.bin +│   │   │   │   │   └── jar_32ac0c1d9401b060884d96cd9adf11dc1a274cd19b4e781c72059b27ddf72418_bucket_3 +│   │   │   │   │   └── graph.bin +│   │   │   │   ├── externalLibs +│   │   │   │   ├── mixedScopes +│   │   │   │   └── otherProjects +│   │   │   ├── dex +│   │   │   │   └── debug +│   │   │   │   ├── mergeExtDexDebug +│   │   │   │   │   └── classes.dex +│   │   │   │   ├── mergeLibDexDebug +│   │   │   │   │   ├── 0 +│   │   │   │   │   ├── 1 +│   │   │   │   │   ├── 10 +│   │   │   │   │   │   └── classes.dex +│   │   │   │   │   ├── 11 +│   │   │   │   │   │   └── classes.dex +│   │   │   │   │   ├── 12 +│   │   │   │   │   │   └── classes.dex +│   │   │   │   │   ├── 13 +│   │   │   │   │   ├── 14 +│   │   │   │   │   ├── 15 +│   │   │   │   │   │   └── classes.dex +│   │   │   │   │   ├── 2 +│   │   │   │   │   ├── 3 +│   │   │   │   │   ├── 4 +│   │   │   │   │   │   └── classes.dex +│   │   │   │   │   ├── 5 +│   │   │   │   │   ├── 6 +│   │   │   │   │   ├── 7 +│   │   │   │   │   │   └── classes.dex +│   │   │   │   │   ├── 8 +│   │   │   │   │   └── 9 +│   │   │   │   └── mergeProjectDexDebug +│   │   │   │   ├── 0 +│   │   │   │   │   └── classes.dex +│   │   │   │   ├── 1 +│   │   │   │   │   └── classes.dex +│   │   │   │   ├── 10 +│   │   │   │   ├── 11 +│   │   │   │   │   └── classes.dex +│   │   │   │   ├── 12 +│   │   │   │   ├── 13 +│   │   │   │   ├── 14 +│   │   │   │   ├── 15 +│   │   │   │   ├── 2 +│   │   │   │   ├── 3 +│   │   │   │   ├── 4 +│   │   │   │   ├── 5 +│   │   │   │   ├── 6 +│   │   │   │   ├── 7 +│   │   │   │   ├── 8 +│   │   │   │   └── 9 +│   │   │   ├── dex_archive_input_jar_hashes +│   │   │   │   └── debug +│   │   │   │   └── dexBuilderDebug +│   │   │   │   └── out +│   │   │   ├── dex_number_of_buckets_file +│   │   │   │   └── debug +│   │   │   │   └── dexBuilderDebug +│   │   │   │   └── out +│   │   │   ├── duplicate_classes_check +│   │   │   │   └── debug +│   │   │   │   └── checkDebugDuplicateClasses +│   │   │   ├── external_file_lib_dex_archives +│   │   │   │   └── debug +│   │   │   │   └── desugarDebugFileDependencies +│   │   │   ├── external_libs_dex_archive +│   │   │   │   └── debug +│   │   │   │   └── dexBuilderDebug +│   │   │   │   └── out +│   │   │   ├── external_libs_dex_archive_with_artifact_transforms +│   │   │   │   └── debug +│   │   │   │   └── dexBuilderDebug +│   │   │   │   └── out +│   │   │   ├── flutter +│   │   │   │   └── debug +│   │   │   │   ├── flutter_assets +│   │   │   │   │   ├── AssetManifest.bin +│   │   │   │   │   ├── FontManifest.json +│   │   │   │   │   ├── NOTICES.Z +│   │   │   │   │   ├── NativeAssetsManifest.json +│   │   │   │   │   ├── assets +│   │   │   │   │   │   └── fonts +│   │   │   │   │   │   └── ipaexg.ttf +│   │   │   │   │   ├── fonts +│   │   │   │   │   │   └── MaterialIcons-Regular.otf +│   │   │   │   │   ├── isolate_snapshot_data +│   │   │   │   │   ├── kernel_blob.bin +│   │   │   │   │   ├── packages +│   │   │   │   │   │   └── cupertino_icons +│   │   │   │   │   │   └── assets +│   │   │   │   │   │   └── CupertinoIcons.ttf +│   │   │   │   │   ├── shaders +│   │   │   │   │   │   ├── ink_sparkle.frag +│   │   │   │   │   │   └── stretch_effect.frag +│   │   │   │   │   └── vm_snapshot_data +│   │   │   │   ├── flutter_build.d +│   │   │   │   └── libs.jar +│   │   │   ├── global_synthetics_dex +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugGlobalSynthetics +│   │   │   ├── global_synthetics_external_lib +│   │   │   │   └── debug +│   │   │   │   └── dexBuilderDebug +│   │   │   │   └── out +│   │   │   ├── global_synthetics_external_libs_artifact_transform +│   │   │   │   └── debug +│   │   │   │   └── dexBuilderDebug +│   │   │   │   └── out +│   │   │   ├── global_synthetics_file_lib +│   │   │   │   └── debug +│   │   │   │   └── desugarDebugFileDependencies +│   │   │   ├── global_synthetics_mixed_scope +│   │   │   │   └── debug +│   │   │   │   └── dexBuilderDebug +│   │   │   │   └── out +│   │   │   ├── global_synthetics_project +│   │   │   │   └── debug +│   │   │   │   └── dexBuilderDebug +│   │   │   │   └── out +│   │   │   ├── global_synthetics_subproject +│   │   │   │   └── debug +│   │   │   │   └── dexBuilderDebug +│   │   │   │   └── out +│   │   │   ├── incremental +│   │   │   │   ├── debug +│   │   │   │   │   ├── mergeDebugResources +│   │   │   │   │   │   ├── compile-file-map.properties +│   │   │   │   │   │   ├── merged.dir +│   │   │   │   │   │   │   ├── values +│   │   │   │   │   │   │   │   └── values.xml +│   │   │   │   │   │   │   ├── values-af +│   │   │   │   │   │   │   │   └── values-af.xml +│   │   │   │   │   │   │   ├── values-am +│   │   │   │   │   │   │   │   └── values-am.xml +│   │   │   │   │   │   │   ├── values-ar +│   │   │   │   │   │   │   │   └── values-ar.xml +│   │   │   │   │   │   │   ├── values-as +│   │   │   │   │   │   │   │   └── values-as.xml +│   │   │   │   │   │   │   ├── values-az +│   │   │   │   │   │   │   │   └── values-az.xml +│   │   │   │   │   │   │   ├── values-b+sr+Latn +│   │   │   │   │   │   │   │   └── values-b+sr+Latn.xml +│   │   │   │   │   │   │   ├── values-be +│   │   │   │   │   │   │   │   └── values-be.xml +│   │   │   │   │   │   │   ├── values-bg +│   │   │   │   │   │   │   │   └── values-bg.xml +│   │   │   │   │   │   │   ├── values-bn +│   │   │   │   │   │   │   │   └── values-bn.xml +│   │   │   │   │   │   │   ├── values-bs +│   │   │   │   │   │   │   │   └── values-bs.xml +│   │   │   │   │   │   │   ├── values-ca +│   │   │   │   │   │   │   │   └── values-ca.xml +│   │   │   │   │   │   │   ├── values-cs +│   │   │   │   │   │   │   │   └── values-cs.xml +│   │   │   │   │   │   │   ├── values-da +│   │   │   │   │   │   │   │   └── values-da.xml +│   │   │   │   │   │   │   ├── values-de +│   │   │   │   │   │   │   │   └── values-de.xml +│   │   │   │   │   │   │   ├── values-el +│   │   │   │   │   │   │   │   └── values-el.xml +│   │   │   │   │   │   │   ├── values-en-rAU +│   │   │   │   │   │   │   │   └── values-en-rAU.xml +│   │   │   │   │   │   │   ├── values-en-rCA +│   │   │   │   │   │   │   │   └── values-en-rCA.xml +│   │   │   │   │   │   │   ├── values-en-rGB +│   │   │   │   │   │   │   │   └── values-en-rGB.xml +│   │   │   │   │   │   │   ├── values-en-rIN +│   │   │   │   │   │   │   │   └── values-en-rIN.xml +│   │   │   │   │   │   │   ├── values-en-rXC +│   │   │   │   │   │   │   │   └── values-en-rXC.xml +│   │   │   │   │   │   │   ├── values-es +│   │   │   │   │   │   │   │   └── values-es.xml +│   │   │   │   │   │   │   ├── values-es-rUS +│   │   │   │   │   │   │   │   └── values-es-rUS.xml +│   │   │   │   │   │   │   ├── values-et +│   │   │   │   │   │   │   │   └── values-et.xml +│   │   │   │   │   │   │   ├── values-eu +│   │   │   │   │   │   │   │   └── values-eu.xml +│   │   │   │   │   │   │   ├── values-fa +│   │   │   │   │   │   │   │   └── values-fa.xml +│   │   │   │   │   │   │   ├── values-fi +│   │   │   │   │   │   │   │   └── values-fi.xml +│   │   │   │   │   │   │   ├── values-fr +│   │   │   │   │   │   │   │   └── values-fr.xml +│   │   │   │   │   │   │   ├── values-fr-rCA +│   │   │   │   │   │   │   │   └── values-fr-rCA.xml +│   │   │   │   │   │   │   ├── values-gl +│   │   │   │   │   │   │   │   └── values-gl.xml +│   │   │   │   │   │   │   ├── values-gu +│   │   │   │   │   │   │   │   └── values-gu.xml +│   │   │   │   │   │   │   ├── values-h720dp-v13 +│   │   │   │   │   │   │   │   └── values-h720dp-v13.xml +│   │   │   │   │   │   │   ├── values-hdpi-v4 +│   │   │   │   │   │   │   │   └── values-hdpi-v4.xml +│   │   │   │   │   │   │   ├── values-hi +│   │   │   │   │   │   │   │   └── values-hi.xml +│   │   │   │   │   │   │   ├── values-hr +│   │   │   │   │   │   │   │   └── values-hr.xml +│   │   │   │   │   │   │   ├── values-hu +│   │   │   │   │   │   │   │   └── values-hu.xml +│   │   │   │   │   │   │   ├── values-hy +│   │   │   │   │   │   │   │   └── values-hy.xml +│   │   │   │   │   │   │   ├── values-in +│   │   │   │   │   │   │   │   └── values-in.xml +│   │   │   │   │   │   │   ├── values-is +│   │   │   │   │   │   │   │   └── values-is.xml +│   │   │   │   │   │   │   ├── values-it +│   │   │   │   │   │   │   │   └── values-it.xml +│   │   │   │   │   │   │   ├── values-iw +│   │   │   │   │   │   │   │   └── values-iw.xml +│   │   │   │   │   │   │   ├── values-ja +│   │   │   │   │   │   │   │   └── values-ja.xml +│   │   │   │   │   │   │   ├── values-ka +│   │   │   │   │   │   │   │   └── values-ka.xml +│   │   │   │   │   │   │   ├── values-kk +│   │   │   │   │   │   │   │   └── values-kk.xml +│   │   │   │   │   │   │   ├── values-km +│   │   │   │   │   │   │   │   └── values-km.xml +│   │   │   │   │   │   │   ├── values-kn +│   │   │   │   │   │   │   │   └── values-kn.xml +│   │   │   │   │   │   │   ├── values-ko +│   │   │   │   │   │   │   │   └── values-ko.xml +│   │   │   │   │   │   │   ├── values-ky +│   │   │   │   │   │   │   │   └── values-ky.xml +│   │   │   │   │   │   │   ├── values-land +│   │   │   │   │   │   │   │   └── values-land.xml +│   │   │   │   │   │   │   ├── values-large-v4 +│   │   │   │   │   │   │   │   └── values-large-v4.xml +│   │   │   │   │   │   │   ├── values-ldltr-v21 +│   │   │   │   │   │   │   │   └── values-ldltr-v21.xml +│   │   │   │   │   │   │   ├── values-lo +│   │   │   │   │   │   │   │   └── values-lo.xml +│   │   │   │   │   │   │   ├── values-lt +│   │   │   │   │   │   │   │   └── values-lt.xml +│   │   │   │   │   │   │   ├── values-lv +│   │   │   │   │   │   │   │   └── values-lv.xml +│   │   │   │   │   │   │   ├── values-mk +│   │   │   │   │   │   │   │   └── values-mk.xml +│   │   │   │   │   │   │   ├── values-ml +│   │   │   │   │   │   │   │   └── values-ml.xml +│   │   │   │   │   │   │   ├── values-mn +│   │   │   │   │   │   │   │   └── values-mn.xml +│   │   │   │   │   │   │   ├── values-mr +│   │   │   │   │   │   │   │   └── values-mr.xml +│   │   │   │   │   │   │   ├── values-ms +│   │   │   │   │   │   │   │   └── values-ms.xml +│   │   │   │   │   │   │   ├── values-my +│   │   │   │   │   │   │   │   └── values-my.xml +│   │   │   │   │   │   │   ├── values-nb +│   │   │   │   │   │   │   │   └── values-nb.xml +│   │   │   │   │   │   │   ├── values-ne +│   │   │   │   │   │   │   │   └── values-ne.xml +│   │   │   │   │   │   │   ├── values-night-v8 +│   │   │   │   │   │   │   │   └── values-night-v8.xml +│   │   │   │   │   │   │   ├── values-nl +│   │   │   │   │   │   │   │   └── values-nl.xml +│   │   │   │   │   │   │   ├── values-or +│   │   │   │   │   │   │   │   └── values-or.xml +│   │   │   │   │   │   │   ├── values-pa +│   │   │   │   │   │   │   │   └── values-pa.xml +│   │   │   │   │   │   │   ├── values-pl +│   │   │   │   │   │   │   │   └── values-pl.xml +│   │   │   │   │   │   │   ├── values-port +│   │   │   │   │   │   │   │   └── values-port.xml +│   │   │   │   │   │   │   ├── values-pt +│   │   │   │   │   │   │   │   └── values-pt.xml +│   │   │   │   │   │   │   ├── values-pt-rBR +│   │   │   │   │   │   │   │   └── values-pt-rBR.xml +│   │   │   │   │   │   │   ├── values-pt-rPT +│   │   │   │   │   │   │   │   └── values-pt-rPT.xml +│   │   │   │   │   │   │   ├── values-ro +│   │   │   │   │   │   │   │   └── values-ro.xml +│   │   │   │   │   │   │   ├── values-ru +│   │   │   │   │   │   │   │   └── values-ru.xml +│   │   │   │   │   │   │   ├── values-si +│   │   │   │   │   │   │   │   └── values-si.xml +│   │   │   │   │   │   │   ├── values-sk +│   │   │   │   │   │   │   │   └── values-sk.xml +│   │   │   │   │   │   │   ├── values-sl +│   │   │   │   │   │   │   │   └── values-sl.xml +│   │   │   │   │   │   │   ├── values-sq +│   │   │   │   │   │   │   │   └── values-sq.xml +│   │   │   │   │   │   │   ├── values-sr +│   │   │   │   │   │   │   │   └── values-sr.xml +│   │   │   │   │   │   │   ├── values-sv +│   │   │   │   │   │   │   │   └── values-sv.xml +│   │   │   │   │   │   │   ├── values-sw +│   │   │   │   │   │   │   │   └── values-sw.xml +│   │   │   │   │   │   │   ├── values-sw600dp-v13 +│   │   │   │   │   │   │   │   └── values-sw600dp-v13.xml +│   │   │   │   │   │   │   ├── values-ta +│   │   │   │   │   │   │   │   └── values-ta.xml +│   │   │   │   │   │   │   ├── values-te +│   │   │   │   │   │   │   │   └── values-te.xml +│   │   │   │   │   │   │   ├── values-th +│   │   │   │   │   │   │   │   └── values-th.xml +│   │   │   │   │   │   │   ├── values-tl +│   │   │   │   │   │   │   │   └── values-tl.xml +│   │   │   │   │   │   │   ├── values-tr +│   │   │   │   │   │   │   │   └── values-tr.xml +│   │   │   │   │   │   │   ├── values-uk +│   │   │   │   │   │   │   │   └── values-uk.xml +│   │   │   │   │   │   │   ├── values-ur +│   │   │   │   │   │   │   │   └── values-ur.xml +│   │   │   │   │   │   │   ├── values-uz +│   │   │   │   │   │   │   │   └── values-uz.xml +│   │   │   │   │   │   │   ├── values-v16 +│   │   │   │   │   │   │   │   └── values-v16.xml +│   │   │   │   │   │   │   ├── values-v17 +│   │   │   │   │   │   │   │   └── values-v17.xml +│   │   │   │   │   │   │   ├── values-v18 +│   │   │   │   │   │   │   │   └── values-v18.xml +│   │   │   │   │   │   │   ├── values-v21 +│   │   │   │   │   │   │   │   └── values-v21.xml +│   │   │   │   │   │   │   ├── values-v22 +│   │   │   │   │   │   │   │   └── values-v22.xml +│   │   │   │   │   │   │   ├── values-v23 +│   │   │   │   │   │   │   │   └── values-v23.xml +│   │   │   │   │   │   │   ├── values-v24 +│   │   │   │   │   │   │   │   └── values-v24.xml +│   │   │   │   │   │   │   ├── values-v25 +│   │   │   │   │   │   │   │   └── values-v25.xml +│   │   │   │   │   │   │   ├── values-v26 +│   │   │   │   │   │   │   │   └── values-v26.xml +│   │   │   │   │   │   │   ├── values-v28 +│   │   │   │   │   │   │   │   └── values-v28.xml +│   │   │   │   │   │   │   ├── values-vi +│   │   │   │   │   │   │   │   └── values-vi.xml +│   │   │   │   │   │   │   ├── values-watch-v20 +│   │   │   │   │   │   │   │   └── values-watch-v20.xml +│   │   │   │   │   │   │   ├── values-watch-v21 +│   │   │   │   │   │   │   │   └── values-watch-v21.xml +│   │   │   │   │   │   │   ├── values-xlarge-v4 +│   │   │   │   │   │   │   │   └── values-xlarge-v4.xml +│   │   │   │   │   │   │   ├── values-zh-rCN +│   │   │   │   │   │   │   │   └── values-zh-rCN.xml +│   │   │   │   │   │   │   ├── values-zh-rHK +│   │   │   │   │   │   │   │   └── values-zh-rHK.xml +│   │   │   │   │   │   │   ├── values-zh-rTW +│   │   │   │   │   │   │   │   └── values-zh-rTW.xml +│   │   │   │   │   │   │   └── values-zu +│   │   │   │   │   │   │   └── values-zu.xml +│   │   │   │   │   │   ├── merger.xml +│   │   │   │   │   │   └── stripped.dir +│   │   │   │   │   └── packageDebugResources +│   │   │   │   │   ├── compile-file-map.properties +│   │   │   │   │   ├── merged.dir +│   │   │   │   │   │   ├── values +│   │   │   │   │   │   │   └── values.xml +│   │   │   │   │   │   └── values-night-v8 +│   │   │   │   │   │   └── values-night-v8.xml +│   │   │   │   │   ├── merger.xml +│   │   │   │   │   └── stripped.dir +│   │   │   │   ├── debug-mergeJavaRes +│   │   │   │   │   └── zip-cache +│   │   │   │   │   ├── dV9pk3oJIapqxT1zT7NnsPhFFLA= +│   │   │   │   │   └── gUvc9xhJiuffK5FDNOZ+9Cla4Z8= +│   │   │   │   ├── mergeDebugAssets +│   │   │   │   │   └── merger.xml +│   │   │   │   ├── mergeDebugJniLibFolders +│   │   │   │   │   └── merger.xml +│   │   │   │   ├── mergeDebugShaders +│   │   │   │   │   └── merger.xml +│   │   │   │   └── packageDebug +│   │   │   │   └── tmp +│   │   │   │   └── debug +│   │   │   │   ├── dex-renamer-state.txt +│   │   │   │   └── zip-cache +│   │   │   │   ├── androidResources +│   │   │   │   └── javaResources0 +│   │   │   ├── java_res +│   │   │   │   └── debug +│   │   │   │   └── processDebugJavaRes +│   │   │   │   └── out +│   │   │   │   ├── META-INF +│   │   │   │   │   └── app_debug.kotlin_module +│   │   │   │   └── com +│   │   │   │   └── example +│   │   │   │   └── gemi_invoice +│   │   │   ├── javac +│   │   │   │   └── debug +│   │   │   │   └── compileDebugJavaWithJavac +│   │   │   │   └── classes +│   │   │   │   └── io +│   │   │   │   └── flutter +│   │   │   │   └── plugins +│   │   │   │   └── GeneratedPluginRegistrant.class +│   │   │   ├── linked_resources_binary_format +│   │   │   │   └── debug +│   │   │   │   └── processDebugResources +│   │   │   │   ├── linked-resources-binary-format-debug.ap_ +│   │   │   │   └── output-metadata.json +│   │   │   ├── local_only_symbol_list +│   │   │   │   └── debug +│   │   │   │   └── parseDebugLocalResources +│   │   │   │   └── R-def.txt +│   │   │   ├── manifest_merge_blame_file +│   │   │   │   └── debug +│   │   │   │   └── processDebugMainManifest +│   │   │   │   └── manifest-merger-blame-debug-report.txt +│   │   │   ├── merged_java_res +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugJavaResource +│   │   │   │   └── base.jar +│   │   │   ├── merged_jni_libs +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugJniLibFolders +│   │   │   │   └── out +│   │   │   ├── merged_manifest +│   │   │   │   └── debug +│   │   │   │   ├── outputDebugAppLinkSettings +│   │   │   │   │   └── AndroidManifest.xml +│   │   │   │   └── processDebugMainManifest +│   │   │   │   └── AndroidManifest.xml +│   │   │   ├── merged_manifests +│   │   │   │   └── debug +│   │   │   │   └── processDebugManifest +│   │   │   │   ├── AndroidManifest.xml +│   │   │   │   └── output-metadata.json +│   │   │   ├── merged_native_libs +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugNativeLibs +│   │   │   │   └── out +│   │   │   │   └── lib +│   │   │   │   ├── arm64-v8a +│   │   │   │   │   ├── libVkLayer_khronos_validation.so +│   │   │   │   │   └── libflutter.so +│   │   │   │   ├── armeabi-v7a +│   │   │   │   │   └── libflutter.so +│   │   │   │   └── x86_64 +│   │   │   │   └── libflutter.so +│   │   │   ├── merged_res +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugResources +│   │   │   │   ├── drawable-v21_launch_background.xml.flat +│   │   │   │   ├── mipmap-hdpi_ic_launcher.png.flat +│   │   │   │   ├── mipmap-mdpi_ic_launcher.png.flat +│   │   │   │   ├── mipmap-xhdpi_ic_launcher.png.flat +│   │   │   │   ├── mipmap-xxhdpi_ic_launcher.png.flat +│   │   │   │   ├── mipmap-xxxhdpi_ic_launcher.png.flat +│   │   │   │   ├── values-af_values-af.arsc.flat +│   │   │   │   ├── values-am_values-am.arsc.flat +│   │   │   │   ├── values-ar_values-ar.arsc.flat +│   │   │   │   ├── values-as_values-as.arsc.flat +│   │   │   │   ├── values-az_values-az.arsc.flat +│   │   │   │   ├── values-b+sr+Latn_values-b+sr+Latn.arsc.flat +│   │   │   │   ├── values-be_values-be.arsc.flat +│   │   │   │   ├── values-bg_values-bg.arsc.flat +│   │   │   │   ├── values-bn_values-bn.arsc.flat +│   │   │   │   ├── values-bs_values-bs.arsc.flat +│   │   │   │   ├── values-ca_values-ca.arsc.flat +│   │   │   │   ├── values-cs_values-cs.arsc.flat +│   │   │   │   ├── values-da_values-da.arsc.flat +│   │   │   │   ├── values-de_values-de.arsc.flat +│   │   │   │   ├── values-el_values-el.arsc.flat +│   │   │   │   ├── values-en-rAU_values-en-rAU.arsc.flat +│   │   │   │   ├── values-en-rCA_values-en-rCA.arsc.flat +│   │   │   │   ├── values-en-rGB_values-en-rGB.arsc.flat +│   │   │   │   ├── values-en-rIN_values-en-rIN.arsc.flat +│   │   │   │   ├── values-en-rXC_values-en-rXC.arsc.flat +│   │   │   │   ├── values-es-rUS_values-es-rUS.arsc.flat +│   │   │   │   ├── values-es_values-es.arsc.flat +│   │   │   │   ├── values-et_values-et.arsc.flat +│   │   │   │   ├── values-eu_values-eu.arsc.flat +│   │   │   │   ├── values-fa_values-fa.arsc.flat +│   │   │   │   ├── values-fi_values-fi.arsc.flat +│   │   │   │   ├── values-fr-rCA_values-fr-rCA.arsc.flat +│   │   │   │   ├── values-fr_values-fr.arsc.flat +│   │   │   │   ├── values-gl_values-gl.arsc.flat +│   │   │   │   ├── values-gu_values-gu.arsc.flat +│   │   │   │   ├── values-h720dp-v13_values-h720dp-v13.arsc.flat +│   │   │   │   ├── values-hdpi-v4_values-hdpi-v4.arsc.flat +│   │   │   │   ├── values-hi_values-hi.arsc.flat +│   │   │   │   ├── values-hr_values-hr.arsc.flat +│   │   │   │   ├── values-hu_values-hu.arsc.flat +│   │   │   │   ├── values-hy_values-hy.arsc.flat +│   │   │   │   ├── values-in_values-in.arsc.flat +│   │   │   │   ├── values-is_values-is.arsc.flat +│   │   │   │   ├── values-it_values-it.arsc.flat +│   │   │   │   ├── values-iw_values-iw.arsc.flat +│   │   │   │   ├── values-ja_values-ja.arsc.flat +│   │   │   │   ├── values-ka_values-ka.arsc.flat +│   │   │   │   ├── values-kk_values-kk.arsc.flat +│   │   │   │   ├── values-km_values-km.arsc.flat +│   │   │   │   ├── values-kn_values-kn.arsc.flat +│   │   │   │   ├── values-ko_values-ko.arsc.flat +│   │   │   │   ├── values-ky_values-ky.arsc.flat +│   │   │   │   ├── values-land_values-land.arsc.flat +│   │   │   │   ├── values-large-v4_values-large-v4.arsc.flat +│   │   │   │   ├── values-ldltr-v21_values-ldltr-v21.arsc.flat +│   │   │   │   ├── values-lo_values-lo.arsc.flat +│   │   │   │   ├── values-lt_values-lt.arsc.flat +│   │   │   │   ├── values-lv_values-lv.arsc.flat +│   │   │   │   ├── values-mk_values-mk.arsc.flat +│   │   │   │   ├── values-ml_values-ml.arsc.flat +│   │   │   │   ├── values-mn_values-mn.arsc.flat +│   │   │   │   ├── values-mr_values-mr.arsc.flat +│   │   │   │   ├── values-ms_values-ms.arsc.flat +│   │   │   │   ├── values-my_values-my.arsc.flat +│   │   │   │   ├── values-nb_values-nb.arsc.flat +│   │   │   │   ├── values-ne_values-ne.arsc.flat +│   │   │   │   ├── values-night-v8_values-night-v8.arsc.flat +│   │   │   │   ├── values-nl_values-nl.arsc.flat +│   │   │   │   ├── values-or_values-or.arsc.flat +│   │   │   │   ├── values-pa_values-pa.arsc.flat +│   │   │   │   ├── values-pl_values-pl.arsc.flat +│   │   │   │   ├── values-port_values-port.arsc.flat +│   │   │   │   ├── values-pt-rBR_values-pt-rBR.arsc.flat +│   │   │   │   ├── values-pt-rPT_values-pt-rPT.arsc.flat +│   │   │   │   ├── values-pt_values-pt.arsc.flat +│   │   │   │   ├── values-ro_values-ro.arsc.flat +│   │   │   │   ├── values-ru_values-ru.arsc.flat +│   │   │   │   ├── values-si_values-si.arsc.flat +│   │   │   │   ├── values-sk_values-sk.arsc.flat +│   │   │   │   ├── values-sl_values-sl.arsc.flat +│   │   │   │   ├── values-sq_values-sq.arsc.flat +│   │   │   │   ├── values-sr_values-sr.arsc.flat +│   │   │   │   ├── values-sv_values-sv.arsc.flat +│   │   │   │   ├── values-sw600dp-v13_values-sw600dp-v13.arsc.flat +│   │   │   │   ├── values-sw_values-sw.arsc.flat +│   │   │   │   ├── values-ta_values-ta.arsc.flat +│   │   │   │   ├── values-te_values-te.arsc.flat +│   │   │   │   ├── values-th_values-th.arsc.flat +│   │   │   │   ├── values-tl_values-tl.arsc.flat +│   │   │   │   ├── values-tr_values-tr.arsc.flat +│   │   │   │   ├── values-uk_values-uk.arsc.flat +│   │   │   │   ├── values-ur_values-ur.arsc.flat +│   │   │   │   ├── values-uz_values-uz.arsc.flat +│   │   │   │   ├── values-v16_values-v16.arsc.flat +│   │   │   │   ├── values-v17_values-v17.arsc.flat +│   │   │   │   ├── values-v18_values-v18.arsc.flat +│   │   │   │   ├── values-v21_values-v21.arsc.flat +│   │   │   │   ├── values-v22_values-v22.arsc.flat +│   │   │   │   ├── values-v23_values-v23.arsc.flat +│   │   │   │   ├── values-v24_values-v24.arsc.flat +│   │   │   │   ├── values-v25_values-v25.arsc.flat +│   │   │   │   ├── values-v26_values-v26.arsc.flat +│   │   │   │   ├── values-v28_values-v28.arsc.flat +│   │   │   │   ├── values-vi_values-vi.arsc.flat +│   │   │   │   ├── values-watch-v20_values-watch-v20.arsc.flat +│   │   │   │   ├── values-watch-v21_values-watch-v21.arsc.flat +│   │   │   │   ├── values-xlarge-v4_values-xlarge-v4.arsc.flat +│   │   │   │   ├── values-zh-rCN_values-zh-rCN.arsc.flat +│   │   │   │   ├── values-zh-rHK_values-zh-rHK.arsc.flat +│   │   │   │   ├── values-zh-rTW_values-zh-rTW.arsc.flat +│   │   │   │   ├── values-zu_values-zu.arsc.flat +│   │   │   │   └── values_values.arsc.flat +│   │   │   ├── merged_res_blame_folder +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugResources +│   │   │   │   └── out +│   │   │   │   ├── multi-v2 +│   │   │   │   │   ├── mergeDebugResources.json +│   │   │   │   │   ├── values-af.json +│   │   │   │   │   ├── values-am.json +│   │   │   │   │   ├── values-ar.json +│   │   │   │   │   ├── values-as.json +│   │   │   │   │   ├── values-az.json +│   │   │   │   │   ├── values-b+sr+Latn.json +│   │   │   │   │   ├── values-be.json +│   │   │   │   │   ├── values-bg.json +│   │   │   │   │   ├── values-bn.json +│   │   │   │   │   ├── values-bs.json +│   │   │   │   │   ├── values-ca.json +│   │   │   │   │   ├── values-cs.json +│   │   │   │   │   ├── values-da.json +│   │   │   │   │   ├── values-de.json +│   │   │   │   │   ├── values-el.json +│   │   │   │   │   ├── values-en-rAU.json +│   │   │   │   │   ├── values-en-rCA.json +│   │   │   │   │   ├── values-en-rGB.json +│   │   │   │   │   ├── values-en-rIN.json +│   │   │   │   │   ├── values-en-rXC.json +│   │   │   │   │   ├── values-es-rUS.json +│   │   │   │   │   ├── values-es.json +│   │   │   │   │   ├── values-et.json +│   │   │   │   │   ├── values-eu.json +│   │   │   │   │   ├── values-fa.json +│   │   │   │   │   ├── values-fi.json +│   │   │   │   │   ├── values-fr-rCA.json +│   │   │   │   │   ├── values-fr.json +│   │   │   │   │   ├── values-gl.json +│   │   │   │   │   ├── values-gu.json +│   │   │   │   │   ├── values-h720dp-v13.json +│   │   │   │   │   ├── values-hdpi-v4.json +│   │   │   │   │   ├── values-hi.json +│   │   │   │   │   ├── values-hr.json +│   │   │   │   │   ├── values-hu.json +│   │   │   │   │   ├── values-hy.json +│   │   │   │   │   ├── values-in.json +│   │   │   │   │   ├── values-is.json +│   │   │   │   │   ├── values-it.json +│   │   │   │   │   ├── values-iw.json +│   │   │   │   │   ├── values-ja.json +│   │   │   │   │   ├── values-ka.json +│   │   │   │   │   ├── values-kk.json +│   │   │   │   │   ├── values-km.json +│   │   │   │   │   ├── values-kn.json +│   │   │   │   │   ├── values-ko.json +│   │   │   │   │   ├── values-ky.json +│   │   │   │   │   ├── values-land.json +│   │   │   │   │   ├── values-large-v4.json +│   │   │   │   │   ├── values-ldltr-v21.json +│   │   │   │   │   ├── values-lo.json +│   │   │   │   │   ├── values-lt.json +│   │   │   │   │   ├── values-lv.json +│   │   │   │   │   ├── values-mk.json +│   │   │   │   │   ├── values-ml.json +│   │   │   │   │   ├── values-mn.json +│   │   │   │   │   ├── values-mr.json +│   │   │   │   │   ├── values-ms.json +│   │   │   │   │   ├── values-my.json +│   │   │   │   │   ├── values-nb.json +│   │   │   │   │   ├── values-ne.json +│   │   │   │   │   ├── values-night-v8.json +│   │   │   │   │   ├── values-nl.json +│   │   │   │   │   ├── values-or.json +│   │   │   │   │   ├── values-pa.json +│   │   │   │   │   ├── values-pl.json +│   │   │   │   │   ├── values-port.json +│   │   │   │   │   ├── values-pt-rBR.json +│   │   │   │   │   ├── values-pt-rPT.json +│   │   │   │   │   ├── values-pt.json +│   │   │   │   │   ├── values-ro.json +│   │   │   │   │   ├── values-ru.json +│   │   │   │   │   ├── values-si.json +│   │   │   │   │   ├── values-sk.json +│   │   │   │   │   ├── values-sl.json +│   │   │   │   │   ├── values-sq.json +│   │   │   │   │   ├── values-sr.json +│   │   │   │   │   ├── values-sv.json +│   │   │   │   │   ├── values-sw.json +│   │   │   │   │   ├── values-sw600dp-v13.json +│   │   │   │   │   ├── values-ta.json +│   │   │   │   │   ├── values-te.json +│   │   │   │   │   ├── values-th.json +│   │   │   │   │   ├── values-tl.json +│   │   │   │   │   ├── values-tr.json +│   │   │   │   │   ├── values-uk.json +│   │   │   │   │   ├── values-ur.json +│   │   │   │   │   ├── values-uz.json +│   │   │   │   │   ├── values-v16.json +│   │   │   │   │   ├── values-v17.json +│   │   │   │   │   ├── values-v18.json +│   │   │   │   │   ├── values-v21.json +│   │   │   │   │   ├── values-v22.json +│   │   │   │   │   ├── values-v23.json +│   │   │   │   │   ├── values-v24.json +│   │   │   │   │   ├── values-v25.json +│   │   │   │   │   ├── values-v26.json +│   │   │   │   │   ├── values-v28.json +│   │   │   │   │   ├── values-vi.json +│   │   │   │   │   ├── values-watch-v20.json +│   │   │   │   │   ├── values-watch-v21.json +│   │   │   │   │   ├── values-xlarge-v4.json +│   │   │   │   │   ├── values-zh-rCN.json +│   │   │   │   │   ├── values-zh-rHK.json +│   │   │   │   │   ├── values-zh-rTW.json +│   │   │   │   │   ├── values-zu.json +│   │   │   │   │   └── values.json +│   │   │   │   └── single +│   │   │   │   └── mergeDebugResources.json +│   │   │   ├── merged_shaders +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugShaders +│   │   │   │   └── out +│   │   │   ├── merged_test_only_native_libs +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugNativeLibs +│   │   │   │   └── out +│   │   │   ├── mixed_scope_dex_archive +│   │   │   │   └── debug +│   │   │   │   └── dexBuilderDebug +│   │   │   │   └── out +│   │   │   ├── navigation_json +│   │   │   │   └── debug +│   │   │   │   └── extractDeepLinksDebug +│   │   │   │   └── navigation.json +│   │   │   ├── nested_resources_validation_report +│   │   │   │   └── debug +│   │   │   │   └── generateDebugResources +│   │   │   │   └── nestedResourcesValidationReport.txt +│   │   │   ├── packaged_manifests +│   │   │   │   └── debug +│   │   │   │   └── processDebugManifestForPackage +│   │   │   │   ├── AndroidManifest.xml +│   │   │   │   └── output-metadata.json +│   │   │   ├── packaged_res +│   │   │   │   └── debug +│   │   │   │   └── packageDebugResources +│   │   │   │   ├── drawable-v21 +│   │   │   │   │   └── launch_background.xml +│   │   │   │   ├── mipmap-hdpi-v4 +│   │   │   │   │   └── ic_launcher.png +│   │   │   │   ├── mipmap-mdpi-v4 +│   │   │   │   │   └── ic_launcher.png +│   │   │   │   ├── mipmap-xhdpi-v4 +│   │   │   │   │   └── ic_launcher.png +│   │   │   │   ├── mipmap-xxhdpi-v4 +│   │   │   │   │   └── ic_launcher.png +│   │   │   │   ├── mipmap-xxxhdpi-v4 +│   │   │   │   │   └── ic_launcher.png +│   │   │   │   ├── values +│   │   │   │   │   └── values.xml +│   │   │   │   └── values-night-v8 +│   │   │   │   └── values-night-v8.xml +│   │   │   ├── project_dex_archive +│   │   │   │   └── debug +│   │   │   │   └── dexBuilderDebug +│   │   │   │   └── out +│   │   │   │   ├── 753fbebdc99cc526e5207d00e89590398432bccfeec10957c14bb3452ae3fbfa_0.jar +│   │   │   │   ├── 753fbebdc99cc526e5207d00e89590398432bccfeec10957c14bb3452ae3fbfa_1.jar +│   │   │   │   ├── 753fbebdc99cc526e5207d00e89590398432bccfeec10957c14bb3452ae3fbfa_2.jar +│   │   │   │   ├── 753fbebdc99cc526e5207d00e89590398432bccfeec10957c14bb3452ae3fbfa_3.jar +│   │   │   │   ├── com +│   │   │   │   │   └── example +│   │   │   │   │   └── gemi_invoice +│   │   │   │   │   └── MainActivity.dex +│   │   │   │   └── io +│   │   │   │   └── flutter +│   │   │   │   └── plugins +│   │   │   │   └── GeneratedPluginRegistrant.dex +│   │   │   ├── runtime_symbol_list +│   │   │   │   └── debug +│   │   │   │   └── processDebugResources +│   │   │   │   └── R.txt +│   │   │   ├── signing_config_versions +│   │   │   │   └── debug +│   │   │   │   └── writeDebugSigningConfigVersions +│   │   │   │   └── signing-config-versions.json +│   │   │   ├── source_set_path_map +│   │   │   │   └── debug +│   │   │   │   └── mapDebugSourceSetPaths +│   │   │   │   └── file-map.txt +│   │   │   ├── stable_resource_ids_file +│   │   │   │   └── debug +│   │   │   │   └── processDebugResources +│   │   │   │   └── stableIds.txt +│   │   │   ├── stripped_native_libs +│   │   │   │   └── debug +│   │   │   │   └── stripDebugDebugSymbols +│   │   │   │   └── out +│   │   │   │   └── lib +│   │   │   │   ├── arm64-v8a +│   │   │   │   │   ├── libVkLayer_khronos_validation.so +│   │   │   │   │   └── libflutter.so +│   │   │   │   ├── armeabi-v7a +│   │   │   │   │   └── libflutter.so +│   │   │   │   └── x86_64 +│   │   │   │   └── libflutter.so +│   │   │   ├── sub_project_dex_archive +│   │   │   │   └── debug +│   │   │   │   └── dexBuilderDebug +│   │   │   │   └── out +│   │   │   ├── symbol_list_with_package_name +│   │   │   │   └── debug +│   │   │   │   └── processDebugResources +│   │   │   │   └── package-aware-r.txt +│   │   │   └── validate_signing_config +│   │   │   └── debug +│   │   │   └── validateSigningDebug +│   │   ├── kotlin +│   │   │   └── compileDebugKotlin +│   │   │   ├── cacheable +│   │   │   │   ├── caches-jvm +│   │   │   │   │   ├── inputs +│   │   │   │   │   │   ├── source-to-output.tab +│   │   │   │   │   │   ├── source-to-output.tab.keystream +│   │   │   │   │   │   ├── source-to-output.tab.keystream.len +│   │   │   │   │   │   ├── source-to-output.tab.len +│   │   │   │   │   │   ├── source-to-output.tab.values.at +│   │   │   │   │   │   ├── source-to-output.tab_i +│   │   │   │   │   │   └── source-to-output.tab_i.len +│   │   │   │   │   ├── jvm +│   │   │   │   │   │   └── kotlin +│   │   │   │   │   │   ├── class-attributes.tab +│   │   │   │   │   │   ├── class-attributes.tab.keystream +│   │   │   │   │   │   ├── class-attributes.tab.keystream.len +│   │   │   │   │   │   ├── class-attributes.tab.len +│   │   │   │   │   │   ├── class-attributes.tab.values.at +│   │   │   │   │   │   ├── class-attributes.tab_i +│   │   │   │   │   │   ├── class-attributes.tab_i.len +│   │   │   │   │   │   ├── class-fq-name-to-source.tab +│   │   │   │   │   │   ├── class-fq-name-to-source.tab.keystream +│   │   │   │   │   │   ├── class-fq-name-to-source.tab.keystream.len +│   │   │   │   │   │   ├── class-fq-name-to-source.tab.len +│   │   │   │   │   │   ├── class-fq-name-to-source.tab.values.at +│   │   │   │   │   │   ├── class-fq-name-to-source.tab_i +│   │   │   │   │   │   ├── class-fq-name-to-source.tab_i.len +│   │   │   │   │   │   ├── internal-name-to-source.tab +│   │   │   │   │   │   ├── internal-name-to-source.tab.keystream +│   │   │   │   │   │   ├── internal-name-to-source.tab.keystream.len +│   │   │   │   │   │   ├── internal-name-to-source.tab.len +│   │   │   │   │   │   ├── internal-name-to-source.tab.values.at +│   │   │   │   │   │   ├── internal-name-to-source.tab_i +│   │   │   │   │   │   ├── internal-name-to-source.tab_i.len +│   │   │   │   │   │   ├── proto.tab +│   │   │   │   │   │   ├── proto.tab.keystream +│   │   │   │   │   │   ├── proto.tab.keystream.len +│   │   │   │   │   │   ├── proto.tab.len +│   │   │   │   │   │   ├── proto.tab.values.at +│   │   │   │   │   │   ├── proto.tab_i +│   │   │   │   │   │   ├── proto.tab_i.len +│   │   │   │   │   │   ├── source-to-classes.tab +│   │   │   │   │   │   ├── source-to-classes.tab.keystream +│   │   │   │   │   │   ├── source-to-classes.tab.keystream.len +│   │   │   │   │   │   ├── source-to-classes.tab.len +│   │   │   │   │   │   ├── source-to-classes.tab.values.at +│   │   │   │   │   │   ├── source-to-classes.tab_i +│   │   │   │   │   │   ├── source-to-classes.tab_i.len +│   │   │   │   │   │   ├── subtypes.tab +│   │   │   │   │   │   ├── subtypes.tab.keystream +│   │   │   │   │   │   ├── subtypes.tab.keystream.len +│   │   │   │   │   │   ├── subtypes.tab.len +│   │   │   │   │   │   ├── subtypes.tab.values.at +│   │   │   │   │   │   ├── subtypes.tab_i +│   │   │   │   │   │   ├── subtypes.tab_i.len +│   │   │   │   │   │   ├── supertypes.tab +│   │   │   │   │   │   ├── supertypes.tab.keystream +│   │   │   │   │   │   ├── supertypes.tab.keystream.len +│   │   │   │   │   │   ├── supertypes.tab.len +│   │   │   │   │   │   ├── supertypes.tab.values.at +│   │   │   │   │   │   ├── supertypes.tab_i +│   │   │   │   │   │   └── supertypes.tab_i.len +│   │   │   │   │   └── lookups +│   │   │   │   │   ├── counters.tab +│   │   │   │   │   ├── file-to-id.tab +│   │   │   │   │   ├── file-to-id.tab.keystream +│   │   │   │   │   ├── file-to-id.tab.keystream.len +│   │   │   │   │   ├── file-to-id.tab.len +│   │   │   │   │   ├── file-to-id.tab.values.at +│   │   │   │   │   ├── file-to-id.tab_i +│   │   │   │   │   ├── file-to-id.tab_i.len +│   │   │   │   │   ├── id-to-file.tab +│   │   │   │   │   ├── id-to-file.tab.keystream +│   │   │   │   │   ├── id-to-file.tab.keystream.len +│   │   │   │   │   ├── id-to-file.tab.len +│   │   │   │   │   ├── id-to-file.tab.values.at +│   │   │   │   │   ├── id-to-file.tab_i.len +│   │   │   │   │   ├── lookups.tab +│   │   │   │   │   ├── lookups.tab.keystream +│   │   │   │   │   ├── lookups.tab.keystream.len +│   │   │   │   │   ├── lookups.tab.len +│   │   │   │   │   ├── lookups.tab.values.at +│   │   │   │   │   ├── lookups.tab_i +│   │   │   │   │   └── lookups.tab_i.len +│   │   │   │   └── last-build.bin +│   │   │   ├── classpath-snapshot +│   │   │   │   └── shrunk-classpath-snapshot.bin +│   │   │   └── local-state +│   │   ├── outputs +│   │   │   ├── apk +│   │   │   │   └── debug +│   │   │   │   ├── app-debug.apk +│   │   │   │   └── output-metadata.json +│   │   │   ├── flutter-apk +│   │   │   │   ├── app-debug.apk +│   │   │   │   └── app-debug.apk.sha1 +│   │   │   └── logs +│   │   │   └── manifest-merger-debug-report.txt +│   │   └── tmp +│   │   ├── compileDebugJavaWithJavac +│   │   │   └── previous-compilation-data.bin +│   │   ├── kotlin-classes +│   │   │   └── debug +│   │   │   ├── META-INF +│   │   │   │   └── app_debug.kotlin_module +│   │   │   └── com +│   │   │   └── example +│   │   │   └── gemi_invoice +│   │   │   └── MainActivity.class +│   │   └── packJniLibsflutterBuildDebug +│   │   └── MANIFEST.MF +│   ├── flutter_contacts +│   │   ├── generated +│   │   │   └── res +│   │   │   ├── pngs +│   │   │   │   └── debug +│   │   │   └── resValues +│   │   │   └── debug +│   │   ├── intermediates +│   │   │   ├── aapt_friendly_merged_manifests +│   │   │   │   └── debug +│   │   │   │   └── processDebugManifest +│   │   │   │   └── aapt +│   │   │   │   ├── AndroidManifest.xml +│   │   │   │   └── output-metadata.json +│   │   │   ├── aar_libs_directory +│   │   │   │   └── debug +│   │   │   │   └── syncDebugLibJars +│   │   │   │   └── libs +│   │   │   ├── aar_main_jar +│   │   │   │   └── debug +│   │   │   │   └── syncDebugLibJars +│   │   │   │   └── classes.jar +│   │   │   ├── aar_metadata +│   │   │   │   └── debug +│   │   │   │   └── writeDebugAarMetadata +│   │   │   │   └── aar-metadata.properties +│   │   │   ├── annotation_processor_list +│   │   │   │   └── debug +│   │   │   │   └── javaPreCompileDebug +│   │   │   │   └── annotationProcessors.json +│   │   │   ├── annotations_typedef_file +│   │   │   │   └── debug +│   │   │   │   └── extractDebugAnnotations +│   │   │   │   └── typedefs.txt +│   │   │   ├── annotations_zip +│   │   │   │   └── debug +│   │   │   │   └── extractDebugAnnotations +│   │   │   ├── assets +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugAssets +│   │   │   ├── compile_library_classes_jar +│   │   │   │   └── debug +│   │   │   │   └── bundleLibCompileToJarDebug +│   │   │   │   └── classes.jar +│   │   │   ├── compile_r_class_jar +│   │   │   │   └── debug +│   │   │   │   └── generateDebugRFile +│   │   │   │   └── R.jar +│   │   │   ├── compile_symbol_list +│   │   │   │   └── debug +│   │   │   │   └── generateDebugRFile +│   │   │   │   └── R.txt +│   │   │   ├── compiled_local_resources +│   │   │   │   └── debug +│   │   │   │   └── compileDebugLibraryResources +│   │   │   │   └── out +│   │   │   ├── data_binding_layout_info_type_package +│   │   │   │   └── debug +│   │   │   │   └── packageDebugResources +│   │   │   │   └── out +│   │   │   ├── incremental +│   │   │   │   ├── debug +│   │   │   │   │   └── packageDebugResources +│   │   │   │   │   ├── compile-file-map.properties +│   │   │   │   │   ├── merged.dir +│   │   │   │   │   ├── merger.xml +│   │   │   │   │   └── stripped.dir +│   │   │   │   ├── debug-mergeJavaRes +│   │   │   │   │   ├── merge-state +│   │   │   │   │   └── zip-cache +│   │   │   │   ├── mergeDebugAssets +│   │   │   │   │   └── merger.xml +│   │   │   │   ├── mergeDebugJniLibFolders +│   │   │   │   │   └── merger.xml +│   │   │   │   └── mergeDebugShaders +│   │   │   │   └── merger.xml +│   │   │   ├── java_res +│   │   │   │   └── debug +│   │   │   │   └── processDebugJavaRes +│   │   │   │   └── out +│   │   │   │   ├── META-INF +│   │   │   │   │   └── flutter_contacts_debug.kotlin_module +│   │   │   │   └── co +│   │   │   │   └── quis +│   │   │   │   └── flutter_contacts +│   │   │   │   └── properties +│   │   │   ├── library_and_local_jars_jni +│   │   │   │   └── debug +│   │   │   │   └── copyDebugJniLibsProjectAndLocalJars +│   │   │   │   └── jni +│   │   │   ├── library_jni +│   │   │   │   └── debug +│   │   │   │   └── copyDebugJniLibsProjectOnly +│   │   │   │   └── jni +│   │   │   ├── local_only_symbol_list +│   │   │   │   └── debug +│   │   │   │   └── parseDebugLocalResources +│   │   │   │   └── R-def.txt +│   │   │   ├── manifest_merge_blame_file +│   │   │   │   └── debug +│   │   │   │   └── processDebugManifest +│   │   │   │   └── manifest-merger-blame-debug-report.txt +│   │   │   ├── merged_java_res +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugJavaResource +│   │   │   │   └── feature-flutter_contacts.jar +│   │   │   ├── merged_jni_libs +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugJniLibFolders +│   │   │   │   └── out +│   │   │   ├── merged_manifest +│   │   │   │   └── debug +│   │   │   │   └── processDebugManifest +│   │   │   │   └── AndroidManifest.xml +│   │   │   ├── merged_shaders +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugShaders +│   │   │   │   └── out +│   │   │   ├── navigation_json +│   │   │   │   └── debug +│   │   │   │   └── extractDeepLinksDebug +│   │   │   │   └── navigation.json +│   │   │   ├── nested_resources_validation_report +│   │   │   │   └── debug +│   │   │   │   └── generateDebugResources +│   │   │   │   └── nestedResourcesValidationReport.txt +│   │   │   ├── packaged_res +│   │   │   │   └── debug +│   │   │   │   └── packageDebugResources +│   │   │   ├── public_res +│   │   │   │   └── debug +│   │   │   │   └── packageDebugResources +│   │   │   ├── runtime_library_classes_dir +│   │   │   │   └── debug +│   │   │   │   └── bundleLibRuntimeToDirDebug +│   │   │   │   ├── META-INF +│   │   │   │   │   └── flutter_contacts_debug.kotlin_module +│   │   │   │   └── co +│   │   │   │   └── quis +│   │   │   │   └── flutter_contacts +│   │   │   │   ├── Contact$Companion.class +│   │   │   │   ├── Contact.class +│   │   │   │   ├── ContactChangeObserver.class +│   │   │   │   ├── FlutterContacts$Companion$AddressLabelPair.class +│   │   │   │   ├── FlutterContacts$Companion$EmailLabelPair.class +│   │   │   │   ├── FlutterContacts$Companion$EventLabelPair.class +│   │   │   │   ├── FlutterContacts$Companion$PhoneLabelPair.class +│   │   │   │   ├── FlutterContacts$Companion$SocialMediaLabelPair.class +│   │   │   │   ├── FlutterContacts$Companion$WebsiteLabelPair.class +│   │   │   │   ├── FlutterContacts$Companion.class +│   │   │   │   ├── FlutterContacts.class +│   │   │   │   ├── FlutterContactsPlugin$Companion.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$1$1.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$1$2.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$1.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$10.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$11.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$12.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$13.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$2$1.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$2.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$3$1.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$3.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$4$1.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$4.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$5$1.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$5.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$6$1.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$6.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$7$1.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$7.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$8$1.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$8.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$9$1.class +│   │   │   │   ├── FlutterContactsPlugin$onMethodCall$9.class +│   │   │   │   ├── FlutterContactsPlugin$onRequestPermissionsResult$1.class +│   │   │   │   ├── FlutterContactsPlugin$onRequestPermissionsResult$2.class +│   │   │   │   ├── FlutterContactsPlugin.class +│   │   │   │   └── properties +│   │   │   │   ├── Account$Companion.class +│   │   │   │   ├── Account.class +│   │   │   │   ├── Address$Companion.class +│   │   │   │   ├── Address.class +│   │   │   │   ├── Email$Companion.class +│   │   │   │   ├── Email.class +│   │   │   │   ├── Event$Companion.class +│   │   │   │   ├── Event.class +│   │   │   │   ├── Group$Companion.class +│   │   │   │   ├── Group.class +│   │   │   │   ├── Name$Companion.class +│   │   │   │   ├── Name.class +│   │   │   │   ├── Note$Companion.class +│   │   │   │   ├── Note.class +│   │   │   │   ├── Organization$Companion.class +│   │   │   │   ├── Organization.class +│   │   │   │   ├── Phone$Companion.class +│   │   │   │   ├── Phone.class +│   │   │   │   ├── SocialMedia$Companion.class +│   │   │   │   ├── SocialMedia.class +│   │   │   │   ├── Website$Companion.class +│   │   │   │   └── Website.class +│   │   │   ├── runtime_library_classes_jar +│   │   │   │   └── debug +│   │   │   │   └── bundleLibRuntimeToJarDebug +│   │   │   │   └── classes.jar +│   │   │   └── symbol_list_with_package_name +│   │   │   └── debug +│   │   │   └── generateDebugRFile +│   │   │   └── package-aware-r.txt +│   │   ├── kotlin +│   │   │   └── compileDebugKotlin +│   │   │   ├── cacheable +│   │   │   │   ├── caches-jvm +│   │   │   │   │   ├── inputs +│   │   │   │   │   │   ├── source-to-output.tab +│   │   │   │   │   │   ├── source-to-output.tab.keystream +│   │   │   │   │   │   ├── source-to-output.tab.keystream.len +│   │   │   │   │   │   ├── source-to-output.tab.len +│   │   │   │   │   │   ├── source-to-output.tab.values.at +│   │   │   │   │   │   ├── source-to-output.tab_i +│   │   │   │   │   │   └── source-to-output.tab_i.len +│   │   │   │   │   ├── jvm +│   │   │   │   │   │   └── kotlin +│   │   │   │   │   │   ├── class-attributes.tab +│   │   │   │   │   │   ├── class-attributes.tab.keystream +│   │   │   │   │   │   ├── class-attributes.tab.keystream.len +│   │   │   │   │   │   ├── class-attributes.tab.len +│   │   │   │   │   │   ├── class-attributes.tab.values.at +│   │   │   │   │   │   ├── class-attributes.tab_i +│   │   │   │   │   │   ├── class-attributes.tab_i.len +│   │   │   │   │   │   ├── class-fq-name-to-source.tab +│   │   │   │   │   │   ├── class-fq-name-to-source.tab.keystream +│   │   │   │   │   │   ├── class-fq-name-to-source.tab.keystream.len +│   │   │   │   │   │   ├── class-fq-name-to-source.tab.len +│   │   │   │   │   │   ├── class-fq-name-to-source.tab.values.at +│   │   │   │   │   │   ├── class-fq-name-to-source.tab_i +│   │   │   │   │   │   ├── class-fq-name-to-source.tab_i.len +│   │   │   │   │   │   ├── internal-name-to-source.tab +│   │   │   │   │   │   ├── internal-name-to-source.tab.keystream +│   │   │   │   │   │   ├── internal-name-to-source.tab.keystream.len +│   │   │   │   │   │   ├── internal-name-to-source.tab.len +│   │   │   │   │   │   ├── internal-name-to-source.tab.values.at +│   │   │   │   │   │   ├── internal-name-to-source.tab_i +│   │   │   │   │   │   ├── internal-name-to-source.tab_i.len +│   │   │   │   │   │   ├── proto.tab +│   │   │   │   │   │   ├── proto.tab.keystream +│   │   │   │   │   │   ├── proto.tab.keystream.len +│   │   │   │   │   │   ├── proto.tab.len +│   │   │   │   │   │   ├── proto.tab.values.at +│   │   │   │   │   │   ├── proto.tab_i +│   │   │   │   │   │   ├── proto.tab_i.len +│   │   │   │   │   │   ├── source-to-classes.tab +│   │   │   │   │   │   ├── source-to-classes.tab.keystream +│   │   │   │   │   │   ├── source-to-classes.tab.keystream.len +│   │   │   │   │   │   ├── source-to-classes.tab.len +│   │   │   │   │   │   ├── source-to-classes.tab.values.at +│   │   │   │   │   │   ├── source-to-classes.tab_i +│   │   │   │   │   │   ├── source-to-classes.tab_i.len +│   │   │   │   │   │   ├── subtypes.tab +│   │   │   │   │   │   ├── subtypes.tab.keystream +│   │   │   │   │   │   ├── subtypes.tab.keystream.len +│   │   │   │   │   │   ├── subtypes.tab.len +│   │   │   │   │   │   ├── subtypes.tab.values.at +│   │   │   │   │   │   ├── subtypes.tab_i +│   │   │   │   │   │   ├── subtypes.tab_i.len +│   │   │   │   │   │   ├── supertypes.tab +│   │   │   │   │   │   ├── supertypes.tab.keystream +│   │   │   │   │   │   ├── supertypes.tab.keystream.len +│   │   │   │   │   │   ├── supertypes.tab.len +│   │   │   │   │   │   ├── supertypes.tab.values.at +│   │   │   │   │   │   ├── supertypes.tab_i +│   │   │   │   │   │   └── supertypes.tab_i.len +│   │   │   │   │   └── lookups +│   │   │   │   │   ├── counters.tab +│   │   │   │   │   ├── file-to-id.tab +│   │   │   │   │   ├── file-to-id.tab.keystream +│   │   │   │   │   ├── file-to-id.tab.keystream.len +│   │   │   │   │   ├── file-to-id.tab.len +│   │   │   │   │   ├── file-to-id.tab.values.at +│   │   │   │   │   ├── file-to-id.tab_i +│   │   │   │   │   ├── file-to-id.tab_i.len +│   │   │   │   │   ├── id-to-file.tab +│   │   │   │   │   ├── id-to-file.tab.keystream +│   │   │   │   │   ├── id-to-file.tab.keystream.len +│   │   │   │   │   ├── id-to-file.tab.len +│   │   │   │   │   ├── id-to-file.tab.values.at +│   │   │   │   │   ├── id-to-file.tab_i +│   │   │   │   │   ├── id-to-file.tab_i.len +│   │   │   │   │   ├── lookups.tab +│   │   │   │   │   ├── lookups.tab.keystream +│   │   │   │   │   ├── lookups.tab.keystream.len +│   │   │   │   │   ├── lookups.tab.len +│   │   │   │   │   ├── lookups.tab.values.at +│   │   │   │   │   ├── lookups.tab_i +│   │   │   │   │   └── lookups.tab_i.len +│   │   │   │   └── last-build.bin +│   │   │   ├── classpath-snapshot +│   │   │   │   └── shrunk-classpath-snapshot.bin +│   │   │   └── local-state +│   │   ├── outputs +│   │   │   ├── aar +│   │   │   │   └── flutter_contacts-debug.aar +│   │   │   └── logs +│   │   │   └── manifest-merger-debug-report.txt +│   │   └── tmp +│   │   └── kotlin-classes +│   │   └── debug +│   │   ├── META-INF +│   │   │   └── flutter_contacts_debug.kotlin_module +│   │   └── co +│   │   └── quis +│   │   └── flutter_contacts +│   │   ├── Contact$Companion.class +│   │   ├── Contact.class +│   │   ├── ContactChangeObserver.class +│   │   ├── FlutterContacts$Companion$AddressLabelPair.class +│   │   ├── FlutterContacts$Companion$EmailLabelPair.class +│   │   ├── FlutterContacts$Companion$EventLabelPair.class +│   │   ├── FlutterContacts$Companion$PhoneLabelPair.class +│   │   ├── FlutterContacts$Companion$SocialMediaLabelPair.class +│   │   ├── FlutterContacts$Companion$WebsiteLabelPair.class +│   │   ├── FlutterContacts$Companion.class +│   │   ├── FlutterContacts.class +│   │   ├── FlutterContactsPlugin$Companion.class +│   │   ├── FlutterContactsPlugin$onMethodCall$1$1.class +│   │   ├── FlutterContactsPlugin$onMethodCall$1$2.class +│   │   ├── FlutterContactsPlugin$onMethodCall$1.class +│   │   ├── FlutterContactsPlugin$onMethodCall$10.class +│   │   ├── FlutterContactsPlugin$onMethodCall$11.class +│   │   ├── FlutterContactsPlugin$onMethodCall$12.class +│   │   ├── FlutterContactsPlugin$onMethodCall$13.class +│   │   ├── FlutterContactsPlugin$onMethodCall$2$1.class +│   │   ├── FlutterContactsPlugin$onMethodCall$2.class +│   │   ├── FlutterContactsPlugin$onMethodCall$3$1.class +│   │   ├── FlutterContactsPlugin$onMethodCall$3.class +│   │   ├── FlutterContactsPlugin$onMethodCall$4$1.class +│   │   ├── FlutterContactsPlugin$onMethodCall$4.class +│   │   ├── FlutterContactsPlugin$onMethodCall$5$1.class +│   │   ├── FlutterContactsPlugin$onMethodCall$5.class +│   │   ├── FlutterContactsPlugin$onMethodCall$6$1.class +│   │   ├── FlutterContactsPlugin$onMethodCall$6.class +│   │   ├── FlutterContactsPlugin$onMethodCall$7$1.class +│   │   ├── FlutterContactsPlugin$onMethodCall$7.class +│   │   ├── FlutterContactsPlugin$onMethodCall$8$1.class +│   │   ├── FlutterContactsPlugin$onMethodCall$8.class +│   │   ├── FlutterContactsPlugin$onMethodCall$9$1.class +│   │   ├── FlutterContactsPlugin$onMethodCall$9.class +│   │   ├── FlutterContactsPlugin$onRequestPermissionsResult$1.class +│   │   ├── FlutterContactsPlugin$onRequestPermissionsResult$2.class +│   │   ├── FlutterContactsPlugin.class +│   │   └── properties +│   │   ├── Account$Companion.class +│   │   ├── Account.class +│   │   ├── Address$Companion.class +│   │   ├── Address.class +│   │   ├── Email$Companion.class +│   │   ├── Email.class +│   │   ├── Event$Companion.class +│   │   ├── Event.class +│   │   ├── Group$Companion.class +│   │   ├── Group.class +│   │   ├── Name$Companion.class +│   │   ├── Name.class +│   │   ├── Note$Companion.class +│   │   ├── Note.class +│   │   ├── Organization$Companion.class +│   │   ├── Organization.class +│   │   ├── Phone$Companion.class +│   │   ├── Phone.class +│   │   ├── SocialMedia$Companion.class +│   │   ├── SocialMedia.class +│   │   ├── Website$Companion.class +│   │   └── Website.class +│   ├── native_assets +│   │   └── android +│   ├── open_filex +│   │   ├── generated +│   │   │   ├── ap_generated_sources +│   │   │   │   └── debug +│   │   │   │   └── out +│   │   │   └── res +│   │   │   ├── pngs +│   │   │   │   └── debug +│   │   │   └── resValues +│   │   │   └── debug +│   │   ├── intermediates +│   │   │   ├── aapt_friendly_merged_manifests +│   │   │   │   └── debug +│   │   │   │   └── processDebugManifest +│   │   │   │   └── aapt +│   │   │   │   ├── AndroidManifest.xml +│   │   │   │   └── output-metadata.json +│   │   │   ├── aar_libs_directory +│   │   │   │   └── debug +│   │   │   │   └── syncDebugLibJars +│   │   │   │   └── libs +│   │   │   ├── aar_main_jar +│   │   │   │   └── debug +│   │   │   │   └── syncDebugLibJars +│   │   │   │   └── classes.jar +│   │   │   ├── aar_metadata +│   │   │   │   └── debug +│   │   │   │   └── writeDebugAarMetadata +│   │   │   │   └── aar-metadata.properties +│   │   │   ├── annotation_processor_list +│   │   │   │   └── debug +│   │   │   │   └── javaPreCompileDebug +│   │   │   │   └── annotationProcessors.json +│   │   │   ├── annotations_typedef_file +│   │   │   │   └── debug +│   │   │   │   └── extractDebugAnnotations +│   │   │   │   └── typedefs.txt +│   │   │   ├── annotations_zip +│   │   │   │   └── debug +│   │   │   │   └── extractDebugAnnotations +│   │   │   ├── assets +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugAssets +│   │   │   ├── compile_library_classes_jar +│   │   │   │   └── debug +│   │   │   │   └── bundleLibCompileToJarDebug +│   │   │   │   └── classes.jar +│   │   │   ├── compile_r_class_jar +│   │   │   │   └── debug +│   │   │   │   └── generateDebugRFile +│   │   │   │   └── R.jar +│   │   │   ├── compile_symbol_list +│   │   │   │   └── debug +│   │   │   │   └── generateDebugRFile +│   │   │   │   └── R.txt +│   │   │   ├── compiled_local_resources +│   │   │   │   └── debug +│   │   │   │   └── compileDebugLibraryResources +│   │   │   │   └── out +│   │   │   │   └── xml_filepaths.xml.flat +│   │   │   ├── data_binding_layout_info_type_package +│   │   │   │   └── debug +│   │   │   │   └── packageDebugResources +│   │   │   │   └── out +│   │   │   ├── incremental +│   │   │   │   ├── debug +│   │   │   │   │   └── packageDebugResources +│   │   │   │   │   ├── compile-file-map.properties +│   │   │   │   │   ├── merged.dir +│   │   │   │   │   ├── merger.xml +│   │   │   │   │   └── stripped.dir +│   │   │   │   ├── debug-mergeJavaRes +│   │   │   │   │   ├── merge-state +│   │   │   │   │   └── zip-cache +│   │   │   │   ├── mergeDebugAssets +│   │   │   │   │   └── merger.xml +│   │   │   │   ├── mergeDebugJniLibFolders +│   │   │   │   │   └── merger.xml +│   │   │   │   └── mergeDebugShaders +│   │   │   │   └── merger.xml +│   │   │   ├── javac +│   │   │   │   └── debug +│   │   │   │   └── compileDebugJavaWithJavac +│   │   │   │   └── classes +│   │   │   │   └── com +│   │   │   │   └── crazecoder +│   │   │   │   └── openfile +│   │   │   │   ├── FileProvider.class +│   │   │   │   ├── OpenFilePlugin.class +│   │   │   │   └── utils +│   │   │   │   ├── JsonUtil.class +│   │   │   │   └── MapUtil.class +│   │   │   ├── library_and_local_jars_jni +│   │   │   │   └── debug +│   │   │   │   └── copyDebugJniLibsProjectAndLocalJars +│   │   │   │   └── jni +│   │   │   ├── library_jni +│   │   │   │   └── debug +│   │   │   │   └── copyDebugJniLibsProjectOnly +│   │   │   │   └── jni +│   │   │   ├── local_only_symbol_list +│   │   │   │   └── debug +│   │   │   │   └── parseDebugLocalResources +│   │   │   │   └── R-def.txt +│   │   │   ├── manifest_merge_blame_file +│   │   │   │   └── debug +│   │   │   │   └── processDebugManifest +│   │   │   │   └── manifest-merger-blame-debug-report.txt +│   │   │   ├── merged_java_res +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugJavaResource +│   │   │   │   └── feature-open_filex.jar +│   │   │   ├── merged_jni_libs +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugJniLibFolders +│   │   │   │   └── out +│   │   │   ├── merged_manifest +│   │   │   │   └── debug +│   │   │   │   └── processDebugManifest +│   │   │   │   └── AndroidManifest.xml +│   │   │   ├── merged_shaders +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugShaders +│   │   │   │   └── out +│   │   │   ├── navigation_json +│   │   │   │   └── debug +│   │   │   │   └── extractDeepLinksDebug +│   │   │   │   └── navigation.json +│   │   │   ├── nested_resources_validation_report +│   │   │   │   └── debug +│   │   │   │   └── generateDebugResources +│   │   │   │   └── nestedResourcesValidationReport.txt +│   │   │   ├── packaged_res +│   │   │   │   └── debug +│   │   │   │   └── packageDebugResources +│   │   │   │   └── xml +│   │   │   │   └── filepaths.xml +│   │   │   ├── public_res +│   │   │   │   └── debug +│   │   │   │   └── packageDebugResources +│   │   │   ├── runtime_library_classes_dir +│   │   │   │   └── debug +│   │   │   │   └── bundleLibRuntimeToDirDebug +│   │   │   │   └── com +│   │   │   │   └── crazecoder +│   │   │   │   └── openfile +│   │   │   │   ├── FileProvider.class +│   │   │   │   ├── OpenFilePlugin.class +│   │   │   │   └── utils +│   │   │   │   ├── JsonUtil.class +│   │   │   │   └── MapUtil.class +│   │   │   ├── runtime_library_classes_jar +│   │   │   │   └── debug +│   │   │   │   └── bundleLibRuntimeToJarDebug +│   │   │   │   └── classes.jar +│   │   │   └── symbol_list_with_package_name +│   │   │   └── debug +│   │   │   └── generateDebugRFile +│   │   │   └── package-aware-r.txt +│   │   ├── outputs +│   │   │   ├── aar +│   │   │   │   └── open_filex-debug.aar +│   │   │   └── logs +│   │   │   └── manifest-merger-debug-report.txt +│   │   └── tmp +│   │   └── compileDebugJavaWithJavac +│   │   └── previous-compilation-data.bin +│   ├── path_provider_android +│   │   ├── generated +│   │   │   ├── ap_generated_sources +│   │   │   │   └── debug +│   │   │   │   └── out +│   │   │   └── res +│   │   │   ├── pngs +│   │   │   │   └── debug +│   │   │   └── resValues +│   │   │   └── debug +│   │   ├── intermediates +│   │   │   ├── aapt_friendly_merged_manifests +│   │   │   │   └── debug +│   │   │   │   └── processDebugManifest +│   │   │   │   └── aapt +│   │   │   │   ├── AndroidManifest.xml +│   │   │   │   └── output-metadata.json +│   │   │   ├── aar_libs_directory +│   │   │   │   └── debug +│   │   │   │   └── syncDebugLibJars +│   │   │   │   └── libs +│   │   │   ├── aar_main_jar +│   │   │   │   └── debug +│   │   │   │   └── syncDebugLibJars +│   │   │   │   └── classes.jar +│   │   │   ├── aar_metadata +│   │   │   │   └── debug +│   │   │   │   └── writeDebugAarMetadata +│   │   │   │   └── aar-metadata.properties +│   │   │   ├── annotation_processor_list +│   │   │   │   └── debug +│   │   │   │   └── javaPreCompileDebug +│   │   │   │   └── annotationProcessors.json +│   │   │   ├── annotations_typedef_file +│   │   │   │   └── debug +│   │   │   │   └── extractDebugAnnotations +│   │   │   │   └── typedefs.txt +│   │   │   ├── annotations_zip +│   │   │   │   └── debug +│   │   │   │   └── extractDebugAnnotations +│   │   │   ├── assets +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugAssets +│   │   │   ├── compile_library_classes_jar +│   │   │   │   └── debug +│   │   │   │   └── bundleLibCompileToJarDebug +│   │   │   │   └── classes.jar +│   │   │   ├── compile_r_class_jar +│   │   │   │   └── debug +│   │   │   │   └── generateDebugRFile +│   │   │   │   └── R.jar +│   │   │   ├── compile_symbol_list +│   │   │   │   └── debug +│   │   │   │   └── generateDebugRFile +│   │   │   │   └── R.txt +│   │   │   ├── compiled_local_resources +│   │   │   │   └── debug +│   │   │   │   └── compileDebugLibraryResources +│   │   │   │   └── out +│   │   │   ├── data_binding_layout_info_type_package +│   │   │   │   └── debug +│   │   │   │   └── packageDebugResources +│   │   │   │   └── out +│   │   │   ├── incremental +│   │   │   │   ├── debug +│   │   │   │   │   └── packageDebugResources +│   │   │   │   │   ├── compile-file-map.properties +│   │   │   │   │   ├── merged.dir +│   │   │   │   │   ├── merger.xml +│   │   │   │   │   └── stripped.dir +│   │   │   │   ├── debug-mergeJavaRes +│   │   │   │   │   ├── merge-state +│   │   │   │   │   └── zip-cache +│   │   │   │   ├── mergeDebugAssets +│   │   │   │   │   └── merger.xml +│   │   │   │   ├── mergeDebugJniLibFolders +│   │   │   │   │   └── merger.xml +│   │   │   │   └── mergeDebugShaders +│   │   │   │   └── merger.xml +│   │   │   ├── javac +│   │   │   │   └── debug +│   │   │   │   └── compileDebugJavaWithJavac +│   │   │   │   └── classes +│   │   │   │   └── io +│   │   │   │   └── flutter +│   │   │   │   └── plugins +│   │   │   │   └── pathprovider +│   │   │   │   ├── Messages$FlutterError.class +│   │   │   │   ├── Messages$PathProviderApi.class +│   │   │   │   ├── Messages$PigeonCodec.class +│   │   │   │   ├── Messages$StorageDirectory.class +│   │   │   │   ├── Messages.class +│   │   │   │   ├── PathProviderPlugin$1.class +│   │   │   │   └── PathProviderPlugin.class +│   │   │   ├── library_and_local_jars_jni +│   │   │   │   └── debug +│   │   │   │   └── copyDebugJniLibsProjectAndLocalJars +│   │   │   │   └── jni +│   │   │   ├── library_jni +│   │   │   │   └── debug +│   │   │   │   └── copyDebugJniLibsProjectOnly +│   │   │   │   └── jni +│   │   │   ├── local_only_symbol_list +│   │   │   │   └── debug +│   │   │   │   └── parseDebugLocalResources +│   │   │   │   └── R-def.txt +│   │   │   ├── manifest_merge_blame_file +│   │   │   │   └── debug +│   │   │   │   └── processDebugManifest +│   │   │   │   └── manifest-merger-blame-debug-report.txt +│   │   │   ├── merged_java_res +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugJavaResource +│   │   │   │   └── feature-path_provider_android.jar +│   │   │   ├── merged_jni_libs +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugJniLibFolders +│   │   │   │   └── out +│   │   │   ├── merged_manifest +│   │   │   │   └── debug +│   │   │   │   └── processDebugManifest +│   │   │   │   └── AndroidManifest.xml +│   │   │   ├── merged_shaders +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugShaders +│   │   │   │   └── out +│   │   │   ├── navigation_json +│   │   │   │   └── debug +│   │   │   │   └── extractDeepLinksDebug +│   │   │   │   └── navigation.json +│   │   │   ├── nested_resources_validation_report +│   │   │   │   └── debug +│   │   │   │   └── generateDebugResources +│   │   │   │   └── nestedResourcesValidationReport.txt +│   │   │   ├── packaged_res +│   │   │   │   └── debug +│   │   │   │   └── packageDebugResources +│   │   │   ├── public_res +│   │   │   │   └── debug +│   │   │   │   └── packageDebugResources +│   │   │   ├── runtime_library_classes_dir +│   │   │   │   └── debug +│   │   │   │   └── bundleLibRuntimeToDirDebug +│   │   │   │   └── io +│   │   │   │   └── flutter +│   │   │   │   └── plugins +│   │   │   │   └── pathprovider +│   │   │   │   ├── Messages$FlutterError.class +│   │   │   │   ├── Messages$PathProviderApi.class +│   │   │   │   ├── Messages$PigeonCodec.class +│   │   │   │   ├── Messages$StorageDirectory.class +│   │   │   │   ├── Messages.class +│   │   │   │   ├── PathProviderPlugin$1.class +│   │   │   │   └── PathProviderPlugin.class +│   │   │   ├── runtime_library_classes_jar +│   │   │   │   └── debug +│   │   │   │   └── bundleLibRuntimeToJarDebug +│   │   │   │   └── classes.jar +│   │   │   └── symbol_list_with_package_name +│   │   │   └── debug +│   │   │   └── generateDebugRFile +│   │   │   └── package-aware-r.txt +│   │   ├── outputs +│   │   │   ├── aar +│   │   │   │   └── path_provider_android-debug.aar +│   │   │   └── logs +│   │   │   └── manifest-merger-debug-report.txt +│   │   └── tmp +│   │   └── compileDebugJavaWithJavac +│   │   └── previous-compilation-data.bin +│   ├── permission_handler_android +│   │   ├── generated +│   │   │   ├── ap_generated_sources +│   │   │   │   └── debug +│   │   │   │   └── out +│   │   │   └── res +│   │   │   ├── pngs +│   │   │   │   └── debug +│   │   │   └── resValues +│   │   │   └── debug +│   │   ├── intermediates +│   │   │   ├── aapt_friendly_merged_manifests +│   │   │   │   └── debug +│   │   │   │   └── processDebugManifest +│   │   │   │   └── aapt +│   │   │   │   ├── AndroidManifest.xml +│   │   │   │   └── output-metadata.json +│   │   │   ├── aar_libs_directory +│   │   │   │   └── debug +│   │   │   │   └── syncDebugLibJars +│   │   │   │   └── libs +│   │   │   ├── aar_main_jar +│   │   │   │   └── debug +│   │   │   │   └── syncDebugLibJars +│   │   │   │   └── classes.jar +│   │   │   ├── aar_metadata +│   │   │   │   └── debug +│   │   │   │   └── writeDebugAarMetadata +│   │   │   │   └── aar-metadata.properties +│   │   │   ├── annotation_processor_list +│   │   │   │   └── debug +│   │   │   │   └── javaPreCompileDebug +│   │   │   │   └── annotationProcessors.json +│   │   │   ├── annotations_typedef_file +│   │   │   │   └── debug +│   │   │   │   └── extractDebugAnnotations +│   │   │   │   └── typedefs.txt +│   │   │   ├── annotations_zip +│   │   │   │   └── debug +│   │   │   │   └── extractDebugAnnotations +│   │   │   │   └── annotations.zip +│   │   │   ├── assets +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugAssets +│   │   │   ├── compile_library_classes_jar +│   │   │   │   └── debug +│   │   │   │   └── bundleLibCompileToJarDebug +│   │   │   │   └── classes.jar +│   │   │   ├── compile_r_class_jar +│   │   │   │   └── debug +│   │   │   │   └── generateDebugRFile +│   │   │   │   └── R.jar +│   │   │   ├── compile_symbol_list +│   │   │   │   └── debug +│   │   │   │   └── generateDebugRFile +│   │   │   │   └── R.txt +│   │   │   ├── compiled_local_resources +│   │   │   │   └── debug +│   │   │   │   └── compileDebugLibraryResources +│   │   │   │   └── out +│   │   │   ├── data_binding_layout_info_type_package +│   │   │   │   └── debug +│   │   │   │   └── packageDebugResources +│   │   │   │   └── out +│   │   │   ├── incremental +│   │   │   │   ├── debug +│   │   │   │   │   └── packageDebugResources +│   │   │   │   │   ├── compile-file-map.properties +│   │   │   │   │   ├── merged.dir +│   │   │   │   │   ├── merger.xml +│   │   │   │   │   └── stripped.dir +│   │   │   │   ├── debug-mergeJavaRes +│   │   │   │   │   ├── merge-state +│   │   │   │   │   └── zip-cache +│   │   │   │   ├── mergeDebugAssets +│   │   │   │   │   └── merger.xml +│   │   │   │   ├── mergeDebugJniLibFolders +│   │   │   │   │   └── merger.xml +│   │   │   │   └── mergeDebugShaders +│   │   │   │   └── merger.xml +│   │   │   ├── javac +│   │   │   │   └── debug +│   │   │   │   └── compileDebugJavaWithJavac +│   │   │   │   └── classes +│   │   │   │   └── com +│   │   │   │   └── baseflow +│   │   │   │   └── permissionhandler +│   │   │   │   ├── AppSettingsManager$OpenAppSettingsSuccessCallback.class +│   │   │   │   ├── AppSettingsManager.class +│   │   │   │   ├── ErrorCallback.class +│   │   │   │   ├── MethodCallHandlerImpl.class +│   │   │   │   ├── PermissionConstants$PermissionGroup.class +│   │   │   │   ├── PermissionConstants$PermissionStatus.class +│   │   │   │   ├── PermissionConstants$ServiceStatus.class +│   │   │   │   ├── PermissionConstants.class +│   │   │   │   ├── PermissionHandlerPlugin.class +│   │   │   │   ├── PermissionManager$CheckPermissionsSuccessCallback.class +│   │   │   │   ├── PermissionManager$RequestPermissionsSuccessCallback.class +│   │   │   │   ├── PermissionManager$ShouldShowRequestPermissionRationaleSuccessCallback.class +│   │   │   │   ├── PermissionManager.class +│   │   │   │   ├── PermissionUtils.class +│   │   │   │   ├── ServiceManager$SuccessCallback.class +│   │   │   │   └── ServiceManager.class +│   │   │   ├── library_and_local_jars_jni +│   │   │   │   └── debug +│   │   │   │   └── copyDebugJniLibsProjectAndLocalJars +│   │   │   │   └── jni +│   │   │   ├── library_jni +│   │   │   │   └── debug +│   │   │   │   └── copyDebugJniLibsProjectOnly +│   │   │   │   └── jni +│   │   │   ├── local_only_symbol_list +│   │   │   │   └── debug +│   │   │   │   └── parseDebugLocalResources +│   │   │   │   └── R-def.txt +│   │   │   ├── manifest_merge_blame_file +│   │   │   │   └── debug +│   │   │   │   └── processDebugManifest +│   │   │   │   └── manifest-merger-blame-debug-report.txt +│   │   │   ├── merged_java_res +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugJavaResource +│   │   │   │   └── feature-permission_handler_android.jar +│   │   │   ├── merged_jni_libs +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugJniLibFolders +│   │   │   │   └── out +│   │   │   ├── merged_manifest +│   │   │   │   └── debug +│   │   │   │   └── processDebugManifest +│   │   │   │   └── AndroidManifest.xml +│   │   │   ├── merged_shaders +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugShaders +│   │   │   │   └── out +│   │   │   ├── navigation_json +│   │   │   │   └── debug +│   │   │   │   └── extractDeepLinksDebug +│   │   │   │   └── navigation.json +│   │   │   ├── nested_resources_validation_report +│   │   │   │   └── debug +│   │   │   │   └── generateDebugResources +│   │   │   │   └── nestedResourcesValidationReport.txt +│   │   │   ├── packaged_res +│   │   │   │   └── debug +│   │   │   │   └── packageDebugResources +│   │   │   ├── public_res +│   │   │   │   └── debug +│   │   │   │   └── packageDebugResources +│   │   │   ├── runtime_library_classes_dir +│   │   │   │   └── debug +│   │   │   │   └── bundleLibRuntimeToDirDebug +│   │   │   │   └── com +│   │   │   │   └── baseflow +│   │   │   │   └── permissionhandler +│   │   │   │   ├── AppSettingsManager$OpenAppSettingsSuccessCallback.class +│   │   │   │   ├── AppSettingsManager.class +│   │   │   │   ├── ErrorCallback.class +│   │   │   │   ├── MethodCallHandlerImpl.class +│   │   │   │   ├── PermissionConstants$PermissionGroup.class +│   │   │   │   ├── PermissionConstants$PermissionStatus.class +│   │   │   │   ├── PermissionConstants$ServiceStatus.class +│   │   │   │   ├── PermissionConstants.class +│   │   │   │   ├── PermissionHandlerPlugin.class +│   │   │   │   ├── PermissionManager$CheckPermissionsSuccessCallback.class +│   │   │   │   ├── PermissionManager$RequestPermissionsSuccessCallback.class +│   │   │   │   ├── PermissionManager$ShouldShowRequestPermissionRationaleSuccessCallback.class +│   │   │   │   ├── PermissionManager.class +│   │   │   │   ├── PermissionUtils.class +│   │   │   │   ├── ServiceManager$SuccessCallback.class +│   │   │   │   └── ServiceManager.class +│   │   │   ├── runtime_library_classes_jar +│   │   │   │   └── debug +│   │   │   │   └── bundleLibRuntimeToJarDebug +│   │   │   │   └── classes.jar +│   │   │   └── symbol_list_with_package_name +│   │   │   └── debug +│   │   │   └── generateDebugRFile +│   │   │   └── package-aware-r.txt +│   │   ├── outputs +│   │   │   ├── aar +│   │   │   │   └── permission_handler_android-debug.aar +│   │   │   └── logs +│   │   │   └── manifest-merger-debug-report.txt +│   │   └── tmp +│   │   └── compileDebugJavaWithJavac +│   │   └── previous-compilation-data.bin +│   ├── reports +│   │   └── problems +│   │   └── problems-report.html +│   ├── share_plus +│   │   ├── generated +│   │   │   └── res +│   │   │   ├── pngs +│   │   │   │   └── debug +│   │   │   └── resValues +│   │   │   └── debug +│   │   ├── intermediates +│   │   │   ├── aapt_friendly_merged_manifests +│   │   │   │   └── debug +│   │   │   │   └── processDebugManifest +│   │   │   │   └── aapt +│   │   │   │   ├── AndroidManifest.xml +│   │   │   │   └── output-metadata.json +│   │   │   ├── aar_libs_directory +│   │   │   │   └── debug +│   │   │   │   └── syncDebugLibJars +│   │   │   │   └── libs +│   │   │   ├── aar_main_jar +│   │   │   │   └── debug +│   │   │   │   └── syncDebugLibJars +│   │   │   │   └── classes.jar +│   │   │   ├── aar_metadata +│   │   │   │   └── debug +│   │   │   │   └── writeDebugAarMetadata +│   │   │   │   └── aar-metadata.properties +│   │   │   ├── annotation_processor_list +│   │   │   │   └── debug +│   │   │   │   └── javaPreCompileDebug +│   │   │   │   └── annotationProcessors.json +│   │   │   ├── annotations_typedef_file +│   │   │   │   └── debug +│   │   │   │   └── extractDebugAnnotations +│   │   │   │   └── typedefs.txt +│   │   │   ├── annotations_zip +│   │   │   │   └── debug +│   │   │   │   └── extractDebugAnnotations +│   │   │   ├── assets +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugAssets +│   │   │   ├── compile_library_classes_jar +│   │   │   │   └── debug +│   │   │   │   └── bundleLibCompileToJarDebug +│   │   │   │   └── classes.jar +│   │   │   ├── compile_r_class_jar +│   │   │   │   └── debug +│   │   │   │   └── generateDebugRFile +│   │   │   │   └── R.jar +│   │   │   ├── compile_symbol_list +│   │   │   │   └── debug +│   │   │   │   └── generateDebugRFile +│   │   │   │   └── R.txt +│   │   │   ├── compiled_local_resources +│   │   │   │   └── debug +│   │   │   │   └── compileDebugLibraryResources +│   │   │   │   └── out +│   │   │   │   └── xml_flutter_share_file_paths.xml.flat +│   │   │   ├── data_binding_layout_info_type_package +│   │   │   │   └── debug +│   │   │   │   └── packageDebugResources +│   │   │   │   └── out +│   │   │   ├── incremental +│   │   │   │   ├── debug +│   │   │   │   │   └── packageDebugResources +│   │   │   │   │   ├── compile-file-map.properties +│   │   │   │   │   ├── merged.dir +│   │   │   │   │   ├── merger.xml +│   │   │   │   │   └── stripped.dir +│   │   │   │   ├── debug-mergeJavaRes +│   │   │   │   │   ├── merge-state +│   │   │   │   │   └── zip-cache +│   │   │   │   ├── mergeDebugAssets +│   │   │   │   │   └── merger.xml +│   │   │   │   ├── mergeDebugJniLibFolders +│   │   │   │   │   └── merger.xml +│   │   │   │   └── mergeDebugShaders +│   │   │   │   └── merger.xml +│   │   │   ├── java_res +│   │   │   │   └── debug +│   │   │   │   └── processDebugJavaRes +│   │   │   │   └── out +│   │   │   │   ├── META-INF +│   │   │   │   │   └── share_plus_debug.kotlin_module +│   │   │   │   └── dev +│   │   │   │   └── fluttercommunity +│   │   │   │   └── plus +│   │   │   │   └── share +│   │   │   ├── library_and_local_jars_jni +│   │   │   │   └── debug +│   │   │   │   └── copyDebugJniLibsProjectAndLocalJars +│   │   │   │   └── jni +│   │   │   ├── library_jni +│   │   │   │   └── debug +│   │   │   │   └── copyDebugJniLibsProjectOnly +│   │   │   │   └── jni +│   │   │   ├── local_only_symbol_list +│   │   │   │   └── debug +│   │   │   │   └── parseDebugLocalResources +│   │   │   │   └── R-def.txt +│   │   │   ├── manifest_merge_blame_file +│   │   │   │   └── debug +│   │   │   │   └── processDebugManifest +│   │   │   │   └── manifest-merger-blame-debug-report.txt +│   │   │   ├── merged_java_res +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugJavaResource +│   │   │   │   └── feature-share_plus.jar +│   │   │   ├── merged_jni_libs +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugJniLibFolders +│   │   │   │   └── out +│   │   │   ├── merged_manifest +│   │   │   │   └── debug +│   │   │   │   └── processDebugManifest +│   │   │   │   └── AndroidManifest.xml +│   │   │   ├── merged_shaders +│   │   │   │   └── debug +│   │   │   │   └── mergeDebugShaders +│   │   │   │   └── out +│   │   │   ├── navigation_json +│   │   │   │   └── debug +│   │   │   │   └── extractDeepLinksDebug +│   │   │   │   └── navigation.json +│   │   │   ├── nested_resources_validation_report +│   │   │   │   └── debug +│   │   │   │   └── generateDebugResources +│   │   │   │   └── nestedResourcesValidationReport.txt +│   │   │   ├── packaged_res +│   │   │   │   └── debug +│   │   │   │   └── packageDebugResources +│   │   │   │   └── xml +│   │   │   │   └── flutter_share_file_paths.xml +│   │   │   ├── public_res +│   │   │   │   └── debug +│   │   │   │   └── packageDebugResources +│   │   │   ├── runtime_library_classes_dir +│   │   │   │   └── debug +│   │   │   │   └── bundleLibRuntimeToDirDebug +│   │   │   │   ├── META-INF +│   │   │   │   │   └── share_plus_debug.kotlin_module +│   │   │   │   └── dev +│   │   │   │   └── fluttercommunity +│   │   │   │   └── plus +│   │   │   │   └── share +│   │   │   │   ├── MethodCallHandler.class +│   │   │   │   ├── Share.class +│   │   │   │   ├── ShareFileProvider.class +│   │   │   │   ├── SharePlusPendingIntent$Companion.class +│   │   │   │   ├── SharePlusPendingIntent.class +│   │   │   │   ├── SharePlusPlugin$Companion.class +│   │   │   │   ├── SharePlusPlugin.class +│   │   │   │   ├── ShareSuccessManager$Companion.class +│   │   │   │   └── ShareSuccessManager.class +│   │   │   ├── runtime_library_classes_jar +│   │   │   │   └── debug +│   │   │   │   └── bundleLibRuntimeToJarDebug +│   │   │   │   └── classes.jar +│   │   │   └── symbol_list_with_package_name +│   │   │   └── debug +│   │   │   └── generateDebugRFile +│   │   │   └── package-aware-r.txt +│   │   ├── kotlin +│   │   │   └── compileDebugKotlin +│   │   │   ├── cacheable +│   │   │   │   ├── caches-jvm +│   │   │   │   │   ├── inputs +│   │   │   │   │   │   ├── source-to-output.tab +│   │   │   │   │   │   ├── source-to-output.tab.keystream +│   │   │   │   │   │   ├── source-to-output.tab.keystream.len +│   │   │   │   │   │   ├── source-to-output.tab.len +│   │   │   │   │   │   ├── source-to-output.tab.values.at +│   │   │   │   │   │   ├── source-to-output.tab_i +│   │   │   │   │   │   └── source-to-output.tab_i.len +│   │   │   │   │   ├── jvm +│   │   │   │   │   │   └── kotlin +│   │   │   │   │   │   ├── class-attributes.tab +│   │   │   │   │   │   ├── class-attributes.tab.keystream +│   │   │   │   │   │   ├── class-attributes.tab.keystream.len +│   │   │   │   │   │   ├── class-attributes.tab.len +│   │   │   │   │   │   ├── class-attributes.tab.values.at +│   │   │   │   │   │   ├── class-attributes.tab_i +│   │   │   │   │   │   ├── class-attributes.tab_i.len +│   │   │   │   │   │   ├── class-fq-name-to-source.tab +│   │   │   │   │   │   ├── class-fq-name-to-source.tab.keystream +│   │   │   │   │   │   ├── class-fq-name-to-source.tab.keystream.len +│   │   │   │   │   │   ├── class-fq-name-to-source.tab.len +│   │   │   │   │   │   ├── class-fq-name-to-source.tab.values.at +│   │   │   │   │   │   ├── class-fq-name-to-source.tab_i +│   │   │   │   │   │   ├── class-fq-name-to-source.tab_i.len +│   │   │   │   │   │   ├── constants.tab +│   │   │   │   │   │   ├── constants.tab.keystream +│   │   │   │   │   │   ├── constants.tab.keystream.len +│   │   │   │   │   │   ├── constants.tab.len +│   │   │   │   │   │   ├── constants.tab.values.at +│   │   │   │   │   │   ├── constants.tab_i +│   │   │   │   │   │   ├── constants.tab_i.len +│   │   │   │   │   │   ├── internal-name-to-source.tab +│   │   │   │   │   │   ├── internal-name-to-source.tab.keystream +│   │   │   │   │   │   ├── internal-name-to-source.tab.keystream.len +│   │   │   │   │   │   ├── internal-name-to-source.tab.len +│   │   │   │   │   │   ├── internal-name-to-source.tab.values.at +│   │   │   │   │   │   ├── internal-name-to-source.tab_i +│   │   │   │   │   │   ├── internal-name-to-source.tab_i.len +│   │   │   │   │   │   ├── proto.tab +│   │   │   │   │   │   ├── proto.tab.keystream +│   │   │   │   │   │   ├── proto.tab.keystream.len +│   │   │   │   │   │   ├── proto.tab.len +│   │   │   │   │   │   ├── proto.tab.values.at +│   │   │   │   │   │   ├── proto.tab_i +│   │   │   │   │   │   ├── proto.tab_i.len +│   │   │   │   │   │   ├── source-to-classes.tab +│   │   │   │   │   │   ├── source-to-classes.tab.keystream +│   │   │   │   │   │   ├── source-to-classes.tab.keystream.len +│   │   │   │   │   │   ├── source-to-classes.tab.len +│   │   │   │   │   │   ├── source-to-classes.tab.values.at +│   │   │   │   │   │   ├── source-to-classes.tab_i +│   │   │   │   │   │   ├── source-to-classes.tab_i.len +│   │   │   │   │   │   ├── subtypes.tab +│   │   │   │   │   │   ├── subtypes.tab.keystream +│   │   │   │   │   │   ├── subtypes.tab.keystream.len +│   │   │   │   │   │   ├── subtypes.tab.len +│   │   │   │   │   │   ├── subtypes.tab.values.at +│   │   │   │   │   │   ├── subtypes.tab_i +│   │   │   │   │   │   ├── subtypes.tab_i.len +│   │   │   │   │   │   ├── supertypes.tab +│   │   │   │   │   │   ├── supertypes.tab.keystream +│   │   │   │   │   │   ├── supertypes.tab.keystream.len +│   │   │   │   │   │   ├── supertypes.tab.len +│   │   │   │   │   │   ├── supertypes.tab.values.at +│   │   │   │   │   │   ├── supertypes.tab_i +│   │   │   │   │   │   └── supertypes.tab_i.len +│   │   │   │   │   └── lookups +│   │   │   │   │   ├── counters.tab +│   │   │   │   │   ├── file-to-id.tab +│   │   │   │   │   ├── file-to-id.tab.keystream +│   │   │   │   │   ├── file-to-id.tab.keystream.len +│   │   │   │   │   ├── file-to-id.tab.len +│   │   │   │   │   ├── file-to-id.tab.values.at +│   │   │   │   │   ├── file-to-id.tab_i +│   │   │   │   │   ├── file-to-id.tab_i.len +│   │   │   │   │   ├── id-to-file.tab +│   │   │   │   │   ├── id-to-file.tab.keystream +│   │   │   │   │   ├── id-to-file.tab.keystream.len +│   │   │   │   │   ├── id-to-file.tab.len +│   │   │   │   │   ├── id-to-file.tab.values.at +│   │   │   │   │   ├── id-to-file.tab_i +│   │   │   │   │   ├── id-to-file.tab_i.len +│   │   │   │   │   ├── lookups.tab +│   │   │   │   │   ├── lookups.tab.keystream +│   │   │   │   │   ├── lookups.tab.keystream.len +│   │   │   │   │   ├── lookups.tab.len +│   │   │   │   │   ├── lookups.tab.values.at +│   │   │   │   │   ├── lookups.tab_i +│   │   │   │   │   └── lookups.tab_i.len +│   │   │   │   └── last-build.bin +│   │   │   ├── classpath-snapshot +│   │   │   │   └── shrunk-classpath-snapshot.bin +│   │   │   └── local-state +│   │   ├── outputs +│   │   │   ├── aar +│   │   │   │   └── share_plus-debug.aar +│   │   │   └── logs +│   │   │   └── manifest-merger-debug-report.txt +│   │   └── tmp +│   │   └── kotlin-classes +│   │   └── debug +│   │   ├── META-INF +│   │   │   └── share_plus_debug.kotlin_module +│   │   └── dev +│   │   └── fluttercommunity +│   │   └── plus +│   │   └── share +│   │   ├── MethodCallHandler.class +│   │   ├── Share.class +│   │   ├── ShareFileProvider.class +│   │   ├── SharePlusPendingIntent$Companion.class +│   │   ├── SharePlusPendingIntent.class +│   │   ├── SharePlusPlugin$Companion.class +│   │   ├── SharePlusPlugin.class +│   │   ├── ShareSuccessManager$Companion.class +│   │   └── ShareSuccessManager.class +│   └── url_launcher_android +│   ├── generated +│   │   ├── ap_generated_sources +│   │   │   └── debug +│   │   │   └── out +│   │   ├── res +│   │   │   ├── pngs +│   │   │   │   └── debug +│   │   │   └── resValues +│   │   │   └── debug +│   │   └── source +│   │   └── buildConfig +│   │   └── debug +│   │   └── io +│   │   └── flutter +│   │   └── plugins +│   │   └── urllauncher +│   │   └── BuildConfig.java +│   ├── intermediates +│   │   ├── aapt_friendly_merged_manifests +│   │   │   └── debug +│   │   │   └── processDebugManifest +│   │   │   └── aapt +│   │   │   ├── AndroidManifest.xml +│   │   │   └── output-metadata.json +│   │   ├── aar_libs_directory +│   │   │   └── debug +│   │   │   └── syncDebugLibJars +│   │   │   └── libs +│   │   ├── aar_main_jar +│   │   │   └── debug +│   │   │   └── syncDebugLibJars +│   │   │   └── classes.jar +│   │   ├── aar_metadata +│   │   │   └── debug +│   │   │   └── writeDebugAarMetadata +│   │   │   └── aar-metadata.properties +│   │   ├── annotation_processor_list +│   │   │   └── debug +│   │   │   └── javaPreCompileDebug +│   │   │   └── annotationProcessors.json +│   │   ├── annotations_typedef_file +│   │   │   └── debug +│   │   │   └── extractDebugAnnotations +│   │   │   └── typedefs.txt +│   │   ├── annotations_zip +│   │   │   └── debug +│   │   │   └── extractDebugAnnotations +│   │   ├── assets +│   │   │   └── debug +│   │   │   └── mergeDebugAssets +│   │   ├── compile_library_classes_jar +│   │   │   └── debug +│   │   │   └── bundleLibCompileToJarDebug +│   │   │   └── classes.jar +│   │   ├── compile_r_class_jar +│   │   │   └── debug +│   │   │   └── generateDebugRFile +│   │   │   └── R.jar +│   │   ├── compile_symbol_list +│   │   │   └── debug +│   │   │   └── generateDebugRFile +│   │   │   └── R.txt +│   │   ├── compiled_local_resources +│   │   │   └── debug +│   │   │   └── compileDebugLibraryResources +│   │   │   └── out +│   │   ├── data_binding_layout_info_type_package +│   │   │   └── debug +│   │   │   └── packageDebugResources +│   │   │   └── out +│   │   ├── incremental +│   │   │   ├── debug +│   │   │   │   └── packageDebugResources +│   │   │   │   ├── compile-file-map.properties +│   │   │   │   ├── merged.dir +│   │   │   │   ├── merger.xml +│   │   │   │   └── stripped.dir +│   │   │   ├── debug-mergeJavaRes +│   │   │   │   ├── merge-state +│   │   │   │   └── zip-cache +│   │   │   ├── mergeDebugAssets +│   │   │   │   └── merger.xml +│   │   │   ├── mergeDebugJniLibFolders +│   │   │   │   └── merger.xml +│   │   │   └── mergeDebugShaders +│   │   │   └── merger.xml +│   │   ├── javac +│   │   │   └── debug +│   │   │   └── compileDebugJavaWithJavac +│   │   │   └── classes +│   │   │   └── io +│   │   │   └── flutter +│   │   │   └── plugins +│   │   │   └── urllauncher +│   │   │   ├── BuildConfig.class +│   │   │   ├── Messages$BrowserOptions$Builder.class +│   │   │   ├── Messages$BrowserOptions.class +│   │   │   ├── Messages$CanIgnoreReturnValue.class +│   │   │   ├── Messages$FlutterError.class +│   │   │   ├── Messages$PigeonCodec.class +│   │   │   ├── Messages$UrlLauncherApi.class +│   │   │   ├── Messages$WebViewOptions$Builder.class +│   │   │   ├── Messages$WebViewOptions.class +│   │   │   ├── Messages.class +│   │   │   ├── UrlLauncher$IntentResolver.class +│   │   │   ├── UrlLauncher.class +│   │   │   ├── UrlLauncherPlugin.class +│   │   │   ├── WebViewActivity$1.class +│   │   │   ├── WebViewActivity$2.class +│   │   │   ├── WebViewActivity$FlutterWebChromeClient$1.class +│   │   │   ├── WebViewActivity$FlutterWebChromeClient.class +│   │   │   └── WebViewActivity.class +│   │   ├── library_and_local_jars_jni +│   │   │   └── debug +│   │   │   └── copyDebugJniLibsProjectAndLocalJars +│   │   │   └── jni +│   │   ├── library_jni +│   │   │   └── debug +│   │   │   └── copyDebugJniLibsProjectOnly +│   │   │   └── jni +│   │   ├── local_only_symbol_list +│   │   │   └── debug +│   │   │   └── parseDebugLocalResources +│   │   │   └── R-def.txt +│   │   ├── manifest_merge_blame_file +│   │   │   └── debug +│   │   │   └── processDebugManifest +│   │   │   └── manifest-merger-blame-debug-report.txt +│   │   ├── merged_java_res +│   │   │   └── debug +│   │   │   └── mergeDebugJavaResource +│   │   │   └── feature-url_launcher_android.jar +│   │   ├── merged_jni_libs +│   │   │   └── debug +│   │   │   └── mergeDebugJniLibFolders +│   │   │   └── out +│   │   ├── merged_manifest +│   │   │   └── debug +│   │   │   └── processDebugManifest +│   │   │   └── AndroidManifest.xml +│   │   ├── merged_shaders +│   │   │   └── debug +│   │   │   └── mergeDebugShaders +│   │   │   └── out +│   │   ├── navigation_json +│   │   │   └── debug +│   │   │   └── extractDeepLinksDebug +│   │   │   └── navigation.json +│   │   ├── nested_resources_validation_report +│   │   │   └── debug +│   │   │   └── generateDebugResources +│   │   │   └── nestedResourcesValidationReport.txt +│   │   ├── packaged_res +│   │   │   └── debug +│   │   │   └── packageDebugResources +│   │   ├── public_res +│   │   │   └── debug +│   │   │   └── packageDebugResources +│   │   ├── runtime_library_classes_dir +│   │   │   └── debug +│   │   │   └── bundleLibRuntimeToDirDebug +│   │   │   └── io +│   │   │   └── flutter +│   │   │   └── plugins +│   │   │   └── urllauncher +│   │   │   ├── BuildConfig.class +│   │   │   ├── Messages$BrowserOptions$Builder.class +│   │   │   ├── Messages$BrowserOptions.class +│   │   │   ├── Messages$CanIgnoreReturnValue.class +│   │   │   ├── Messages$FlutterError.class +│   │   │   ├── Messages$PigeonCodec.class +│   │   │   ├── Messages$UrlLauncherApi.class +│   │   │   ├── Messages$WebViewOptions$Builder.class +│   │   │   ├── Messages$WebViewOptions.class +│   │   │   ├── Messages.class +│   │   │   ├── UrlLauncher$IntentResolver.class +│   │   │   ├── UrlLauncher.class +│   │   │   ├── UrlLauncherPlugin.class +│   │   │   ├── WebViewActivity$1.class +│   │   │   ├── WebViewActivity$2.class +│   │   │   ├── WebViewActivity$FlutterWebChromeClient$1.class +│   │   │   ├── WebViewActivity$FlutterWebChromeClient.class +│   │   │   └── WebViewActivity.class +│   │   ├── runtime_library_classes_jar +│   │   │   └── debug +│   │   │   └── bundleLibRuntimeToJarDebug +│   │   │   └── classes.jar +│   │   └── symbol_list_with_package_name +│   │   └── debug +│   │   └── generateDebugRFile +│   │   └── package-aware-r.txt +│   ├── outputs +│   │   ├── aar +│   │   │   └── url_launcher_android-debug.aar +│   │   └── logs +│   │   └── manifest-merger-debug-report.txt +│   └── tmp +│   └── compileDebugJavaWithJavac +│   └── previous-compilation-data.bin +├── dir.tree +├── gemi_invoice.iml +├── ios +│   ├── Flutter +│   │   ├── Generated.xcconfig +│   │   ├── ephemeral +│   │   │   ├── flutter_lldb_helper.py +│   │   │   └── flutter_lldbinit +│   │   └── flutter_export_environment.sh +│   └── Runner +│   ├── GeneratedPluginRegistrant.h +│   └── GeneratedPluginRegistrant.m +├── lib +│   ├── main.dart +│   └── main.dart.org +├── linux +│   └── flutter +│   ├── ephemeral +│   ├── generated_plugin_registrant.cc +│   ├── generated_plugin_registrant.h +│   └── generated_plugins.cmake +├── macos +│   └── Flutter +│   ├── GeneratedPluginRegistrant.swift +│   └── ephemeral +│   ├── Flutter-Generated.xcconfig +│   └── flutter_export_environment.sh +├── pubspec.lock +├── pubspec.yaml +└── windows + └── flutter + ├── generated_plugin_registrant.cc + └── generated_plugins.cmake + +1322 directories, 1154 files diff --git a/fix_build_errors.md b/fix_build_errors.md new file mode 100644 index 0000000..310c5b8 --- /dev/null +++ b/fix_build_errors.md @@ -0,0 +1,28 @@ +# 依頼内容 +Flutterプロジェクトのビルドエラーを解消し、顧客マスター管理(GPSソート/電話帳連携)と請求書履歴一覧の機能を完成させてください。 + +# 現状の問題 +1. `CustomerPickerModal` 内で DB の `Customer` 型とアプリ用 `Customer` モデルが衝突し、型エラーが発生している。 +2. `pdf_list_screen.dart` で、DB から顧客情報付きの請求データを取得する `InvoiceWithCustomer` 型や `watchAllInvoices()` メソッドが見つからずエラーになっている。 +3. `invoice_input_screen.dart` で `CustomerPickerModal` を呼び出す際、古い引数 `existingCustomers` を渡しておりエラーになっている。 + +# 実行ステップ +1. **lib/data/database.dart の更新**: + - `Invoices` と `Customers` を結合して取得するための `InvoiceWithCustomer` クラスを定義してください。 + - `AppDatabase` クラスに、最新順でデータを流す `Stream> watchAllInvoices()` メソッドを実装してください。 + - その後、`flutter pub run build_runner build --delete-conflicting-outputs` を実行してコード生成を完了させてください。 + +2. **lib/screens/customer_picker_modal.dart の修正**: + - インポートで `../models/invoice_models.dart` を `app_model` として別名を付け、DBの `Customer` 型と明確に区別してください。 + - GPS座標(latitude/longitude)を使用して、現在地に近い順にリストをソートするロジックを実装してください。 + - 電話帳(flutter_contacts)からの取り込みと、DBへの保存(insertOnConflictUpdate)が正常に動くようにしてください。 + +3. **lib/screens/pdf_list_screen.dart の修正**: + - `database.watchAllInvoices()` を使用して履歴一覧を表示するようにしてください。 + - リストタップ時に、DBのモデルからアプリ用の `Invoice` モデルへ変換して詳細画面へ遷移させてください。 + +4. **lib/screens/invoice_input_screen.dart の修正**: + - `CustomerPickerModal` の呼び出し箇所から、存在しない引数 `existingCustomers` を削除してください。 + +# 完了条件 +`flutter build apk --debug` がエラーなく通り、かつ顧客マスターのGPSソートが機能すること。 \ No newline at end of file diff --git a/ios/.gitignore b/ios/.gitignore new file mode 100644 index 0000000..7a7f987 --- /dev/null +++ b/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/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000..1dc6cf7 --- /dev/null +++ b/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/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000..592ceee --- /dev/null +++ b/ios/Flutter/Debug.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000..592ceee --- /dev/null +++ b/ios/Flutter/Release.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..16463df --- /dev/null +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,616 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 97C146E61CF9000F007C117D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 97C146ED1CF9000F007C117D; + remoteInfo = Runner; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; + 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 331C8082294A63A400263BE5 /* RunnerTests */ = { + isa = PBXGroup; + children = ( + 331C807B294A618700263BE5 /* RunnerTests.swift */, + ); + path = RunnerTests; + sourceTree = ""; + }; + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + 331C8082294A63A400263BE5 /* RunnerTests */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + 331C8081294A63A400263BE5 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 331C8080294A63A400263BE5 /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + 331C807D294A63A400263BE5 /* Sources */, + 331C807F294A63A400263BE5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 331C8086294A63A400263BE5 /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 331C8080294A63A400263BE5 = { + CreatedOnToolsVersion = 14.0; + TestTargetID = 97C146ED1CF9000F007C117D; + }; + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 1100; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + 331C8080294A63A400263BE5 /* RunnerTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 331C807F294A63A400263BE5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 331C807D294A63A400263BE5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 97C146ED1CF9000F007C117D /* Runner */; + targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.gemiInvoice; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 331C8088294A63A400263BE5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.gemiInvoice.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Debug; + }; + 331C8089294A63A400263BE5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.gemiInvoice.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Release; + }; + 331C808A294A63A400263BE5 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.gemiInvoice.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.gemiInvoice; + 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.gemiInvoice; + 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/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift new file mode 100644 index 0000000..6266644 --- /dev/null +++ b/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/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d36b1fa --- /dev/null +++ b/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/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000..dc9ada4 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000..7353c41 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000..797d452 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000..6ed2d93 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000..4cd7b00 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000..fe73094 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000..321773c Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000..797d452 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000..502f463 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000..0ec3034 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000..0ec3034 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000..e9f5fea Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000..84ac32a Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000..8953cba Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/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/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000..0bedcf2 --- /dev/null +++ b/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/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000..89c2725 --- /dev/null +++ b/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/ios/Runner/Base.lproj/LaunchScreen.storyboard b/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f2e259c --- /dev/null +++ b/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000..f3c2851 --- /dev/null +++ b/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist new file mode 100644 index 0000000..fbb675b --- /dev/null +++ b/ios/Runner/Info.plist @@ -0,0 +1,49 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Gemi Invoice + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + gemi_invoice + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + + + diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 0000000..308a2a5 --- /dev/null +++ b/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1 @@ +#import "GeneratedPluginRegistrant.h" diff --git a/ios/RunnerTests/RunnerTests.swift b/ios/RunnerTests/RunnerTests.swift new file mode 100644 index 0000000..86a7c3b --- /dev/null +++ b/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/lib/data/database.dart b/lib/data/database.dart new file mode 100644 index 0000000..2cb7ee9 --- /dev/null +++ b/lib/data/database.dart @@ -0,0 +1,111 @@ +// gemi_invoice/lib/data/database.dart +// version: 1.4.0 (Fix: Added missing types and methods for List Screen) + +import 'package:drift/drift.dart'; +import 'package:drift/native.dart'; +import 'package:path_provider/path_provider.dart'; +import 'package:path/path.dart' as p; +import 'dart:io'; + +part 'database.g.dart'; + +class Customers extends Table { + TextColumn get id => text()(); + TextColumn get displayName => text()(); + TextColumn get formalName => text()(); + TextColumn get address => text().nullable()(); + TextColumn get zipCode => text().nullable()(); + TextColumn get department => text().nullable()(); + RealColumn get latitude => real().nullable()(); + RealColumn get longitude => real().nullable()(); + DateTimeColumn get lastUpdatedAt => dateTime().nullable()(); + @override + Set get primaryKey => {id}; +} + +class Products extends Table { + IntColumn get id => integer().autoIncrement()(); + TextColumn get name => text()(); + IntColumn get defaultPrice => integer()(); + TextColumn get category => text().nullable()(); +} + +class Invoices extends Table { + TextColumn get id => text()(); + TextColumn get customerId => text().references(Customers, #id)(); + DateTimeColumn get date => dateTime()(); + TextColumn get type => text()(); + TextColumn get filePath => text().nullable()(); + TextColumn get notes => text().nullable()(); + IntColumn get totalAmount => integer()(); + @override + Set get primaryKey => {id}; +} + +class InvoiceItems extends Table { + IntColumn get id => integer().autoIncrement()(); + TextColumn get invoiceId => text().references(Invoices, #id)(); + TextColumn get description => text()(); + IntColumn get quantity => integer()(); + IntColumn get unitPrice => integer()(); +} + +// ★ここが重要:一覧画面で使うための「セット」の定義 +class InvoiceWithCustomer { + final Invoices invoice; + final Customers customer; + InvoiceWithCustomer(this.invoice, this.customer); +} + +@DriftDatabase(tables: [Customers, Products, Invoices, InvoiceItems]) +class AppDatabase extends _$AppDatabase { + AppDatabase() : super(_openConnection()); + + @override + int get schemaVersion => 1; + + // --- DAOメソッド --- + + // ★ここが重要:履歴一覧画面で使う「監視用」メソッド + Stream> watchAllInvoices() { + final query = select( + invoices, + ).join([innerJoin(customers, customers.id.equalsExp(invoices.customerId))]); + query.orderBy([OrderingTerm.desc(invoices.date)]); + return query.watch().map((rows) { + return rows.map((row) { + return InvoiceWithCustomer( + row.readTable(invoices), + row.readTable(customers), + ); + }).toList(); + }); + } + + Future saveFullInvoice( + InvoicesCompanion invoice, + List items, + ) async { + await transaction(() async { + await into(invoices).insertOnConflictUpdate(invoice); + await (delete( + invoiceItems, + )..where((t) => t.invoiceId.equals(invoice.id.value))).go(); + for (var item in items) { + await into(invoiceItems).insert(item); + } + }); + } + + Future> getNearbyCustomers(double lat, double lon) { + return select(customers).get(); + } +} + +LazyDatabase _openConnection() { + return LazyDatabase(() async { + final dbFolder = await getApplicationDocumentsDirectory(); + final file = File(p.join(dbFolder.path, 'db.sqlite')); + return NativeDatabase(file); + }); +} diff --git a/lib/data/database.g.dart b/lib/data/database.g.dart new file mode 100644 index 0000000..4a8fe57 --- /dev/null +++ b/lib/data/database.g.dart @@ -0,0 +1,3070 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'database.dart'; + +// ignore_for_file: type=lint +class $CustomersTable extends Customers + with TableInfo<$CustomersTable, Customer> { + @override + final GeneratedDatabase attachedDatabase; + final String? _alias; + $CustomersTable(this.attachedDatabase, [this._alias]); + static const VerificationMeta _idMeta = const VerificationMeta('id'); + @override + late final GeneratedColumn id = GeneratedColumn( + 'id', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); + static const VerificationMeta _displayNameMeta = const VerificationMeta( + 'displayName', + ); + @override + late final GeneratedColumn displayName = GeneratedColumn( + 'display_name', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); + static const VerificationMeta _formalNameMeta = const VerificationMeta( + 'formalName', + ); + @override + late final GeneratedColumn formalName = GeneratedColumn( + 'formal_name', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); + static const VerificationMeta _addressMeta = const VerificationMeta( + 'address', + ); + @override + late final GeneratedColumn address = GeneratedColumn( + 'address', + aliasedName, + true, + type: DriftSqlType.string, + requiredDuringInsert: false, + ); + static const VerificationMeta _zipCodeMeta = const VerificationMeta( + 'zipCode', + ); + @override + late final GeneratedColumn zipCode = GeneratedColumn( + 'zip_code', + aliasedName, + true, + type: DriftSqlType.string, + requiredDuringInsert: false, + ); + static const VerificationMeta _departmentMeta = const VerificationMeta( + 'department', + ); + @override + late final GeneratedColumn department = GeneratedColumn( + 'department', + aliasedName, + true, + type: DriftSqlType.string, + requiredDuringInsert: false, + ); + static const VerificationMeta _latitudeMeta = const VerificationMeta( + 'latitude', + ); + @override + late final GeneratedColumn latitude = GeneratedColumn( + 'latitude', + aliasedName, + true, + type: DriftSqlType.double, + requiredDuringInsert: false, + ); + static const VerificationMeta _longitudeMeta = const VerificationMeta( + 'longitude', + ); + @override + late final GeneratedColumn longitude = GeneratedColumn( + 'longitude', + aliasedName, + true, + type: DriftSqlType.double, + requiredDuringInsert: false, + ); + static const VerificationMeta _lastUpdatedAtMeta = const VerificationMeta( + 'lastUpdatedAt', + ); + @override + late final GeneratedColumn lastUpdatedAt = + GeneratedColumn( + 'last_updated_at', + aliasedName, + true, + type: DriftSqlType.dateTime, + requiredDuringInsert: false, + ); + @override + List get $columns => [ + id, + displayName, + formalName, + address, + zipCode, + department, + latitude, + longitude, + lastUpdatedAt, + ]; + @override + String get aliasedName => _alias ?? actualTableName; + @override + String get actualTableName => $name; + static const String $name = 'customers'; + @override + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { + final context = VerificationContext(); + final data = instance.toColumns(true); + if (data.containsKey('id')) { + context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta)); + } else if (isInserting) { + context.missing(_idMeta); + } + if (data.containsKey('display_name')) { + context.handle( + _displayNameMeta, + displayName.isAcceptableOrUnknown( + data['display_name']!, + _displayNameMeta, + ), + ); + } else if (isInserting) { + context.missing(_displayNameMeta); + } + if (data.containsKey('formal_name')) { + context.handle( + _formalNameMeta, + formalName.isAcceptableOrUnknown(data['formal_name']!, _formalNameMeta), + ); + } else if (isInserting) { + context.missing(_formalNameMeta); + } + if (data.containsKey('address')) { + context.handle( + _addressMeta, + address.isAcceptableOrUnknown(data['address']!, _addressMeta), + ); + } + if (data.containsKey('zip_code')) { + context.handle( + _zipCodeMeta, + zipCode.isAcceptableOrUnknown(data['zip_code']!, _zipCodeMeta), + ); + } + if (data.containsKey('department')) { + context.handle( + _departmentMeta, + department.isAcceptableOrUnknown(data['department']!, _departmentMeta), + ); + } + if (data.containsKey('latitude')) { + context.handle( + _latitudeMeta, + latitude.isAcceptableOrUnknown(data['latitude']!, _latitudeMeta), + ); + } + if (data.containsKey('longitude')) { + context.handle( + _longitudeMeta, + longitude.isAcceptableOrUnknown(data['longitude']!, _longitudeMeta), + ); + } + if (data.containsKey('last_updated_at')) { + context.handle( + _lastUpdatedAtMeta, + lastUpdatedAt.isAcceptableOrUnknown( + data['last_updated_at']!, + _lastUpdatedAtMeta, + ), + ); + } + return context; + } + + @override + Set get $primaryKey => {id}; + @override + Customer map(Map data, {String? tablePrefix}) { + final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; + return Customer( + id: attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}id'], + )!, + displayName: attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}display_name'], + )!, + formalName: attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}formal_name'], + )!, + address: attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}address'], + ), + zipCode: attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}zip_code'], + ), + department: attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}department'], + ), + latitude: attachedDatabase.typeMapping.read( + DriftSqlType.double, + data['${effectivePrefix}latitude'], + ), + longitude: attachedDatabase.typeMapping.read( + DriftSqlType.double, + data['${effectivePrefix}longitude'], + ), + lastUpdatedAt: attachedDatabase.typeMapping.read( + DriftSqlType.dateTime, + data['${effectivePrefix}last_updated_at'], + ), + ); + } + + @override + $CustomersTable createAlias(String alias) { + return $CustomersTable(attachedDatabase, alias); + } +} + +class Customer extends DataClass implements Insertable { + final String id; + final String displayName; + final String formalName; + final String? address; + final String? zipCode; + final String? department; + final double? latitude; + final double? longitude; + final DateTime? lastUpdatedAt; + const Customer({ + required this.id, + required this.displayName, + required this.formalName, + this.address, + this.zipCode, + this.department, + this.latitude, + this.longitude, + this.lastUpdatedAt, + }); + @override + Map toColumns(bool nullToAbsent) { + final map = {}; + map['id'] = Variable(id); + map['display_name'] = Variable(displayName); + map['formal_name'] = Variable(formalName); + if (!nullToAbsent || address != null) { + map['address'] = Variable(address); + } + if (!nullToAbsent || zipCode != null) { + map['zip_code'] = Variable(zipCode); + } + if (!nullToAbsent || department != null) { + map['department'] = Variable(department); + } + if (!nullToAbsent || latitude != null) { + map['latitude'] = Variable(latitude); + } + if (!nullToAbsent || longitude != null) { + map['longitude'] = Variable(longitude); + } + if (!nullToAbsent || lastUpdatedAt != null) { + map['last_updated_at'] = Variable(lastUpdatedAt); + } + return map; + } + + CustomersCompanion toCompanion(bool nullToAbsent) { + return CustomersCompanion( + id: Value(id), + displayName: Value(displayName), + formalName: Value(formalName), + address: address == null && nullToAbsent + ? const Value.absent() + : Value(address), + zipCode: zipCode == null && nullToAbsent + ? const Value.absent() + : Value(zipCode), + department: department == null && nullToAbsent + ? const Value.absent() + : Value(department), + latitude: latitude == null && nullToAbsent + ? const Value.absent() + : Value(latitude), + longitude: longitude == null && nullToAbsent + ? const Value.absent() + : Value(longitude), + lastUpdatedAt: lastUpdatedAt == null && nullToAbsent + ? const Value.absent() + : Value(lastUpdatedAt), + ); + } + + factory Customer.fromJson( + Map json, { + ValueSerializer? serializer, + }) { + serializer ??= driftRuntimeOptions.defaultSerializer; + return Customer( + id: serializer.fromJson(json['id']), + displayName: serializer.fromJson(json['displayName']), + formalName: serializer.fromJson(json['formalName']), + address: serializer.fromJson(json['address']), + zipCode: serializer.fromJson(json['zipCode']), + department: serializer.fromJson(json['department']), + latitude: serializer.fromJson(json['latitude']), + longitude: serializer.fromJson(json['longitude']), + lastUpdatedAt: serializer.fromJson(json['lastUpdatedAt']), + ); + } + @override + Map toJson({ValueSerializer? serializer}) { + serializer ??= driftRuntimeOptions.defaultSerializer; + return { + 'id': serializer.toJson(id), + 'displayName': serializer.toJson(displayName), + 'formalName': serializer.toJson(formalName), + 'address': serializer.toJson(address), + 'zipCode': serializer.toJson(zipCode), + 'department': serializer.toJson(department), + 'latitude': serializer.toJson(latitude), + 'longitude': serializer.toJson(longitude), + 'lastUpdatedAt': serializer.toJson(lastUpdatedAt), + }; + } + + Customer copyWith({ + String? id, + String? displayName, + String? formalName, + Value address = const Value.absent(), + Value zipCode = const Value.absent(), + Value department = const Value.absent(), + Value latitude = const Value.absent(), + Value longitude = const Value.absent(), + Value lastUpdatedAt = const Value.absent(), + }) => Customer( + id: id ?? this.id, + displayName: displayName ?? this.displayName, + formalName: formalName ?? this.formalName, + address: address.present ? address.value : this.address, + zipCode: zipCode.present ? zipCode.value : this.zipCode, + department: department.present ? department.value : this.department, + latitude: latitude.present ? latitude.value : this.latitude, + longitude: longitude.present ? longitude.value : this.longitude, + lastUpdatedAt: lastUpdatedAt.present + ? lastUpdatedAt.value + : this.lastUpdatedAt, + ); + Customer copyWithCompanion(CustomersCompanion data) { + return Customer( + id: data.id.present ? data.id.value : this.id, + displayName: data.displayName.present + ? data.displayName.value + : this.displayName, + formalName: data.formalName.present + ? data.formalName.value + : this.formalName, + address: data.address.present ? data.address.value : this.address, + zipCode: data.zipCode.present ? data.zipCode.value : this.zipCode, + department: data.department.present + ? data.department.value + : this.department, + latitude: data.latitude.present ? data.latitude.value : this.latitude, + longitude: data.longitude.present ? data.longitude.value : this.longitude, + lastUpdatedAt: data.lastUpdatedAt.present + ? data.lastUpdatedAt.value + : this.lastUpdatedAt, + ); + } + + @override + String toString() { + return (StringBuffer('Customer(') + ..write('id: $id, ') + ..write('displayName: $displayName, ') + ..write('formalName: $formalName, ') + ..write('address: $address, ') + ..write('zipCode: $zipCode, ') + ..write('department: $department, ') + ..write('latitude: $latitude, ') + ..write('longitude: $longitude, ') + ..write('lastUpdatedAt: $lastUpdatedAt') + ..write(')')) + .toString(); + } + + @override + int get hashCode => Object.hash( + id, + displayName, + formalName, + address, + zipCode, + department, + latitude, + longitude, + lastUpdatedAt, + ); + @override + bool operator ==(Object other) => + identical(this, other) || + (other is Customer && + other.id == this.id && + other.displayName == this.displayName && + other.formalName == this.formalName && + other.address == this.address && + other.zipCode == this.zipCode && + other.department == this.department && + other.latitude == this.latitude && + other.longitude == this.longitude && + other.lastUpdatedAt == this.lastUpdatedAt); +} + +class CustomersCompanion extends UpdateCompanion { + final Value id; + final Value displayName; + final Value formalName; + final Value address; + final Value zipCode; + final Value department; + final Value latitude; + final Value longitude; + final Value lastUpdatedAt; + final Value rowid; + const CustomersCompanion({ + this.id = const Value.absent(), + this.displayName = const Value.absent(), + this.formalName = const Value.absent(), + this.address = const Value.absent(), + this.zipCode = const Value.absent(), + this.department = const Value.absent(), + this.latitude = const Value.absent(), + this.longitude = const Value.absent(), + this.lastUpdatedAt = const Value.absent(), + this.rowid = const Value.absent(), + }); + CustomersCompanion.insert({ + required String id, + required String displayName, + required String formalName, + this.address = const Value.absent(), + this.zipCode = const Value.absent(), + this.department = const Value.absent(), + this.latitude = const Value.absent(), + this.longitude = const Value.absent(), + this.lastUpdatedAt = const Value.absent(), + this.rowid = const Value.absent(), + }) : id = Value(id), + displayName = Value(displayName), + formalName = Value(formalName); + static Insertable custom({ + Expression? id, + Expression? displayName, + Expression? formalName, + Expression? address, + Expression? zipCode, + Expression? department, + Expression? latitude, + Expression? longitude, + Expression? lastUpdatedAt, + Expression? rowid, + }) { + return RawValuesInsertable({ + if (id != null) 'id': id, + if (displayName != null) 'display_name': displayName, + if (formalName != null) 'formal_name': formalName, + if (address != null) 'address': address, + if (zipCode != null) 'zip_code': zipCode, + if (department != null) 'department': department, + if (latitude != null) 'latitude': latitude, + if (longitude != null) 'longitude': longitude, + if (lastUpdatedAt != null) 'last_updated_at': lastUpdatedAt, + if (rowid != null) 'rowid': rowid, + }); + } + + CustomersCompanion copyWith({ + Value? id, + Value? displayName, + Value? formalName, + Value? address, + Value? zipCode, + Value? department, + Value? latitude, + Value? longitude, + Value? lastUpdatedAt, + Value? rowid, + }) { + return CustomersCompanion( + id: id ?? this.id, + displayName: displayName ?? this.displayName, + formalName: formalName ?? this.formalName, + address: address ?? this.address, + zipCode: zipCode ?? this.zipCode, + department: department ?? this.department, + latitude: latitude ?? this.latitude, + longitude: longitude ?? this.longitude, + lastUpdatedAt: lastUpdatedAt ?? this.lastUpdatedAt, + rowid: rowid ?? this.rowid, + ); + } + + @override + Map toColumns(bool nullToAbsent) { + final map = {}; + if (id.present) { + map['id'] = Variable(id.value); + } + if (displayName.present) { + map['display_name'] = Variable(displayName.value); + } + if (formalName.present) { + map['formal_name'] = Variable(formalName.value); + } + if (address.present) { + map['address'] = Variable(address.value); + } + if (zipCode.present) { + map['zip_code'] = Variable(zipCode.value); + } + if (department.present) { + map['department'] = Variable(department.value); + } + if (latitude.present) { + map['latitude'] = Variable(latitude.value); + } + if (longitude.present) { + map['longitude'] = Variable(longitude.value); + } + if (lastUpdatedAt.present) { + map['last_updated_at'] = Variable(lastUpdatedAt.value); + } + if (rowid.present) { + map['rowid'] = Variable(rowid.value); + } + return map; + } + + @override + String toString() { + return (StringBuffer('CustomersCompanion(') + ..write('id: $id, ') + ..write('displayName: $displayName, ') + ..write('formalName: $formalName, ') + ..write('address: $address, ') + ..write('zipCode: $zipCode, ') + ..write('department: $department, ') + ..write('latitude: $latitude, ') + ..write('longitude: $longitude, ') + ..write('lastUpdatedAt: $lastUpdatedAt, ') + ..write('rowid: $rowid') + ..write(')')) + .toString(); + } +} + +class $ProductsTable extends Products with TableInfo<$ProductsTable, Product> { + @override + final GeneratedDatabase attachedDatabase; + final String? _alias; + $ProductsTable(this.attachedDatabase, [this._alias]); + static const VerificationMeta _idMeta = const VerificationMeta('id'); + @override + late final GeneratedColumn id = GeneratedColumn( + 'id', + aliasedName, + false, + hasAutoIncrement: true, + type: DriftSqlType.int, + requiredDuringInsert: false, + defaultConstraints: GeneratedColumn.constraintIsAlways( + 'PRIMARY KEY AUTOINCREMENT', + ), + ); + static const VerificationMeta _nameMeta = const VerificationMeta('name'); + @override + late final GeneratedColumn name = GeneratedColumn( + 'name', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); + static const VerificationMeta _defaultPriceMeta = const VerificationMeta( + 'defaultPrice', + ); + @override + late final GeneratedColumn defaultPrice = GeneratedColumn( + 'default_price', + aliasedName, + false, + type: DriftSqlType.int, + requiredDuringInsert: true, + ); + static const VerificationMeta _categoryMeta = const VerificationMeta( + 'category', + ); + @override + late final GeneratedColumn category = GeneratedColumn( + 'category', + aliasedName, + true, + type: DriftSqlType.string, + requiredDuringInsert: false, + ); + @override + List get $columns => [id, name, defaultPrice, category]; + @override + String get aliasedName => _alias ?? actualTableName; + @override + String get actualTableName => $name; + static const String $name = 'products'; + @override + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { + final context = VerificationContext(); + final data = instance.toColumns(true); + if (data.containsKey('id')) { + context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta)); + } + if (data.containsKey('name')) { + context.handle( + _nameMeta, + name.isAcceptableOrUnknown(data['name']!, _nameMeta), + ); + } else if (isInserting) { + context.missing(_nameMeta); + } + if (data.containsKey('default_price')) { + context.handle( + _defaultPriceMeta, + defaultPrice.isAcceptableOrUnknown( + data['default_price']!, + _defaultPriceMeta, + ), + ); + } else if (isInserting) { + context.missing(_defaultPriceMeta); + } + if (data.containsKey('category')) { + context.handle( + _categoryMeta, + category.isAcceptableOrUnknown(data['category']!, _categoryMeta), + ); + } + return context; + } + + @override + Set get $primaryKey => {id}; + @override + Product map(Map data, {String? tablePrefix}) { + final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; + return Product( + id: attachedDatabase.typeMapping.read( + DriftSqlType.int, + data['${effectivePrefix}id'], + )!, + name: attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}name'], + )!, + defaultPrice: attachedDatabase.typeMapping.read( + DriftSqlType.int, + data['${effectivePrefix}default_price'], + )!, + category: attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}category'], + ), + ); + } + + @override + $ProductsTable createAlias(String alias) { + return $ProductsTable(attachedDatabase, alias); + } +} + +class Product extends DataClass implements Insertable { + final int id; + final String name; + final int defaultPrice; + final String? category; + const Product({ + required this.id, + required this.name, + required this.defaultPrice, + this.category, + }); + @override + Map toColumns(bool nullToAbsent) { + final map = {}; + map['id'] = Variable(id); + map['name'] = Variable(name); + map['default_price'] = Variable(defaultPrice); + if (!nullToAbsent || category != null) { + map['category'] = Variable(category); + } + return map; + } + + ProductsCompanion toCompanion(bool nullToAbsent) { + return ProductsCompanion( + id: Value(id), + name: Value(name), + defaultPrice: Value(defaultPrice), + category: category == null && nullToAbsent + ? const Value.absent() + : Value(category), + ); + } + + factory Product.fromJson( + Map json, { + ValueSerializer? serializer, + }) { + serializer ??= driftRuntimeOptions.defaultSerializer; + return Product( + id: serializer.fromJson(json['id']), + name: serializer.fromJson(json['name']), + defaultPrice: serializer.fromJson(json['defaultPrice']), + category: serializer.fromJson(json['category']), + ); + } + @override + Map toJson({ValueSerializer? serializer}) { + serializer ??= driftRuntimeOptions.defaultSerializer; + return { + 'id': serializer.toJson(id), + 'name': serializer.toJson(name), + 'defaultPrice': serializer.toJson(defaultPrice), + 'category': serializer.toJson(category), + }; + } + + Product copyWith({ + int? id, + String? name, + int? defaultPrice, + Value category = const Value.absent(), + }) => Product( + id: id ?? this.id, + name: name ?? this.name, + defaultPrice: defaultPrice ?? this.defaultPrice, + category: category.present ? category.value : this.category, + ); + Product copyWithCompanion(ProductsCompanion data) { + return Product( + id: data.id.present ? data.id.value : this.id, + name: data.name.present ? data.name.value : this.name, + defaultPrice: data.defaultPrice.present + ? data.defaultPrice.value + : this.defaultPrice, + category: data.category.present ? data.category.value : this.category, + ); + } + + @override + String toString() { + return (StringBuffer('Product(') + ..write('id: $id, ') + ..write('name: $name, ') + ..write('defaultPrice: $defaultPrice, ') + ..write('category: $category') + ..write(')')) + .toString(); + } + + @override + int get hashCode => Object.hash(id, name, defaultPrice, category); + @override + bool operator ==(Object other) => + identical(this, other) || + (other is Product && + other.id == this.id && + other.name == this.name && + other.defaultPrice == this.defaultPrice && + other.category == this.category); +} + +class ProductsCompanion extends UpdateCompanion { + final Value id; + final Value name; + final Value defaultPrice; + final Value category; + const ProductsCompanion({ + this.id = const Value.absent(), + this.name = const Value.absent(), + this.defaultPrice = const Value.absent(), + this.category = const Value.absent(), + }); + ProductsCompanion.insert({ + this.id = const Value.absent(), + required String name, + required int defaultPrice, + this.category = const Value.absent(), + }) : name = Value(name), + defaultPrice = Value(defaultPrice); + static Insertable custom({ + Expression? id, + Expression? name, + Expression? defaultPrice, + Expression? category, + }) { + return RawValuesInsertable({ + if (id != null) 'id': id, + if (name != null) 'name': name, + if (defaultPrice != null) 'default_price': defaultPrice, + if (category != null) 'category': category, + }); + } + + ProductsCompanion copyWith({ + Value? id, + Value? name, + Value? defaultPrice, + Value? category, + }) { + return ProductsCompanion( + id: id ?? this.id, + name: name ?? this.name, + defaultPrice: defaultPrice ?? this.defaultPrice, + category: category ?? this.category, + ); + } + + @override + Map toColumns(bool nullToAbsent) { + final map = {}; + if (id.present) { + map['id'] = Variable(id.value); + } + if (name.present) { + map['name'] = Variable(name.value); + } + if (defaultPrice.present) { + map['default_price'] = Variable(defaultPrice.value); + } + if (category.present) { + map['category'] = Variable(category.value); + } + return map; + } + + @override + String toString() { + return (StringBuffer('ProductsCompanion(') + ..write('id: $id, ') + ..write('name: $name, ') + ..write('defaultPrice: $defaultPrice, ') + ..write('category: $category') + ..write(')')) + .toString(); + } +} + +class $InvoicesTable extends Invoices with TableInfo<$InvoicesTable, Invoice> { + @override + final GeneratedDatabase attachedDatabase; + final String? _alias; + $InvoicesTable(this.attachedDatabase, [this._alias]); + static const VerificationMeta _idMeta = const VerificationMeta('id'); + @override + late final GeneratedColumn id = GeneratedColumn( + 'id', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); + static const VerificationMeta _customerIdMeta = const VerificationMeta( + 'customerId', + ); + @override + late final GeneratedColumn customerId = GeneratedColumn( + 'customer_id', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + defaultConstraints: GeneratedColumn.constraintIsAlways( + 'REFERENCES customers (id)', + ), + ); + static const VerificationMeta _dateMeta = const VerificationMeta('date'); + @override + late final GeneratedColumn date = GeneratedColumn( + 'date', + aliasedName, + false, + type: DriftSqlType.dateTime, + requiredDuringInsert: true, + ); + static const VerificationMeta _typeMeta = const VerificationMeta('type'); + @override + late final GeneratedColumn type = GeneratedColumn( + 'type', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); + static const VerificationMeta _filePathMeta = const VerificationMeta( + 'filePath', + ); + @override + late final GeneratedColumn filePath = GeneratedColumn( + 'file_path', + aliasedName, + true, + type: DriftSqlType.string, + requiredDuringInsert: false, + ); + static const VerificationMeta _notesMeta = const VerificationMeta('notes'); + @override + late final GeneratedColumn notes = GeneratedColumn( + 'notes', + aliasedName, + true, + type: DriftSqlType.string, + requiredDuringInsert: false, + ); + static const VerificationMeta _totalAmountMeta = const VerificationMeta( + 'totalAmount', + ); + @override + late final GeneratedColumn totalAmount = GeneratedColumn( + 'total_amount', + aliasedName, + false, + type: DriftSqlType.int, + requiredDuringInsert: true, + ); + @override + List get $columns => [ + id, + customerId, + date, + type, + filePath, + notes, + totalAmount, + ]; + @override + String get aliasedName => _alias ?? actualTableName; + @override + String get actualTableName => $name; + static const String $name = 'invoices'; + @override + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { + final context = VerificationContext(); + final data = instance.toColumns(true); + if (data.containsKey('id')) { + context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta)); + } else if (isInserting) { + context.missing(_idMeta); + } + if (data.containsKey('customer_id')) { + context.handle( + _customerIdMeta, + customerId.isAcceptableOrUnknown(data['customer_id']!, _customerIdMeta), + ); + } else if (isInserting) { + context.missing(_customerIdMeta); + } + if (data.containsKey('date')) { + context.handle( + _dateMeta, + date.isAcceptableOrUnknown(data['date']!, _dateMeta), + ); + } else if (isInserting) { + context.missing(_dateMeta); + } + if (data.containsKey('type')) { + context.handle( + _typeMeta, + type.isAcceptableOrUnknown(data['type']!, _typeMeta), + ); + } else if (isInserting) { + context.missing(_typeMeta); + } + if (data.containsKey('file_path')) { + context.handle( + _filePathMeta, + filePath.isAcceptableOrUnknown(data['file_path']!, _filePathMeta), + ); + } + if (data.containsKey('notes')) { + context.handle( + _notesMeta, + notes.isAcceptableOrUnknown(data['notes']!, _notesMeta), + ); + } + if (data.containsKey('total_amount')) { + context.handle( + _totalAmountMeta, + totalAmount.isAcceptableOrUnknown( + data['total_amount']!, + _totalAmountMeta, + ), + ); + } else if (isInserting) { + context.missing(_totalAmountMeta); + } + return context; + } + + @override + Set get $primaryKey => {id}; + @override + Invoice map(Map data, {String? tablePrefix}) { + final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; + return Invoice( + id: attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}id'], + )!, + customerId: attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}customer_id'], + )!, + date: attachedDatabase.typeMapping.read( + DriftSqlType.dateTime, + data['${effectivePrefix}date'], + )!, + type: attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}type'], + )!, + filePath: attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}file_path'], + ), + notes: attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}notes'], + ), + totalAmount: attachedDatabase.typeMapping.read( + DriftSqlType.int, + data['${effectivePrefix}total_amount'], + )!, + ); + } + + @override + $InvoicesTable createAlias(String alias) { + return $InvoicesTable(attachedDatabase, alias); + } +} + +class Invoice extends DataClass implements Insertable { + final String id; + final String customerId; + final DateTime date; + final String type; + final String? filePath; + final String? notes; + final int totalAmount; + const Invoice({ + required this.id, + required this.customerId, + required this.date, + required this.type, + this.filePath, + this.notes, + required this.totalAmount, + }); + @override + Map toColumns(bool nullToAbsent) { + final map = {}; + map['id'] = Variable(id); + map['customer_id'] = Variable(customerId); + map['date'] = Variable(date); + map['type'] = Variable(type); + if (!nullToAbsent || filePath != null) { + map['file_path'] = Variable(filePath); + } + if (!nullToAbsent || notes != null) { + map['notes'] = Variable(notes); + } + map['total_amount'] = Variable(totalAmount); + return map; + } + + InvoicesCompanion toCompanion(bool nullToAbsent) { + return InvoicesCompanion( + id: Value(id), + customerId: Value(customerId), + date: Value(date), + type: Value(type), + filePath: filePath == null && nullToAbsent + ? const Value.absent() + : Value(filePath), + notes: notes == null && nullToAbsent + ? const Value.absent() + : Value(notes), + totalAmount: Value(totalAmount), + ); + } + + factory Invoice.fromJson( + Map json, { + ValueSerializer? serializer, + }) { + serializer ??= driftRuntimeOptions.defaultSerializer; + return Invoice( + id: serializer.fromJson(json['id']), + customerId: serializer.fromJson(json['customerId']), + date: serializer.fromJson(json['date']), + type: serializer.fromJson(json['type']), + filePath: serializer.fromJson(json['filePath']), + notes: serializer.fromJson(json['notes']), + totalAmount: serializer.fromJson(json['totalAmount']), + ); + } + @override + Map toJson({ValueSerializer? serializer}) { + serializer ??= driftRuntimeOptions.defaultSerializer; + return { + 'id': serializer.toJson(id), + 'customerId': serializer.toJson(customerId), + 'date': serializer.toJson(date), + 'type': serializer.toJson(type), + 'filePath': serializer.toJson(filePath), + 'notes': serializer.toJson(notes), + 'totalAmount': serializer.toJson(totalAmount), + }; + } + + Invoice copyWith({ + String? id, + String? customerId, + DateTime? date, + String? type, + Value filePath = const Value.absent(), + Value notes = const Value.absent(), + int? totalAmount, + }) => Invoice( + id: id ?? this.id, + customerId: customerId ?? this.customerId, + date: date ?? this.date, + type: type ?? this.type, + filePath: filePath.present ? filePath.value : this.filePath, + notes: notes.present ? notes.value : this.notes, + totalAmount: totalAmount ?? this.totalAmount, + ); + Invoice copyWithCompanion(InvoicesCompanion data) { + return Invoice( + id: data.id.present ? data.id.value : this.id, + customerId: data.customerId.present + ? data.customerId.value + : this.customerId, + date: data.date.present ? data.date.value : this.date, + type: data.type.present ? data.type.value : this.type, + filePath: data.filePath.present ? data.filePath.value : this.filePath, + notes: data.notes.present ? data.notes.value : this.notes, + totalAmount: data.totalAmount.present + ? data.totalAmount.value + : this.totalAmount, + ); + } + + @override + String toString() { + return (StringBuffer('Invoice(') + ..write('id: $id, ') + ..write('customerId: $customerId, ') + ..write('date: $date, ') + ..write('type: $type, ') + ..write('filePath: $filePath, ') + ..write('notes: $notes, ') + ..write('totalAmount: $totalAmount') + ..write(')')) + .toString(); + } + + @override + int get hashCode => + Object.hash(id, customerId, date, type, filePath, notes, totalAmount); + @override + bool operator ==(Object other) => + identical(this, other) || + (other is Invoice && + other.id == this.id && + other.customerId == this.customerId && + other.date == this.date && + other.type == this.type && + other.filePath == this.filePath && + other.notes == this.notes && + other.totalAmount == this.totalAmount); +} + +class InvoicesCompanion extends UpdateCompanion { + final Value id; + final Value customerId; + final Value date; + final Value type; + final Value filePath; + final Value notes; + final Value totalAmount; + final Value rowid; + const InvoicesCompanion({ + this.id = const Value.absent(), + this.customerId = const Value.absent(), + this.date = const Value.absent(), + this.type = const Value.absent(), + this.filePath = const Value.absent(), + this.notes = const Value.absent(), + this.totalAmount = const Value.absent(), + this.rowid = const Value.absent(), + }); + InvoicesCompanion.insert({ + required String id, + required String customerId, + required DateTime date, + required String type, + this.filePath = const Value.absent(), + this.notes = const Value.absent(), + required int totalAmount, + this.rowid = const Value.absent(), + }) : id = Value(id), + customerId = Value(customerId), + date = Value(date), + type = Value(type), + totalAmount = Value(totalAmount); + static Insertable custom({ + Expression? id, + Expression? customerId, + Expression? date, + Expression? type, + Expression? filePath, + Expression? notes, + Expression? totalAmount, + Expression? rowid, + }) { + return RawValuesInsertable({ + if (id != null) 'id': id, + if (customerId != null) 'customer_id': customerId, + if (date != null) 'date': date, + if (type != null) 'type': type, + if (filePath != null) 'file_path': filePath, + if (notes != null) 'notes': notes, + if (totalAmount != null) 'total_amount': totalAmount, + if (rowid != null) 'rowid': rowid, + }); + } + + InvoicesCompanion copyWith({ + Value? id, + Value? customerId, + Value? date, + Value? type, + Value? filePath, + Value? notes, + Value? totalAmount, + Value? rowid, + }) { + return InvoicesCompanion( + id: id ?? this.id, + customerId: customerId ?? this.customerId, + date: date ?? this.date, + type: type ?? this.type, + filePath: filePath ?? this.filePath, + notes: notes ?? this.notes, + totalAmount: totalAmount ?? this.totalAmount, + rowid: rowid ?? this.rowid, + ); + } + + @override + Map toColumns(bool nullToAbsent) { + final map = {}; + if (id.present) { + map['id'] = Variable(id.value); + } + if (customerId.present) { + map['customer_id'] = Variable(customerId.value); + } + if (date.present) { + map['date'] = Variable(date.value); + } + if (type.present) { + map['type'] = Variable(type.value); + } + if (filePath.present) { + map['file_path'] = Variable(filePath.value); + } + if (notes.present) { + map['notes'] = Variable(notes.value); + } + if (totalAmount.present) { + map['total_amount'] = Variable(totalAmount.value); + } + if (rowid.present) { + map['rowid'] = Variable(rowid.value); + } + return map; + } + + @override + String toString() { + return (StringBuffer('InvoicesCompanion(') + ..write('id: $id, ') + ..write('customerId: $customerId, ') + ..write('date: $date, ') + ..write('type: $type, ') + ..write('filePath: $filePath, ') + ..write('notes: $notes, ') + ..write('totalAmount: $totalAmount, ') + ..write('rowid: $rowid') + ..write(')')) + .toString(); + } +} + +class $InvoiceItemsTable extends InvoiceItems + with TableInfo<$InvoiceItemsTable, InvoiceItem> { + @override + final GeneratedDatabase attachedDatabase; + final String? _alias; + $InvoiceItemsTable(this.attachedDatabase, [this._alias]); + static const VerificationMeta _idMeta = const VerificationMeta('id'); + @override + late final GeneratedColumn id = GeneratedColumn( + 'id', + aliasedName, + false, + hasAutoIncrement: true, + type: DriftSqlType.int, + requiredDuringInsert: false, + defaultConstraints: GeneratedColumn.constraintIsAlways( + 'PRIMARY KEY AUTOINCREMENT', + ), + ); + static const VerificationMeta _invoiceIdMeta = const VerificationMeta( + 'invoiceId', + ); + @override + late final GeneratedColumn invoiceId = GeneratedColumn( + 'invoice_id', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + defaultConstraints: GeneratedColumn.constraintIsAlways( + 'REFERENCES invoices (id)', + ), + ); + static const VerificationMeta _descriptionMeta = const VerificationMeta( + 'description', + ); + @override + late final GeneratedColumn description = GeneratedColumn( + 'description', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); + static const VerificationMeta _quantityMeta = const VerificationMeta( + 'quantity', + ); + @override + late final GeneratedColumn quantity = GeneratedColumn( + 'quantity', + aliasedName, + false, + type: DriftSqlType.int, + requiredDuringInsert: true, + ); + static const VerificationMeta _unitPriceMeta = const VerificationMeta( + 'unitPrice', + ); + @override + late final GeneratedColumn unitPrice = GeneratedColumn( + 'unit_price', + aliasedName, + false, + type: DriftSqlType.int, + requiredDuringInsert: true, + ); + @override + List get $columns => [ + id, + invoiceId, + description, + quantity, + unitPrice, + ]; + @override + String get aliasedName => _alias ?? actualTableName; + @override + String get actualTableName => $name; + static const String $name = 'invoice_items'; + @override + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { + final context = VerificationContext(); + final data = instance.toColumns(true); + if (data.containsKey('id')) { + context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta)); + } + if (data.containsKey('invoice_id')) { + context.handle( + _invoiceIdMeta, + invoiceId.isAcceptableOrUnknown(data['invoice_id']!, _invoiceIdMeta), + ); + } else if (isInserting) { + context.missing(_invoiceIdMeta); + } + if (data.containsKey('description')) { + context.handle( + _descriptionMeta, + description.isAcceptableOrUnknown( + data['description']!, + _descriptionMeta, + ), + ); + } else if (isInserting) { + context.missing(_descriptionMeta); + } + if (data.containsKey('quantity')) { + context.handle( + _quantityMeta, + quantity.isAcceptableOrUnknown(data['quantity']!, _quantityMeta), + ); + } else if (isInserting) { + context.missing(_quantityMeta); + } + if (data.containsKey('unit_price')) { + context.handle( + _unitPriceMeta, + unitPrice.isAcceptableOrUnknown(data['unit_price']!, _unitPriceMeta), + ); + } else if (isInserting) { + context.missing(_unitPriceMeta); + } + return context; + } + + @override + Set get $primaryKey => {id}; + @override + InvoiceItem map(Map data, {String? tablePrefix}) { + final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; + return InvoiceItem( + id: attachedDatabase.typeMapping.read( + DriftSqlType.int, + data['${effectivePrefix}id'], + )!, + invoiceId: attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}invoice_id'], + )!, + description: attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}description'], + )!, + quantity: attachedDatabase.typeMapping.read( + DriftSqlType.int, + data['${effectivePrefix}quantity'], + )!, + unitPrice: attachedDatabase.typeMapping.read( + DriftSqlType.int, + data['${effectivePrefix}unit_price'], + )!, + ); + } + + @override + $InvoiceItemsTable createAlias(String alias) { + return $InvoiceItemsTable(attachedDatabase, alias); + } +} + +class InvoiceItem extends DataClass implements Insertable { + final int id; + final String invoiceId; + final String description; + final int quantity; + final int unitPrice; + const InvoiceItem({ + required this.id, + required this.invoiceId, + required this.description, + required this.quantity, + required this.unitPrice, + }); + @override + Map toColumns(bool nullToAbsent) { + final map = {}; + map['id'] = Variable(id); + map['invoice_id'] = Variable(invoiceId); + map['description'] = Variable(description); + map['quantity'] = Variable(quantity); + map['unit_price'] = Variable(unitPrice); + return map; + } + + InvoiceItemsCompanion toCompanion(bool nullToAbsent) { + return InvoiceItemsCompanion( + id: Value(id), + invoiceId: Value(invoiceId), + description: Value(description), + quantity: Value(quantity), + unitPrice: Value(unitPrice), + ); + } + + factory InvoiceItem.fromJson( + Map json, { + ValueSerializer? serializer, + }) { + serializer ??= driftRuntimeOptions.defaultSerializer; + return InvoiceItem( + id: serializer.fromJson(json['id']), + invoiceId: serializer.fromJson(json['invoiceId']), + description: serializer.fromJson(json['description']), + quantity: serializer.fromJson(json['quantity']), + unitPrice: serializer.fromJson(json['unitPrice']), + ); + } + @override + Map toJson({ValueSerializer? serializer}) { + serializer ??= driftRuntimeOptions.defaultSerializer; + return { + 'id': serializer.toJson(id), + 'invoiceId': serializer.toJson(invoiceId), + 'description': serializer.toJson(description), + 'quantity': serializer.toJson(quantity), + 'unitPrice': serializer.toJson(unitPrice), + }; + } + + InvoiceItem copyWith({ + int? id, + String? invoiceId, + String? description, + int? quantity, + int? unitPrice, + }) => InvoiceItem( + id: id ?? this.id, + invoiceId: invoiceId ?? this.invoiceId, + description: description ?? this.description, + quantity: quantity ?? this.quantity, + unitPrice: unitPrice ?? this.unitPrice, + ); + InvoiceItem copyWithCompanion(InvoiceItemsCompanion data) { + return InvoiceItem( + id: data.id.present ? data.id.value : this.id, + invoiceId: data.invoiceId.present ? data.invoiceId.value : this.invoiceId, + description: data.description.present + ? data.description.value + : this.description, + quantity: data.quantity.present ? data.quantity.value : this.quantity, + unitPrice: data.unitPrice.present ? data.unitPrice.value : this.unitPrice, + ); + } + + @override + String toString() { + return (StringBuffer('InvoiceItem(') + ..write('id: $id, ') + ..write('invoiceId: $invoiceId, ') + ..write('description: $description, ') + ..write('quantity: $quantity, ') + ..write('unitPrice: $unitPrice') + ..write(')')) + .toString(); + } + + @override + int get hashCode => + Object.hash(id, invoiceId, description, quantity, unitPrice); + @override + bool operator ==(Object other) => + identical(this, other) || + (other is InvoiceItem && + other.id == this.id && + other.invoiceId == this.invoiceId && + other.description == this.description && + other.quantity == this.quantity && + other.unitPrice == this.unitPrice); +} + +class InvoiceItemsCompanion extends UpdateCompanion { + final Value id; + final Value invoiceId; + final Value description; + final Value quantity; + final Value unitPrice; + const InvoiceItemsCompanion({ + this.id = const Value.absent(), + this.invoiceId = const Value.absent(), + this.description = const Value.absent(), + this.quantity = const Value.absent(), + this.unitPrice = const Value.absent(), + }); + InvoiceItemsCompanion.insert({ + this.id = const Value.absent(), + required String invoiceId, + required String description, + required int quantity, + required int unitPrice, + }) : invoiceId = Value(invoiceId), + description = Value(description), + quantity = Value(quantity), + unitPrice = Value(unitPrice); + static Insertable custom({ + Expression? id, + Expression? invoiceId, + Expression? description, + Expression? quantity, + Expression? unitPrice, + }) { + return RawValuesInsertable({ + if (id != null) 'id': id, + if (invoiceId != null) 'invoice_id': invoiceId, + if (description != null) 'description': description, + if (quantity != null) 'quantity': quantity, + if (unitPrice != null) 'unit_price': unitPrice, + }); + } + + InvoiceItemsCompanion copyWith({ + Value? id, + Value? invoiceId, + Value? description, + Value? quantity, + Value? unitPrice, + }) { + return InvoiceItemsCompanion( + id: id ?? this.id, + invoiceId: invoiceId ?? this.invoiceId, + description: description ?? this.description, + quantity: quantity ?? this.quantity, + unitPrice: unitPrice ?? this.unitPrice, + ); + } + + @override + Map toColumns(bool nullToAbsent) { + final map = {}; + if (id.present) { + map['id'] = Variable(id.value); + } + if (invoiceId.present) { + map['invoice_id'] = Variable(invoiceId.value); + } + if (description.present) { + map['description'] = Variable(description.value); + } + if (quantity.present) { + map['quantity'] = Variable(quantity.value); + } + if (unitPrice.present) { + map['unit_price'] = Variable(unitPrice.value); + } + return map; + } + + @override + String toString() { + return (StringBuffer('InvoiceItemsCompanion(') + ..write('id: $id, ') + ..write('invoiceId: $invoiceId, ') + ..write('description: $description, ') + ..write('quantity: $quantity, ') + ..write('unitPrice: $unitPrice') + ..write(')')) + .toString(); + } +} + +abstract class _$AppDatabase extends GeneratedDatabase { + _$AppDatabase(QueryExecutor e) : super(e); + $AppDatabaseManager get managers => $AppDatabaseManager(this); + late final $CustomersTable customers = $CustomersTable(this); + late final $ProductsTable products = $ProductsTable(this); + late final $InvoicesTable invoices = $InvoicesTable(this); + late final $InvoiceItemsTable invoiceItems = $InvoiceItemsTable(this); + @override + Iterable> get allTables => + allSchemaEntities.whereType>(); + @override + List get allSchemaEntities => [ + customers, + products, + invoices, + invoiceItems, + ]; +} + +typedef $$CustomersTableCreateCompanionBuilder = + CustomersCompanion Function({ + required String id, + required String displayName, + required String formalName, + Value address, + Value zipCode, + Value department, + Value latitude, + Value longitude, + Value lastUpdatedAt, + Value rowid, + }); +typedef $$CustomersTableUpdateCompanionBuilder = + CustomersCompanion Function({ + Value id, + Value displayName, + Value formalName, + Value address, + Value zipCode, + Value department, + Value latitude, + Value longitude, + Value lastUpdatedAt, + Value rowid, + }); + +final class $$CustomersTableReferences + extends BaseReferences<_$AppDatabase, $CustomersTable, Customer> { + $$CustomersTableReferences(super.$_db, super.$_table, super.$_typedResult); + + static MultiTypedResultKey<$InvoicesTable, List> _invoicesRefsTable( + _$AppDatabase db, + ) => MultiTypedResultKey.fromTable( + db.invoices, + aliasName: $_aliasNameGenerator(db.customers.id, db.invoices.customerId), + ); + + $$InvoicesTableProcessedTableManager get invoicesRefs { + final manager = $$InvoicesTableTableManager( + $_db, + $_db.invoices, + ).filter((f) => f.customerId.id.sqlEquals($_itemColumn('id')!)); + + final cache = $_typedResult.readTableOrNull(_invoicesRefsTable($_db)); + return ProcessedTableManager( + manager.$state.copyWith(prefetchedData: cache), + ); + } +} + +class $$CustomersTableFilterComposer + extends Composer<_$AppDatabase, $CustomersTable> { + $$CustomersTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get id => $composableBuilder( + column: $table.id, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get displayName => $composableBuilder( + column: $table.displayName, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get formalName => $composableBuilder( + column: $table.formalName, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get address => $composableBuilder( + column: $table.address, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get zipCode => $composableBuilder( + column: $table.zipCode, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get department => $composableBuilder( + column: $table.department, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get latitude => $composableBuilder( + column: $table.latitude, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get longitude => $composableBuilder( + column: $table.longitude, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get lastUpdatedAt => $composableBuilder( + column: $table.lastUpdatedAt, + builder: (column) => ColumnFilters(column), + ); + + Expression invoicesRefs( + Expression Function($$InvoicesTableFilterComposer f) f, + ) { + final $$InvoicesTableFilterComposer composer = $composerBuilder( + composer: this, + getCurrentColumn: (t) => t.id, + referencedTable: $db.invoices, + getReferencedColumn: (t) => t.customerId, + builder: + ( + joinBuilder, { + $addJoinBuilderToRootComposer, + $removeJoinBuilderFromRootComposer, + }) => $$InvoicesTableFilterComposer( + $db: $db, + $table: $db.invoices, + $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, + joinBuilder: joinBuilder, + $removeJoinBuilderFromRootComposer: + $removeJoinBuilderFromRootComposer, + ), + ); + return f(composer); + } +} + +class $$CustomersTableOrderingComposer + extends Composer<_$AppDatabase, $CustomersTable> { + $$CustomersTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get id => $composableBuilder( + column: $table.id, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get displayName => $composableBuilder( + column: $table.displayName, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get formalName => $composableBuilder( + column: $table.formalName, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get address => $composableBuilder( + column: $table.address, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get zipCode => $composableBuilder( + column: $table.zipCode, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get department => $composableBuilder( + column: $table.department, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get latitude => $composableBuilder( + column: $table.latitude, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get longitude => $composableBuilder( + column: $table.longitude, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get lastUpdatedAt => $composableBuilder( + column: $table.lastUpdatedAt, + builder: (column) => ColumnOrderings(column), + ); +} + +class $$CustomersTableAnnotationComposer + extends Composer<_$AppDatabase, $CustomersTable> { + $$CustomersTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get id => + $composableBuilder(column: $table.id, builder: (column) => column); + + GeneratedColumn get displayName => $composableBuilder( + column: $table.displayName, + builder: (column) => column, + ); + + GeneratedColumn get formalName => $composableBuilder( + column: $table.formalName, + builder: (column) => column, + ); + + GeneratedColumn get address => + $composableBuilder(column: $table.address, builder: (column) => column); + + GeneratedColumn get zipCode => + $composableBuilder(column: $table.zipCode, builder: (column) => column); + + GeneratedColumn get department => $composableBuilder( + column: $table.department, + builder: (column) => column, + ); + + GeneratedColumn get latitude => + $composableBuilder(column: $table.latitude, builder: (column) => column); + + GeneratedColumn get longitude => + $composableBuilder(column: $table.longitude, builder: (column) => column); + + GeneratedColumn get lastUpdatedAt => $composableBuilder( + column: $table.lastUpdatedAt, + builder: (column) => column, + ); + + Expression invoicesRefs( + Expression Function($$InvoicesTableAnnotationComposer a) f, + ) { + final $$InvoicesTableAnnotationComposer composer = $composerBuilder( + composer: this, + getCurrentColumn: (t) => t.id, + referencedTable: $db.invoices, + getReferencedColumn: (t) => t.customerId, + builder: + ( + joinBuilder, { + $addJoinBuilderToRootComposer, + $removeJoinBuilderFromRootComposer, + }) => $$InvoicesTableAnnotationComposer( + $db: $db, + $table: $db.invoices, + $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, + joinBuilder: joinBuilder, + $removeJoinBuilderFromRootComposer: + $removeJoinBuilderFromRootComposer, + ), + ); + return f(composer); + } +} + +class $$CustomersTableTableManager + extends + RootTableManager< + _$AppDatabase, + $CustomersTable, + Customer, + $$CustomersTableFilterComposer, + $$CustomersTableOrderingComposer, + $$CustomersTableAnnotationComposer, + $$CustomersTableCreateCompanionBuilder, + $$CustomersTableUpdateCompanionBuilder, + (Customer, $$CustomersTableReferences), + Customer, + PrefetchHooks Function({bool invoicesRefs}) + > { + $$CustomersTableTableManager(_$AppDatabase db, $CustomersTable table) + : super( + TableManagerState( + db: db, + table: table, + createFilteringComposer: () => + $$CustomersTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$CustomersTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => + $$CustomersTableAnnotationComposer($db: db, $table: table), + updateCompanionCallback: + ({ + Value id = const Value.absent(), + Value displayName = const Value.absent(), + Value formalName = const Value.absent(), + Value address = const Value.absent(), + Value zipCode = const Value.absent(), + Value department = const Value.absent(), + Value latitude = const Value.absent(), + Value longitude = const Value.absent(), + Value lastUpdatedAt = const Value.absent(), + Value rowid = const Value.absent(), + }) => CustomersCompanion( + id: id, + displayName: displayName, + formalName: formalName, + address: address, + zipCode: zipCode, + department: department, + latitude: latitude, + longitude: longitude, + lastUpdatedAt: lastUpdatedAt, + rowid: rowid, + ), + createCompanionCallback: + ({ + required String id, + required String displayName, + required String formalName, + Value address = const Value.absent(), + Value zipCode = const Value.absent(), + Value department = const Value.absent(), + Value latitude = const Value.absent(), + Value longitude = const Value.absent(), + Value lastUpdatedAt = const Value.absent(), + Value rowid = const Value.absent(), + }) => CustomersCompanion.insert( + id: id, + displayName: displayName, + formalName: formalName, + address: address, + zipCode: zipCode, + department: department, + latitude: latitude, + longitude: longitude, + lastUpdatedAt: lastUpdatedAt, + rowid: rowid, + ), + withReferenceMapper: (p0) => p0 + .map( + (e) => ( + e.readTable(table), + $$CustomersTableReferences(db, table, e), + ), + ) + .toList(), + prefetchHooksCallback: ({invoicesRefs = false}) { + return PrefetchHooks( + db: db, + explicitlyWatchedTables: [if (invoicesRefs) db.invoices], + addJoins: null, + getPrefetchedDataCallback: (items) async { + return [ + if (invoicesRefs) + await $_getPrefetchedData< + Customer, + $CustomersTable, + Invoice + >( + currentTable: table, + referencedTable: $$CustomersTableReferences + ._invoicesRefsTable(db), + managerFromTypedResult: (p0) => + $$CustomersTableReferences( + db, + table, + p0, + ).invoicesRefs, + referencedItemsForCurrentItem: (item, referencedItems) => + referencedItems.where((e) => e.customerId == item.id), + typedResults: items, + ), + ]; + }, + ); + }, + ), + ); +} + +typedef $$CustomersTableProcessedTableManager = + ProcessedTableManager< + _$AppDatabase, + $CustomersTable, + Customer, + $$CustomersTableFilterComposer, + $$CustomersTableOrderingComposer, + $$CustomersTableAnnotationComposer, + $$CustomersTableCreateCompanionBuilder, + $$CustomersTableUpdateCompanionBuilder, + (Customer, $$CustomersTableReferences), + Customer, + PrefetchHooks Function({bool invoicesRefs}) + >; +typedef $$ProductsTableCreateCompanionBuilder = + ProductsCompanion Function({ + Value id, + required String name, + required int defaultPrice, + Value category, + }); +typedef $$ProductsTableUpdateCompanionBuilder = + ProductsCompanion Function({ + Value id, + Value name, + Value defaultPrice, + Value category, + }); + +class $$ProductsTableFilterComposer + extends Composer<_$AppDatabase, $ProductsTable> { + $$ProductsTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get id => $composableBuilder( + column: $table.id, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get name => $composableBuilder( + column: $table.name, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get defaultPrice => $composableBuilder( + column: $table.defaultPrice, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get category => $composableBuilder( + column: $table.category, + builder: (column) => ColumnFilters(column), + ); +} + +class $$ProductsTableOrderingComposer + extends Composer<_$AppDatabase, $ProductsTable> { + $$ProductsTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get id => $composableBuilder( + column: $table.id, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get name => $composableBuilder( + column: $table.name, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get defaultPrice => $composableBuilder( + column: $table.defaultPrice, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get category => $composableBuilder( + column: $table.category, + builder: (column) => ColumnOrderings(column), + ); +} + +class $$ProductsTableAnnotationComposer + extends Composer<_$AppDatabase, $ProductsTable> { + $$ProductsTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get id => + $composableBuilder(column: $table.id, builder: (column) => column); + + GeneratedColumn get name => + $composableBuilder(column: $table.name, builder: (column) => column); + + GeneratedColumn get defaultPrice => $composableBuilder( + column: $table.defaultPrice, + builder: (column) => column, + ); + + GeneratedColumn get category => + $composableBuilder(column: $table.category, builder: (column) => column); +} + +class $$ProductsTableTableManager + extends + RootTableManager< + _$AppDatabase, + $ProductsTable, + Product, + $$ProductsTableFilterComposer, + $$ProductsTableOrderingComposer, + $$ProductsTableAnnotationComposer, + $$ProductsTableCreateCompanionBuilder, + $$ProductsTableUpdateCompanionBuilder, + (Product, BaseReferences<_$AppDatabase, $ProductsTable, Product>), + Product, + PrefetchHooks Function() + > { + $$ProductsTableTableManager(_$AppDatabase db, $ProductsTable table) + : super( + TableManagerState( + db: db, + table: table, + createFilteringComposer: () => + $$ProductsTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$ProductsTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => + $$ProductsTableAnnotationComposer($db: db, $table: table), + updateCompanionCallback: + ({ + Value id = const Value.absent(), + Value name = const Value.absent(), + Value defaultPrice = const Value.absent(), + Value category = const Value.absent(), + }) => ProductsCompanion( + id: id, + name: name, + defaultPrice: defaultPrice, + category: category, + ), + createCompanionCallback: + ({ + Value id = const Value.absent(), + required String name, + required int defaultPrice, + Value category = const Value.absent(), + }) => ProductsCompanion.insert( + id: id, + name: name, + defaultPrice: defaultPrice, + category: category, + ), + withReferenceMapper: (p0) => p0 + .map((e) => (e.readTable(table), BaseReferences(db, table, e))) + .toList(), + prefetchHooksCallback: null, + ), + ); +} + +typedef $$ProductsTableProcessedTableManager = + ProcessedTableManager< + _$AppDatabase, + $ProductsTable, + Product, + $$ProductsTableFilterComposer, + $$ProductsTableOrderingComposer, + $$ProductsTableAnnotationComposer, + $$ProductsTableCreateCompanionBuilder, + $$ProductsTableUpdateCompanionBuilder, + (Product, BaseReferences<_$AppDatabase, $ProductsTable, Product>), + Product, + PrefetchHooks Function() + >; +typedef $$InvoicesTableCreateCompanionBuilder = + InvoicesCompanion Function({ + required String id, + required String customerId, + required DateTime date, + required String type, + Value filePath, + Value notes, + required int totalAmount, + Value rowid, + }); +typedef $$InvoicesTableUpdateCompanionBuilder = + InvoicesCompanion Function({ + Value id, + Value customerId, + Value date, + Value type, + Value filePath, + Value notes, + Value totalAmount, + Value rowid, + }); + +final class $$InvoicesTableReferences + extends BaseReferences<_$AppDatabase, $InvoicesTable, Invoice> { + $$InvoicesTableReferences(super.$_db, super.$_table, super.$_typedResult); + + static $CustomersTable _customerIdTable(_$AppDatabase db) => + db.customers.createAlias( + $_aliasNameGenerator(db.invoices.customerId, db.customers.id), + ); + + $$CustomersTableProcessedTableManager get customerId { + final $_column = $_itemColumn('customer_id')!; + + final manager = $$CustomersTableTableManager( + $_db, + $_db.customers, + ).filter((f) => f.id.sqlEquals($_column)); + final item = $_typedResult.readTableOrNull(_customerIdTable($_db)); + if (item == null) return manager; + return ProcessedTableManager( + manager.$state.copyWith(prefetchedData: [item]), + ); + } + + static MultiTypedResultKey<$InvoiceItemsTable, List> + _invoiceItemsRefsTable(_$AppDatabase db) => MultiTypedResultKey.fromTable( + db.invoiceItems, + aliasName: $_aliasNameGenerator(db.invoices.id, db.invoiceItems.invoiceId), + ); + + $$InvoiceItemsTableProcessedTableManager get invoiceItemsRefs { + final manager = $$InvoiceItemsTableTableManager( + $_db, + $_db.invoiceItems, + ).filter((f) => f.invoiceId.id.sqlEquals($_itemColumn('id')!)); + + final cache = $_typedResult.readTableOrNull(_invoiceItemsRefsTable($_db)); + return ProcessedTableManager( + manager.$state.copyWith(prefetchedData: cache), + ); + } +} + +class $$InvoicesTableFilterComposer + extends Composer<_$AppDatabase, $InvoicesTable> { + $$InvoicesTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get id => $composableBuilder( + column: $table.id, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get date => $composableBuilder( + column: $table.date, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get type => $composableBuilder( + column: $table.type, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get filePath => $composableBuilder( + column: $table.filePath, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get notes => $composableBuilder( + column: $table.notes, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get totalAmount => $composableBuilder( + column: $table.totalAmount, + builder: (column) => ColumnFilters(column), + ); + + $$CustomersTableFilterComposer get customerId { + final $$CustomersTableFilterComposer composer = $composerBuilder( + composer: this, + getCurrentColumn: (t) => t.customerId, + referencedTable: $db.customers, + getReferencedColumn: (t) => t.id, + builder: + ( + joinBuilder, { + $addJoinBuilderToRootComposer, + $removeJoinBuilderFromRootComposer, + }) => $$CustomersTableFilterComposer( + $db: $db, + $table: $db.customers, + $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, + joinBuilder: joinBuilder, + $removeJoinBuilderFromRootComposer: + $removeJoinBuilderFromRootComposer, + ), + ); + return composer; + } + + Expression invoiceItemsRefs( + Expression Function($$InvoiceItemsTableFilterComposer f) f, + ) { + final $$InvoiceItemsTableFilterComposer composer = $composerBuilder( + composer: this, + getCurrentColumn: (t) => t.id, + referencedTable: $db.invoiceItems, + getReferencedColumn: (t) => t.invoiceId, + builder: + ( + joinBuilder, { + $addJoinBuilderToRootComposer, + $removeJoinBuilderFromRootComposer, + }) => $$InvoiceItemsTableFilterComposer( + $db: $db, + $table: $db.invoiceItems, + $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, + joinBuilder: joinBuilder, + $removeJoinBuilderFromRootComposer: + $removeJoinBuilderFromRootComposer, + ), + ); + return f(composer); + } +} + +class $$InvoicesTableOrderingComposer + extends Composer<_$AppDatabase, $InvoicesTable> { + $$InvoicesTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get id => $composableBuilder( + column: $table.id, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get date => $composableBuilder( + column: $table.date, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get type => $composableBuilder( + column: $table.type, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get filePath => $composableBuilder( + column: $table.filePath, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get notes => $composableBuilder( + column: $table.notes, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get totalAmount => $composableBuilder( + column: $table.totalAmount, + builder: (column) => ColumnOrderings(column), + ); + + $$CustomersTableOrderingComposer get customerId { + final $$CustomersTableOrderingComposer composer = $composerBuilder( + composer: this, + getCurrentColumn: (t) => t.customerId, + referencedTable: $db.customers, + getReferencedColumn: (t) => t.id, + builder: + ( + joinBuilder, { + $addJoinBuilderToRootComposer, + $removeJoinBuilderFromRootComposer, + }) => $$CustomersTableOrderingComposer( + $db: $db, + $table: $db.customers, + $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, + joinBuilder: joinBuilder, + $removeJoinBuilderFromRootComposer: + $removeJoinBuilderFromRootComposer, + ), + ); + return composer; + } +} + +class $$InvoicesTableAnnotationComposer + extends Composer<_$AppDatabase, $InvoicesTable> { + $$InvoicesTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get id => + $composableBuilder(column: $table.id, builder: (column) => column); + + GeneratedColumn get date => + $composableBuilder(column: $table.date, builder: (column) => column); + + GeneratedColumn get type => + $composableBuilder(column: $table.type, builder: (column) => column); + + GeneratedColumn get filePath => + $composableBuilder(column: $table.filePath, builder: (column) => column); + + GeneratedColumn get notes => + $composableBuilder(column: $table.notes, builder: (column) => column); + + GeneratedColumn get totalAmount => $composableBuilder( + column: $table.totalAmount, + builder: (column) => column, + ); + + $$CustomersTableAnnotationComposer get customerId { + final $$CustomersTableAnnotationComposer composer = $composerBuilder( + composer: this, + getCurrentColumn: (t) => t.customerId, + referencedTable: $db.customers, + getReferencedColumn: (t) => t.id, + builder: + ( + joinBuilder, { + $addJoinBuilderToRootComposer, + $removeJoinBuilderFromRootComposer, + }) => $$CustomersTableAnnotationComposer( + $db: $db, + $table: $db.customers, + $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, + joinBuilder: joinBuilder, + $removeJoinBuilderFromRootComposer: + $removeJoinBuilderFromRootComposer, + ), + ); + return composer; + } + + Expression invoiceItemsRefs( + Expression Function($$InvoiceItemsTableAnnotationComposer a) f, + ) { + final $$InvoiceItemsTableAnnotationComposer composer = $composerBuilder( + composer: this, + getCurrentColumn: (t) => t.id, + referencedTable: $db.invoiceItems, + getReferencedColumn: (t) => t.invoiceId, + builder: + ( + joinBuilder, { + $addJoinBuilderToRootComposer, + $removeJoinBuilderFromRootComposer, + }) => $$InvoiceItemsTableAnnotationComposer( + $db: $db, + $table: $db.invoiceItems, + $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, + joinBuilder: joinBuilder, + $removeJoinBuilderFromRootComposer: + $removeJoinBuilderFromRootComposer, + ), + ); + return f(composer); + } +} + +class $$InvoicesTableTableManager + extends + RootTableManager< + _$AppDatabase, + $InvoicesTable, + Invoice, + $$InvoicesTableFilterComposer, + $$InvoicesTableOrderingComposer, + $$InvoicesTableAnnotationComposer, + $$InvoicesTableCreateCompanionBuilder, + $$InvoicesTableUpdateCompanionBuilder, + (Invoice, $$InvoicesTableReferences), + Invoice, + PrefetchHooks Function({bool customerId, bool invoiceItemsRefs}) + > { + $$InvoicesTableTableManager(_$AppDatabase db, $InvoicesTable table) + : super( + TableManagerState( + db: db, + table: table, + createFilteringComposer: () => + $$InvoicesTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$InvoicesTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => + $$InvoicesTableAnnotationComposer($db: db, $table: table), + updateCompanionCallback: + ({ + Value id = const Value.absent(), + Value customerId = const Value.absent(), + Value date = const Value.absent(), + Value type = const Value.absent(), + Value filePath = const Value.absent(), + Value notes = const Value.absent(), + Value totalAmount = const Value.absent(), + Value rowid = const Value.absent(), + }) => InvoicesCompanion( + id: id, + customerId: customerId, + date: date, + type: type, + filePath: filePath, + notes: notes, + totalAmount: totalAmount, + rowid: rowid, + ), + createCompanionCallback: + ({ + required String id, + required String customerId, + required DateTime date, + required String type, + Value filePath = const Value.absent(), + Value notes = const Value.absent(), + required int totalAmount, + Value rowid = const Value.absent(), + }) => InvoicesCompanion.insert( + id: id, + customerId: customerId, + date: date, + type: type, + filePath: filePath, + notes: notes, + totalAmount: totalAmount, + rowid: rowid, + ), + withReferenceMapper: (p0) => p0 + .map( + (e) => ( + e.readTable(table), + $$InvoicesTableReferences(db, table, e), + ), + ) + .toList(), + prefetchHooksCallback: + ({customerId = false, invoiceItemsRefs = false}) { + return PrefetchHooks( + db: db, + explicitlyWatchedTables: [ + if (invoiceItemsRefs) db.invoiceItems, + ], + addJoins: + < + T extends TableManagerState< + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic + > + >(state) { + if (customerId) { + state = + state.withJoin( + currentTable: table, + currentColumn: table.customerId, + referencedTable: $$InvoicesTableReferences + ._customerIdTable(db), + referencedColumn: $$InvoicesTableReferences + ._customerIdTable(db) + .id, + ) + as T; + } + + return state; + }, + getPrefetchedDataCallback: (items) async { + return [ + if (invoiceItemsRefs) + await $_getPrefetchedData< + Invoice, + $InvoicesTable, + InvoiceItem + >( + currentTable: table, + referencedTable: $$InvoicesTableReferences + ._invoiceItemsRefsTable(db), + managerFromTypedResult: (p0) => + $$InvoicesTableReferences( + db, + table, + p0, + ).invoiceItemsRefs, + referencedItemsForCurrentItem: + (item, referencedItems) => referencedItems.where( + (e) => e.invoiceId == item.id, + ), + typedResults: items, + ), + ]; + }, + ); + }, + ), + ); +} + +typedef $$InvoicesTableProcessedTableManager = + ProcessedTableManager< + _$AppDatabase, + $InvoicesTable, + Invoice, + $$InvoicesTableFilterComposer, + $$InvoicesTableOrderingComposer, + $$InvoicesTableAnnotationComposer, + $$InvoicesTableCreateCompanionBuilder, + $$InvoicesTableUpdateCompanionBuilder, + (Invoice, $$InvoicesTableReferences), + Invoice, + PrefetchHooks Function({bool customerId, bool invoiceItemsRefs}) + >; +typedef $$InvoiceItemsTableCreateCompanionBuilder = + InvoiceItemsCompanion Function({ + Value id, + required String invoiceId, + required String description, + required int quantity, + required int unitPrice, + }); +typedef $$InvoiceItemsTableUpdateCompanionBuilder = + InvoiceItemsCompanion Function({ + Value id, + Value invoiceId, + Value description, + Value quantity, + Value unitPrice, + }); + +final class $$InvoiceItemsTableReferences + extends BaseReferences<_$AppDatabase, $InvoiceItemsTable, InvoiceItem> { + $$InvoiceItemsTableReferences(super.$_db, super.$_table, super.$_typedResult); + + static $InvoicesTable _invoiceIdTable(_$AppDatabase db) => + db.invoices.createAlias( + $_aliasNameGenerator(db.invoiceItems.invoiceId, db.invoices.id), + ); + + $$InvoicesTableProcessedTableManager get invoiceId { + final $_column = $_itemColumn('invoice_id')!; + + final manager = $$InvoicesTableTableManager( + $_db, + $_db.invoices, + ).filter((f) => f.id.sqlEquals($_column)); + final item = $_typedResult.readTableOrNull(_invoiceIdTable($_db)); + if (item == null) return manager; + return ProcessedTableManager( + manager.$state.copyWith(prefetchedData: [item]), + ); + } +} + +class $$InvoiceItemsTableFilterComposer + extends Composer<_$AppDatabase, $InvoiceItemsTable> { + $$InvoiceItemsTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get id => $composableBuilder( + column: $table.id, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get description => $composableBuilder( + column: $table.description, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get quantity => $composableBuilder( + column: $table.quantity, + builder: (column) => ColumnFilters(column), + ); + + ColumnFilters get unitPrice => $composableBuilder( + column: $table.unitPrice, + builder: (column) => ColumnFilters(column), + ); + + $$InvoicesTableFilterComposer get invoiceId { + final $$InvoicesTableFilterComposer composer = $composerBuilder( + composer: this, + getCurrentColumn: (t) => t.invoiceId, + referencedTable: $db.invoices, + getReferencedColumn: (t) => t.id, + builder: + ( + joinBuilder, { + $addJoinBuilderToRootComposer, + $removeJoinBuilderFromRootComposer, + }) => $$InvoicesTableFilterComposer( + $db: $db, + $table: $db.invoices, + $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, + joinBuilder: joinBuilder, + $removeJoinBuilderFromRootComposer: + $removeJoinBuilderFromRootComposer, + ), + ); + return composer; + } +} + +class $$InvoiceItemsTableOrderingComposer + extends Composer<_$AppDatabase, $InvoiceItemsTable> { + $$InvoiceItemsTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get id => $composableBuilder( + column: $table.id, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get description => $composableBuilder( + column: $table.description, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get quantity => $composableBuilder( + column: $table.quantity, + builder: (column) => ColumnOrderings(column), + ); + + ColumnOrderings get unitPrice => $composableBuilder( + column: $table.unitPrice, + builder: (column) => ColumnOrderings(column), + ); + + $$InvoicesTableOrderingComposer get invoiceId { + final $$InvoicesTableOrderingComposer composer = $composerBuilder( + composer: this, + getCurrentColumn: (t) => t.invoiceId, + referencedTable: $db.invoices, + getReferencedColumn: (t) => t.id, + builder: + ( + joinBuilder, { + $addJoinBuilderToRootComposer, + $removeJoinBuilderFromRootComposer, + }) => $$InvoicesTableOrderingComposer( + $db: $db, + $table: $db.invoices, + $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, + joinBuilder: joinBuilder, + $removeJoinBuilderFromRootComposer: + $removeJoinBuilderFromRootComposer, + ), + ); + return composer; + } +} + +class $$InvoiceItemsTableAnnotationComposer + extends Composer<_$AppDatabase, $InvoiceItemsTable> { + $$InvoiceItemsTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get id => + $composableBuilder(column: $table.id, builder: (column) => column); + + GeneratedColumn get description => $composableBuilder( + column: $table.description, + builder: (column) => column, + ); + + GeneratedColumn get quantity => + $composableBuilder(column: $table.quantity, builder: (column) => column); + + GeneratedColumn get unitPrice => + $composableBuilder(column: $table.unitPrice, builder: (column) => column); + + $$InvoicesTableAnnotationComposer get invoiceId { + final $$InvoicesTableAnnotationComposer composer = $composerBuilder( + composer: this, + getCurrentColumn: (t) => t.invoiceId, + referencedTable: $db.invoices, + getReferencedColumn: (t) => t.id, + builder: + ( + joinBuilder, { + $addJoinBuilderToRootComposer, + $removeJoinBuilderFromRootComposer, + }) => $$InvoicesTableAnnotationComposer( + $db: $db, + $table: $db.invoices, + $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, + joinBuilder: joinBuilder, + $removeJoinBuilderFromRootComposer: + $removeJoinBuilderFromRootComposer, + ), + ); + return composer; + } +} + +class $$InvoiceItemsTableTableManager + extends + RootTableManager< + _$AppDatabase, + $InvoiceItemsTable, + InvoiceItem, + $$InvoiceItemsTableFilterComposer, + $$InvoiceItemsTableOrderingComposer, + $$InvoiceItemsTableAnnotationComposer, + $$InvoiceItemsTableCreateCompanionBuilder, + $$InvoiceItemsTableUpdateCompanionBuilder, + (InvoiceItem, $$InvoiceItemsTableReferences), + InvoiceItem, + PrefetchHooks Function({bool invoiceId}) + > { + $$InvoiceItemsTableTableManager(_$AppDatabase db, $InvoiceItemsTable table) + : super( + TableManagerState( + db: db, + table: table, + createFilteringComposer: () => + $$InvoiceItemsTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$InvoiceItemsTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => + $$InvoiceItemsTableAnnotationComposer($db: db, $table: table), + updateCompanionCallback: + ({ + Value id = const Value.absent(), + Value invoiceId = const Value.absent(), + Value description = const Value.absent(), + Value quantity = const Value.absent(), + Value unitPrice = const Value.absent(), + }) => InvoiceItemsCompanion( + id: id, + invoiceId: invoiceId, + description: description, + quantity: quantity, + unitPrice: unitPrice, + ), + createCompanionCallback: + ({ + Value id = const Value.absent(), + required String invoiceId, + required String description, + required int quantity, + required int unitPrice, + }) => InvoiceItemsCompanion.insert( + id: id, + invoiceId: invoiceId, + description: description, + quantity: quantity, + unitPrice: unitPrice, + ), + withReferenceMapper: (p0) => p0 + .map( + (e) => ( + e.readTable(table), + $$InvoiceItemsTableReferences(db, table, e), + ), + ) + .toList(), + prefetchHooksCallback: ({invoiceId = false}) { + return PrefetchHooks( + db: db, + explicitlyWatchedTables: [], + addJoins: + < + T extends TableManagerState< + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic + > + >(state) { + if (invoiceId) { + state = + state.withJoin( + currentTable: table, + currentColumn: table.invoiceId, + referencedTable: $$InvoiceItemsTableReferences + ._invoiceIdTable(db), + referencedColumn: $$InvoiceItemsTableReferences + ._invoiceIdTable(db) + .id, + ) + as T; + } + + return state; + }, + getPrefetchedDataCallback: (items) async { + return []; + }, + ); + }, + ), + ); +} + +typedef $$InvoiceItemsTableProcessedTableManager = + ProcessedTableManager< + _$AppDatabase, + $InvoiceItemsTable, + InvoiceItem, + $$InvoiceItemsTableFilterComposer, + $$InvoiceItemsTableOrderingComposer, + $$InvoiceItemsTableAnnotationComposer, + $$InvoiceItemsTableCreateCompanionBuilder, + $$InvoiceItemsTableUpdateCompanionBuilder, + (InvoiceItem, $$InvoiceItemsTableReferences), + InvoiceItem, + PrefetchHooks Function({bool invoiceId}) + >; + +class $AppDatabaseManager { + final _$AppDatabase _db; + $AppDatabaseManager(this._db); + $$CustomersTableTableManager get customers => + $$CustomersTableTableManager(_db, _db.customers); + $$ProductsTableTableManager get products => + $$ProductsTableTableManager(_db, _db.products); + $$InvoicesTableTableManager get invoices => + $$InvoicesTableTableManager(_db, _db.invoices); + $$InvoiceItemsTableTableManager get invoiceItems => + $$InvoiceItemsTableTableManager(_db, _db.invoiceItems); +} diff --git a/lib/data/product_master.dart b/lib/data/product_master.dart new file mode 100644 index 0000000..0fa8b9d --- /dev/null +++ b/lib/data/product_master.dart @@ -0,0 +1,99 @@ +import '../models/invoice_models.dart'; + +/// 商品情報を管理するモデル +/// 将来的な Odoo 同期を見据えて、外部ID(odooId)を保持できるように設計 +class Product { + final String id; // ローカル管理用のID + final int? odooId; // Odoo上の product.product ID (nullの場合は未同期) + final String name; // 商品名 + final int defaultUnitPrice; // 標準単価 + final String? category; // カテゴリ + + const Product({ + required this.id, + this.odooId, + required this.name, + required this.defaultUnitPrice, + this.category, + }); + + /// InvoiceItem への変換 + InvoiceItem toInvoiceItem({int quantity = 1}) { + return InvoiceItem( + description: name, + quantity: quantity, + unitPrice: defaultUnitPrice, + ); + } + + /// 状態更新のためのコピーメソッド + Product copyWith({ + String? id, + int? odooId, + String? name, + int? defaultUnitPrice, + String? category, + }) { + return Product( + id: id ?? this.id, + odooId: odooId ?? this.odooId, + name: name ?? this.name, + defaultUnitPrice: defaultUnitPrice ?? this.defaultUnitPrice, + category: category ?? this.category, + ); + } + + /// JSON変換 (ローカル保存・Odoo同期用) + Map toJson() { + return { + 'id': id, + 'odoo_id': odooId, + 'name': name, + 'default_unit_price': defaultUnitPrice, + 'category': category, + }; + } + + /// JSONからモデルを生成 + factory Product.fromJson(Map json) { + return Product( + id: json['id'], + odooId: json['odoo_id'], + name: json['name'], + defaultUnitPrice: json['default_unit_price'], + category: json['category'], + ); + } +} + +/// 商品マスターのテンプレートデータ +class ProductMaster { + static const List products = [ + Product(id: 'S001', name: 'システム開発費', defaultUnitPrice: 500000, category: '開発'), + Product(id: 'S002', name: '保守・メンテナンス費', defaultUnitPrice: 50000, category: '運用'), + Product(id: 'S003', name: '技術コンサルティング', defaultUnitPrice: 100000, category: '開発'), + Product(id: 'G001', name: 'ライセンス料 (Pro)', defaultUnitPrice: 15000, category: '製品'), + Product(id: 'G002', name: '初期導入セットアップ', defaultUnitPrice: 30000, category: '製品'), + Product(id: 'M001', name: 'ハードウェア一式', defaultUnitPrice: 250000, category: '物品'), + Product(id: 'Z001', name: '諸経費', defaultUnitPrice: 5000, category: 'その他'), + ]; + + /// カテゴリ一覧の取得 + static List get categories { + return products.map((p) => p.category ?? 'その他').toSet().toList(); + } + + /// カテゴリ別の商品取得 + static List getProductsByCategory(String category) { + return products.where((p) => (p.category ?? 'その他') == category).toList(); + } + + /// 名前またはIDで検索 + static List search(String query) { + final q = query.toLowerCase(); + return products.where((p) => + p.name.toLowerCase().contains(q) || + p.id.toLowerCase().contains(q) + ).toList(); + } +} diff --git a/lib/main.dart b/lib/main.dart new file mode 100644 index 0000000..daa9a0e --- /dev/null +++ b/lib/main.dart @@ -0,0 +1,81 @@ +// lib/main.dart +// version: 1.5.1 (Fix: Class name conflict) +import 'package:flutter/material.dart'; +import 'screens/pdf_list_screen.dart'; +import 'models/invoice_models.dart'; +import 'screens/invoice_input_screen.dart'; +import 'screens/invoice_detail_page.dart'; +import 'data/database.dart' as db; // エイリアスを追加 + +/// グローバルなデータベースインスタンス +late db.AppDatabase database; + +void main() { + WidgetsFlutterBinding.ensureInitialized(); + database = db.AppDatabase(); + runApp(const MyApp()); +} + +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + title: '販売アシスト1号', + theme: ThemeData( + primarySwatch: Colors.blueGrey, + visualDensity: VisualDensity.adaptivePlatformDensity, + useMaterial3: true, + ), + home: const InvoiceFlowScreen(), + ); + } +} + +class InvoiceFlowScreen extends StatefulWidget { + const InvoiceFlowScreen({super.key}); + + @override + State createState() => _InvoiceFlowScreenState(); +} + +class _InvoiceFlowScreenState extends State { + Invoice? _lastGeneratedInvoice; + + void _handleInvoiceGenerated(Invoice generatedInvoice, String filePath) { + setState(() { + _lastGeneratedInvoice = generatedInvoice; + }); + + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => InvoiceDetailPage(invoice: generatedInvoice), + ), + ); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text("販売アシスト1号 V1.5.1"), + backgroundColor: Colors.blueGrey, + actions: [ + IconButton( + icon: const Icon(Icons.picture_as_pdf), + tooltip: 'PDF一覧', + onPressed: () { + Navigator.push( + context, + MaterialPageRoute(builder: (_) => const PdfListScreen()), + ); + }, + ), + ], + ), + body: InvoiceInputForm(onInvoiceGenerated: _handleInvoiceGenerated), + ); + } +} \ No newline at end of file diff --git a/lib/main.dart.org b/lib/main.dart.org new file mode 100644 index 0000000..244a702 --- /dev/null +++ b/lib/main.dart.org @@ -0,0 +1,122 @@ +import 'package:flutter/material.dart'; + +void main() { + runApp(const MyApp()); +} + +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + // This widget is the root of your application. + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Flutter Demo', + theme: ThemeData( + // This is the theme of your application. + // + // TRY THIS: Try running your application with "flutter run". You'll see + // the application has a purple toolbar. Then, without quitting the app, + // try changing the seedColor in the colorScheme below to Colors.green + // and then invoke "hot reload" (save your changes or press the "hot + // reload" button in a Flutter-supported IDE, or press "r" if you used + // the command line to start the app). + // + // Notice that the counter didn't reset back to zero; the application + // state is not lost during the reload. To reset the state, use hot + // restart instead. + // + // This works for code too, not just values: Most code changes can be + // tested with just a hot reload. + colorScheme: .fromSeed(seedColor: Colors.deepPurple), + ), + home: const MyHomePage(title: 'Flutter Demo Home Page'), + ); + } +} + +class MyHomePage extends StatefulWidget { + const MyHomePage({super.key, required this.title}); + + // This widget is the home page of your application. It is stateful, meaning + // that it has a State object (defined below) that contains fields that affect + // how it looks. + + // This class is the configuration for the state. It holds the values (in this + // case the title) provided by the parent (in this case the App widget) and + // used by the build method of the State. Fields in a Widget subclass are + // always marked "final". + + final String title; + + @override + State createState() => _MyHomePageState(); +} + +class _MyHomePageState extends State { + int _counter = 0; + + void _incrementCounter() { + setState(() { + // This call to setState tells the Flutter framework that something has + // changed in this State, which causes it to rerun the build method below + // so that the display can reflect the updated values. If we changed + // _counter without calling setState(), then the build method would not be + // called again, and so nothing would appear to happen. + _counter++; + }); + } + + @override + Widget build(BuildContext context) { + // This method is rerun every time setState is called, for instance as done + // by the _incrementCounter method above. + // + // The Flutter framework has been optimized to make rerunning build methods + // fast, so that you can just rebuild anything that needs updating rather + // than having to individually change instances of widgets. + return Scaffold( + appBar: AppBar( + // TRY THIS: Try changing the color here to a specific color (to + // Colors.amber, perhaps?) and trigger a hot reload to see the AppBar + // change color while the other colors stay the same. + backgroundColor: Theme.of(context).colorScheme.inversePrimary, + // Here we take the value from the MyHomePage object that was created by + // the App.build method, and use it to set our appbar title. + title: Text(widget.title), + ), + body: Center( + // Center is a layout widget. It takes a single child and positions it + // in the middle of the parent. + child: Column( + // Column is also a layout widget. It takes a list of children and + // arranges them vertically. By default, it sizes itself to fit its + // children horizontally, and tries to be as tall as its parent. + // + // Column has various properties to control how it sizes itself and + // how it positions its children. Here we use mainAxisAlignment to + // center the children vertically; the main axis here is the vertical + // axis because Columns are vertical (the cross axis would be + // horizontal). + // + // TRY THIS: Invoke "debug painting" (choose the "Toggle Debug Paint" + // action in the IDE, or press "p" in the console), to see the + // wireframe for each widget. + mainAxisAlignment: .center, + children: [ + const Text('You have pushed the button this many times:'), + Text( + '$_counter', + style: Theme.of(context).textTheme.headlineMedium, + ), + ], + ), + ), + floatingActionButton: FloatingActionButton( + onPressed: _incrementCounter, + tooltip: 'Increment', + child: const Icon(Icons.add), + ), + ); + } +} diff --git a/lib/models/app_model.dart b/lib/models/app_model.dart new file mode 100644 index 0000000..ff9147b --- /dev/null +++ b/lib/models/app_model.dart @@ -0,0 +1,2 @@ +export 'customer_model.dart'; +export 'invoice_models.dart'; diff --git a/lib/models/customer_model.dart b/lib/models/customer_model.dart new file mode 100644 index 0000000..2197344 --- /dev/null +++ b/lib/models/customer_model.dart @@ -0,0 +1,87 @@ +import 'package:intl/intl.dart'; + +/// 顧客情報を管理するモデル +/// 将来的な Odoo 同期を見据えて、外部ID(odooId)を保持できるように設計 +class Customer { + final String id; // ローカル管理用のID + final int? odooId; // Odoo上の res.partner ID (nullの場合は未同期) + final String displayName; // 電話帳からの表示名(検索用バッファ) + final String formalName; // 請求書に記載する正式名称(株式会社〜 など) + final String? zipCode; // 郵便番号 + final String? address; // 住所 + final String? department; // 部署名 + final String? title; // 敬称 (様、御中など。デフォルトは御中) + final DateTime lastUpdatedAt; // 最終更新日時 + + Customer({ + required this.id, + this.odooId, + required this.displayName, + required this.formalName, + this.zipCode, + this.address, + this.department, + this.title = '御中', + DateTime? lastUpdatedAt, + }) : this.lastUpdatedAt = lastUpdatedAt ?? DateTime.now(); + + /// 請求書表示用のフルネームを取得 + String get invoiceName => department != null && department!.isNotEmpty + ? "$formalName\n$department $title" + : "$formalName $title"; + + /// 状態更新のためのコピーメソッド + Customer copyWith({ + String? id, + int? odooId, + String? displayName, + String? formalName, + String? zipCode, + String? address, + String? department, + String? title, + DateTime? lastUpdatedAt, + }) { + return Customer( + id: id ?? this.id, + odooId: odooId ?? this.odooId, + displayName: displayName ?? this.displayName, + formalName: formalName ?? this.formalName, + zipCode: zipCode ?? this.zipCode, + address: address ?? this.address, + department: department ?? this.department, + title: title ?? this.title, + lastUpdatedAt: lastUpdatedAt ?? DateTime.now(), + ); + } + + /// JSON変換 (ローカル保存・Odoo同期用) + Map toJson() { + return { + 'id': id, + 'odoo_id': odooId, + 'display_name': displayName, + 'formal_name': formalName, + 'zip_code': zipCode, + 'address': address, + 'department': department, + 'title': title, + 'last_updated_at': lastUpdatedAt.toIso8601String(), + }; + } + + /// JSONからモデルを生成 + factory Customer.fromJson(Map json) { + return Customer( + id: json['id'], + odooId: json['odoo_id'], + displayName: json['display_name'], + formalName: json['formal_name'], + zipCode: json['zip_code'], + address: json['address'], + department: json['department'], + title: json['title'] ?? '御中', + lastUpdatedAt: DateTime.parse(json['last_updated_at']), + ); + } +} diff --git a/lib/models/invoice_models.dart b/lib/models/invoice_models.dart new file mode 100644 index 0000000..3989c70 --- /dev/null +++ b/lib/models/invoice_models.dart @@ -0,0 +1,145 @@ +import 'package:intl/intl.dart'; +import 'customer_model.dart'; + +/// 請求書の各明細行を表すモデル +class InvoiceItem { + String description; + int quantity; + int unitPrice; + + InvoiceItem({ + required this.description, + required this.quantity, + required this.unitPrice, + }); + + // 小計 (数量 * 単価) + int get subtotal => quantity * unitPrice; + + // 編集用のコピーメソッド + InvoiceItem copyWith({ + String? description, + int? quantity, + int? unitPrice, + }) { + return InvoiceItem( + description: description ?? this.description, + quantity: quantity ?? this.quantity, + unitPrice: unitPrice ?? this.unitPrice, + ); + } + + // JSON変換 + Map toJson() { + return { + 'description': description, + 'quantity': quantity, + 'unit_price': unitPrice, + }; + } + + // JSONから復元 + factory InvoiceItem.fromJson(Map json) { + return InvoiceItem( + description: json['description'] as String, + quantity: json['quantity'] as int, + unitPrice: json['unit_price'] as int, + ); + } +} + +/// 請求書全体を管理するモデル +class Invoice { + Customer customer; // 顧客情報 + DateTime date; + List items; + String? filePath; // 保存されたPDFのパス + String invoiceNumber; // 請求書番号 + String? notes; // 備考 + + Invoice({ + required this.customer, + required this.date, + required this.items, + this.filePath, + String? invoiceNumber, + this.notes, + }) : invoiceNumber = invoiceNumber ?? DateFormat('yyyyMMdd-HHmm').format(date); + + // 互換性のためのゲッター + String get clientName => customer.formalName; + + // 税抜合計金額 + int get subtotal { + return items.fold(0, (sum, item) => sum + item.subtotal); + } + + // 消費税 (10%固定として計算、端数切り捨て) + int get tax { + return (subtotal * 0.1).floor(); + } + + // 税込合計金額 + int get totalAmount { + return subtotal + tax; + } + + // 状態更新のためのコピーメソッド + Invoice copyWith({ + Customer? customer, + DateTime? date, + List? items, + String? filePath, + String? invoiceNumber, + String? notes, + }) { + return Invoice( + customer: customer ?? this.customer, + date: date ?? this.date, + items: items ?? this.items, + filePath: filePath ?? this.filePath, + invoiceNumber: invoiceNumber ?? this.invoiceNumber, + notes: notes ?? this.notes, + ); + } + + // CSV形式への変換 + String toCsv() { + StringBuffer sb = StringBuffer(); + sb.writeln("Customer,${customer.formalName}"); + sb.writeln("Invoice Number,$invoiceNumber"); + sb.writeln("Date,${DateFormat('yyyy/MM/dd').format(date)}"); + sb.writeln(""); + sb.writeln("Description,Quantity,UnitPrice,Subtotal"); + for (var item in items) { + sb.writeln("${item.description},${item.quantity},${item.unitPrice},${item.subtotal}"); + } + return sb.toString(); + } + + // JSON変換 (データベース保存用) + Map toJson() { + return { + 'customer': customer.toJson(), + 'date': date.toIso8601String(), + 'items': items.map((item) => item.toJson()).toList(), + 'file_path': filePath, + 'invoice_number': invoiceNumber, + 'notes': notes, + }; + } + + // JSONから復元 (データベース読み込み用) + factory Invoice.fromJson(Map json) { + return Invoice( + customer: Customer.fromJson(json['customer'] as Map), + date: DateTime.parse(json['date'] as String), + items: (json['items'] as List) + .map((i) => InvoiceItem.fromJson(i as Map)) + .toList(), + filePath: json['file_path'] as String?, + invoiceNumber: json['invoice_number'] as String, + notes: json['notes'] as String?, + ); + } +} diff --git a/lib/screens/customer_picker_modal.dart b/lib/screens/customer_picker_modal.dart new file mode 100644 index 0000000..6406102 --- /dev/null +++ b/lib/screens/customer_picker_modal.dart @@ -0,0 +1,427 @@ +// lib/screens/customer_picker_modal.dart +// Version: 1.5.0 (Strict Type Handling: DB vs App Model) +import 'package:flutter/material.dart'; +import 'package:flutter_contacts/flutter_contacts.dart'; +import 'package:geolocator/geolocator.dart'; +import 'package:uuid/uuid.dart'; +import 'package:drift/drift.dart' as drift; +import '../models/app_model.dart' as app_model; // 名前を付けて区別 +import '../data/database.dart' as db; +import '../main.dart'; + +class CustomerPickerModal extends StatefulWidget { + final Function(app_model.Customer) onCustomerSelected; + + const CustomerPickerModal({Key? key, required this.onCustomerSelected}) + : super(key: key); + + @override + State createState() => _CustomerPickerModalState(); +} + +class _CustomerPickerModalState extends State { + String _searchQuery = ""; + List _dbCustomers = []; + List _filteredCustomers = []; + bool _isLoading = true; + bool _isImportingFromContacts = false; + Position? _currentPosition; + + @override + void initState() { + super.initState(); + _refreshData(); + } + + Future _refreshData() async { + if (!mounted) return; + setState(() => _isLoading = true); + try { + _currentPosition = await _determinePosition(); + _dbCustomers = await database.select(database.customers).get(); + _applyFilterAndSort(); + } catch (e) { + debugPrint("Data Fetch Error: $e"); + } finally { + if (mounted) setState(() => _isLoading = false); + } + } + + void _applyFilterAndSort() { + final query = _searchQuery.toLowerCase(); + + // DBの型をアプリ用の型に変換しながらフィルタリング + List list = _dbCustomers + .where((c) { + return c.formalName.toLowerCase().contains(query) || + c.displayName.toLowerCase().contains(query); + }) + .map( + (c) => app_model.Customer( + id: c.id, + displayName: c.displayName, + formalName: c.formalName, + address: c.address ?? "", + department: c.department ?? "", + ), + ) + .toList(); + + // GPS距離でソート + if (_currentPosition != null) { + list.sort((a, b) { + final dbA = _dbCustomers.firstWhere((e) => e.id == a.id); + final dbB = _dbCustomers.firstWhere((e) => e.id == b.id); + if (dbA.latitude == null) return 1; + if (dbB.latitude == null) return -1; + + double distA = Geolocator.distanceBetween( + _currentPosition!.latitude, + _currentPosition!.longitude, + dbA.latitude!, + dbA.longitude!, + ); + double distB = Geolocator.distanceBetween( + _currentPosition!.latitude, + _currentPosition!.longitude, + dbB.latitude!, + dbB.longitude!, + ); + return distA.compareTo(distB); + }); + } + + setState(() { + _filteredCustomers = list; + }); + } + + Future _determinePosition() async { + try { + LocationPermission permission = await Geolocator.checkPermission(); + if (permission == LocationPermission.denied) { + permission = await Geolocator.requestPermission(); + } + if (permission == LocationPermission.always || + permission == LocationPermission.whileInUse) { + return await Geolocator.getCurrentPosition( + desiredAccuracy: LocationAccuracy.low, + ).timeout(const Duration(seconds: 3)); + } + } catch (_) {} + return null; + } + + void _onSearchChanged(String query) { + _searchQuery = query; + _applyFilterAndSort(); + } + + Future _importFromPhoneContacts() async { + setState(() => _isImportingFromContacts = true); + try { + if (await FlutterContacts.requestPermission(readonly: true)) { + final contacts = await FlutterContacts.getContacts(); + if (!mounted) return; + setState(() => _isImportingFromContacts = false); + + final Contact? selectedContact = await showModalBottomSheet( + context: context, + isScrollControlled: true, + builder: (context) => _PhoneContactListSelector(contacts: contacts), + ); + + if (selectedContact != null) { + _showCustomerEditDialog( + displayName: selectedContact.displayName, + initialFormalName: selectedContact.displayName, + ); + } + } + } catch (e) { + setState(() => _isImportingFromContacts = false); + } + } + + void _showCustomerEditDialog({ + required String displayName, + required String initialFormalName, + app_model.Customer? existingCustomer, + }) { + final formalNameController = TextEditingController(text: initialFormalName); + final departmentController = TextEditingController( + text: existingCustomer?.department ?? "", + ); + final addressController = TextEditingController( + text: existingCustomer?.address ?? "", + ); + + showDialog( + context: context, + builder: (context) => AlertDialog( + title: Text(existingCustomer == null ? "顧客の新規登録" : "顧客情報の編集"), + content: SingleChildScrollView( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Text( + "表示名: $displayName", + style: const TextStyle(fontSize: 12, color: Colors.grey), + ), + const SizedBox(height: 16), + TextField( + controller: formalNameController, + decoration: const InputDecoration( + labelText: "請求書用 正式名称", + border: OutlineInputBorder(), + ), + ), + const SizedBox(height: 12), + TextField( + controller: departmentController, + decoration: const InputDecoration( + labelText: "部署名", + border: OutlineInputBorder(), + ), + ), + const SizedBox(height: 12), + TextField( + controller: addressController, + decoration: const InputDecoration( + labelText: "住所", + border: OutlineInputBorder(), + ), + ), + ], + ), + ), + actions: [ + TextButton( + onPressed: () => Navigator.pop(context), + child: const Text("キャンセル"), + ), + ElevatedButton( + onPressed: () async { + final newId = existingCustomer?.id ?? const Uuid().v4(); + await database + .into(database.customers) + .insertOnConflictUpdate( + db.CustomersCompanion.insert( + id: newId, + displayName: displayName, + formalName: formalNameController.text.trim(), + department: drift.Value(departmentController.text.trim()), + address: drift.Value(addressController.text.trim()), + latitude: drift.Value(_currentPosition?.latitude), + longitude: drift.Value(_currentPosition?.longitude), + lastUpdatedAt: drift.Value(DateTime.now()), + ), + ); + if (mounted) { + Navigator.pop(context); + _refreshData(); + } + }, + child: const Text("保存"), + ), + ], + ), + ); + } + + Future _confirmDelete(app_model.Customer customer) async { + final confirm = await showDialog( + context: context, + builder: (context) => AlertDialog( + title: const Text("顧客の削除"), + content: Text("「${customer.formalName}」を削除しますか?"), + actions: [ + TextButton( + onPressed: () => Navigator.pop(context, false), + child: const Text("キャンセル"), + ), + TextButton( + onPressed: () => Navigator.pop(context, true), + child: const Text("削除する", style: TextStyle(color: Colors.red)), + ), + ], + ), + ); + + if (confirm == true) { + await (database.delete( + database.customers, + )..where((t) => t.id.equals(customer.id))).go(); + _refreshData(); + } + } + + @override + Widget build(BuildContext context) { + return Material( + child: Column( + children: [ + Padding( + padding: const EdgeInsets.all(16.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + const Text( + "顧客マスター管理", + style: TextStyle( + fontSize: 20, + fontWeight: FontWeight.bold, + ), + ), + IconButton( + icon: const Icon(Icons.close), + onPressed: () => Navigator.pop(context), + ), + ], + ), + const SizedBox(height: 12), + TextField( + decoration: InputDecoration( + hintText: "検索...", + prefixIcon: const Icon(Icons.search), + border: OutlineInputBorder( + borderRadius: BorderRadius.circular(8), + ), + ), + onChanged: _onSearchChanged, + ), + const SizedBox(height: 12), + SizedBox( + width: double.infinity, + child: ElevatedButton.icon( + onPressed: _isImportingFromContacts + ? null + : _importFromPhoneContacts, + icon: _isImportingFromContacts + ? const SizedBox( + width: 20, + height: 20, + child: CircularProgressIndicator(strokeWidth: 2), + ) + : const Icon(Icons.contact_phone), + label: const Text("電話帳から新規取り込み"), + style: ElevatedButton.styleFrom( + backgroundColor: Colors.blueGrey.shade700, + foregroundColor: Colors.white, + ), + ), + ), + ], + ), + ), + const Divider(), + if (_isLoading) const LinearProgressIndicator(), + Expanded( + child: _filteredCustomers.isEmpty && !_isLoading + ? const Center(child: Text("該当する顧客がいません")) + : ListView.builder( + itemCount: _filteredCustomers.length, + itemBuilder: (context, index) { + final customer = _filteredCustomers[index]; + return ListTile( + leading: const CircleAvatar( + child: Icon(Icons.business), + ), + title: Text(customer.formalName), + subtitle: Text( + customer.address.isEmpty ? "住所未設定" : customer.address, + ), + onTap: () => widget.onCustomerSelected(customer), + trailing: Row( + mainAxisSize: MainAxisSize.min, + children: [ + IconButton( + icon: const Icon( + Icons.edit, + color: Colors.blueGrey, + size: 20, + ), + onPressed: () => _showCustomerEditDialog( + displayName: customer.displayName, + initialFormalName: customer.formalName, + existingCustomer: customer, + ), + ), + IconButton( + icon: const Icon( + Icons.delete_outline, + color: Colors.redAccent, + size: 20, + ), + onPressed: () => _confirmDelete(customer), + ), + ], + ), + ); + }, + ), + ), + ], + ), + ); + } +} + +class _PhoneContactListSelector extends StatefulWidget { + final List contacts; + const _PhoneContactListSelector({required this.contacts}); + @override + State<_PhoneContactListSelector> createState() => + _PhoneContactListSelectorState(); +} + +class _PhoneContactListSelectorState extends State<_PhoneContactListSelector> { + List _filtered = []; + final _controller = TextEditingController(); + @override + void initState() { + super.initState(); + _filtered = widget.contacts; + } + + @override + Widget build(BuildContext context) { + return FractionallySizedBox( + heightFactor: 0.8, + child: Column( + children: [ + Padding( + padding: const EdgeInsets.all(16.0), + child: TextField( + controller: _controller, + decoration: const InputDecoration( + hintText: "電話帳検索...", + prefixIcon: Icon(Icons.search), + ), + onChanged: (q) => setState( + () => _filtered = widget.contacts + .where( + (c) => + c.displayName.toLowerCase().contains(q.toLowerCase()), + ) + .toList(), + ), + ), + ), + Expanded( + child: ListView.builder( + itemCount: _filtered.length, + itemBuilder: (context, index) => ListTile( + title: Text(_filtered[index].displayName), + onTap: () => Navigator.pop(context, _filtered[index]), + ), + ), + ), + ], + ), + ); + } +} diff --git a/lib/screens/invoice_detail_page.dart b/lib/screens/invoice_detail_page.dart new file mode 100644 index 0000000..db6b99c --- /dev/null +++ b/lib/screens/invoice_detail_page.dart @@ -0,0 +1,240 @@ +// lib/screens/invoice_detail_page.dart +// version: 1.2.2 (Fix: Resolved Class name conflict strictly) +import 'dart:io'; +import 'package:flutter/material.dart'; +import 'package:intl/intl.dart'; +import 'package:share_plus/share_plus.dart'; +import 'package:open_filex/open_filex.dart'; +import 'package:printing/printing.dart'; +import 'package:drift/drift.dart' as drift; +import '../models/invoice_models.dart'; // 本来の Invoice, InvoiceItem を使用 +import '../services/pdf_generator.dart'; +import '../data/database.dart' as db; // エイリアスを db に固定 +import '../main.dart'; +import 'product_picker_modal.dart'; + +class InvoiceDetailPage extends StatefulWidget { + final Invoice invoice; + const InvoiceDetailPage({Key? key, required this.invoice}) : super(key: key); + + @override + State createState() => _InvoiceDetailPageState(); +} + +class _InvoiceDetailPageState extends State { + late TextEditingController _formalNameController; + late TextEditingController _notesController; + late List _items; + late bool _isEditing; + late Invoice _currentInvoice; + String? _currentFilePath; + + @override + void initState() { + super.initState(); + _currentInvoice = widget.invoice; + _currentFilePath = widget.invoice.filePath; + _formalNameController = TextEditingController(text: _currentInvoice.customer.formalName); + _notesController = TextEditingController(text: _currentInvoice.notes ?? ""); + _items = List.from(_currentInvoice.items); + _isEditing = false; + } + + @override + void dispose() { + _formalNameController.dispose(); + _notesController.dispose(); + super.dispose(); + } + + void _addItem() => setState(() => _items.add(InvoiceItem(description: "新項目", quantity: 1, unitPrice: 0))); + void _removeItem(int index) => setState(() => _items.removeAt(index)); + + void _pickFromMaster() { + showModalBottomSheet( + context: context, + isScrollControlled: true, + backgroundColor: Colors.transparent, + builder: (context) => FractionallySizedBox( + heightFactor: 0.9, + child: ProductPickerModal( + onItemSelected: (item) { + setState(() => _items.add(item)); + Navigator.pop(context); + }, + ), + ), + ); + } + + Future _saveChanges() async { + final String formalName = _formalNameController.text.trim(); + if (formalName.isEmpty) return; + + final updatedCustomer = _currentInvoice.customer.copyWith(formalName: formalName); + final updatedInvoice = _currentInvoice.copyWith( + customer: updatedCustomer, + items: _items, + notes: _notesController.text, + ); + + setState(() => _isEditing = false); + + try { + final File pdfFile = await PdfGenerator.generateInvoicePdf(updatedInvoice); + final String newPath = pdfFile.path; + + // DB側のクラスにはすべて `db.` を付ける + await database.into(database.customers).insertOnConflictUpdate( + db.CustomersCompanion.insert( + id: updatedCustomer.id, + displayName: updatedCustomer.displayName, + formalName: updatedCustomer.formalName, + address: drift.Value(updatedCustomer.address), + department: drift.Value(updatedCustomer.department), + lastUpdatedAt: drift.Value(DateTime.now()), + ), + ); + + final invoiceCompanion = db.InvoicesCompanion.insert( + id: updatedInvoice.invoiceNumber, + customerId: updatedCustomer.id, + date: updatedInvoice.date, + type: "請求", + filePath: drift.Value(newPath), + notes: drift.Value(updatedInvoice.notes), + totalAmount: updatedInvoice.totalAmount, + ); + + // item の型を InvoiceItem と明示して getter エラーを回避 + final List itemCompanions = _items.map((InvoiceItem item) => db.InvoiceItemsCompanion.insert( + invoiceId: updatedInvoice.invoiceNumber, + description: item.description, + quantity: item.quantity, + unitPrice: item.unitPrice, + )).toList(); + + await database.saveFullInvoice(invoiceCompanion, itemCompanions); + + setState(() { + _currentInvoice = updatedInvoice.copyWith(filePath: newPath); + _currentFilePath = newPath; + }); + + ScaffoldMessenger.of(context).showSnackBar(const SnackBar(content: Text('保存完了'))); + await Printing.layoutPdf(onLayout: (format) async => pdfFile.readAsBytesSync(), name: newPath.split('/').last); + } catch (e) { + ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text('エラー: $e'), backgroundColor: Colors.red)); + } + } + + @override + Widget build(BuildContext context) { + final amountFormatter = NumberFormat("#,###"); + return Scaffold( + appBar: AppBar( + title: const Text("請求書詳細"), + backgroundColor: Colors.blueGrey, + foregroundColor: Colors.white, + actions: [ + if (!_isEditing) + IconButton(icon: const Icon(Icons.edit), onPressed: () => setState(() => _isEditing = true)) + else ...[ + IconButton(icon: const Icon(Icons.save), onPressed: _saveChanges), + IconButton(icon: const Icon(Icons.cancel), onPressed: () => setState(() => _isEditing = false)), + ] + ], + ), + body: SingleChildScrollView( + padding: const EdgeInsets.all(16.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + _buildHeaderSection(), + const Divider(height: 32), + _buildItemTable(amountFormatter), + if (_isEditing) _buildEditButtons(), + const SizedBox(height: 24), + _buildSummarySection(amountFormatter), + const SizedBox(height: 24), + _buildFooterActions(), + ], + ), + ), + ); + } + + Widget _buildHeaderSection() { + final dateFormatter = DateFormat('yyyy年MM月dd日'); + if (_isEditing) { + return Column( + children: [ + TextField(controller: _formalNameController, decoration: const InputDecoration(labelText: "取引先 正式名称")), + const SizedBox(height: 12), + TextField(controller: _notesController, maxLines: 2, decoration: const InputDecoration(labelText: "備考")), + ], + ); + } + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text("${_currentInvoice.customer.formalName} 御中", style: const TextStyle(fontSize: 20, fontWeight: FontWeight.bold)), + Text("請求番号: ${_currentInvoice.invoiceNumber}"), + Text("発行日: ${dateFormatter.format(_currentInvoice.date)}"), + ], + ); + } + + Widget _buildItemTable(NumberFormat formatter) { + return Table( + border: TableBorder.all(color: Colors.grey.shade300), + columnWidths: const {0: FlexColumnWidth(4), 1: FixedColumnWidth(50), 2: FixedColumnWidth(80), 3: FlexColumnWidth(2), 4: FixedColumnWidth(40)}, + children: [ + TableRow(decoration: BoxDecoration(color: Colors.grey.shade100), children: const [_TableCell("品名"), _TableCell("数量"), _TableCell("単価"), _TableCell("金額"), _TableCell("")]), + ..._items.asMap().entries.map((entry) { + int idx = entry.key; + InvoiceItem item = entry.value; + if (_isEditing) { + return TableRow(children: [ + _EditableCell(initialValue: item.description, onChanged: (val) => item.description = val), + _EditableCell(initialValue: item.quantity.toString(), keyboardType: TextInputType.number, onChanged: (val) => setState(() => item.quantity = int.tryParse(val) ?? 0)), + _EditableCell(initialValue: item.unitPrice.toString(), keyboardType: TextInputType.number, onChanged: (val) => setState(() => item.unitPrice = int.tryParse(val) ?? 0)), + _TableCell(formatter.format(item.subtotal)), + IconButton(icon: const Icon(Icons.delete, color: Colors.red, size: 20), onPressed: () => _removeItem(idx)), + ]); + } + return TableRow(children: [_TableCell(item.description), _TableCell(item.quantity.toString()), _TableCell(formatter.format(item.unitPrice)), _TableCell(formatter.format(item.subtotal)), const SizedBox()]); + }), + ], + ); + } + + Widget _buildEditButtons() => Row(children: [ElevatedButton(onPressed: _addItem, child: const Text("行追加")), const SizedBox(width: 8), ElevatedButton(onPressed: _pickFromMaster, child: const Text("マスター"))]); + + Widget _buildSummarySection(NumberFormat formatter) { + // 確実に int で計算 + int subtotal = _items.fold(0, (int sum, InvoiceItem item) => sum + (item.quantity * item.unitPrice)); + return Align( + alignment: Alignment.centerRight, + child: Column(children: [Text("合計: ¥${formatter.format((subtotal * 1.1).floor())}", style: const TextStyle(fontSize: 18, fontWeight: FontWeight.bold))]), + ); + } + + Widget _buildFooterActions() => (_isEditing || _currentFilePath == null) ? const SizedBox() : Row(children: [Expanded(child: ElevatedButton(onPressed: () => OpenFilex.open(_currentFilePath!), child: const Text("開く"))), const SizedBox(width: 12), Expanded(child: ElevatedButton(onPressed: () => Share.shareXFiles([XFile(_currentFilePath!)]), child: const Text("共有")))]); +} + +class _TableCell extends StatelessWidget { + final String text; + const _TableCell(this.text); + @override + Widget build(BuildContext context) => Padding(padding: const EdgeInsets.all(8.0), child: Text(text, textAlign: TextAlign.right, style: const TextStyle(fontSize: 12))); +} + +class _EditableCell extends StatelessWidget { + final String initialValue; + final TextInputType keyboardType; + final Function(String) onChanged; + const _EditableCell({required this.initialValue, this.keyboardType = TextInputType.text, required this.onChanged}); + @override + Widget build(BuildContext context) => Padding(padding: const EdgeInsets.symmetric(horizontal: 4), child: TextField(controller: TextEditingController(text: initialValue), keyboardType: keyboardType, style: const TextStyle(fontSize: 12), onChanged: onChanged)); +} \ No newline at end of file diff --git a/lib/screens/invoice_input_screen.dart b/lib/screens/invoice_input_screen.dart new file mode 100644 index 0000000..9c4b4b3 --- /dev/null +++ b/lib/screens/invoice_input_screen.dart @@ -0,0 +1,205 @@ +import 'package:flutter/material.dart'; +import 'package:uuid/uuid.dart'; +import '../models/customer_model.dart'; +import '../models/invoice_models.dart'; +import '../services/pdf_generator.dart'; +import '../services/invoice_repository.dart'; +import 'customer_picker_modal.dart'; + +/// 請求書の初期入力(ヘッダー部分)を管理するウィジェット +class InvoiceInputForm extends StatefulWidget { + final Function(Invoice invoice, String filePath) onInvoiceGenerated; + + const InvoiceInputForm({Key? key, required this.onInvoiceGenerated}) + : super(key: key); + + @override + State createState() => _InvoiceInputFormState(); +} + +class _InvoiceInputFormState extends State { + final _clientController = TextEditingController(); + final _amountController = TextEditingController(text: "250000"); + final _repository = InvoiceRepository(); + String _status = "取引先を選択してPDFを生成してください"; + + List _customerBuffer = []; + Customer? _selectedCustomer; + + @override + void initState() { + super.initState(); + _selectedCustomer = Customer( + id: const Uuid().v4(), + displayName: "佐々木製作所", + formalName: "株式会社 佐々木製作所", + ); + _customerBuffer.add(_selectedCustomer!); + _clientController.text = _selectedCustomer!.formalName; + + // 起動時に不要なPDFを掃除する + _repository.cleanupOrphanedPdfs().then((count) { + if (count > 0) { + debugPrint('Cleaned up $count orphaned PDF files.'); + } + }); + } + + @override + void dispose() { + _clientController.dispose(); + _amountController.dispose(); + super.dispose(); + } + + Future _openCustomerPicker() async { + setState(() => _status = "顧客マスターを開いています..."); + + await showModalBottomSheet( + context: context, + isScrollControlled: true, + backgroundColor: Colors.transparent, + builder: (context) => FractionallySizedBox( + heightFactor: 0.9, + child: CustomerPickerModal( + onCustomerSelected: (customer) { + setState(() { + bool exists = _customerBuffer.any((c) => c.id == customer.id); + if (!exists) { + _customerBuffer.add(customer); + } + + _selectedCustomer = customer; + _clientController.text = customer.formalName; + _status = "「${customer.formalName}」を選択しました"; + }); + Navigator.pop(context); + }, + ), + ), + ); + } + + Future _handleInitialGenerate() async { + if (_selectedCustomer == null) { + setState(() => _status = "取引先を選択してください"); + return; + } + + final unitPrice = int.tryParse(_amountController.text) ?? 0; + + final initialItems = [ + InvoiceItem(description: "ご請求分", quantity: 1, unitPrice: unitPrice), + ]; + + final invoice = Invoice( + customer: _selectedCustomer!, + date: DateTime.now(), + items: initialItems, + ); + + setState(() => _status = "A4請求書を生成中..."); + final path = await PdfGenerator.generateInvoicePdf(invoice); + + if (path != null) { + final updatedInvoice = invoice.copyWith(filePath: path.path); + + // オリジナルDBに保存 + await _repository.saveInvoice(updatedInvoice); + + widget.onInvoiceGenerated(updatedInvoice, path.path); + setState(() => _status = "PDFを生成しDBに登録しました。"); + } else { + setState(() => _status = "PDFの生成に失敗しました"); + } + } + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.all(16.0), + child: SingleChildScrollView( + child: Column( + children: [ + const Text( + "ステップ1: 宛先と基本金額の設定", + style: TextStyle( + fontWeight: FontWeight.bold, + color: Colors.blueGrey, + ), + ), + const SizedBox(height: 16), + Row( + children: [ + Expanded( + child: TextField( + controller: _clientController, + readOnly: true, + onTap: _openCustomerPicker, + decoration: const InputDecoration( + labelText: "取引先名 (タップして選択)", + hintText: "電話帳から取り込むか、マスターから選択", + prefixIcon: Icon(Icons.business), + border: OutlineInputBorder(), + ), + ), + ), + const SizedBox(width: 8), + IconButton( + icon: const Icon( + Icons.person_add_alt_1, + color: Colors.indigo, + size: 40, + ), + onPressed: _openCustomerPicker, + tooltip: "顧客を選択・登録", + ), + ], + ), + const SizedBox(height: 16), + TextField( + controller: _amountController, + keyboardType: TextInputType.number, + decoration: const InputDecoration( + labelText: "基本金額 (税抜)", + hintText: "明細の1行目として登録されます", + prefixIcon: Icon(Icons.currency_yen), + border: OutlineInputBorder(), + ), + ), + const SizedBox(height: 24), + ElevatedButton.icon( + onPressed: _handleInitialGenerate, + icon: const Icon(Icons.description), + label: const Text("A4請求書を作成して詳細編集へ"), + style: ElevatedButton.styleFrom( + minimumSize: const Size(double.infinity, 60), + backgroundColor: Colors.indigo, + foregroundColor: Colors.white, + elevation: 4, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(12), + ), + ), + ), + const SizedBox(height: 24), + Container( + width: double.infinity, + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: Colors.grey[100], + borderRadius: BorderRadius.circular(8), + border: Border.all(color: Colors.grey.shade300), + ), + child: Text( + _status, + style: const TextStyle(fontSize: 12, color: Colors.black54), + textAlign: TextAlign.center, + ), + ), + ], + ), + ), + ); + } +} diff --git a/lib/screens/pdf_list_screen.dart b/lib/screens/pdf_list_screen.dart new file mode 100644 index 0000000..b5f0ce3 --- /dev/null +++ b/lib/screens/pdf_list_screen.dart @@ -0,0 +1,168 @@ +// lib/screens/pdf_list_screen.dart +// Version: 1.2.0 (DB Integration: List Invoices from SQLite) +import 'package:flutter/material.dart'; +import 'package:intl/intl.dart'; +import '../data/database.dart' as db; +import '../main.dart'; +import '../models/invoice_models.dart'; +import '../models/app_model.dart' as app_model; +import 'invoice_detail_page.dart'; + +class PdfListScreen extends StatefulWidget { + const PdfListScreen({Key? key}) : super(key: key); + + @override + State createState() => _PdfListScreenState(); +} + +class _PdfListScreenState extends State { + late Stream> _invoiceStream; + + @override + void initState() { + super.initState(); + // データベースから「顧客情報付きの請求書一覧」をストリームで取得 + // これにより、保存した瞬間に一覧が自動更新されます + _invoiceStream = database.watchAllInvoices(); + } + + @override + Widget build(BuildContext context) { + final currencyFormat = NumberFormat("#,###"); + final dateFormat = DateFormat('yyyy/MM/dd'); + + return Scaffold( + appBar: AppBar( + title: const Text("請求書 履歴一覧"), + backgroundColor: Colors.blueGrey, + foregroundColor: Colors.white, + ), + body: StreamBuilder>( + stream: _invoiceStream, + builder: (context, snapshot) { + if (snapshot.connectionState == ConnectionState.waiting) { + return const Center(child: CircularProgressIndicator()); + } + + if (snapshot.hasError) { + return Center(child: Text("エラーが発生しました: ${snapshot.error}")); + } + + final invoices = snapshot.data ?? []; + + if (invoices.isEmpty) { + return const Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Icon( + Icons.description_outlined, + size: 64, + color: Colors.grey, + ), + SizedBox(height: 16), + Text( + "保存された請求書はまだありません。", + style: TextStyle(color: Colors.grey), + ), + ], + ), + ); + } + + return ListView.separated( + itemCount: invoices.length, + separatorBuilder: (context, index) => const Divider(height: 1), + itemBuilder: (context, index) { + final item = invoices[index]; + final invoice = item.invoice; + final customer = item.customer; + + return ListTile( + leading: CircleAvatar( + backgroundColor: Colors.blueGrey.shade100, + child: const Icon( + Icons.picture_as_pdf, + color: Colors.blueGrey, + ), + ), + title: Text( + customer.formalName, + style: const TextStyle(fontWeight: FontWeight.bold), + ), + subtitle: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + "No: ${invoice.id} | ${dateFormat.format(invoice.date)}", + ), + if (invoice.notes != null && invoice.notes!.isNotEmpty) + Text( + invoice.notes!, + maxLines: 1, + overflow: TextOverflow.ellipsis, + style: const TextStyle(fontSize: 12), + ), + ], + ), + trailing: Text( + "¥${currencyFormat.format(invoice.totalAmount)}", + style: const TextStyle( + color: Colors.blueGrey, + fontWeight: FontWeight.bold, + fontSize: 16, + ), + ), + onTap: () { + // タップ時に Invoice モデルを再構築して詳細画面へ + _navigateToDetail(item); + }, + ); + }, + ); + }, + ), + ); + } + + /// 詳細画面へ遷移する(DBモデルからアプリ内モデルに変換) + void _navigateToDetail(db.InvoiceWithCustomer data) async { + // 明細項目をDBから取得 + final items = await (database.select( + database.invoiceItems, + )..where((t) => t.invoiceId.equals(data.invoice.id))).get(); + + final mappedItems = items + .map( + (i) => InvoiceItem( + description: i.description, + quantity: i.quantity, + unitPrice: i.unitPrice, + ), + ) + .toList(); + + final invoiceModel = Invoice( + invoiceNumber: data.invoice.id, + customer: app_model.Customer( + id: data.customer.id, + displayName: data.customer.displayName, + formalName: data.customer.formalName, + address: data.customer.address ?? "", + department: data.customer.department ?? "", + ), + items: mappedItems, + date: data.invoice.date, + notes: data.invoice.notes, + filePath: data.invoice.filePath, + ); + + if (!mounted) return; + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => InvoiceDetailPage(invoice: invoiceModel), + ), + ); + } +} diff --git a/lib/screens/product_picker_modal.dart b/lib/screens/product_picker_modal.dart new file mode 100644 index 0000000..19f4c63 --- /dev/null +++ b/lib/screens/product_picker_modal.dart @@ -0,0 +1,255 @@ +import 'package:flutter/material.dart'; +import 'package:uuid/uuid.dart'; +import '../data/product_master.dart'; +import '../models/invoice_models.dart'; + +/// 商品マスターの選択・登録・編集・削除を行うモーダル +class ProductPickerModal extends StatefulWidget { + final Function(InvoiceItem) onItemSelected; + + const ProductPickerModal({ + Key? key, + required this.onItemSelected, + }) : super(key: key); + + @override + State createState() => _ProductPickerModalState(); +} + +class _ProductPickerModalState extends State { + String _searchQuery = ""; + List _masterProducts = []; + List _filteredProducts = []; + String _selectedCategory = "すべて"; + + @override + void initState() { + super.initState(); + // 本来は永続化層から取得するが、現在はProductMasterの初期データを使用 + _masterProducts = List.from(ProductMaster.products); + _filterProducts(); + } + + void _filterProducts() { + setState(() { + _filteredProducts = _masterProducts.where((product) { + final matchesQuery = product.name.toLowerCase().contains(_searchQuery.toLowerCase()) || + product.id.toLowerCase().contains(_searchQuery.toLowerCase()); + final matchesCategory = _selectedCategory == "すべて" || (product.category == _selectedCategory); + return matchesQuery && matchesCategory; + }).toList(); + }); + } + + /// 商品の編集・新規登録用ダイアログ + void _showProductEditDialog({Product? existingProduct}) { + final idController = TextEditingController(text: existingProduct?.id ?? ""); + final nameController = TextEditingController(text: existingProduct?.name ?? ""); + final priceController = TextEditingController(text: existingProduct?.defaultUnitPrice.toString() ?? ""); + final categoryController = TextEditingController(text: existingProduct?.category ?? ""); + + showDialog( + context: context, + builder: (context) => AlertDialog( + title: Text(existingProduct == null ? "新規商品の登録" : "商品情報の編集"), + content: SingleChildScrollView( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + if (existingProduct == null) + TextField( + controller: idController, + decoration: const InputDecoration(labelText: "商品コード (例: S001)", border: OutlineInputBorder()), + ), + const SizedBox(height: 12), + TextField( + controller: nameController, + decoration: const InputDecoration(labelText: "商品名", border: OutlineInputBorder()), + ), + const SizedBox(height: 12), + TextField( + controller: priceController, + keyboardType: TextInputType.number, + decoration: const InputDecoration(labelText: "標準単価", border: OutlineInputBorder()), + ), + const SizedBox(height: 12), + TextField( + controller: categoryController, + decoration: const InputDecoration(labelText: "カテゴリ (任意)", border: OutlineInputBorder()), + ), + ], + ), + ), + actions: [ + TextButton(onPressed: () => Navigator.pop(context), child: const Text("キャンセル")), + ElevatedButton( + onPressed: () { + final String name = nameController.text.trim(); + final int price = int.tryParse(priceController.text) ?? 0; + if (name.isEmpty) return; + + setState(() { + if (existingProduct != null) { + // 更新 + final index = _masterProducts.indexWhere((p) => p.id == existingProduct.id); + if (index != -1) { + _masterProducts[index] = existingProduct.copyWith( + name: name, + defaultUnitPrice: price, + category: categoryController.text.trim(), + ); + } + } else { + // 新規追加 + _masterProducts.add(Product( + id: idController.text.isEmpty ? const Uuid().v4().substring(0, 8) : idController.text, + name: name, + defaultUnitPrice: price, + category: categoryController.text.trim(), + )); + } + _filterProducts(); + }); + Navigator.pop(context); + }, + child: const Text("保存"), + ), + ], + ), + ); + } + + /// 削除確認 + void _confirmDelete(Product product) { + showDialog( + context: context, + builder: (context) => AlertDialog( + title: const Text("商品の削除"), + content: Text("「${product.name}」をマスターから削除しますか?"), + actions: [ + TextButton(onPressed: () => Navigator.pop(context), child: const Text("キャンセル")), + TextButton( + onPressed: () { + setState(() { + _masterProducts.removeWhere((p) => p.id == product.id); + _filterProducts(); + }); + Navigator.pop(context); + }, + child: const Text("削除する", style: TextStyle(color: Colors.red)), + ), + ], + ), + ); + } + + @override + Widget build(BuildContext context) { + // マスター内のカテゴリを動的に取得 + final dynamicCategories = ["すべて", ..._masterProducts.map((p) => p.category ?? 'その他').toSet().toList()]; + + return Material( + color: Colors.white, + child: Column( + children: [ + Padding( + padding: const EdgeInsets.all(16.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + const Text("商品マスター管理", style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold)), + IconButton(icon: const Icon(Icons.close), onPressed: () => Navigator.pop(context)), + ], + ), + const SizedBox(height: 12), + TextField( + decoration: InputDecoration( + hintText: "商品名やコードで検索...", + prefixIcon: const Icon(Icons.search), + border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)), + filled: true, + fillColor: Colors.grey.shade50, + ), + onChanged: (val) { + _searchQuery = val; + _filterProducts(); + }, + ), + const SizedBox(height: 12), + Row( + children: [ + Expanded( + child: SingleChildScrollView( + scrollDirection: Axis.horizontal, + child: Row( + children: dynamicCategories.map((cat) { + final isSelected = _selectedCategory == cat; + return Padding( + padding: const EdgeInsets.only(right: 8.0), + child: ChoiceChip( + label: Text(cat), + selected: isSelected, + onSelected: (s) { + if (s) { + setState(() { + _selectedCategory = cat; + _filterProducts(); + }); + } + }, + ), + ); + }).toList(), + ), + ), + ), + const SizedBox(width: 8), + IconButton.filled( + onPressed: () => _showProductEditDialog(), + icon: const Icon(Icons.add), + tooltip: "新規商品を追加", + ), + ], + ), + ], + ), + ), + const Divider(height: 1), + Expanded( + child: _filteredProducts.isEmpty + ? const Center(child: Text("該当する商品がありません")) + : ListView.separated( + itemCount: _filteredProducts.length, + separatorBuilder: (context, index) => const Divider(height: 1), + itemBuilder: (context, index) { + final product = _filteredProducts[index]; + return ListTile( + leading: const Icon(Icons.inventory_2, color: Colors.blueGrey), + title: Text(product.name, style: const TextStyle(fontWeight: FontWeight.bold)), + subtitle: Text("${product.id} | ¥${product.defaultUnitPrice}"), + onTap: () => widget.onItemSelected(product.toInvoiceItem()), + trailing: Row( + mainAxisSize: MainAxisSize.min, + children: [ + IconButton( + icon: const Icon(Icons.edit_outlined, size: 20, color: Colors.blueGrey), + onPressed: () => _showProductEditDialog(existingProduct: product), + ), + IconButton( + icon: const Icon(Icons.delete_outline, size: 20, color: Colors.redAccent), + onPressed: () => _confirmDelete(product), + ), + ], + ), + ); + }, + ), + ), + ], + ), + ); + } +} diff --git a/lib/services/invoice_repository.dart b/lib/services/invoice_repository.dart new file mode 100644 index 0000000..46b6c07 --- /dev/null +++ b/lib/services/invoice_repository.dart @@ -0,0 +1,107 @@ +import 'dart:convert'; +import 'dart:io'; +import 'package:path_provider/path_provider.dart'; +import '../models/invoice_models.dart'; + +/// 請求書のオリジナルデータを管理するリポジトリ(簡易DB) +/// PDFファイルとデータの整合性を保つための機能を提供します +class InvoiceRepository { + static const String _dbFileName = 'invoices_db.json'; + + /// データベースファイルのパスを取得 + Future _getDbFile() async { + final directory = await getApplicationDocumentsDirectory(); + return File('${directory.path}/$_dbFileName'); + } + + /// 全ての請求書データを読み込む + Future> getAllInvoices() async { + try { + final file = await _getDbFile(); + if (!await file.exists()) return []; + + final String content = await file.readAsString(); + final List jsonList = json.decode(content); + + return jsonList.map((json) => Invoice.fromJson(json)).toList() + ..sort((a, b) => b.date.compareTo(a.date)); // 新しい順にソート + } catch (e) { + print('DB Loading Error: $e'); + return []; + } + } + + /// 請求書データを保存・更新する + Future saveInvoice(Invoice invoice) async { + final List all = await getAllInvoices(); + + // 同じ請求番号があれば差し替え、なければ追加 + final index = all.indexWhere((i) => i.invoiceNumber == invoice.invoiceNumber); + if (index != -1) { + // 古いファイルが存在し、かつ新しいパスと異なる場合は古いファイルを削除(無駄なPDFの掃除) + final oldPath = all[index].filePath; + if (oldPath != null && oldPath != invoice.filePath) { + await _deletePhysicalFile(oldPath); + } + all[index] = invoice; + } else { + all.add(invoice); + } + + final file = await _getDbFile(); + await file.writeAsString(json.encode(all.map((i) => i.toJson()).toList())); + } + + /// 請求書データを削除する + Future deleteInvoice(Invoice invoice) async { + final List all = await getAllInvoices(); + all.removeWhere((i) => i.invoiceNumber == invoice.invoiceNumber); + + // 物理ファイルも削除 + if (invoice.filePath != null) { + await _deletePhysicalFile(invoice.filePath!); + } + + final file = await _getDbFile(); + await file.writeAsString(json.encode(all.map((i) => i.toJson()).toList())); + } + + /// 実際のPDFファイルをストレージから削除する + Future _deletePhysicalFile(String path) async { + try { + final file = File(path); + if (await file.exists()) { + await file.delete(); + print('Physical file deleted: $path'); + } + } catch (e) { + print('File Deletion Error: $path, $e'); + } + } + + /// DBに登録されていない「浮いたPDFファイル」をスキャンして掃除する + Future cleanupOrphanedPdfs() async { + final List all = await getAllInvoices(); + final Set registeredPaths = all + .where((i) => i.filePath != null) + .map((i) => i.filePath!) + .toSet(); + + final directory = await getExternalStorageDirectory(); + if (directory == null) return 0; + + int deletedCount = 0; + final List files = directory.listSync(); + + for (var entity in files) { + if (entity is File && entity.path.endsWith('.pdf')) { + // DBに登録されていないPDFは削除(無駄なゴミ) + if (!registeredPaths.contains(entity.path)) { + await entity.delete(); + deletedCount++; + } + } + } + return deletedCount; + } +} diff --git a/lib/services/pdf_generator.dart b/lib/services/pdf_generator.dart new file mode 100644 index 0000000..4766455 --- /dev/null +++ b/lib/services/pdf_generator.dart @@ -0,0 +1,99 @@ +// lib/services/pdf_generator.dart +// Version: 1.0.1 +// Updated: 2026-02-08 +// Description: 日本語対応PDF生成および命名規則に基づいたファイル保存 + +import 'dart:io'; +import 'dart:convert'; +import 'package:flutter/services.dart'; +import 'package:intl/intl.dart'; +import 'package:pdf/pdf.dart'; +import 'package:pdf/widgets.dart' as pw; +import 'package:path_provider/path_provider.dart'; +import 'package:crypto/crypto.dart'; +import '../models/invoice_models.dart'; + +class PdfGenerator { + /// 請求書PDFを生成し、一意のファイル名で保存する + static Future generateInvoicePdf(Invoice invoice) async { + final pdf = pw.Document(); + + // 1. フォントの読み込み + final fontData = await rootBundle.load("assets/fonts/ipaexg.ttf"); + final ttf = pw.Font.ttf(fontData); + + // 2. PDFコンテンツの構築 + pdf.addPage( + pw.MultiPage( + theme: pw.ThemeData.withFont(base: ttf), + build: (pw.Context context) { + return [ + pw.Header( + level: 0, + child: pw.Text("請求書", style: pw.TextStyle(fontSize: 24)), + ), + pw.SizedBox(height: 20), + pw.Text("請求先: ${invoice.customer.formalName} 御中"), + pw.Text("請求番号: ${invoice.invoiceNumber}"), + pw.Text("日付: ${DateFormat('yyyy/MM/dd').format(invoice.date)}"), + pw.Divider(), + pw.Table.fromTextArray( + headers: ['内容', '数量', '単価', '金額'], + data: invoice.items.map((item) { + return [ + item.description, + item.quantity.toString(), + "¥${item.unitPrice}", + "¥${item.subtotal}", + ]; + }).toList(), + ), + pw.SizedBox(height: 20), + pw.Container( + alignment: pw.Alignment.centerRight, + child: pw.Column( + crossAxisAlignment: pw.CrossAxisAlignment.end, + children: [ + pw.Text("小計: ¥${invoice.subtotal}"), + pw.Text("消費税: ¥${invoice.tax}"), + pw.Text("合計金額: ¥${invoice.totalAmount}", + style: pw.TextStyle(fontWeight: pw.FontWeight.bold)), + ], + ), + ), + if (invoice.notes != null) ...[ + pw.SizedBox(height: 20), + pw.Text("備考:"), + pw.Text(invoice.notes!), + ], + ]; + }, + ), + ); + + // 3. 命名規則に基づくファイル名の生成 + // 規則: [日付]_[依頼種別]_[顧客名]_[タイトル]_[金額]_[SHA256ハッシュ].pdf + final dateStr = DateFormat('yyyyMMdd').format(invoice.date); + + // モデルにない項目は安全な代替値を使用 + const typeStr = "請求書"; // 固定またはInvoiceにプロパティ追加検討 + final customerStr = invoice.customer.formalName.replaceAll(RegExp(r'[\\/:*?"<>|]'), ''); + final titleStr = (invoice.notes != null && invoice.notes!.length > 10) + ? invoice.notes!.substring(0, 10) + : (invoice.items.isNotEmpty ? invoice.items.first.description : "名称未設定"); + final amountStr = invoice.totalAmount.toString(); + + // SHA256ハッシュの生成 + final rawData = "$dateStr$customerStr$amountStr${invoice.invoiceNumber}"; + final hash = sha256.convert(utf8.encode(rawData)).toString().substring(0, 8); + + final fileName = "${dateStr}_${typeStr}_${customerStr}_${titleStr}_${amountStr}_$hash.pdf"; + + // 4. 保存 + final directory = await getApplicationDocumentsDirectory(); + final file = File("${directory.path}/$fileName"); + await file.writeAsBytes(await pdf.save()); + + return file; + } +} \ No newline at end of file diff --git a/linux/.gitignore b/linux/.gitignore new file mode 100644 index 0000000..d3896c9 --- /dev/null +++ b/linux/.gitignore @@ -0,0 +1 @@ +flutter/ephemeral diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt new file mode 100644 index 0000000..043f06d --- /dev/null +++ b/linux/CMakeLists.txt @@ -0,0 +1,128 @@ +# Project-level configuration. +cmake_minimum_required(VERSION 3.13) +project(runner LANGUAGES CXX) + +# The name of the executable created for the application. Change this to change +# the on-disk name of your application. +set(BINARY_NAME "gemi_invoice") +# The unique GTK application identifier for this application. See: +# https://wiki.gnome.org/HowDoI/ChooseApplicationID +set(APPLICATION_ID "com.example.gemi_invoice") + +# Explicitly opt in to modern CMake behaviors to avoid warnings with recent +# versions of CMake. +cmake_policy(SET CMP0063 NEW) + +# Load bundled libraries from the lib/ directory relative to the binary. +set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") + +# Root filesystem for cross-building. +if(FLUTTER_TARGET_PLATFORM_SYSROOT) + set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT}) + set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT}) + set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) + set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) + set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +endif() + +# Define build configuration options. +if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Debug" CACHE + STRING "Flutter build mode" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + "Debug" "Profile" "Release") +endif() + +# Compilation settings that should be applied to most targets. +# +# Be cautious about adding new options here, as plugins use this function by +# default. In most cases, you should add new options to specific targets instead +# of modifying this function. +function(APPLY_STANDARD_SETTINGS TARGET) + target_compile_features(${TARGET} PUBLIC cxx_std_14) + target_compile_options(${TARGET} PRIVATE -Wall -Werror) + target_compile_options(${TARGET} PRIVATE "$<$>:-O3>") + target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>") +endfunction() + +# Flutter library and tool build rules. +set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") +add_subdirectory(${FLUTTER_MANAGED_DIR}) + +# System-level dependencies. +find_package(PkgConfig REQUIRED) +pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) + +# Application build; see runner/CMakeLists.txt. +add_subdirectory("runner") + +# Run the Flutter tool portions of the build. This must not be removed. +add_dependencies(${BINARY_NAME} flutter_assemble) + +# Only the install-generated bundle's copy of the executable will launch +# correctly, since the resources must in the right relative locations. To avoid +# people trying to run the unbundled copy, put it in a subdirectory instead of +# the default top-level location. +set_target_properties(${BINARY_NAME} + PROPERTIES + RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run" +) + + +# Generated plugin build rules, which manage building the plugins and adding +# them to the application. +include(flutter/generated_plugins.cmake) + + +# === Installation === +# By default, "installing" just makes a relocatable bundle in the build +# directory. +set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle") +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) +endif() + +# Start with a clean build bundle directory every time. +install(CODE " + file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\") + " COMPONENT Runtime) + +set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") +set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib") + +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES}) + install(FILES "${bundled_library}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endforeach(bundled_library) + +# Copy the native assets provided by the build.dart from all packages. +set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/linux/") +install(DIRECTORY "${NATIVE_ASSETS_DIR}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +# Fully re-copy the assets directory on each build to avoid having stale files +# from a previous install. +set(FLUTTER_ASSET_DIR_NAME "flutter_assets") +install(CODE " + file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") + " COMPONENT Runtime) +install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) + +# Install the AOT library on non-Debug builds only. +if(NOT CMAKE_BUILD_TYPE MATCHES "Debug") + install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endif() diff --git a/linux/flutter/CMakeLists.txt b/linux/flutter/CMakeLists.txt new file mode 100644 index 0000000..d5bd016 --- /dev/null +++ b/linux/flutter/CMakeLists.txt @@ -0,0 +1,88 @@ +# This file controls Flutter-level build steps. It should not be edited. +cmake_minimum_required(VERSION 3.10) + +set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") + +# Configuration provided via flutter tool. +include(${EPHEMERAL_DIR}/generated_config.cmake) + +# TODO: Move the rest of this into files in ephemeral. See +# https://github.com/flutter/flutter/issues/57146. + +# Serves the same purpose as list(TRANSFORM ... PREPEND ...), +# which isn't available in 3.10. +function(list_prepend LIST_NAME PREFIX) + set(NEW_LIST "") + foreach(element ${${LIST_NAME}}) + list(APPEND NEW_LIST "${PREFIX}${element}") + endforeach(element) + set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) +endfunction() + +# === Flutter Library === +# System-level dependencies. +find_package(PkgConfig REQUIRED) +pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) +pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) +pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) + +set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") + +# Published to parent scope for install step. +set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) +set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) +set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) +set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) + +list(APPEND FLUTTER_LIBRARY_HEADERS + "fl_basic_message_channel.h" + "fl_binary_codec.h" + "fl_binary_messenger.h" + "fl_dart_project.h" + "fl_engine.h" + "fl_json_message_codec.h" + "fl_json_method_codec.h" + "fl_message_codec.h" + "fl_method_call.h" + "fl_method_channel.h" + "fl_method_codec.h" + "fl_method_response.h" + "fl_plugin_registrar.h" + "fl_plugin_registry.h" + "fl_standard_message_codec.h" + "fl_standard_method_codec.h" + "fl_string_codec.h" + "fl_value.h" + "fl_view.h" + "flutter_linux.h" +) +list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") +add_library(flutter INTERFACE) +target_include_directories(flutter INTERFACE + "${EPHEMERAL_DIR}" +) +target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") +target_link_libraries(flutter INTERFACE + PkgConfig::GTK + PkgConfig::GLIB + PkgConfig::GIO +) +add_dependencies(flutter flutter_assemble) + +# === Flutter tool backend === +# _phony_ is a non-existent file to force this command to run every time, +# since currently there's no way to get a full input/output list from the +# flutter tool. +add_custom_command( + OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} + ${CMAKE_CURRENT_BINARY_DIR}/_phony_ + COMMAND ${CMAKE_COMMAND} -E env + ${FLUTTER_TOOL_ENVIRONMENT} + "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" + ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} + VERBATIM +) +add_custom_target(flutter_assemble DEPENDS + "${FLUTTER_LIBRARY}" + ${FLUTTER_LIBRARY_HEADERS} +) diff --git a/linux/flutter/generated_plugin_registrant.cc b/linux/flutter/generated_plugin_registrant.cc new file mode 100644 index 0000000..8329c8c --- /dev/null +++ b/linux/flutter/generated_plugin_registrant.cc @@ -0,0 +1,23 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#include "generated_plugin_registrant.h" + +#include +#include +#include + +void fl_register_plugins(FlPluginRegistry* registry) { + g_autoptr(FlPluginRegistrar) printing_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "PrintingPlugin"); + printing_plugin_register_with_registrar(printing_registrar); + g_autoptr(FlPluginRegistrar) sqlite3_flutter_libs_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "Sqlite3FlutterLibsPlugin"); + sqlite3_flutter_libs_plugin_register_with_registrar(sqlite3_flutter_libs_registrar); + g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin"); + url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar); +} diff --git a/linux/flutter/generated_plugin_registrant.h b/linux/flutter/generated_plugin_registrant.h new file mode 100644 index 0000000..e0f0a47 --- /dev/null +++ b/linux/flutter/generated_plugin_registrant.h @@ -0,0 +1,15 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#ifndef GENERATED_PLUGIN_REGISTRANT_ +#define GENERATED_PLUGIN_REGISTRANT_ + +#include + +// Registers Flutter plugins. +void fl_register_plugins(FlPluginRegistry* registry); + +#endif // GENERATED_PLUGIN_REGISTRANT_ diff --git a/linux/flutter/generated_plugins.cmake b/linux/flutter/generated_plugins.cmake new file mode 100644 index 0000000..1ddbf64 --- /dev/null +++ b/linux/flutter/generated_plugins.cmake @@ -0,0 +1,26 @@ +# +# Generated file, do not edit. +# + +list(APPEND FLUTTER_PLUGIN_LIST + printing + sqlite3_flutter_libs + url_launcher_linux +) + +list(APPEND FLUTTER_FFI_PLUGIN_LIST +) + +set(PLUGIN_BUNDLED_LIBRARIES) + +foreach(plugin ${FLUTTER_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) + target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) + list(APPEND PLUGIN_BUNDLED_LIBRARIES $) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) +endforeach(plugin) + +foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) +endforeach(ffi_plugin) diff --git a/linux/runner/CMakeLists.txt b/linux/runner/CMakeLists.txt new file mode 100644 index 0000000..e97dabc --- /dev/null +++ b/linux/runner/CMakeLists.txt @@ -0,0 +1,26 @@ +cmake_minimum_required(VERSION 3.13) +project(runner LANGUAGES CXX) + +# Define the application target. To change its name, change BINARY_NAME in the +# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer +# work. +# +# Any new source files that you add to the application should be added here. +add_executable(${BINARY_NAME} + "main.cc" + "my_application.cc" + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" +) + +# Apply the standard set of build settings. This can be removed for applications +# that need different build settings. +apply_standard_settings(${BINARY_NAME}) + +# Add preprocessor definitions for the application ID. +add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}") + +# Add dependency libraries. Add any application-specific dependencies here. +target_link_libraries(${BINARY_NAME} PRIVATE flutter) +target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) + +target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") diff --git a/linux/runner/main.cc b/linux/runner/main.cc new file mode 100644 index 0000000..e7c5c54 --- /dev/null +++ b/linux/runner/main.cc @@ -0,0 +1,6 @@ +#include "my_application.h" + +int main(int argc, char** argv) { + g_autoptr(MyApplication) app = my_application_new(); + return g_application_run(G_APPLICATION(app), argc, argv); +} diff --git a/linux/runner/my_application.cc b/linux/runner/my_application.cc new file mode 100644 index 0000000..e2f8c9f --- /dev/null +++ b/linux/runner/my_application.cc @@ -0,0 +1,148 @@ +#include "my_application.h" + +#include +#ifdef GDK_WINDOWING_X11 +#include +#endif + +#include "flutter/generated_plugin_registrant.h" + +struct _MyApplication { + GtkApplication parent_instance; + char** dart_entrypoint_arguments; +}; + +G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION) + +// Called when first Flutter frame received. +static void first_frame_cb(MyApplication* self, FlView* view) { + gtk_widget_show(gtk_widget_get_toplevel(GTK_WIDGET(view))); +} + +// Implements GApplication::activate. +static void my_application_activate(GApplication* application) { + MyApplication* self = MY_APPLICATION(application); + GtkWindow* window = + GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application))); + + // Use a header bar when running in GNOME as this is the common style used + // by applications and is the setup most users will be using (e.g. Ubuntu + // desktop). + // If running on X and not using GNOME then just use a traditional title bar + // in case the window manager does more exotic layout, e.g. tiling. + // If running on Wayland assume the header bar will work (may need changing + // if future cases occur). + gboolean use_header_bar = TRUE; +#ifdef GDK_WINDOWING_X11 + GdkScreen* screen = gtk_window_get_screen(window); + if (GDK_IS_X11_SCREEN(screen)) { + const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen); + if (g_strcmp0(wm_name, "GNOME Shell") != 0) { + use_header_bar = FALSE; + } + } +#endif + if (use_header_bar) { + GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); + gtk_widget_show(GTK_WIDGET(header_bar)); + gtk_header_bar_set_title(header_bar, "gemi_invoice"); + gtk_header_bar_set_show_close_button(header_bar, TRUE); + gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); + } else { + gtk_window_set_title(window, "gemi_invoice"); + } + + gtk_window_set_default_size(window, 1280, 720); + + g_autoptr(FlDartProject) project = fl_dart_project_new(); + fl_dart_project_set_dart_entrypoint_arguments( + project, self->dart_entrypoint_arguments); + + FlView* view = fl_view_new(project); + GdkRGBA background_color; + // Background defaults to black, override it here if necessary, e.g. #00000000 + // for transparent. + gdk_rgba_parse(&background_color, "#000000"); + fl_view_set_background_color(view, &background_color); + gtk_widget_show(GTK_WIDGET(view)); + gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view)); + + // Show the window when Flutter renders. + // Requires the view to be realized so we can start rendering. + g_signal_connect_swapped(view, "first-frame", G_CALLBACK(first_frame_cb), + self); + gtk_widget_realize(GTK_WIDGET(view)); + + fl_register_plugins(FL_PLUGIN_REGISTRY(view)); + + gtk_widget_grab_focus(GTK_WIDGET(view)); +} + +// Implements GApplication::local_command_line. +static gboolean my_application_local_command_line(GApplication* application, + gchar*** arguments, + int* exit_status) { + MyApplication* self = MY_APPLICATION(application); + // Strip out the first argument as it is the binary name. + self->dart_entrypoint_arguments = g_strdupv(*arguments + 1); + + g_autoptr(GError) error = nullptr; + if (!g_application_register(application, nullptr, &error)) { + g_warning("Failed to register: %s", error->message); + *exit_status = 1; + return TRUE; + } + + g_application_activate(application); + *exit_status = 0; + + return TRUE; +} + +// Implements GApplication::startup. +static void my_application_startup(GApplication* application) { + // MyApplication* self = MY_APPLICATION(object); + + // Perform any actions required at application startup. + + G_APPLICATION_CLASS(my_application_parent_class)->startup(application); +} + +// Implements GApplication::shutdown. +static void my_application_shutdown(GApplication* application) { + // MyApplication* self = MY_APPLICATION(object); + + // Perform any actions required at application shutdown. + + G_APPLICATION_CLASS(my_application_parent_class)->shutdown(application); +} + +// Implements GObject::dispose. +static void my_application_dispose(GObject* object) { + MyApplication* self = MY_APPLICATION(object); + g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev); + G_OBJECT_CLASS(my_application_parent_class)->dispose(object); +} + +static void my_application_class_init(MyApplicationClass* klass) { + G_APPLICATION_CLASS(klass)->activate = my_application_activate; + G_APPLICATION_CLASS(klass)->local_command_line = + my_application_local_command_line; + G_APPLICATION_CLASS(klass)->startup = my_application_startup; + G_APPLICATION_CLASS(klass)->shutdown = my_application_shutdown; + G_OBJECT_CLASS(klass)->dispose = my_application_dispose; +} + +static void my_application_init(MyApplication* self) {} + +MyApplication* my_application_new() { + // Set the program name to the application ID, which helps various systems + // like GTK and desktop environments map this running application to its + // corresponding .desktop file. This ensures better integration by allowing + // the application to be recognized beyond its binary name. + g_set_prgname(APPLICATION_ID); + + return MY_APPLICATION(g_object_new(my_application_get_type(), + "application-id", APPLICATION_ID, "flags", + G_APPLICATION_NON_UNIQUE, nullptr)); +} diff --git a/linux/runner/my_application.h b/linux/runner/my_application.h new file mode 100644 index 0000000..db16367 --- /dev/null +++ b/linux/runner/my_application.h @@ -0,0 +1,21 @@ +#ifndef FLUTTER_MY_APPLICATION_H_ +#define FLUTTER_MY_APPLICATION_H_ + +#include + +G_DECLARE_FINAL_TYPE(MyApplication, + my_application, + MY, + APPLICATION, + GtkApplication) + +/** + * my_application_new: + * + * Creates a new Flutter-based application. + * + * Returns: a new #MyApplication. + */ +MyApplication* my_application_new(); + +#endif // FLUTTER_MY_APPLICATION_H_ diff --git a/macos/.gitignore b/macos/.gitignore new file mode 100644 index 0000000..746adbb --- /dev/null +++ b/macos/.gitignore @@ -0,0 +1,7 @@ +# Flutter-related +**/Flutter/ephemeral/ +**/Pods/ + +# Xcode-related +**/dgph +**/xcuserdata/ diff --git a/macos/Flutter/Flutter-Debug.xcconfig b/macos/Flutter/Flutter-Debug.xcconfig new file mode 100644 index 0000000..c2efd0b --- /dev/null +++ b/macos/Flutter/Flutter-Debug.xcconfig @@ -0,0 +1 @@ +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/macos/Flutter/Flutter-Release.xcconfig b/macos/Flutter/Flutter-Release.xcconfig new file mode 100644 index 0000000..c2efd0b --- /dev/null +++ b/macos/Flutter/Flutter-Release.xcconfig @@ -0,0 +1 @@ +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift new file mode 100644 index 0000000..ef49197 --- /dev/null +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -0,0 +1,22 @@ +// +// Generated file. Do not edit. +// + +import FlutterMacOS +import Foundation + +import geolocator_apple +import package_info_plus +import printing +import share_plus +import sqlite3_flutter_libs +import url_launcher_macos + +func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { + GeolocatorPlugin.register(with: registry.registrar(forPlugin: "GeolocatorPlugin")) + FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) + PrintingPlugin.register(with: registry.registrar(forPlugin: "PrintingPlugin")) + SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin")) + Sqlite3FlutterLibsPlugin.register(with: registry.registrar(forPlugin: "Sqlite3FlutterLibsPlugin")) + UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) +} diff --git a/macos/Runner.xcodeproj/project.pbxproj b/macos/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..b289e68 --- /dev/null +++ b/macos/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,705 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXAggregateTarget section */ + 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { + isa = PBXAggregateTarget; + buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; + buildPhases = ( + 33CC111E2044C6BF0003C045 /* ShellScript */, + ); + dependencies = ( + ); + name = "Flutter Assemble"; + productName = FLX; + }; +/* End PBXAggregateTarget section */ + +/* Begin PBXBuildFile section */ + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; }; + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC10EC2044A3C60003C045; + remoteInfo = Runner; + }; + 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC111A2044C6BA0003C045; + remoteInfo = FLX; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 33CC110E2044A8840003C045 /* Bundle Framework */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Bundle Framework"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; + 33CC10ED2044A3C60003C045 /* gemi_invoice.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "gemi_invoice.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; + 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; + 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; + 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; + 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; + 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 331C80D2294CF70F00263BE5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10EA2044A3C60003C045 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 331C80D6294CF71000263BE5 /* RunnerTests */ = { + isa = PBXGroup; + children = ( + 331C80D7294CF71000263BE5 /* RunnerTests.swift */, + ); + path = RunnerTests; + sourceTree = ""; + }; + 33BA886A226E78AF003329D5 /* Configs */ = { + isa = PBXGroup; + children = ( + 33E5194F232828860026EE4D /* AppInfo.xcconfig */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, + ); + path = Configs; + sourceTree = ""; + }; + 33CC10E42044A3C60003C045 = { + isa = PBXGroup; + children = ( + 33FAB671232836740065AC1E /* Runner */, + 33CEB47122A05771004F2AC0 /* Flutter */, + 331C80D6294CF71000263BE5 /* RunnerTests */, + 33CC10EE2044A3C60003C045 /* Products */, + D73912EC22F37F3D000D13A0 /* Frameworks */, + ); + sourceTree = ""; + }; + 33CC10EE2044A3C60003C045 /* Products */ = { + isa = PBXGroup; + children = ( + 33CC10ED2044A3C60003C045 /* gemi_invoice.app */, + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 33CC11242044D66E0003C045 /* Resources */ = { + isa = PBXGroup; + children = ( + 33CC10F22044A3C60003C045 /* Assets.xcassets */, + 33CC10F42044A3C60003C045 /* MainMenu.xib */, + 33CC10F72044A3C60003C045 /* Info.plist */, + ); + name = Resources; + path = ..; + sourceTree = ""; + }; + 33CEB47122A05771004F2AC0 /* Flutter */ = { + isa = PBXGroup; + children = ( + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, + ); + path = Flutter; + sourceTree = ""; + }; + 33FAB671232836740065AC1E /* Runner */ = { + isa = PBXGroup; + children = ( + 33CC10F02044A3C60003C045 /* AppDelegate.swift */, + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, + 33E51913231747F40026EE4D /* DebugProfile.entitlements */, + 33E51914231749380026EE4D /* Release.entitlements */, + 33CC11242044D66E0003C045 /* Resources */, + 33BA886A226E78AF003329D5 /* Configs */, + ); + path = Runner; + sourceTree = ""; + }; + D73912EC22F37F3D000D13A0 /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 331C80D4294CF70F00263BE5 /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + 331C80D1294CF70F00263BE5 /* Sources */, + 331C80D2294CF70F00263BE5 /* Frameworks */, + 331C80D3294CF70F00263BE5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 331C80DA294CF71000263BE5 /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 33CC10EC2044A3C60003C045 /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 33CC10E92044A3C60003C045 /* Sources */, + 33CC10EA2044A3C60003C045 /* Frameworks */, + 33CC10EB2044A3C60003C045 /* Resources */, + 33CC110E2044A8840003C045 /* Bundle Framework */, + 3399D490228B24CF009A79C7 /* ShellScript */, + ); + buildRules = ( + ); + dependencies = ( + 33CC11202044C79F0003C045 /* PBXTargetDependency */, + ); + name = Runner; + productName = Runner; + productReference = 33CC10ED2044A3C60003C045 /* gemi_invoice.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 33CC10E52044A3C60003C045 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 331C80D4294CF70F00263BE5 = { + CreatedOnToolsVersion = 14.0; + TestTargetID = 33CC10EC2044A3C60003C045; + }; + 33CC10EC2044A3C60003C045 = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1100; + ProvisioningStyle = Automatic; + SystemCapabilities = { + com.apple.Sandbox = { + enabled = 1; + }; + }; + }; + 33CC111A2044C6BA0003C045 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Manual; + }; + }; + }; + buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 33CC10E42044A3C60003C045; + productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 33CC10EC2044A3C60003C045 /* Runner */, + 331C80D4294CF70F00263BE5 /* RunnerTests */, + 33CC111A2044C6BA0003C045 /* Flutter Assemble */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 331C80D3294CF70F00263BE5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10EB2044A3C60003C045 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3399D490228B24CF009A79C7 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n"; + }; + 33CC111E2044C6BF0003C045 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + Flutter/ephemeral/FlutterInputs.xcfilelist, + ); + inputPaths = ( + Flutter/ephemeral/tripwire, + ); + outputFileListPaths = ( + Flutter/ephemeral/FlutterOutputs.xcfilelist, + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 331C80D1294CF70F00263BE5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10E92044A3C60003C045 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 331C80DA294CF71000263BE5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC10EC2044A3C60003C045 /* Runner */; + targetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */; + }; + 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; + targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 33CC10F52044A3C60003C045 /* Base */, + ); + name = MainMenu.xib; + path = Runner; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 331C80DB294CF71000263BE5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.gemiInvoice.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/gemi_invoice.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/gemi_invoice"; + }; + name = Debug; + }; + 331C80DC294CF71000263BE5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.gemiInvoice.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/gemi_invoice.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/gemi_invoice"; + }; + name = Release; + }; + 331C80DD294CF71000263BE5 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.gemiInvoice.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/gemi_invoice.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/gemi_invoice"; + }; + name = Profile; + }; + 338D0CE9231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Profile; + }; + 338D0CEA231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Profile; + }; + 338D0CEB231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Profile; + }; + 33CC10F92044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 33CC10FA2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Release; + }; + 33CC10FC2044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 33CC10FD2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + 33CC111C2044C6BA0003C045 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 33CC111D2044C6BA0003C045 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 331C80DB294CF71000263BE5 /* Debug */, + 331C80DC294CF71000263BE5 /* Release */, + 331C80DD294CF71000263BE5 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10F92044A3C60003C045 /* Debug */, + 33CC10FA2044A3C60003C045 /* Release */, + 338D0CE9231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10FC2044A3C60003C045 /* Debug */, + 33CC10FD2044A3C60003C045 /* Release */, + 338D0CEA231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC111C2044C6BA0003C045 /* Debug */, + 33CC111D2044C6BA0003C045 /* Release */, + 338D0CEB231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 33CC10E52044A3C60003C045 /* Project object */; +} diff --git a/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/macos/Runner.xcworkspace/contents.xcworkspacedata b/macos/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1d526a1 --- /dev/null +++ b/macos/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/macos/Runner/AppDelegate.swift b/macos/Runner/AppDelegate.swift new file mode 100644 index 0000000..b3c1761 --- /dev/null +++ b/macos/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +import Cocoa +import FlutterMacOS + +@main +class AppDelegate: FlutterAppDelegate { + override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { + return true + } + + override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { + return true + } +} diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..a2ec33f --- /dev/null +++ b/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_16.png", + "scale" : "1x" + }, + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "2x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "1x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_64.png", + "scale" : "2x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_128.png", + "scale" : "1x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "2x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "1x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "2x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "1x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_1024.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png new file mode 100644 index 0000000..82b6f9d Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png new file mode 100644 index 0000000..13b35eb Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png new file mode 100644 index 0000000..0a3f5fa Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png new file mode 100644 index 0000000..bdb5722 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png new file mode 100644 index 0000000..f083318 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png new file mode 100644 index 0000000..326c0e7 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png new file mode 100644 index 0000000..2f1632c Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png differ diff --git a/macos/Runner/Base.lproj/MainMenu.xib b/macos/Runner/Base.lproj/MainMenu.xib new file mode 100644 index 0000000..80e867a --- /dev/null +++ b/macos/Runner/Base.lproj/MainMenu.xib @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/macos/Runner/Configs/AppInfo.xcconfig b/macos/Runner/Configs/AppInfo.xcconfig new file mode 100644 index 0000000..169cc61 --- /dev/null +++ b/macos/Runner/Configs/AppInfo.xcconfig @@ -0,0 +1,14 @@ +// Application-level settings for the Runner target. +// +// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the +// future. If not, the values below would default to using the project name when this becomes a +// 'flutter create' template. + +// The application's name. By default this is also the title of the Flutter window. +PRODUCT_NAME = gemi_invoice + +// The application's bundle identifier +PRODUCT_BUNDLE_IDENTIFIER = com.example.gemiInvoice + +// The copyright displayed in application information +PRODUCT_COPYRIGHT = Copyright © 2026 com.example. All rights reserved. diff --git a/macos/Runner/Configs/Debug.xcconfig b/macos/Runner/Configs/Debug.xcconfig new file mode 100644 index 0000000..36b0fd9 --- /dev/null +++ b/macos/Runner/Configs/Debug.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Debug.xcconfig" +#include "Warnings.xcconfig" diff --git a/macos/Runner/Configs/Release.xcconfig b/macos/Runner/Configs/Release.xcconfig new file mode 100644 index 0000000..dff4f49 --- /dev/null +++ b/macos/Runner/Configs/Release.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Release.xcconfig" +#include "Warnings.xcconfig" diff --git a/macos/Runner/Configs/Warnings.xcconfig b/macos/Runner/Configs/Warnings.xcconfig new file mode 100644 index 0000000..42bcbf4 --- /dev/null +++ b/macos/Runner/Configs/Warnings.xcconfig @@ -0,0 +1,13 @@ +WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings +GCC_WARN_UNDECLARED_SELECTOR = YES +CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES +CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE +CLANG_WARN__DUPLICATE_METHOD_MATCH = YES +CLANG_WARN_PRAGMA_PACK = YES +CLANG_WARN_STRICT_PROTOTYPES = YES +CLANG_WARN_COMMA = YES +GCC_WARN_STRICT_SELECTOR_MATCH = YES +CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES +CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES +GCC_WARN_SHADOW = YES +CLANG_WARN_UNREACHABLE_CODE = YES diff --git a/macos/Runner/DebugProfile.entitlements b/macos/Runner/DebugProfile.entitlements new file mode 100644 index 0000000..dddb8a3 --- /dev/null +++ b/macos/Runner/DebugProfile.entitlements @@ -0,0 +1,12 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.cs.allow-jit + + com.apple.security.network.server + + + diff --git a/macos/Runner/Info.plist b/macos/Runner/Info.plist new file mode 100644 index 0000000..4789daa --- /dev/null +++ b/macos/Runner/Info.plist @@ -0,0 +1,32 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + $(PRODUCT_COPYRIGHT) + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/macos/Runner/MainFlutterWindow.swift b/macos/Runner/MainFlutterWindow.swift new file mode 100644 index 0000000..3cc05eb --- /dev/null +++ b/macos/Runner/MainFlutterWindow.swift @@ -0,0 +1,15 @@ +import Cocoa +import FlutterMacOS + +class MainFlutterWindow: NSWindow { + override func awakeFromNib() { + let flutterViewController = FlutterViewController() + let windowFrame = self.frame + self.contentViewController = flutterViewController + self.setFrame(windowFrame, display: true) + + RegisterGeneratedPlugins(registry: flutterViewController) + + super.awakeFromNib() + } +} diff --git a/macos/Runner/Release.entitlements b/macos/Runner/Release.entitlements new file mode 100644 index 0000000..852fa1a --- /dev/null +++ b/macos/Runner/Release.entitlements @@ -0,0 +1,8 @@ + + + + + com.apple.security.app-sandbox + + + diff --git a/macos/RunnerTests/RunnerTests.swift b/macos/RunnerTests/RunnerTests.swift new file mode 100644 index 0000000..61f3bd1 --- /dev/null +++ b/macos/RunnerTests/RunnerTests.swift @@ -0,0 +1,12 @@ +import Cocoa +import FlutterMacOS +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/pubspec.lock b/pubspec.lock new file mode 100644 index 0000000..500bfa3 --- /dev/null +++ b/pubspec.lock @@ -0,0 +1,1074 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _fe_analyzer_shared: + dependency: transitive + description: + name: _fe_analyzer_shared + sha256: "8d7ff3948166b8ec5da0fbb5962000926b8e02f2ed9b3e51d1738905fbd4c98d" + url: "https://pub.dev" + source: hosted + version: "93.0.0" + analyzer: + dependency: transitive + description: + name: analyzer + sha256: de7148ed2fcec579b19f122c1800933dfa028f6d9fd38a152b04b1516cec120b + url: "https://pub.dev" + source: hosted + version: "10.0.1" + archive: + dependency: transitive + description: + name: archive + sha256: "2fde1607386ab523f7a36bb3e7edb43bd58e6edaf2ffb29d8a6d578b297fdbbd" + url: "https://pub.dev" + source: hosted + version: "4.0.7" + args: + dependency: transitive + description: + name: args + sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04 + url: "https://pub.dev" + source: hosted + version: "2.7.0" + async: + dependency: transitive + description: + name: async + sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb" + url: "https://pub.dev" + source: hosted + version: "2.13.0" + barcode: + dependency: transitive + description: + name: barcode + sha256: "7b6729c37e3b7f34233e2318d866e8c48ddb46c1f7ad01ff7bb2a8de1da2b9f4" + url: "https://pub.dev" + source: hosted + version: "2.2.9" + bidi: + dependency: transitive + description: + name: bidi + sha256: "77f475165e94b261745cf1032c751e2032b8ed92ccb2bf5716036db79320637d" + url: "https://pub.dev" + source: hosted + version: "2.0.13" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + build: + dependency: transitive + description: + name: build + sha256: "275bf6bb2a00a9852c28d4e0b410da1d833a734d57d39d44f94bfc895a484ec3" + url: "https://pub.dev" + source: hosted + version: "4.0.4" + build_config: + dependency: transitive + description: + name: build_config + sha256: "4f64382b97504dc2fcdf487d5aae33418e08b4703fc21249e4db6d804a4d0187" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + build_daemon: + dependency: transitive + description: + name: build_daemon + sha256: bf05f6e12cfea92d3c09308d7bcdab1906cd8a179b023269eed00c071004b957 + url: "https://pub.dev" + source: hosted + version: "4.1.1" + build_runner: + dependency: "direct dev" + description: + name: build_runner + sha256: ac78098de97893812b7aff1154f29008fa2464cad9e8e7044d39bc905dad4fbc + url: "https://pub.dev" + source: hosted + version: "2.11.0" + built_collection: + dependency: transitive + description: + name: built_collection + sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100" + url: "https://pub.dev" + source: hosted + version: "5.1.1" + built_value: + dependency: transitive + description: + name: built_value + sha256: "7931c90b84bc573fef103548e354258ae4c9d28d140e41961df6843c5d60d4d8" + url: "https://pub.dev" + source: hosted + version: "8.12.3" + characters: + dependency: transitive + description: + name: characters + sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 + url: "https://pub.dev" + source: hosted + version: "1.4.0" + charcode: + dependency: transitive + description: + name: charcode + sha256: fb0f1107cac15a5ea6ef0a6ef71a807b9e4267c713bb93e00e92d737cc8dbd8a + url: "https://pub.dev" + source: hosted + version: "1.4.0" + checked_yaml: + dependency: transitive + description: + name: checked_yaml + sha256: "959525d3162f249993882720d52b7e0c833978df229be20702b33d48d91de70f" + url: "https://pub.dev" + source: hosted + version: "2.0.4" + cli_util: + dependency: transitive + description: + name: cli_util + sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c + url: "https://pub.dev" + source: hosted + version: "0.4.2" + clock: + dependency: transitive + description: + name: clock + sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b + url: "https://pub.dev" + source: hosted + version: "1.1.2" + code_assets: + dependency: transitive + description: + name: code_assets + sha256: "83ccdaa064c980b5596c35dd64a8d3ecc68620174ab9b90b6343b753aa721687" + url: "https://pub.dev" + source: hosted + version: "1.0.0" + code_builder: + dependency: transitive + description: + name: code_builder + sha256: "6a6cab2ba4680d6423f34a9b972a4c9a94ebe1b62ecec4e1a1f2cba91fd1319d" + url: "https://pub.dev" + source: hosted + version: "4.11.1" + collection: + dependency: transitive + description: + name: collection + sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" + url: "https://pub.dev" + source: hosted + version: "1.19.1" + convert: + dependency: transitive + description: + name: convert + sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68 + url: "https://pub.dev" + source: hosted + version: "3.1.2" + cross_file: + dependency: transitive + description: + name: cross_file + sha256: "28bb3ae56f117b5aec029d702a90f57d285cd975c3c5c281eaca38dbc47c5937" + url: "https://pub.dev" + source: hosted + version: "0.3.5+2" + crypto: + dependency: "direct main" + description: + name: crypto + sha256: c8ea0233063ba03258fbcf2ca4d6dadfefe14f02fab57702265467a19f27fadf + url: "https://pub.dev" + source: hosted + version: "3.0.7" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 + url: "https://pub.dev" + source: hosted + version: "1.0.8" + dart_style: + dependency: transitive + description: + name: dart_style + sha256: "15a7db352c8fc6a4d2bc475ba901c25b39fe7157541da4c16eacce6f8be83e49" + url: "https://pub.dev" + source: hosted + version: "3.1.5" + dbus: + dependency: transitive + description: + name: dbus + sha256: d0c98dcd4f5169878b6cf8f6e0a52403a9dff371a3e2f019697accbf6f44a270 + url: "https://pub.dev" + source: hosted + version: "0.7.12" + drift: + dependency: "direct main" + description: + name: drift + sha256: "970cd188fddb111b26ea6a9b07a62bf5c2432d74147b8122c67044ae3b97e99e" + url: "https://pub.dev" + source: hosted + version: "2.31.0" + drift_dev: + dependency: "direct dev" + description: + name: drift_dev + sha256: "917184b2fb867b70a548a83bf0d36268423b38d39968c06cce4905683da49587" + url: "https://pub.dev" + source: hosted + version: "2.31.0" + fake_async: + dependency: transitive + description: + name: fake_async + sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" + url: "https://pub.dev" + source: hosted + version: "1.3.3" + ffi: + dependency: transitive + description: + name: ffi + sha256: d07d37192dbf97461359c1518788f203b0c9102cfd2c35a716b823741219542c + url: "https://pub.dev" + source: hosted + version: "2.1.5" + file: + dependency: transitive + description: + name: file + sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4 + url: "https://pub.dev" + source: hosted + version: "7.0.1" + fixnum: + dependency: transitive + description: + name: fixnum + sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be + url: "https://pub.dev" + source: hosted + version: "1.1.1" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_contacts: + dependency: "direct main" + description: + name: flutter_contacts + sha256: "388d32cd33f16640ee169570128c933b45f3259bddbfae7a100bb49e5ffea9ae" + url: "https://pub.dev" + source: hosted + version: "1.1.9+2" + flutter_lints: + dependency: "direct dev" + description: + name: flutter_lints + sha256: "3105dc8492f6183fb076ccf1f351ac3d60564bff92e20bfc4af9cc1651f4e7e1" + url: "https://pub.dev" + source: hosted + version: "6.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + flutter_web_plugins: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + geoclue: + dependency: transitive + description: + name: geoclue + sha256: c2a998c77474fc57aa00c6baa2928e58f4b267649057a1c76738656e9dbd2a7f + url: "https://pub.dev" + source: hosted + version: "0.1.1" + geolocator: + dependency: "direct main" + description: + name: geolocator + sha256: "79939537046c9025be47ec645f35c8090ecadb6fe98eba146a0d25e8c1357516" + url: "https://pub.dev" + source: hosted + version: "14.0.2" + geolocator_android: + dependency: transitive + description: + name: geolocator_android + sha256: "179c3cb66dfa674fc9ccbf2be872a02658724d1c067634e2c427cf6df7df901a" + url: "https://pub.dev" + source: hosted + version: "5.0.2" + geolocator_apple: + dependency: transitive + description: + name: geolocator_apple + sha256: dbdd8789d5aaf14cf69f74d4925ad1336b4433a6efdf2fce91e8955dc921bf22 + url: "https://pub.dev" + source: hosted + version: "2.3.13" + geolocator_linux: + dependency: transitive + description: + name: geolocator_linux + sha256: d64112a205931926f4363bb6bd48f14cb38e7326833041d170615586cd143797 + url: "https://pub.dev" + source: hosted + version: "0.2.4" + geolocator_platform_interface: + dependency: transitive + description: + name: geolocator_platform_interface + sha256: "30cb64f0b9adcc0fb36f628b4ebf4f731a2961a0ebd849f4b56200205056fe67" + url: "https://pub.dev" + source: hosted + version: "4.2.6" + geolocator_web: + dependency: transitive + description: + name: geolocator_web + sha256: b1ae9bdfd90f861fde8fd4f209c37b953d65e92823cb73c7dee1fa021b06f172 + url: "https://pub.dev" + source: hosted + version: "4.1.3" + geolocator_windows: + dependency: transitive + description: + name: geolocator_windows + sha256: "175435404d20278ffd220de83c2ca293b73db95eafbdc8131fe8609be1421eb6" + url: "https://pub.dev" + source: hosted + version: "0.2.5" + glob: + dependency: transitive + description: + name: glob + sha256: c3f1ee72c96f8f78935e18aa8cecced9ab132419e8625dc187e1c2408efc20de + url: "https://pub.dev" + source: hosted + version: "2.1.3" + graphs: + dependency: transitive + description: + name: graphs + sha256: "741bbf84165310a68ff28fe9e727332eef1407342fca52759cb21ad8177bb8d0" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + gsettings: + dependency: transitive + description: + name: gsettings + sha256: "1b0ce661f5436d2db1e51f3c4295a49849f03d304003a7ba177d01e3a858249c" + url: "https://pub.dev" + source: hosted + version: "0.2.8" + hooks: + dependency: transitive + description: + name: hooks + sha256: "7a08a0d684cb3b8fb604b78455d5d352f502b68079f7b80b831c62220ab0a4f6" + url: "https://pub.dev" + source: hosted + version: "1.0.1" + http: + dependency: transitive + description: + name: http + sha256: "87721a4a50b19c7f1d49001e51409bddc46303966ce89a65af4f4e6004896412" + url: "https://pub.dev" + source: hosted + version: "1.6.0" + http_multi_server: + dependency: transitive + description: + name: http_multi_server + sha256: aa6199f908078bb1c5efb8d8638d4ae191aac11b311132c3ef48ce352fb52ef8 + url: "https://pub.dev" + source: hosted + version: "3.2.2" + http_parser: + dependency: transitive + description: + name: http_parser + sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571" + url: "https://pub.dev" + source: hosted + version: "4.1.2" + image: + dependency: transitive + description: + name: image + sha256: "4e973fcf4caae1a4be2fa0a13157aa38a8f9cb049db6529aa00b4d71abc4d928" + url: "https://pub.dev" + source: hosted + version: "4.5.4" + intl: + dependency: "direct main" + description: + name: intl + sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5" + url: "https://pub.dev" + source: hosted + version: "0.20.2" + io: + dependency: transitive + description: + name: io + sha256: dfd5a80599cf0165756e3181807ed3e77daf6dd4137caaad72d0b7931597650b + url: "https://pub.dev" + source: hosted + version: "1.0.5" + json_annotation: + dependency: transitive + description: + name: json_annotation + sha256: "805fa86df56383000f640384b282ce0cb8431f1a7a2396de92fb66186d8c57df" + url: "https://pub.dev" + source: hosted + version: "4.10.0" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de" + url: "https://pub.dev" + source: hosted + version: "11.0.2" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" + url: "https://pub.dev" + source: hosted + version: "3.0.10" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + lints: + dependency: transitive + description: + name: lints + sha256: "12f842a479589fea194fe5c5a3095abc7be0c1f2ddfa9a0e76aed1dbd26a87df" + url: "https://pub.dev" + source: hosted + version: "6.1.0" + logging: + dependency: transitive + description: + name: logging + sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61 + url: "https://pub.dev" + source: hosted + version: "1.3.0" + matcher: + dependency: transitive + description: + name: matcher + sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 + url: "https://pub.dev" + source: hosted + version: "0.12.17" + material_color_utilities: + dependency: transitive + description: + name: material_color_utilities + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec + url: "https://pub.dev" + source: hosted + version: "0.11.1" + meta: + dependency: transitive + description: + name: meta + sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394" + url: "https://pub.dev" + source: hosted + version: "1.17.0" + mime: + dependency: transitive + description: + name: mime + sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6" + url: "https://pub.dev" + source: hosted + version: "2.0.0" + native_toolchain_c: + dependency: transitive + description: + name: native_toolchain_c + sha256: "89e83885ba09da5fdf2cdacc8002a712ca238c28b7f717910b34bcd27b0d03ac" + url: "https://pub.dev" + source: hosted + version: "0.17.4" + objective_c: + dependency: transitive + description: + name: objective_c + sha256: "100a1c87616ab6ed41ec263b083c0ef3261ee6cd1dc3b0f35f8ddfa4f996fe52" + url: "https://pub.dev" + source: hosted + version: "9.3.0" + open_filex: + dependency: "direct main" + description: + name: open_filex + sha256: "9976da61b6a72302cf3b1efbce259200cd40232643a467aac7370addf94d6900" + url: "https://pub.dev" + source: hosted + version: "4.7.0" + package_config: + dependency: transitive + description: + name: package_config + sha256: f096c55ebb7deb7e384101542bfba8c52696c1b56fca2eb62827989ef2353bbc + url: "https://pub.dev" + source: hosted + version: "2.2.0" + package_info_plus: + dependency: transitive + description: + name: package_info_plus + sha256: f69da0d3189a4b4ceaeb1a3defb0f329b3b352517f52bed4290f83d4f06bc08d + url: "https://pub.dev" + source: hosted + version: "9.0.0" + package_info_plus_platform_interface: + dependency: transitive + description: + name: package_info_plus_platform_interface + sha256: "202a487f08836a592a6bd4f901ac69b3a8f146af552bbd14407b6b41e1c3f086" + url: "https://pub.dev" + source: hosted + version: "3.2.1" + path: + dependency: "direct main" + description: + name: path + sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" + url: "https://pub.dev" + source: hosted + version: "1.9.1" + path_parsing: + dependency: transitive + description: + name: path_parsing + sha256: "883402936929eac138ee0a45da5b0f2c80f89913e6dc3bf77eb65b84b409c6ca" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + path_provider: + dependency: "direct main" + description: + name: path_provider + sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd" + url: "https://pub.dev" + source: hosted + version: "2.1.5" + path_provider_android: + dependency: transitive + description: + name: path_provider_android + sha256: f2c65e21139ce2c3dad46922be8272bb5963516045659e71bb16e151c93b580e + url: "https://pub.dev" + source: hosted + version: "2.2.22" + path_provider_foundation: + dependency: transitive + description: + name: path_provider_foundation + sha256: "2a376b7d6392d80cd3705782d2caa734ca4727776db0b6ec36ef3f1855197699" + url: "https://pub.dev" + source: hosted + version: "2.6.0" + path_provider_linux: + dependency: transitive + description: + name: path_provider_linux + sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 + url: "https://pub.dev" + source: hosted + version: "2.2.1" + path_provider_platform_interface: + dependency: transitive + description: + name: path_provider_platform_interface + sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + path_provider_windows: + dependency: transitive + description: + name: path_provider_windows + sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 + url: "https://pub.dev" + source: hosted + version: "2.3.0" + pdf: + dependency: "direct main" + description: + name: pdf + sha256: "28eacad99bffcce2e05bba24e50153890ad0255294f4dd78a17075a2ba5c8416" + url: "https://pub.dev" + source: hosted + version: "3.11.3" + pdf_widget_wrapper: + dependency: transitive + description: + name: pdf_widget_wrapper + sha256: c930860d987213a3d58c7ec3b7ecf8085c3897f773e8dc23da9cae60a5d6d0f5 + url: "https://pub.dev" + source: hosted + version: "1.0.4" + permission_handler: + dependency: "direct main" + description: + name: permission_handler + sha256: bc917da36261b00137bbc8896bf1482169cd76f866282368948f032c8c1caae1 + url: "https://pub.dev" + source: hosted + version: "12.0.1" + permission_handler_android: + dependency: transitive + description: + name: permission_handler_android + sha256: "1e3bc410ca1bf84662104b100eb126e066cb55791b7451307f9708d4007350e6" + url: "https://pub.dev" + source: hosted + version: "13.0.1" + permission_handler_apple: + dependency: transitive + description: + name: permission_handler_apple + sha256: f000131e755c54cf4d84a5d8bd6e4149e262cc31c5a8b1d698de1ac85fa41023 + url: "https://pub.dev" + source: hosted + version: "9.4.7" + permission_handler_html: + dependency: transitive + description: + name: permission_handler_html + sha256: "38f000e83355abb3392140f6bc3030660cfaef189e1f87824facb76300b4ff24" + url: "https://pub.dev" + source: hosted + version: "0.1.3+5" + permission_handler_platform_interface: + dependency: transitive + description: + name: permission_handler_platform_interface + sha256: eb99b295153abce5d683cac8c02e22faab63e50679b937fa1bf67d58bb282878 + url: "https://pub.dev" + source: hosted + version: "4.3.0" + permission_handler_windows: + dependency: transitive + description: + name: permission_handler_windows + sha256: "1a790728016f79a41216d88672dbc5df30e686e811ad4e698bfc51f76ad91f1e" + url: "https://pub.dev" + source: hosted + version: "0.2.1" + petitparser: + dependency: transitive + description: + name: petitparser + sha256: "1a97266a94f7350d30ae522c0af07890c70b8e62c71e8e3920d1db4d23c057d1" + url: "https://pub.dev" + source: hosted + version: "7.0.1" + platform: + dependency: transitive + description: + name: platform + sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984" + url: "https://pub.dev" + source: hosted + version: "3.1.6" + plugin_platform_interface: + dependency: transitive + description: + name: plugin_platform_interface + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" + url: "https://pub.dev" + source: hosted + version: "2.1.8" + pool: + dependency: transitive + description: + name: pool + sha256: "978783255c543aa3586a1b3c21f6e9d720eb315376a915872c61ef8b5c20177d" + url: "https://pub.dev" + source: hosted + version: "1.5.2" + posix: + dependency: transitive + description: + name: posix + sha256: "6323a5b0fa688b6a010df4905a56b00181479e6d10534cecfecede2aa55add61" + url: "https://pub.dev" + source: hosted + version: "6.0.3" + printing: + dependency: "direct main" + description: + name: printing + sha256: "482cd5a5196008f984bb43ed0e47cbfdca7373490b62f3b27b3299275bf22a93" + url: "https://pub.dev" + source: hosted + version: "5.14.2" + pub_semver: + dependency: transitive + description: + name: pub_semver + sha256: "5bfcf68ca79ef689f8990d1160781b4bad40a3bd5e5218ad4076ddb7f4081585" + url: "https://pub.dev" + source: hosted + version: "2.2.0" + pubspec_parse: + dependency: transitive + description: + name: pubspec_parse + sha256: "0560ba233314abbed0a48a2956f7f022cce7c3e1e73df540277da7544cad4082" + url: "https://pub.dev" + source: hosted + version: "1.5.0" + qr: + dependency: transitive + description: + name: qr + sha256: "5a1d2586170e172b8a8c8470bbbffd5eb0cd38a66c0d77155ea138d3af3a4445" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + recase: + dependency: transitive + description: + name: recase + sha256: e4eb4ec2dcdee52dcf99cb4ceabaffc631d7424ee55e56f280bc039737f89213 + url: "https://pub.dev" + source: hosted + version: "4.1.0" + share_plus: + dependency: "direct main" + description: + name: share_plus + sha256: "14c8860d4de93d3a7e53af51bff479598c4e999605290756bbbe45cf65b37840" + url: "https://pub.dev" + source: hosted + version: "12.0.1" + share_plus_platform_interface: + dependency: transitive + description: + name: share_plus_platform_interface + sha256: "88023e53a13429bd65d8e85e11a9b484f49d4c190abbd96c7932b74d6927cc9a" + url: "https://pub.dev" + source: hosted + version: "6.1.0" + shelf: + dependency: transitive + description: + name: shelf + sha256: e7dd780a7ffb623c57850b33f43309312fc863fb6aa3d276a754bb299839ef12 + url: "https://pub.dev" + source: hosted + version: "1.4.2" + shelf_web_socket: + dependency: transitive + description: + name: shelf_web_socket + sha256: "3632775c8e90d6c9712f883e633716432a27758216dfb61bd86a8321c0580925" + url: "https://pub.dev" + source: hosted + version: "3.0.0" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + source_gen: + dependency: transitive + description: + name: source_gen + sha256: "1d562a3c1f713904ebbed50d2760217fd8a51ca170ac4b05b0db490699dbac17" + url: "https://pub.dev" + source: hosted + version: "4.2.0" + source_span: + dependency: transitive + description: + name: source_span + sha256: "56a02f1f4cd1a2d96303c0144c93bd6d909eea6bee6bf5a0e0b685edbd4c47ab" + url: "https://pub.dev" + source: hosted + version: "1.10.2" + sqlite3: + dependency: transitive + description: + name: sqlite3 + sha256: "3145bd74dcdb4fd6f5c6dda4d4e4490a8087d7f286a14dee5d37087290f0f8a2" + url: "https://pub.dev" + source: hosted + version: "2.9.4" + sqlite3_flutter_libs: + dependency: "direct main" + description: + name: sqlite3_flutter_libs + sha256: "1e800ebe7f85a80a66adacaa6febe4d5f4d8b75f244e9838a27cb2ffc7aec08d" + url: "https://pub.dev" + source: hosted + version: "0.5.41" + sqlparser: + dependency: transitive + description: + name: sqlparser + sha256: "337e9997f7141ffdd054259128553c348635fa318f7ca492f07a4ab76f850d19" + url: "https://pub.dev" + source: hosted + version: "0.43.1" + stack_trace: + dependency: transitive + description: + name: stack_trace + sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" + url: "https://pub.dev" + source: hosted + version: "1.12.1" + stream_channel: + dependency: transitive + description: + name: stream_channel + sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + stream_transform: + dependency: transitive + description: + name: stream_transform + sha256: ad47125e588cfd37a9a7f86c7d6356dde8dfe89d071d293f80ca9e9273a33871 + url: "https://pub.dev" + source: hosted + version: "2.1.1" + string_scanner: + dependency: transitive + description: + name: string_scanner + sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" + url: "https://pub.dev" + source: hosted + version: "1.4.1" + term_glyph: + dependency: transitive + description: + name: term_glyph + sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" + url: "https://pub.dev" + source: hosted + version: "1.2.2" + test_api: + dependency: transitive + description: + name: test_api + sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55 + url: "https://pub.dev" + source: hosted + version: "0.7.7" + typed_data: + dependency: transitive + description: + name: typed_data + sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 + url: "https://pub.dev" + source: hosted + version: "1.4.0" + url_launcher: + dependency: "direct main" + description: + name: url_launcher + sha256: f6a7e5c4835bb4e3026a04793a4199ca2d14c739ec378fdfe23fc8075d0439f8 + url: "https://pub.dev" + source: hosted + version: "6.3.2" + url_launcher_android: + dependency: transitive + description: + name: url_launcher_android + sha256: "767344bf3063897b5cf0db830e94f904528e6dd50a6dfaf839f0abf509009611" + url: "https://pub.dev" + source: hosted + version: "6.3.28" + url_launcher_ios: + dependency: transitive + description: + name: url_launcher_ios + sha256: cfde38aa257dae62ffe79c87fab20165dfdf6988c1d31b58ebf59b9106062aad + url: "https://pub.dev" + source: hosted + version: "6.3.6" + url_launcher_linux: + dependency: transitive + description: + name: url_launcher_linux + sha256: d5e14138b3bc193a0f63c10a53c94b91d399df0512b1f29b94a043db7482384a + url: "https://pub.dev" + source: hosted + version: "3.2.2" + url_launcher_macos: + dependency: transitive + description: + name: url_launcher_macos + sha256: "368adf46f71ad3c21b8f06614adb38346f193f3a59ba8fe9a2fd74133070ba18" + url: "https://pub.dev" + source: hosted + version: "3.2.5" + url_launcher_platform_interface: + dependency: transitive + description: + name: url_launcher_platform_interface + sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + url_launcher_web: + dependency: transitive + description: + name: url_launcher_web + sha256: d0412fcf4c6b31ecfdb7762359b7206ffba3bbffd396c6d9f9c4616ece476c1f + url: "https://pub.dev" + source: hosted + version: "2.4.2" + url_launcher_windows: + dependency: transitive + description: + name: url_launcher_windows + sha256: "712c70ab1b99744ff066053cbe3e80c73332b38d46e5e945c98689b2e66fc15f" + url: "https://pub.dev" + source: hosted + version: "3.1.5" + uuid: + dependency: transitive + description: + name: uuid + sha256: a11b666489b1954e01d992f3d601b1804a33937b5a8fe677bd26b8a9f96f96e8 + url: "https://pub.dev" + source: hosted + version: "4.5.2" + vector_math: + dependency: transitive + description: + name: vector_math + sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b + url: "https://pub.dev" + source: hosted + version: "2.2.0" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60" + url: "https://pub.dev" + source: hosted + version: "15.0.2" + watcher: + dependency: transitive + description: + name: watcher + sha256: "1398c9f081a753f9226febe8900fce8f7d0a67163334e1c94a2438339d79d635" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + web: + dependency: transitive + description: + name: web + sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a" + url: "https://pub.dev" + source: hosted + version: "1.1.1" + web_socket: + dependency: transitive + description: + name: web_socket + sha256: "34d64019aa8e36bf9842ac014bb5d2f5586ca73df5e4d9bf5c936975cae6982c" + url: "https://pub.dev" + source: hosted + version: "1.0.1" + web_socket_channel: + dependency: transitive + description: + name: web_socket_channel + sha256: d645757fb0f4773d602444000a8131ff5d48c9e47adfe9772652dd1a4f2d45c8 + url: "https://pub.dev" + source: hosted + version: "3.0.3" + win32: + dependency: transitive + description: + name: win32 + sha256: d7cb55e04cd34096cd3a79b3330245f54cb96a370a1c27adb3c84b917de8b08e + url: "https://pub.dev" + source: hosted + version: "5.15.0" + xdg_directories: + dependency: transitive + description: + name: xdg_directories + sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + xml: + dependency: transitive + description: + name: xml + sha256: "971043b3a0d3da28727e40ed3e0b5d18b742fa5a68665cca88e74b7876d5e025" + url: "https://pub.dev" + source: hosted + version: "6.6.1" + yaml: + dependency: transitive + description: + name: yaml + sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce + url: "https://pub.dev" + source: hosted + version: "3.1.3" +sdks: + dart: ">=3.10.7 <4.0.0" + flutter: ">=3.38.4" diff --git a/pubspec.yaml b/pubspec.yaml new file mode 100644 index 0000000..e57b9d3 --- /dev/null +++ b/pubspec.yaml @@ -0,0 +1,108 @@ +name: gemi_invoice +description: "A new Flutter project." +# The following line prevents the package from being accidentally published to +# pub.dev using `flutter pub publish`. This is preferred for private packages. +publish_to: "none" # Remove this line if you wish to publish to pub.dev + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +# In Windows, build-name is used as the major, minor, and patch parts +# of the product and file versions while build-number is used as the build suffix. +version: 1.0.0+1 + +environment: + sdk: ^3.10.7 + +# Dependencies specify other packages that your package needs in order to work. +# To automatically upgrade your package dependencies to the latest versions +# consider running `flutter pub upgrade --major-versions`. Alternatively, +# dependencies can be manually updated by changing the version numbers below to +# the latest version available on pub.dev. To see which dependencies have newer +# versions available, run `flutter pub outdated`. +dependencies: + flutter: + sdk: flutter + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^1.0.8 + pdf: ^3.11.3 + path_provider: ^2.1.5 + crypto: ^3.0.7 + intl: ^0.20.2 + flutter_contacts: ^1.1.9+2 + permission_handler: ^12.0.1 + share_plus: ^12.0.1 + url_launcher: ^6.3.2 + open_filex: ^4.7.0 + printing: ^5.14.2 + drift: ^2.31.0 + sqlite3_flutter_libs: ^0.5.41 + path: ^1.9.1 + geolocator: ^14.0.2 + +dev_dependencies: + flutter_test: + sdk: flutter + + # The "flutter_lints" package below contains a set of recommended lints to + # encourage good coding practices. The lint set provided by the package is + # activated in the `analysis_options.yaml` file located at the root of your + # package. See that file for information about deactivating specific lint + # rules and activating additional ones. + flutter_lints: ^6.0.0 + drift_dev: ^2.31.0 + build_runner: ^2.11.0 + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter packages. +flutter: + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + + # To add assets to your application, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/to/resolution-aware-images + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/to/asset-from-package + + # To add custom fonts to your application, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/to/font-from-package + fonts: + - family: IPAexGothic + fonts: + - asset: assets/fonts/ipaexg.ttf diff --git a/test/widget_test.dart b/test/widget_test.dart new file mode 100644 index 0000000..1363b77 --- /dev/null +++ b/test/widget_test.dart @@ -0,0 +1,30 @@ +// This is a basic Flutter widget test. +// +// To perform an interaction with a widget in your test, use the WidgetTester +// utility in the flutter_test package. For example, you can send tap and scroll +// gestures. You can also use WidgetTester to find child widgets in the widget +// tree, read text, and verify that the values of widget properties are correct. + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'package:gemi_invoice/main.dart'; + +void main() { + testWidgets('Counter increments smoke test', (WidgetTester tester) async { + // Build our app and trigger a frame. + await tester.pumpWidget(const MyApp()); + + // Verify that our counter starts at 0. + expect(find.text('0'), findsOneWidget); + expect(find.text('1'), findsNothing); + + // Tap the '+' icon and trigger a frame. + await tester.tap(find.byIcon(Icons.add)); + await tester.pump(); + + // Verify that our counter has incremented. + expect(find.text('0'), findsNothing); + expect(find.text('1'), findsOneWidget); + }); +} diff --git a/web/favicon.png b/web/favicon.png new file mode 100644 index 0000000..8aaa46a Binary files /dev/null and b/web/favicon.png differ diff --git a/web/index.html b/web/index.html new file mode 100644 index 0000000..501e2b2 --- /dev/null +++ b/web/index.html @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + gemi_invoice + + + + + + diff --git a/windows/.gitignore b/windows/.gitignore new file mode 100644 index 0000000..d492d0d --- /dev/null +++ b/windows/.gitignore @@ -0,0 +1,17 @@ +flutter/ephemeral/ + +# Visual Studio user-specific files. +*.suo +*.user +*.userosscache +*.sln.docstates + +# Visual Studio build-related files. +x64/ +x86/ + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ diff --git a/windows/CMakeLists.txt b/windows/CMakeLists.txt new file mode 100644 index 0000000..ef3769b --- /dev/null +++ b/windows/CMakeLists.txt @@ -0,0 +1,108 @@ +# Project-level configuration. +cmake_minimum_required(VERSION 3.14) +project(gemi_invoice LANGUAGES CXX) + +# The name of the executable created for the application. Change this to change +# the on-disk name of your application. +set(BINARY_NAME "gemi_invoice") + +# Explicitly opt in to modern CMake behaviors to avoid warnings with recent +# versions of CMake. +cmake_policy(VERSION 3.14...3.25) + +# Define build configuration option. +get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) +if(IS_MULTICONFIG) + set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" + CACHE STRING "" FORCE) +else() + if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Debug" CACHE + STRING "Flutter build mode" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + "Debug" "Profile" "Release") + endif() +endif() +# Define settings for the Profile build mode. +set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}") +set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}") +set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}") +set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") + +# Use Unicode for all projects. +add_definitions(-DUNICODE -D_UNICODE) + +# Compilation settings that should be applied to most targets. +# +# Be cautious about adding new options here, as plugins use this function by +# default. In most cases, you should add new options to specific targets instead +# of modifying this function. +function(APPLY_STANDARD_SETTINGS TARGET) + target_compile_features(${TARGET} PUBLIC cxx_std_17) + target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100") + target_compile_options(${TARGET} PRIVATE /EHsc) + target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0") + target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>") +endfunction() + +# Flutter library and tool build rules. +set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") +add_subdirectory(${FLUTTER_MANAGED_DIR}) + +# Application build; see runner/CMakeLists.txt. +add_subdirectory("runner") + + +# Generated plugin build rules, which manage building the plugins and adding +# them to the application. +include(flutter/generated_plugins.cmake) + + +# === Installation === +# Support files are copied into place next to the executable, so that it can +# run in place. This is done instead of making a separate bundle (as on Linux) +# so that building and running from within Visual Studio will work. +set(BUILD_BUNDLE_DIR "$") +# Make the "install" step default, as it's required to run. +set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) +endif() + +set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") +set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}") + +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +if(PLUGIN_BUNDLED_LIBRARIES) + install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endif() + +# Copy the native assets provided by the build.dart from all packages. +set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/windows/") +install(DIRECTORY "${NATIVE_ASSETS_DIR}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +# Fully re-copy the assets directory on each build to avoid having stale files +# from a previous install. +set(FLUTTER_ASSET_DIR_NAME "flutter_assets") +install(CODE " + file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") + " COMPONENT Runtime) +install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) + +# Install the AOT library on non-Debug builds only. +install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + CONFIGURATIONS Profile;Release + COMPONENT Runtime) diff --git a/windows/flutter/CMakeLists.txt b/windows/flutter/CMakeLists.txt new file mode 100644 index 0000000..903f489 --- /dev/null +++ b/windows/flutter/CMakeLists.txt @@ -0,0 +1,109 @@ +# This file controls Flutter-level build steps. It should not be edited. +cmake_minimum_required(VERSION 3.14) + +set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") + +# Configuration provided via flutter tool. +include(${EPHEMERAL_DIR}/generated_config.cmake) + +# TODO: Move the rest of this into files in ephemeral. See +# https://github.com/flutter/flutter/issues/57146. +set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") + +# Set fallback configurations for older versions of the flutter tool. +if (NOT DEFINED FLUTTER_TARGET_PLATFORM) + set(FLUTTER_TARGET_PLATFORM "windows-x64") +endif() + +# === Flutter Library === +set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") + +# Published to parent scope for install step. +set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) +set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) +set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) +set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) + +list(APPEND FLUTTER_LIBRARY_HEADERS + "flutter_export.h" + "flutter_windows.h" + "flutter_messenger.h" + "flutter_plugin_registrar.h" + "flutter_texture_registrar.h" +) +list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") +add_library(flutter INTERFACE) +target_include_directories(flutter INTERFACE + "${EPHEMERAL_DIR}" +) +target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") +add_dependencies(flutter flutter_assemble) + +# === Wrapper === +list(APPEND CPP_WRAPPER_SOURCES_CORE + "core_implementations.cc" + "standard_codec.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") +list(APPEND CPP_WRAPPER_SOURCES_PLUGIN + "plugin_registrar.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") +list(APPEND CPP_WRAPPER_SOURCES_APP + "flutter_engine.cc" + "flutter_view_controller.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") + +# Wrapper sources needed for a plugin. +add_library(flutter_wrapper_plugin STATIC + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_PLUGIN} +) +apply_standard_settings(flutter_wrapper_plugin) +set_target_properties(flutter_wrapper_plugin PROPERTIES + POSITION_INDEPENDENT_CODE ON) +set_target_properties(flutter_wrapper_plugin PROPERTIES + CXX_VISIBILITY_PRESET hidden) +target_link_libraries(flutter_wrapper_plugin PUBLIC flutter) +target_include_directories(flutter_wrapper_plugin PUBLIC + "${WRAPPER_ROOT}/include" +) +add_dependencies(flutter_wrapper_plugin flutter_assemble) + +# Wrapper sources needed for the runner. +add_library(flutter_wrapper_app STATIC + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_APP} +) +apply_standard_settings(flutter_wrapper_app) +target_link_libraries(flutter_wrapper_app PUBLIC flutter) +target_include_directories(flutter_wrapper_app PUBLIC + "${WRAPPER_ROOT}/include" +) +add_dependencies(flutter_wrapper_app flutter_assemble) + +# === Flutter tool backend === +# _phony_ is a non-existent file to force this command to run every time, +# since currently there's no way to get a full input/output list from the +# flutter tool. +set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_") +set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE) +add_custom_command( + OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} + ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} + ${CPP_WRAPPER_SOURCES_APP} + ${PHONY_OUTPUT} + COMMAND ${CMAKE_COMMAND} -E env + ${FLUTTER_TOOL_ENVIRONMENT} + "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" + ${FLUTTER_TARGET_PLATFORM} $ + VERBATIM +) +add_custom_target(flutter_assemble DEPENDS + "${FLUTTER_LIBRARY}" + ${FLUTTER_LIBRARY_HEADERS} + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_PLUGIN} + ${CPP_WRAPPER_SOURCES_APP} +) diff --git a/windows/flutter/generated_plugin_registrant.cc b/windows/flutter/generated_plugin_registrant.cc new file mode 100644 index 0000000..8e9cca0 --- /dev/null +++ b/windows/flutter/generated_plugin_registrant.cc @@ -0,0 +1,29 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#include "generated_plugin_registrant.h" + +#include +#include +#include +#include +#include +#include + +void RegisterPlugins(flutter::PluginRegistry* registry) { + GeolocatorWindowsRegisterWithRegistrar( + registry->GetRegistrarForPlugin("GeolocatorWindows")); + PermissionHandlerWindowsPluginRegisterWithRegistrar( + registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin")); + PrintingPluginRegisterWithRegistrar( + registry->GetRegistrarForPlugin("PrintingPlugin")); + SharePlusWindowsPluginCApiRegisterWithRegistrar( + registry->GetRegistrarForPlugin("SharePlusWindowsPluginCApi")); + Sqlite3FlutterLibsPluginRegisterWithRegistrar( + registry->GetRegistrarForPlugin("Sqlite3FlutterLibsPlugin")); + UrlLauncherWindowsRegisterWithRegistrar( + registry->GetRegistrarForPlugin("UrlLauncherWindows")); +} diff --git a/windows/flutter/generated_plugin_registrant.h b/windows/flutter/generated_plugin_registrant.h new file mode 100644 index 0000000..dc139d8 --- /dev/null +++ b/windows/flutter/generated_plugin_registrant.h @@ -0,0 +1,15 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#ifndef GENERATED_PLUGIN_REGISTRANT_ +#define GENERATED_PLUGIN_REGISTRANT_ + +#include + +// Registers Flutter plugins. +void RegisterPlugins(flutter::PluginRegistry* registry); + +#endif // GENERATED_PLUGIN_REGISTRANT_ diff --git a/windows/flutter/generated_plugins.cmake b/windows/flutter/generated_plugins.cmake new file mode 100644 index 0000000..e1da03c --- /dev/null +++ b/windows/flutter/generated_plugins.cmake @@ -0,0 +1,29 @@ +# +# Generated file, do not edit. +# + +list(APPEND FLUTTER_PLUGIN_LIST + geolocator_windows + permission_handler_windows + printing + share_plus + sqlite3_flutter_libs + url_launcher_windows +) + +list(APPEND FLUTTER_FFI_PLUGIN_LIST +) + +set(PLUGIN_BUNDLED_LIBRARIES) + +foreach(plugin ${FLUTTER_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) + target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) + list(APPEND PLUGIN_BUNDLED_LIBRARIES $) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) +endforeach(plugin) + +foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin}) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) +endforeach(ffi_plugin) diff --git a/windows/runner/CMakeLists.txt b/windows/runner/CMakeLists.txt new file mode 100644 index 0000000..394917c --- /dev/null +++ b/windows/runner/CMakeLists.txt @@ -0,0 +1,40 @@ +cmake_minimum_required(VERSION 3.14) +project(runner LANGUAGES CXX) + +# Define the application target. To change its name, change BINARY_NAME in the +# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer +# work. +# +# Any new source files that you add to the application should be added here. +add_executable(${BINARY_NAME} WIN32 + "flutter_window.cpp" + "main.cpp" + "utils.cpp" + "win32_window.cpp" + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" + "Runner.rc" + "runner.exe.manifest" +) + +# Apply the standard set of build settings. This can be removed for applications +# that need different build settings. +apply_standard_settings(${BINARY_NAME}) + +# Add preprocessor definitions for the build version. +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") + +# Disable Windows macros that collide with C++ standard library functions. +target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") + +# Add dependency libraries and include directories. Add any application-specific +# dependencies here. +target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) +target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib") +target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") + +# Run the Flutter tool portions of the build. This must not be removed. +add_dependencies(${BINARY_NAME} flutter_assemble) diff --git a/windows/runner/Runner.rc b/windows/runner/Runner.rc new file mode 100644 index 0000000..894c14a --- /dev/null +++ b/windows/runner/Runner.rc @@ -0,0 +1,121 @@ +// Microsoft Visual C++ generated resource script. +// +#pragma code_page(65001) +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "winres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (United States) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""winres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +IDI_APP_ICON ICON "resources\\app_icon.ico" + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +#if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD) +#define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD +#else +#define VERSION_AS_NUMBER 1,0,0,0 +#endif + +#if defined(FLUTTER_VERSION) +#define VERSION_AS_STRING FLUTTER_VERSION +#else +#define VERSION_AS_STRING "1.0.0" +#endif + +VS_VERSION_INFO VERSIONINFO + FILEVERSION VERSION_AS_NUMBER + PRODUCTVERSION VERSION_AS_NUMBER + FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG + FILEFLAGS VS_FF_DEBUG +#else + FILEFLAGS 0x0L +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_APP + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904e4" + BEGIN + VALUE "CompanyName", "com.example" "\0" + VALUE "FileDescription", "gemi_invoice" "\0" + VALUE "FileVersion", VERSION_AS_STRING "\0" + VALUE "InternalName", "gemi_invoice" "\0" + VALUE "LegalCopyright", "Copyright (C) 2026 com.example. All rights reserved." "\0" + VALUE "OriginalFilename", "gemi_invoice.exe" "\0" + VALUE "ProductName", "gemi_invoice" "\0" + VALUE "ProductVersion", VERSION_AS_STRING "\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1252 + END +END + +#endif // English (United States) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED diff --git a/windows/runner/flutter_window.cpp b/windows/runner/flutter_window.cpp new file mode 100644 index 0000000..955ee30 --- /dev/null +++ b/windows/runner/flutter_window.cpp @@ -0,0 +1,71 @@ +#include "flutter_window.h" + +#include + +#include "flutter/generated_plugin_registrant.h" + +FlutterWindow::FlutterWindow(const flutter::DartProject& project) + : project_(project) {} + +FlutterWindow::~FlutterWindow() {} + +bool FlutterWindow::OnCreate() { + if (!Win32Window::OnCreate()) { + return false; + } + + RECT frame = GetClientArea(); + + // The size here must match the window dimensions to avoid unnecessary surface + // creation / destruction in the startup path. + flutter_controller_ = std::make_unique( + frame.right - frame.left, frame.bottom - frame.top, project_); + // Ensure that basic setup of the controller was successful. + if (!flutter_controller_->engine() || !flutter_controller_->view()) { + return false; + } + RegisterPlugins(flutter_controller_->engine()); + SetChildContent(flutter_controller_->view()->GetNativeWindow()); + + flutter_controller_->engine()->SetNextFrameCallback([&]() { + this->Show(); + }); + + // Flutter can complete the first frame before the "show window" callback is + // registered. The following call ensures a frame is pending to ensure the + // window is shown. It is a no-op if the first frame hasn't completed yet. + flutter_controller_->ForceRedraw(); + + return true; +} + +void FlutterWindow::OnDestroy() { + if (flutter_controller_) { + flutter_controller_ = nullptr; + } + + Win32Window::OnDestroy(); +} + +LRESULT +FlutterWindow::MessageHandler(HWND hwnd, UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + // Give Flutter, including plugins, an opportunity to handle window messages. + if (flutter_controller_) { + std::optional result = + flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, + lparam); + if (result) { + return *result; + } + } + + switch (message) { + case WM_FONTCHANGE: + flutter_controller_->engine()->ReloadSystemFonts(); + break; + } + + return Win32Window::MessageHandler(hwnd, message, wparam, lparam); +} diff --git a/windows/runner/flutter_window.h b/windows/runner/flutter_window.h new file mode 100644 index 0000000..6da0652 --- /dev/null +++ b/windows/runner/flutter_window.h @@ -0,0 +1,33 @@ +#ifndef RUNNER_FLUTTER_WINDOW_H_ +#define RUNNER_FLUTTER_WINDOW_H_ + +#include +#include + +#include + +#include "win32_window.h" + +// A window that does nothing but host a Flutter view. +class FlutterWindow : public Win32Window { + public: + // Creates a new FlutterWindow hosting a Flutter view running |project|. + explicit FlutterWindow(const flutter::DartProject& project); + virtual ~FlutterWindow(); + + protected: + // Win32Window: + bool OnCreate() override; + void OnDestroy() override; + LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, + LPARAM const lparam) noexcept override; + + private: + // The project to run. + flutter::DartProject project_; + + // The Flutter instance hosted by this window. + std::unique_ptr flutter_controller_; +}; + +#endif // RUNNER_FLUTTER_WINDOW_H_ diff --git a/windows/runner/main.cpp b/windows/runner/main.cpp new file mode 100644 index 0000000..f8aaf28 --- /dev/null +++ b/windows/runner/main.cpp @@ -0,0 +1,43 @@ +#include +#include +#include + +#include "flutter_window.h" +#include "utils.h" + +int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, + _In_ wchar_t *command_line, _In_ int show_command) { + // Attach to console when present (e.g., 'flutter run') or create a + // new console when running with a debugger. + if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { + CreateAndAttachConsole(); + } + + // Initialize COM, so that it is available for use in the library and/or + // plugins. + ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); + + flutter::DartProject project(L"data"); + + std::vector command_line_arguments = + GetCommandLineArguments(); + + project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); + + FlutterWindow window(project); + Win32Window::Point origin(10, 10); + Win32Window::Size size(1280, 720); + if (!window.Create(L"gemi_invoice", origin, size)) { + return EXIT_FAILURE; + } + window.SetQuitOnClose(true); + + ::MSG msg; + while (::GetMessage(&msg, nullptr, 0, 0)) { + ::TranslateMessage(&msg); + ::DispatchMessage(&msg); + } + + ::CoUninitialize(); + return EXIT_SUCCESS; +} diff --git a/windows/runner/resource.h b/windows/runner/resource.h new file mode 100644 index 0000000..66a65d1 --- /dev/null +++ b/windows/runner/resource.h @@ -0,0 +1,16 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by Runner.rc +// +#define IDI_APP_ICON 101 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 102 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/windows/runner/resources/app_icon.ico b/windows/runner/resources/app_icon.ico new file mode 100644 index 0000000..c04e20c Binary files /dev/null and b/windows/runner/resources/app_icon.ico differ diff --git a/windows/runner/runner.exe.manifest b/windows/runner/runner.exe.manifest new file mode 100644 index 0000000..153653e --- /dev/null +++ b/windows/runner/runner.exe.manifest @@ -0,0 +1,14 @@ + + + + + PerMonitorV2 + + + + + + + + + diff --git a/windows/runner/utils.cpp b/windows/runner/utils.cpp new file mode 100644 index 0000000..3a0b465 --- /dev/null +++ b/windows/runner/utils.cpp @@ -0,0 +1,65 @@ +#include "utils.h" + +#include +#include +#include +#include + +#include + +void CreateAndAttachConsole() { + if (::AllocConsole()) { + FILE *unused; + if (freopen_s(&unused, "CONOUT$", "w", stdout)) { + _dup2(_fileno(stdout), 1); + } + if (freopen_s(&unused, "CONOUT$", "w", stderr)) { + _dup2(_fileno(stdout), 2); + } + std::ios::sync_with_stdio(); + FlutterDesktopResyncOutputStreams(); + } +} + +std::vector GetCommandLineArguments() { + // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. + int argc; + wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); + if (argv == nullptr) { + return std::vector(); + } + + std::vector command_line_arguments; + + // Skip the first argument as it's the binary name. + for (int i = 1; i < argc; i++) { + command_line_arguments.push_back(Utf8FromUtf16(argv[i])); + } + + ::LocalFree(argv); + + return command_line_arguments; +} + +std::string Utf8FromUtf16(const wchar_t* utf16_string) { + if (utf16_string == nullptr) { + return std::string(); + } + unsigned int target_length = ::WideCharToMultiByte( + CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, + -1, nullptr, 0, nullptr, nullptr) + -1; // remove the trailing null character + int input_length = (int)wcslen(utf16_string); + std::string utf8_string; + if (target_length == 0 || target_length > utf8_string.max_size()) { + return utf8_string; + } + utf8_string.resize(target_length); + int converted_length = ::WideCharToMultiByte( + CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, + input_length, utf8_string.data(), target_length, nullptr, nullptr); + if (converted_length == 0) { + return std::string(); + } + return utf8_string; +} diff --git a/windows/runner/utils.h b/windows/runner/utils.h new file mode 100644 index 0000000..3879d54 --- /dev/null +++ b/windows/runner/utils.h @@ -0,0 +1,19 @@ +#ifndef RUNNER_UTILS_H_ +#define RUNNER_UTILS_H_ + +#include +#include + +// Creates a console for the process, and redirects stdout and stderr to +// it for both the runner and the Flutter library. +void CreateAndAttachConsole(); + +// Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string +// encoded in UTF-8. Returns an empty std::string on failure. +std::string Utf8FromUtf16(const wchar_t* utf16_string); + +// Gets the command line arguments passed in as a std::vector, +// encoded in UTF-8. Returns an empty std::vector on failure. +std::vector GetCommandLineArguments(); + +#endif // RUNNER_UTILS_H_ diff --git a/windows/runner/win32_window.cpp b/windows/runner/win32_window.cpp new file mode 100644 index 0000000..60608d0 --- /dev/null +++ b/windows/runner/win32_window.cpp @@ -0,0 +1,288 @@ +#include "win32_window.h" + +#include +#include + +#include "resource.h" + +namespace { + +/// Window attribute that enables dark mode window decorations. +/// +/// Redefined in case the developer's machine has a Windows SDK older than +/// version 10.0.22000.0. +/// See: https://docs.microsoft.com/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute +#ifndef DWMWA_USE_IMMERSIVE_DARK_MODE +#define DWMWA_USE_IMMERSIVE_DARK_MODE 20 +#endif + +constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW"; + +/// Registry key for app theme preference. +/// +/// A value of 0 indicates apps should use dark mode. A non-zero or missing +/// value indicates apps should use light mode. +constexpr const wchar_t kGetPreferredBrightnessRegKey[] = + L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize"; +constexpr const wchar_t kGetPreferredBrightnessRegValue[] = L"AppsUseLightTheme"; + +// The number of Win32Window objects that currently exist. +static int g_active_window_count = 0; + +using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd); + +// Scale helper to convert logical scaler values to physical using passed in +// scale factor +int Scale(int source, double scale_factor) { + return static_cast(source * scale_factor); +} + +// Dynamically loads the |EnableNonClientDpiScaling| from the User32 module. +// This API is only needed for PerMonitor V1 awareness mode. +void EnableFullDpiSupportIfAvailable(HWND hwnd) { + HMODULE user32_module = LoadLibraryA("User32.dll"); + if (!user32_module) { + return; + } + auto enable_non_client_dpi_scaling = + reinterpret_cast( + GetProcAddress(user32_module, "EnableNonClientDpiScaling")); + if (enable_non_client_dpi_scaling != nullptr) { + enable_non_client_dpi_scaling(hwnd); + } + FreeLibrary(user32_module); +} + +} // namespace + +// Manages the Win32Window's window class registration. +class WindowClassRegistrar { + public: + ~WindowClassRegistrar() = default; + + // Returns the singleton registrar instance. + static WindowClassRegistrar* GetInstance() { + if (!instance_) { + instance_ = new WindowClassRegistrar(); + } + return instance_; + } + + // Returns the name of the window class, registering the class if it hasn't + // previously been registered. + const wchar_t* GetWindowClass(); + + // Unregisters the window class. Should only be called if there are no + // instances of the window. + void UnregisterWindowClass(); + + private: + WindowClassRegistrar() = default; + + static WindowClassRegistrar* instance_; + + bool class_registered_ = false; +}; + +WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr; + +const wchar_t* WindowClassRegistrar::GetWindowClass() { + if (!class_registered_) { + WNDCLASS window_class{}; + window_class.hCursor = LoadCursor(nullptr, IDC_ARROW); + window_class.lpszClassName = kWindowClassName; + window_class.style = CS_HREDRAW | CS_VREDRAW; + window_class.cbClsExtra = 0; + window_class.cbWndExtra = 0; + window_class.hInstance = GetModuleHandle(nullptr); + window_class.hIcon = + LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON)); + window_class.hbrBackground = 0; + window_class.lpszMenuName = nullptr; + window_class.lpfnWndProc = Win32Window::WndProc; + RegisterClass(&window_class); + class_registered_ = true; + } + return kWindowClassName; +} + +void WindowClassRegistrar::UnregisterWindowClass() { + UnregisterClass(kWindowClassName, nullptr); + class_registered_ = false; +} + +Win32Window::Win32Window() { + ++g_active_window_count; +} + +Win32Window::~Win32Window() { + --g_active_window_count; + Destroy(); +} + +bool Win32Window::Create(const std::wstring& title, + const Point& origin, + const Size& size) { + Destroy(); + + const wchar_t* window_class = + WindowClassRegistrar::GetInstance()->GetWindowClass(); + + const POINT target_point = {static_cast(origin.x), + static_cast(origin.y)}; + HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST); + UINT dpi = FlutterDesktopGetDpiForMonitor(monitor); + double scale_factor = dpi / 96.0; + + HWND window = CreateWindow( + window_class, title.c_str(), WS_OVERLAPPEDWINDOW, + Scale(origin.x, scale_factor), Scale(origin.y, scale_factor), + Scale(size.width, scale_factor), Scale(size.height, scale_factor), + nullptr, nullptr, GetModuleHandle(nullptr), this); + + if (!window) { + return false; + } + + UpdateTheme(window); + + return OnCreate(); +} + +bool Win32Window::Show() { + return ShowWindow(window_handle_, SW_SHOWNORMAL); +} + +// static +LRESULT CALLBACK Win32Window::WndProc(HWND const window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + if (message == WM_NCCREATE) { + auto window_struct = reinterpret_cast(lparam); + SetWindowLongPtr(window, GWLP_USERDATA, + reinterpret_cast(window_struct->lpCreateParams)); + + auto that = static_cast(window_struct->lpCreateParams); + EnableFullDpiSupportIfAvailable(window); + that->window_handle_ = window; + } else if (Win32Window* that = GetThisFromHandle(window)) { + return that->MessageHandler(window, message, wparam, lparam); + } + + return DefWindowProc(window, message, wparam, lparam); +} + +LRESULT +Win32Window::MessageHandler(HWND hwnd, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + switch (message) { + case WM_DESTROY: + window_handle_ = nullptr; + Destroy(); + if (quit_on_close_) { + PostQuitMessage(0); + } + return 0; + + case WM_DPICHANGED: { + auto newRectSize = reinterpret_cast(lparam); + LONG newWidth = newRectSize->right - newRectSize->left; + LONG newHeight = newRectSize->bottom - newRectSize->top; + + SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth, + newHeight, SWP_NOZORDER | SWP_NOACTIVATE); + + return 0; + } + case WM_SIZE: { + RECT rect = GetClientArea(); + if (child_content_ != nullptr) { + // Size and position the child window. + MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left, + rect.bottom - rect.top, TRUE); + } + return 0; + } + + case WM_ACTIVATE: + if (child_content_ != nullptr) { + SetFocus(child_content_); + } + return 0; + + case WM_DWMCOLORIZATIONCOLORCHANGED: + UpdateTheme(hwnd); + return 0; + } + + return DefWindowProc(window_handle_, message, wparam, lparam); +} + +void Win32Window::Destroy() { + OnDestroy(); + + if (window_handle_) { + DestroyWindow(window_handle_); + window_handle_ = nullptr; + } + if (g_active_window_count == 0) { + WindowClassRegistrar::GetInstance()->UnregisterWindowClass(); + } +} + +Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept { + return reinterpret_cast( + GetWindowLongPtr(window, GWLP_USERDATA)); +} + +void Win32Window::SetChildContent(HWND content) { + child_content_ = content; + SetParent(content, window_handle_); + RECT frame = GetClientArea(); + + MoveWindow(content, frame.left, frame.top, frame.right - frame.left, + frame.bottom - frame.top, true); + + SetFocus(child_content_); +} + +RECT Win32Window::GetClientArea() { + RECT frame; + GetClientRect(window_handle_, &frame); + return frame; +} + +HWND Win32Window::GetHandle() { + return window_handle_; +} + +void Win32Window::SetQuitOnClose(bool quit_on_close) { + quit_on_close_ = quit_on_close; +} + +bool Win32Window::OnCreate() { + // No-op; provided for subclasses. + return true; +} + +void Win32Window::OnDestroy() { + // No-op; provided for subclasses. +} + +void Win32Window::UpdateTheme(HWND const window) { + DWORD light_mode; + DWORD light_mode_size = sizeof(light_mode); + LSTATUS result = RegGetValue(HKEY_CURRENT_USER, kGetPreferredBrightnessRegKey, + kGetPreferredBrightnessRegValue, + RRF_RT_REG_DWORD, nullptr, &light_mode, + &light_mode_size); + + if (result == ERROR_SUCCESS) { + BOOL enable_dark_mode = light_mode == 0; + DwmSetWindowAttribute(window, DWMWA_USE_IMMERSIVE_DARK_MODE, + &enable_dark_mode, sizeof(enable_dark_mode)); + } +} diff --git a/windows/runner/win32_window.h b/windows/runner/win32_window.h new file mode 100644 index 0000000..e901dde --- /dev/null +++ b/windows/runner/win32_window.h @@ -0,0 +1,102 @@ +#ifndef RUNNER_WIN32_WINDOW_H_ +#define RUNNER_WIN32_WINDOW_H_ + +#include + +#include +#include +#include + +// A class abstraction for a high DPI-aware Win32 Window. Intended to be +// inherited from by classes that wish to specialize with custom +// rendering and input handling +class Win32Window { + public: + struct Point { + unsigned int x; + unsigned int y; + Point(unsigned int x, unsigned int y) : x(x), y(y) {} + }; + + struct Size { + unsigned int width; + unsigned int height; + Size(unsigned int width, unsigned int height) + : width(width), height(height) {} + }; + + Win32Window(); + virtual ~Win32Window(); + + // Creates a win32 window with |title| that is positioned and sized using + // |origin| and |size|. New windows are created on the default monitor. Window + // sizes are specified to the OS in physical pixels, hence to ensure a + // consistent size this function will scale the inputted width and height as + // as appropriate for the default monitor. The window is invisible until + // |Show| is called. Returns true if the window was created successfully. + bool Create(const std::wstring& title, const Point& origin, const Size& size); + + // Show the current window. Returns true if the window was successfully shown. + bool Show(); + + // Release OS resources associated with window. + void Destroy(); + + // Inserts |content| into the window tree. + void SetChildContent(HWND content); + + // Returns the backing Window handle to enable clients to set icon and other + // window properties. Returns nullptr if the window has been destroyed. + HWND GetHandle(); + + // If true, closing this window will quit the application. + void SetQuitOnClose(bool quit_on_close); + + // Return a RECT representing the bounds of the current client area. + RECT GetClientArea(); + + protected: + // Processes and route salient window messages for mouse handling, + // size change and DPI. Delegates handling of these to member overloads that + // inheriting classes can handle. + virtual LRESULT MessageHandler(HWND window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept; + + // Called when CreateAndShow is called, allowing subclass window-related + // setup. Subclasses should return false if setup fails. + virtual bool OnCreate(); + + // Called when Destroy is called. + virtual void OnDestroy(); + + private: + friend class WindowClassRegistrar; + + // OS callback called by message pump. Handles the WM_NCCREATE message which + // is passed when the non-client area is being created and enables automatic + // non-client DPI scaling so that the non-client area automatically + // responds to changes in DPI. All other messages are handled by + // MessageHandler. + static LRESULT CALLBACK WndProc(HWND const window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept; + + // Retrieves a class instance pointer for |window| + static Win32Window* GetThisFromHandle(HWND const window) noexcept; + + // Update the window frame's theme to match the system theme. + static void UpdateTheme(HWND const window); + + bool quit_on_close_ = false; + + // window handle for top level window. + HWND window_handle_ = nullptr; + + // window handle for hosted content. + HWND child_content_ = nullptr; +}; + +#endif // RUNNER_WIN32_WINDOW_H_