Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
committed Feb 10, 2025
1 parent db5f4fe commit 8b75516
Show file tree
Hide file tree
Showing 6 changed files with 121 additions and 48 deletions.
2 changes: 0 additions & 2 deletions package/general/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ dependencies:
flutter:
sdk: 'flutter'
cupertino_icons: '^1.0.2'
general:
path: '../'
media_kit_video: '^1.2.5'
local_auth: '^2.2.0'
telegram_client: '^0.8.37'
Expand Down
35 changes: 35 additions & 0 deletions package/general/lib/core/audio/audio.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/* <!-- START LICENSE -->
This Software / Program / Source Code Created By Developer From Company GLOBAL CORPORATION
Social Media:
- Youtube: https://youtube.com/@Global_Corporation
- Github: https://github.com/globalcorporation
- TELEGRAM: https://t.me/GLOBAL_CORP_ORG_BOT
All code script in here created 100% original without copy / steal from other code if we copy we add description source at from top code
If you wan't edit you must add credit me (don't change)
If this Software / Program / Source Code has you
Jika Program ini milik anda dari hasil beli jasa developer di (Global Corporation / apapun itu dari turunan itu jika ada kesalahan / bug / ingin update segera lapor ke sub)
Misal anda beli Beli source code di Slebew CORPORATION anda lapor dahulu di slebew jangan lapor di GLOBAL CORPORATION!
Jika ada kendala program ini (Pastikan sebelum deal project tidak ada negosiasi harga)
Karena jika ada negosiasi harga kemungkinan
1. Software Ada yang di kurangin
2. Informasi tidak lengkap
3. Bantuan Tidak Bisa remote / full time (Ada jeda)
Sebelum program ini sampai ke pembeli developer kami sudah melakukan testing
jadi sebelum nego kami sudah melakukan berbagai konsekuensi jika nego tidak sesuai ?
Bukan maksud kami menipu itu karena harga yang sudah di kalkulasi + bantuan tiba tiba di potong akhirnya bantuan / software kadang tidak lengkap
<!-- END LICENSE --> */
export 'audio_core.dart';
49 changes: 49 additions & 0 deletions package/general/lib/core/audio/audio_core.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/* <!-- START LICENSE -->
This Software / Program / Source Code Created By Developer From Company GLOBAL CORPORATION
Social Media:
- Youtube: https://youtube.com/@Global_Corporation
- Github: https://github.com/globalcorporation
- TELEGRAM: https://t.me/GLOBAL_CORP_ORG_BOT
All code script in here created 100% original without copy / steal from other code if we copy we add description source at from top code
If you wan't edit you must add credit me (don't change)
If this Software / Program / Source Code has you
Jika Program ini milik anda dari hasil beli jasa developer di (Global Corporation / apapun itu dari turunan itu jika ada kesalahan / bug / ingin update segera lapor ke sub)
Misal anda beli Beli source code di Slebew CORPORATION anda lapor dahulu di slebew jangan lapor di GLOBAL CORPORATION!
Jika ada kendala program ini (Pastikan sebelum deal project tidak ada negosiasi harga)
Karena jika ada negosiasi harga kemungkinan
1. Software Ada yang di kurangin
2. Informasi tidak lengkap
3. Bantuan Tidak Bisa remote / full time (Ada jeda)
Sebelum program ini sampai ke pembeli developer kami sudah melakukan testing
jadi sebelum nego kami sudah melakukan berbagai konsekuensi jika nego tidak sesuai ?
Bukan maksud kami menipu itu karena harga yang sudah di kalkulasi + bantuan tiba tiba di potong akhirnya bantuan / software kadang tidak lengkap
<!-- END LICENSE --> */
// ignore_for_file: non_constant_identifier_names


import 'package:general/core/general_library.dart';
import 'package:general_audio/dart/general_audio/general_audio.dart';

/// UncompleteDocumentation
class GeneralLibraryAudioBase implements GeneralLibraryCore {
final GeneralAudio generalAudio = GeneralAudio();

@override
bool isSupport() {
return generalAudio.isDeviceSupport();
}
}
40 changes: 22 additions & 18 deletions package/general/lib/core/general_core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Bukan maksud kami menipu itu karena harga yang sudah di kalkulasi + bantuan tiba

// import 'dart:html';

