Skip to content

Commit

Permalink
Merge pull request #8 from fahamutech/migrate_to_functional_and_minim…
Browse files Browse the repository at this point in the history
…alistic

Migrate to functional and minimalistic
  • Loading branch information
joshuamshana authored Aug 16, 2022
2 parents f06368f + 1fb06ef commit e62d189
Show file tree
Hide file tree
Showing 49 changed files with 744 additions and 3,193 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
Refer to [BFastProject](http://bfast.fahamutech.com/docs) for better documentations.
Always use latest version

## [5.0.0-beta.0] - 16/08/2022

- minimize code to lift out all the implementation to developer
- improve socket factory to be singleton
- start migrate api to functional

## [4.1.1] - 04/10/2021

## [4.1.0] - 04/10/2021
Expand Down
4 changes: 1 addition & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
MIT License

Copyright (c) 2019 fluttertz
Copyright (c) 2022 SmartStock Company Limited Open Source

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
37 changes: 0 additions & 37 deletions lib/adapter/auth.dart

This file was deleted.

28 changes: 13 additions & 15 deletions lib/adapter/cache.dart
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import 'package:bfast/adapter/query.dart';

abstract class CacheAdapter {
Future<T> set<T>(String identifier, T data, {int dtl});

Future<T> get<T>(String identifier);

Future<List<K>> keys<K>();

Future<bool> clearAll();

Future<bool> remove(String identifier, {bool force});

bool cacheEnabled({RequestOptions options});
}
//
//
// abstract class CacheAdapter {
// Future<T> set<T>(String identifier, T data, {int dtl});
//
// Future<T> get<T>(String identifier);
//
// Future<List<K>> keys<K>();
//
// Future<bool> clearAll();
//
// Future<bool> remove(String identifier, {bool force});
// }
57 changes: 0 additions & 57 deletions lib/adapter/query.dart

This file was deleted.

10 changes: 10 additions & 0 deletions lib/adapter/realtime.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import '../options.dart';

abstract class RealtimeAdapter {
send(App app,String event);
close(App app, String event);
receive(App app, String event);
closeAll();
closeAllOfApp(App app);
count(App app);
}
43 changes: 0 additions & 43 deletions lib/adapter/rest.dart

This file was deleted.

44 changes: 0 additions & 44 deletions lib/adapter/storage.dart

This file was deleted.

70 changes: 0 additions & 70 deletions lib/bfast.dart

This file was deleted.

Loading

0 comments on commit e62d189

Please sign in to comment.