Skip to content

[Demo] Local-only supabase todo app #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 42 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
082472b
Offline demo.
Chriztiaan Aug 1, 2024
7e3b7eb
Now with macos support.
Chriztiaan Aug 1, 2024
300e3c0
Renamed demo to local-only. Added mermaid chart to readme.
Chriztiaan Aug 5, 2024
0c79c90
Fix flutter lint warnings.
Chriztiaan Aug 5, 2024
04ec125
Merge branch 'master' into offline-demo
Chriztiaan Aug 5, 2024
4c24182
Updated readme to allow an local-only setup. Improved schema switchin…
Chriztiaan Aug 7, 2024
9ad96f4
Updated readme. Tried making the schema documentation clearer by chan…
Chriztiaan Aug 8, 2024
54c111b
Fixing empty local-only state to online transition breaking watch calls.
Chriztiaan Aug 8, 2024
426df29
Updated readme.
Chriztiaan Aug 8, 2024
630af65
Remove commented out code.
Chriztiaan Aug 8, 2024
418853d
Using new refreshSchema function to ensure watches are aware of chang…
Chriztiaan Aug 13, 2024
4116f5d
Using latest published version of sqlite_async.
Chriztiaan Aug 21, 2024
fa0e426
Merge branch 'main' into offline-demo
Chriztiaan Aug 21, 2024
12ddde2
Fixed versions after merge.
Chriztiaan Aug 21, 2024
57f3be7
Updated to sqlite_async:0.8.3
Chriztiaan Aug 21, 2024
05f92c0
Merge branch 'main' into offline-demo
Chriztiaan Aug 21, 2024
ee5d059
Minor readme updates.
Chriztiaan Aug 21, 2024
9acce1f
minor readme update
Chriztiaan Aug 27, 2024
6e00b7e
Merge branch 'main' into offline-demo
Chriztiaan Aug 27, 2024
b2b8655
Fixed web target not working due to worker issue.
Chriztiaan Aug 29, 2024
8446b39
Documentation cleanup.
Chriztiaan Aug 29, 2024
105580c
Removed redundant await.
Chriztiaan Sep 2, 2024
1948053
Update Readme with explanation
benitav Sep 5, 2024
b078fb7
Polish schema.dart comments
benitav Sep 5, 2024
ec3fd2b
Schema comments
benitav Sep 5, 2024
ff1c4bb
More polish
benitav Sep 5, 2024
ae31120
More polish
benitav Sep 6, 2024
26e5455
Restore placeholder creds
benitav Sep 6, 2024
c35669f
Update packages
benitav Sep 6, 2024
96fba48
Renamed project to supabase-todolist-optional-sync
Chriztiaan Sep 6, 2024
f61fb48
Merge remote-tracking branch 'origin' into offline-demo
benitav Sep 6, 2024
dde170c
Merge branch 'release/1.8.0' into offline-demo
Chriztiaan Sep 6, 2024
77804ba
Dependency bumps.
Chriztiaan Sep 6, 2024
5691cd5
Merge branch 'main' into offline-demo
Chriztiaan Sep 9, 2024
bfe115e
Reverted manual bump.
Chriztiaan Sep 9, 2024
99bd89f
chore(release): publish packages
Chriztiaan Sep 9, 2024
66c0cea
Bumped demos powersync to 1.8.1
Chriztiaan Sep 9, 2024
1236be7
Fixed widget test.
Chriztiaan Sep 9, 2024
bda2fb1
Removed test.
Chriztiaan Sep 9, 2024
5ab8520
Undo version.
Chriztiaan Sep 9, 2024
3893a85
Merge branch 'main' into offline-demo
Chriztiaan Sep 9, 2024
50d6d07
chore(release): publish packages
Chriztiaan Sep 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions demos/django-todolist/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,10 @@ packages:
dependency: "direct main"
description:
name: sqlite_async
sha256: "79e636c857ed43f6cd5e5be72b36967a29f785daa63ff5b078bd34f74f44cb54"
sha256: "7708a2129582d43614f436e28623fcbeb142a02022ba372e45cfe403c84dd2b5"
url: "https://pub.dev"
source: hosted
version: "0.8.1"
version: "0.8.3"
stack_trace:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion demos/django-todolist/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
path_provider: ^2.1.1
path: ^1.8.3
logging: ^1.2.0
sqlite_async: ^0.8.1
sqlite_async: ^0.8.3
http: ^1.2.1
shared_preferences: ^2.2.3

Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-anonymous-auth/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,10 @@ packages:
dependency: "direct main"
description:
name: sqlite_async
sha256: "79e636c857ed43f6cd5e5be72b36967a29f785daa63ff5b078bd34f74f44cb54"
sha256: "7708a2129582d43614f436e28623fcbeb142a02022ba372e45cfe403c84dd2b5"
url: "https://pub.dev"
source: hosted
version: "0.8.1"
version: "0.8.3"
stack_trace:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-anonymous-auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies:
supabase_flutter: ^2.0.2
path: ^1.8.3
logging: ^1.2.0
sqlite_async: ^0.8.1
sqlite_async: ^0.8.3
universal_io: ^2.2.2