import 'package:general/core/audio/audio_core.dart';

import 'app_background/app_background_core.dart';
import 'battery/battery.dart';
import 'camera/camera.dart';
Expand All @@ -51,6 +53,9 @@ abstract class GeneralLibraryBaseCore {
/// UncompleteDocumentation
dynamic get app_background => throw UnimplementedError();

/// UncompleteDocumentation
dynamic get system_audio => throw UnimplementedError();

/// UncompleteDocumentation
dynamic get system_battery => throw UnimplementedError();

Expand Down Expand Up @@ -99,8 +104,9 @@ class GeneralLibrary implements GeneralLibraryBaseCore {
static GeneralLibraryAppBase systemApp = GeneralLibraryAppBase();

/// UncompleteDocumentation
static GeneralLibraryAppBackgroundBase appBackground =
GeneralLibraryAppBackgroundBase();
static GeneralLibraryAppBackgroundBase appBackground = GeneralLibraryAppBackgroundBase();

static GeneralLibraryAudioBase systemAudio = GeneralLibraryAudioBase();

/// UncompleteDocumentation
static GeneralLibraryBatteryBase systemBattery = GeneralLibraryBatteryBase();
Expand All @@ -109,41 +115,33 @@ class GeneralLibrary implements GeneralLibraryBaseCore {
static GeneralLibraryCameraBase systemCamera = GeneralLibraryCameraBase();

/// UncompleteDocumentation
static final GeneralLibraryNotificationBase systemNotification =
GeneralLibraryNotificationBase();
static final GeneralLibraryNotificationBase systemNotification = GeneralLibraryNotificationBase();

///
static final GeneralLibrarySimCardBase simCard = GeneralLibrarySimCardBase();

///
static final GeneralLibraryPlayerBase mediaPlayer =
GeneralLibraryPlayerBase();
static final GeneralLibraryPlayerBase mediaPlayer = GeneralLibraryPlayerBase();

///
///
static final GeneralLibraryDeviceBase systemDevice =
GeneralLibraryDeviceBase();
static final GeneralLibraryDeviceBase systemDevice = GeneralLibraryDeviceBase();

/// UncompleteDocumentation
static final GeneralLibraryTextToSpeechBase textToSpeech =
GeneralLibraryTextToSpeechBase();
static final GeneralLibraryTextToSpeechBase textToSpeech = GeneralLibraryTextToSpeechBase();

///
static final GeneralLibraryGamePadBase controllerGamepad =
GeneralLibraryGamePadBase();
static final GeneralLibraryGamePadBase controllerGamepad = GeneralLibraryGamePadBase();

/// UncompleteDocumentation
static GeneralLibraryPermissionBase systemPermission =
GeneralLibraryPermissionBase();
static GeneralLibraryPermissionBase systemPermission = GeneralLibraryPermissionBase();

///
static final GeneralLibrarySpeechToTextBase speechToText =
GeneralLibrarySpeechToTextBase();
static final GeneralLibrarySpeechToTextBase speechToText = GeneralLibrarySpeechToTextBase();

/// UncompleteDocumentation
static final GeneralLibraryLocalAuthBase localAuth =
GeneralLibraryLocalAuthBase();
static final GeneralLibraryLocalAuthBase localAuth = GeneralLibraryLocalAuthBase();

///
static final GeneralLibrarySmsBase systemSms = GeneralLibrarySmsBase();
Expand All @@ -153,8 +151,10 @@ class GeneralLibrary implements GeneralLibraryBaseCore {

@override
GeneralLibraryAppBase get system_app => systemApp;

@override
GeneralLibraryAppBackgroundBase get app_background => appBackground;

@override
GeneralLibraryBatteryBase get system_battery => systemBattery;
@override
Expand Down Expand Up @@ -184,4 +184,8 @@ class GeneralLibrary implements GeneralLibraryBaseCore {
void test() {
print("oke");
}

@override
// TODO: implement audio
GeneralLibraryAudioBase get system_audio => systemAudio;
}
42 changes: 14 additions & 28 deletions package/general/lib/flutter/general_flutter_core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,57 +55,44 @@ class GeneralFlutter extends GeneralLibrary {
const GeneralFlutter();

/// UncompleteDocumentation
static GeneralLibraryLocalAuthBaseFlutter localAuth =
GeneralLibraryLocalAuthBaseFlutter();
static GeneralLibraryLocalAuthBaseFlutter localAuth = GeneralLibraryLocalAuthBaseFlutter();

/// UncompleteDocumentation
static GeneralLibraryAppBaseFlutter systemApp =
GeneralLibraryAppBaseFlutter();
static GeneralLibraryAppBaseFlutter systemApp = GeneralLibraryAppBaseFlutter();

/// UncompleteDocumentation
static GeneralLibraryAppBackgroundBaseFlutter appBackground =
GeneralLibraryAppBackgroundBaseFlutter();
static GeneralLibraryAppBackgroundBaseFlutter appBackground = GeneralLibraryAppBackgroundBaseFlutter();

/// UncompleteDocumentation
static GeneralLibraryCameraBaseFlutter systemCamera =
GeneralLibraryCameraBaseFlutter();
static GeneralLibraryCameraBaseFlutter systemCamera = GeneralLibraryCameraBaseFlutter();

/// UncompleteDocumentation
static GeneralLibraryPermissionBaseFlutter systemPermission =
GeneralLibraryPermissionBaseFlutter();
static GeneralLibraryPermissionBaseFlutter systemPermission = GeneralLibraryPermissionBaseFlutter();

/// UncompleteDocumentation
static GeneralLibraryNotificationBaseFlutter systemNotification =
GeneralLibraryNotificationBaseFlutter();
static GeneralLibraryNotificationBaseFlutter systemNotification = GeneralLibraryNotificationBaseFlutter();

/// UncompleteDocumentation
static GeneralLibraryTextToSpeechBaseFlutter textToSpeech =
GeneralLibraryTextToSpeechBaseFlutter();
static GeneralLibraryTextToSpeechBaseFlutter textToSpeech = GeneralLibraryTextToSpeechBaseFlutter();

/// UncompleteDocumentation
static GeneralLibraryBatteryBaseFlutter systembattery =
GeneralLibraryBatteryBaseFlutter();
static GeneralLibraryBatteryBaseFlutter systembattery = GeneralLibraryBatteryBaseFlutter();

/// UncompleteDocumentation
static GeneralLibraryDeviceBaseFlutter systemDevice =
GeneralLibraryDeviceBaseFlutter();
static GeneralLibraryDeviceBaseFlutter systemDevice = GeneralLibraryDeviceBaseFlutter();

/// UncompleteDocumentation
static GeneralLibraryGamePadBaseFlutter controllerGamepad =
GeneralLibraryGamePadBaseFlutter();
static GeneralLibraryGamePadBaseFlutter controllerGamepad = GeneralLibraryGamePadBaseFlutter();

/// UncompleteDocumentation
static GeneralLibrarySpeechToTextBaseFlutter speechToText =
GeneralLibrarySpeechToTextBaseFlutter();
static GeneralLibrarySpeechToTextBaseFlutter speechToText = GeneralLibrarySpeechToTextBaseFlutter();

/// UncompleteDocumentation
static GeneralLibrarySimCardBaseFlutter simCard =
GeneralLibrarySimCardBaseFlutter();
static GeneralLibrarySimCardBaseFlutter simCard = GeneralLibrarySimCardBaseFlutter();

/// UncompleteDocumentation
static GeneralLibrarySmsBaseFlutter systemSms =
GeneralLibrarySmsBaseFlutter();
static GeneralLibrarySmsBaseFlutter systemSms = GeneralLibrarySmsBaseFlutter();

@override
GeneralLibraryAppBackgroundBaseFlutter get app_background => appBackground;
Expand Down Expand Up @@ -141,8 +128,7 @@ class GeneralFlutter extends GeneralLibrary {

@override
// TODO: implement system_notification
GeneralLibraryNotificationBaseFlutter get system_notification =>
systemNotification;
GeneralLibraryNotificationBaseFlutter get system_notification => systemNotification;

@override
// TODO: implement system_permission
Expand Down
1 change: 1 addition & 0 deletions package/general/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ dependencies:
camera: '^0.11.0+2'
camera_windows: '^0.2.6+1'
image: '^4.3.0'
general_audio: '^0.0.1'
dev_dependencies:
lints: '^5.0.0'
test: 'any'
Expand Down

0 comments on commit 8b75516

Please sign in to comment.