Switch to "federated-like" plugin structure #37

Open
opened 2022-11-22 20:58:27 +00:00 by hugo · 0 comments
Owner

Actually, Wyatt Authentication plugin only supports FirebaseAuth, but we can imagine new data sources like:

and more...

So, to avoid creating a fat package depending on all those packages we can use federated plugin structure: https://docs.flutter.dev/development/packages-and-plugins/developing-packages#federated-plugins

  • wyatt_authentication : Core package containing all repositories, entities, blocs, data sources interfaces, mocks, and tests, etc...
  • wyatt_authentication_firebase : Firebase Auth data source implementation
  • wyatt_authentication_supabse : Supabase Auth data source implementation
  • wyatt_authentication_appwrite : Appwrite Auth data source implementation

So, if a project uses firebase, just import wyatt_authentication and wyatt_authentication_firebase.

Actually, Wyatt Authentication plugin only supports FirebaseAuth, but we can imagine new data sources like: - Supabase | <https://supabase.com/docs/guides/auth> - Appwrite | <https://appwrite.io/docs/authentication> - Keycloak | <https://github.com/keycloak/keycloak> and more... So, to avoid creating a fat package depending on all those packages we can use federated plugin structure: <https://docs.flutter.dev/development/packages-and-plugins/developing-packages#federated-plugins> - wyatt_authentication : Core package containing all repositories, entities, blocs, data sources interfaces, mocks, and tests, etc... - wyatt_authentication_firebase : Firebase Auth data source implementation - wyatt_authentication_supabse : Supabase Auth data source implementation - wyatt_authentication_appwrite : Appwrite Auth data source implementation So, if a project uses firebase, just import `wyatt_authentication` and `wyatt_authentication_firebase`.
hugo self-assigned this 2022-11-22 20:58:27 +00:00
hugo added this to the (deleted) project 2022-11-24 22:39:45 +00:00
malo added this to the (deleted) milestone 2022-11-25 19:56:17 +00:00
malo added this to the (deleted) project 2022-11-25 19:56:23 +00:00
hugo added the
priority
low
enhancement
refactor
proposal
labels 2023-04-07 11:57:31 +00:00
hugo added the
package
authentication
label 2023-04-07 12:14:07 +00:00
hugo changed title from Refactor(authentication): switch to "federated-like" plugin structure to Switch to "federated-like" plugin structure 2023-04-07 12:14:12 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Wyatt-FOSS/wyatt-packages#37
No description provided.