From 28fb1004ec89fe33b1c6b5566a6a3fa0a20221d9 Mon Sep 17 00:00:00 2001 From: Bruno D'Luka <45696119+bdlukaa@users.noreply.github.com> Date: Fri, 3 Dec 2021 09:54:14 -0300 Subject: [PATCH 1/2] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 54911efb8..766507bf7 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,18 @@ Supabase is an open source Firebase alternative. We are a service to: - [x] Public Beta: Stable. No breaking changes expected in this version but possible bugs. - [ ] Public: Production-ready +## Features + +- [x] Null-safety + +| Platform | Email Auth | Provider Auth | Database | Realtime | Storage | +| -------- | :--------: | :-----------: | :------: | :------: | :-----: | +| Android | ✅ | ✅ | ✅ | ✅ | ✅ | +| iOS | ✅ | ✅ | ✅ | ✅ | ✅ | +| macOS | ✅ | | ✅ | ✅ | ✅ | +| Windows | ✅ | | ✅ | ✅ | ✅ | +| Linux | ✅ | | ✅ | ✅ | ✅ | + ## Getting Started Import the package: From 87ca0622c10faeaf57ee278509253aaef51c393d Mon Sep 17 00:00:00 2001 From: Bruno D'Luka <45696119+bdlukaa@users.noreply.github.com> Date: Fri, 3 Dec 2021 10:05:13 -0300 Subject: [PATCH 2/2] Update supabase.dart --- lib/src/supabase.dart | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/src/supabase.dart b/lib/src/supabase.dart index 1bcd7c18e..62d3e51f3 100644 --- a/lib/src/supabase.dart +++ b/lib/src/supabase.dart @@ -4,10 +4,12 @@ import 'package:supabase/supabase.dart'; import 'local_storage.dart'; import 'supabase_auth.dart'; -/// Supabase instance. It must be initialized before used: +/// Supabase instance. +/// +/// It must be initialized before used, otherwise an error is thrown. /// /// ```dart -/// Supabase.initialize(...) +/// await Supabase.initialize(...) /// ``` /// /// Use it: @@ -23,7 +25,7 @@ class Supabase { /// Gets the current supabase instance. /// /// An [AssertionError] is thrown if supabase isn't initialized yet. - /// Call [Supabase.intialize] to initialize it. + /// Call [Supabase.initialize] to initialize it. static Supabase get instance { assert( _instance._initialized, @@ -61,8 +63,8 @@ class Supabase { return _instance; } - Supabase._privateConstructor(); - static final Supabase _instance = Supabase._privateConstructor(); + Supabase._(); + static final Supabase _instance = Supabase._(); bool _initialized = false;