diff --git a/demos/django-todolist/pubspec.lock b/demos/django-todolist/pubspec.lock
index c9a78f73..697c80b7 100644
--- a/demos/django-todolist/pubspec.lock
+++ b/demos/django-todolist/pubspec.lock
@@ -310,7 +310,7 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
- version: "1.6.3"
+ version: "1.6.4"
powersync_flutter_libs:
dependency: "direct overridden"
description:
diff --git a/demos/supabase-anonymous-auth/pubspec.lock b/demos/supabase-anonymous-auth/pubspec.lock
index ea727faa..c3d03b9c 100644
--- a/demos/supabase-anonymous-auth/pubspec.lock
+++ b/demos/supabase-anonymous-auth/pubspec.lock
@@ -366,7 +366,7 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
- version: "1.6.3"
+ version: "1.6.4"
powersync_flutter_libs:
dependency: "direct overridden"
description:
diff --git a/demos/supabase-edge-function-auth/pubspec.lock b/demos/supabase-edge-function-auth/pubspec.lock
index ea727faa..c3d03b9c 100644
--- a/demos/supabase-edge-function-auth/pubspec.lock
+++ b/demos/supabase-edge-function-auth/pubspec.lock
@@ -366,7 +366,7 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
- version: "1.6.3"
+ version: "1.6.4"
powersync_flutter_libs:
dependency: "direct overridden"
description:
diff --git a/demos/supabase-simple-chat/pubspec.lock b/demos/supabase-simple-chat/pubspec.lock
index 15328a7a..9682cc25 100644
--- a/demos/supabase-simple-chat/pubspec.lock
+++ b/demos/supabase-simple-chat/pubspec.lock
@@ -382,7 +382,7 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
- version: "1.6.3"
+ version: "1.6.4"
powersync_flutter_libs:
dependency: "direct overridden"
description:
diff --git a/demos/supabase-todolist-drift/.gitignore b/demos/supabase-todolist-drift/.gitignore
new file mode 100644
index 00000000..b5e97dcc
--- /dev/null
+++ b/demos/supabase-todolist-drift/.gitignore
@@ -0,0 +1,50 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+migrate_working_dir/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.pub-cache/
+.pub/
+/build/
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release
+
+# asdf
+.tool-versions
+devtools_options.yaml
+
+# secrets
+app_config.dart
\ No newline at end of file
diff --git a/demos/supabase-todolist-drift/.metadata b/demos/supabase-todolist-drift/.metadata
new file mode 100644
index 00000000..6eb54a17
--- /dev/null
+++ b/demos/supabase-todolist-drift/.metadata
@@ -0,0 +1,45 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled and should not be manually edited.
+
+version:
+ revision: "761747bfc538b5af34aa0d3fac380f1bc331ec49"
+ channel: "stable"
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
+ base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
+ - platform: android
+ create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
+ base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
+ - platform: ios
+ create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
+ base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
+ - platform: linux
+ create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
+ base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
+ - platform: macos
+ create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
+ base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
+ - platform: web
+ create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
+ base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
+ - platform: windows
+ create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
+ base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
+
+ # User provided section
+
+ # List of Local paths (relative to this file) that should be
+ # ignored by the migrate tool.
+ #
+ # Files that are not part of the templates will be ignored by default.
+ unmanaged_files:
+ - 'lib/main.dart'
+ - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/demos/supabase-todolist-drift/README.md b/demos/supabase-todolist-drift/README.md
new file mode 100644
index 00000000..cd745817
--- /dev/null
+++ b/demos/supabase-todolist-drift/README.md
@@ -0,0 +1,52 @@
+# PowerSync + Supabase + Drift Flutter Demo: Todo List App
+
+Demo app demonstrating use of the PowerSync SDK for Flutter together with Supabase. For a step-by-step guide, see [here](https://docs.powersync.com/integration-guides/supabase).
+
+# Running the app
+
+Ensure you have [melos](https://melos.invertase.dev/~melos-latest/getting-started) installed.
+
+1. `cd demos/supabase-todolist-drift`
+2. `melos prepare`
+3. `cp lib/app_config_template.dart lib/app_config.dart`
+4. Insert your Supabase and PowerSync project credentials into `lib/app_config.dart` (See instructions below)
+5. `flutter run`
+
+# Set up Supabase Project
+
+Create a new Supabase project, and paste an run the contents of [database.sql](./database.sql) in the Supabase SQL editor.
+
+It does the following:
+
+1. Create `lists` and `todos` tables.
+2. Create a publication called `powersync` for `lists` and `todos`.
+3. Enable row level security, allowing users to only view and edit their own data.
+4. Create a trigger to populate some sample data when an user registers.
+
+# Set up PowerSync Instance
+
+Create a new PowerSync instance, connecting to the database of the Supabase project.
+
+Then deploy the following sync rules:
+
+```yaml
+bucket_definitions:
+ user_lists:
+ # Separate bucket per todo list
+ parameters: select id as list_id from lists where owner_id = token_parameters.user_id
+ data:
+ - select * from lists where id = bucket.list_id
+ - select * from todos where list_id = bucket.list_id
+```
+
+# Configure the app
+
+Insert the credentials of your new Supabase and PowerSync projects into `lib/app_config.dart`
+
+# Drift
+
+The `database.g.dart` file containing the \_$AppDatabase class has to be generated if there are changes made to the `database.dart` file.
+
+- `dart run build_runner build` generates all the required code once.
+- `dart run build_runner build --delete-conflicting-outputs` deletes previously generated files and generates the required code once.
+- `dart run build_runner watch` watches for changes in your sources and generates code with incremental rebuilds. This is better for development.
diff --git a/demos/supabase-todolist-drift/analysis_options.yaml b/demos/supabase-todolist-drift/analysis_options.yaml
new file mode 100644
index 00000000..f9b30346
--- /dev/null
+++ b/demos/supabase-todolist-drift/analysis_options.yaml
@@ -0,0 +1 @@
+include: package:flutter_lints/flutter.yaml
diff --git a/demos/supabase-todolist-drift/android/.gitignore b/demos/supabase-todolist-drift/android/.gitignore
new file mode 100644
index 00000000..6f568019
--- /dev/null
+++ b/demos/supabase-todolist-drift/android/.gitignore
@@ -0,0 +1,13 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
+key.properties
+**/*.keystore
+**/*.jks
diff --git a/demos/supabase-todolist-drift/android/app/build.gradle b/demos/supabase-todolist-drift/android/app/build.gradle
new file mode 100644
index 00000000..920d4a5a
--- /dev/null
+++ b/demos/supabase-todolist-drift/android/app/build.gradle
@@ -0,0 +1,58 @@
+plugins {
+ id "com.android.application"
+ id "kotlin-android"
+ // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
+ id "dev.flutter.flutter-gradle-plugin"
+}
+
+def localProperties = new Properties()
+def localPropertiesFile = rootProject.file("local.properties")
+if (localPropertiesFile.exists()) {
+ localPropertiesFile.withReader("UTF-8") { reader ->
+ localProperties.load(reader)
+ }
+}
+
+def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
+if (flutterVersionCode == null) {
+ flutterVersionCode = "1"
+}
+
+def flutterVersionName = localProperties.getProperty("flutter.versionName")
+if (flutterVersionName == null) {
+ flutterVersionName = "1.0"
+}
+
+android {
+ namespace = "com.example.supabase_todolist_drift"
+ compileSdk = flutter.compileSdkVersion
+ ndkVersion = flutter.ndkVersion
+
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_1_8
+ targetCompatibility = JavaVersion.VERSION_1_8
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId = "com.example.supabase_todolist_drift"
+ // You can update the following values to match your application needs.
+ // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
+ minSdk = flutter.minSdkVersion
+ targetSdk = flutter.targetSdkVersion
+ versionCode = flutterVersionCode.toInteger()
+ versionName = flutterVersionName
+ }
+
+ buildTypes {
+ release {
+ // TODO: Add your own signing config for the release build.
+ // Signing with the debug keys for now, so `flutter run --release` works.
+ signingConfig = signingConfigs.debug
+ }
+ }
+}
+
+flutter {
+ source = "../.."
+}
diff --git a/demos/supabase-todolist-drift/android/app/src/debug/AndroidManifest.xml b/demos/supabase-todolist-drift/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 00000000..399f6981
--- /dev/null
+++ b/demos/supabase-todolist-drift/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/demos/supabase-todolist-drift/android/app/src/main/AndroidManifest.xml b/demos/supabase-todolist-drift/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 00000000..31fbc986
--- /dev/null
+++ b/demos/supabase-todolist-drift/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/demos/supabase-todolist-drift/android/app/src/main/kotlin/com/example/supabase_todolist_drift/MainActivity.kt b/demos/supabase-todolist-drift/android/app/src/main/kotlin/com/example/supabase_todolist_drift/MainActivity.kt
new file mode 100644
index 00000000..b862d376
--- /dev/null
+++ b/demos/supabase-todolist-drift/android/app/src/main/kotlin/com/example/supabase_todolist_drift/MainActivity.kt
@@ -0,0 +1,5 @@
+package com.example.supabase_todolist_drift
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity()
diff --git a/demos/supabase-todolist-drift/android/app/src/main/res/drawable-v21/launch_background.xml b/demos/supabase-todolist-drift/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 00000000..f74085f3
--- /dev/null
+++ b/demos/supabase-todolist-drift/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/demos/supabase-todolist-drift/android/app/src/main/res/drawable/launch_background.xml b/demos/supabase-todolist-drift/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 00000000..304732f8
--- /dev/null
+++ b/demos/supabase-todolist-drift/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/demos/supabase-todolist-drift/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/demos/supabase-todolist-drift/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 00000000..db77bb4b
Binary files /dev/null and b/demos/supabase-todolist-drift/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/demos/supabase-todolist-drift/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/demos/supabase-todolist-drift/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 00000000..17987b79
Binary files /dev/null and b/demos/supabase-todolist-drift/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/demos/supabase-todolist-drift/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/demos/supabase-todolist-drift/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 00000000..09d43914
Binary files /dev/null and b/demos/supabase-todolist-drift/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/demos/supabase-todolist-drift/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/demos/supabase-todolist-drift/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 00000000..d5f1c8d3
Binary files /dev/null and b/demos/supabase-todolist-drift/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/demos/supabase-todolist-drift/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/demos/supabase-todolist-drift/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 00000000..4d6372ee
Binary files /dev/null and b/demos/supabase-todolist-drift/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/demos/supabase-todolist-drift/android/app/src/main/res/values-night/styles.xml b/demos/supabase-todolist-drift/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 00000000..06952be7
--- /dev/null
+++ b/demos/supabase-todolist-drift/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/demos/supabase-todolist-drift/android/app/src/main/res/values/styles.xml b/demos/supabase-todolist-drift/android/app/src/main/res/values/styles.xml
new file mode 100644
index 00000000..cb1ef880
--- /dev/null
+++ b/demos/supabase-todolist-drift/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/demos/supabase-todolist-drift/android/app/src/profile/AndroidManifest.xml b/demos/supabase-todolist-drift/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 00000000..399f6981
--- /dev/null
+++ b/demos/supabase-todolist-drift/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/demos/supabase-todolist-drift/android/build.gradle b/demos/supabase-todolist-drift/android/build.gradle
new file mode 100644
index 00000000..d2ffbffa
--- /dev/null
+++ b/demos/supabase-todolist-drift/android/build.gradle
@@ -0,0 +1,18 @@
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.buildDir = "../build"
+subprojects {
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
+}
+subprojects {
+ project.evaluationDependsOn(":app")
+}
+
+tasks.register("clean", Delete) {
+ delete rootProject.buildDir
+}
diff --git a/demos/supabase-todolist-drift/android/gradle.properties b/demos/supabase-todolist-drift/android/gradle.properties
new file mode 100644
index 00000000..3b5b324f
--- /dev/null
+++ b/demos/supabase-todolist-drift/android/gradle.properties
@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx4G -XX:+HeapDumpOnOutOfMemoryError
+android.useAndroidX=true
+android.enableJetifier=true
diff --git a/demos/supabase-todolist-drift/android/gradle/wrapper/gradle-wrapper.properties b/demos/supabase-todolist-drift/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..e1ca574e
--- /dev/null
+++ b/demos/supabase-todolist-drift/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
diff --git a/demos/supabase-todolist-drift/android/settings.gradle b/demos/supabase-todolist-drift/android/settings.gradle
new file mode 100644
index 00000000..536165d3
--- /dev/null
+++ b/demos/supabase-todolist-drift/android/settings.gradle
@@ -0,0 +1,25 @@
+pluginManagement {
+ def flutterSdkPath = {
+ def properties = new Properties()
+ file("local.properties").withInputStream { properties.load(it) }
+ def flutterSdkPath = properties.getProperty("flutter.sdk")
+ assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
+ return flutterSdkPath
+ }()
+
+ includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
+
+ repositories {
+ google()
+ mavenCentral()
+ gradlePluginPortal()
+ }
+}
+
+plugins {
+ id "dev.flutter.flutter-plugin-loader" version "1.0.0"
+ id "com.android.application" version "7.3.0" apply false
+ id "org.jetbrains.kotlin.android" version "1.7.10" apply false
+}
+
+include ":app"
diff --git a/demos/supabase-todolist-drift/build.yaml b/demos/supabase-todolist-drift/build.yaml
new file mode 100644
index 00000000..4ea5a80c
--- /dev/null
+++ b/demos/supabase-todolist-drift/build.yaml
@@ -0,0 +1,6 @@
+targets:
+ $default:
+ builders:
+ drift_dev:
+ options:
+ store_date_time_values_as_text: true
diff --git a/demos/supabase-todolist-drift/devtools_options.yaml b/demos/supabase-todolist-drift/devtools_options.yaml
new file mode 100644
index 00000000..fa0b357c
--- /dev/null
+++ b/demos/supabase-todolist-drift/devtools_options.yaml
@@ -0,0 +1,3 @@
+description: This file stores settings for Dart & Flutter DevTools.
+documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
+extensions:
diff --git a/demos/supabase-todolist-drift/ios/.gitignore b/demos/supabase-todolist-drift/ios/.gitignore
new file mode 100644
index 00000000..7a7f9873
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/.gitignore
@@ -0,0 +1,34 @@
+**/dgph
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/demos/supabase-todolist-drift/ios/Flutter/AppFrameworkInfo.plist b/demos/supabase-todolist-drift/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 00000000..7c569640
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ App
+ CFBundleIdentifier
+ io.flutter.flutter.app
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ App
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ MinimumOSVersion
+ 12.0
+
+
diff --git a/demos/supabase-todolist-drift/ios/Flutter/Debug.xcconfig b/demos/supabase-todolist-drift/ios/Flutter/Debug.xcconfig
new file mode 100644
index 00000000..ec97fc6f
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Flutter/Debug.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
+#include "Generated.xcconfig"
diff --git a/demos/supabase-todolist-drift/ios/Flutter/Release.xcconfig b/demos/supabase-todolist-drift/ios/Flutter/Release.xcconfig
new file mode 100644
index 00000000..c4855bfe
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Flutter/Release.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
+#include "Generated.xcconfig"
diff --git a/demos/supabase-todolist-drift/ios/Podfile b/demos/supabase-todolist-drift/ios/Podfile
new file mode 100644
index 00000000..d97f17e2
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Podfile
@@ -0,0 +1,44 @@
+# Uncomment this line to define a global platform for your project
+# platform :ios, '12.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__))
+ target 'RunnerTests' do
+ inherit! :search_paths
+ end
+end
+
+post_install do |installer|
+ installer.pods_project.targets.each do |target|
+ flutter_additional_ios_build_settings(target)
+ end
+end
diff --git a/demos/supabase-todolist-drift/ios/Podfile.lock b/demos/supabase-todolist-drift/ios/Podfile.lock
new file mode 100644
index 00000000..1e0a0e14
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Podfile.lock
@@ -0,0 +1,85 @@
+PODS:
+ - app_links (0.0.1):
+ - Flutter
+ - camera_avfoundation (0.0.1):
+ - Flutter
+ - Flutter (1.0.0)
+ - path_provider_foundation (0.0.1):
+ - Flutter
+ - FlutterMacOS
+ - powersync-sqlite-core (0.1.6)
+ - powersync_flutter_libs (0.0.1):
+ - Flutter
+ - powersync-sqlite-core (~> 0.1.6)
+ - shared_preferences_foundation (0.0.1):
+ - Flutter
+ - FlutterMacOS
+ - "sqlite3 (3.46.0+1)":
+ - "sqlite3/common (= 3.46.0+1)"
+ - "sqlite3/common (3.46.0+1)"
+ - "sqlite3/dbstatvtab (3.46.0+1)":
+ - sqlite3/common
+ - "sqlite3/fts5 (3.46.0+1)":
+ - sqlite3/common
+ - "sqlite3/perf-threadsafe (3.46.0+1)":
+ - sqlite3/common
+ - "sqlite3/rtree (3.46.0+1)":
+ - sqlite3/common
+ - sqlite3_flutter_libs (0.0.1):
+ - Flutter
+ - "sqlite3 (~> 3.46.0+1)"
+ - sqlite3/dbstatvtab
+ - sqlite3/fts5
+ - sqlite3/perf-threadsafe
+ - sqlite3/rtree
+ - url_launcher_ios (0.0.1):
+ - Flutter
+
+DEPENDENCIES:
+ - app_links (from `.symlinks/plugins/app_links/ios`)
+ - camera_avfoundation (from `.symlinks/plugins/camera_avfoundation/ios`)
+ - Flutter (from `Flutter`)
+ - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
+ - powersync_flutter_libs (from `.symlinks/plugins/powersync_flutter_libs/ios`)
+ - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
+ - sqlite3_flutter_libs (from `.symlinks/plugins/sqlite3_flutter_libs/ios`)
+ - url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
+
+SPEC REPOS:
+ trunk:
+ - powersync-sqlite-core
+ - sqlite3
+
+EXTERNAL SOURCES:
+ app_links:
+ :path: ".symlinks/plugins/app_links/ios"
+ camera_avfoundation:
+ :path: ".symlinks/plugins/camera_avfoundation/ios"
+ Flutter:
+ :path: Flutter
+ path_provider_foundation:
+ :path: ".symlinks/plugins/path_provider_foundation/darwin"
+ powersync_flutter_libs:
+ :path: ".symlinks/plugins/powersync_flutter_libs/ios"
+ shared_preferences_foundation:
+ :path: ".symlinks/plugins/shared_preferences_foundation/darwin"
+ sqlite3_flutter_libs:
+ :path: ".symlinks/plugins/sqlite3_flutter_libs/ios"
+ url_launcher_ios:
+ :path: ".symlinks/plugins/url_launcher_ios/ios"
+
+SPEC CHECKSUMS:
+ app_links: e70ca16b4b0f88253b3b3660200d4a10b4ea9795
+ camera_avfoundation: dd002b0330f4981e1bbcb46ae9b62829237459a4
+ Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
+ path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
+ powersync-sqlite-core: 4c38c8f470f6dca61346789fd5436a6826d1e3dd
+ powersync_flutter_libs: 5d6b132a398de442c0853a8b14bfbb62cd4ff5a1
+ shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
+ sqlite3: 292c3e1bfe89f64e51ea7fc7dab9182a017c8630
+ sqlite3_flutter_libs: c00457ebd31e59fa6bb830380ddba24d44fbcd3b
+ url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe
+
+PODFILE CHECKSUM: 819463e6a0290f5a72f145ba7cde16e8b6ef0796
+
+COCOAPODS: 1.15.2
diff --git a/demos/supabase-todolist-drift/ios/Runner.xcodeproj/project.pbxproj b/demos/supabase-todolist-drift/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 00000000..94547304
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,731 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 54;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 2AA95F4BD1106733AA65B3D1 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C7F26FE8A2AE7EB1DCD03A63 /* Pods_RunnerTests.framework */; };
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 6B669B18D5922DF2E9FF3231 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DC37C372644D968F6312083 /* Pods_Runner.framework */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 97C146E61CF9000F007C117D /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 97C146ED1CF9000F007C117D;
+ remoteInfo = Runner;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
+ 15AA756A195A0498929C7AB8 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; };
+ 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; };
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
+ 4ABD541213112FCC0D84BBA6 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; };
+ 53F1849573A471693AAF7757 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; };
+ 5AB1DDF473ECE5996A267CFC /* 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 = ""; };
+ 5DC37C372644D968F6312083 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ A15106F56CD7643EC0938932 /* 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 = ""; };
+ AC1EC468FE1100F19B83C528 /* 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 = ""; };
+ C7F26FE8A2AE7EB1DCD03A63 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 2127B9F9BB1BBDC30AACA133 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 2AA95F4BD1106733AA65B3D1 /* Pods_RunnerTests.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 6B669B18D5922DF2E9FF3231 /* Pods_Runner.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 331C8082294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXGroup;
+ children = (
+ 331C807B294A618700263BE5 /* RunnerTests.swift */,
+ );
+ path = RunnerTests;
+ sourceTree = "";
+ };
+ 775FDDC091D1B0F1643D5E75 /* Pods */ = {
+ isa = PBXGroup;
+ children = (
+ 5AB1DDF473ECE5996A267CFC /* Pods-Runner.debug.xcconfig */,
+ A15106F56CD7643EC0938932 /* Pods-Runner.release.xcconfig */,
+ AC1EC468FE1100F19B83C528 /* Pods-Runner.profile.xcconfig */,
+ 53F1849573A471693AAF7757 /* Pods-RunnerTests.debug.xcconfig */,
+ 15AA756A195A0498929C7AB8 /* Pods-RunnerTests.release.xcconfig */,
+ 4ABD541213112FCC0D84BBA6 /* Pods-RunnerTests.profile.xcconfig */,
+ );
+ name = Pods;
+ path = Pods;
+ sourceTree = "";
+ };
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ 331C8082294A63A400263BE5 /* RunnerTests */,
+ 775FDDC091D1B0F1643D5E75 /* Pods */,
+ CD2D4C39902602D7512B2E46 /* Frameworks */,
+ );
+ sourceTree = "";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 97C147021CF9000F007C117D /* Info.plist */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+ CD2D4C39902602D7512B2E46 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 5DC37C372644D968F6312083 /* Pods_Runner.framework */,
+ C7F26FE8A2AE7EB1DCD03A63 /* Pods_RunnerTests.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 331C8080294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
+ buildPhases = (
+ 1BFE7CDE33D6F794EB1D704F /* [CP] Check Pods Manifest.lock */,
+ 331C807D294A63A400263BE5 /* Sources */,
+ 331C807F294A63A400263BE5 /* Resources */,
+ 2127B9F9BB1BBDC30AACA133 /* Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 331C8086294A63A400263BE5 /* PBXTargetDependency */,
+ );
+ name = RunnerTests;
+ productName = RunnerTests;
+ productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 7978750E9AC7A32658AF3F71 /* [CP] Check Pods Manifest.lock */,
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ 25F5BBE07D381880BF0BA164 /* [CP] Embed Pods Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ BuildIndependentTargetsInParallel = YES;
+ LastUpgradeCheck = 1510;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 331C8080294A63A400263BE5 = {
+ CreatedOnToolsVersion = 14.0;
+ TestTargetID = 97C146ED1CF9000F007C117D;
+ };
+ 97C146ED1CF9000F007C117D = {
+ CreatedOnToolsVersion = 7.3.1;
+ LastSwiftMigration = 1100;
+ };
+ };
+ };
+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 97C146E51CF9000F007C117D;
+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 97C146ED1CF9000F007C117D /* Runner */,
+ 331C8080294A63A400263BE5 /* RunnerTests */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 331C807F294A63A400263BE5 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 97C146EC1CF9000F007C117D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 1BFE7CDE33D6F794EB1D704F /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 25F5BBE07D381880BF0BA164 /* [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;
+ };
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+ };
+ 7978750E9AC7A32658AF3F71 /* [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;
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 331C807D294A63A400263BE5 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ 331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 97C146ED1CF9000F007C117D /* Runner */;
+ targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C146FB1CF9000F007C117D /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.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 = 2R3Z95N292;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.supabaseTodolistDrift;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Profile;
+ };
+ 331C8088294A63A400263BE5 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 53F1849573A471693AAF7757 /* Pods-RunnerTests.debug.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.supabaseTodolistDrift.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Debug;
+ };
+ 331C8089294A63A400263BE5 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 15AA756A195A0498929C7AB8 /* Pods-RunnerTests.release.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.supabaseTodolistDrift.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Release;
+ };
+ 331C808A294A63A400263BE5 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 4ABD541213112FCC0D84BBA6 /* Pods-RunnerTests.profile.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.supabaseTodolistDrift.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Profile;
+ };
+ 97C147031CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 97C147041CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.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 = 2R3Z95N292;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.supabaseTodolistDrift;
+ 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 = 2R3Z95N292;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.supabaseTodolistDrift;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 331C8088294A63A400263BE5 /* Debug */,
+ 331C8089294A63A400263BE5 /* Release */,
+ 331C808A294A63A400263BE5 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147031CF9000F007C117D /* Debug */,
+ 97C147041CF9000F007C117D /* Release */,
+ 249021D3217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147061CF9000F007C117D /* Debug */,
+ 97C147071CF9000F007C117D /* Release */,
+ 249021D4217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}
diff --git a/demos/supabase-todolist-drift/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/demos/supabase-todolist-drift/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 00000000..919434a6
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/demos/supabase-todolist-drift/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/demos/supabase-todolist-drift/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 00000000..18d98100
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/demos/supabase-todolist-drift/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/demos/supabase-todolist-drift/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 00000000..f9b0d7c5
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/demos/supabase-todolist-drift/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/demos/supabase-todolist-drift/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 00000000..8e3ca5df
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/demos/supabase-todolist-drift/ios/Runner.xcworkspace/contents.xcworkspacedata b/demos/supabase-todolist-drift/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 00000000..21a3cc14
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/demos/supabase-todolist-drift/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/demos/supabase-todolist-drift/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 00000000..18d98100
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/demos/supabase-todolist-drift/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/demos/supabase-todolist-drift/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 00000000..f9b0d7c5
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/demos/supabase-todolist-drift/ios/Runner/AppDelegate.swift b/demos/supabase-todolist-drift/ios/Runner/AppDelegate.swift
new file mode 100644
index 00000000..9074fee9
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Runner/AppDelegate.swift
@@ -0,0 +1,13 @@
+import Flutter
+import UIKit
+
+@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)
+ }
+}
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 00000000..d36b1fab
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,122 @@
+{
+ "images" : [
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-83.5x83.5@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "ios-marketing",
+ "filename" : "Icon-App-1024x1024@1x.png",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
new file mode 100644
index 00000000..dc9ada47
Binary files /dev/null and b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 00000000..7353c41e
Binary files /dev/null and b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 00000000..797d452e
Binary files /dev/null and b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 00000000..6ed2d933
Binary files /dev/null and b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 00000000..4cd7b009
Binary files /dev/null and b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 00000000..fe730945
Binary files /dev/null and b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 00000000..321773cd
Binary files /dev/null and b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 00000000..797d452e
Binary files /dev/null and b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 00000000..502f463a
Binary files /dev/null and b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 00000000..0ec30343
Binary files /dev/null and b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 00000000..0ec30343
Binary files /dev/null and b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 00000000..e9f5fea2
Binary files /dev/null and b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 00000000..84ac32ae
Binary files /dev/null and b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 00000000..8953cba0
Binary files /dev/null and b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 00000000..0467bf12
Binary files /dev/null and b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 00000000..0bedcf2f
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 00000000..9da19eac
Binary files /dev/null and b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 00000000..9da19eac
Binary files /dev/null and b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 00000000..9da19eac
Binary files /dev/null and b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
diff --git a/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 00000000..89c2725b
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -0,0 +1,5 @@
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
+You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
\ No newline at end of file
diff --git a/demos/supabase-todolist-drift/ios/Runner/Base.lproj/LaunchScreen.storyboard b/demos/supabase-todolist-drift/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 00000000..f2e259c7
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/demos/supabase-todolist-drift/ios/Runner/Base.lproj/Main.storyboard b/demos/supabase-todolist-drift/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 00000000..f3c28516
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/demos/supabase-todolist-drift/ios/Runner/Info.plist b/demos/supabase-todolist-drift/ios/Runner/Info.plist
new file mode 100644
index 00000000..9748fcbc
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Runner/Info.plist
@@ -0,0 +1,49 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Supabase Todolist Drift
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ supabase_todolist_drift
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ CADisableMinimumFrameDurationOnPhone
+
+ UIApplicationSupportsIndirectInputEvents
+
+
+
diff --git a/demos/supabase-todolist-drift/ios/Runner/Runner-Bridging-Header.h b/demos/supabase-todolist-drift/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 00000000..308a2a56
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/demos/supabase-todolist-drift/ios/RunnerTests/RunnerTests.swift b/demos/supabase-todolist-drift/ios/RunnerTests/RunnerTests.swift
new file mode 100644
index 00000000..86a7c3b1
--- /dev/null
+++ b/demos/supabase-todolist-drift/ios/RunnerTests/RunnerTests.swift
@@ -0,0 +1,12 @@
+import Flutter
+import UIKit
+import XCTest
+
+class RunnerTests: XCTestCase {
+
+ func testExample() {
+ // If you add code to the Runner application, consider adding tests here.
+ // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
+ }
+
+}
diff --git a/demos/supabase-todolist-drift/lib/app_config_template.dart b/demos/supabase-todolist-drift/lib/app_config_template.dart
new file mode 100644
index 00000000..ccfdfa21
--- /dev/null
+++ b/demos/supabase-todolist-drift/lib/app_config_template.dart
@@ -0,0 +1,9 @@
+// Copy this template: `cp lib/app_config_template.dart lib/app_config.dart`
+// Edit lib/app_config.dart and enter your Supabase and PowerSync project details.
+class AppConfig {
+ static const String supabaseUrl = 'https://foo.supabase.co';
+ static const String supabaseAnonKey = 'foo';
+ static const String powersyncUrl = 'https://foo.powersync.journeyapps.com';
+ static const String supabaseStorageBucket =
+ ''; // Optional. Only required when syncing attachments and using Supabase Storage. See packages/powersync_attachments_helper.
+}
diff --git a/demos/supabase-todolist-drift/lib/attachments/camera_helpers.dart b/demos/supabase-todolist-drift/lib/attachments/camera_helpers.dart
new file mode 100644
index 00000000..8aab6291
--- /dev/null
+++ b/demos/supabase-todolist-drift/lib/attachments/camera_helpers.dart
@@ -0,0 +1,20 @@
+import 'package:camera/camera.dart';
+import 'package:flutter/widgets.dart';
+import 'package:supabase_todolist_drift/powersync.dart';
+
+Future setupCamera() async {
+ // Ensure that plugin services are initialized so that `availableCameras()`
+ // can be called before `runApp()`
+ WidgetsFlutterBinding.ensureInitialized();
+ // Obtain a list of the available cameras on the device.
+ try {
+ final cameras = await availableCameras();
+ // Get a specific camera from the list of available cameras.
+ final camera = cameras.isNotEmpty ? cameras.first : null;
+ return camera;
+ } catch (e) {
+ // Camera is not supported on all platforms
+ log.warning('Failed to setup camera: $e');
+ return null;
+ }
+}
diff --git a/demos/supabase-todolist-drift/lib/attachments/photo_capture_widget.dart b/demos/supabase-todolist-drift/lib/attachments/photo_capture_widget.dart
new file mode 100644
index 00000000..aa742c42
--- /dev/null
+++ b/demos/supabase-todolist-drift/lib/attachments/photo_capture_widget.dart
@@ -0,0 +1,95 @@
+import 'dart:async';
+
+import 'package:camera/camera.dart';
+import 'package:flutter/material.dart';
+import 'package:powersync/powersync.dart' as powersync;
+import 'package:supabase_todolist_drift/attachments/queue.dart';
+import 'package:supabase_todolist_drift/powersync.dart';
+
+class TakePhotoWidget extends StatefulWidget {
+ final String todoId;
+ final CameraDescription camera;
+
+ const TakePhotoWidget(
+ {super.key, required this.todoId, required this.camera});
+
+ @override
+ State createState() {
+ return _TakePhotoWidgetState();
+ }
+}
+
+class _TakePhotoWidgetState extends State {
+ late CameraController _cameraController;
+ late Future _initializeControllerFuture;
+
+ @override
+ void initState() {
+ super.initState();
+
+ _cameraController = CameraController(
+ widget.camera,
+ ResolutionPreset.medium,
+ );
+
+ _initializeControllerFuture = _cameraController.initialize();
+ }
+
+ @override
+ // Dispose of the camera controller when the widget is disposed
+ void dispose() {
+ _cameraController.dispose();
+ super.dispose();
+ }
+
+ Future _takePhoto(BuildContext context) async {
+ try {
+ // Ensure the camera is initialized before taking a photo
+ await _initializeControllerFuture;
+
+ final XFile photo = await _cameraController.takePicture();
+ // copy photo to new directory with ID as name
+ String photoId = powersync.uuid.v4();
+ String storageDirectory = await attachmentQueue.getStorageDirectory();
+ await attachmentQueue.localStorage
+ .copyFile(photo.path, '$storageDirectory/$photoId.jpg');
+
+ int photoSize = await photo.length();
+
+ await appDb.addTodoPhoto(widget.todoId, photoId);
+ await attachmentQueue.saveFile(photoId, photoSize);
+ } catch (e) {
+ log.info('Error taking photo: $e');
+ }
+
+ // After taking the photo, navigate back to the previous screen
+ if (context.mounted) {
+ Navigator.pop(context);
+ }
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Column(
+ crossAxisAlignment: CrossAxisAlignment.center,
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ FutureBuilder(
+ future: _initializeControllerFuture,
+ builder: (context, snapshot) {
+ if (snapshot.connectionState == ConnectionState.done) {
+ return CameraPreview(_cameraController);
+ } else {
+ return const CircularProgressIndicator();
+ }
+ },
+ ),
+ const SizedBox(height: 16),
+ ElevatedButton(
+ onPressed: () => _takePhoto(context),
+ child: const Text('Take Photo'),
+ ),
+ ],
+ );
+ }
+}
diff --git a/demos/supabase-todolist-drift/lib/attachments/photo_widget.dart b/demos/supabase-todolist-drift/lib/attachments/photo_widget.dart
new file mode 100644
index 00000000..7d3799b7
--- /dev/null
+++ b/demos/supabase-todolist-drift/lib/attachments/photo_widget.dart
@@ -0,0 +1,132 @@
+import 'dart:io';
+
+import 'package:flutter/material.dart';
+import 'package:powersync_attachments_helper/powersync_attachments_helper.dart';
+import 'package:supabase_todolist_drift/attachments/camera_helpers.dart';
+import 'package:supabase_todolist_drift/attachments/photo_capture_widget.dart';
+import 'package:supabase_todolist_drift/attachments/queue.dart';
+import 'package:supabase_todolist_drift/database.dart';
+
+class PhotoWidget extends StatefulWidget {
+ final TodoItem todo;
+
+ PhotoWidget({
+ required this.todo,
+ }) : super(key: ObjectKey(todo.id));
+
+ @override
+ State createState() {
+ return _PhotoWidgetState();
+ }
+}
+
+class _ResolvedPhotoState {
+ String? photoPath;
+ bool fileExists;
+ Attachment? attachment;
+
+ _ResolvedPhotoState(
+ {required this.photoPath, required this.fileExists, this.attachment});
+}
+
+class _PhotoWidgetState extends State {
+ late String photoPath;
+
+ Future<_ResolvedPhotoState> _getPhotoState(photoId) async {
+ if (photoId == null) {
+ return _ResolvedPhotoState(photoPath: null, fileExists: false);
+ }
+ photoPath = await attachmentQueue.getLocalUri('$photoId.jpg');
+
+ bool fileExists = await File(photoPath).exists();
+
+ final row = await attachmentQueue.db
+ .getOptional('SELECT * FROM attachments_queue WHERE id = ?', [photoId]);
+
+ if (row != null) {
+ Attachment attachment = Attachment.fromRow(row);
+ return _ResolvedPhotoState(
+ photoPath: photoPath, fileExists: fileExists, attachment: attachment);
+ }
+
+ return _ResolvedPhotoState(
+ photoPath: photoPath, fileExists: fileExists, attachment: null);
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return FutureBuilder(
+ future: _getPhotoState(widget.todo.photoId),
+ builder: (BuildContext context,
+ AsyncSnapshot<_ResolvedPhotoState> snapshot) {
+ if (snapshot.data == null) {
+ return Container();
+ }
+ final data = snapshot.data!;
+ Widget takePhotoButton = ElevatedButton(
+ onPressed: () async {
+ final camera = await setupCamera();
+ if (!context.mounted) return;
+
+ if (camera == null) {
+ const snackBar = SnackBar(
+ content: Text('No camera available'),
+ backgroundColor:
+ Colors.red, // Optional: to highlight it's an error
+ );
+
+ ScaffoldMessenger.of(context).showSnackBar(snackBar);
+ return;
+ }
+
+ Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (context) =>
+ TakePhotoWidget(todoId: widget.todo.id, camera: camera),
+ ),
+ );
+ },
+ child: const Text('Take Photo'),
+ );
+
+ if (widget.todo.photoId == null) {
+ return takePhotoButton;
+ }
+
+ String? filePath = data.photoPath;
+ bool fileIsDownloading = !data.fileExists;
+ bool fileArchived =
+ data.attachment?.state == AttachmentState.archived.index;
+
+ if (fileArchived) {
+ return Column(
+ crossAxisAlignment: CrossAxisAlignment.center,
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ const Text("Unavailable"),
+ const SizedBox(height: 8),
+ takePhotoButton
+ ],
+ );
+ }
+
+ if (fileIsDownloading) {
+ return const Text("Downloading...");
+ }
+
+ File imageFile = File(filePath!);
+ int lastModified = imageFile.existsSync()
+ ? imageFile.lastModifiedSync().millisecondsSinceEpoch
+ : 0;
+ Key key = ObjectKey('$filePath:$lastModified');
+
+ return Image.file(
+ key: key,
+ imageFile,
+ width: 50,
+ height: 50,
+ );
+ });
+ }
+}
diff --git a/demos/supabase-todolist-drift/lib/attachments/queue.dart b/demos/supabase-todolist-drift/lib/attachments/queue.dart
new file mode 100644
index 00000000..63d903ac
--- /dev/null
+++ b/demos/supabase-todolist-drift/lib/attachments/queue.dart
@@ -0,0 +1,90 @@
+import 'dart:async';
+
+import 'package:powersync/powersync.dart';
+import 'package:powersync_attachments_helper/powersync_attachments_helper.dart';
+import 'package:supabase_todolist_drift/app_config.dart';
+import 'package:supabase_todolist_drift/attachments/remote_storage_adapter.dart';
+
+import 'package:supabase_todolist_drift/models/schema.dart';
+
+/// Global reference to the queue
+late final PhotoAttachmentQueue attachmentQueue;
+final remoteStorage = SupabaseStorageAdapter();
+
+/// Function to handle errors when downloading attachments
+/// Return false if you want to archive the attachment
+Future onDownloadError(Attachment attachment, Object exception) async {
+ if (exception.toString().contains('Object not found')) {
+ return false;
+ }
+ return true;
+}
+
+class PhotoAttachmentQueue extends AbstractAttachmentQueue {
+ PhotoAttachmentQueue(db, remoteStorage)
+ : super(
+ db: db,
+ remoteStorage: remoteStorage,
+ onDownloadError: onDownloadError);
+
+ @override
+ init() async {
+ if (AppConfig.supabaseStorageBucket.isEmpty) {
+ log.info(
+ 'No Supabase bucket configured, skip setting up PhotoAttachmentQueue watches');
+ return;
+ }
+
+ await super.init();
+ }
+
+ @override
+ Future saveFile(String fileId, int size,
+ {mediaType = 'image/jpeg'}) async {
+ String filename = '$fileId.jpg';
+
+ Attachment photoAttachment = Attachment(
+ id: fileId,
+ filename: filename,
+ state: AttachmentState.queuedUpload.index,
+ mediaType: mediaType,
+ localUri: getLocalFilePathSuffix(filename),
+ size: size,
+ );
+
+ return attachmentsService.saveAttachment(photoAttachment);
+ }
+
+ @override
+ Future deleteFile(String fileId) async {
+ String filename = '$fileId.jpg';
+
+ Attachment photoAttachment = Attachment(
+ id: fileId,
+ filename: filename,
+ state: AttachmentState.queuedDelete.index);
+
+ return attachmentsService.saveAttachment(photoAttachment);
+ }
+
+ @override
+ StreamSubscription watchIds({String fileExtension = 'jpg'}) {
+ log.info('Watching photos in $todosTable...');
+ return db.watch('''
+ SELECT photo_id FROM $todosTable
+ WHERE photo_id IS NOT NULL
+ ''').map((results) {
+ return results.map((row) => row['photo_id'] as String).toList();
+ }).listen((ids) async {
+ List idsInQueue = await attachmentsService.getAttachmentIds();
+ List relevantIds =
+ ids.where((element) => !idsInQueue.contains(element)).toList();
+ syncingService.processIds(relevantIds, fileExtension);
+ });
+ }
+}
+
+initializeAttachmentQueue(PowerSyncDatabase db) async {
+ attachmentQueue = PhotoAttachmentQueue(db, remoteStorage);
+ await attachmentQueue.init();
+}
diff --git a/demos/supabase-todolist-drift/lib/attachments/remote_storage_adapter.dart b/demos/supabase-todolist-drift/lib/attachments/remote_storage_adapter.dart
new file mode 100644
index 00000000..d8383e69
--- /dev/null
+++ b/demos/supabase-todolist-drift/lib/attachments/remote_storage_adapter.dart
@@ -0,0 +1,58 @@
+import 'dart:io';
+import 'dart:typed_data';
+import 'package:powersync_attachments_helper/powersync_attachments_helper.dart';
+import 'package:supabase_todolist_drift/app_config.dart';
+import 'package:supabase_flutter/supabase_flutter.dart';
+import 'package:image/image.dart' as img;
+
+class SupabaseStorageAdapter implements AbstractRemoteStorageAdapter {
+ @override
+ Future uploadFile(String filename, File file,
+ {String mediaType = 'text/plain'}) async {
+ _checkSupabaseBucketIsConfigured();
+
+ try {
+ await Supabase.instance.client.storage
+ .from(AppConfig.supabaseStorageBucket)
+ .upload(filename, file,
+ fileOptions: FileOptions(contentType: mediaType));
+ } catch (error) {
+ throw Exception(error);
+ }
+ }
+
+ @override
+ Future downloadFile(String filePath) async {
+ _checkSupabaseBucketIsConfigured();
+ try {
+ Uint8List fileBlob = await Supabase.instance.client.storage
+ .from(AppConfig.supabaseStorageBucket)
+ .download(filePath);
+ final image = img.decodeImage(fileBlob);
+ Uint8List blob = img.JpegEncoder().encode(image!);
+ return blob;
+ } catch (error) {
+ throw Exception(error);
+ }
+ }
+
+ @override
+ Future deleteFile(String filename) async {
+ _checkSupabaseBucketIsConfigured();
+
+ try {
+ await Supabase.instance.client.storage
+ .from(AppConfig.supabaseStorageBucket)
+ .remove([filename]);
+ } catch (error) {
+ throw Exception(error);
+ }
+ }
+
+ void _checkSupabaseBucketIsConfigured() {
+ if (AppConfig.supabaseStorageBucket.isEmpty) {
+ throw Exception(
+ 'Supabase storage bucket is not configured in app_config.dart');
+ }
+ }
+}
diff --git a/demos/supabase-todolist-drift/lib/database.dart b/demos/supabase-todolist-drift/lib/database.dart
new file mode 100644
index 00000000..cf307d72
--- /dev/null
+++ b/demos/supabase-todolist-drift/lib/database.dart
@@ -0,0 +1,116 @@
+import 'package:drift/drift.dart';
+import 'package:powersync/powersync.dart' show PowerSyncDatabase, uuid;
+import 'package:drift_sqlite_async/drift_sqlite_async.dart';
+import 'package:supabase_todolist_drift/powersync.dart';
+
+part 'database.g.dart';
+
+class TodoItems extends Table {
+ @override
+ String get tableName => 'todos';
+
+ TextColumn get id => text().clientDefault(() => uuid.v4())();
+ TextColumn get listId => text().named('list_id').references(ListItems, #id)();
+ TextColumn get photoId => text().nullable().named('photo_id')();
+ DateTimeColumn get createdAt => dateTime().nullable().named('created_at')();
+ DateTimeColumn get completedAt =>
+ dateTime().nullable().named('completed_at')();
+ BoolColumn get completed => boolean().nullable()();
+ TextColumn get description => text()();
+ TextColumn get createdBy => text().nullable().named('created_by')();
+ TextColumn get completedBy => text().nullable().named('completed_by')();
+}
+
+class ListItems extends Table {
+ @override
+ String get tableName => 'lists';
+
+ TextColumn get id => text().clientDefault(() => uuid.v4())();
+ DateTimeColumn get createdAt =>
+ dateTime().named('created_at').clientDefault(() => DateTime.now())();
+ TextColumn get name => text()();
+ TextColumn get ownerId => text().nullable().named('owner_id')();
+}
+
+class ListItemWithStats {
+ late ListItem self;
+ int completedCount;
+ int pendingCount;
+
+ ListItemWithStats(
+ this.self,
+ this.completedCount,
+ this.pendingCount,
+ );
+}
+
+@DriftDatabase(tables: [TodoItems, ListItems], include: {'queries.drift'})
+class AppDatabase extends _$AppDatabase {
+ AppDatabase(PowerSyncDatabase db) : super(SqliteAsyncDriftConnection(db));
+
+ @override
+ int get schemaVersion => 1;
+
+ Stream> watchLists() {
+ return (select(listItems)
+ ..orderBy([(l) => OrderingTerm(expression: l.createdAt)]))
+ .watch();
+ }
+
+ Stream> watchListsWithStats() {
+ return listsWithStats().watch();
+ }
+
+ Future createList(String name) async {
+ return into(listItems).insertReturning(
+ ListItemsCompanion.insert(name: name, ownerId: Value(getUserId())));
+ }
+
+ Future deleteList(ListItem list) async {
+ await (delete(listItems)..where((t) => t.id.equals(list.id))).go();
+ }
+
+ Stream> watchTodoItems(ListItem list) {
+ return (select(todoItems)
+ ..where((t) => t.listId.equals(list.id))
+ ..orderBy([(t) => OrderingTerm(expression: t.createdAt)]))
+ .watch();
+ }
+
+ Future deleteTodo(TodoItem todo) async {
+ await (delete(todoItems)..where((t) => t.id.equals(todo.id))).go();
+ }
+
+ Future addTodo(ListItem list, String description) async {
+ return into(todoItems).insertReturning(TodoItemsCompanion.insert(
+ listId: list.id,
+ description: description,
+ completed: const Value(false),
+ createdBy: Value(getUserId())));
+ }
+
+ Future toggleTodo(TodoItem todo) async {
+ if (todo.completed != true) {
+ await (update(todoItems)..where((t) => t.id.equals(todo.id))).write(
+ TodoItemsCompanion(
+ completed: const Value(true),
+ completedAt: Value(DateTime.now()),
+ completedBy: Value(getUserId())));
+ } else {
+ await (update(todoItems)..where((t) => t.id.equals(todo.id))).write(
+ const TodoItemsCompanion(
+ completed: Value(false),
+ completedAt: Value.absent(),
+ completedBy: Value.absent()));
+ }
+ }
+
+ Future addTodoPhoto(String todoId, String photoId) async {
+ await (update(todoItems)..where((t) => t.id.equals(todoId)))
+ .write(TodoItemsCompanion(photoId: Value(photoId)));
+ }
+
+ Future findList(String id) {
+ return (select(listItems)..where((t) => t.id.equals(id))).getSingle();
+ }
+}
diff --git a/demos/supabase-todolist-drift/lib/database.g.dart b/demos/supabase-todolist-drift/lib/database.g.dart
new file mode 100644
index 00000000..c8c74680
--- /dev/null
+++ b/demos/supabase-todolist-drift/lib/database.g.dart
@@ -0,0 +1,1128 @@
+// GENERATED CODE - DO NOT MODIFY BY HAND
+
+part of 'database.dart';
+
+// ignore_for_file: type=lint
+class $ListItemsTable extends ListItems
+ with TableInfo<$ListItemsTable, ListItem> {
+ @override
+ final GeneratedDatabase attachedDatabase;
+ final String? _alias;
+ $ListItemsTable(this.attachedDatabase, [this._alias]);
+ static const VerificationMeta _idMeta = const VerificationMeta('id');
+ @override
+ late final GeneratedColumn id = GeneratedColumn(
+ 'id', aliasedName, false,
+ type: DriftSqlType.string,
+ requiredDuringInsert: false,
+ clientDefault: () => uuid.v4());
+ static const VerificationMeta _createdAtMeta =
+ const VerificationMeta('createdAt');
+ @override
+ late final GeneratedColumn createdAt = GeneratedColumn(
+ 'created_at', aliasedName, false,
+ type: DriftSqlType.dateTime,
+ requiredDuringInsert: false,
+ clientDefault: () => DateTime.now());
+ static const VerificationMeta _nameMeta = const VerificationMeta('name');
+ @override
+ late final GeneratedColumn name = GeneratedColumn(
+ 'name', aliasedName, false,
+ type: DriftSqlType.string, requiredDuringInsert: true);
+ static const VerificationMeta _ownerIdMeta =
+ const VerificationMeta('ownerId');
+ @override
+ late final GeneratedColumn ownerId = GeneratedColumn(
+ 'owner_id', aliasedName, true,
+ type: DriftSqlType.string, requiredDuringInsert: false);
+ @override
+ List get $columns => [id, createdAt, name, ownerId];
+ @override
+ String get aliasedName => _alias ?? actualTableName;
+ @override
+ String get actualTableName => $name;
+ static const String $name = 'lists';
+ @override
+ VerificationContext validateIntegrity(Insertable instance,
+ {bool isInserting = false}) {
+ final context = VerificationContext();
+ final data = instance.toColumns(true);
+ if (data.containsKey('id')) {
+ context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta));
+ }
+ if (data.containsKey('created_at')) {
+ context.handle(_createdAtMeta,
+ createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta));
+ }
+ if (data.containsKey('name')) {
+ context.handle(
+ _nameMeta, name.isAcceptableOrUnknown(data['name']!, _nameMeta));
+ } else if (isInserting) {
+ context.missing(_nameMeta);
+ }
+ if (data.containsKey('owner_id')) {
+ context.handle(_ownerIdMeta,
+ ownerId.isAcceptableOrUnknown(data['owner_id']!, _ownerIdMeta));
+ }
+ return context;
+ }
+
+ @override
+ Set get $primaryKey => const {};
+ @override
+ ListItem map(Map data, {String? tablePrefix}) {
+ final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
+ return ListItem(
+ id: attachedDatabase.typeMapping
+ .read(DriftSqlType.string, data['${effectivePrefix}id'])!,
+ createdAt: attachedDatabase.typeMapping
+ .read(DriftSqlType.dateTime, data['${effectivePrefix}created_at'])!,
+ name: attachedDatabase.typeMapping
+ .read(DriftSqlType.string, data['${effectivePrefix}name'])!,
+ ownerId: attachedDatabase.typeMapping
+ .read(DriftSqlType.string, data['${effectivePrefix}owner_id']),
+ );
+ }
+
+ @override
+ $ListItemsTable createAlias(String alias) {
+ return $ListItemsTable(attachedDatabase, alias);
+ }
+}
+
+class ListItem extends DataClass implements Insertable {
+ final String id;
+ final DateTime createdAt;
+ final String name;
+ final String? ownerId;
+ const ListItem(
+ {required this.id,
+ required this.createdAt,
+ required this.name,
+ this.ownerId});
+ @override
+ Map toColumns(bool nullToAbsent) {
+ final map = {};
+ map['id'] = Variable(id);
+ map['created_at'] = Variable(createdAt);
+ map['name'] = Variable(name);
+ if (!nullToAbsent || ownerId != null) {
+ map['owner_id'] = Variable(ownerId);
+ }
+ return map;
+ }
+
+ ListItemsCompanion toCompanion(bool nullToAbsent) {
+ return ListItemsCompanion(
+ id: Value(id),
+ createdAt: Value(createdAt),
+ name: Value(name),
+ ownerId: ownerId == null && nullToAbsent
+ ? const Value.absent()
+ : Value(ownerId),
+ );
+ }
+
+ factory ListItem.fromJson(Map json,
+ {ValueSerializer? serializer}) {
+ serializer ??= driftRuntimeOptions.defaultSerializer;
+ return ListItem(
+ id: serializer.fromJson(json['id']),
+ createdAt: serializer.fromJson(json['createdAt']),
+ name: serializer.fromJson(json['name']),
+ ownerId: serializer.fromJson(json['ownerId']),
+ );
+ }
+ @override
+ Map toJson({ValueSerializer? serializer}) {
+ serializer ??= driftRuntimeOptions.defaultSerializer;
+ return {
+ 'id': serializer.toJson(id),
+ 'createdAt': serializer.toJson(createdAt),
+ 'name': serializer.toJson(name),
+ 'ownerId': serializer.toJson(ownerId),
+ };
+ }
+
+ ListItem copyWith(
+ {String? id,
+ DateTime? createdAt,
+ String? name,
+ Value ownerId = const Value.absent()}) =>
+ ListItem(
+ id: id ?? this.id,
+ createdAt: createdAt ?? this.createdAt,
+ name: name ?? this.name,
+ ownerId: ownerId.present ? ownerId.value : this.ownerId,
+ );
+ @override
+ String toString() {
+ return (StringBuffer('ListItem(')
+ ..write('id: $id, ')
+ ..write('createdAt: $createdAt, ')
+ ..write('name: $name, ')
+ ..write('ownerId: $ownerId')
+ ..write(')'))
+ .toString();
+ }
+
+ @override
+ int get hashCode => Object.hash(id, createdAt, name, ownerId);
+ @override
+ bool operator ==(Object other) =>
+ identical(this, other) ||
+ (other is ListItem &&
+ other.id == this.id &&
+ other.createdAt == this.createdAt &&
+ other.name == this.name &&
+ other.ownerId == this.ownerId);
+}
+
+class ListItemsCompanion extends UpdateCompanion {
+ final Value id;
+ final Value createdAt;
+ final Value name;
+ final Value ownerId;
+ final Value rowid;
+ const ListItemsCompanion({
+ this.id = const Value.absent(),
+ this.createdAt = const Value.absent(),
+ this.name = const Value.absent(),
+ this.ownerId = const Value.absent(),
+ this.rowid = const Value.absent(),
+ });
+ ListItemsCompanion.insert({
+ this.id = const Value.absent(),
+ this.createdAt = const Value.absent(),
+ required String name,
+ this.ownerId = const Value.absent(),
+ this.rowid = const Value.absent(),
+ }) : name = Value(name);
+ static Insertable custom({
+ Expression? id,
+ Expression? createdAt,
+ Expression? name,
+ Expression? ownerId,
+ Expression? rowid,
+ }) {
+ return RawValuesInsertable({
+ if (id != null) 'id': id,
+ if (createdAt != null) 'created_at': createdAt,
+ if (name != null) 'name': name,
+ if (ownerId != null) 'owner_id': ownerId,
+ if (rowid != null) 'rowid': rowid,
+ });
+ }
+
+ ListItemsCompanion copyWith(
+ {Value? id,
+ Value? createdAt,
+ Value? name,
+ Value? ownerId,
+ Value? rowid}) {
+ return ListItemsCompanion(
+ id: id ?? this.id,
+ createdAt: createdAt ?? this.createdAt,
+ name: name ?? this.name,
+ ownerId: ownerId ?? this.ownerId,
+ rowid: rowid ?? this.rowid,
+ );
+ }
+
+ @override
+ Map toColumns(bool nullToAbsent) {
+ final map = {};
+ if (id.present) {
+ map['id'] = Variable(id.value);
+ }
+ if (createdAt.present) {
+ map['created_at'] = Variable(createdAt.value);
+ }
+ if (name.present) {
+ map['name'] = Variable(name.value);
+ }
+ if (ownerId.present) {
+ map['owner_id'] = Variable(ownerId.value);
+ }
+ if (rowid.present) {
+ map['rowid'] = Variable(rowid.value);
+ }
+ return map;
+ }
+
+ @override
+ String toString() {
+ return (StringBuffer('ListItemsCompanion(')
+ ..write('id: $id, ')
+ ..write('createdAt: $createdAt, ')
+ ..write('name: $name, ')
+ ..write('ownerId: $ownerId, ')
+ ..write('rowid: $rowid')
+ ..write(')'))
+ .toString();
+ }
+}
+
+class $TodoItemsTable extends TodoItems
+ with TableInfo<$TodoItemsTable, TodoItem> {
+ @override
+ final GeneratedDatabase attachedDatabase;
+ final String? _alias;
+ $TodoItemsTable(this.attachedDatabase, [this._alias]);
+ static const VerificationMeta _idMeta = const VerificationMeta('id');
+ @override
+ late final GeneratedColumn id = GeneratedColumn(
+ 'id', aliasedName, false,
+ type: DriftSqlType.string,
+ requiredDuringInsert: false,
+ clientDefault: () => uuid.v4());
+ static const VerificationMeta _listIdMeta = const VerificationMeta('listId');
+ @override
+ late final GeneratedColumn listId = GeneratedColumn(
+ 'list_id', aliasedName, false,
+ type: DriftSqlType.string,
+ requiredDuringInsert: true,
+ defaultConstraints:
+ GeneratedColumn.constraintIsAlways('REFERENCES lists (id)'));
+ static const VerificationMeta _photoIdMeta =
+ const VerificationMeta('photoId');
+ @override
+ late final GeneratedColumn photoId = GeneratedColumn(
+ 'photo_id', aliasedName, true,
+ type: DriftSqlType.string, requiredDuringInsert: false);
+ static const VerificationMeta _createdAtMeta =
+ const VerificationMeta('createdAt');
+ @override
+ late final GeneratedColumn createdAt = GeneratedColumn(
+ 'created_at', aliasedName, true,
+ type: DriftSqlType.dateTime, requiredDuringInsert: false);
+ static const VerificationMeta _completedAtMeta =
+ const VerificationMeta('completedAt');
+ @override
+ late final GeneratedColumn completedAt = GeneratedColumn(
+ 'completed_at', aliasedName, true,
+ type: DriftSqlType.dateTime, requiredDuringInsert: false);
+ static const VerificationMeta _completedMeta =
+ const VerificationMeta('completed');
+ @override
+ late final GeneratedColumn completed = GeneratedColumn(
+ 'completed', aliasedName, true,
+ type: DriftSqlType.bool,
+ requiredDuringInsert: false,
+ defaultConstraints:
+ GeneratedColumn.constraintIsAlways('CHECK ("completed" IN (0, 1))'));
+ static const VerificationMeta _descriptionMeta =
+ const VerificationMeta('description');
+ @override
+ late final GeneratedColumn description = GeneratedColumn(
+ 'description', aliasedName, false,
+ type: DriftSqlType.string, requiredDuringInsert: true);
+ static const VerificationMeta _createdByMeta =
+ const VerificationMeta('createdBy');
+ @override
+ late final GeneratedColumn createdBy = GeneratedColumn(
+ 'created_by', aliasedName, true,
+ type: DriftSqlType.string, requiredDuringInsert: false);
+ static const VerificationMeta _completedByMeta =
+ const VerificationMeta('completedBy');
+ @override
+ late final GeneratedColumn completedBy = GeneratedColumn(
+ 'completed_by', aliasedName, true,
+ type: DriftSqlType.string, requiredDuringInsert: false);
+ @override
+ List get $columns => [
+ id,
+ listId,
+ photoId,
+ createdAt,
+ completedAt,
+ completed,
+ description,
+ createdBy,
+ completedBy
+ ];
+ @override
+ String get aliasedName => _alias ?? actualTableName;
+ @override
+ String get actualTableName => $name;
+ static const String $name = 'todos';
+ @override
+ VerificationContext validateIntegrity(Insertable instance,
+ {bool isInserting = false}) {
+ final context = VerificationContext();
+ final data = instance.toColumns(true);
+ if (data.containsKey('id')) {
+ context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta));
+ }
+ if (data.containsKey('list_id')) {
+ context.handle(_listIdMeta,
+ listId.isAcceptableOrUnknown(data['list_id']!, _listIdMeta));
+ } else if (isInserting) {
+ context.missing(_listIdMeta);
+ }
+ if (data.containsKey('photo_id')) {
+ context.handle(_photoIdMeta,
+ photoId.isAcceptableOrUnknown(data['photo_id']!, _photoIdMeta));
+ }
+ if (data.containsKey('created_at')) {
+ context.handle(_createdAtMeta,
+ createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta));
+ }
+ if (data.containsKey('completed_at')) {
+ context.handle(
+ _completedAtMeta,
+ completedAt.isAcceptableOrUnknown(
+ data['completed_at']!, _completedAtMeta));
+ }
+ if (data.containsKey('completed')) {
+ context.handle(_completedMeta,
+ completed.isAcceptableOrUnknown(data['completed']!, _completedMeta));
+ }
+ if (data.containsKey('description')) {
+ context.handle(
+ _descriptionMeta,
+ description.isAcceptableOrUnknown(
+ data['description']!, _descriptionMeta));
+ } else if (isInserting) {
+ context.missing(_descriptionMeta);
+ }
+ if (data.containsKey('created_by')) {
+ context.handle(_createdByMeta,
+ createdBy.isAcceptableOrUnknown(data['created_by']!, _createdByMeta));
+ }
+ if (data.containsKey('completed_by')) {
+ context.handle(
+ _completedByMeta,
+ completedBy.isAcceptableOrUnknown(
+ data['completed_by']!, _completedByMeta));
+ }
+ return context;
+ }
+
+ @override
+ Set get $primaryKey => const {};
+ @override
+ TodoItem map(Map data, {String? tablePrefix}) {
+ final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
+ return TodoItem(
+ id: attachedDatabase.typeMapping
+ .read(DriftSqlType.string, data['${effectivePrefix}id'])!,
+ listId: attachedDatabase.typeMapping
+ .read(DriftSqlType.string, data['${effectivePrefix}list_id'])!,
+ photoId: attachedDatabase.typeMapping
+ .read(DriftSqlType.string, data['${effectivePrefix}photo_id']),
+ createdAt: attachedDatabase.typeMapping
+ .read(DriftSqlType.dateTime, data['${effectivePrefix}created_at']),
+ completedAt: attachedDatabase.typeMapping
+ .read(DriftSqlType.dateTime, data['${effectivePrefix}completed_at']),
+ completed: attachedDatabase.typeMapping
+ .read(DriftSqlType.bool, data['${effectivePrefix}completed']),
+ description: attachedDatabase.typeMapping
+ .read(DriftSqlType.string, data['${effectivePrefix}description'])!,
+ createdBy: attachedDatabase.typeMapping
+ .read(DriftSqlType.string, data['${effectivePrefix}created_by']),
+ completedBy: attachedDatabase.typeMapping
+ .read(DriftSqlType.string, data['${effectivePrefix}completed_by']),
+ );
+ }
+
+ @override
+ $TodoItemsTable createAlias(String alias) {
+ return $TodoItemsTable(attachedDatabase, alias);
+ }
+}
+
+class TodoItem extends DataClass implements Insertable {
+ final String id;
+ final String listId;
+ final String? photoId;
+ final DateTime? createdAt;
+ final DateTime? completedAt;
+ final bool? completed;
+ final String description;
+ final String? createdBy;
+ final String? completedBy;
+ const TodoItem(
+ {required this.id,
+ required this.listId,
+ this.photoId,
+ this.createdAt,
+ this.completedAt,
+ this.completed,
+ required this.description,
+ this.createdBy,
+ this.completedBy});
+ @override
+ Map toColumns(bool nullToAbsent) {
+ final map = {};
+ map['id'] = Variable(id);
+ map['list_id'] = Variable(listId);
+ if (!nullToAbsent || photoId != null) {
+ map['photo_id'] = Variable(photoId);
+ }
+ if (!nullToAbsent || createdAt != null) {
+ map['created_at'] = Variable(createdAt);
+ }
+ if (!nullToAbsent || completedAt != null) {
+ map['completed_at'] = Variable(completedAt);
+ }
+ if (!nullToAbsent || completed != null) {
+ map['completed'] = Variable(completed);
+ }
+ map['description'] = Variable(description);
+ if (!nullToAbsent || createdBy != null) {
+ map['created_by'] = Variable(createdBy);
+ }
+ if (!nullToAbsent || completedBy != null) {
+ map['completed_by'] = Variable(completedBy);
+ }
+ return map;
+ }
+
+ TodoItemsCompanion toCompanion(bool nullToAbsent) {
+ return TodoItemsCompanion(
+ id: Value(id),
+ listId: Value(listId),
+ photoId: photoId == null && nullToAbsent
+ ? const Value.absent()
+ : Value(photoId),
+ createdAt: createdAt == null && nullToAbsent
+ ? const Value.absent()
+ : Value(createdAt),
+ completedAt: completedAt == null && nullToAbsent
+ ? const Value.absent()
+ : Value(completedAt),
+ completed: completed == null && nullToAbsent
+ ? const Value.absent()
+ : Value(completed),
+ description: Value(description),
+ createdBy: createdBy == null && nullToAbsent
+ ? const Value.absent()
+ : Value(createdBy),
+ completedBy: completedBy == null && nullToAbsent
+ ? const Value.absent()
+ : Value(completedBy),
+ );
+ }
+
+ factory TodoItem.fromJson(Map json,
+ {ValueSerializer? serializer}) {
+ serializer ??= driftRuntimeOptions.defaultSerializer;
+ return TodoItem(
+ id: serializer.fromJson(json['id']),
+ listId: serializer.fromJson(json['listId']),
+ photoId: serializer.fromJson(json['photoId']),
+ createdAt: serializer.fromJson(json['createdAt']),
+ completedAt: serializer.fromJson(json['completedAt']),
+ completed: serializer.fromJson(json['completed']),
+ description: serializer.fromJson(json['description']),
+ createdBy: serializer.fromJson(json['createdBy']),
+ completedBy: serializer.fromJson(json['completedBy']),
+ );
+ }
+ @override
+ Map toJson({ValueSerializer? serializer}) {
+ serializer ??= driftRuntimeOptions.defaultSerializer;
+ return {
+ 'id': serializer.toJson(id),
+ 'listId': serializer.toJson(listId),
+ 'photoId': serializer.toJson(photoId),
+ 'createdAt': serializer.toJson(createdAt),
+ 'completedAt': serializer.toJson(completedAt),
+ 'completed': serializer.toJson(completed),
+ 'description': serializer.toJson(description),
+ 'createdBy': serializer.toJson(createdBy),
+ 'completedBy': serializer.toJson(completedBy),
+ };
+ }
+
+ TodoItem copyWith(
+ {String? id,
+ String? listId,
+ Value photoId = const Value.absent(),
+ Value createdAt = const Value.absent(),
+ Value completedAt = const Value.absent(),
+ Value completed = const Value.absent(),
+ String? description,
+ Value createdBy = const Value.absent(),
+ Value completedBy = const Value.absent()}) =>
+ TodoItem(
+ id: id ?? this.id,
+ listId: listId ?? this.listId,
+ photoId: photoId.present ? photoId.value : this.photoId,
+ createdAt: createdAt.present ? createdAt.value : this.createdAt,
+ completedAt: completedAt.present ? completedAt.value : this.completedAt,
+ completed: completed.present ? completed.value : this.completed,
+ description: description ?? this.description,
+ createdBy: createdBy.present ? createdBy.value : this.createdBy,
+ completedBy: completedBy.present ? completedBy.value : this.completedBy,
+ );
+ @override
+ String toString() {
+ return (StringBuffer('TodoItem(')
+ ..write('id: $id, ')
+ ..write('listId: $listId, ')
+ ..write('photoId: $photoId, ')
+ ..write('createdAt: $createdAt, ')
+ ..write('completedAt: $completedAt, ')
+ ..write('completed: $completed, ')
+ ..write('description: $description, ')
+ ..write('createdBy: $createdBy, ')
+ ..write('completedBy: $completedBy')
+ ..write(')'))
+ .toString();
+ }
+
+ @override
+ int get hashCode => Object.hash(id, listId, photoId, createdAt, completedAt,
+ completed, description, createdBy, completedBy);
+ @override
+ bool operator ==(Object other) =>
+ identical(this, other) ||
+ (other is TodoItem &&
+ other.id == this.id &&
+ other.listId == this.listId &&
+ other.photoId == this.photoId &&
+ other.createdAt == this.createdAt &&
+ other.completedAt == this.completedAt &&
+ other.completed == this.completed &&
+ other.description == this.description &&
+ other.createdBy == this.createdBy &&
+ other.completedBy == this.completedBy);
+}
+
+class TodoItemsCompanion extends UpdateCompanion {
+ final Value id;
+ final Value listId;
+ final Value photoId;
+ final Value createdAt;
+ final Value completedAt;
+ final Value completed;
+ final Value description;
+ final Value createdBy;
+ final Value completedBy;
+ final Value rowid;
+ const TodoItemsCompanion({
+ this.id = const Value.absent(),
+ this.listId = const Value.absent(),
+ this.photoId = const Value.absent(),
+ this.createdAt = const Value.absent(),
+ this.completedAt = const Value.absent(),
+ this.completed = const Value.absent(),
+ this.description = const Value.absent(),
+ this.createdBy = const Value.absent(),
+ this.completedBy = const Value.absent(),
+ this.rowid = const Value.absent(),
+ });
+ TodoItemsCompanion.insert({
+ this.id = const Value.absent(),
+ required String listId,
+ this.photoId = const Value.absent(),
+ this.createdAt = const Value.absent(),
+ this.completedAt = const Value.absent(),
+ this.completed = const Value.absent(),
+ required String description,
+ this.createdBy = const Value.absent(),
+ this.completedBy = const Value.absent(),
+ this.rowid = const Value.absent(),
+ }) : listId = Value(listId),
+ description = Value(description);
+ static Insertable custom({
+ Expression? id,
+ Expression? listId,
+ Expression? photoId,
+ Expression? createdAt,
+ Expression? completedAt,
+ Expression? completed,
+ Expression? description,
+ Expression? createdBy,
+ Expression? completedBy,
+ Expression? rowid,
+ }) {
+ return RawValuesInsertable({
+ if (id != null) 'id': id,
+ if (listId != null) 'list_id': listId,
+ if (photoId != null) 'photo_id': photoId,
+ if (createdAt != null) 'created_at': createdAt,
+ if (completedAt != null) 'completed_at': completedAt,
+ if (completed != null) 'completed': completed,
+ if (description != null) 'description': description,
+ if (createdBy != null) 'created_by': createdBy,
+ if (completedBy != null) 'completed_by': completedBy,
+ if (rowid != null) 'rowid': rowid,
+ });
+ }
+
+ TodoItemsCompanion copyWith(
+ {Value? id,
+ Value? listId,
+ Value? photoId,
+ Value? createdAt,
+ Value? completedAt,
+ Value? completed,
+ Value? description,
+ Value? createdBy,
+ Value? completedBy,
+ Value? rowid}) {
+ return TodoItemsCompanion(
+ id: id ?? this.id,
+ listId: listId ?? this.listId,
+ photoId: photoId ?? this.photoId,
+ createdAt: createdAt ?? this.createdAt,
+ completedAt: completedAt ?? this.completedAt,
+ completed: completed ?? this.completed,
+ description: description ?? this.description,
+ createdBy: createdBy ?? this.createdBy,
+ completedBy: completedBy ?? this.completedBy,
+ rowid: rowid ?? this.rowid,
+ );
+ }
+
+ @override
+ Map toColumns(bool nullToAbsent) {
+ final map = {};
+ if (id.present) {
+ map['id'] = Variable(id.value);
+ }
+ if (listId.present) {
+ map['list_id'] = Variable(listId.value);
+ }
+ if (photoId.present) {
+ map['photo_id'] = Variable(photoId.value);
+ }
+ if (createdAt.present) {
+ map['created_at'] = Variable(createdAt.value);
+ }
+ if (completedAt.present) {
+ map['completed_at'] = Variable(completedAt.value);
+ }
+ if (completed.present) {
+ map['completed'] = Variable(completed.value);
+ }
+ if (description.present) {
+ map['description'] = Variable(description.value);
+ }
+ if (createdBy.present) {
+ map['created_by'] = Variable(createdBy.value);
+ }
+ if (completedBy.present) {
+ map['completed_by'] = Variable(completedBy.value);
+ }
+ if (rowid.present) {
+ map['rowid'] = Variable(rowid.value);
+ }
+ return map;
+ }
+
+ @override
+ String toString() {
+ return (StringBuffer('TodoItemsCompanion(')
+ ..write('id: $id, ')
+ ..write('listId: $listId, ')
+ ..write('photoId: $photoId, ')
+ ..write('createdAt: $createdAt, ')
+ ..write('completedAt: $completedAt, ')
+ ..write('completed: $completed, ')
+ ..write('description: $description, ')
+ ..write('createdBy: $createdBy, ')
+ ..write('completedBy: $completedBy, ')
+ ..write('rowid: $rowid')
+ ..write(')'))
+ .toString();
+ }
+}
+
+abstract class _$AppDatabase extends GeneratedDatabase {
+ _$AppDatabase(QueryExecutor e) : super(e);
+ _$AppDatabaseManager get managers => _$AppDatabaseManager(this);
+ late final $ListItemsTable listItems = $ListItemsTable(this);
+ late final $TodoItemsTable todoItems = $TodoItemsTable(this);
+ Selectable listsWithStats() {
+ return customSelect(
+ 'SELECT"self"."id" AS "nested_0.id", "self"."created_at" AS "nested_0.created_at", "self"."name" AS "nested_0.name", "self"."owner_id" AS "nested_0.owner_id", (SELECT count() FROM todos WHERE list_id = self.id AND completed = TRUE) AS completed_count, (SELECT count() FROM todos WHERE list_id = self.id AND completed = FALSE) AS pending_count FROM lists AS self ORDER BY created_at',
+ variables: [],
+ readsFrom: {
+ todoItems,
+ listItems,
+ }).asyncMap((QueryRow row) async => ListItemWithStats(
+ await listItems.mapFromRow(row, tablePrefix: 'nested_0'),
+ row.read('completed_count'),
+ row.read('pending_count'),
+ ));
+ }
+
+ @override
+ Iterable> get allTables =>
+ allSchemaEntities.whereType>();
+ @override
+ List get allSchemaEntities => [listItems, todoItems];
+ @override
+ DriftDatabaseOptions get options =>
+ const DriftDatabaseOptions(storeDateTimeAsText: true);
+}
+
+typedef $$ListItemsTableInsertCompanionBuilder = ListItemsCompanion Function({
+ Value id,
+ Value createdAt,
+ required String name,
+ Value ownerId,
+ Value rowid,
+});
+typedef $$ListItemsTableUpdateCompanionBuilder = ListItemsCompanion Function({
+ Value id,
+ Value createdAt,
+ Value name,
+ Value ownerId,
+ Value rowid,
+});
+
+class $$ListItemsTableTableManager extends RootTableManager<
+ _$AppDatabase,
+ $ListItemsTable,
+ ListItem,
+ $$ListItemsTableFilterComposer,
+ $$ListItemsTableOrderingComposer,
+ $$ListItemsTableProcessedTableManager,
+ $$ListItemsTableInsertCompanionBuilder,
+ $$ListItemsTableUpdateCompanionBuilder> {
+ $$ListItemsTableTableManager(_$AppDatabase db, $ListItemsTable table)
+ : super(TableManagerState(
+ db: db,
+ table: table,
+ filteringComposer:
+ $$ListItemsTableFilterComposer(ComposerState(db, table)),
+ orderingComposer:
+ $$ListItemsTableOrderingComposer(ComposerState(db, table)),
+ getChildManagerBuilder: (p) =>
+ $$ListItemsTableProcessedTableManager(p),
+ getUpdateCompanionBuilder: ({
+ Value id = const Value.absent(),
+ Value createdAt = const Value.absent(),
+ Value name = const Value.absent(),
+ Value ownerId = const Value.absent(),
+ Value rowid = const Value.absent(),
+ }) =>
+ ListItemsCompanion(
+ id: id,
+ createdAt: createdAt,
+ name: name,
+ ownerId: ownerId,
+ rowid: rowid,
+ ),
+ getInsertCompanionBuilder: ({
+ Value id = const Value.absent(),
+ Value createdAt = const Value.absent(),
+ required String name,
+ Value ownerId = const Value.absent(),
+ Value rowid = const Value.absent(),
+ }) =>
+ ListItemsCompanion.insert(
+ id: id,
+ createdAt: createdAt,
+ name: name,
+ ownerId: ownerId,
+ rowid: rowid,
+ ),
+ ));
+}
+
+class $$ListItemsTableProcessedTableManager extends ProcessedTableManager<
+ _$AppDatabase,
+ $ListItemsTable,
+ ListItem,
+ $$ListItemsTableFilterComposer,
+ $$ListItemsTableOrderingComposer,
+ $$ListItemsTableProcessedTableManager,
+ $$ListItemsTableInsertCompanionBuilder,
+ $$ListItemsTableUpdateCompanionBuilder> {
+ $$ListItemsTableProcessedTableManager(super.$state);
+}
+
+class $$ListItemsTableFilterComposer
+ extends FilterComposer<_$AppDatabase, $ListItemsTable> {
+ $$ListItemsTableFilterComposer(super.$state);
+ ColumnFilters get id => $state.composableBuilder(
+ column: $state.table.id,
+ builder: (column, joinBuilders) =>
+ ColumnFilters(column, joinBuilders: joinBuilders));
+
+ ColumnFilters get createdAt => $state.composableBuilder(
+ column: $state.table.createdAt,
+ builder: (column, joinBuilders) =>
+ ColumnFilters(column, joinBuilders: joinBuilders));
+
+ ColumnFilters get name => $state.composableBuilder(
+ column: $state.table.name,
+ builder: (column, joinBuilders) =>
+ ColumnFilters(column, joinBuilders: joinBuilders));
+
+ ColumnFilters get ownerId => $state.composableBuilder(
+ column: $state.table.ownerId,
+ builder: (column, joinBuilders) =>
+ ColumnFilters(column, joinBuilders: joinBuilders));
+
+ ComposableFilter todoItemsRefs(
+ ComposableFilter Function($$TodoItemsTableFilterComposer f) f) {
+ final $$TodoItemsTableFilterComposer composer = $state.composerBuilder(
+ composer: this,
+ getCurrentColumn: (t) => t.id,
+ referencedTable: $state.db.todoItems,
+ getReferencedColumn: (t) => t.listId,
+ builder: (joinBuilder, parentComposers) =>
+ $$TodoItemsTableFilterComposer(ComposerState(
+ $state.db, $state.db.todoItems, joinBuilder, parentComposers)));
+ return f(composer);
+ }
+}
+
+class $$ListItemsTableOrderingComposer
+ extends OrderingComposer<_$AppDatabase, $ListItemsTable> {
+ $$ListItemsTableOrderingComposer(super.$state);
+ ColumnOrderings get id => $state.composableBuilder(
+ column: $state.table.id,
+ builder: (column, joinBuilders) =>
+ ColumnOrderings(column, joinBuilders: joinBuilders));
+
+ ColumnOrderings get createdAt => $state.composableBuilder(
+ column: $state.table.createdAt,
+ builder: (column, joinBuilders) =>
+ ColumnOrderings(column, joinBuilders: joinBuilders));
+
+ ColumnOrderings get name => $state.composableBuilder(
+ column: $state.table.name,
+ builder: (column, joinBuilders) =>
+ ColumnOrderings(column, joinBuilders: joinBuilders));
+
+ ColumnOrderings get ownerId => $state.composableBuilder(
+ column: $state.table.ownerId,
+ builder: (column, joinBuilders) =>
+ ColumnOrderings(column, joinBuilders: joinBuilders));
+}
+
+typedef $$TodoItemsTableInsertCompanionBuilder = TodoItemsCompanion Function({
+ Value id,
+ required String listId,
+ Value photoId,
+ Value createdAt,
+ Value completedAt,
+ Value completed,
+ required String description,
+ Value createdBy,
+ Value completedBy,
+ Value