Compare commits
	
		
			No commits in common. "3e110e2eb5c877275c50007a20388ad05ba9ed6e" and "95f41025f4b662661c2ab4fb0f7857870947dddb" have entirely different histories.
		
	
	
		
			3e110e2eb5
			...
			95f41025f4
		
	
		
							
								
								
									
										24
									
								
								packages/wyatt_crud_bloc/.vscode/extensions.json
									
									
									
									
										vendored
									
									
								
							
							
						
						@ -1,24 +0,0 @@
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
 * Please see the AUTHORS file for details.
 | 
			
		||||
 * 
 | 
			
		||||
 * This program is free software: you can redistribute it and/or modify
 | 
			
		||||
 * it under the terms of the GNU General Public License as published by
 | 
			
		||||
 * the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
 * any later version.
 | 
			
		||||
 * 
 | 
			
		||||
 * This program is distributed in the hope that it will be useful,
 | 
			
		||||
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
 * GNU General Public License for more details.
 | 
			
		||||
 * 
 | 
			
		||||
 * You should have received a copy of the GNU General Public License
 | 
			
		||||
 * along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "recommendations": [
 | 
			
		||||
        "psioniq.psi-header",
 | 
			
		||||
        "blaugold.melos-code"
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										71
									
								
								packages/wyatt_crud_bloc/.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							
							
						
						@ -1,71 +0,0 @@
 | 
			
		||||
{
 | 
			
		||||
    "psi-header.changes-tracking": {
 | 
			
		||||
        "isActive": true
 | 
			
		||||
      },
 | 
			
		||||
      "psi-header.config": {
 | 
			
		||||
        "blankLinesAfter": 1,
 | 
			
		||||
        "forceToTop": true
 | 
			
		||||
      },
 | 
			
		||||
      "psi-header.lang-config": [
 | 
			
		||||
        {
 | 
			
		||||
          "beforeHeader": [
 | 
			
		||||
            "# -*- coding:utf-8 -*-",
 | 
			
		||||
            "#!/usr/bin/env python3"
 | 
			
		||||
          ],
 | 
			
		||||
          "begin": "###",
 | 
			
		||||
          "end": "###",
 | 
			
		||||
          "language": "python",
 | 
			
		||||
          "prefix": "# "
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          "beforeHeader": [
 | 
			
		||||
            "#!/usr/bin/env sh",
 | 
			
		||||
            ""
 | 
			
		||||
          ],
 | 
			
		||||
          "language": "shellscript",
 | 
			
		||||
          "begin": "",
 | 
			
		||||
          "end": "",
 | 
			
		||||
          "prefix": "# "
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          "begin": "",
 | 
			
		||||
          "end": "",
 | 
			
		||||
          "language": "dart",
 | 
			
		||||
          "prefix": "// "
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          "begin": "",
 | 
			
		||||
          "end": "",
 | 
			
		||||
          "language": "yaml",
 | 
			
		||||
          "prefix": "# "
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          "begin": "<!--",
 | 
			
		||||
          "end": "-->",
 | 
			
		||||
          "language": "markdown",
 | 
			
		||||
        },
 | 
			
		||||
      ],
 | 
			
		||||
      "psi-header.templates": [
 | 
			
		||||
        {
 | 
			
		||||
          "language": "*",
 | 
			
		||||
          "template": [
 | 
			
		||||
            "Copyright (C) <<year>> WYATT GROUP",
 | 
			
		||||
            "Please see the AUTHORS file for details.",
 | 
			
		||||
            "",
 | 
			
		||||
            "This program is free software: you can redistribute it and/or modify",
 | 
			
		||||
            "it under the terms of the GNU General Public License as published by",
 | 
			
		||||
            "the Free Software Foundation, either version 3 of the License, or",
 | 
			
		||||
            "any later version.",
 | 
			
		||||
            "",
 | 
			
		||||
            "This program is distributed in the hope that it will be useful,",
 | 
			
		||||
            "but WITHOUT ANY WARRANTY; without even the implied warranty of",
 | 
			
		||||
            "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the",
 | 
			
		||||
            "GNU General Public License for more details.",
 | 
			
		||||
            "",
 | 
			
		||||
            "You should have received a copy of the GNU General Public License",
 | 
			
		||||
            "along with this program. If not, see <https://www.gnu.org/licenses/>."
 | 
			
		||||
          ],
 | 
			
		||||
        }
 | 
			
		||||
      ],
 | 
			
		||||
      "dart.runPubGetOnPubspecChanges": false,
 | 
			
		||||
}
 | 
			
		||||
@ -1,4 +1 @@
 | 
			
		||||
include: package:wyatt_analysis/analysis_options.flutter.yaml
 | 
			
		||||
 | 
			
		||||
analyzer:
 | 
			
		||||
  exclude: "!example/**"
 | 
			
		||||
 | 
			
		||||
@ -1,30 +1,10 @@
 | 
			
		||||
# 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.
 | 
			
		||||
# This file should be version controlled and should not be manually edited.
 | 
			
		||||
 | 
			
		||||
version:
 | 
			
		||||
  revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
 | 
			
		||||
  revision: 5464c5bac742001448fe4fc0597be939379f88ea
 | 
			
		||||
  channel: stable
 | 
			
		||||
 | 
			
		||||
project_type: app
 | 
			
		||||
 | 
			
		||||
# Tracks metadata for the flutter migrate command
 | 
			
		||||
migration:
 | 
			
		||||
  platforms:
 | 
			
		||||
    - platform: root
 | 
			
		||||
      create_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
 | 
			
		||||
      base_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
 | 
			
		||||
    - platform: ios
 | 
			
		||||
      create_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
 | 
			
		||||
      base_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
 | 
			
		||||
 | 
			
		||||
  # 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'
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										34
									
								
								packages/wyatt_crud_bloc/example/ios/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						@ -1,34 +0,0 @@
 | 
			
		||||
**/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
 | 
			
		||||
@ -1,26 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 | 
			
		||||
<plist version="1.0">
 | 
			
		||||
<dict>
 | 
			
		||||
  <key>CFBundleDevelopmentRegion</key>
 | 
			
		||||
  <string>en</string>
 | 
			
		||||
  <key>CFBundleExecutable</key>
 | 
			
		||||
  <string>App</string>
 | 
			
		||||
  <key>CFBundleIdentifier</key>
 | 
			
		||||
  <string>io.flutter.flutter.app</string>
 | 
			
		||||
  <key>CFBundleInfoDictionaryVersion</key>
 | 
			
		||||
  <string>6.0</string>
 | 
			
		||||
  <key>CFBundleName</key>
 | 
			
		||||
  <string>App</string>
 | 
			
		||||
  <key>CFBundlePackageType</key>
 | 
			
		||||
  <string>FMWK</string>
 | 
			
		||||
  <key>CFBundleShortVersionString</key>
 | 
			
		||||
  <string>1.0</string>
 | 
			
		||||
  <key>CFBundleSignature</key>
 | 
			
		||||
  <string>????</string>
 | 
			
		||||
  <key>CFBundleVersion</key>
 | 
			
		||||
  <string>1.0</string>
 | 
			
		||||
  <key>MinimumOSVersion</key>
 | 
			
		||||
  <string>11.0</string>
 | 
			
		||||
</dict>
 | 
			
		||||
</plist>
 | 
			
		||||
@ -1,2 +0,0 @@
 | 
			
		||||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
 | 
			
		||||
#include "Generated.xcconfig"
 | 
			
		||||
@ -1,2 +0,0 @@
 | 
			
		||||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
 | 
			
		||||
#include "Generated.xcconfig"
 | 
			
		||||
@ -1,41 +0,0 @@
 | 
			
		||||
# Uncomment this line to define a global platform for your project
 | 
			
		||||
# platform :ios, '11.0'
 | 
			
		||||
 | 
			
		||||
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
 | 
			
		||||
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
 | 
			
		||||
 | 
			
		||||
project 'Runner', {
 | 
			
		||||
  'Debug' => :debug,
 | 
			
		||||
  'Profile' => :release,
 | 
			
		||||
  'Release' => :release,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
def flutter_root
 | 
			
		||||
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
 | 
			
		||||
  unless File.exist?(generated_xcode_build_settings_path)
 | 
			
		||||
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  File.foreach(generated_xcode_build_settings_path) do |line|
 | 
			
		||||
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
 | 
			
		||||
    return matches[1].strip if matches
 | 
			
		||||
  end
 | 
			
		||||
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
 | 
			
		||||
 | 
			
		||||
flutter_ios_podfile_setup
 | 
			
		||||
 | 
			
		||||
target 'Runner' do
 | 
			
		||||
  use_frameworks!
 | 
			
		||||
  use_modular_headers!
 | 
			
		||||
 | 
			
		||||
  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
post_install do |installer|
 | 
			
		||||
  installer.pods_project.targets.each do |target|
 | 
			
		||||
    flutter_additional_ios_build_settings(target)
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
@ -1,757 +0,0 @@
 | 
			
		||||
PODS:
 | 
			
		||||
  - abseil/algorithm (1.20211102.0):
 | 
			
		||||
    - abseil/algorithm/algorithm (= 1.20211102.0)
 | 
			
		||||
    - abseil/algorithm/container (= 1.20211102.0)
 | 
			
		||||
  - abseil/algorithm/algorithm (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
  - abseil/algorithm/container (1.20211102.0):
 | 
			
		||||
    - abseil/algorithm/algorithm
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
  - abseil/base (1.20211102.0):
 | 
			
		||||
    - abseil/base/atomic_hook (= 1.20211102.0)
 | 
			
		||||
    - abseil/base/base (= 1.20211102.0)
 | 
			
		||||
    - abseil/base/base_internal (= 1.20211102.0)
 | 
			
		||||
    - abseil/base/config (= 1.20211102.0)
 | 
			
		||||
    - abseil/base/core_headers (= 1.20211102.0)
 | 
			
		||||
    - abseil/base/dynamic_annotations (= 1.20211102.0)
 | 
			
		||||
    - abseil/base/endian (= 1.20211102.0)
 | 
			
		||||
    - abseil/base/errno_saver (= 1.20211102.0)
 | 
			
		||||
    - abseil/base/fast_type_id (= 1.20211102.0)
 | 
			
		||||
    - abseil/base/log_severity (= 1.20211102.0)
 | 
			
		||||
    - abseil/base/malloc_internal (= 1.20211102.0)
 | 
			
		||||
    - abseil/base/pretty_function (= 1.20211102.0)
 | 
			
		||||
    - abseil/base/raw_logging_internal (= 1.20211102.0)
 | 
			
		||||
    - abseil/base/spinlock_wait (= 1.20211102.0)
 | 
			
		||||
    - abseil/base/strerror (= 1.20211102.0)
 | 
			
		||||
    - abseil/base/throw_delegate (= 1.20211102.0)
 | 
			
		||||
  - abseil/base/atomic_hook (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
  - abseil/base/base (1.20211102.0):
 | 
			
		||||
    - abseil/base/atomic_hook
 | 
			
		||||
    - abseil/base/base_internal
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/dynamic_annotations
 | 
			
		||||
    - abseil/base/log_severity
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
    - abseil/base/spinlock_wait
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
  - abseil/base/base_internal (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
  - abseil/base/config (1.20211102.0)
 | 
			
		||||
  - abseil/base/core_headers (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
  - abseil/base/dynamic_annotations (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
  - abseil/base/endian (1.20211102.0):
 | 
			
		||||
    - abseil/base/base
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
  - abseil/base/errno_saver (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
  - abseil/base/fast_type_id (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
  - abseil/base/log_severity (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
  - abseil/base/malloc_internal (1.20211102.0):
 | 
			
		||||
    - abseil/base/base
 | 
			
		||||
    - abseil/base/base_internal
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/dynamic_annotations
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
  - abseil/base/pretty_function (1.20211102.0)
 | 
			
		||||
  - abseil/base/raw_logging_internal (1.20211102.0):
 | 
			
		||||
    - abseil/base/atomic_hook
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/log_severity
 | 
			
		||||
  - abseil/base/spinlock_wait (1.20211102.0):
 | 
			
		||||
    - abseil/base/base_internal
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/errno_saver
 | 
			
		||||
  - abseil/base/strerror (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/errno_saver
 | 
			
		||||
  - abseil/base/throw_delegate (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
  - abseil/container/common (1.20211102.0):
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/types/optional
 | 
			
		||||
  - abseil/container/compressed_tuple (1.20211102.0):
 | 
			
		||||
    - abseil/utility/utility
 | 
			
		||||
  - abseil/container/container_memory (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/memory/memory
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/utility/utility
 | 
			
		||||
  - abseil/container/fixed_array (1.20211102.0):
 | 
			
		||||
    - abseil/algorithm/algorithm
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/dynamic_annotations
 | 
			
		||||
    - abseil/base/throw_delegate
 | 
			
		||||
    - abseil/container/compressed_tuple
 | 
			
		||||
    - abseil/memory/memory
 | 
			
		||||
  - abseil/container/flat_hash_map (1.20211102.0):
 | 
			
		||||
    - abseil/algorithm/container
 | 
			
		||||
    - abseil/container/container_memory
 | 
			
		||||
    - abseil/container/hash_function_defaults
 | 
			
		||||
    - abseil/container/raw_hash_map
 | 
			
		||||
    - abseil/memory/memory
 | 
			
		||||
  - abseil/container/hash_function_defaults (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/hash/hash
 | 
			
		||||
    - abseil/strings/cord
 | 
			
		||||
    - abseil/strings/strings
 | 
			
		||||
  - abseil/container/hash_policy_traits (1.20211102.0):
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
  - abseil/container/hashtable_debug_hooks (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
  - abseil/container/hashtablez_sampler (1.20211102.0):
 | 
			
		||||
    - abseil/base/base
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/container/have_sse
 | 
			
		||||
    - abseil/debugging/stacktrace
 | 
			
		||||
    - abseil/memory/memory
 | 
			
		||||
    - abseil/profiling/exponential_biased
 | 
			
		||||
    - abseil/profiling/sample_recorder
 | 
			
		||||
    - abseil/synchronization/synchronization
 | 
			
		||||
    - abseil/utility/utility
 | 
			
		||||
  - abseil/container/have_sse (1.20211102.0)
 | 
			
		||||
  - abseil/container/inlined_vector (1.20211102.0):
 | 
			
		||||
    - abseil/algorithm/algorithm
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/throw_delegate
 | 
			
		||||
    - abseil/container/inlined_vector_internal
 | 
			
		||||
    - abseil/memory/memory
 | 
			
		||||
  - abseil/container/inlined_vector_internal (1.20211102.0):
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/container/compressed_tuple
 | 
			
		||||
    - abseil/memory/memory
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/types/span
 | 
			
		||||
  - abseil/container/layout (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/strings/strings
 | 
			
		||||
    - abseil/types/span
 | 
			
		||||
    - abseil/utility/utility
 | 
			
		||||
  - abseil/container/raw_hash_map (1.20211102.0):
 | 
			
		||||
    - abseil/base/throw_delegate
 | 
			
		||||
    - abseil/container/container_memory
 | 
			
		||||
    - abseil/container/raw_hash_set
 | 
			
		||||
  - abseil/container/raw_hash_set (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/endian
 | 
			
		||||
    - abseil/container/common
 | 
			
		||||
    - abseil/container/compressed_tuple
 | 
			
		||||
    - abseil/container/container_memory
 | 
			
		||||
    - abseil/container/hash_policy_traits
 | 
			
		||||
    - abseil/container/hashtable_debug_hooks
 | 
			
		||||
    - abseil/container/hashtablez_sampler
 | 
			
		||||
    - abseil/container/have_sse
 | 
			
		||||
    - abseil/memory/memory
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/numeric/bits
 | 
			
		||||
    - abseil/utility/utility
 | 
			
		||||
  - abseil/debugging/debugging_internal (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/dynamic_annotations
 | 
			
		||||
    - abseil/base/errno_saver
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
  - abseil/debugging/demangle_internal (1.20211102.0):
 | 
			
		||||
    - abseil/base/base
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
  - abseil/debugging/stacktrace (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/debugging/debugging_internal
 | 
			
		||||
  - abseil/debugging/symbolize (1.20211102.0):
 | 
			
		||||
    - abseil/base/base
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/dynamic_annotations
 | 
			
		||||
    - abseil/base/malloc_internal
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
    - abseil/debugging/debugging_internal
 | 
			
		||||
    - abseil/debugging/demangle_internal
 | 
			
		||||
    - abseil/strings/strings
 | 
			
		||||
  - abseil/functional/bind_front (1.20211102.0):
 | 
			
		||||
    - abseil/base/base_internal
 | 
			
		||||
    - abseil/container/compressed_tuple
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/utility/utility
 | 
			
		||||
  - abseil/functional/function_ref (1.20211102.0):
 | 
			
		||||
    - abseil/base/base_internal
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
  - abseil/hash/city (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/endian
 | 
			
		||||
  - abseil/hash/hash (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/endian
 | 
			
		||||
    - abseil/container/fixed_array
 | 
			
		||||
    - abseil/hash/city
 | 
			
		||||
    - abseil/hash/low_level_hash
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/numeric/int128
 | 
			
		||||
    - abseil/strings/strings
 | 
			
		||||
    - abseil/types/optional
 | 
			
		||||
    - abseil/types/variant
 | 
			
		||||
    - abseil/utility/utility
 | 
			
		||||
  - abseil/hash/low_level_hash (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/endian
 | 
			
		||||
    - abseil/numeric/bits
 | 
			
		||||
    - abseil/numeric/int128
 | 
			
		||||
  - abseil/memory (1.20211102.0):
 | 
			
		||||
    - abseil/memory/memory (= 1.20211102.0)
 | 
			
		||||
  - abseil/memory/memory (1.20211102.0):
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
  - abseil/meta (1.20211102.0):
 | 
			
		||||
    - abseil/meta/type_traits (= 1.20211102.0)
 | 
			
		||||
  - abseil/meta/type_traits (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
  - abseil/numeric/bits (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
  - abseil/numeric/int128 (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/numeric/bits
 | 
			
		||||
  - abseil/numeric/representation (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
  - abseil/profiling/exponential_biased (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
  - abseil/profiling/sample_recorder (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/synchronization/synchronization
 | 
			
		||||
    - abseil/time/time
 | 
			
		||||
  - abseil/random/distributions (1.20211102.0):
 | 
			
		||||
    - abseil/base/base_internal
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/numeric/bits
 | 
			
		||||
    - abseil/random/internal/distribution_caller
 | 
			
		||||
    - abseil/random/internal/fast_uniform_bits
 | 
			
		||||
    - abseil/random/internal/fastmath
 | 
			
		||||
    - abseil/random/internal/generate_real
 | 
			
		||||
    - abseil/random/internal/iostream_state_saver
 | 
			
		||||
    - abseil/random/internal/traits
 | 
			
		||||
    - abseil/random/internal/uniform_helper
 | 
			
		||||
    - abseil/random/internal/wide_multiply
 | 
			
		||||
    - abseil/strings/strings
 | 
			
		||||
  - abseil/random/internal/distribution_caller (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/fast_type_id
 | 
			
		||||
    - abseil/utility/utility
 | 
			
		||||
  - abseil/random/internal/fast_uniform_bits (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
  - abseil/random/internal/fastmath (1.20211102.0):
 | 
			
		||||
    - abseil/numeric/bits
 | 
			
		||||
  - abseil/random/internal/generate_real (1.20211102.0):
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/numeric/bits
 | 
			
		||||
    - abseil/random/internal/fastmath
 | 
			
		||||
    - abseil/random/internal/traits
 | 
			
		||||
  - abseil/random/internal/iostream_state_saver (1.20211102.0):
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/numeric/int128
 | 
			
		||||
  - abseil/random/internal/nonsecure_base (1.20211102.0):
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/random/internal/pool_urbg
 | 
			
		||||
    - abseil/random/internal/salted_seed_seq
 | 
			
		||||
    - abseil/random/internal/seed_material
 | 
			
		||||
    - abseil/types/optional
 | 
			
		||||
    - abseil/types/span
 | 
			
		||||
  - abseil/random/internal/pcg_engine (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/numeric/bits
 | 
			
		||||
    - abseil/numeric/int128
 | 
			
		||||
    - abseil/random/internal/fastmath
 | 
			
		||||
    - abseil/random/internal/iostream_state_saver
 | 
			
		||||
  - abseil/random/internal/platform (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
  - abseil/random/internal/pool_urbg (1.20211102.0):
 | 
			
		||||
    - abseil/base/base
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/endian
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
    - abseil/random/internal/randen
 | 
			
		||||
    - abseil/random/internal/seed_material
 | 
			
		||||
    - abseil/random/internal/traits
 | 
			
		||||
    - abseil/random/seed_gen_exception
 | 
			
		||||
    - abseil/types/span
 | 
			
		||||
  - abseil/random/internal/randen (1.20211102.0):
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
    - abseil/random/internal/platform
 | 
			
		||||
    - abseil/random/internal/randen_hwaes
 | 
			
		||||
    - abseil/random/internal/randen_slow
 | 
			
		||||
  - abseil/random/internal/randen_engine (1.20211102.0):
 | 
			
		||||
    - abseil/base/endian
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/random/internal/iostream_state_saver
 | 
			
		||||
    - abseil/random/internal/randen
 | 
			
		||||
  - abseil/random/internal/randen_hwaes (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/random/internal/platform
 | 
			
		||||
    - abseil/random/internal/randen_hwaes_impl
 | 
			
		||||
  - abseil/random/internal/randen_hwaes_impl (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/numeric/int128
 | 
			
		||||
    - abseil/random/internal/platform
 | 
			
		||||
  - abseil/random/internal/randen_slow (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/endian
 | 
			
		||||
    - abseil/numeric/int128
 | 
			
		||||
    - abseil/random/internal/platform
 | 
			
		||||
  - abseil/random/internal/salted_seed_seq (1.20211102.0):
 | 
			
		||||
    - abseil/container/inlined_vector
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/random/internal/seed_material
 | 
			
		||||
    - abseil/types/optional
 | 
			
		||||
    - abseil/types/span
 | 
			
		||||
  - abseil/random/internal/seed_material (1.20211102.0):
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/dynamic_annotations
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
    - abseil/random/internal/fast_uniform_bits
 | 
			
		||||
    - abseil/strings/strings
 | 
			
		||||
    - abseil/types/optional
 | 
			
		||||
    - abseil/types/span
 | 
			
		||||
  - abseil/random/internal/traits (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
  - abseil/random/internal/uniform_helper (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/random/internal/traits
 | 
			
		||||
  - abseil/random/internal/wide_multiply (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/numeric/bits
 | 
			
		||||
    - abseil/numeric/int128
 | 
			
		||||
    - abseil/random/internal/traits
 | 
			
		||||
  - abseil/random/random (1.20211102.0):
 | 
			
		||||
    - abseil/random/distributions
 | 
			
		||||
    - abseil/random/internal/nonsecure_base
 | 
			
		||||
    - abseil/random/internal/pcg_engine
 | 
			
		||||
    - abseil/random/internal/pool_urbg
 | 
			
		||||
    - abseil/random/internal/randen_engine
 | 
			
		||||
    - abseil/random/seed_sequences
 | 
			
		||||
  - abseil/random/seed_gen_exception (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
  - abseil/random/seed_sequences (1.20211102.0):
 | 
			
		||||
    - abseil/container/inlined_vector
 | 
			
		||||
    - abseil/random/internal/nonsecure_base
 | 
			
		||||
    - abseil/random/internal/pool_urbg
 | 
			
		||||
    - abseil/random/internal/salted_seed_seq
 | 
			
		||||
    - abseil/random/internal/seed_material
 | 
			
		||||
    - abseil/random/seed_gen_exception
 | 
			
		||||
    - abseil/types/span
 | 
			
		||||
  - abseil/status/status (1.20211102.0):
 | 
			
		||||
    - abseil/base/atomic_hook
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
    - abseil/container/inlined_vector
 | 
			
		||||
    - abseil/debugging/stacktrace
 | 
			
		||||
    - abseil/debugging/symbolize
 | 
			
		||||
    - abseil/functional/function_ref
 | 
			
		||||
    - abseil/strings/cord
 | 
			
		||||
    - abseil/strings/str_format
 | 
			
		||||
    - abseil/strings/strings
 | 
			
		||||
    - abseil/types/optional
 | 
			
		||||
  - abseil/status/statusor (1.20211102.0):
 | 
			
		||||
    - abseil/base/base
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/status/status
 | 
			
		||||
    - abseil/strings/strings
 | 
			
		||||
    - abseil/types/variant
 | 
			
		||||
    - abseil/utility/utility
 | 
			
		||||
  - abseil/strings/cord (1.20211102.0):
 | 
			
		||||
    - abseil/base/base
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/endian
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
    - abseil/container/fixed_array
 | 
			
		||||
    - abseil/container/inlined_vector
 | 
			
		||||
    - abseil/functional/function_ref
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/strings/cord_internal
 | 
			
		||||
    - abseil/strings/cordz_functions
 | 
			
		||||
    - abseil/strings/cordz_info
 | 
			
		||||
    - abseil/strings/cordz_statistics
 | 
			
		||||
    - abseil/strings/cordz_update_scope
 | 
			
		||||
    - abseil/strings/cordz_update_tracker
 | 
			
		||||
    - abseil/strings/internal
 | 
			
		||||
    - abseil/strings/str_format
 | 
			
		||||
    - abseil/strings/strings
 | 
			
		||||
    - abseil/types/optional
 | 
			
		||||
  - abseil/strings/cord_internal (1.20211102.0):
 | 
			
		||||
    - abseil/base/base_internal
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/endian
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
    - abseil/base/throw_delegate
 | 
			
		||||
    - abseil/container/compressed_tuple
 | 
			
		||||
    - abseil/container/inlined_vector
 | 
			
		||||
    - abseil/container/layout
 | 
			
		||||
    - abseil/functional/function_ref
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/strings/strings
 | 
			
		||||
    - abseil/types/span
 | 
			
		||||
  - abseil/strings/cordz_functions (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
    - abseil/profiling/exponential_biased
 | 
			
		||||
  - abseil/strings/cordz_handle (1.20211102.0):
 | 
			
		||||
    - abseil/base/base
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
    - abseil/synchronization/synchronization
 | 
			
		||||
  - abseil/strings/cordz_info (1.20211102.0):
 | 
			
		||||
    - abseil/base/base
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
    - abseil/container/inlined_vector
 | 
			
		||||
    - abseil/debugging/stacktrace
 | 
			
		||||
    - abseil/strings/cord_internal
 | 
			
		||||
    - abseil/strings/cordz_functions
 | 
			
		||||
    - abseil/strings/cordz_handle
 | 
			
		||||
    - abseil/strings/cordz_statistics
 | 
			
		||||
    - abseil/strings/cordz_update_tracker
 | 
			
		||||
    - abseil/synchronization/synchronization
 | 
			
		||||
    - abseil/types/span
 | 
			
		||||
  - abseil/strings/cordz_statistics (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/strings/cordz_update_tracker
 | 
			
		||||
  - abseil/strings/cordz_update_scope (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/strings/cord_internal
 | 
			
		||||
    - abseil/strings/cordz_info
 | 
			
		||||
    - abseil/strings/cordz_update_tracker
 | 
			
		||||
  - abseil/strings/cordz_update_tracker (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
  - abseil/strings/internal (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/endian
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
  - abseil/strings/str_format (1.20211102.0):
 | 
			
		||||
    - abseil/strings/str_format_internal
 | 
			
		||||
  - abseil/strings/str_format_internal (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/functional/function_ref
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/numeric/bits
 | 
			
		||||
    - abseil/numeric/int128
 | 
			
		||||
    - abseil/numeric/representation
 | 
			
		||||
    - abseil/strings/strings
 | 
			
		||||
    - abseil/types/optional
 | 
			
		||||
    - abseil/types/span
 | 
			
		||||
  - abseil/strings/strings (1.20211102.0):
 | 
			
		||||
    - abseil/base/base
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/endian
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
    - abseil/base/throw_delegate
 | 
			
		||||
    - abseil/memory/memory
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/numeric/bits
 | 
			
		||||
    - abseil/numeric/int128
 | 
			
		||||
    - abseil/strings/internal
 | 
			
		||||
  - abseil/synchronization/graphcycles_internal (1.20211102.0):
 | 
			
		||||
    - abseil/base/base
 | 
			
		||||
    - abseil/base/base_internal
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/malloc_internal
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
  - abseil/synchronization/kernel_timeout_internal (1.20211102.0):
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
    - abseil/time/time
 | 
			
		||||
  - abseil/synchronization/synchronization (1.20211102.0):
 | 
			
		||||
    - abseil/base/atomic_hook
 | 
			
		||||
    - abseil/base/base
 | 
			
		||||
    - abseil/base/base_internal
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/dynamic_annotations
 | 
			
		||||
    - abseil/base/malloc_internal
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
    - abseil/debugging/stacktrace
 | 
			
		||||
    - abseil/debugging/symbolize
 | 
			
		||||
    - abseil/synchronization/graphcycles_internal
 | 
			
		||||
    - abseil/synchronization/kernel_timeout_internal
 | 
			
		||||
    - abseil/time/time
 | 
			
		||||
  - abseil/time (1.20211102.0):
 | 
			
		||||
    - abseil/time/internal (= 1.20211102.0)
 | 
			
		||||
    - abseil/time/time (= 1.20211102.0)
 | 
			
		||||
  - abseil/time/internal (1.20211102.0):
 | 
			
		||||
    - abseil/time/internal/cctz (= 1.20211102.0)
 | 
			
		||||
  - abseil/time/internal/cctz (1.20211102.0):
 | 
			
		||||
    - abseil/time/internal/cctz/civil_time (= 1.20211102.0)
 | 
			
		||||
    - abseil/time/internal/cctz/time_zone (= 1.20211102.0)
 | 
			
		||||
  - abseil/time/internal/cctz/civil_time (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
  - abseil/time/internal/cctz/time_zone (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/time/internal/cctz/civil_time
 | 
			
		||||
  - abseil/time/time (1.20211102.0):
 | 
			
		||||
    - abseil/base/base
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
    - abseil/numeric/int128
 | 
			
		||||
    - abseil/strings/strings
 | 
			
		||||
    - abseil/time/internal/cctz/civil_time
 | 
			
		||||
    - abseil/time/internal/cctz/time_zone
 | 
			
		||||
  - abseil/types (1.20211102.0):
 | 
			
		||||
    - abseil/types/any (= 1.20211102.0)
 | 
			
		||||
    - abseil/types/bad_any_cast (= 1.20211102.0)
 | 
			
		||||
    - abseil/types/bad_any_cast_impl (= 1.20211102.0)
 | 
			
		||||
    - abseil/types/bad_optional_access (= 1.20211102.0)
 | 
			
		||||
    - abseil/types/bad_variant_access (= 1.20211102.0)
 | 
			
		||||
    - abseil/types/compare (= 1.20211102.0)
 | 
			
		||||
    - abseil/types/optional (= 1.20211102.0)
 | 
			
		||||
    - abseil/types/span (= 1.20211102.0)
 | 
			
		||||
    - abseil/types/variant (= 1.20211102.0)
 | 
			
		||||
  - abseil/types/any (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/fast_type_id
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/types/bad_any_cast
 | 
			
		||||
    - abseil/utility/utility
 | 
			
		||||
  - abseil/types/bad_any_cast (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/types/bad_any_cast_impl
 | 
			
		||||
  - abseil/types/bad_any_cast_impl (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
  - abseil/types/bad_optional_access (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
  - abseil/types/bad_variant_access (1.20211102.0):
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/raw_logging_internal
 | 
			
		||||
  - abseil/types/compare (1.20211102.0):
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
  - abseil/types/optional (1.20211102.0):
 | 
			
		||||
    - abseil/base/base_internal
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/memory/memory
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/types/bad_optional_access
 | 
			
		||||
    - abseil/utility/utility
 | 
			
		||||
  - abseil/types/span (1.20211102.0):
 | 
			
		||||
    - abseil/algorithm/algorithm
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/base/throw_delegate
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
  - abseil/types/variant (1.20211102.0):
 | 
			
		||||
    - abseil/base/base_internal
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/base/core_headers
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
    - abseil/types/bad_variant_access
 | 
			
		||||
    - abseil/utility/utility
 | 
			
		||||
  - abseil/utility/utility (1.20211102.0):
 | 
			
		||||
    - abseil/base/base_internal
 | 
			
		||||
    - abseil/base/config
 | 
			
		||||
    - abseil/meta/type_traits
 | 
			
		||||
  - BoringSSL-GRPC (0.0.24):
 | 
			
		||||
    - BoringSSL-GRPC/Implementation (= 0.0.24)
 | 
			
		||||
    - BoringSSL-GRPC/Interface (= 0.0.24)
 | 
			
		||||
  - BoringSSL-GRPC/Implementation (0.0.24):
 | 
			
		||||
    - BoringSSL-GRPC/Interface (= 0.0.24)
 | 
			
		||||
  - BoringSSL-GRPC/Interface (0.0.24)
 | 
			
		||||
  - cloud_firestore (4.0.5):
 | 
			
		||||
    - Firebase/Firestore (= 10.1.0)
 | 
			
		||||
    - firebase_core
 | 
			
		||||
    - Flutter
 | 
			
		||||
    - nanopb (< 2.30910.0, >= 2.30908.0)
 | 
			
		||||
  - Firebase/CoreOnly (10.1.0):
 | 
			
		||||
    - FirebaseCore (= 10.1.0)
 | 
			
		||||
  - Firebase/Firestore (10.1.0):
 | 
			
		||||
    - Firebase/CoreOnly
 | 
			
		||||
    - FirebaseFirestore (~> 10.1.0)
 | 
			
		||||
  - firebase_core (2.2.0):
 | 
			
		||||
    - Firebase/CoreOnly (= 10.1.0)
 | 
			
		||||
    - Flutter
 | 
			
		||||
  - FirebaseCore (10.1.0):
 | 
			
		||||
    - FirebaseCoreInternal (~> 10.0)
 | 
			
		||||
    - GoogleUtilities/Environment (~> 7.8)
 | 
			
		||||
    - GoogleUtilities/Logger (~> 7.8)
 | 
			
		||||
  - FirebaseCoreInternal (10.1.0):
 | 
			
		||||
    - "GoogleUtilities/NSData+zlib (~> 7.8)"
 | 
			
		||||
  - FirebaseFirestore (10.1.0):
 | 
			
		||||
    - abseil/algorithm (~> 1.20211102.0)
 | 
			
		||||
    - abseil/base (~> 1.20211102.0)
 | 
			
		||||
    - abseil/container/flat_hash_map (~> 1.20211102.0)
 | 
			
		||||
    - abseil/memory (~> 1.20211102.0)
 | 
			
		||||
    - abseil/meta (~> 1.20211102.0)
 | 
			
		||||
    - abseil/strings/strings (~> 1.20211102.0)
 | 
			
		||||
    - abseil/time (~> 1.20211102.0)
 | 
			
		||||
    - abseil/types (~> 1.20211102.0)
 | 
			
		||||
    - FirebaseCore (~> 10.0)
 | 
			
		||||
    - "gRPC-C++ (~> 1.44.0)"
 | 
			
		||||
    - leveldb-library (~> 1.22)
 | 
			
		||||
    - nanopb (< 2.30910.0, >= 2.30908.0)
 | 
			
		||||
  - Flutter (1.0.0)
 | 
			
		||||
  - GoogleUtilities/Environment (7.8.0):
 | 
			
		||||
    - PromisesObjC (< 3.0, >= 1.2)
 | 
			
		||||
  - GoogleUtilities/Logger (7.8.0):
 | 
			
		||||
    - GoogleUtilities/Environment
 | 
			
		||||
  - "GoogleUtilities/NSData+zlib (7.8.0)"
 | 
			
		||||
  - "gRPC-C++ (1.44.0)":
 | 
			
		||||
    - "gRPC-C++/Implementation (= 1.44.0)"
 | 
			
		||||
    - "gRPC-C++/Interface (= 1.44.0)"
 | 
			
		||||
  - "gRPC-C++/Implementation (1.44.0)":
 | 
			
		||||
    - abseil/base/base (= 1.20211102.0)
 | 
			
		||||
    - abseil/base/core_headers (= 1.20211102.0)
 | 
			
		||||
    - abseil/container/flat_hash_map (= 1.20211102.0)
 | 
			
		||||
    - abseil/container/inlined_vector (= 1.20211102.0)
 | 
			
		||||
    - abseil/functional/bind_front (= 1.20211102.0)
 | 
			
		||||
    - abseil/hash/hash (= 1.20211102.0)
 | 
			
		||||
    - abseil/memory/memory (= 1.20211102.0)
 | 
			
		||||
    - abseil/random/random (= 1.20211102.0)
 | 
			
		||||
    - abseil/status/status (= 1.20211102.0)
 | 
			
		||||
    - abseil/status/statusor (= 1.20211102.0)
 | 
			
		||||
    - abseil/strings/cord (= 1.20211102.0)
 | 
			
		||||
    - abseil/strings/str_format (= 1.20211102.0)
 | 
			
		||||
    - abseil/strings/strings (= 1.20211102.0)
 | 
			
		||||
    - abseil/synchronization/synchronization (= 1.20211102.0)
 | 
			
		||||
    - abseil/time/time (= 1.20211102.0)
 | 
			
		||||
    - abseil/types/optional (= 1.20211102.0)
 | 
			
		||||
    - abseil/types/variant (= 1.20211102.0)
 | 
			
		||||
    - abseil/utility/utility (= 1.20211102.0)
 | 
			
		||||
    - "gRPC-C++/Interface (= 1.44.0)"
 | 
			
		||||
    - gRPC-Core (= 1.44.0)
 | 
			
		||||
  - "gRPC-C++/Interface (1.44.0)"
 | 
			
		||||
  - gRPC-Core (1.44.0):
 | 
			
		||||
    - gRPC-Core/Implementation (= 1.44.0)
 | 
			
		||||
    - gRPC-Core/Interface (= 1.44.0)
 | 
			
		||||
  - gRPC-Core/Implementation (1.44.0):
 | 
			
		||||
    - abseil/base/base (= 1.20211102.0)
 | 
			
		||||
    - abseil/base/core_headers (= 1.20211102.0)
 | 
			
		||||
    - abseil/container/flat_hash_map (= 1.20211102.0)
 | 
			
		||||
    - abseil/container/inlined_vector (= 1.20211102.0)
 | 
			
		||||
    - abseil/functional/bind_front (= 1.20211102.0)
 | 
			
		||||
    - abseil/hash/hash (= 1.20211102.0)
 | 
			
		||||
    - abseil/memory/memory (= 1.20211102.0)
 | 
			
		||||
    - abseil/random/random (= 1.20211102.0)
 | 
			
		||||
    - abseil/status/status (= 1.20211102.0)
 | 
			
		||||
    - abseil/status/statusor (= 1.20211102.0)
 | 
			
		||||
    - abseil/strings/cord (= 1.20211102.0)
 | 
			
		||||
    - abseil/strings/str_format (= 1.20211102.0)
 | 
			
		||||
    - abseil/strings/strings (= 1.20211102.0)
 | 
			
		||||
    - abseil/synchronization/synchronization (= 1.20211102.0)
 | 
			
		||||
    - abseil/time/time (= 1.20211102.0)
 | 
			
		||||
    - abseil/types/optional (= 1.20211102.0)
 | 
			
		||||
    - abseil/types/variant (= 1.20211102.0)
 | 
			
		||||
    - abseil/utility/utility (= 1.20211102.0)
 | 
			
		||||
    - BoringSSL-GRPC (= 0.0.24)
 | 
			
		||||
    - gRPC-Core/Interface (= 1.44.0)
 | 
			
		||||
    - Libuv-gRPC (= 0.0.10)
 | 
			
		||||
  - gRPC-Core/Interface (1.44.0)
 | 
			
		||||
  - leveldb-library (1.22.1)
 | 
			
		||||
  - Libuv-gRPC (0.0.10):
 | 
			
		||||
    - Libuv-gRPC/Implementation (= 0.0.10)
 | 
			
		||||
    - Libuv-gRPC/Interface (= 0.0.10)
 | 
			
		||||
  - Libuv-gRPC/Implementation (0.0.10):
 | 
			
		||||
    - Libuv-gRPC/Interface (= 0.0.10)
 | 
			
		||||
  - Libuv-gRPC/Interface (0.0.10)
 | 
			
		||||
  - nanopb (2.30909.0):
 | 
			
		||||
    - nanopb/decode (= 2.30909.0)
 | 
			
		||||
    - nanopb/encode (= 2.30909.0)
 | 
			
		||||
  - nanopb/decode (2.30909.0)
 | 
			
		||||
  - nanopb/encode (2.30909.0)
 | 
			
		||||
  - PromisesObjC (2.1.1)
 | 
			
		||||
 | 
			
		||||
DEPENDENCIES:
 | 
			
		||||
  - cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)
 | 
			
		||||
  - firebase_core (from `.symlinks/plugins/firebase_core/ios`)
 | 
			
		||||
  - Flutter (from `Flutter`)
 | 
			
		||||
 | 
			
		||||
SPEC REPOS:
 | 
			
		||||
  trunk:
 | 
			
		||||
    - abseil
 | 
			
		||||
    - BoringSSL-GRPC
 | 
			
		||||
    - Firebase
 | 
			
		||||
    - FirebaseCore
 | 
			
		||||
    - FirebaseCoreInternal
 | 
			
		||||
    - FirebaseFirestore
 | 
			
		||||
    - GoogleUtilities
 | 
			
		||||
    - "gRPC-C++"
 | 
			
		||||
    - gRPC-Core
 | 
			
		||||
    - leveldb-library
 | 
			
		||||
    - Libuv-gRPC
 | 
			
		||||
    - nanopb
 | 
			
		||||
    - PromisesObjC
 | 
			
		||||
 | 
			
		||||
EXTERNAL SOURCES:
 | 
			
		||||
  cloud_firestore:
 | 
			
		||||
    :path: ".symlinks/plugins/cloud_firestore/ios"
 | 
			
		||||
  firebase_core:
 | 
			
		||||
    :path: ".symlinks/plugins/firebase_core/ios"
 | 
			
		||||
  Flutter:
 | 
			
		||||
    :path: Flutter
 | 
			
		||||
 | 
			
		||||
SPEC CHECKSUMS:
 | 
			
		||||
  abseil: ebe5b5529fb05d93a8bdb7951607be08b7fa71bc
 | 
			
		||||
  BoringSSL-GRPC: 3175b25143e648463a56daeaaa499c6cb86dad33
 | 
			
		||||
  cloud_firestore: 345ab5f423db6ae492abb648372156bdccb9df42
 | 
			
		||||
  Firebase: 444b35a9c568a516666213c2f6cccd10cb12559f
 | 
			
		||||
  firebase_core: d2242c6f318db1d0dcecfbfa491e943337b0d755
 | 
			
		||||
  FirebaseCore: 55e7ae35991ccca4db03ff8d8df6ed5f17a3e4c7
 | 
			
		||||
  FirebaseCoreInternal: 96d75228e10fd369564da51bd898414eb0f54df5
 | 
			
		||||
  FirebaseFirestore: d482e5e0f95dba8ef5d499a7efa87ba2f56ef0c0
 | 
			
		||||
  Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
 | 
			
		||||
  GoogleUtilities: 1d20a6ad97ef46f67bbdec158ce00563a671ebb7
 | 
			
		||||
  "gRPC-C++": 9675f953ace2b3de7c506039d77be1f2e77a8db2
 | 
			
		||||
  gRPC-Core: 943e491cb0d45598b0b0eb9e910c88080369290b
 | 
			
		||||
  leveldb-library: 50c7b45cbd7bf543c81a468fe557a16ae3db8729
 | 
			
		||||
  Libuv-gRPC: 55e51798e14ef436ad9bc45d12d43b77b49df378
 | 
			
		||||
  nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431
 | 
			
		||||
  PromisesObjC: ab77feca74fa2823e7af4249b8326368e61014cb
 | 
			
		||||
 | 
			
		||||
PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
 | 
			
		||||
 | 
			
		||||
COCOAPODS: 1.11.3
 | 
			
		||||
@ -1,552 +0,0 @@
 | 
			
		||||
// !$*UTF8*$!
 | 
			
		||||
{
 | 
			
		||||
	archiveVersion = 1;
 | 
			
		||||
	classes = {
 | 
			
		||||
	};
 | 
			
		||||
	objectVersion = 50;
 | 
			
		||||
	objects = {
 | 
			
		||||
 | 
			
		||||
/* Begin PBXBuildFile section */
 | 
			
		||||
		1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
 | 
			
		||||
		2D3BF4E90FD3D66E6379652C /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9668B7DCB1C084B61D13F13B /* Pods_Runner.framework */; };
 | 
			
		||||
		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 PBXCopyFilesBuildPhase section */
 | 
			
		||||
		9705A1C41CF9048500538489 /* Embed Frameworks */ = {
 | 
			
		||||
			isa = PBXCopyFilesBuildPhase;
 | 
			
		||||
			buildActionMask = 2147483647;
 | 
			
		||||
			dstPath = "";
 | 
			
		||||
			dstSubfolderSpec = 10;
 | 
			
		||||
			files = (
 | 
			
		||||
			);
 | 
			
		||||
			name = "Embed Frameworks";
 | 
			
		||||
			runOnlyForDeploymentPostprocessing = 0;
 | 
			
		||||
		};
 | 
			
		||||
/* End PBXCopyFilesBuildPhase section */
 | 
			
		||||
 | 
			
		||||
/* Begin PBXFileReference section */
 | 
			
		||||
		04335B06475E8C2B1917681C /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
 | 
			
		||||
		0A79DE27E9F9DDADA3D915D2 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
 | 
			
		||||
		1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
 | 
			
		||||
		1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
 | 
			
		||||
		3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
 | 
			
		||||
		74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
 | 
			
		||||
		74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
 | 
			
		||||
		7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
 | 
			
		||||
		8D3EFC6842916D850020C95C /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
 | 
			
		||||
		9668B7DCB1C084B61D13F13B /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
 | 
			
		||||
		9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
 | 
			
		||||
		9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
 | 
			
		||||
		97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
 | 
			
		||||
		97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
 | 
			
		||||
		97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
 | 
			
		||||
		97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
 | 
			
		||||
		97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
 | 
			
		||||
/* End PBXFileReference section */
 | 
			
		||||
 | 
			
		||||
/* Begin PBXFrameworksBuildPhase section */
 | 
			
		||||
		97C146EB1CF9000F007C117D /* Frameworks */ = {
 | 
			
		||||
			isa = PBXFrameworksBuildPhase;
 | 
			
		||||
			buildActionMask = 2147483647;
 | 
			
		||||
			files = (
 | 
			
		||||
				2D3BF4E90FD3D66E6379652C /* Pods_Runner.framework in Frameworks */,
 | 
			
		||||
			);
 | 
			
		||||
			runOnlyForDeploymentPostprocessing = 0;
 | 
			
		||||
		};
 | 
			
		||||
/* End PBXFrameworksBuildPhase section */
 | 
			
		||||
 | 
			
		||||
/* Begin PBXGroup section */
 | 
			
		||||
		32816CF134A5ECA965EE4EF3 /* Pods */ = {
 | 
			
		||||
			isa = PBXGroup;
 | 
			
		||||
			children = (
 | 
			
		||||
				0A79DE27E9F9DDADA3D915D2 /* Pods-Runner.debug.xcconfig */,
 | 
			
		||||
				04335B06475E8C2B1917681C /* Pods-Runner.release.xcconfig */,
 | 
			
		||||
				8D3EFC6842916D850020C95C /* Pods-Runner.profile.xcconfig */,
 | 
			
		||||
			);
 | 
			
		||||
			name = Pods;
 | 
			
		||||
			path = Pods;
 | 
			
		||||
			sourceTree = "<group>";
 | 
			
		||||
		};
 | 
			
		||||
		9740EEB11CF90186004384FC /* Flutter */ = {
 | 
			
		||||
			isa = PBXGroup;
 | 
			
		||||
			children = (
 | 
			
		||||
				3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
 | 
			
		||||
				9740EEB21CF90195004384FC /* Debug.xcconfig */,
 | 
			
		||||
				7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
 | 
			
		||||
				9740EEB31CF90195004384FC /* Generated.xcconfig */,
 | 
			
		||||
			);
 | 
			
		||||
			name = Flutter;
 | 
			
		||||
			sourceTree = "<group>";
 | 
			
		||||
		};
 | 
			
		||||
		97C146E51CF9000F007C117D = {
 | 
			
		||||
			isa = PBXGroup;
 | 
			
		||||
			children = (
 | 
			
		||||
				9740EEB11CF90186004384FC /* Flutter */,
 | 
			
		||||
				97C146F01CF9000F007C117D /* Runner */,
 | 
			
		||||
				97C146EF1CF9000F007C117D /* Products */,
 | 
			
		||||
				32816CF134A5ECA965EE4EF3 /* Pods */,
 | 
			
		||||
				DF1EDFCBAB38011323A8D81B /* Frameworks */,
 | 
			
		||||
			);
 | 
			
		||||
			sourceTree = "<group>";
 | 
			
		||||
		};
 | 
			
		||||
		97C146EF1CF9000F007C117D /* Products */ = {
 | 
			
		||||
			isa = PBXGroup;
 | 
			
		||||
			children = (
 | 
			
		||||
				97C146EE1CF9000F007C117D /* Runner.app */,
 | 
			
		||||
			);
 | 
			
		||||
			name = Products;
 | 
			
		||||
			sourceTree = "<group>";
 | 
			
		||||
		};
 | 
			
		||||
		97C146F01CF9000F007C117D /* Runner */ = {
 | 
			
		||||
			isa = PBXGroup;
 | 
			
		||||
			children = (
 | 
			
		||||
				97C146FA1CF9000F007C117D /* Main.storyboard */,
 | 
			
		||||
				97C146FD1CF9000F007C117D /* Assets.xcassets */,
 | 
			
		||||
				97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
 | 
			
		||||
				97C147021CF9000F007C117D /* Info.plist */,
 | 
			
		||||
				1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
 | 
			
		||||
				1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
 | 
			
		||||
				74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
 | 
			
		||||
				74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
 | 
			
		||||
			);
 | 
			
		||||
			path = Runner;
 | 
			
		||||
			sourceTree = "<group>";
 | 
			
		||||
		};
 | 
			
		||||
		DF1EDFCBAB38011323A8D81B /* Frameworks */ = {
 | 
			
		||||
			isa = PBXGroup;
 | 
			
		||||
			children = (
 | 
			
		||||
				9668B7DCB1C084B61D13F13B /* Pods_Runner.framework */,
 | 
			
		||||
			);
 | 
			
		||||
			name = Frameworks;
 | 
			
		||||
			sourceTree = "<group>";
 | 
			
		||||
		};
 | 
			
		||||
/* End PBXGroup section */
 | 
			
		||||
 | 
			
		||||
/* Begin PBXNativeTarget section */
 | 
			
		||||
		97C146ED1CF9000F007C117D /* Runner */ = {
 | 
			
		||||
			isa = PBXNativeTarget;
 | 
			
		||||
			buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
 | 
			
		||||
			buildPhases = (
 | 
			
		||||
				C454F828EEBC86C10B4E163A /* [CP] Check Pods Manifest.lock */,
 | 
			
		||||
				9740EEB61CF901F6004384FC /* Run Script */,
 | 
			
		||||
				97C146EA1CF9000F007C117D /* Sources */,
 | 
			
		||||
				97C146EB1CF9000F007C117D /* Frameworks */,
 | 
			
		||||
				97C146EC1CF9000F007C117D /* Resources */,
 | 
			
		||||
				9705A1C41CF9048500538489 /* Embed Frameworks */,
 | 
			
		||||
				3B06AD1E1E4923F5004D2608 /* Thin Binary */,
 | 
			
		||||
				897D29AE5A72F625B86D7F66 /* [CP] Embed Pods Frameworks */,
 | 
			
		||||
			);
 | 
			
		||||
			buildRules = (
 | 
			
		||||
			);
 | 
			
		||||
			dependencies = (
 | 
			
		||||
			);
 | 
			
		||||
			name = Runner;
 | 
			
		||||
			productName = Runner;
 | 
			
		||||
			productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
 | 
			
		||||
			productType = "com.apple.product-type.application";
 | 
			
		||||
		};
 | 
			
		||||
/* End PBXNativeTarget section */
 | 
			
		||||
 | 
			
		||||
/* Begin PBXProject section */
 | 
			
		||||
		97C146E61CF9000F007C117D /* Project object */ = {
 | 
			
		||||
			isa = PBXProject;
 | 
			
		||||
			attributes = {
 | 
			
		||||
				LastUpgradeCheck = 1300;
 | 
			
		||||
				ORGANIZATIONNAME = "";
 | 
			
		||||
				TargetAttributes = {
 | 
			
		||||
					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 */,
 | 
			
		||||
			);
 | 
			
		||||
		};
 | 
			
		||||
/* End PBXProject section */
 | 
			
		||||
 | 
			
		||||
/* Begin PBXResourcesBuildPhase section */
 | 
			
		||||
		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;
 | 
			
		||||
			buildActionMask = 2147483647;
 | 
			
		||||
			files = (
 | 
			
		||||
			);
 | 
			
		||||
			inputPaths = (
 | 
			
		||||
			);
 | 
			
		||||
			name = "Thin Binary";
 | 
			
		||||
			outputPaths = (
 | 
			
		||||
			);
 | 
			
		||||
			runOnlyForDeploymentPostprocessing = 0;
 | 
			
		||||
			shellPath = /bin/sh;
 | 
			
		||||
			shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
 | 
			
		||||
		};
 | 
			
		||||
		897D29AE5A72F625B86D7F66 /* [CP] Embed Pods Frameworks */ = {
 | 
			
		||||
			isa = PBXShellScriptBuildPhase;
 | 
			
		||||
			buildActionMask = 2147483647;
 | 
			
		||||
			files = (
 | 
			
		||||
			);
 | 
			
		||||
			inputFileListPaths = (
 | 
			
		||||
				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
 | 
			
		||||
			);
 | 
			
		||||
			name = "[CP] Embed Pods Frameworks";
 | 
			
		||||
			outputFileListPaths = (
 | 
			
		||||
				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
 | 
			
		||||
			);
 | 
			
		||||
			runOnlyForDeploymentPostprocessing = 0;
 | 
			
		||||
			shellPath = /bin/sh;
 | 
			
		||||
			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
 | 
			
		||||
			showEnvVarsInLog = 0;
 | 
			
		||||
		};
 | 
			
		||||
		9740EEB61CF901F6004384FC /* Run Script */ = {
 | 
			
		||||
			isa = PBXShellScriptBuildPhase;
 | 
			
		||||
			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";
 | 
			
		||||
		};
 | 
			
		||||
		C454F828EEBC86C10B4E163A /* [CP] Check Pods Manifest.lock */ = {
 | 
			
		||||
			isa = PBXShellScriptBuildPhase;
 | 
			
		||||
			buildActionMask = 2147483647;
 | 
			
		||||
			files = (
 | 
			
		||||
			);
 | 
			
		||||
			inputFileListPaths = (
 | 
			
		||||
			);
 | 
			
		||||
			inputPaths = (
 | 
			
		||||
				"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
 | 
			
		||||
				"${PODS_ROOT}/Manifest.lock",
 | 
			
		||||
			);
 | 
			
		||||
			name = "[CP] Check Pods Manifest.lock";
 | 
			
		||||
			outputFileListPaths = (
 | 
			
		||||
			);
 | 
			
		||||
			outputPaths = (
 | 
			
		||||
				"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
 | 
			
		||||
			);
 | 
			
		||||
			runOnlyForDeploymentPostprocessing = 0;
 | 
			
		||||
			shellPath = /bin/sh;
 | 
			
		||||
			shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n    # print error to STDERR\n    echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n    exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
 | 
			
		||||
			showEnvVarsInLog = 0;
 | 
			
		||||
		};
 | 
			
		||||
/* End PBXShellScriptBuildPhase section */
 | 
			
		||||
 | 
			
		||||
/* Begin PBXSourcesBuildPhase section */
 | 
			
		||||
		97C146EA1CF9000F007C117D /* Sources */ = {
 | 
			
		||||
			isa = PBXSourcesBuildPhase;
 | 
			
		||||
			buildActionMask = 2147483647;
 | 
			
		||||
			files = (
 | 
			
		||||
				74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
 | 
			
		||||
				1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
 | 
			
		||||
			);
 | 
			
		||||
			runOnlyForDeploymentPostprocessing = 0;
 | 
			
		||||
		};
 | 
			
		||||
/* End PBXSourcesBuildPhase section */
 | 
			
		||||
 | 
			
		||||
/* Begin PBXVariantGroup section */
 | 
			
		||||
		97C146FA1CF9000F007C117D /* Main.storyboard */ = {
 | 
			
		||||
			isa = PBXVariantGroup;
 | 
			
		||||
			children = (
 | 
			
		||||
				97C146FB1CF9000F007C117D /* Base */,
 | 
			
		||||
			);
 | 
			
		||||
			name = Main.storyboard;
 | 
			
		||||
			sourceTree = "<group>";
 | 
			
		||||
		};
 | 
			
		||||
		97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
 | 
			
		||||
			isa = PBXVariantGroup;
 | 
			
		||||
			children = (
 | 
			
		||||
				97C147001CF9000F007C117D /* Base */,
 | 
			
		||||
			);
 | 
			
		||||
			name = LaunchScreen.storyboard;
 | 
			
		||||
			sourceTree = "<group>";
 | 
			
		||||
		};
 | 
			
		||||
/* End PBXVariantGroup section */
 | 
			
		||||
 | 
			
		||||
/* Begin XCBuildConfiguration section */
 | 
			
		||||
		249021D3217E4FDB00AE95B9 /* Profile */ = {
 | 
			
		||||
			isa = XCBuildConfiguration;
 | 
			
		||||
			buildSettings = {
 | 
			
		||||
				ALWAYS_SEARCH_USER_PATHS = NO;
 | 
			
		||||
				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;
 | 
			
		||||
				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 = 11.0;
 | 
			
		||||
				MTL_ENABLE_DEBUG_INFO = NO;
 | 
			
		||||
				SDKROOT = iphoneos;
 | 
			
		||||
				SUPPORTED_PLATFORMS = iphoneos;
 | 
			
		||||
				TARGETED_DEVICE_FAMILY = "1,2";
 | 
			
		||||
				VALIDATE_PRODUCT = YES;
 | 
			
		||||
			};
 | 
			
		||||
			name = Profile;
 | 
			
		||||
		};
 | 
			
		||||
		249021D4217E4FDB00AE95B9 /* Profile */ = {
 | 
			
		||||
			isa = XCBuildConfiguration;
 | 
			
		||||
			baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
 | 
			
		||||
			buildSettings = {
 | 
			
		||||
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 | 
			
		||||
				CLANG_ENABLE_MODULES = YES;
 | 
			
		||||
				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
 | 
			
		||||
				DEVELOPMENT_TEAM = 6Z5P8GG96U;
 | 
			
		||||
				ENABLE_BITCODE = NO;
 | 
			
		||||
				INFOPLIST_FILE = Runner/Info.plist;
 | 
			
		||||
				LD_RUNPATH_SEARCH_PATHS = (
 | 
			
		||||
					"$(inherited)",
 | 
			
		||||
					"@executable_path/Frameworks",
 | 
			
		||||
				);
 | 
			
		||||
				PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
 | 
			
		||||
				PRODUCT_NAME = "$(TARGET_NAME)";
 | 
			
		||||
				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
 | 
			
		||||
				SWIFT_VERSION = 5.0;
 | 
			
		||||
				VERSIONING_SYSTEM = "apple-generic";
 | 
			
		||||
			};
 | 
			
		||||
			name = Profile;
 | 
			
		||||
		};
 | 
			
		||||
		97C147031CF9000F007C117D /* Debug */ = {
 | 
			
		||||
			isa = XCBuildConfiguration;
 | 
			
		||||
			buildSettings = {
 | 
			
		||||
				ALWAYS_SEARCH_USER_PATHS = NO;
 | 
			
		||||
				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;
 | 
			
		||||
				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 = 11.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;
 | 
			
		||||
				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;
 | 
			
		||||
				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 = 11.0;
 | 
			
		||||
				MTL_ENABLE_DEBUG_INFO = NO;
 | 
			
		||||
				SDKROOT = iphoneos;
 | 
			
		||||
				SUPPORTED_PLATFORMS = iphoneos;
 | 
			
		||||
				SWIFT_COMPILATION_MODE = wholemodule;
 | 
			
		||||
				SWIFT_OPTIMIZATION_LEVEL = "-O";
 | 
			
		||||
				TARGETED_DEVICE_FAMILY = "1,2";
 | 
			
		||||
				VALIDATE_PRODUCT = YES;
 | 
			
		||||
			};
 | 
			
		||||
			name = Release;
 | 
			
		||||
		};
 | 
			
		||||
		97C147061CF9000F007C117D /* Debug */ = {
 | 
			
		||||
			isa = XCBuildConfiguration;
 | 
			
		||||
			baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
 | 
			
		||||
			buildSettings = {
 | 
			
		||||
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 | 
			
		||||
				CLANG_ENABLE_MODULES = YES;
 | 
			
		||||
				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
 | 
			
		||||
				DEVELOPMENT_TEAM = 6Z5P8GG96U;
 | 
			
		||||
				ENABLE_BITCODE = NO;
 | 
			
		||||
				INFOPLIST_FILE = Runner/Info.plist;
 | 
			
		||||
				LD_RUNPATH_SEARCH_PATHS = (
 | 
			
		||||
					"$(inherited)",
 | 
			
		||||
					"@executable_path/Frameworks",
 | 
			
		||||
				);
 | 
			
		||||
				PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
 | 
			
		||||
				PRODUCT_NAME = "$(TARGET_NAME)";
 | 
			
		||||
				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
 | 
			
		||||
				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
 | 
			
		||||
				SWIFT_VERSION = 5.0;
 | 
			
		||||
				VERSIONING_SYSTEM = "apple-generic";
 | 
			
		||||
			};
 | 
			
		||||
			name = Debug;
 | 
			
		||||
		};
 | 
			
		||||
		97C147071CF9000F007C117D /* Release */ = {
 | 
			
		||||
			isa = XCBuildConfiguration;
 | 
			
		||||
			baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
 | 
			
		||||
			buildSettings = {
 | 
			
		||||
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 | 
			
		||||
				CLANG_ENABLE_MODULES = YES;
 | 
			
		||||
				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
 | 
			
		||||
				DEVELOPMENT_TEAM = 6Z5P8GG96U;
 | 
			
		||||
				ENABLE_BITCODE = NO;
 | 
			
		||||
				INFOPLIST_FILE = Runner/Info.plist;
 | 
			
		||||
				LD_RUNPATH_SEARCH_PATHS = (
 | 
			
		||||
					"$(inherited)",
 | 
			
		||||
					"@executable_path/Frameworks",
 | 
			
		||||
				);
 | 
			
		||||
				PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
 | 
			
		||||
				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 */
 | 
			
		||||
		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 */;
 | 
			
		||||
}
 | 
			
		||||
@ -1,7 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<Workspace
 | 
			
		||||
   version = "1.0">
 | 
			
		||||
   <FileRef
 | 
			
		||||
      location = "self:">
 | 
			
		||||
   </FileRef>
 | 
			
		||||
</Workspace>
 | 
			
		||||
@ -1,8 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 | 
			
		||||
<plist version="1.0">
 | 
			
		||||
<dict>
 | 
			
		||||
	<key>IDEDidComputeMac32BitWarning</key>
 | 
			
		||||
	<true/>
 | 
			
		||||
</dict>
 | 
			
		||||
</plist>
 | 
			
		||||
@ -1,8 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 | 
			
		||||
<plist version="1.0">
 | 
			
		||||
<dict>
 | 
			
		||||
	<key>PreviewsEnabled</key>
 | 
			
		||||
	<false/>
 | 
			
		||||
</dict>
 | 
			
		||||
</plist>
 | 
			
		||||
@ -1,87 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<Scheme
 | 
			
		||||
   LastUpgradeVersion = "1300"
 | 
			
		||||
   version = "1.3">
 | 
			
		||||
   <BuildAction
 | 
			
		||||
      parallelizeBuildables = "YES"
 | 
			
		||||
      buildImplicitDependencies = "YES">
 | 
			
		||||
      <BuildActionEntries>
 | 
			
		||||
         <BuildActionEntry
 | 
			
		||||
            buildForTesting = "YES"
 | 
			
		||||
            buildForRunning = "YES"
 | 
			
		||||
            buildForProfiling = "YES"
 | 
			
		||||
            buildForArchiving = "YES"
 | 
			
		||||
            buildForAnalyzing = "YES">
 | 
			
		||||
            <BuildableReference
 | 
			
		||||
               BuildableIdentifier = "primary"
 | 
			
		||||
               BlueprintIdentifier = "97C146ED1CF9000F007C117D"
 | 
			
		||||
               BuildableName = "Runner.app"
 | 
			
		||||
               BlueprintName = "Runner"
 | 
			
		||||
               ReferencedContainer = "container:Runner.xcodeproj">
 | 
			
		||||
            </BuildableReference>
 | 
			
		||||
         </BuildActionEntry>
 | 
			
		||||
      </BuildActionEntries>
 | 
			
		||||
   </BuildAction>
 | 
			
		||||
   <TestAction
 | 
			
		||||
      buildConfiguration = "Debug"
 | 
			
		||||
      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
 | 
			
		||||
      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
 | 
			
		||||
      shouldUseLaunchSchemeArgsEnv = "YES">
 | 
			
		||||
      <MacroExpansion>
 | 
			
		||||
         <BuildableReference
 | 
			
		||||
            BuildableIdentifier = "primary"
 | 
			
		||||
            BlueprintIdentifier = "97C146ED1CF9000F007C117D"
 | 
			
		||||
            BuildableName = "Runner.app"
 | 
			
		||||
            BlueprintName = "Runner"
 | 
			
		||||
            ReferencedContainer = "container:Runner.xcodeproj">
 | 
			
		||||
         </BuildableReference>
 | 
			
		||||
      </MacroExpansion>
 | 
			
		||||
      <Testables>
 | 
			
		||||
      </Testables>
 | 
			
		||||
   </TestAction>
 | 
			
		||||
   <LaunchAction
 | 
			
		||||
      buildConfiguration = "Debug"
 | 
			
		||||
      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
 | 
			
		||||
      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
 | 
			
		||||
      launchStyle = "0"
 | 
			
		||||
      useCustomWorkingDirectory = "NO"
 | 
			
		||||
      ignoresPersistentStateOnLaunch = "NO"
 | 
			
		||||
      debugDocumentVersioning = "YES"
 | 
			
		||||
      debugServiceExtension = "internal"
 | 
			
		||||
      allowLocationSimulation = "YES">
 | 
			
		||||
      <BuildableProductRunnable
 | 
			
		||||
         runnableDebuggingMode = "0">
 | 
			
		||||
         <BuildableReference
 | 
			
		||||
            BuildableIdentifier = "primary"
 | 
			
		||||
            BlueprintIdentifier = "97C146ED1CF9000F007C117D"
 | 
			
		||||
            BuildableName = "Runner.app"
 | 
			
		||||
            BlueprintName = "Runner"
 | 
			
		||||
            ReferencedContainer = "container:Runner.xcodeproj">
 | 
			
		||||
         </BuildableReference>
 | 
			
		||||
      </BuildableProductRunnable>
 | 
			
		||||
   </LaunchAction>
 | 
			
		||||
   <ProfileAction
 | 
			
		||||
      buildConfiguration = "Profile"
 | 
			
		||||
      shouldUseLaunchSchemeArgsEnv = "YES"
 | 
			
		||||
      savedToolIdentifier = ""
 | 
			
		||||
      useCustomWorkingDirectory = "NO"
 | 
			
		||||
      debugDocumentVersioning = "YES">
 | 
			
		||||
      <BuildableProductRunnable
 | 
			
		||||
         runnableDebuggingMode = "0">
 | 
			
		||||
         <BuildableReference
 | 
			
		||||
            BuildableIdentifier = "primary"
 | 
			
		||||
            BlueprintIdentifier = "97C146ED1CF9000F007C117D"
 | 
			
		||||
            BuildableName = "Runner.app"
 | 
			
		||||
            BlueprintName = "Runner"
 | 
			
		||||
            ReferencedContainer = "container:Runner.xcodeproj">
 | 
			
		||||
         </BuildableReference>
 | 
			
		||||
      </BuildableProductRunnable>
 | 
			
		||||
   </ProfileAction>
 | 
			
		||||
   <AnalyzeAction
 | 
			
		||||
      buildConfiguration = "Debug">
 | 
			
		||||
   </AnalyzeAction>
 | 
			
		||||
   <ArchiveAction
 | 
			
		||||
      buildConfiguration = "Release"
 | 
			
		||||
      revealArchiveInOrganizer = "YES">
 | 
			
		||||
   </ArchiveAction>
 | 
			
		||||
</Scheme>
 | 
			
		||||
@ -1,10 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<Workspace
 | 
			
		||||
   version = "1.0">
 | 
			
		||||
   <FileRef
 | 
			
		||||
      location = "group:Runner.xcodeproj">
 | 
			
		||||
   </FileRef>
 | 
			
		||||
   <FileRef
 | 
			
		||||
      location = "group:Pods/Pods.xcodeproj">
 | 
			
		||||
   </FileRef>
 | 
			
		||||
</Workspace>
 | 
			
		||||
@ -1,8 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 | 
			
		||||
<plist version="1.0">
 | 
			
		||||
<dict>
 | 
			
		||||
	<key>IDEDidComputeMac32BitWarning</key>
 | 
			
		||||
	<true/>
 | 
			
		||||
</dict>
 | 
			
		||||
</plist>
 | 
			
		||||
@ -1,8 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 | 
			
		||||
<plist version="1.0">
 | 
			
		||||
<dict>
 | 
			
		||||
	<key>PreviewsEnabled</key>
 | 
			
		||||
	<false/>
 | 
			
		||||
</dict>
 | 
			
		||||
</plist>
 | 
			
		||||
@ -1,13 +0,0 @@
 | 
			
		||||
import UIKit
 | 
			
		||||
import Flutter
 | 
			
		||||
 | 
			
		||||
@UIApplicationMain
 | 
			
		||||
@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)
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@ -1,122 +0,0 @@
 | 
			
		||||
{
 | 
			
		||||
  "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"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 11 KiB  | 
| 
		 Before Width: | Height: | Size: 564 B  | 
| 
		 Before Width: | Height: | Size: 1.3 KiB  | 
| 
		 Before Width: | Height: | Size: 1.6 KiB  | 
| 
		 Before Width: | Height: | Size: 1.0 KiB  | 
| 
		 Before Width: | Height: | Size: 1.7 KiB  | 
| 
		 Before Width: | Height: | Size: 1.9 KiB  | 
| 
		 Before Width: | Height: | Size: 1.3 KiB  | 
| 
		 Before Width: | Height: | Size: 1.9 KiB  | 
| 
		 Before Width: | Height: | Size: 2.6 KiB  | 
| 
		 Before Width: | Height: | Size: 2.6 KiB  | 
| 
		 Before Width: | Height: | Size: 3.7 KiB  | 
| 
		 Before Width: | Height: | Size: 1.8 KiB  | 
| 
		 Before Width: | Height: | Size: 3.2 KiB  | 
| 
		 Before Width: | Height: | Size: 3.5 KiB  | 
@ -1,23 +0,0 @@
 | 
			
		||||
{
 | 
			
		||||
  "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"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 68 B  | 
| 
		 Before Width: | Height: | Size: 68 B  | 
| 
		 Before Width: | Height: | Size: 68 B  | 
@ -1,5 +0,0 @@
 | 
			
		||||
# 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.
 | 
			
		||||
@ -1,37 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 | 
			
		||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
 | 
			
		||||
    <dependencies>
 | 
			
		||||
        <deployment identifier="iOS"/>
 | 
			
		||||
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
 | 
			
		||||
    </dependencies>
 | 
			
		||||
    <scenes>
 | 
			
		||||
        <!--View Controller-->
 | 
			
		||||
        <scene sceneID="EHf-IW-A2E">
 | 
			
		||||
            <objects>
 | 
			
		||||
                <viewController id="01J-lp-oVM" sceneMemberID="viewController">
 | 
			
		||||
                    <layoutGuides>
 | 
			
		||||
                        <viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
 | 
			
		||||
                        <viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
 | 
			
		||||
                    </layoutGuides>
 | 
			
		||||
                    <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
 | 
			
		||||
                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
 | 
			
		||||
                        <subviews>
 | 
			
		||||
                            <imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
 | 
			
		||||
                            </imageView>
 | 
			
		||||
                        </subviews>
 | 
			
		||||
                        <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
 | 
			
		||||
                        <constraints>
 | 
			
		||||
                            <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
 | 
			
		||||
                            <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
 | 
			
		||||
                        </constraints>
 | 
			
		||||
                    </view>
 | 
			
		||||
                </viewController>
 | 
			
		||||
                <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
 | 
			
		||||
            </objects>
 | 
			
		||||
            <point key="canvasLocation" x="53" y="375"/>
 | 
			
		||||
        </scene>
 | 
			
		||||
    </scenes>
 | 
			
		||||
    <resources>
 | 
			
		||||
        <image name="LaunchImage" width="168" height="185"/>
 | 
			
		||||
    </resources>
 | 
			
		||||
</document>
 | 
			
		||||
@ -1,26 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 | 
			
		||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
 | 
			
		||||
    <dependencies>
 | 
			
		||||
        <deployment identifier="iOS"/>
 | 
			
		||||
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
 | 
			
		||||
    </dependencies>
 | 
			
		||||
    <scenes>
 | 
			
		||||
        <!--Flutter View Controller-->
 | 
			
		||||
        <scene sceneID="tne-QT-ifu">
 | 
			
		||||
            <objects>
 | 
			
		||||
                <viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
 | 
			
		||||
                    <layoutGuides>
 | 
			
		||||
                        <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
 | 
			
		||||
                        <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
 | 
			
		||||
                    </layoutGuides>
 | 
			
		||||
                    <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
 | 
			
		||||
                        <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
 | 
			
		||||
                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
 | 
			
		||||
                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
 | 
			
		||||
                    </view>
 | 
			
		||||
                </viewController>
 | 
			
		||||
                <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
 | 
			
		||||
            </objects>
 | 
			
		||||
        </scene>
 | 
			
		||||
    </scenes>
 | 
			
		||||
</document>
 | 
			
		||||
@ -1,51 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 | 
			
		||||
<plist version="1.0">
 | 
			
		||||
<dict>
 | 
			
		||||
	<key>CFBundleDevelopmentRegion</key>
 | 
			
		||||
	<string>$(DEVELOPMENT_LANGUAGE)</string>
 | 
			
		||||
	<key>CFBundleDisplayName</key>
 | 
			
		||||
	<string>Example</string>
 | 
			
		||||
	<key>CFBundleExecutable</key>
 | 
			
		||||
	<string>$(EXECUTABLE_NAME)</string>
 | 
			
		||||
	<key>CFBundleIdentifier</key>
 | 
			
		||||
	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
 | 
			
		||||
	<key>CFBundleInfoDictionaryVersion</key>
 | 
			
		||||
	<string>6.0</string>
 | 
			
		||||
	<key>CFBundleName</key>
 | 
			
		||||
	<string>example</string>
 | 
			
		||||
	<key>CFBundlePackageType</key>
 | 
			
		||||
	<string>APPL</string>
 | 
			
		||||
	<key>CFBundleShortVersionString</key>
 | 
			
		||||
	<string>$(FLUTTER_BUILD_NAME)</string>
 | 
			
		||||
	<key>CFBundleSignature</key>
 | 
			
		||||
	<string>????</string>
 | 
			
		||||
	<key>CFBundleVersion</key>
 | 
			
		||||
	<string>$(FLUTTER_BUILD_NUMBER)</string>
 | 
			
		||||
	<key>LSRequiresIPhoneOS</key>
 | 
			
		||||
	<true/>
 | 
			
		||||
	<key>UILaunchStoryboardName</key>
 | 
			
		||||
	<string>LaunchScreen</string>
 | 
			
		||||
	<key>UIMainStoryboardFile</key>
 | 
			
		||||
	<string>Main</string>
 | 
			
		||||
	<key>UISupportedInterfaceOrientations</key>
 | 
			
		||||
	<array>
 | 
			
		||||
		<string>UIInterfaceOrientationPortrait</string>
 | 
			
		||||
		<string>UIInterfaceOrientationLandscapeLeft</string>
 | 
			
		||||
		<string>UIInterfaceOrientationLandscapeRight</string>
 | 
			
		||||
	</array>
 | 
			
		||||
	<key>UISupportedInterfaceOrientations~ipad</key>
 | 
			
		||||
	<array>
 | 
			
		||||
		<string>UIInterfaceOrientationPortrait</string>
 | 
			
		||||
		<string>UIInterfaceOrientationPortraitUpsideDown</string>
 | 
			
		||||
		<string>UIInterfaceOrientationLandscapeLeft</string>
 | 
			
		||||
		<string>UIInterfaceOrientationLandscapeRight</string>
 | 
			
		||||
	</array>
 | 
			
		||||
	<key>UIViewControllerBasedStatusBarAppearance</key>
 | 
			
		||||
	<false/>
 | 
			
		||||
	<key>CADisableMinimumFrameDurationOnPhone</key>
 | 
			
		||||
	<true/>
 | 
			
		||||
	<key>UIApplicationSupportsIndirectInputEvents</key>
 | 
			
		||||
	<true/>
 | 
			
		||||
</dict>
 | 
			
		||||
</plist>
 | 
			
		||||
@ -1 +0,0 @@
 | 
			
		||||
#import "GeneratedPluginRegistrant.h"
 | 
			
		||||
@ -17,7 +17,6 @@
 | 
			
		||||
import 'dart:math';
 | 
			
		||||
 | 
			
		||||
import 'package:crud_bloc_example/models.dart';
 | 
			
		||||
import 'package:crud_bloc_example/user_cubit.dart';
 | 
			
		||||
import 'package:flutter/material.dart';
 | 
			
		||||
import 'package:flutter_bloc/flutter_bloc.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/wyatt_crud_bloc.dart';
 | 
			
		||||
@ -28,16 +27,17 @@ class MyApp extends StatelessWidget {
 | 
			
		||||
  // This widget is the root of your application.
 | 
			
		||||
  @override
 | 
			
		||||
  Widget build(BuildContext context) {
 | 
			
		||||
    final CrudDataSource<User> userLocalDataSource =
 | 
			
		||||
        CrudInMemoryDataSourceImpl<User>(toMap: (user) => user.toMap());
 | 
			
		||||
    final _userRepository = CrudRepositoryFirestore<UserFirestore>(
 | 
			
		||||
      'users_crud',
 | 
			
		||||
      UserFirestore.parser(),
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
    final CrudRepository<User> userRepository =
 | 
			
		||||
        CrudRepositoryImpl(crudDataSource: userLocalDataSource);
 | 
			
		||||
    final _userCubit = CrudCubit<UserFirestore>(_userRepository);
 | 
			
		||||
 | 
			
		||||
    return RepositoryProvider<CrudRepository<User>>.value(
 | 
			
		||||
      value: userRepository,
 | 
			
		||||
      child: BlocProvider<UserCubit>(
 | 
			
		||||
        create: (context) => UserCubit(userRepository)..getAll(),
 | 
			
		||||
    return RepositoryProvider<CrudRepositoryFirestore<UserFirestore>>(
 | 
			
		||||
      create: (context) => _userRepository,
 | 
			
		||||
      child: BlocProvider<CrudCubit<UserFirestore>>(
 | 
			
		||||
        create: (context) => _userCubit,
 | 
			
		||||
        child: MaterialApp(
 | 
			
		||||
          title: 'Flutter Demo',
 | 
			
		||||
          theme: ThemeData(
 | 
			
		||||
@ -64,42 +64,54 @@ class MyHomePage extends StatelessWidget {
 | 
			
		||||
          children: [
 | 
			
		||||
            const SizedBox(height: 20),
 | 
			
		||||
            const Text("Data:"),
 | 
			
		||||
            BlocBuilder<UserCubit, CrudState>(
 | 
			
		||||
              builder: (context, state) {
 | 
			
		||||
                return CrudBuilder.typed<CrudListLoaded<User?>>(
 | 
			
		||||
                  state: state,
 | 
			
		||||
                  builder: ((context, state) {
 | 
			
		||||
            CrudStreamBuilder<UserFirestore>(
 | 
			
		||||
              onError: (context, state) => const SizedBox.shrink(),
 | 
			
		||||
              onLoading: (context, state) => const Text("Loading..."),
 | 
			
		||||
              onStream: (context, data) {
 | 
			
		||||
                return ListView.builder(
 | 
			
		||||
                  shrinkWrap: true,
 | 
			
		||||
                      itemCount: state.data.length,
 | 
			
		||||
                  itemCount: data.length,
 | 
			
		||||
                  itemBuilder: (context, index) {
 | 
			
		||||
                        final user = state.data.elementAt(index);
 | 
			
		||||
                    final user = data.elementAt(index);
 | 
			
		||||
                    return ListTile(
 | 
			
		||||
                      title: Text(user?.name ?? 'Error'),
 | 
			
		||||
                      subtitle: Text(user?.id ?? 'Error'),
 | 
			
		||||
                      onTap: () {
 | 
			
		||||
                            context.read<UserCubit>().delete(
 | 
			
		||||
                        context.read<CrudCubit<UserFirestore>>().get(
 | 
			
		||||
                              (user?.id)!,
 | 
			
		||||
                            );
 | 
			
		||||
                      },
 | 
			
		||||
                      onLongPress: () {
 | 
			
		||||
                        context.read<CrudCubit<UserFirestore>>().delete(
 | 
			
		||||
                              (user?.id)!,
 | 
			
		||||
                            );
 | 
			
		||||
                      },
 | 
			
		||||
                    );
 | 
			
		||||
                  },
 | 
			
		||||
                );
 | 
			
		||||
                  }),
 | 
			
		||||
                  initialBuilder: (context, state) => const Text("Loading..."),
 | 
			
		||||
                  loadingBuilder: (context, state) => const Text("Loading..."),
 | 
			
		||||
                  errorBuilder: (context, state) => Text("Error: $state"),
 | 
			
		||||
              },
 | 
			
		||||
            ),
 | 
			
		||||
            const SizedBox(height: 20),
 | 
			
		||||
            BlocBuilder<CrudCubit<UserFirestore>, CrudState<UserFirestore>>(
 | 
			
		||||
              builder: (context, state) {
 | 
			
		||||
                return Center(
 | 
			
		||||
                  child: Text(
 | 
			
		||||
                    state.toString(),
 | 
			
		||||
                    textAlign: TextAlign.center,
 | 
			
		||||
                    style: const TextStyle(
 | 
			
		||||
                      fontSize: 20,
 | 
			
		||||
                      color: Colors.grey,
 | 
			
		||||
                    ),
 | 
			
		||||
                  ),
 | 
			
		||||
                );
 | 
			
		||||
              },
 | 
			
		||||
            ),
 | 
			
		||||
 | 
			
		||||
            const SizedBox(height: 20),
 | 
			
		||||
            ElevatedButton(
 | 
			
		||||
              onPressed: () {
 | 
			
		||||
                final r = Random().nextInt(1000);
 | 
			
		||||
                context.read<UserCubit>().create(
 | 
			
		||||
                      User(
 | 
			
		||||
                          id: '$r',
 | 
			
		||||
                context.read<CrudCubit<UserFirestore>>().create(
 | 
			
		||||
                      UserFirestore(
 | 
			
		||||
                          name: 'Wyatt $r',
 | 
			
		||||
                          email: '$r@wyattapp.io',
 | 
			
		||||
                          phone: '06$r'),
 | 
			
		||||
@ -109,24 +121,44 @@ class MyHomePage extends StatelessWidget {
 | 
			
		||||
            ),
 | 
			
		||||
            ElevatedButton(
 | 
			
		||||
              onPressed: () {
 | 
			
		||||
                context.read<UserCubit>().deleteAll();
 | 
			
		||||
                context.read<CrudCubit<UserFirestore>>().deleteAll();
 | 
			
		||||
              },
 | 
			
		||||
              child: const Text("DeleteAll"),
 | 
			
		||||
            ),
 | 
			
		||||
            ElevatedButton(
 | 
			
		||||
              onPressed: () {
 | 
			
		||||
                context.read<UserCubit>().getAll();
 | 
			
		||||
                context.read<CrudCubit<UserFirestore>>().getAll();
 | 
			
		||||
              },
 | 
			
		||||
              child: const Text("GetAll"),
 | 
			
		||||
            ),
 | 
			
		||||
            ElevatedButton(
 | 
			
		||||
              onPressed: () {
 | 
			
		||||
                context
 | 
			
		||||
                    .read<UserCubit>()
 | 
			
		||||
                    .query([LimitQuery(2)]);
 | 
			
		||||
                    .read<CrudCubit<UserFirestore>>()
 | 
			
		||||
                    .query([LimitQueryFirestore(1)]);
 | 
			
		||||
              },
 | 
			
		||||
              child: const Text("Query"),
 | 
			
		||||
            ),
 | 
			
		||||
            ElevatedButton(
 | 
			
		||||
              onPressed: () {
 | 
			
		||||
                context.read<CrudCubit<UserFirestore>>().streamOf();
 | 
			
		||||
              },
 | 
			
		||||
              child: const Text("StreamOf"),
 | 
			
		||||
            ),
 | 
			
		||||
            ElevatedButton(
 | 
			
		||||
              onPressed: () {
 | 
			
		||||
                context
 | 
			
		||||
                    .read<CrudCubit<UserFirestore>>()
 | 
			
		||||
                    .updateAll({'updated': DateTime.now()});
 | 
			
		||||
              },
 | 
			
		||||
              child: const Text("UpdateAll"),
 | 
			
		||||
            ),
 | 
			
		||||
            ElevatedButton(
 | 
			
		||||
              onPressed: () {
 | 
			
		||||
                context.read<CrudCubit<UserFirestore>>().reset();
 | 
			
		||||
              },
 | 
			
		||||
              child: const Text("Reset"),
 | 
			
		||||
            ),
 | 
			
		||||
            const SizedBox(height: 20),
 | 
			
		||||
          ],
 | 
			
		||||
        ),
 | 
			
		||||
 | 
			
		||||
@ -1,69 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
// 
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
// 
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
// 
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:flutter/foundation.dart';
 | 
			
		||||
import 'package:flutter_bloc/flutter_bloc.dart';
 | 
			
		||||
 | 
			
		||||
class AppBlocObserver extends BlocObserver {
 | 
			
		||||
  final bool printEvent;
 | 
			
		||||
  final bool printError;
 | 
			
		||||
  final bool printChange;
 | 
			
		||||
  final bool printTransition;
 | 
			
		||||
 | 
			
		||||
  AppBlocObserver({
 | 
			
		||||
    this.printEvent = true,
 | 
			
		||||
    this.printError = true,
 | 
			
		||||
    this.printTransition = true,
 | 
			
		||||
    this.printChange = true,
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  void onEvent(Bloc<dynamic, dynamic> bloc, Object? event) {
 | 
			
		||||
    super.onEvent(bloc, event);
 | 
			
		||||
    if (printEvent) {
 | 
			
		||||
      debugPrint('onEvent(${bloc.runtimeType}, $event)');
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  void onError(BlocBase<dynamic> bloc, Object error, StackTrace stackTrace) {
 | 
			
		||||
    if (printError) {
 | 
			
		||||
      debugPrint(
 | 
			
		||||
        'onError(${bloc.runtimeType}, $error, $stackTrace)',
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
    super.onError(bloc, error, stackTrace);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  void onChange(BlocBase<dynamic> bloc, Change<dynamic> change) {
 | 
			
		||||
    super.onChange(bloc, change);
 | 
			
		||||
    if (printChange) {
 | 
			
		||||
      debugPrint('onChange(${bloc.runtimeType}, $change)');
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  void onTransition(
 | 
			
		||||
    Bloc<dynamic, dynamic> bloc,
 | 
			
		||||
    Transition<dynamic, dynamic> transition,
 | 
			
		||||
  ) {
 | 
			
		||||
    super.onTransition(bloc, transition);
 | 
			
		||||
    if (printTransition) {
 | 
			
		||||
      debugPrint('onTransition(${bloc.runtimeType}, $transition)');
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@ -15,13 +15,15 @@
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:crud_bloc_example/app.dart';
 | 
			
		||||
import 'package:crud_bloc_example/app_bloc_observer.dart';
 | 
			
		||||
import 'package:crud_bloc_example/firebase_options.dart';
 | 
			
		||||
import 'package:firebase_core/firebase_core.dart';
 | 
			
		||||
import 'package:flutter/material.dart';
 | 
			
		||||
import 'package:flutter_bloc/flutter_bloc.dart';
 | 
			
		||||
 | 
			
		||||
Future<void> main() async {
 | 
			
		||||
  WidgetsFlutterBinding.ensureInitialized();
 | 
			
		||||
  Bloc.observer = AppBlocObserver();
 | 
			
		||||
  await Firebase.initializeApp(
 | 
			
		||||
    options: DefaultFirebaseOptions.currentPlatform,
 | 
			
		||||
  );
 | 
			
		||||
 | 
			
		||||
  runApp(const MyApp());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -14,9 +14,10 @@
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:cloud_firestore/cloud_firestore.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/wyatt_crud_bloc.dart';
 | 
			
		||||
 | 
			
		||||
class User extends ObjectModel {
 | 
			
		||||
class UserFirestore extends Model<DocumentSnapshot, UserFirestore> {
 | 
			
		||||
  @override
 | 
			
		||||
  String? id;
 | 
			
		||||
 | 
			
		||||
@ -24,32 +25,33 @@ class User extends ObjectModel {
 | 
			
		||||
  String? email;
 | 
			
		||||
  String? phone;
 | 
			
		||||
 | 
			
		||||
  User({
 | 
			
		||||
  UserFirestore({
 | 
			
		||||
    required this.name,
 | 
			
		||||
    required this.email,
 | 
			
		||||
    required this.phone,
 | 
			
		||||
    this.id,
 | 
			
		||||
  });
 | 
			
		||||
  // User._();
 | 
			
		||||
  UserFirestore._();
 | 
			
		||||
 | 
			
		||||
  // factory User.parser() {
 | 
			
		||||
  //   return User._();
 | 
			
		||||
  // }
 | 
			
		||||
  factory UserFirestore.parser() {
 | 
			
		||||
    return UserFirestore._();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // @override
 | 
			
		||||
  // User? from(DocumentSnapshot? object) {
 | 
			
		||||
  //   if (object == null) return null;
 | 
			
		||||
  //   if (object.exists) {
 | 
			
		||||
  //     return User(
 | 
			
		||||
  //       id: object.id,
 | 
			
		||||
  //       name: (object.data() as Map<String, dynamic>?)!['name'] as String,
 | 
			
		||||
  //       email: (object.data() as Map<String, dynamic>?)!['email'] as String,
 | 
			
		||||
  //       phone: (object.data() as Map<String, dynamic>?)!['phone'] as String,
 | 
			
		||||
  //     );
 | 
			
		||||
  //   }
 | 
			
		||||
  //   return null;
 | 
			
		||||
  // }
 | 
			
		||||
  @override
 | 
			
		||||
  UserFirestore? from(DocumentSnapshot? object) {
 | 
			
		||||
    if (object == null) return null;
 | 
			
		||||
    if (object.exists) {
 | 
			
		||||
      return UserFirestore(
 | 
			
		||||
        id: object.id,
 | 
			
		||||
        name: (object.data() as Map<String, dynamic>?)!['name'] as String,
 | 
			
		||||
        email: (object.data() as Map<String, dynamic>?)!['email'] as String,
 | 
			
		||||
        phone: (object.data() as Map<String, dynamic>?)!['phone'] as String,
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
    return null;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Map<String, Object> toMap() {
 | 
			
		||||
    return {
 | 
			
		||||
      'name': name ?? '',
 | 
			
		||||
@ -60,5 +62,5 @@ class User extends ObjectModel {
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  String toString() =>
 | 
			
		||||
      'User(id: $id, name: $name, email: $email, phone: $phone)';
 | 
			
		||||
      'UserFirestore(id: $id, name: $name, email: $email, phone: $phone)';
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -1,48 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:crud_bloc_example/models.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/wyatt_crud_bloc.dart';
 | 
			
		||||
 | 
			
		||||
class UserCubit extends CrudCubit<User> {
 | 
			
		||||
  final CrudRepository<User> _crudRepository;
 | 
			
		||||
 | 
			
		||||
  UserCubit(this._crudRepository);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Create<User>? get crudCreate => Create(_crudRepository);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Delete<User>? get crudDelete => Delete(_crudRepository);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  DeleteAll<User>? get crudDeleteAll => DeleteAll(_crudRepository);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Get<User>? get crudGet => Get(_crudRepository);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  GetAll<User>? get crudGetAll => GetAll(_crudRepository);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Query<User>? get crudQuery => Query(_crudRepository);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Update<User>? get crudUpdate => Update(_crudRepository);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  UpdateAll<User>? get crudUpdateAll => UpdateAll(_crudRepository);
 | 
			
		||||
}
 | 
			
		||||
@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
 | 
			
		||||
version: 1.0.0+1
 | 
			
		||||
 | 
			
		||||
environment:
 | 
			
		||||
  sdk: ">=2.17.0 <3.0.0"
 | 
			
		||||
  sdk: ">=2.16.2 <3.0.0"
 | 
			
		||||
 | 
			
		||||
# Dependencies specify other packages that your package needs in order to work.
 | 
			
		||||
# To automatically upgrade your package dependencies to the latest versions
 | 
			
		||||
@ -30,7 +30,9 @@ dependencies:
 | 
			
		||||
  flutter:
 | 
			
		||||
    sdk: flutter
 | 
			
		||||
 | 
			
		||||
  flutter_bloc: ^8.1.1
 | 
			
		||||
  cloud_firestore: ^3.1.12
 | 
			
		||||
  firebase_core: ^1.14.1
 | 
			
		||||
  flutter_bloc: ^8.0.1
 | 
			
		||||
  wyatt_crud_bloc:
 | 
			
		||||
    path: "../"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,51 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
extension NumExtension on num? {
 | 
			
		||||
  bool operator <(num? other) {
 | 
			
		||||
    if (this == null || other == null) {
 | 
			
		||||
      return false;
 | 
			
		||||
    }
 | 
			
		||||
    return this < other;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  bool operator >(num? other) {
 | 
			
		||||
    if (this == null || other == null) {
 | 
			
		||||
      return false;
 | 
			
		||||
    }
 | 
			
		||||
    return this > other;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  bool operator <=(num? other) {
 | 
			
		||||
    if (this == null && other == null) {
 | 
			
		||||
      return true;
 | 
			
		||||
    }
 | 
			
		||||
    if (this == null || other == null) {
 | 
			
		||||
      return false;
 | 
			
		||||
    }
 | 
			
		||||
    return this <= other;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  bool operator >=(num? other) {
 | 
			
		||||
    if (this == null && other == null) {
 | 
			
		||||
      return true;
 | 
			
		||||
    }
 | 
			
		||||
    if (this == null || other == null) {
 | 
			
		||||
      return false;
 | 
			
		||||
    }
 | 
			
		||||
    return this >= other;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@ -15,3 +15,4 @@
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
export 'crud_builder.dart';
 | 
			
		||||
export 'crud_stream_builder.dart';
 | 
			
		||||
@ -0,0 +1,53 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:flutter/material.dart';
 | 
			
		||||
import 'package:flutter_bloc/flutter_bloc.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/crud/cubit/crud_cubit.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/models/model.dart';
 | 
			
		||||
 | 
			
		||||
class CrudBuilder<T extends Model<Object?, T>> extends StatelessWidget {
 | 
			
		||||
  const CrudBuilder({
 | 
			
		||||
    Key? key,
 | 
			
		||||
    this.onIdle,
 | 
			
		||||
    required this.onLoading,
 | 
			
		||||
    required this.onError,
 | 
			
		||||
    required this.onSuccess,
 | 
			
		||||
  }) : super(key: key);
 | 
			
		||||
 | 
			
		||||
  final Widget Function(BuildContext, CrudState<T>)? onIdle;
 | 
			
		||||
  final Widget Function(BuildContext, CrudState<T>) onLoading;
 | 
			
		||||
  final Widget Function(BuildContext, CrudState<T>) onError;
 | 
			
		||||
  final Widget Function(BuildContext, CrudState<T>) onSuccess;
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Widget build(BuildContext context) {
 | 
			
		||||
    return BlocBuilder<CrudCubit<T>, CrudState<T>>(
 | 
			
		||||
      builder: (context, state) {
 | 
			
		||||
        switch (state.status) {
 | 
			
		||||
          case CrudStatus.idle:
 | 
			
		||||
            return onIdle?.call(context, state) ?? onError.call(context, state);
 | 
			
		||||
          case CrudStatus.loading:
 | 
			
		||||
            return onLoading.call(context, state);
 | 
			
		||||
          case CrudStatus.failure:
 | 
			
		||||
            return onError.call(context, state);
 | 
			
		||||
          case CrudStatus.success:
 | 
			
		||||
            return onSuccess.call(context, state);
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@ -0,0 +1,55 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:flutter/material.dart';
 | 
			
		||||
import 'package:flutter_bloc/flutter_bloc.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/crud/cubit/crud_cubit.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/models/model.dart';
 | 
			
		||||
 | 
			
		||||
class CrudStreamBuilder<T extends Model<Object?, T>> extends StatelessWidget {
 | 
			
		||||
  const CrudStreamBuilder({
 | 
			
		||||
    Key? key,
 | 
			
		||||
    required this.onLoading,
 | 
			
		||||
    required this.onError,
 | 
			
		||||
    required this.onStream,
 | 
			
		||||
  }) : super(key: key);
 | 
			
		||||
 | 
			
		||||
  final Widget Function(BuildContext, List<T?>) onStream;
 | 
			
		||||
  final Widget Function(BuildContext, CrudState<T>) onLoading;
 | 
			
		||||
  final Widget Function(BuildContext, CrudState<T>) onError;
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Widget build(BuildContext context) {
 | 
			
		||||
    return BlocBuilder<CrudCubit<T>, CrudState<T>>(
 | 
			
		||||
      builder: (context, state) {
 | 
			
		||||
        if (state.stream != null) {
 | 
			
		||||
          return StreamBuilder<List<T?>>(
 | 
			
		||||
            stream: state.stream,
 | 
			
		||||
            builder: (context, snapshot) {
 | 
			
		||||
              if (snapshot.hasData) {
 | 
			
		||||
                return onStream(context, snapshot.data!);
 | 
			
		||||
              } else {
 | 
			
		||||
                return onLoading(context, state);
 | 
			
		||||
              }
 | 
			
		||||
            },
 | 
			
		||||
          );
 | 
			
		||||
        } else {
 | 
			
		||||
          return onError(context, state);
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										219
									
								
								packages/wyatt_crud_bloc/lib/src/crud/cubit/crud_cubit.dart
									
									
									
									
									
										Normal file
									
								
							
							
						
						@ -0,0 +1,219 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:bloc/bloc.dart';
 | 
			
		||||
import 'package:equatable/equatable.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/models/model.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/models/queries/queries_interface.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/repositories/crud_repository_interface.dart';
 | 
			
		||||
 | 
			
		||||
part 'crud_state.dart';
 | 
			
		||||
 | 
			
		||||
class CrudCubit<T extends Model<Object?, T>> extends Cubit<CrudState<T>> {
 | 
			
		||||
  final CrudRepositoryInterface<T> _crudRepository;
 | 
			
		||||
 | 
			
		||||
  // ignore: prefer_const_constructors
 | 
			
		||||
  CrudCubit(this._crudRepository) : super(CrudState());
 | 
			
		||||
  // Here we can't use `const` because we need the generic type T
 | 
			
		||||
 | 
			
		||||
  void reset() {
 | 
			
		||||
    // ignore: prefer_const_constructors
 | 
			
		||||
    emit(CrudState());
 | 
			
		||||
    // Same here, because of `const` we can't use T generic type
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  Future<void> create(Model object, {String? id}) async {
 | 
			
		||||
    emit(state.copyWith(status: CrudStatus.loading));
 | 
			
		||||
    try {
 | 
			
		||||
      await _crudRepository.create(object, id: id);
 | 
			
		||||
      final data = state.data..addAll([object].cast<T>());
 | 
			
		||||
      emit(
 | 
			
		||||
        state.copyWith(
 | 
			
		||||
          data: data,
 | 
			
		||||
          status: CrudStatus.success,
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    } catch (e) {
 | 
			
		||||
      // TODO(hpcl): implement Exception
 | 
			
		||||
      emit(
 | 
			
		||||
        state.copyWith(
 | 
			
		||||
          status: CrudStatus.failure,
 | 
			
		||||
          errorMessage: e.toString(),
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  Future<void> delete(String id) async {
 | 
			
		||||
    emit(state.copyWith(status: CrudStatus.loading));
 | 
			
		||||
    try {
 | 
			
		||||
      await _crudRepository.delete(id);
 | 
			
		||||
      final data = state.data
 | 
			
		||||
        ..removeWhere((element) => element!.id != null && element.id == id);
 | 
			
		||||
      emit(
 | 
			
		||||
        state.copyWith(
 | 
			
		||||
          data: data,
 | 
			
		||||
          status: CrudStatus.success,
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    } catch (e) {
 | 
			
		||||
      emit(
 | 
			
		||||
        state.copyWith(
 | 
			
		||||
          status: CrudStatus.failure,
 | 
			
		||||
          errorMessage: e.toString(),
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  Future<void> deleteAll() async {
 | 
			
		||||
    emit(state.copyWith(status: CrudStatus.loading));
 | 
			
		||||
    try {
 | 
			
		||||
      await _crudRepository.deleteAll();
 | 
			
		||||
      emit(
 | 
			
		||||
        state.copyWith(
 | 
			
		||||
          data: [],
 | 
			
		||||
          status: CrudStatus.success,
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    } catch (e) {
 | 
			
		||||
      emit(
 | 
			
		||||
        state.copyWith(
 | 
			
		||||
          status: CrudStatus.failure,
 | 
			
		||||
          errorMessage: e.toString(),
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  Future<void> get(String id) async {
 | 
			
		||||
    emit(state.copyWith(status: CrudStatus.loading));
 | 
			
		||||
    try {
 | 
			
		||||
      final data = await _crudRepository.get(id);
 | 
			
		||||
      emit(
 | 
			
		||||
        state.copyWith(
 | 
			
		||||
          data: [data].cast<T>(),
 | 
			
		||||
          status: CrudStatus.success,
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    } catch (e) {
 | 
			
		||||
      emit(
 | 
			
		||||
        state.copyWith(
 | 
			
		||||
          status: CrudStatus.failure,
 | 
			
		||||
          errorMessage: e.toString(),
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  Future<void> getAll() async {
 | 
			
		||||
    emit(state.copyWith(status: CrudStatus.loading));
 | 
			
		||||
    try {
 | 
			
		||||
      final data = await _crudRepository.getAll();
 | 
			
		||||
      emit(
 | 
			
		||||
        state.copyWith(
 | 
			
		||||
          data: data.cast<T>(),
 | 
			
		||||
          status: CrudStatus.success,
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    } catch (e) {
 | 
			
		||||
      emit(
 | 
			
		||||
        state.copyWith(
 | 
			
		||||
          status: CrudStatus.failure,
 | 
			
		||||
          errorMessage: e.toString(),
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  Future<void> query(List<QueryInterface> conditions) async {
 | 
			
		||||
    emit(state.copyWith(status: CrudStatus.loading));
 | 
			
		||||
    try {
 | 
			
		||||
      final data = await _crudRepository.query(conditions);
 | 
			
		||||
      emit(
 | 
			
		||||
        state.copyWith(
 | 
			
		||||
          data: data.cast<T>(),
 | 
			
		||||
          status: CrudStatus.success,
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    } catch (e) {
 | 
			
		||||
      emit(
 | 
			
		||||
        state.copyWith(
 | 
			
		||||
          status: CrudStatus.failure,
 | 
			
		||||
          errorMessage: e.toString(),
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  Future<void> streamOf({String? id}) async {
 | 
			
		||||
    emit(state.copyWith(status: CrudStatus.loading));
 | 
			
		||||
    try {
 | 
			
		||||
      final Stream<List<T?>> data = _crudRepository.stream(id: id);
 | 
			
		||||
      emit(
 | 
			
		||||
        state.copyWith(
 | 
			
		||||
          stream: data,
 | 
			
		||||
          status: CrudStatus.success,
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    } catch (e) {
 | 
			
		||||
      emit(
 | 
			
		||||
        state.copyWith(
 | 
			
		||||
          status: CrudStatus.failure,
 | 
			
		||||
          errorMessage: e.toString(),
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  Future<void> update(
 | 
			
		||||
    String id, {
 | 
			
		||||
    Model? object,
 | 
			
		||||
    Map<String, dynamic>? raw,
 | 
			
		||||
  }) async {
 | 
			
		||||
    emit(state.copyWith(status: CrudStatus.loading));
 | 
			
		||||
    try {
 | 
			
		||||
      await _crudRepository.update(
 | 
			
		||||
        id,
 | 
			
		||||
        object: object,
 | 
			
		||||
        raw: raw,
 | 
			
		||||
      );
 | 
			
		||||
      emit(state.copyWith(status: CrudStatus.success));
 | 
			
		||||
    } catch (e) {
 | 
			
		||||
      emit(
 | 
			
		||||
        state.copyWith(
 | 
			
		||||
          status: CrudStatus.failure,
 | 
			
		||||
          errorMessage: e.toString(),
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  Future<void> updateAll(Map<String, Object?> raw) async {
 | 
			
		||||
    emit(state.copyWith(status: CrudStatus.loading));
 | 
			
		||||
    try {
 | 
			
		||||
      await _crudRepository.updateAll(raw);
 | 
			
		||||
      emit(state.copyWith(status: CrudStatus.success));
 | 
			
		||||
    } catch (e) {
 | 
			
		||||
      emit(
 | 
			
		||||
        state.copyWith(
 | 
			
		||||
          status: CrudStatus.failure,
 | 
			
		||||
          errorMessage: e.toString(),
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										60
									
								
								packages/wyatt_crud_bloc/lib/src/crud/cubit/crud_state.dart
									
									
									
									
									
										Normal file
									
								
							
							
						
						@ -0,0 +1,60 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
part of 'crud_cubit.dart';
 | 
			
		||||
 | 
			
		||||
enum CrudStatus {
 | 
			
		||||
  idle,
 | 
			
		||||
  loading,
 | 
			
		||||
  success,
 | 
			
		||||
  failure,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class CrudState<T> extends Equatable {
 | 
			
		||||
  final CrudStatus status;
 | 
			
		||||
  final List<T?> data;
 | 
			
		||||
  final Stream<List<T?>>? stream;
 | 
			
		||||
  final String? errorMessage;
 | 
			
		||||
 | 
			
		||||
  const CrudState({
 | 
			
		||||
    this.status = CrudStatus.idle,
 | 
			
		||||
    this.data = const [],
 | 
			
		||||
    this.stream,
 | 
			
		||||
    this.errorMessage,
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  List<Object?> get props => [status, data];
 | 
			
		||||
 | 
			
		||||
  CrudState<T> copyWith({
 | 
			
		||||
    CrudStatus? status,
 | 
			
		||||
    List<T?>? data,
 | 
			
		||||
    Stream<List<T?>>? stream,
 | 
			
		||||
    String? errorMessage,
 | 
			
		||||
  }) {
 | 
			
		||||
    return CrudState<T>(
 | 
			
		||||
      status: status ?? this.status,
 | 
			
		||||
      data: data ?? this.data,
 | 
			
		||||
      stream: stream ?? this.stream,
 | 
			
		||||
      errorMessage: errorMessage ?? this.errorMessage,
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  String toString() =>
 | 
			
		||||
      // ignore: lines_longer_than_80_chars
 | 
			
		||||
      'CrudState(status: $status, data: $data, stream: ${stream != null ? 'listening' : 'null'}, errorMessage: $errorMessage)';
 | 
			
		||||
}
 | 
			
		||||
@ -1,18 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
// 
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
// 
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
// 
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
export 'data_sources/data_sources.dart';
 | 
			
		||||
export 'repositories/repositories.dart';
 | 
			
		||||
@ -1,18 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
export 'local/crud_in_memory_data_source_impl.dart';
 | 
			
		||||
export 'remote/crud_firestore_data_source_impl.dart';
 | 
			
		||||
@ -1,174 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'dart:async';
 | 
			
		||||
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/core/enums/where_query_type.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/core/extensions/num_extension.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/data_sources/crud_data_source.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/object_model.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/query.dart';
 | 
			
		||||
 | 
			
		||||
class CrudInMemoryDataSourceImpl<Model extends ObjectModel>
 | 
			
		||||
    extends CrudDataSource<Model> {
 | 
			
		||||
  final Map<String, Model> _data;
 | 
			
		||||
  final StreamController<List<Model?>> _streamData = StreamController();
 | 
			
		||||
 | 
			
		||||
  final Map<String, Object?> Function(Model) toMap;
 | 
			
		||||
 | 
			
		||||
  CrudInMemoryDataSourceImpl({required this.toMap, Map<String, Model>? data})
 | 
			
		||||
      : _data = data ?? {};
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> create(Model object, {String? id}) async {
 | 
			
		||||
    _data[id ?? object.id ?? ''] = object;
 | 
			
		||||
    _streamData.add(_data.values.toList());
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> delete(String id) async {
 | 
			
		||||
    _data.remove(id);
 | 
			
		||||
    _streamData.add(_data.values.toList());
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> deleteAll() async {
 | 
			
		||||
    _data.clear();
 | 
			
		||||
    _streamData.add(_data.values.toList());
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<Model?> get(String id) async => _data[id];
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<List<Model?>> getAll() async => _data.values.toList();
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<List<Model?>> query(List<QueryInterface> conditions) async {
 | 
			
		||||
    List<Model> result = _data.values.toList();
 | 
			
		||||
 | 
			
		||||
    for (final c in conditions) {
 | 
			
		||||
      if (c is WhereQuery) {
 | 
			
		||||
        result = result.where((m) => _whereQuery(c, m)).toList();
 | 
			
		||||
      }
 | 
			
		||||
      if (c is LimitQuery) {
 | 
			
		||||
        final limit = result.length - c.limit;
 | 
			
		||||
        result = result.sublist(limit >= 0 ? limit : 0);
 | 
			
		||||
      }
 | 
			
		||||
      if (c is OrderByQuery) {
 | 
			
		||||
        try {
 | 
			
		||||
          result.sort();
 | 
			
		||||
        } catch (_) {}
 | 
			
		||||
        if (c.ascending) {
 | 
			
		||||
          result = result.reversed.toList();
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    result.cast<Model>();
 | 
			
		||||
 | 
			
		||||
    return result;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Stream<List<Model?>> stream({
 | 
			
		||||
    String? id,
 | 
			
		||||
    List<QueryInterface>? conditions,
 | 
			
		||||
    bool includeMetadataChanges = false,
 | 
			
		||||
  }) =>
 | 
			
		||||
      _streamData.stream.map((result) {
 | 
			
		||||
        if (conditions == null) {
 | 
			
		||||
          return result;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        List<Model?> res = result;
 | 
			
		||||
 | 
			
		||||
        for (final c in conditions) {
 | 
			
		||||
          if (c is WhereQuery) {
 | 
			
		||||
            res = res.where((element) => _whereQuery(c, element)).toList();
 | 
			
		||||
          }
 | 
			
		||||
          if (c is LimitQuery) {
 | 
			
		||||
            res = res.sublist(res.length - c.limit);
 | 
			
		||||
          }
 | 
			
		||||
          if (c is OrderByQuery) {
 | 
			
		||||
            res.sort();
 | 
			
		||||
            if (c.ascending) {
 | 
			
		||||
              res = res.reversed.toList();
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return res;
 | 
			
		||||
      }).asBroadcastStream();
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> update(
 | 
			
		||||
    String id, {
 | 
			
		||||
    Model? object,
 | 
			
		||||
    Map<String, dynamic>? raw,
 | 
			
		||||
  }) {
 | 
			
		||||
    // TODO(hpcl): implement update
 | 
			
		||||
    throw UnimplementedError();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> updateAll(Map<String, Object?>? data) {
 | 
			
		||||
    // TODO(hcpl): implement updateAll
 | 
			
		||||
    throw UnimplementedError();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  bool _whereQuery(QueryInterface condition, Model? object) {
 | 
			
		||||
    if (object == null) {
 | 
			
		||||
      return false;
 | 
			
		||||
    }
 | 
			
		||||
    final raw = toMap.call(object);
 | 
			
		||||
    if (condition is WhereQuery) {
 | 
			
		||||
      switch (condition.type) {
 | 
			
		||||
        case WhereQueryType.isEqualTo:
 | 
			
		||||
          return raw[condition.field] == condition.value;
 | 
			
		||||
        case WhereQueryType.isNotEqualTo:
 | 
			
		||||
          return raw[condition.field] != condition.value;
 | 
			
		||||
        case WhereQueryType.isLessThan:
 | 
			
		||||
          return (raw[condition.field] as num?) < (condition.value as num?);
 | 
			
		||||
        case WhereQueryType.isLessThanOrEqualTo:
 | 
			
		||||
          return (raw[condition.field] as num?) <= (condition.value as num?);
 | 
			
		||||
        case WhereQueryType.isGreaterThan:
 | 
			
		||||
          return (raw[condition.field] as num?) > (condition.value as num?);
 | 
			
		||||
        case WhereQueryType.isGreaterThanOrEqualTo:
 | 
			
		||||
          return (raw[condition.field] as num?) >= (condition.value as num?);
 | 
			
		||||
        case WhereQueryType.arrayContains:
 | 
			
		||||
          return (raw[condition.field] as List<Object>?)
 | 
			
		||||
                  ?.contains(condition.value) ??
 | 
			
		||||
              false;
 | 
			
		||||
        case WhereQueryType.arrayContainsAny:
 | 
			
		||||
          bool res = false;
 | 
			
		||||
          for (final o in condition.value as List<Object>) {
 | 
			
		||||
            res = (raw[condition.field] as List<Object>?)?.contains(o) ?? false;
 | 
			
		||||
          }
 | 
			
		||||
          return res;
 | 
			
		||||
        case WhereQueryType.whereIn:
 | 
			
		||||
          return (condition.value as List<Object>)
 | 
			
		||||
              .contains(raw[condition.field]);
 | 
			
		||||
        case WhereQueryType.whereNotIn:
 | 
			
		||||
          return !(condition.value as List<Object>)
 | 
			
		||||
              .contains(raw[condition.field]);
 | 
			
		||||
        case WhereQueryType.isNull:
 | 
			
		||||
          return raw[condition.field] == null;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    return true;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@ -1,224 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:cloud_firestore/cloud_firestore.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/core/enums/where_query_type.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/data_sources/crud_data_source.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/object_model.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/query.dart';
 | 
			
		||||
 | 
			
		||||
class CrudFirestoreDataSourceImpl<Model extends ObjectModel, Entity>
 | 
			
		||||
    extends CrudDataSource<Model> {
 | 
			
		||||
  final FirebaseFirestore _firestore;
 | 
			
		||||
 | 
			
		||||
  final Map<String, Object?> Function(Model, SetOptions?) _toFirestore;
 | 
			
		||||
  late CollectionReference<Model> _collectionReference;
 | 
			
		||||
 | 
			
		||||
  CrudFirestoreDataSourceImpl(
 | 
			
		||||
    String collection, {
 | 
			
		||||
    required Model Function(
 | 
			
		||||
      DocumentSnapshot<Map<String, dynamic>>,
 | 
			
		||||
      SnapshotOptions?,
 | 
			
		||||
    )
 | 
			
		||||
        fromFirestore,
 | 
			
		||||
    required Map<String, Object?> Function(Model, SetOptions?) toFirestore,
 | 
			
		||||
    FirebaseFirestore? firestore,
 | 
			
		||||
  })  : _firestore = firestore ?? FirebaseFirestore.instance,
 | 
			
		||||
        _toFirestore = toFirestore {
 | 
			
		||||
    _collectionReference =
 | 
			
		||||
        _firestore.collection(collection).withConverter<Model>(
 | 
			
		||||
              fromFirestore: fromFirestore,
 | 
			
		||||
              toFirestore: toFirestore,
 | 
			
		||||
            );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> create(Model object, {String? id}) {
 | 
			
		||||
    if (id != null) {
 | 
			
		||||
      return _collectionReference.doc(id).set(object);
 | 
			
		||||
    } else {
 | 
			
		||||
      if (object.id != null) {
 | 
			
		||||
        return _collectionReference.doc(object.id).set(object);
 | 
			
		||||
      }
 | 
			
		||||
      return _collectionReference.add(object);
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> delete(String id) => _collectionReference.doc(id).delete();
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> deleteAll() async {
 | 
			
		||||
    final batch = _firestore.batch();
 | 
			
		||||
    final QuerySnapshot snapshots = await _collectionReference.get();
 | 
			
		||||
    for (final DocumentSnapshot snapshot in snapshots.docs) {
 | 
			
		||||
      batch.delete(snapshot.reference);
 | 
			
		||||
    }
 | 
			
		||||
    return batch.commit();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<Model?> get(String id) async {
 | 
			
		||||
    final DocumentSnapshot<Model> snapshot =
 | 
			
		||||
        await _collectionReference.doc(id).get();
 | 
			
		||||
    return snapshot.data();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<List<Model?>> getAll() async {
 | 
			
		||||
    final QuerySnapshot<Model> snapshots = await _collectionReference.get();
 | 
			
		||||
    return snapshots.docs.map((snapshot) => snapshot.data()).toList();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<List<Model?>> query(List<QueryInterface> conditions) async {
 | 
			
		||||
    Query<Model> query = _collectionReference;
 | 
			
		||||
    for (final condition in conditions) {
 | 
			
		||||
      query = _queryParser(condition, query);
 | 
			
		||||
    }
 | 
			
		||||
    final QuerySnapshot<Model> snapshots = await query.get();
 | 
			
		||||
    return snapshots.docs.map((snapshot) => snapshot.data()).toList();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Stream<List<Model?>> stream({
 | 
			
		||||
    String? id,
 | 
			
		||||
    List<QueryInterface>? conditions,
 | 
			
		||||
    bool includeMetadataChanges = false,
 | 
			
		||||
  }) {
 | 
			
		||||
    if (id != null) {
 | 
			
		||||
      return _collectionReference
 | 
			
		||||
          .doc(id)
 | 
			
		||||
          .snapshots(
 | 
			
		||||
            includeMetadataChanges: includeMetadataChanges,
 | 
			
		||||
          )
 | 
			
		||||
          .map<List<Model?>>(
 | 
			
		||||
            (snapshot) => [snapshot.data()],
 | 
			
		||||
          );
 | 
			
		||||
    } else {
 | 
			
		||||
      if (conditions != null) {
 | 
			
		||||
        Query<Model> query = _collectionReference;
 | 
			
		||||
        for (final condition in conditions) {
 | 
			
		||||
          query = _queryParser(condition, query);
 | 
			
		||||
        }
 | 
			
		||||
        return query
 | 
			
		||||
            .snapshots(
 | 
			
		||||
              includeMetadataChanges: includeMetadataChanges,
 | 
			
		||||
            )
 | 
			
		||||
            .map(
 | 
			
		||||
              (querySnapshot) => querySnapshot.docs
 | 
			
		||||
                  .map((snapshot) => snapshot.data())
 | 
			
		||||
                  .toList(),
 | 
			
		||||
            );
 | 
			
		||||
      } else {
 | 
			
		||||
        return _collectionReference
 | 
			
		||||
            .snapshots(
 | 
			
		||||
              includeMetadataChanges: includeMetadataChanges,
 | 
			
		||||
            )
 | 
			
		||||
            .map(
 | 
			
		||||
              (querySnapshot) => querySnapshot.docs
 | 
			
		||||
                  .map((snapshot) => snapshot.data())
 | 
			
		||||
                  .toList(),
 | 
			
		||||
            );
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> update(
 | 
			
		||||
    String id, {
 | 
			
		||||
    Model? object,
 | 
			
		||||
    Map<String, dynamic>? raw,
 | 
			
		||||
  }) {
 | 
			
		||||
    if (object != null) {
 | 
			
		||||
      return _collectionReference
 | 
			
		||||
          .doc(id)
 | 
			
		||||
          .update(_toFirestore.call(object, null));
 | 
			
		||||
    } else {
 | 
			
		||||
      if (raw != null) {
 | 
			
		||||
        return _collectionReference.doc(id).update(raw);
 | 
			
		||||
      } else {
 | 
			
		||||
        throw Exception('You must provide an object or a raw map');
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> updateAll(Map<String, Object?>? data) async {
 | 
			
		||||
    if (data == null) {
 | 
			
		||||
      throw Exception('You must provide data to update');
 | 
			
		||||
    }
 | 
			
		||||
    final batch = _firestore.batch();
 | 
			
		||||
    final QuerySnapshot<Model> snapshots = await _collectionReference.get();
 | 
			
		||||
    for (final DocumentSnapshot snapshot in snapshots.docs) {
 | 
			
		||||
      batch.update(snapshot.reference, data);
 | 
			
		||||
    }
 | 
			
		||||
    return batch.commit();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  Query<Model> _queryParser(QueryInterface condition, Object query) {
 | 
			
		||||
    query as Query<Model>;
 | 
			
		||||
    if (condition is WhereQuery) {
 | 
			
		||||
      switch (condition.type) {
 | 
			
		||||
        case WhereQueryType.isEqualTo:
 | 
			
		||||
          return query.where(condition.field, isEqualTo: condition.value);
 | 
			
		||||
        case WhereQueryType.isNotEqualTo:
 | 
			
		||||
          return query.where(condition.field, isNotEqualTo: condition.value);
 | 
			
		||||
        case WhereQueryType.isLessThan:
 | 
			
		||||
          return query.where(condition.field, isLessThan: condition.value);
 | 
			
		||||
        case WhereQueryType.isLessThanOrEqualTo:
 | 
			
		||||
          return query.where(
 | 
			
		||||
            condition.field,
 | 
			
		||||
            isLessThanOrEqualTo: condition.value,
 | 
			
		||||
          );
 | 
			
		||||
        case WhereQueryType.isGreaterThan:
 | 
			
		||||
          return query.where(condition.field, isGreaterThan: condition.value);
 | 
			
		||||
        case WhereQueryType.isGreaterThanOrEqualTo:
 | 
			
		||||
          return query.where(
 | 
			
		||||
            condition.field,
 | 
			
		||||
            isGreaterThanOrEqualTo: condition.value,
 | 
			
		||||
          );
 | 
			
		||||
        case WhereQueryType.arrayContains:
 | 
			
		||||
          return query.where(condition.field, arrayContains: condition.value);
 | 
			
		||||
        case WhereQueryType.arrayContainsAny:
 | 
			
		||||
          return query.where(
 | 
			
		||||
            condition.field,
 | 
			
		||||
            arrayContainsAny: condition.value as List<Object>,
 | 
			
		||||
          );
 | 
			
		||||
        case WhereQueryType.whereIn:
 | 
			
		||||
          return query.where(
 | 
			
		||||
            condition.field,
 | 
			
		||||
            whereIn: condition.value as List<Object>,
 | 
			
		||||
          );
 | 
			
		||||
        case WhereQueryType.whereNotIn:
 | 
			
		||||
          return query.where(
 | 
			
		||||
            condition.field,
 | 
			
		||||
            whereNotIn: condition.value as List<Object>,
 | 
			
		||||
          );
 | 
			
		||||
        case WhereQueryType.isNull:
 | 
			
		||||
          return query.where(condition.field, isNull: condition.value as bool);
 | 
			
		||||
      }
 | 
			
		||||
    } else if (condition is LimitQuery) {
 | 
			
		||||
      return query.limit(condition.limit);
 | 
			
		||||
    } else if (condition is OrderByQuery) {
 | 
			
		||||
      return query.orderBy(
 | 
			
		||||
        condition.field,
 | 
			
		||||
        descending: !condition.ascending,
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
    return query;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@ -1,105 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/data_sources/crud_data_source.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/object_model.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/query.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/repositories/crud_repository.dart';
 | 
			
		||||
import 'package:wyatt_type_utils/wyatt_type_utils.dart';
 | 
			
		||||
 | 
			
		||||
class CrudRepositoryImpl<Model extends ObjectModel>
 | 
			
		||||
    extends CrudRepository<Model> {
 | 
			
		||||
  final CrudDataSource<Model> _crudDataSource;
 | 
			
		||||
 | 
			
		||||
  CrudRepositoryImpl({
 | 
			
		||||
    required CrudDataSource<Model> crudDataSource,
 | 
			
		||||
  }) : _crudDataSource = crudDataSource;
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  FutureResult<void> create(Model object, {String? id}) =>
 | 
			
		||||
      Result.tryCatchAsync<void, AppException, AppException>(
 | 
			
		||||
        () async {
 | 
			
		||||
          await _crudDataSource.create(object, id: id);
 | 
			
		||||
        },
 | 
			
		||||
        (error) => error,
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  FutureResult<Model?> get(String id) =>
 | 
			
		||||
      Result.tryCatchAsync<Model?, AppException, AppException>(
 | 
			
		||||
        () async => _crudDataSource.get(id),
 | 
			
		||||
        (error) => error,
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  FutureResult<List<Model?>> getAll() =>
 | 
			
		||||
      Result.tryCatchAsync<List<Model?>, AppException, AppException>(
 | 
			
		||||
        () async => _crudDataSource.getAll(),
 | 
			
		||||
        (error) => error,
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  FutureResult<void> update(
 | 
			
		||||
    String id, {
 | 
			
		||||
    Model? object,
 | 
			
		||||
    Map<String, dynamic>? raw,
 | 
			
		||||
  }) =>
 | 
			
		||||
      Result.tryCatchAsync<void, AppException, AppException>(
 | 
			
		||||
        () async => _crudDataSource.update(id, object: object, raw: raw),
 | 
			
		||||
        (error) => error,
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  FutureResult<void> updateAll(Map<String, Object?> raw) =>
 | 
			
		||||
      Result.tryCatchAsync<void, AppException, AppException>(
 | 
			
		||||
        () async => _crudDataSource.updateAll(raw),
 | 
			
		||||
        (error) => error,
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  FutureResult<void> delete(String id) =>
 | 
			
		||||
      Result.tryCatchAsync<void, AppException, AppException>(
 | 
			
		||||
        () async => _crudDataSource.delete(id),
 | 
			
		||||
        (error) => error,
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  FutureResult<void> deleteAll() =>
 | 
			
		||||
      Result.tryCatchAsync<void, AppException, AppException>(
 | 
			
		||||
        () async => _crudDataSource.deleteAll(),
 | 
			
		||||
        (error) => error,
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  FutureResult<List<Model?>> query(List<QueryInterface> conditions) =>
 | 
			
		||||
      Result.tryCatchAsync<List<Model?>, AppException, AppException>(
 | 
			
		||||
        () async => _crudDataSource.query(conditions),
 | 
			
		||||
        (error) => error,
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  StreamResult<List<Model?>> stream({
 | 
			
		||||
    String? id,
 | 
			
		||||
    List<QueryInterface>? conditions,
 | 
			
		||||
  }) =>
 | 
			
		||||
      _crudDataSource.stream(id: id, conditions: conditions).map((lst) {
 | 
			
		||||
        if (lst.isNotNull) {
 | 
			
		||||
          return Ok<List<Model?>, AppException>(lst);
 | 
			
		||||
        }
 | 
			
		||||
        return Err<List<Model?>, AppException>(ServerException());
 | 
			
		||||
      });
 | 
			
		||||
}
 | 
			
		||||
@ -1,17 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
// 
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
// 
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
// 
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
export 'crud_repository_impl.dart';
 | 
			
		||||
@ -1,20 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
// 
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
// 
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
// 
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
export 'data_sources/data_sources.dart';
 | 
			
		||||
export 'entities/entities.dart';
 | 
			
		||||
export 'repositories/repositories.dart';
 | 
			
		||||
export 'usecases/usecases.dart';
 | 
			
		||||
@ -1,18 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
// 
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
// 
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
// 
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
export 'object_model.dart';
 | 
			
		||||
export 'query.dart';
 | 
			
		||||
@ -1,46 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/core/enums/where_query_type.dart';
 | 
			
		||||
 | 
			
		||||
// ignore: one_member_abstracts
 | 
			
		||||
abstract class QueryParser<Q> {
 | 
			
		||||
  Q parser(QueryInterface condition, Q query);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
abstract class QueryInterface extends Entity {}
 | 
			
		||||
 | 
			
		||||
class WhereQuery<Value> extends QueryInterface {
 | 
			
		||||
  final WhereQueryType type;
 | 
			
		||||
  final String field;
 | 
			
		||||
  final Value value;
 | 
			
		||||
 | 
			
		||||
  WhereQuery(this.type, this.field, this.value);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class LimitQuery extends QueryInterface {
 | 
			
		||||
  final int limit;
 | 
			
		||||
 | 
			
		||||
  LimitQuery(this.limit);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class OrderByQuery extends QueryInterface {
 | 
			
		||||
  final String field;
 | 
			
		||||
  final bool ascending;
 | 
			
		||||
 | 
			
		||||
  OrderByQuery(this.field, {this.ascending = true});
 | 
			
		||||
}
 | 
			
		||||
@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/object_model.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/query.dart';
 | 
			
		||||
 | 
			
		||||
abstract class CrudRepository<Model extends ObjectModel> extends BaseRepository {
 | 
			
		||||
  FutureResult<void> create(Model object, {String? id});
 | 
			
		||||
  FutureResult<Model?> get(String id);
 | 
			
		||||
  FutureResult<List<Model?>> getAll();
 | 
			
		||||
  FutureResult<void> update(
 | 
			
		||||
    String id, {
 | 
			
		||||
    Model? object,
 | 
			
		||||
    Map<String, dynamic>? raw,
 | 
			
		||||
  });
 | 
			
		||||
  FutureResult<void> updateAll(Map<String, Object?> raw);
 | 
			
		||||
  FutureResult<void> delete(String id);
 | 
			
		||||
  FutureResult<void> deleteAll();
 | 
			
		||||
  FutureResult<List<Model?>> query(List<QueryInterface> conditions);
 | 
			
		||||
  StreamResult<List<Model?>> stream({
 | 
			
		||||
    String? id,
 | 
			
		||||
    List<QueryInterface>? conditions,
 | 
			
		||||
  });
 | 
			
		||||
}
 | 
			
		||||
@ -1,29 +0,0 @@
 | 
			
		||||
// ignore_for_file: public_member_api_docs, sort_constructors_first
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/object_model.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/repositories/crud_repository.dart';
 | 
			
		||||
 | 
			
		||||
class Create<Model extends ObjectModel> extends UseCase<Model, void> {
 | 
			
		||||
  final CrudRepository<Model> _crudRepository;
 | 
			
		||||
 | 
			
		||||
  Create(this._crudRepository);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  FutureResult<void> call(Model params) => _crudRepository.create(params);
 | 
			
		||||
}
 | 
			
		||||
@ -1,28 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/object_model.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/repositories/crud_repository.dart';
 | 
			
		||||
 | 
			
		||||
class Delete<Model extends ObjectModel> extends UseCase<String, void> {
 | 
			
		||||
  final CrudRepository<Model> _crudRepository;
 | 
			
		||||
 | 
			
		||||
  Delete(this._crudRepository);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  FutureResult<void> call(String params) => _crudRepository.delete(params);
 | 
			
		||||
}
 | 
			
		||||
@ -1,28 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/object_model.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/repositories/crud_repository.dart';
 | 
			
		||||
 | 
			
		||||
class DeleteAll<Model extends ObjectModel> extends UseCase<void, void> {
 | 
			
		||||
  final CrudRepository<Model> _crudRepository;
 | 
			
		||||
 | 
			
		||||
  DeleteAll(this._crudRepository);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  FutureResult<void> call(void params) => _crudRepository.deleteAll();
 | 
			
		||||
}
 | 
			
		||||
@ -1,28 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/object_model.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/repositories/crud_repository.dart';
 | 
			
		||||
 | 
			
		||||
class Get<Model extends ObjectModel> extends UseCase<String, Model?> {
 | 
			
		||||
  final CrudRepository<Model> _crudRepository;
 | 
			
		||||
 | 
			
		||||
  Get(this._crudRepository);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  FutureResult<Model?> call(String params) => _crudRepository.get(params);
 | 
			
		||||
}
 | 
			
		||||
@ -1,28 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/object_model.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/repositories/crud_repository.dart';
 | 
			
		||||
 | 
			
		||||
class GetAll<Model extends ObjectModel> extends UseCase<void, List<Model?>> {
 | 
			
		||||
  final CrudRepository<Model> _crudRepository;
 | 
			
		||||
 | 
			
		||||
  GetAll(this._crudRepository);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  FutureResult<List<Model?>> call(void params) => _crudRepository.getAll();
 | 
			
		||||
}
 | 
			
		||||
@ -1,18 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
// 
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
// 
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
// 
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
export 'stream_parameters.dart';
 | 
			
		||||
export 'update_parameters.dart';
 | 
			
		||||
@ -1,28 +0,0 @@
 | 
			
		||||
// ignore_for_file: public_member_api_docs, sort_constructors_first
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/query.dart';
 | 
			
		||||
 | 
			
		||||
class StreamParameters {
 | 
			
		||||
  final String? id;
 | 
			
		||||
  final List<QueryInterface>? conditions;
 | 
			
		||||
  
 | 
			
		||||
  StreamParameters({
 | 
			
		||||
    this.id,
 | 
			
		||||
    this.conditions,
 | 
			
		||||
  });
 | 
			
		||||
}
 | 
			
		||||
@ -1,28 +0,0 @@
 | 
			
		||||
// ignore_for_file: public_member_api_docs, sort_constructors_first
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
class UpdateParameters<Model> {
 | 
			
		||||
  final String id;
 | 
			
		||||
  final Model? object;
 | 
			
		||||
  final Map<String, dynamic>? raw;
 | 
			
		||||
  
 | 
			
		||||
  UpdateParameters({
 | 
			
		||||
    required this.id,
 | 
			
		||||
    this.object,
 | 
			
		||||
    this.raw,
 | 
			
		||||
  });
 | 
			
		||||
}
 | 
			
		||||
@ -1,31 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/object_model.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/query.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/repositories/crud_repository.dart';
 | 
			
		||||
 | 
			
		||||
class Query<Model extends ObjectModel>
 | 
			
		||||
    extends UseCase<List<QueryInterface>, List<Model?>> {
 | 
			
		||||
  final CrudRepository<Model> _crudRepository;
 | 
			
		||||
 | 
			
		||||
  Query(this._crudRepository);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  FutureResult<List<Model?>> call(List<QueryInterface> params) =>
 | 
			
		||||
      _crudRepository.query(params);
 | 
			
		||||
}
 | 
			
		||||
@ -1,31 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
// TODO(hpcl): add streamed usecase in wyatt_architecture
 | 
			
		||||
 | 
			
		||||
// import 'package:wyatt_architecture/wyatt_architecture.dart';
 | 
			
		||||
// import 'package:wyatt_crud_bloc/src/domain/repositories/crud_repository.dart';
 | 
			
		||||
// import 'package:wyatt_crud_bloc/src/domain/usecases/params/stream_parameters.dart';
 | 
			
		||||
 | 
			
		||||
// class Stream<Model extends ObjectModel> extends UseCase<StreamParameters, List<Model?>> {
 | 
			
		||||
//   final CrudRepository<Model> _crudRepository;
 | 
			
		||||
 | 
			
		||||
//   Stream(this._crudRepository);
 | 
			
		||||
 | 
			
		||||
//   @override
 | 
			
		||||
//   StreamResult<List<Model?>> call(StreamParameters params) =>
 | 
			
		||||
//       _crudRepository.stream(id: params.id, conditions: params.conditions);
 | 
			
		||||
// }
 | 
			
		||||
@ -1,35 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/object_model.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/repositories/crud_repository.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/usecases/params/update_parameters.dart';
 | 
			
		||||
 | 
			
		||||
class Update<Model extends ObjectModel>
 | 
			
		||||
    extends UseCase<UpdateParameters<Model>, void> {
 | 
			
		||||
  final CrudRepository<Model> _crudRepository;
 | 
			
		||||
 | 
			
		||||
  Update(this._crudRepository);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  FutureResult<void> call(UpdateParameters<Model> params) =>
 | 
			
		||||
      _crudRepository.update(
 | 
			
		||||
        params.id,
 | 
			
		||||
        object: params.object,
 | 
			
		||||
        raw: params.raw,
 | 
			
		||||
      );
 | 
			
		||||
}
 | 
			
		||||
@ -1,30 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/object_model.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/repositories/crud_repository.dart';
 | 
			
		||||
 | 
			
		||||
class UpdateAll<Model extends ObjectModel>
 | 
			
		||||
    extends UseCase<Map<String, Object?>, void> {
 | 
			
		||||
  final CrudRepository<Model> _crudRepository;
 | 
			
		||||
 | 
			
		||||
  UpdateAll(this._crudRepository);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  FutureResult<void> call(Map<String, Object?> params) =>
 | 
			
		||||
      _crudRepository.updateAll(params);
 | 
			
		||||
}
 | 
			
		||||
@ -1,26 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
// 
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
// 
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
// 
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
export 'create.dart';
 | 
			
		||||
export 'delete.dart';
 | 
			
		||||
export 'delete_all.dart';
 | 
			
		||||
export 'get.dart';
 | 
			
		||||
export 'get_all.dart';
 | 
			
		||||
export 'params/params.dart';
 | 
			
		||||
export 'query.dart';
 | 
			
		||||
export 'stream.dart';
 | 
			
		||||
export 'update.dart';
 | 
			
		||||
export 'update_all.dart';
 | 
			
		||||
@ -1,88 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:flutter/material.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/features/crud/cubit/crud_cubit.dart';
 | 
			
		||||
 | 
			
		||||
class CrudBuilder<I, L, S, E> extends StatelessWidget {
 | 
			
		||||
  /// `<I, L, S, E>`
 | 
			
		||||
  ///
 | 
			
		||||
  /// - I: the Initial State
 | 
			
		||||
  /// - L: the Loading State
 | 
			
		||||
  /// - S: the Success State
 | 
			
		||||
  /// - E: the Error State
 | 
			
		||||
  const CrudBuilder({
 | 
			
		||||
    required this.state,
 | 
			
		||||
    required this.builder,
 | 
			
		||||
    required this.initialBuilder,
 | 
			
		||||
    required this.loadingBuilder,
 | 
			
		||||
    required this.errorBuilder,
 | 
			
		||||
    this.unknownBuilder,
 | 
			
		||||
    super.key,
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  /// `<CrudInitial, CrudLoading, S extends CrudSuccess, CrudError>`
 | 
			
		||||
  ///
 | 
			
		||||
  /// - S: the Success State
 | 
			
		||||
  ///
 | 
			
		||||
  /// For CrudStates only.
 | 
			
		||||
  static CrudBuilder<CrudInitial, CrudLoading, CrudSuccess, CrudError>
 | 
			
		||||
      typed<S extends CrudSuccess>({
 | 
			
		||||
    required CrudState state,
 | 
			
		||||
    required Widget Function(BuildContext, S) builder,
 | 
			
		||||
    required Widget Function(BuildContext, CrudInitial) initialBuilder,
 | 
			
		||||
    required Widget Function(BuildContext, CrudLoading) loadingBuilder,
 | 
			
		||||
    required Widget Function(BuildContext, CrudError) errorBuilder,
 | 
			
		||||
    Widget Function(BuildContext, Object)? unknownBuilder,
 | 
			
		||||
  }) =>
 | 
			
		||||
          CrudBuilder<CrudInitial, CrudLoading, S, CrudError>(
 | 
			
		||||
            state: state,
 | 
			
		||||
            builder: builder,
 | 
			
		||||
            initialBuilder: initialBuilder,
 | 
			
		||||
            loadingBuilder: loadingBuilder,
 | 
			
		||||
            errorBuilder: errorBuilder,
 | 
			
		||||
            unknownBuilder: unknownBuilder,
 | 
			
		||||
          );
 | 
			
		||||
 | 
			
		||||
  final Object state;
 | 
			
		||||
  final Widget Function(BuildContext context, S state) builder;
 | 
			
		||||
  final Widget Function(BuildContext context, I state) initialBuilder;
 | 
			
		||||
  final Widget Function(BuildContext context, L state) loadingBuilder;
 | 
			
		||||
  final Widget Function(BuildContext context, E state) errorBuilder;
 | 
			
		||||
  final Widget Function(BuildContext context, Object state)? unknownBuilder;
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Widget build(BuildContext context) => Builder(
 | 
			
		||||
        builder: (context) {
 | 
			
		||||
          if (state is S) {
 | 
			
		||||
            return builder(context, state as S);
 | 
			
		||||
          } else if (state is E) {
 | 
			
		||||
            return errorBuilder(context, state as E);
 | 
			
		||||
          } else if (state is L) {
 | 
			
		||||
            return loadingBuilder(context, state as L);
 | 
			
		||||
          } else if (state is I) {
 | 
			
		||||
            return initialBuilder(context, state as I);
 | 
			
		||||
          } else {
 | 
			
		||||
            return unknownBuilder?.call(context, state) ??
 | 
			
		||||
                Center(
 | 
			
		||||
                  child: Text(
 | 
			
		||||
                    'Unknown state: $state',
 | 
			
		||||
                  ),
 | 
			
		||||
                );
 | 
			
		||||
          }
 | 
			
		||||
        },
 | 
			
		||||
      );
 | 
			
		||||
}
 | 
			
		||||
@ -1,267 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'dart:async';
 | 
			
		||||
 | 
			
		||||
import 'package:equatable/equatable.dart';
 | 
			
		||||
import 'package:flutter_bloc/flutter_bloc.dart';
 | 
			
		||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/core/enums/where_query_type.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/object_model.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/query.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/usecases/create.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/usecases/delete.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/usecases/delete_all.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/usecases/get.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/usecases/get_all.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/usecases/params/update_parameters.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/usecases/query.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/usecases/update.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/usecases/update_all.dart';
 | 
			
		||||
 | 
			
		||||
part 'crud_state.dart';
 | 
			
		||||
 | 
			
		||||
abstract class CrudCubit<Model extends ObjectModel> extends Cubit<CrudState> {
 | 
			
		||||
  Create<Model>? get crudCreate;
 | 
			
		||||
  DeleteAll<Model>? get crudDeleteAll;
 | 
			
		||||
  Delete<Model>? get crudDelete;
 | 
			
		||||
  GetAll<Model>? get crudGetAll;
 | 
			
		||||
  Get<Model>? get crudGet;
 | 
			
		||||
  Query<Model>? get crudQuery;
 | 
			
		||||
  UpdateAll<Model>? get crudUpdateAll;
 | 
			
		||||
  Update<Model>? get crudUpdate;
 | 
			
		||||
 | 
			
		||||
  CrudCubit() : super(CrudInitial());
 | 
			
		||||
 | 
			
		||||
  FutureOr<void> create(Model model) async {
 | 
			
		||||
    if (crudCreate != null) {
 | 
			
		||||
      final stateCopy = state;
 | 
			
		||||
      emit(CrudLoading());
 | 
			
		||||
      final result = await crudCreate!.call(model);
 | 
			
		||||
      emit(
 | 
			
		||||
        result.fold(
 | 
			
		||||
          (_) {
 | 
			
		||||
            if (stateCopy is CrudLoaded<Model?>) {
 | 
			
		||||
              return stateCopy;
 | 
			
		||||
            }
 | 
			
		||||
            if (stateCopy is CrudListLoaded<Model?>) {
 | 
			
		||||
              if (stateCopy.data.isEmpty) {
 | 
			
		||||
                return CrudListLoaded<Model?>([model]);
 | 
			
		||||
              }
 | 
			
		||||
              final List<Model?> lst = stateCopy.data.toList()..add(model);
 | 
			
		||||
              return CrudListLoaded<Model?>(lst);
 | 
			
		||||
            }
 | 
			
		||||
            return const CrudOkReturn();
 | 
			
		||||
          },
 | 
			
		||||
          (error) => CrudError(error.toString()),
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  FutureOr<void> delete(String id) async {
 | 
			
		||||
    if (crudDelete != null) {
 | 
			
		||||
      final stateCopy = state;
 | 
			
		||||
      emit(CrudLoading());
 | 
			
		||||
      final result = await crudDelete!.call(id);
 | 
			
		||||
      emit(
 | 
			
		||||
        result.fold(
 | 
			
		||||
          (_) {
 | 
			
		||||
            if (stateCopy is CrudLoaded<Model?>) {
 | 
			
		||||
              return stateCopy;
 | 
			
		||||
            }
 | 
			
		||||
            if (stateCopy is CrudListLoaded<Model?>) {
 | 
			
		||||
              return CrudListLoaded<Model?>(
 | 
			
		||||
                stateCopy.data.where((element) => element?.id != id).toList(),
 | 
			
		||||
              );
 | 
			
		||||
            }
 | 
			
		||||
            return const CrudOkReturn();
 | 
			
		||||
          },
 | 
			
		||||
          (error) => CrudError(error.toString()),
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  FutureOr<void> deleteAll() async {
 | 
			
		||||
    if (crudDeleteAll != null) {
 | 
			
		||||
      final stateCopy = state;
 | 
			
		||||
      emit(CrudLoading());
 | 
			
		||||
      final result = await crudDeleteAll!.call(null);
 | 
			
		||||
      emit(
 | 
			
		||||
        result.fold(
 | 
			
		||||
          (_) {
 | 
			
		||||
            if (stateCopy is CrudLoaded<Model?>) {
 | 
			
		||||
              return CrudLoaded<Model?>(null);
 | 
			
		||||
            }
 | 
			
		||||
            if (stateCopy is CrudListLoaded<Model?>) {
 | 
			
		||||
              return CrudListLoaded<Model?>(const []);
 | 
			
		||||
            }
 | 
			
		||||
            return const CrudOkReturn();
 | 
			
		||||
          },
 | 
			
		||||
          (error) => CrudError(error.toString()),
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  FutureOr<void> get(String id) async {
 | 
			
		||||
    if (crudGet != null) {
 | 
			
		||||
      emit(CrudLoading());
 | 
			
		||||
      final result = await crudGet!.call(id);
 | 
			
		||||
      emit(
 | 
			
		||||
        result.fold(
 | 
			
		||||
          CrudLoaded<Model?>.new,
 | 
			
		||||
          (error) => CrudError(error.toString()),
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  FutureOr<void> getAll() async {
 | 
			
		||||
    if (crudGetAll != null) {
 | 
			
		||||
      emit(CrudLoading());
 | 
			
		||||
      final result = await crudGetAll!.call(null);
 | 
			
		||||
      emit(
 | 
			
		||||
        result.fold(
 | 
			
		||||
          CrudListLoaded<Model?>.new,
 | 
			
		||||
          (error) => CrudError(error.toString()),
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  FutureOr<void> query(List<QueryInterface> conditions) async {
 | 
			
		||||
    if (crudQuery != null) {
 | 
			
		||||
      emit(CrudLoading());
 | 
			
		||||
      final result = await crudQuery!.call(conditions);
 | 
			
		||||
      emit(
 | 
			
		||||
        result.fold(
 | 
			
		||||
          CrudListLoaded<Model?>.new,
 | 
			
		||||
          (error) => CrudError(error.toString()),
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  FutureOr<void> update(UpdateParameters<Model> param) async {
 | 
			
		||||
    if (crudUpdate != null) {
 | 
			
		||||
      final stateCopy = state;
 | 
			
		||||
      emit(CrudLoading());
 | 
			
		||||
      final result = await crudUpdate!.call(param);
 | 
			
		||||
      emit(
 | 
			
		||||
        await result.foldAsync(
 | 
			
		||||
          (_) async {
 | 
			
		||||
            if (stateCopy is CrudLoaded<Model?>) {
 | 
			
		||||
              if (stateCopy.data?.id == param.id) {
 | 
			
		||||
                // Same object, need to update actual stateCopy
 | 
			
		||||
                if (crudGet == null) {
 | 
			
		||||
                  throw ClientException(
 | 
			
		||||
                    'Need to init Get usecase to use update.',
 | 
			
		||||
                  );
 | 
			
		||||
                }
 | 
			
		||||
                final newVersion = await crudGet!.call(param.id);
 | 
			
		||||
                if (newVersion.isOk) {
 | 
			
		||||
                  return CrudLoaded<Model?>(newVersion.ok);
 | 
			
		||||
                }
 | 
			
		||||
              }
 | 
			
		||||
              return stateCopy;
 | 
			
		||||
            }
 | 
			
		||||
            if (stateCopy is CrudListLoaded<Model?>) {
 | 
			
		||||
              final bool listContains =
 | 
			
		||||
                  stateCopy.data.any((element) => element?.id == param.id);
 | 
			
		||||
              if (listContains) {
 | 
			
		||||
                // Loaded objects contains the modified object.
 | 
			
		||||
                if (crudGet == null) {
 | 
			
		||||
                  throw ClientException(
 | 
			
		||||
                    'Need to init Get usecase to use update.',
 | 
			
		||||
                  );
 | 
			
		||||
                }
 | 
			
		||||
                final newVersion = await crudGet!.call(param.id);
 | 
			
		||||
                if (newVersion.isOk) {
 | 
			
		||||
                  final newList = stateCopy.data
 | 
			
		||||
                      .where(
 | 
			
		||||
                        (element) => element?.id != param.id,
 | 
			
		||||
                      )
 | 
			
		||||
                      .toList();
 | 
			
		||||
                  return CrudListLoaded<Model?>(newList + [newVersion.ok]);
 | 
			
		||||
                }
 | 
			
		||||
              }
 | 
			
		||||
              return stateCopy;
 | 
			
		||||
            }
 | 
			
		||||
            return const CrudOkReturn();
 | 
			
		||||
          },
 | 
			
		||||
          (error) async => CrudError(error.toString()),
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  FutureOr<void> updateAll(Map<String, Object?> param) async {
 | 
			
		||||
    if (crudUpdateAll != null) {
 | 
			
		||||
      final stateCopy = state;
 | 
			
		||||
      emit(CrudLoading());
 | 
			
		||||
      final result = await crudUpdateAll!.call(param);
 | 
			
		||||
      emit(
 | 
			
		||||
        await result.foldAsync(
 | 
			
		||||
          (_) async {
 | 
			
		||||
            if (stateCopy is CrudLoaded<Model?>) {
 | 
			
		||||
              // Same object, need to update actual stateCopy
 | 
			
		||||
              if (crudGet == null) {
 | 
			
		||||
                throw ClientException(
 | 
			
		||||
                  'Need to init Get usecase to use updateAll.',
 | 
			
		||||
                );
 | 
			
		||||
              }
 | 
			
		||||
              final actualId = stateCopy.data?.id;
 | 
			
		||||
              final newVersion = await crudGet!.call(actualId ?? '');
 | 
			
		||||
              if (newVersion.isOk) {
 | 
			
		||||
                return CrudLoaded<Model?>(newVersion.ok);
 | 
			
		||||
              }
 | 
			
		||||
              return stateCopy;
 | 
			
		||||
            }
 | 
			
		||||
            if (stateCopy is CrudListLoaded<Model?>) {
 | 
			
		||||
              if (crudQuery == null) {
 | 
			
		||||
                throw ClientException(
 | 
			
		||||
                  'Need to init Query usecase to use updateAll.',
 | 
			
		||||
                );
 | 
			
		||||
              }
 | 
			
		||||
              // Load all id to retrieve exactly same object
 | 
			
		||||
              // (not all because previous stateCopy can be a query result)
 | 
			
		||||
              final List<String?> ids = stateCopy.data
 | 
			
		||||
                  .map(
 | 
			
		||||
                    (e) => e?.id,
 | 
			
		||||
                  )
 | 
			
		||||
                  .toList();
 | 
			
		||||
              final result = await crudQuery!.call([
 | 
			
		||||
                WhereQuery(
 | 
			
		||||
                  WhereQueryType.whereIn,
 | 
			
		||||
                  'id',
 | 
			
		||||
                  ids,
 | 
			
		||||
                )
 | 
			
		||||
              ]);
 | 
			
		||||
              if (result.isOk) {
 | 
			
		||||
                return CrudListLoaded<Model?>(result.ok ?? []);
 | 
			
		||||
              }
 | 
			
		||||
              return stateCopy;
 | 
			
		||||
            }
 | 
			
		||||
            return const CrudOkReturn();
 | 
			
		||||
          },
 | 
			
		||||
          (error) async => CrudError(error.toString()),
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@ -1,63 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
part of 'crud_cubit.dart';
 | 
			
		||||
 | 
			
		||||
abstract class CrudState extends Equatable {
 | 
			
		||||
  const CrudState();
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  List<Object?> get props => [];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class CrudInitial extends CrudState {}
 | 
			
		||||
 | 
			
		||||
class CrudLoading extends CrudState {}
 | 
			
		||||
 | 
			
		||||
abstract class CrudSuccess extends CrudState {
 | 
			
		||||
  const CrudSuccess();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class CrudOkReturn extends CrudState {
 | 
			
		||||
  const CrudOkReturn();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class CrudError extends CrudState {
 | 
			
		||||
  final String? message;
 | 
			
		||||
 | 
			
		||||
  const CrudError(this.message);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  List<Object?> get props => [message];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class CrudLoaded<T> extends CrudSuccess {
 | 
			
		||||
  final T? data;
 | 
			
		||||
 | 
			
		||||
  const CrudLoaded(this.data);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  List<Object?> get props => [data];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class CrudListLoaded<T> extends CrudSuccess {
 | 
			
		||||
  final List<T?> data;
 | 
			
		||||
 | 
			
		||||
  const CrudListLoaded(this.data);
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  List<Object> get props => [data];
 | 
			
		||||
}
 | 
			
		||||
@ -1,17 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
// 
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
// 
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
// 
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
export 'crud/crud.dart';
 | 
			
		||||
@ -14,8 +14,8 @@
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
 | 
			
		||||
 | 
			
		||||
abstract class ObjectModel extends Entity {
 | 
			
		||||
abstract class Model<O, T> {
 | 
			
		||||
  String? get id;
 | 
			
		||||
  Map<String, Object> toMap();
 | 
			
		||||
  T? from(O? object);
 | 
			
		||||
}
 | 
			
		||||
@ -14,4 +14,5 @@
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
export 'crud_data_source.dart';
 | 
			
		||||
export 'model.dart';
 | 
			
		||||
export 'queries/queries.dart';
 | 
			
		||||
@ -14,4 +14,5 @@
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
export 'enums/where_query_type.dart';
 | 
			
		||||
export 'queries_firestore.dart';
 | 
			
		||||
export 'queries_interface.dart';
 | 
			
		||||
@ -0,0 +1,88 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:cloud_firestore/cloud_firestore.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/models/queries/queries_interface.dart';
 | 
			
		||||
 | 
			
		||||
class QueryParserFirestore implements QueryParserInterface {
 | 
			
		||||
  @override
 | 
			
		||||
  Query parser(QueryInterface condition, Object query) {
 | 
			
		||||
    query as Query;
 | 
			
		||||
    if (condition is WhereQueryInterface) {
 | 
			
		||||
      switch (condition.type) {
 | 
			
		||||
        case WhereQueryType.isEqualTo:
 | 
			
		||||
          return query.where(condition.field, isEqualTo: condition.value);
 | 
			
		||||
        case WhereQueryType.isNotEqualTo:
 | 
			
		||||
          return query.where(condition.field, isNotEqualTo: condition.value);
 | 
			
		||||
        case WhereQueryType.isLessThan:
 | 
			
		||||
          return query.where(condition.field, isLessThan: condition.value);
 | 
			
		||||
        case WhereQueryType.isLessThanOrEqualTo:
 | 
			
		||||
          return query.where(
 | 
			
		||||
            condition.field,
 | 
			
		||||
            isLessThanOrEqualTo: condition.value,
 | 
			
		||||
          );
 | 
			
		||||
        case WhereQueryType.isGreaterThan:
 | 
			
		||||
          return query.where(condition.field, isGreaterThan: condition.value);
 | 
			
		||||
        case WhereQueryType.isGreaterThanOrEqualTo:
 | 
			
		||||
          return query.where(
 | 
			
		||||
            condition.field,
 | 
			
		||||
            isGreaterThanOrEqualTo: condition.value,
 | 
			
		||||
          );
 | 
			
		||||
        case WhereQueryType.arrayContains:
 | 
			
		||||
          return query.where(condition.field, arrayContains: condition.value);
 | 
			
		||||
        case WhereQueryType.arrayContainsAny:
 | 
			
		||||
          return query.where(
 | 
			
		||||
            condition.field,
 | 
			
		||||
            arrayContainsAny: condition.value as List<Object>,
 | 
			
		||||
          );
 | 
			
		||||
        case WhereQueryType.whereIn:
 | 
			
		||||
          return query.where(
 | 
			
		||||
            condition.field,
 | 
			
		||||
            whereIn: condition.value as List<Object>,
 | 
			
		||||
          );
 | 
			
		||||
        case WhereQueryType.whereNotIn:
 | 
			
		||||
          return query.where(
 | 
			
		||||
            condition.field,
 | 
			
		||||
            whereNotIn: condition.value as List<Object>,
 | 
			
		||||
          );
 | 
			
		||||
        case WhereQueryType.isNull:
 | 
			
		||||
          return query.where(condition.field, isNull: condition.value as bool);
 | 
			
		||||
      }
 | 
			
		||||
    } else if (condition is LimitQueryInterface) {
 | 
			
		||||
      return query.limit(condition.limit);
 | 
			
		||||
    } else if (condition is OrderByQueryInterface) {
 | 
			
		||||
      return query.orderBy(
 | 
			
		||||
        condition.field,
 | 
			
		||||
        descending: !condition.ascending,
 | 
			
		||||
      );
 | 
			
		||||
    }
 | 
			
		||||
    return query;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class WhereQueryFirestore extends WhereQueryInterface {
 | 
			
		||||
  WhereQueryFirestore(WhereQueryType type, String field, Object value)
 | 
			
		||||
      : super(type, field, value);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class LimitQueryFirestore extends LimitQueryInterface {
 | 
			
		||||
  LimitQueryFirestore(int limit) : super(limit);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class OrderByQueryFirestore extends OrderByQueryInterface {
 | 
			
		||||
  OrderByQueryFirestore(String field, {bool ascending = true})
 | 
			
		||||
      : super(field, ascending: ascending);
 | 
			
		||||
}
 | 
			
		||||
@ -14,6 +14,13 @@
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
// ignore: one_member_abstracts
 | 
			
		||||
abstract class QueryParserInterface {
 | 
			
		||||
  Object parser(QueryInterface condition, Object query);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
abstract class QueryInterface {}
 | 
			
		||||
 | 
			
		||||
enum WhereQueryType {
 | 
			
		||||
  isEqualTo,
 | 
			
		||||
  isNotEqualTo,
 | 
			
		||||
@ -27,3 +34,24 @@ enum WhereQueryType {
 | 
			
		||||
  whereNotIn,
 | 
			
		||||
  isNull,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
abstract class WhereQueryInterface extends QueryInterface {
 | 
			
		||||
  final WhereQueryType type;
 | 
			
		||||
  final String field;
 | 
			
		||||
  final Object value;
 | 
			
		||||
 | 
			
		||||
  WhereQueryInterface(this.type, this.field, this.value);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
abstract class LimitQueryInterface extends QueryInterface {
 | 
			
		||||
  final int limit;
 | 
			
		||||
 | 
			
		||||
  LimitQueryInterface(this.limit);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
abstract class OrderByQueryInterface extends QueryInterface {
 | 
			
		||||
  final String field;
 | 
			
		||||
  final bool ascending;
 | 
			
		||||
 | 
			
		||||
  OrderByQueryInterface(this.field, {this.ascending = true});
 | 
			
		||||
}
 | 
			
		||||
@ -0,0 +1,102 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:firebase_database/firebase_database.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/models/model.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/models/queries/queries_interface.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/repositories/crud_repository_interface.dart';
 | 
			
		||||
 | 
			
		||||
class CrudRepositoryFirebaseDatabase<T> implements CrudRepositoryInterface<T> {
 | 
			
		||||
  final FirebaseDatabase _firebaseDatabase;
 | 
			
		||||
  final Model<Object, T> _parser;
 | 
			
		||||
 | 
			
		||||
  late DatabaseReference _rootReference;
 | 
			
		||||
 | 
			
		||||
  CrudRepositoryFirebaseDatabase(
 | 
			
		||||
    String root,
 | 
			
		||||
    Model<Object, T> parser, {
 | 
			
		||||
    FirebaseDatabase? firebaseDatabase,
 | 
			
		||||
  })  : _firebaseDatabase = firebaseDatabase ?? FirebaseDatabase.instance,
 | 
			
		||||
        _parser = parser {
 | 
			
		||||
    _rootReference = _firebaseDatabase.ref(root);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> create(Model object, {String? id}) {
 | 
			
		||||
    DatabaseReference _reference = _rootReference;
 | 
			
		||||
    if (id != null) {
 | 
			
		||||
      _reference = _reference.child(id);
 | 
			
		||||
    }
 | 
			
		||||
    return _reference.set(object.toMap());
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> delete(String id) {
 | 
			
		||||
    final DatabaseReference _reference = _rootReference.child(id);
 | 
			
		||||
    return _reference.remove();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> deleteAll() {
 | 
			
		||||
    return _rootReference.remove();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<T?> get(String id) async {
 | 
			
		||||
    final DatabaseEvent _event = await _rootReference.child(id).once();
 | 
			
		||||
    return _parser.from(_event.snapshot.value);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<List<T?>> getAll() async {
 | 
			
		||||
    final DatabaseEvent _event = await _rootReference.once();
 | 
			
		||||
    final List<T?> _objects = [];
 | 
			
		||||
    _event.snapshot.children.map((e) => _objects.add(_parser.from(e.value)));
 | 
			
		||||
    return _objects;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<List<T?>> query(List<QueryInterface> conditions) {
 | 
			
		||||
    // TODO(hpcl): implement query
 | 
			
		||||
    throw UnimplementedError();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Stream<List<T?>> stream({String? id, List<QueryInterface>? conditions}) {
 | 
			
		||||
    DatabaseReference _reference = _rootReference;
 | 
			
		||||
    if (id != null) {
 | 
			
		||||
      _reference = _reference.child(id);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return _reference.onValue.map((e) {
 | 
			
		||||
      final List<T?> _objects = [];
 | 
			
		||||
      e.snapshot.children.map((e) => _objects.add(_parser.from(e.value)));
 | 
			
		||||
      return _objects;
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> update(String id, {Model? object, Map<String, dynamic>? raw}) {
 | 
			
		||||
    // TODO(hpcl): implement update
 | 
			
		||||
    throw UnimplementedError();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> updateAll(Map<String, Object?> raw) {
 | 
			
		||||
    // TODO(hpcl): implement updateAll
 | 
			
		||||
    throw UnimplementedError();
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@ -0,0 +1,146 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:cloud_firestore/cloud_firestore.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/models/model.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/models/queries/queries_firestore.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/models/queries/queries_interface.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/repositories/crud_repository_interface.dart';
 | 
			
		||||
 | 
			
		||||
class CrudRepositoryFirestore<T> implements CrudRepositoryInterface<T> {
 | 
			
		||||
  final FirebaseFirestore _firestore;
 | 
			
		||||
  final Model<DocumentSnapshot, T> _parser;
 | 
			
		||||
 | 
			
		||||
  late CollectionReference _collectionReference;
 | 
			
		||||
 | 
			
		||||
  CrudRepositoryFirestore(
 | 
			
		||||
    String collection,
 | 
			
		||||
    Model<DocumentSnapshot, T> parser, {
 | 
			
		||||
    FirebaseFirestore? firestore,
 | 
			
		||||
  })  : _firestore = firestore ?? FirebaseFirestore.instance,
 | 
			
		||||
        _parser = parser {
 | 
			
		||||
    _collectionReference = _firestore.collection(collection);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> create(Model object, {String? id}) {
 | 
			
		||||
    if (id != null) {
 | 
			
		||||
      return _collectionReference.doc(id).set(object.toMap());
 | 
			
		||||
    } else {
 | 
			
		||||
      return _collectionReference.add(object.toMap());
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> delete(String id) {
 | 
			
		||||
    return _collectionReference.doc(id).delete();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> deleteAll() async {
 | 
			
		||||
    final _batch = _firestore.batch();
 | 
			
		||||
    final QuerySnapshot snapshots = await _collectionReference.get();
 | 
			
		||||
    for (final DocumentSnapshot snapshot in snapshots.docs) {
 | 
			
		||||
      _batch.delete(snapshot.reference);
 | 
			
		||||
    }
 | 
			
		||||
    return _batch.commit();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<T?> get(String id) async {
 | 
			
		||||
    final DocumentSnapshot snapshot = await _collectionReference.doc(id).get();
 | 
			
		||||
    return _parser.from(snapshot);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<List<T?>> getAll() async {
 | 
			
		||||
    final QuerySnapshot snapshots = await _collectionReference.get();
 | 
			
		||||
    return snapshots.docs.map(_parser.from).toList();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<List<T?>> query(List<QueryInterface> conditions) async {
 | 
			
		||||
    Query query = _collectionReference;
 | 
			
		||||
    for (final condition in conditions) {
 | 
			
		||||
      query = QueryParserFirestore().parser(condition, query);
 | 
			
		||||
    }
 | 
			
		||||
    final QuerySnapshot snapshots = await query.get();
 | 
			
		||||
    return snapshots.docs.map(_parser.from).toList();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Stream<List<T?>> stream({
 | 
			
		||||
    String? id,
 | 
			
		||||
    List<QueryInterface>? conditions,
 | 
			
		||||
    bool includeMetadataChanges = false,
 | 
			
		||||
  }) {
 | 
			
		||||
    if (id != null) {
 | 
			
		||||
      return _collectionReference
 | 
			
		||||
          .doc(id)
 | 
			
		||||
          .snapshots(
 | 
			
		||||
            includeMetadataChanges: includeMetadataChanges,
 | 
			
		||||
          )
 | 
			
		||||
          .map<List<T?>>(
 | 
			
		||||
            (DocumentSnapshot snapshot) => [_parser.from(snapshot)],
 | 
			
		||||
          );
 | 
			
		||||
    } else {
 | 
			
		||||
      if (conditions != null) {
 | 
			
		||||
        Query query = _collectionReference;
 | 
			
		||||
        for (final condition in conditions) {
 | 
			
		||||
          query = QueryParserFirestore().parser(condition, query);
 | 
			
		||||
        }
 | 
			
		||||
        return query
 | 
			
		||||
            .snapshots(
 | 
			
		||||
          includeMetadataChanges: includeMetadataChanges,
 | 
			
		||||
        )
 | 
			
		||||
            .map((querySnapshot) {
 | 
			
		||||
          return querySnapshot.docs.map(_parser.from).toList();
 | 
			
		||||
        });
 | 
			
		||||
      } else {
 | 
			
		||||
        return _collectionReference
 | 
			
		||||
            .snapshots(
 | 
			
		||||
          includeMetadataChanges: includeMetadataChanges,
 | 
			
		||||
        )
 | 
			
		||||
            .map((querySnapshot) {
 | 
			
		||||
          return querySnapshot.docs.map(_parser.from).toList();
 | 
			
		||||
        });
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> update(String id, {Model? object, Map<String, Object?>? raw}) {
 | 
			
		||||
    if (object != null) {
 | 
			
		||||
      return _collectionReference.doc(id).update(object.toMap());
 | 
			
		||||
    } else {
 | 
			
		||||
      if (raw != null) {
 | 
			
		||||
        return _collectionReference.doc(id).update(raw);
 | 
			
		||||
      } else {
 | 
			
		||||
        throw Exception('You must provide an object or a raw map');
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Future<void> updateAll(Map<String, Object?> raw) async {
 | 
			
		||||
    final _batch = _firestore.batch();
 | 
			
		||||
    final QuerySnapshot snapshots = await _collectionReference.get();
 | 
			
		||||
    for (final DocumentSnapshot snapshot in snapshots.docs) {
 | 
			
		||||
      _batch.update(snapshot.reference, raw);
 | 
			
		||||
    }
 | 
			
		||||
    return _batch.commit();
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@ -14,33 +14,17 @@
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
import 'package:wyatt_architecture/wyatt_architecture.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/domain/entities/query.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/models/model.dart';
 | 
			
		||||
import 'package:wyatt_crud_bloc/src/models/queries/queries_interface.dart';
 | 
			
		||||
 | 
			
		||||
abstract class CrudDataSource<Model> extends BaseDataSource {
 | 
			
		||||
abstract class CrudRepositoryInterface<T> {
 | 
			
		||||
  Future<void> create(Model object, {String? id});
 | 
			
		||||
 | 
			
		||||
  Future<Model?> get(String id);
 | 
			
		||||
 | 
			
		||||
  Future<List<Model?>> getAll();
 | 
			
		||||
 | 
			
		||||
  Future<void> update(
 | 
			
		||||
    String id, {
 | 
			
		||||
    Model? object,
 | 
			
		||||
    Map<String, dynamic>? raw,
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  Future<void> updateAll(Map<String, Object?>? data);
 | 
			
		||||
 | 
			
		||||
  Future<void> delete(String id);
 | 
			
		||||
 | 
			
		||||
  Future<void> deleteAll();
 | 
			
		||||
 | 
			
		||||
  Future<List<Model?>> query(List<QueryInterface> conditions);
 | 
			
		||||
 | 
			
		||||
  Stream<List<Model?>> stream({
 | 
			
		||||
    String? id,
 | 
			
		||||
    List<QueryInterface>? conditions,
 | 
			
		||||
    bool includeMetadataChanges = false,
 | 
			
		||||
  });
 | 
			
		||||
  Future<T?> get(String id);
 | 
			
		||||
  Future<List<T?>> getAll();
 | 
			
		||||
  Future<List<T?>> query(List<QueryInterface> conditions);
 | 
			
		||||
  Stream<List<T?>> stream({String? id, List<QueryInterface>? conditions});
 | 
			
		||||
  Future<void> update(String id, {Model? object, Map<String, dynamic>? raw});
 | 
			
		||||
  Future<void> updateAll(Map<String, Object?> raw);
 | 
			
		||||
}
 | 
			
		||||
@ -14,4 +14,5 @@
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
export 'crud_repository.dart';
 | 
			
		||||
export 'crud_repository_firestore.dart';
 | 
			
		||||
export 'crud_repository_interface.dart';
 | 
			
		||||
@ -1,20 +0,0 @@
 | 
			
		||||
// Copyright (C) 2022 WYATT GROUP
 | 
			
		||||
// Please see the AUTHORS file for details.
 | 
			
		||||
//
 | 
			
		||||
// This program is free software: you can redistribute it and/or modify
 | 
			
		||||
// it under the terms of the GNU General Public License as published by
 | 
			
		||||
// the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
// any later version.
 | 
			
		||||
//
 | 
			
		||||
// This program is distributed in the hope that it will be useful,
 | 
			
		||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
// GNU General Public License for more details.
 | 
			
		||||
//
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
export 'core/core.dart';
 | 
			
		||||
export 'data/data.dart';
 | 
			
		||||
export 'domain/domain.dart';
 | 
			
		||||
export 'features/features.dart';
 | 
			
		||||
@ -14,7 +14,8 @@
 | 
			
		||||
// You should have received a copy of the GNU General Public License
 | 
			
		||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
/// Create/Read/Update/Delete BLoC for Flutter
 | 
			
		||||
library wyatt_crud_bloc;
 | 
			
		||||
 | 
			
		||||
export 'src/src.dart';
 | 
			
		||||
export 'src/crud/crud.dart';
 | 
			
		||||
export 'src/models/models.dart';
 | 
			
		||||
export 'src/repositories/repositories.dart';
 | 
			
		||||
 | 
			
		||||
@ -3,32 +3,25 @@ description: Create/Read/Update/Delete BLoC for Flutter
 | 
			
		||||
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_crud_bloc
 | 
			
		||||
version: 0.0.2
 | 
			
		||||
 | 
			
		||||
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
 | 
			
		||||
 | 
			
		||||
environment:
 | 
			
		||||
  sdk: ">=2.17.0 <3.0.0"
 | 
			
		||||
  sdk: '>=2.16.2 <3.0.0'
 | 
			
		||||
  flutter: ">=1.17.0"
 | 
			
		||||
 | 
			
		||||
dependencies:
 | 
			
		||||
  flutter:
 | 
			
		||||
    sdk: flutter
 | 
			
		||||
 | 
			
		||||
  flutter_bloc: ^8.1.1
 | 
			
		||||
  equatable: ^2.0.5
 | 
			
		||||
  cloud_firestore: ^4.0.5
 | 
			
		||||
 | 
			
		||||
  wyatt_architecture:
 | 
			
		||||
    hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/
 | 
			
		||||
    version: 0.0.2
 | 
			
		||||
 | 
			
		||||
  wyatt_type_utils:
 | 
			
		||||
    hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/
 | 
			
		||||
    version: 0.0.3+1
 | 
			
		||||
  flutter_bloc: ^8.0.1
 | 
			
		||||
  equatable: ^2.0.3
 | 
			
		||||
  cloud_firestore: ^3.1.12
 | 
			
		||||
  firebase_database: ^9.0.11
 | 
			
		||||
 | 
			
		||||
dev_dependencies:
 | 
			
		||||
  flutter_test:
 | 
			
		||||
    sdk: flutter
 | 
			
		||||
  bloc_test: ^9.1.0
 | 
			
		||||
  bloc_test: ^9.0.3
 | 
			
		||||
  wyatt_analysis:
 | 
			
		||||
    hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/
 | 
			
		||||
    version: 2.2.2
 | 
			
		||||
    git:
 | 
			
		||||
      url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages
 | 
			
		||||
      ref: wyatt_analysis-v2.2.2
 | 
			
		||||
      path: packages/wyatt_analysis
 | 
			
		||||
 | 
			
		||||