Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
committed Jan 6, 2025
1 parent b9e45fa commit 942e4fd
Show file tree
Hide file tree
Showing 8 changed files with 214 additions and 87 deletions.
4 changes: 2 additions & 2 deletions general_documentation/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ dependencies:
sdk: 'flutter'
cupertino_icons: '^1.0.6'
path: '^1.9.0'
general_lib: '^0.0.54'
general_lib_flutter: '^0.0.35'
general_lib: '^0.0.56'
general_lib_flutter: '^0.0.37'
documentation: '^0.0.2'
dev_dependencies:
flutter_test:
Expand Down
5 changes: 5 additions & 0 deletions package/general/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.0.39

- New Version 0.0.39


## 0.0.38

- New Version 0.0.38
Expand Down
6 changes: 3 additions & 3 deletions package/general/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ dependencies:
path: '../'
media_kit_video: '^1.2.5'
local_auth: '^2.2.0'
telegram_client: '^0.8.32'
general_lib: '^0.0.54'
general_lib_flutter: '^0.0.35'
telegram_client: '^0.8.33'
general_lib: '^0.0.56'
general_lib_flutter: '^0.0.37'
dev_dependencies:
flutter_test:
sdk: 'flutter'
Expand Down
243 changes: 176 additions & 67 deletions package/general/lib/api/api.dart

Large diffs are not rendered by default.

21 changes: 15 additions & 6 deletions package/general/lib/cli/cli.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,26 @@ Future<void> generalLibraryCli({
}

if (command == "init") {
await generalLibraryApi.create(newName: ".", directoryBase: Directory.current).listen((event) {
await generalLibraryApi
.create(newName: ".", directoryBase: Directory.current)
.listen((event) {
printed(event);
}).asFuture();
exit(0);
}

if (command == "setup") {
await generalLibraryApi.setup(directoryBase: Directory.current).listen((event) {
await generalLibraryApi
.setup(directoryBase: Directory.current)
.listen((event) {
printed(event);
}).asFuture();
exit(0);
}
if (command == "patch") {
await generalLibraryApi.patch(directoryBase: Directory.current).listen((event) {
await generalLibraryApi
.patch(directoryBase: Directory.current)
.listen((event) {
printed(event);
}).asFuture();
exit(0);
Expand All @@ -63,16 +69,19 @@ Future<void> generalLibraryCli({

Progress progress = logger.progress("message");
void printed(GeneralLibraryApiStatus event) {
if (event.serverUniverseApiStatusType == GeneralLibraryApiStatusType.progress_start) {
if (event.serverUniverseApiStatusType ==
GeneralLibraryApiStatusType.progress_start) {
progress.cancel();
progress = logger.progress(event.value);
return;
}
if (event.serverUniverseApiStatusType == GeneralLibraryApiStatusType.progress) {
if (event.serverUniverseApiStatusType ==
GeneralLibraryApiStatusType.progress) {
progress.update(event.value);
return;
}
if (event.serverUniverseApiStatusType == GeneralLibraryApiStatusType.progress_complete) {
if (event.serverUniverseApiStatusType ==
GeneralLibraryApiStatusType.progress_complete) {
progress.complete(event.value);

// progress.cancel();
Expand Down
12 changes: 8 additions & 4 deletions package/general/lib/core/player/player_core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ class GeneralLibraryPlayerBase implements GeneralLibraryCore {
GeneralLibraryPlayerControllerBase createPlayer({
required String player_id,
}) {
GeneralLibraryPlayerControllerBase generalLibraryPlayerControllerBaseDart = GeneralLibraryPlayerControllerBase(
GeneralLibraryPlayerControllerBase generalLibraryPlayerControllerBaseDart =
GeneralLibraryPlayerControllerBase(
player_id: player_id,
);
players.add(
Expand All @@ -84,8 +85,10 @@ class GeneralLibraryPlayerBase implements GeneralLibraryCore {
return generalLibraryPlayerControllerBaseDart;
}

GeneralLibraryPlayerControllerBase createPlayerWithoutAdd({required String player_id}) {
GeneralLibraryPlayerControllerBase generalLibraryPlayerControllerBaseDart = GeneralLibraryPlayerControllerBase(
GeneralLibraryPlayerControllerBase createPlayerWithoutAdd(
{required String player_id}) {
GeneralLibraryPlayerControllerBase generalLibraryPlayerControllerBaseDart =
GeneralLibraryPlayerControllerBase(
player_id: player_id,
);

Expand All @@ -107,7 +110,8 @@ class GeneralLibraryPlayerBase implements GeneralLibraryCore {
return null;
}

GeneralLibraryPlayerControllerBase? getPlayerForce({required String player_id}) {
GeneralLibraryPlayerControllerBase? getPlayerForce(
{required String player_id}) {
try {
return players.singleWhere((element) => element.player_id == player_id);
} catch (e) {}
Expand Down
8 changes: 4 additions & 4 deletions package/general/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'general'
description: |
General is Library for help you integrate any package commong used like audio, video, permission, location
gamepad, local auth fingerprint, biometric, camera, and many more only use one library
version: '0.0.38'
version: '0.0.39'
homepage: 'https://github.com/azkadev/general'
repository: 'https://github.com/azkadev/general'
issue_tracker: 'https://t.me/DEVELOPER_GLOBAL_PUBLIC'
Expand All @@ -22,10 +22,10 @@ executables:
environment:
sdk: '>=3.6.0 <4.0.0'
dependencies:
general_lib: '^0.0.54'
general_lib: '^0.0.56'
media_kit_fork: '^0.0.1'
path: '^1.9.0'
io_universe: '^0.0.3'
io_universe: '^0.0.4'
mason_logger: '^0.3.1'
html: 'any'
collection: '^1.19.0'
Expand All @@ -38,7 +38,7 @@ dependencies:
flutter_tts: '^4.2.0'
permission_handler: '^11.3.1'
speech_to_text: '^7.0.0'
general_lib_flutter: '^0.0.35'
general_lib_flutter: '^0.0.37'
media_kit_video_fork: '^0.0.1'
local_auth: '^2.3.0'
wakelock_plus: '^1.2.8'
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ funding:
environment:
sdk: '>=3.6.0 <4.0.0'
dependencies:
general_lib: '^0.0.54'
general_lib: '^0.0.56'
http: '^1.2.2'
mason_logger: '^0.3.1'
path: '^1.9.0'
Expand Down

0 comments on commit 942e4fd

Please sign in to comment.