dev_dependencies:
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-edge-function-auth/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,10 @@ packages:
dependency: "direct main"
description:
name: sqlite_async
sha256: "79e636c857ed43f6cd5e5be72b36967a29f785daa63ff5b078bd34f74f44cb54"
sha256: "7708a2129582d43614f436e28623fcbeb142a02022ba372e45cfe403c84dd2b5"
url: "https://pub.dev"
source: hosted
version: "0.8.1"
version: "0.8.3"
stack_trace:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-edge-function-auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies:
supabase_flutter: ^2.0.2
path: ^1.8.3
logging: ^1.2.0
sqlite_async: ^0.8.1
sqlite_async: ^0.8.3
universal_io: ^2.2.2

dev_dependencies:
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-simple-chat/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -535,10 +535,10 @@ packages:
dependency: transitive
description:
name: sqlite_async
sha256: "79e636c857ed43f6cd5e5be72b36967a29f785daa63ff5b078bd34f74f44cb54"
sha256: "7708a2129582d43614f436e28623fcbeb142a02022ba372e45cfe403c84dd2b5"
url: "https://pub.dev"
source: hosted
version: "0.8.1"
version: "0.8.3"
stack_trace:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-todolist-drift/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -878,10 +878,10 @@ packages:
dependency: "direct main"
description:
name: sqlite_async
sha256: "79e636c857ed43f6cd5e5be72b36967a29f785daa63ff5b078bd34f74f44cb54"
sha256: "7708a2129582d43614f436e28623fcbeb142a02022ba372e45cfe403c84dd2b5"
url: "https://pub.dev"
source: hosted
version: "0.8.1"
version: "0.8.3"
sqlparser:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-todolist-drift/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:
camera: ^0.10.5+7
image: ^4.1.3
universal_io: ^2.2.2
sqlite_async: ^0.8.1
sqlite_async: ^0.8.3
drift: 2.18.0
drift_sqlite_async: ^0.1.0-alpha.4

Expand Down
47 changes: 47 additions & 0 deletions demos/supabase-todolist-optional-sync/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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
.packages
.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
30 changes: 30 additions & 0 deletions demos/supabase-todolist-optional-sync/.metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: "5dcb86f68f239346676ceb1ed1ea385bd215fba1"
channel: "stable"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
- platform: web
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1

# 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'
121 changes: 121 additions & 0 deletions demos/supabase-todolist-optional-sync/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
Creative Commons Legal Code

CC0 1.0 Universal

CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
HEREUNDER.

Statement of Purpose

The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator
and subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").

Certain owners wish to permanently relinquish those rights to a Work for
the purpose of contributing to a commons of creative, cultural and
scientific works ("Commons") that the public can reliably and without fear
of later claims of infringement build upon, modify, incorporate in other
works, reuse and redistribute as freely as possible in any form whatsoever
and for any purposes, including without limitation commercial purposes.
These owners may contribute to the Commons to promote the ideal of a free
culture and the further production of creative, cultural and scientific
works, or to gain reputation or greater distribution for their Work in
part through the use and efforts of others.

