Commit Graph

40 Commits

Author SHA1 Message Date
hans f5056c36df Add configuration files and update authentication service error handling
- Introduced .vscode/settings.json and .vscode/launch.json for IDE configuration.
- Updated DebugAuthInterface and ArcaneAuthenticationService to return const Result.ok() for consistency.
- Added ArcaneTheme class for theme management.
- Updated pubspec.yaml to change result_monad dependency version.
- Modified authentication_service_test to return const Result.ok() in mock setups.

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-05-07 21:03:50 +02:00
hans 93f90a3f72 Fix DebugAuthInterface logout method
Added environment key to ArcaneEnvironment constructor
 Renamed switchEnvironment parameter in ArcaneEnvironment constructor

Bumped arcane_helper_utils dependency version
2025-05-19 17:00:27 +02:00
hans e6646d308c Remove bloc dependency
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2025-05-02 08:51:56 +02:00
hans d4b6c5467d Updated release notes
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2025-04-29 14:16:17 +02:00
hans 0c5b947809 Logging service:
- added: reset()
- added: `skipAutodetection` option for module, method, and metadata
- added: unregisterInterface()
- Created FileAndLineNumber mixin

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2025-04-29 14:16:17 +02:00
hans ac82e93b9d [UNTESTED] Fixes notifiers and adds some additional methods. Adds tests.
Changes:
// ArcaneEnvironment
breaking: context.read<ArcaneEnvironment>() -> ArcaneEnvironment.of(context)
breaking: context.read<ArcaneEnvironment>().state -> ArcaneEnvironment.of(context).environment;

// Feature flag service
added: reset()

// Logging service
added: registerInterface()
added: unregisterInterfaces()
added: unregisterAllInterfaces()

// ArcaneReactiveTheme
fixed: currentMode, dark, light now actually emit new values when changed
added: getters for lightTheme, darkTheme, and systemTheme
TODO: test systemTheme

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2025-04-29 14:16:17 +02:00
hans beee74e49a v1.2.5
- Improved automatic metadata detection in `ArcaneLogger`

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2025-01-23 13:59:40 +01:00
hans 6ffb83e59d v1.2.4
- Update package dependencies

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2025-01-16 11:10:23 +01:00
hans 552398bcc5 v1.2.3
- Added `ValueNotifier`s to both the `ArcaneAuthenticationService` and
  `ArcaneFeatureFlags`. This enables the possibility of listening for changes to
  either service.

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2025-01-14 11:48:25 +01:00
hans 47ce767fb6 v1.2.2
- Lowered minimum required collection dependency version to prevent forcing
  users into the latest Flutter release

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-12-16 14:35:02 +01:00
hans f028c1e5ba v1.2.1
- Lowered minimum required SDK version to prevent forcing users into the latest
  Flutter release

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-12-16 14:29:59 +01:00
Hans Kokx 129801a0dc v1.2.0
- Removed flutter_secure_storage dependency as it was unused
- BREAKING: several methods were moved from the ArcaneAuthInterface base class into their own mixins

Signed-off-by: Hans Kokx <hans.kokx@hackberry.se>
2024-12-12 15:09:10 +01:00
Hans Kokx adef2e01dd v1.1.7
- Fixed an issue with the `ArcaneAuthenticationService` where an exception would
  be thrown when attempting to access an authentication token while no
  `ArcaneAuthInterface` was registered.

Signed-off-by: Hans Kokx <hans.kokx@hackberry.se>
2024-12-11 11:02:58 +01:00
hans bc0972cf32 v1.1.6
- Updated logging feature to indicate the feature which was enabled or disabled within the log message, instead of only in the metadata

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-12-02 13:58:12 +01:00
Hans Kokx 3c16b32648 v1.1.5
- Updated dependencies

Signed-off-by: Hans Kokx <hans.kokx@hackberry.se>
2024-11-04 17:05:00 +01:00
Hans Kokx a26ced6a24 v1.1.4
- Updated dependencies

