From 8f89dc1f0ea2bfe6c0545aff3bcf2ac83f88f393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EF=BF=B4=EF=BF=B4?= <> Date: Tue, 12 Nov 2024 18:21:58 +0700 Subject: [PATCH] update --- general_documentation/pubspec.lock | 70 +-- package/general/README.md | 421 ------------------ package/general/bin/generate_icon.dart | 13 +- .../bin/res/mipmap-hdpi/ic_launcher.png | Bin 544 -> 0 bytes .../bin/res/mipmap-mdpi/ic_launcher.png | Bin 442 -> 0 bytes .../bin/res/mipmap-xhdpi/ic_launcher.png | Bin 721 -> 0 bytes .../bin/res/mipmap-xxhdpi/ic_launcher.png | Bin 1031 -> 0 bytes .../bin/res/mipmap-xxxhdpi/ic_launcher.png | Bin 1443 -> 0 bytes package/general/bin/test.dart | 6 + package/general/lib/core/general_core.dart | 115 +++-- .../lib/flutter/general_flutter_core.dart | 196 ++------ .../flutter/local_auth/local_auth_core.dart | 3 +- package/sms_flutter/example/pubspec.lock | 64 ++- package/sms_flutter/pubspec.lock | 64 ++- package/sms_flutter/pubspec.yaml | 2 +- pubspec.lock | 30 +- 16 files changed, 258 insertions(+), 726 deletions(-) delete mode 100644 package/general/README.md delete mode 100644 package/general/bin/res/mipmap-hdpi/ic_launcher.png delete mode 100644 package/general/bin/res/mipmap-mdpi/ic_launcher.png delete mode 100644 package/general/bin/res/mipmap-xhdpi/ic_launcher.png delete mode 100644 package/general/bin/res/mipmap-xxhdpi/ic_launcher.png delete mode 100644 package/general/bin/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 package/general/bin/test.dart diff --git a/general_documentation/pubspec.lock b/general_documentation/pubspec.lock index 5ca6569..a5fd346 100644 --- a/general_documentation/pubspec.lock +++ b/general_documentation/pubspec.lock @@ -213,10 +213,10 @@ packages: dependency: transitive description: name: ffi - sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21" + sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6" url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.3" file: dependency: transitive description: @@ -266,10 +266,10 @@ packages: dependency: "direct dev" description: name: flutter_lints - sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1" + sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c" url: "https://pub.dev" source: hosted - version: "3.0.2" + version: "4.0.0" flutter_svg: dependency: transitive description: @@ -300,18 +300,18 @@ packages: dependency: "direct main" description: name: general_lib - sha256: "31a7b5d3ddecf4f2cbec40f63343dac1394a6d66354ec95f82c6e2aa70a4237d" + sha256: e3585e86131840a40aad7760b1288180063169139a3b28a6f6f5ae8c531fd8fc url: "https://pub.dev" source: hosted - version: "0.0.42" + version: "0.0.46" general_lib_flutter: dependency: "direct main" description: name: general_lib_flutter - sha256: "77db2260e6e7c6336442ce040e7f87b6175c945904b459dc864f63f5229bf791" + sha256: "387829e9db02cc66e67663a4e1a118a58815534366ed802e7ce4b8ac2cbb5736" url: "https://pub.dev" source: hosted - version: "0.0.22" + version: "0.0.27" glob: dependency: transitive description: @@ -340,10 +340,10 @@ packages: dependency: transitive description: name: http - sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938" + sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010 url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.2.2" http_parser: dependency: transitive description: @@ -388,34 +388,34 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" url: "https://pub.dev" source: hosted - version: "10.0.0" + version: "10.0.5" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "3.0.5" leak_tracker_testing: dependency: transitive description: name: leak_tracker_testing - sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "3.0.1" lints: dependency: transitive description: name: lints - sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 + sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235" url: "https://pub.dev" source: hosted - version: "3.0.0" + version: "4.0.0" logging: dependency: transitive description: @@ -460,10 +460,10 @@ packages: dependency: transitive description: name: mason_logger - sha256: "56c44e588e908ef0d1dbb593e1b4473b8ee5fb48fcc8d645c925ab6c8041ebdf" + sha256: b6d6d159927a4165f197ffc5993ea680dd41c59daf35bff23bae28390c09a36e url: "https://pub.dev" source: hosted - version: "0.2.15" + version: "0.3.1" matcher: dependency: transitive description: @@ -476,18 +476,18 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.15.0" mime: dependency: transitive description: @@ -588,10 +588,10 @@ packages: dependency: transitive description: name: server_universe - sha256: "4d10430c09670c82904b35ccfe3db24048b3b4dc8a0edc2961a88c25c832c4ed" + sha256: "2db056de83c8e257b8a5e2603241a34614655a5e8311cb03ceaea23fa5dd930a" url: "https://pub.dev" source: hosted - version: "0.0.17" + version: "0.0.22" sky_engine: dependency: transitive description: flutter @@ -641,10 +641,10 @@ packages: dependency: transitive description: name: telegram_client - sha256: "80ed440be0a52bd2ad740961ecf7059bf0b8e9d2028232f4e86fd65c71470098" + sha256: "4b5462916154a77bacc8203b4377eff7863be6d554aae5beb72f537ac2d51955" url: "https://pub.dev" source: hosted - version: "0.8.20" + version: "0.8.25" term_glyph: dependency: transitive description: @@ -657,10 +657,10 @@ packages: dependency: transitive description: name: test_api - sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" url: "https://pub.dev" source: hosted - version: "0.6.1" + version: "0.7.2" ts2dart: dependency: transitive description: @@ -801,10 +801,10 @@ packages: dependency: transitive description: name: vm_service - sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" url: "https://pub.dev" source: hosted - version: "13.0.0" + version: "14.2.5" watcher: dependency: transitive description: @@ -833,10 +833,10 @@ packages: dependency: transitive description: name: win32 - sha256: "0eaf06e3446824099858367950a813472af675116bf63f008a4c2a75ae13e9cb" + sha256: e5c39a90447e7c81cfec14b041cdbd0d0916bd9ebbc7fe02ab69568be703b9bd url: "https://pub.dev" source: hosted - version: "5.5.0" + version: "5.6.0" xml: dependency: transitive description: @@ -862,5 +862,5 @@ packages: source: hosted version: "2.0.0" sdks: - dart: ">=3.3.3 <4.0.0" + dart: ">=3.5.0 <4.0.0" flutter: ">=3.19.0" diff --git a/package/general/README.md b/package/general/README.md deleted file mode 100644 index 69c5cd4..0000000 --- a/package/general/README.md +++ /dev/null @@ -1,421 +0,0 @@ -# General - -General is a DART & Flutter library that allows you to access many things instantly - -[![Pub Version](https://img.shields.io/pub/v/general?label=pub.dev&labelColor=333940&logo=dart)](https://pub.dev/packages/general) - -## Creator and why this library was created - -[AZKADEV](https://github.com/azkadev) **is the original creator of this library**, **library** This was made so he could **speed up development** on **various platform & cli** all at once easily, because I sometimes make it **bot / userbot / server** which allow **deploy on LOCAL DEVICE / HP** So that **library** This is made so that you can **access features** which is in each **device** such as **(camera, fingerprint, sms, mms)** - - - -
- - - -
- - - - - - - - ---- - -## 🔗️ Links - -#### Docs / Tutorial / Example - -1. [GITHUB DOCS](/docs/) -2. [Youtube](https://youtube.com/@azkadev) - - - -## 🌟️ Interesting thing - -1. Cross Platform Notification -2. Cross Platform Playing / Main Media (Video & Audio) -3. Cross Platform Use Feature SMS / MMS / CONTACTS -4. Cross Platform Camera -5. Cross Platform Security (Fingerprint, Face Id) - -## How to use - -This library is only made for the dart language, I don't have any plans yet, maybe if I have more energy/time/money I will make my own code language to be more efficient - -- Dart - to use in darts you need typing - - CLI - ```bash - dart pub add general_dart - ``` - - IMPORT LIBRARY - ```dart - import "package:general/core/general.dart"; - ``` - - SCRIPT - ```dart - // ignore_for_file: non_constant_identifier_names - import "package:general/core/general.dart"; - void main(ListpQ2)*V*TdwjFOtHvV|;OsiDqHi=6%)o4b!)x$)%9pGTsE z-JL={-Ffv+T87W(Xpooq<`r*VzWQcgBN$$`u}f>-ZQI1BB8ykN*=e4rIsJx9>z}*o zo~|9I;xof diff --git a/package/general/bin/res/mipmap-xxxhdpi/ic_launcher.png b/package/general/bin/res/mipmap-xxxhdpi/ic_launcher.png deleted file mode 100644 index 4d6372eebdb28e45604e46eeda8dd24651419bc0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1443 zcmb`G{WsKk6vsdJTdFg%tJav9_E4vzrOaqkWF|A724Nly!y+?N9`Y V6wZ}5(X(D_N(?!*n3`|_r0Hc?=PQw&*vnU?QTFY zB_M sH|!j$PP;I}?dppoE_gA(4uc!jV&0!l7_;&p2^pxNo>PEcNJv za5_RT$o2Mf!<+r?&EbHH6nMoTsDOa;mN(wv8RNsHpG)`^ymG-S5By8 =l9iVXzN_eG%Xg2@Xeq76tTZ*dGh~Lo9vl;Zfs+W#BydUw zCkZ$o1LqWQO$FC9aKlLl*7x9^0q%0}$OMlp@Kk_jHXOjofdePND+j!A{q!8~Jn+s3 z?~~w@4?egS02}8NuulUA=L~QQfm;MzCGd)XhiftT;+zFO&JVyp2mBww?;QByS_1w! zrQlx%{^cMj0|Bo1FjwY@Q8?Hx0cIPF*@-ZRFpPc#bBw{5@tD(5%sClzIfl8WU~V#u zm5Q;_F!wa$BSpqhN>W@2De?TKWR*!ujY;Yylk_X5#~V!L*Gw~;$% 4Q8~Mad z@`-kG?yb$a9cHIApZDVZ^U6Xkp<*4rU82O7%}0jjHlK{id@?-wpN*fCHXyXh(bLt* zPc}H-x0e4E&nQ>y%B-(EL=9}RyC%MyX=upHuFhAk&MLbsF0LP-q`XnH78@fT+pKPW zu72MW`|?8h t^tz$iC}ZwLp4tB;Q49K!QCF3@!iB1qOI=?w z7In!}F~ij(18UYUjnbmC!qKhPo%24?8U1x{7o(+?^Zu0Hx81|FuS?bJ0jgBhEMzf< zCgUq7r2OCB(`XkKcN-TL>u5y#dD6D!)5W?`O5)V^>jb)P)GBdy%t$uUMpf$SNV31$ zb||OojAbvMP?T@$h_ZiFLFVHDmbyMhJF|-_)HX3%m=CDI+ID$0^C>kzxprBW)hw(v zr!Gmda);ICoQyhV_oP5+C%?jcG8v+D@9f?Dk*!BxY}dazmrT@64UrP3hlslANK)bq z$67n83eh}OeW&SV@HG95P|bjfqJ7gw$e+`Hxo!4cx`jdK1bJ>YDSpGKLPZ^1cv$ek zIB?0S<#tX?SJCLWdMd{-ME?$hc7A$zBOdIJ)4!KcAwb=VMov)nK;9z>x~rfT1>dS+ zZ6#`2v@`jgbqq)P22H)Tx2CpmM^o1$B+xT6`(v%5xJ(?j#>Q$+rx_R|7TzDZe{J6q zG1*EcU%tE?!kO%^M;3aM6JN*LAKUVb^xz8-Pxo#jR5(-KBeLJvA@-gxNHx0M-ZJLl z;#JwQoh~9V?`UVo#}{6ka@II>++D@%KqGpMdlQ}?9E*wFcf5(#XQnP$Dk5~%iX^>f z %$y;?M0BLp{O3a(-4A?ewryHrrD%cx#Q^%KY1H zNre$ve+vceSLZcNY4U(RBX&)oZn*Py()h)XkE?PL$!bNb{N5FVI2Y%LKEm%yvpyTP z(1P?z ~7YxD~Rf< (a@_y` diff --git a/package/general/bin/test.dart b/package/general/bin/test.dart new file mode 100644 index 0000000..ac54da2 --- /dev/null +++ b/package/general/bin/test.dart @@ -0,0 +1,6 @@ +import 'package:general/flutter/flutter.dart'; + +void main(List args) { + GeneralLibrary generalLibrary = GeneralLibrary(); + generalLibrary.media_player; +} diff --git a/package/general/lib/core/general_core.dart b/package/general/lib/core/general_core.dart index 88dec2e..1326fa6 100644 --- a/package/general/lib/core/general_core.dart +++ b/package/general/lib/core/general_core.dart @@ -43,80 +43,75 @@ import 'device/device.dart'; import 'core.dart'; import 'notification/notification_core.dart'; -class GeneralLibrary { - final bool is_use_static; - const GeneralLibrary({ - this.is_use_static = false, - }); +abstract class GeneralLibraryBaseCore { + dynamic get system_app => throw UnimplementedError(); + dynamic get app_background => throw UnimplementedError(); + dynamic get system_battery => throw UnimplementedError(); + dynamic get system_camera => throw UnimplementedError(); + dynamic get system_permission => throw UnimplementedError(); + dynamic get system_notification => throw UnimplementedError(); + dynamic get controller_gamepad => throw UnimplementedError(); + dynamic get text_to_speech => throw UnimplementedError(); + dynamic get system_device => throw UnimplementedError(); + dynamic get speech_to_text => throw UnimplementedError(); + dynamic get sim_card => throw UnimplementedError(); + dynamic get system_sms => throw UnimplementedError(); + dynamic get media_player => throw UnimplementedError(); + dynamic get local_auth => throw UnimplementedError(); +} - static GeneralLibraryAppBase app_static = GeneralLibraryAppBase(); +class GeneralLibrary implements GeneralLibraryBaseCore { + const GeneralLibrary(); - bool isUseStatic({required bool? isStatic}) { - return isStatic ?? is_use_static; - } + static GeneralLibraryAppBase systemApp = GeneralLibraryAppBase(); + static GeneralLibraryAppBackgroundBase appBackground = GeneralLibraryAppBackgroundBase(); + static GeneralLibraryBatteryBase systemBattery = GeneralLibraryBatteryBase(); + static GeneralLibraryCameraBase systemCamera = GeneralLibraryCameraBase(); + static final GeneralLibraryNotificationBase systemNotification = GeneralLibraryNotificationBase(); - GeneralLibraryAppBase app({bool? isStatic}) { - if (isUseStatic(isStatic: isStatic)) { - return app_static; - } - return GeneralLibraryAppBase(); - } + /// + static final GeneralLibrarySimCardBase simCard = GeneralLibrarySimCardBase(); - GeneralLibraryAppBackgroundBase app_background({bool? isStatic}) { - return GeneralLibraryAppBackgroundBase(); - } + /// + static final GeneralLibraryPlayerBase mediaPlayer = GeneralLibraryPlayerBase(); - GeneralLibraryBatteryBase battery({bool? isStatic}) { - return GeneralLibraryBatteryBase(); - } + /// - GeneralLibraryCameraBase camera({bool? isStatic}) { - return GeneralLibraryCameraBase(); - } + /// + static final GeneralLibraryDeviceBase systemDevice = GeneralLibraryDeviceBase(); - GeneralLibraryPermissionBase permission({bool? isStatic}) { - return GeneralLibraryPermissionBase(); - } + static final GeneralLibraryTextToSpeechBase textToSpeech = GeneralLibraryTextToSpeechBase(); - GeneralLibraryNotificationBase notification({bool? isStatic}) { - return GeneralLibraryNotificationBase(); - } + /// + static final GeneralLibraryGamePadBase controllerGamepad = GeneralLibraryGamePadBase(); - GeneralLibraryGamePadBase gamepad({bool? isStatic}) { - return GeneralLibraryGamePadBase(); - } + static GeneralLibraryPermissionBase systemPermission = GeneralLibraryPermissionBase(); - GeneralLibraryTextToSpeechBase text_to_speech({bool? isStatic}) { - return GeneralLibraryTextToSpeechBase(); - } + /// + static final GeneralLibrarySpeechToTextBase speechToText = GeneralLibrarySpeechToTextBase(); - GeneralLibraryDeviceBase device({bool? isStatic}) { - return GeneralLibraryDeviceBase(); - } + static final GeneralLibraryLocalAuthBase localAuth = GeneralLibraryLocalAuthBase(); - GeneralLibrarySpeechToTextBase speech_to_text({bool? isStatic}) { - return GeneralLibrarySpeechToTextBase(); - } + /// + static final GeneralLibrarySmsBase systemSms = GeneralLibrarySmsBase(); - GeneralLibrarySimCardBase sim_card({bool? isStatic}) { - return GeneralLibrarySimCardBase(); - } - - GeneralLibrarySmsBase sms({bool? isStatic}) { - return GeneralLibrarySmsBase(); - } + Future ensureInitialized() async {} - GeneralLibraryPlayerBase player({bool? isStatic}) { - return GeneralLibraryPlayerBase(); - } - - // GeneralLibraryLocationBase location { - // return GeneralLibraryLocationBase(); - // } - - GeneralLibraryLocalAuthBase local_auth({bool? isStatic}) { - return GeneralLibraryLocalAuthBase(); - } + @override + GeneralLibraryAppBase get system_app => systemApp; + GeneralLibraryAppBackgroundBase get app_background => appBackground; + GeneralLibraryBatteryBase get system_battery => systemBattery; + GeneralLibraryCameraBase get system_camera => systemCamera; + GeneralLibraryPermissionBase get system_permission => systemPermission; + GeneralLibraryNotificationBase get system_notification => systemNotification; + GeneralLibraryGamePadBase get controller_gamepad => controllerGamepad; + GeneralLibraryTextToSpeechBase get text_to_speech => textToSpeech; + GeneralLibraryDeviceBase get system_device => systemDevice; + GeneralLibrarySpeechToTextBase get speech_to_text => speechToText; + GeneralLibrarySimCardBase get sim_card => simCard; + GeneralLibrarySmsBase get system_sms => systemSms; + GeneralLibraryPlayerBase get media_player => mediaPlayer; + GeneralLibraryLocalAuthBase get local_auth => localAuth; void test() { print("oke"); diff --git a/package/general/lib/flutter/general_flutter_core.dart b/package/general/lib/flutter/general_flutter_core.dart index c6da3f2..11a9609 100644 --- a/package/general/lib/flutter/general_flutter_core.dart +++ b/package/general/lib/flutter/general_flutter_core.dart @@ -33,17 +33,15 @@ Bukan maksud kami menipu itu karena harga yang sudah di kalkulasi + bantuan tiba */ // ignore_for_file: non_constant_identifier_names - -import 'package:flutter/foundation.dart'; -import "package:general/core/core.dart"; + +import "package:general/core/core.dart"; import 'package:general/flutter/app/app.dart'; import 'package:general/flutter/app_background/app_background_core.dart'; import 'package:general/flutter/battery/battery.dart'; import 'package:general/flutter/camera/camera.dart'; import 'package:general/flutter/device/device.dart'; import 'package:general/flutter/gamepad/gamepad_core.dart'; -import 'package:general/flutter/local_auth/local_auth.dart'; -// import 'package:general/flutter/location/location.dart'; +import 'package:general/flutter/local_auth/local_auth.dart'; import 'package:general/flutter/notification/notification_core.dart'; import 'package:general/flutter/permission/permission.dart'; import 'package:general/flutter/sim_card/sim_card_core.dart'; @@ -53,185 +51,79 @@ import 'package:general/flutter/text_to_speech/text_to_speech_core.dart'; /// GeneralFlutter class GeneralFlutter extends GeneralLibrary { - GeneralFlutter({ - super.is_use_static, - }); - - @override - bool isUseStatic({required bool? isStatic}) { - return super.is_use_static; - } + const GeneralFlutter(); - // @override - // // TODO: implement is_use_static - // bool get is_use_static => super.is_use_static; + static GeneralLibraryLocalAuthBaseFlutter localAuth = GeneralLibraryLocalAuthBaseFlutter(); - @override - void test() { - if (kDebugMode) { - print("test flutter"); - } - } + static GeneralLibraryAppBaseFlutter systemApp = GeneralLibraryAppBaseFlutter(); - static GeneralLibraryAppBaseFlutter app_static = - GeneralLibraryAppBaseFlutter(); + static GeneralLibraryAppBackgroundBaseFlutter appBackground = GeneralLibraryAppBackgroundBaseFlutter(); - @override - GeneralLibraryAppBaseFlutter app({bool? isStatic}) { - if (isUseStatic(isStatic: isStatic)) { - return app_static; - } - return GeneralLibraryAppBaseFlutter(); - } + static GeneralLibraryCameraBaseFlutter systemCamera = GeneralLibraryCameraBaseFlutter(); - static GeneralLibraryAppBackgroundBaseFlutter app_background_static = - GeneralLibraryAppBackgroundBaseFlutter(); + static GeneralLibraryPermissionBaseFlutter systemPermission = GeneralLibraryPermissionBaseFlutter(); - @override - GeneralLibraryAppBackgroundBaseFlutter app_background({bool? isStatic}) { - if (isUseStatic(isStatic: isStatic)) { - return app_background_static; - } - return GeneralLibraryAppBackgroundBaseFlutter(); - } + static GeneralLibraryNotificationBaseFlutter systemNotification = GeneralLibraryNotificationBaseFlutter(); + static GeneralLibraryTextToSpeechBaseFlutter textToSpeech = GeneralLibraryTextToSpeechBaseFlutter(); - static GeneralLibraryCameraBaseFlutter camera_static = - GeneralLibraryCameraBaseFlutter(); + static GeneralLibraryBatteryBaseFlutter systembattery = GeneralLibraryBatteryBaseFlutter(); - @override - GeneralLibraryCameraBaseFlutter camera({bool? isStatic}) { - if (isUseStatic(isStatic: isStatic)) { - return camera_static; - } - return GeneralLibraryCameraBaseFlutter(); - } + static GeneralLibraryDeviceBaseFlutter systemDevice = GeneralLibraryDeviceBaseFlutter(); - static GeneralLibraryPermissionBaseFlutter permission_static = - GeneralLibraryPermissionBaseFlutter(); + static GeneralLibraryGamePadBaseFlutter controllerGamepad = GeneralLibraryGamePadBaseFlutter(); - @override - GeneralLibraryPermissionBaseFlutter permission({bool? isStatic}) { - if (isUseStatic(isStatic: isStatic)) { - return permission_static; - } - return GeneralLibraryPermissionBaseFlutter(); - } + static GeneralLibrarySpeechToTextBaseFlutter speechToText = GeneralLibrarySpeechToTextBaseFlutter(); + + static GeneralLibrarySimCardBaseFlutter simCard = GeneralLibrarySimCardBaseFlutter(); - static GeneralLibraryNotificationBaseFlutter notification_static = - GeneralLibraryNotificationBaseFlutter(); + static GeneralLibrarySmsBaseFlutter systemSms = GeneralLibrarySmsBaseFlutter(); @override - GeneralLibraryNotificationBaseFlutter notification({bool? isStatic}) { - if (isUseStatic(isStatic: isStatic)) { - return notification_static; - } - - return GeneralLibraryNotificationBaseFlutter(); - } - - static GeneralLibraryBatteryBaseFlutter battery_static = - GeneralLibraryBatteryBaseFlutter(); + GeneralLibraryAppBackgroundBaseFlutter get app_background => appBackground; @override - GeneralLibraryBatteryBaseFlutter battery({bool? isStatic}) { - if (isUseStatic(isStatic: isStatic)) { - return battery_static; - } - return GeneralLibraryBatteryBaseFlutter(); - } - - static GeneralLibraryTextToSpeechBaseFlutter text_to_speech_static = - GeneralLibraryTextToSpeechBaseFlutter(); + GeneralLibraryGamePadBaseFlutter get controller_gamepad => controllerGamepad; @override - GeneralLibraryTextToSpeechBaseFlutter text_to_speech({bool? isStatic}) { - if (isUseStatic(isStatic: isStatic)) { - return text_to_speech_static; - } - return GeneralLibraryTextToSpeechBaseFlutter(); - } + GeneralLibraryLocalAuthBaseFlutter get local_auth => localAuth; - static GeneralLibraryDeviceBaseFlutter device_static = - GeneralLibraryDeviceBaseFlutter(); + // @override + // GeneralLibraryPlayerBase get media_player => super.media_player; @override - GeneralLibraryDeviceBaseFlutter device({ - bool? isStatic, - }) { - if (isUseStatic(isStatic: isStatic)) { - return device_static; - } - - return GeneralLibraryDeviceBaseFlutter(); - } - - static GeneralLibraryGamePadBaseFlutter gamepad_static = - GeneralLibraryGamePadBaseFlutter(); + GeneralLibrarySimCardBaseFlutter get sim_card => simCard; @override - GeneralLibraryGamePadBaseFlutter gamepad({bool? isStatic}) { - if (isUseStatic(isStatic: isStatic)) { - return gamepad_static; - } - return GeneralLibraryGamePadBaseFlutter(); - } - - static GeneralLibrarySpeechToTextBaseFlutter speech_to_text_static = - GeneralLibrarySpeechToTextBaseFlutter(); + // TODO: implement speech_to_text + GeneralLibrarySpeechToTextBaseFlutter get speech_to_text => speechToText; @override - GeneralLibrarySpeechToTextBaseFlutter speech_to_text({bool? isStatic}) { - if (isUseStatic(isStatic: isStatic)) { - return speech_to_text_static; - } - return GeneralLibrarySpeechToTextBaseFlutter(); - } - - static GeneralLibrarySimCardBaseFlutter sim_card_static = - GeneralLibrarySimCardBaseFlutter(); + GeneralLibraryAppBaseFlutter get system_app => systemApp; @override - GeneralLibrarySimCardBaseFlutter sim_card({bool? isStatic}) { - if (isUseStatic(isStatic: isStatic)) { - return sim_card_static; - } - return GeneralLibrarySimCardBaseFlutter(); - } - - static GeneralLibrarySmsBaseFlutter sms_static = - GeneralLibrarySmsBaseFlutter(); - @override - GeneralLibrarySmsBaseFlutter sms({bool? isStatic}) { - if (isUseStatic(isStatic: isStatic)) { - return sms_static; - } - return GeneralLibrarySmsBaseFlutter(); - } + GeneralLibraryBatteryBaseFlutter get system_battery => systembattery; - static GeneralLibraryLocalAuthBaseFlutter local_auth_static = - GeneralLibraryLocalAuthBaseFlutter(); + @override + GeneralLibraryCameraBaseFlutter get system_camera => systemCamera; @override - GeneralLibraryLocalAuthBaseFlutter local_auth({bool? isStatic}) { - if (isUseStatic(isStatic: isStatic)) { - return local_auth_static; - } - return GeneralLibraryLocalAuthBaseFlutter(); - } + // TODO: implement system_device + GeneralLibraryDeviceBaseFlutter get system_device => systemDevice; - // @override - // GeneralLibraryLocationBaseFlutter location { - // return GeneralLibraryLocationBaseFlutter(); - // } + @override + // TODO: implement system_notification + GeneralLibraryNotificationBaseFlutter get system_notification => systemNotification; - static GeneralLibraryPlayerBase player_static = GeneralLibraryPlayerBase(); + @override + // TODO: implement system_permission + GeneralLibraryPermissionBaseFlutter get system_permission => systemPermission; @override - GeneralLibraryPlayerBase player({bool? isStatic}) { - if (isUseStatic(isStatic: isStatic)) { - return player_static; - } + // TODO: implement system_sms + GeneralLibrarySmsBaseFlutter get system_sms => systemSms; - return GeneralLibraryPlayerBase(); - } + @override + // TODO: implement text_to_speech + GeneralLibraryTextToSpeechBaseFlutter get text_to_speech => textToSpeech; + } diff --git a/package/general/lib/flutter/local_auth/local_auth_core.dart b/package/general/lib/flutter/local_auth/local_auth_core.dart index d714a4b..b27b376 100644 --- a/package/general/lib/flutter/local_auth/local_auth_core.dart +++ b/package/general/lib/flutter/local_auth/local_auth_core.dart @@ -38,8 +38,7 @@ import 'package:general/core/core.dart'; import 'package:general_lib/general_lib.dart'; import 'package:local_auth/local_auth.dart'; -class GeneralLibraryLocalAuthBaseFlutter - implements GeneralLibraryLocalAuthBase { +class GeneralLibraryLocalAuthBaseFlutter implements GeneralLibraryLocalAuthBase { GeneralLibraryLocalAuthBaseFlutter(); final LocalAuthentication localAuthentication = LocalAuthentication(); diff --git a/package/sms_flutter/example/pubspec.lock b/package/sms_flutter/example/pubspec.lock index 5e3d662..eeb5b5b 100644 --- a/package/sms_flutter/example/pubspec.lock +++ b/package/sms_flutter/example/pubspec.lock @@ -41,6 +41,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.18.0" + convert: + dependency: transitive + description: + name: convert + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" + source: hosted + version: "3.1.1" cupertino_icons: dependency: "direct main" description: @@ -66,10 +74,10 @@ packages: dependency: "direct dev" description: name: flutter_lints - sha256: b543301ad291598523947dc534aaddc5aaad597b709d2426d3a0e0d44c5cb493 + sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "4.0.0" flutter_test: dependency: "direct dev" description: flutter @@ -80,22 +88,30 @@ packages: description: flutter source: sdk version: "0.0.0" + js: + dependency: transitive + description: + name: js + sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf + url: "https://pub.dev" + source: hosted + version: "0.7.1" leak_tracker: dependency: transitive description: name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" + sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" url: "https://pub.dev" source: hosted - version: "10.0.4" + version: "10.0.5" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" + sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.0.5" leak_tracker_testing: dependency: transitive description: @@ -108,10 +124,10 @@ packages: dependency: transitive description: name: lints - sha256: a2c3d198cb5ea2e179926622d433331d8b58374ab8f29cdda6e863bd62fd369c + sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235" url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "4.0.0" matcher: dependency: transitive description: @@ -124,18 +140,18 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.12.0" + version: "1.15.0" path: dependency: transitive description: @@ -152,6 +168,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.8" + pointycastle: + dependency: "direct overridden" + description: + name: pointycastle + sha256: "70fe966348fe08c34bf929582f1d8247d9d9408130723206472b4687227e4333" + url: "https://pub.dev" + source: hosted + version: "3.8.0" sky_engine: dependency: transitive description: flutter @@ -208,10 +232,18 @@ packages: dependency: transitive description: name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" + url: "https://pub.dev" + source: hosted + version: "0.7.2" + typed_data: + dependency: transitive + description: + name: typed_data + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "1.3.2" url_launcher: dependency: transitive description: @@ -288,10 +320,10 @@ packages: dependency: transitive description: name: vm_service - sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" url: "https://pub.dev" source: hosted - version: "14.2.1" + version: "14.2.5" web: dependency: transitive description: diff --git a/package/sms_flutter/pubspec.lock b/package/sms_flutter/pubspec.lock index 7a75fc5..84ff906 100644 --- a/package/sms_flutter/pubspec.lock +++ b/package/sms_flutter/pubspec.lock @@ -41,6 +41,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.18.0" + convert: + dependency: transitive + description: + name: convert + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" + source: hosted + version: "3.1.1" fake_async: dependency: transitive description: @@ -58,10 +66,10 @@ packages: dependency: "direct dev" description: name: flutter_lints - sha256: b543301ad291598523947dc534aaddc5aaad597b709d2426d3a0e0d44c5cb493 + sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "4.0.0" flutter_test: dependency: "direct dev" description: flutter @@ -72,22 +80,30 @@ packages: description: flutter source: sdk version: "0.0.0" + js: + dependency: transitive + description: + name: js + sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf + url: "https://pub.dev" + source: hosted + version: "0.7.1" leak_tracker: dependency: transitive description: name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" + sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" url: "https://pub.dev" source: hosted - version: "10.0.4" + version: "10.0.5" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" + sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.0.5" leak_tracker_testing: dependency: transitive description: @@ -100,10 +116,10 @@ packages: dependency: transitive description: name: lints - sha256: a2c3d198cb5ea2e179926622d433331d8b58374ab8f29cdda6e863bd62fd369c + sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235" url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "4.0.0" matcher: dependency: transitive description: @@ -116,18 +132,18 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.12.0" + version: "1.15.0" path: dependency: transitive description: @@ -144,6 +160,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.8" + pointycastle: + dependency: "direct overridden" + description: + name: pointycastle + sha256: "70fe966348fe08c34bf929582f1d8247d9d9408130723206472b4687227e4333" + url: "https://pub.dev" + source: hosted + version: "3.8.0" sky_engine: dependency: transitive description: flutter @@ -193,10 +217,18 @@ packages: dependency: transitive description: name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" + url: "https://pub.dev" + source: hosted + version: "0.7.2" + typed_data: + dependency: transitive + description: + name: typed_data + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "1.3.2" url_launcher: dependency: "direct main" description: @@ -273,10 +305,10 @@ packages: dependency: transitive description: name: vm_service - sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" url: "https://pub.dev" source: hosted - version: "14.2.1" + version: "14.2.5" web: dependency: transitive description: diff --git a/package/sms_flutter/pubspec.yaml b/package/sms_flutter/pubspec.yaml index 8730793..1eab1f4 100644 --- a/package/sms_flutter/pubspec.yaml +++ b/package/sms_flutter/pubspec.yaml @@ -10,7 +10,7 @@ dependencies: flutter_web_plugins: sdk: 'flutter' plugin_platform_interface: '^2.1.8' - url_launcher: '^6.2.5' + url_launcher: '^6.3.1' dev_dependencies: flutter_test: sdk: 'flutter' diff --git a/pubspec.lock b/pubspec.lock index a8c05d1..1b4ef7b 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -17,6 +17,14 @@ packages: url: "https://pub.dev" source: hosted version: "6.4.1" + archive: + dependency: transitive + description: + name: archive + sha256: cb6a278ef2dbb298455e1a713bda08524a175630ec643a242c399c932a0a1f7d + url: "https://pub.dev" + source: hosted + version: "3.6.1" args: dependency: transitive description: @@ -101,10 +109,10 @@ packages: dependency: transitive description: name: ffi - sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21" + sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6" url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.3" file: dependency: transitive description: @@ -125,10 +133,10 @@ packages: dependency: "direct main" description: name: general_lib - sha256: f968f3bee797cbdd3b3282b1842e3674f7a0e07cad6326996982d1b1bd56f5ac + sha256: e3585e86131840a40aad7760b1288180063169139a3b28a6f6f5ae8c531fd8fc url: "https://pub.dev" source: hosted - version: "0.0.43" + version: "0.0.46" glob: dependency: transitive description: @@ -181,10 +189,10 @@ packages: dependency: "direct dev" description: name: lints - sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" + sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235" url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "4.0.0" logging: dependency: transitive description: @@ -197,10 +205,10 @@ packages: dependency: "direct main" description: name: mason_logger - sha256: "56c44e588e908ef0d1dbb593e1b4473b8ee5fb48fcc8d645c925ab6c8041ebdf" + sha256: b6d6d159927a4165f197ffc5993ea680dd41c59daf35bff23bae28390c09a36e url: "https://pub.dev" source: hosted - version: "0.2.15" + version: "0.3.1" matcher: dependency: transitive description: @@ -445,10 +453,10 @@ packages: dependency: transitive description: name: win32 - sha256: "0eaf06e3446824099858367950a813472af675116bf63f008a4c2a75ae13e9cb" + sha256: e5c39a90447e7c81cfec14b041cdbd0d0916bd9ebbc7fe02ab69568be703b9bd url: "https://pub.dev" source: hosted - version: "5.5.0" + version: "5.6.0" yaml: dependency: "direct main" description: @@ -466,4 +474,4 @@ packages: source: hosted version: "2.0.0" sdks: - dart: ">=3.3.3 <4.0.0" + dart: ">=3.5.0 <4.0.0"