For these and/or other purposes and motivations, and without any
expectation of additional consideration or compensation, the person
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
is an owner of Copyright and Related Rights in the Work, voluntarily
elects to apply CC0 to the Work and publicly distribute the Work under its
terms, with knowledge of his or her Copyright and Related Rights in the
Work and the meaning and intended legal effect of CC0 on those rights.

1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights ("Copyright and
Related Rights"). Copyright and Related Rights include, but are not
limited to, the following:

i. the right to reproduce, adapt, distribute, perform, display,
communicate, and translate a Work;
ii. moral rights retained by the original author(s) and/or performer(s);
iii. publicity and privacy rights pertaining to a person's image or
likeness depicted in a Work;
iv. rights protecting against unfair competition in regards to a Work,
subject to the limitations in paragraph 4(a), below;
v. rights protecting the extraction, dissemination, use and reuse of data
in a Work;
vi. database rights (such as those arising under Directive 96/9/EC of the
European Parliament and of the Council of 11 March 1996 on the legal
protection of databases, and under any national implementation
thereof, including any amended or successor version of such
directive); and
vii. other similar, equivalent or corresponding rights throughout the
world based on applicable law or treaty, and any national
implementations thereof.

2. Waiver. To the greatest extent permitted by, but not in contravention
of, applicable law, Affirmer hereby overtly, fully, permanently,
irrevocably and unconditionally waives, abandons, and surrenders all of
Affirmer's Copyright and Related Rights and associated claims and causes
of action, whether now known or unknown (including existing as well as
future claims and causes of action), in the Work (i) in all territories
worldwide, (ii) for the maximum duration provided by applicable law or
treaty (including future time extensions), (iii) in any current or future
medium and for any number of copies, and (iv) for any purpose whatsoever,
including without limitation commercial, advertising or promotional
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
member of the public at large and to the detriment of Affirmer's heirs and
successors, fully intending that such Waiver shall not be subject to
revocation, rescission, cancellation, termination, or any other legal or
equitable action to disrupt the quiet enjoyment of the Work by the public
as contemplated by Affirmer's express Statement of Purpose.

3. Public License Fallback. Should any part of the Waiver for any reason
be judged legally invalid or ineffective under applicable law, then the
Waiver shall be preserved to the maximum extent permitted taking into
account Affirmer's express Statement of Purpose. In addition, to the
extent the Waiver is so judged Affirmer hereby grants to each affected
person a royalty-free, non transferable, non sublicensable, non exclusive,
irrevocable and unconditional license to exercise Affirmer's Copyright and
Related Rights in the Work (i) in all territories worldwide, (ii) for the
maximum duration provided by applicable law or treaty (including future
time extensions), (iii) in any current or future medium and for any number
of copies, and (iv) for any purpose whatsoever, including without
limitation commercial, advertising or promotional purposes (the
"License"). The License shall be deemed effective as of the date CC0 was
applied by Affirmer to the Work. Should any part of the License for any
reason be judged legally invalid or ineffective under applicable law, such
partial invalidity or ineffectiveness shall not invalidate the remainder
of the License, and in such case Affirmer hereby affirms that he or she
will not (i) exercise any of his or her remaining Copyright and Related
Rights in the Work or (ii) assert any associated claims and causes of
action with respect to the Work, in either case contrary to Affirmer's
express Statement of Purpose.

4. Limitations and Disclaimers.

a. No trademark or patent rights held by Affirmer are waived, abandoned,
surrendered, licensed or otherwise affected by this document.
b. Affirmer offers the Work as-is and makes no representations or
warranties of any kind concerning the Work, express, implied,
statutory or otherwise, including without limitation warranties of
title, merchantability, fitness for a particular purpose, non
infringement, or the absence of latent or other defects, accuracy, or
the present or absence of errors, whether or not discoverable, all to
the greatest extent permissible under applicable law.
c. Affirmer disclaims responsibility for clearing rights of other persons
that may apply to the Work or any use thereof, including without
limitation any person's Copyright and Related Rights in the Work.
Further, Affirmer disclaims responsibility for obtaining any necessary
consents, permissions or other rights required for any use of the
Work.
d. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to
this CC0 or use of the Work.
Loading
Loading