Signed-off-by: Hans Kokx <hans.kokx@hackberry.se>
2024-11-04 17:04:14 +01:00
Hans Kokx 1749214dd3 v1.1.4
- Update out-of-date packages

Signed-off-by: Hans Kokx <hans.kokx@hackberry.se>
2024-10-30 10:34:45 +01:00
Hans Kokx 606404b4d3 v1.1.3
- Auth logout no longer throws exceptions, preferring a Result return value instead.

Signed-off-by: Hans Kokx <hans.kokx@hackberry.se>
2024-10-25 12:17:10 +02:00
Hans Kokx a29da7c090 v1.1.2
- Removes default error catching from ArcaneLoggingService

Signed-off-by: Hans Kokx <hans.kokx@hackberry.se>
2024-10-18 16:37:10 +02:00
Hans Kokx a04a8b1f2a Bump version number
Signed-off-by: Hans Kokx <hans.kokx@hackberry.se>
2024-10-11 14:17:11 +02:00
Hans Kokx 23e2bcb4b7 v1.1.1+1
- Updated README

Signed-off-by: Hans Kokx <hans.kokx@hackberry.se>
2024-10-11 14:08:37 +02:00
Hans Kokx 9f00ed205b v1.1.1
Breaking changes:
- Updated ArcaneAuthInterface to make the `resendVerificationCode`, `confirmSignup`, and `resetPassword` methods more versatile

Signed-off-by: Hans Kokx <hans.kokx@hackberry.se>
2024-10-11 14:04:53 +02:00
hans a67e4adfa2 v1.1.0
Breaking changes:
- (ArcaneAuthInterface) Migrated `loginWithEmailAndPassword` to `login`
- (ArcaneAuthInterface) Migrated `signup` to `register`

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-10-10 15:56:38 +02:00
hans c6377e2efe v1.0.8
- Added the `extra` parameter to the `Arcane.log` shortcut method

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-10-04 14:40:04 +02:00
hans 4547dd39fe v1.0.7
- Added the `extra` parameter to the `LoggingInterface` object

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-10-04 14:17:25 +02:00
hans dc03f9aac1 v1.0.6+1
- Moved linting rules to arcane_analysis package

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-10-04 14:05:18 +02:00
hans 9b283f5504 v1.0.6 - remove GetIt dependency
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-25 10:21:01 +02:00
hans b93f6c39e7 v1.0.5+2
- Updated README and example project

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-20 15:49:01 +02:00
hans 52c6626531 v1.0.5+1
- Marks `loginWithEmailAndPassword` as deprecated and update example

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-20 15:23:13 +02:00
hans 05624263fb v1.0.5
- Added the ability to use a generic type for the login method in ArcaneAuthenticationService
- Added the ability to reset the ArcaneAuthenticationService, which will unregister the current interface and clear the authentication state
- Removed unused testing tooling (e.g., `@visibleForTesting`) from the codebase

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-20 15:10:00 +02:00
hans 03e3a0bcbd v1.0.4
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-18 11:05:11 +02:00
hans e6b2442eea Added example project
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-18 10:39:46 +02:00
hans af6194608d v1.0.3
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-17 14:11:46 +02:00
hans 1499fd588f Updated description
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-16 12:49:30 +02:00
hans 0d7d0b32c4 v1.0.2
Updated the authentication service to provide a value listenable

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-13 13:32:31 +02:00
hans 06ff90ba8c Simplified logger example
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-12 11:14:21 +02:00
hans d8cea8fba1 Bump version number for final release
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-12 11:10:54 +02:00
hans 8aca702b79 Added additional documentation and removed Logger dependency
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-12 05:09:52 -04:00
hans a2b3cbb077 Removed ID and secure storage services to improve compatibility with different platforms. Removed app tracking handling from the logging service.
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-12 05:09:52 -04:00
hans 56ebaeb346 Initial (#1)
Initial release
2024-09-11 18:49:35 +02:00