From 54b7750851b2a46358645495c6e9fba3ef042428 Mon Sep 17 00:00:00 2001 From: masewo Date: Sun, 19 May 2024 20:53:43 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20to=20Appwrit?= =?UTF-8?q?e=2012.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 8 + example/lib/main.dart | 46 ++++-- .../Flutter/GeneratedPluginRegistrant.swift | 2 +- example/pubspec.lock | 150 ++++++++++++------ example/pubspec.yaml | 1 + example/test/widget_test.dart | 4 +- lib/src/accounts_provider.dart | 41 ++--- pubspec.lock | 136 ++++++++++------ pubspec.yaml | 4 +- 9 files changed, 247 insertions(+), 145 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1da20fc..5df0d15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## [0.8.0] +* Updated to Appwrite SDK 12.0.0 +* **BREAKING** Updated naming to be consistent `createEmailSession` is now `createEmailPasswordSession` +* **BREAKING** Updated naming to be consistent `createPhoneSession` is now `createPhoneToken` +* **BREAKING** Updated naming to be consistent `createMagicURLSession` is now `createMagicURLToken` +* **BREAKING** Changed argument `provider` of `createOAuth2Session` from `String` to `OAuthProvider` +* **BREAKING** Removed argument `passwordAgain` of `updateRecovery` + ## [0.7.0] * Updated to Appwrite SDK 8.2.0 diff --git a/example/lib/main.dart b/example/lib/main.dart index 402e54f..b782232 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -2,12 +2,14 @@ import 'package:appwrite_auth_kit/appwrite_auth_kit.dart'; import 'package:flutter/material.dart'; void main() { - runApp(MyApp()); + runApp(const MyApp()); } class MyApp extends StatefulWidget { + const MyApp({Key? key}) : super(key: key); + @override - _MyAppState createState() => _MyAppState(); + State createState() => _MyAppState(); } class _MyAppState extends State { @@ -31,13 +33,15 @@ class _MyAppState extends State { theme: ThemeData( primarySwatch: Colors.blue, ), - home: MainScreen(), + home: const MainScreen(), ), ); } } class MainScreen extends StatelessWidget { + const MainScreen({Key? key}) : super(key: key); + @override Widget build(BuildContext context) { final authNotifier = context.authNotifier; @@ -45,15 +49,15 @@ class MainScreen extends StatelessWidget { Widget widget; switch (authNotifier.status) { case AuthStatus.authenticated: - widget = AdminPage(); + widget = const AdminPage(); break; case AuthStatus.unauthenticated: case AuthStatus.authenticating: - widget = LoginPage(); + widget = const LoginPage(); break; case AuthStatus.uninitialized: default: - widget = LoadingPage(); + widget = const LoadingPage(); break; } return widget; @@ -61,9 +65,11 @@ class MainScreen extends StatelessWidget { } class LoadingPage extends StatelessWidget { + const LoadingPage({Key? key}) : super(key: key); + @override Widget build(BuildContext context) { - return Scaffold( + return const Scaffold( body: Center( child: CircularProgressIndicator(), ), @@ -72,12 +78,14 @@ class LoadingPage extends StatelessWidget { } class AdminPage extends StatelessWidget { + const AdminPage({Key? key}) : super(key: key); + @override Widget build(BuildContext context) { final user = context.authNotifier.user; return Scaffold( appBar: AppBar( - title: Text('Admin page'), + title: const Text('Admin page'), ), body: ListView( padding: const EdgeInsets.all(16.0), @@ -90,7 +98,7 @@ class AdminPage extends StatelessWidget { onPressed: () { context.authNotifier.deleteSession(); }, - child: Text("Logout")) + child: const Text("Logout")) ] ], ), @@ -99,8 +107,10 @@ class AdminPage extends StatelessWidget { } class LoginPage extends StatefulWidget { + const LoginPage({Key? key}) : super(key: key); + @override - _LoginPageState createState() => _LoginPageState(); + State createState() => _LoginPageState(); } class _LoginPageState extends State { @@ -137,7 +147,7 @@ class _LoginPageState extends State { child: ListView( shrinkWrap: true, primary: false, - physics: NeverScrollableScrollPhysics(), + physics: const NeverScrollableScrollPhysics(), padding: const EdgeInsets.all(16.0), children: [ const SizedBox(height: 20.0), @@ -151,34 +161,36 @@ class _LoginPageState extends State { const SizedBox(height: 20.0), TextField( controller: _email, - decoration: InputDecoration( + decoration: const InputDecoration( labelText: "Enter email", ), ), TextField( controller: _password, obscureText: true, - decoration: InputDecoration( + decoration: const InputDecoration( labelText: "Enter password", ), ), const SizedBox(height: 30.0), ElevatedButton( - child: Text("Login"), onPressed: () async { final email = _email.text; final password = _password.text; + final scaffoldMessenger = ScaffoldMessenger.of(context); + final authNotifier = context.authNotifier; - if (!await context.authNotifier.createEmailSession( + if (!await authNotifier.createEmailPasswordSession( email: email, password: password)) { - ScaffoldMessenger.of(context).showSnackBar(SnackBar( - content: Text(context.authNotifier.error ?? + scaffoldMessenger.showSnackBar(SnackBar( + content: Text(authNotifier.error ?? "Unknown error"))); } }, style: ElevatedButton.styleFrom( padding: const EdgeInsets.all(16.0), ), + child: const Text("Login"), ), const SizedBox(height: 20.0), ], diff --git a/example/macos/Flutter/GeneratedPluginRegistrant.swift b/example/macos/Flutter/GeneratedPluginRegistrant.swift index d51ede4..4fdf00b 100644 --- a/example/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/example/macos/Flutter/GeneratedPluginRegistrant.swift @@ -15,7 +15,7 @@ import window_to_front func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin")) FlutterWebAuth2Plugin.register(with: registry.registrar(forPlugin: "FlutterWebAuth2Plugin")) - FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin")) + FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) WindowToFrontPlugin.register(with: registry.registrar(forPlugin: "WindowToFrontPlugin")) diff --git a/example/pubspec.lock b/example/pubspec.lock index 19fa084..4574cf1 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -5,17 +5,17 @@ packages: dependency: transitive description: name: appwrite - sha256: "3d06ae350dba1c213cb235ff194155059d2e0c428dabd54734c19521dd1b2c45" + sha256: d95476adb1bbb72ae9eb31adffb9205b5cfe24abc4f483982eadceb396d433fb url: "https://pub.dev" source: hosted - version: "11.0.0" + version: "12.0.3" appwrite_auth_kit: dependency: "direct main" description: path: ".." relative: true source: path - version: "0.8.0" + version: "0.9.0" async: dependency: transitive description: @@ -60,10 +60,10 @@ packages: dependency: transitive description: name: collection - sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a url: "https://pub.dev" source: hosted - version: "1.17.2" + version: "1.18.0" cookie_jar: dependency: transitive description: @@ -84,18 +84,18 @@ packages: dependency: transitive description: name: csslib - sha256: b36c7f7e24c0bdf1bf9a3da461c837d1de64b9f8beb190c9011d8c72a3dfd745 + sha256: "706b5707578e0c1b4b7550f64078f0a0f19dec3f50a178ffae7006b0a9ca58fb" url: "https://pub.dev" source: hosted - version: "0.17.2" + version: "1.0.0" device_info_plus: dependency: transitive description: name: device_info_plus - sha256: "86add5ef97215562d2e090535b0a16f197902b10c369c558a100e74ea06e8659" + sha256: eead12d1a1ed83d8283ab4c2f3fca23ac4082f29f25f29dff0f758f57d06ec91 url: "https://pub.dev" source: hosted - version: "9.0.3" + version: "10.1.0" device_info_plus_platform_interface: dependency: transitive description: @@ -133,6 +133,14 @@ packages: description: flutter source: sdk version: "0.0.0" + flutter_lints: + dependency: "direct dev" + description: + name: flutter_lints + sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c" + url: "https://pub.dev" + source: hosted + version: "4.0.0" flutter_test: dependency: "direct dev" description: flutter @@ -142,18 +150,18 @@ packages: dependency: transitive description: name: flutter_web_auth_2 - sha256: "0da41e631a368e02366fc1a9b79dd8da191e700a836878bc54466fff51c07df2" + sha256: "4d3d2fd3d26bf1a26b3beafd4b4b899c0ffe10dc99af25abc58ffe24e991133c" url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "3.1.2" flutter_web_auth_2_platform_interface: dependency: transitive description: name: flutter_web_auth_2_platform_interface - sha256: f6fa7059ff3428c19cd756c02fef8eb0147131c7e64591f9060c90b5ab84f094 + sha256: e8669e262005a8354389ba2971f0fc1c36188481234ff50d013aaf993f30f739 url: "https://pub.dev" source: hosted - version: "2.1.4" + version: "3.1.0" flutter_web_plugins: dependency: transitive description: flutter @@ -163,10 +171,10 @@ packages: dependency: transitive description: name: html - sha256: d9793e10dbe0e6c364f4c59bf3e01fb33a9b2a674bc7a1081693dba0614b6269 + sha256: "3a7812d5bcd2894edf53dfaf8cd640876cf6cef50a8f238745c8b8120ea74d3a" url: "https://pub.dev" source: hosted - version: "0.15.1" + version: "0.15.4" http: dependency: transitive description: @@ -183,62 +191,94 @@ packages: url: "https://pub.dev" source: hosted version: "4.0.0" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" + url: "https://pub.dev" + source: hosted + version: "10.0.4" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" + url: "https://pub.dev" + source: hosted + version: "3.0.3" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" + url: "https://pub.dev" + source: hosted + version: "3.0.1" + lints: + dependency: transitive + description: + name: lints + sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235" + url: "https://pub.dev" + source: hosted + version: "4.0.0" matcher: dependency: transitive description: name: matcher - sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb url: "https://pub.dev" source: hosted - version: "0.12.16" + version: "0.12.16+1" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.8.0" meta: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.12.0" package_info_plus: dependency: transitive description: name: package_info_plus - sha256: "6ff267fcd9d48cb61c8df74a82680e8b82e940231bb5f68356672fde0397334a" + sha256: b93d8b4d624b4ea19b0a5a208b2d6eff06004bc3ce74c06040b120eeadd00ce0 url: "https://pub.dev" source: hosted - version: "4.1.0" + version: "8.0.0" package_info_plus_platform_interface: dependency: transitive description: name: package_info_plus_platform_interface - sha256: "9bc8ba46813a4cc42c66ab781470711781940780fd8beddd0c3da62506d3a6c6" + sha256: f49918f3433a3146047372f9d4f1f847511f2acd5cd030e1f44fe5a50036b70e url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "3.0.0" path: dependency: transitive description: name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" url: "https://pub.dev" source: hosted - version: "1.8.3" + version: "1.9.0" path_provider: dependency: transitive description: name: path_provider - sha256: a1aa8aaa2542a6bc57e381f132af822420216c80d4781f7aa085ca3229208aaa + sha256: c9e7d3a4cd1410877472158bee69963a4579f78b68c65a2b7d40d1a7a88bb161 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.3" path_provider_android: dependency: transitive description: @@ -251,10 +291,10 @@ packages: dependency: transitive description: name: path_provider_foundation - sha256: "19314d595120f82aca0ba62787d58dde2cc6b5df7d2f0daf72489e38d1b57f2d" + sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16 url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.4.0" path_provider_linux: dependency: transitive description: @@ -291,10 +331,10 @@ packages: dependency: transitive description: name: plugin_platform_interface - sha256: "075f927ebbab4262ace8d0b283929ac5410c0ac4e7fc123c76429564facfb757" + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.8" sky_engine: dependency: transitive description: flutter @@ -312,18 +352,18 @@ packages: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" string_scanner: dependency: transitive description: @@ -344,34 +384,34 @@ packages: dependency: transitive description: name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" + sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.7.0" typed_data: dependency: transitive description: name: typed_data - sha256: "53bdf7e979cfbf3e28987552fd72f637e63f3c8724c9e56d9246942dc2fa36ee" + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c url: "https://pub.dev" source: hosted - version: "1.3.0" + version: "1.3.2" universal_html: dependency: transitive description: name: universal_html - sha256: f2e0ff0c4af8e4bbda4d273ca4a11be4055414f478fad5c161609b74790ff696 + sha256: "56536254004e24d9d8cfdb7dbbf09b74cf8df96729f38a2f5c238163e3d58971" url: "https://pub.dev" source: hosted - version: "2.2.2" + version: "2.2.4" universal_io: dependency: transitive description: name: universal_io - sha256: "06866290206d196064fd61df4c7aea1ffe9a4e7c4ccaa8fcded42dd41948005d" + sha256: "1722b2dcc462b4b2f3ee7d188dad008b6eb4c40bbd03a3de451d82c78bba9aad" url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.2.2" url_launcher: dependency: transitive description: @@ -444,22 +484,30 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" + url: "https://pub.dev" + source: hosted + version: "14.2.1" web: dependency: transitive description: name: web - sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" url: "https://pub.dev" source: hosted - version: "0.1.4-beta" + version: "0.5.1" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b + sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42" url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "2.4.5" win32: dependency: transitive description: @@ -493,5 +541,5 @@ packages: source: hosted version: "1.0.3" sdks: - dart: ">=3.1.0-185.0.dev <4.0.0" - flutter: ">=3.7.0" + dart: ">=3.3.0 <4.0.0" + flutter: ">=3.19.0" diff --git a/example/pubspec.yaml b/example/pubspec.yaml index ca4721d..bb034c4 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -13,6 +13,7 @@ dependencies: path: ../ dev_dependencies: + flutter_lints: ^4.0.0 flutter_test: sdk: flutter diff --git a/example/test/widget_test.dart b/example/test/widget_test.dart index d3cf713..55b3133 100644 --- a/example/test/widget_test.dart +++ b/example/test/widget_test.dart @@ -7,13 +7,13 @@ import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; -import '../lib/main.dart'; +import 'package:appwrite_auth_kit_example/main.dart'; void main() { testWidgets('Counter increments smoke test', (WidgetTester tester) async { // Build our app and trigger a frame. - await tester.pumpWidget(MyApp()); + await tester.pumpWidget(const MyApp()); // Verify that our counter starts at 0. expect(find.text('0'), findsOneWidget); diff --git a/lib/src/accounts_provider.dart b/lib/src/accounts_provider.dart index 21d68be..1f37f93 100644 --- a/lib/src/accounts_provider.dart +++ b/lib/src/accounts_provider.dart @@ -1,4 +1,5 @@ import 'package:appwrite/appwrite.dart'; +import 'package:appwrite/enums.dart'; import 'package:appwrite/models.dart'; import 'package:flutter/widgets.dart'; @@ -8,13 +9,11 @@ extension AppwriteAuthKitExt on BuildContext { class AppwriteAuthKit extends InheritedNotifier { AppwriteAuthKit({ - Key? key, + super.key, required Client client, - required Widget child, + required super.child, }) : super( - key: key, notifier: AuthNotifier(client), - child: child, ); @override @@ -54,10 +53,15 @@ class AuthNotifier extends ChangeNotifier { } Account get account => _account; + Client get client => _client; + String? get error => _error; + bool get isLoading => _loading; + User? get user => _user; + AuthStatus get status => _status; Future _getUser({bool notify = true}) async { @@ -101,7 +105,7 @@ class AuthNotifier extends ChangeNotifier { } } - Future createEmailSession({ + Future createEmailPasswordSession({ required String email, required String password, bool notify = true, @@ -111,7 +115,8 @@ class AuthNotifier extends ChangeNotifier { notifyListeners(); } try { - await _account.createEmailSession(email: email, password: password); + await _account.createEmailPasswordSession( + email: email, password: password); _getUser(notify: notify); return true; } on AppwriteException catch (e) { @@ -124,14 +129,14 @@ class AuthNotifier extends ChangeNotifier { } } - Future createPhoneSession({ + Future createPhoneToken({ required String userId, required String number, }) async { _status = AuthStatus.authenticating; notifyListeners(); try { - await _account.createPhoneSession(userId: userId, phone: number); + await _account.createPhoneToken(userId: userId, phone: number); return true; } on AppwriteException catch (e) { _error = e.message; @@ -174,7 +179,7 @@ class AuthNotifier extends ChangeNotifier { } } - Future createMagicURLSession({ + Future createMagicURLToken({ required String email, String userId = 'unique()', String? url, @@ -182,7 +187,7 @@ class AuthNotifier extends ChangeNotifier { _status = AuthStatus.authenticating; notifyListeners(); try { - await _account.createMagicURLSession( + await _account.createMagicURLToken( userId: userId, email: email, url: url); return true; } on AppwriteException catch (e) { @@ -240,7 +245,7 @@ class AuthNotifier extends ChangeNotifier { userId: userId, name: name, email: email, password: password); _error = ''; if (newSession) { - await createEmailSession(email: email, password: password); + await createEmailPasswordSession(email: email, password: password); } return user; } on AppwriteException catch (e) { @@ -266,8 +271,7 @@ class AuthNotifier extends ChangeNotifier { } } - Future updatePrefs( - {required Map prefs}) async { + Future updatePrefs({required Map prefs}) async { try { _user = await _account.updatePrefs(prefs: prefs); notifyListeners(); @@ -293,7 +297,7 @@ class AuthNotifier extends ChangeNotifier { } Future createOAuth2Session({ - required String provider, + required OAuthProvider provider, String? success, String? failure, List? scopes, @@ -410,15 +414,11 @@ class AuthNotifier extends ChangeNotifier { Future updateRecovery({ required String userId, required String password, - required String passwordAgain, required String secret, }) async { try { return await _account.updateRecovery( - userId: userId, - password: password, - passwordAgain: passwordAgain, - secret: secret); + userId: userId, password: password, secret: secret); } on AppwriteException catch (e) { _error = e.message; notifyListeners(); @@ -468,7 +468,8 @@ class AuthNotifier extends ChangeNotifier { required String secret, }) async { try { - return await _account.updatePhoneVerification(userId: userId, secret: secret); + return await _account.updatePhoneVerification( + userId: userId, secret: secret); } on AppwriteException catch (e) { _error = e.message; notifyListeners(); diff --git a/pubspec.lock b/pubspec.lock index 6b26110..3039cc3 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,10 +5,10 @@ packages: dependency: "direct main" description: name: appwrite - sha256: "3d06ae350dba1c213cb235ff194155059d2e0c428dabd54734c19521dd1b2c45" + sha256: d95476adb1bbb72ae9eb31adffb9205b5cfe24abc4f483982eadceb396d433fb url: "https://pub.dev" source: hosted - version: "11.0.0" + version: "12.0.3" async: dependency: transitive description: @@ -53,10 +53,10 @@ packages: dependency: transitive description: name: collection - sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a url: "https://pub.dev" source: hosted - version: "1.17.2" + version: "1.18.0" cookie_jar: dependency: transitive description: @@ -77,18 +77,18 @@ packages: dependency: transitive description: name: csslib - sha256: b36c7f7e24c0bdf1bf9a3da461c837d1de64b9f8beb190c9011d8c72a3dfd745 + sha256: "706b5707578e0c1b4b7550f64078f0a0f19dec3f50a178ffae7006b0a9ca58fb" url: "https://pub.dev" source: hosted - version: "0.17.2" + version: "1.0.0" device_info_plus: dependency: transitive description: name: device_info_plus - sha256: "86add5ef97215562d2e090535b0a16f197902b10c369c558a100e74ea06e8659" + sha256: eead12d1a1ed83d8283ab4c2f3fca23ac4082f29f25f29dff0f758f57d06ec91 url: "https://pub.dev" source: hosted - version: "9.0.3" + version: "10.1.0" device_info_plus_platform_interface: dependency: transitive description: @@ -130,10 +130,10 @@ packages: dependency: "direct dev" description: name: flutter_lints - sha256: aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c + sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "4.0.0" flutter_test: dependency: "direct dev" description: flutter @@ -143,18 +143,18 @@ packages: dependency: transitive description: name: flutter_web_auth_2 - sha256: "0da41e631a368e02366fc1a9b79dd8da191e700a836878bc54466fff51c07df2" + sha256: "4d3d2fd3d26bf1a26b3beafd4b4b899c0ffe10dc99af25abc58ffe24e991133c" url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "3.1.2" flutter_web_auth_2_platform_interface: dependency: transitive description: name: flutter_web_auth_2_platform_interface - sha256: f6fa7059ff3428c19cd756c02fef8eb0147131c7e64591f9060c90b5ab84f094 + sha256: e8669e262005a8354389ba2971f0fc1c36188481234ff50d013aaf993f30f739 url: "https://pub.dev" source: hosted - version: "2.1.4" + version: "3.1.0" flutter_web_plugins: dependency: transitive description: flutter @@ -164,10 +164,10 @@ packages: dependency: transitive description: name: html - sha256: "79d498e6d6761925a34ee5ea8fa6dfef38607781d2fa91e37523474282af55cb" + sha256: "3a7812d5bcd2894edf53dfaf8cd640876cf6cef50a8f238745c8b8120ea74d3a" url: "https://pub.dev" source: hosted - version: "0.15.2" + version: "0.15.4" http: dependency: transitive description: @@ -184,70 +184,94 @@ packages: url: "https://pub.dev" source: hosted version: "4.0.2" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" + url: "https://pub.dev" + source: hosted + version: "10.0.4" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" + url: "https://pub.dev" + source: hosted + version: "3.0.3" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" + url: "https://pub.dev" + source: hosted + version: "3.0.1" lints: dependency: transitive description: name: lints - sha256: "5e4a9cd06d447758280a8ac2405101e0e2094d2a1dbdd3756aec3fe7775ba593" + sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "4.0.0" matcher: dependency: transitive description: name: matcher - sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb url: "https://pub.dev" source: hosted - version: "0.12.16" + version: "0.12.16+1" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.8.0" meta: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.12.0" package_info_plus: dependency: transitive description: name: package_info_plus - sha256: "6ff267fcd9d48cb61c8df74a82680e8b82e940231bb5f68356672fde0397334a" + sha256: b93d8b4d624b4ea19b0a5a208b2d6eff06004bc3ce74c06040b120eeadd00ce0 url: "https://pub.dev" source: hosted - version: "4.1.0" + version: "8.0.0" package_info_plus_platform_interface: dependency: transitive description: name: package_info_plus_platform_interface - sha256: "9bc8ba46813a4cc42c66ab781470711781940780fd8beddd0c3da62506d3a6c6" + sha256: f49918f3433a3146047372f9d4f1f847511f2acd5cd030e1f44fe5a50036b70e url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "3.0.0" path: dependency: transitive description: name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" url: "https://pub.dev" source: hosted - version: "1.8.3" + version: "1.9.0" path_provider: dependency: transitive description: name: path_provider - sha256: a1aa8aaa2542a6bc57e381f132af822420216c80d4781f7aa085ca3229208aaa + sha256: c9e7d3a4cd1410877472158bee69963a4579f78b68c65a2b7d40d1a7a88bb161 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.3" path_provider_android: dependency: transitive description: @@ -260,10 +284,10 @@ packages: dependency: transitive description: name: path_provider_foundation - sha256: "19314d595120f82aca0ba62787d58dde2cc6b5df7d2f0daf72489e38d1b57f2d" + sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16 url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.4.0" path_provider_linux: dependency: transitive description: @@ -329,18 +353,18 @@ packages: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" string_scanner: dependency: transitive description: @@ -361,34 +385,34 @@ packages: dependency: transitive description: name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" + sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.7.0" typed_data: dependency: transitive description: name: typed_data - sha256: "26f87ade979c47a150c9eaab93ccd2bebe70a27dc0b4b29517f2904f04eb11a5" + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c url: "https://pub.dev" source: hosted - version: "1.3.1" + version: "1.3.2" universal_html: dependency: transitive description: name: universal_html - sha256: f2e0ff0c4af8e4bbda4d273ca4a11be4055414f478fad5c161609b74790ff696 + sha256: "56536254004e24d9d8cfdb7dbbf09b74cf8df96729f38a2f5c238163e3d58971" url: "https://pub.dev" source: hosted - version: "2.2.2" + version: "2.2.4" universal_io: dependency: transitive description: name: universal_io - sha256: "06866290206d196064fd61df4c7aea1ffe9a4e7c4ccaa8fcded42dd41948005d" + sha256: "1722b2dcc462b4b2f3ee7d188dad008b6eb4c40bbd03a3de451d82c78bba9aad" url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.2.2" url_launcher: dependency: transitive description: @@ -461,22 +485,30 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" + url: "https://pub.dev" + source: hosted + version: "14.2.1" web: dependency: transitive description: name: web - sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" url: "https://pub.dev" source: hosted - version: "0.1.4-beta" + version: "0.5.1" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b + sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42" url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "2.4.5" win32: dependency: transitive description: @@ -510,5 +542,5 @@ packages: source: hosted version: "1.0.0" sdks: - dart: ">=3.1.0-185.0.dev <4.0.0" - flutter: ">=3.7.0" + dart: ">=3.3.0 <4.0.0" + flutter: ">=3.19.0" diff --git a/pubspec.yaml b/pubspec.yaml index b20dcd2..397a2ff 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -8,12 +8,12 @@ environment: flutter: ">=2.0.0" dependencies: - appwrite: ^11.0.0 + appwrite: ^12.0.0 flutter: sdk: flutter dev_dependencies: - flutter_lints: ^2.0.1 + flutter_lints: ^4.0.0 flutter_test: sdk: flutter From 73bebb8d5e243570f99100712bfcc080b7735adf Mon Sep 17 00:00:00 2001 From: masewo Date: Sun, 19 May 2024 20:57:42 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=94=96=20Bump=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 8 +++++++- pubspec.yaml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5df0d15..0d7b2fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## [0.8.0] +## [0.10.0] * Updated to Appwrite SDK 12.0.0 * **BREAKING** Updated naming to be consistent `createEmailSession` is now `createEmailPasswordSession` * **BREAKING** Updated naming to be consistent `createPhoneSession` is now `createPhoneToken` @@ -6,6 +6,12 @@ * **BREAKING** Changed argument `provider` of `createOAuth2Session` from `String` to `OAuthProvider` * **BREAKING** Removed argument `passwordAgain` of `updateRecovery` +## [0.9.0] +* Updated to Appwrite SDK 11.0.0 + +## [0.8.0] +* Appwrite 1.3 Support + ## [0.7.0] * Updated to Appwrite SDK 8.2.0 diff --git a/pubspec.yaml b/pubspec.yaml index 397a2ff..0cd8fa4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: appwrite_auth_kit description: A wrapper for Appwrite's Accounts service, makes it easy to manage authentication and account features. -version: 0.9.0 +version: 0.10.0 homepage: https://github.com/lohanidamodar/appwrite_auth_kit environment: