layerx_generator 2.0.2
layerx_generator: ^2.0.2 copied to clipboard
A Flutter package that auto-generates a structured LayerX directory with GetX integration, MVVM pattern, and essential services for scalable projects.
Changelog #
All notable changes to the layerx_generator Flutter package are documented in this file.
This project follows Keep a Changelog and adheres to Semantic Versioning.
2.0.2 – 2025-08-24 #
- Added Notification Services module under
services/notifications. - Firebase Cloud Messaging (FCM) permission handling with proper authorization states.
- Local notification support using
flutter_local_notifications. - Foreground, background, and notification-tap handling hooks.
- Timezone-aware scheduled notifications using
timezone+flutter_timezone. - Device token retrieval utility for backend registration.
- Secure server key helper for FCM HTTP v1 (OAuth access token based).
- Generator now produces notification-ready infrastructure without forcing Firebase initialization, keeping projects compile-safe by default.
2.0.1 - 2025-06-03 #
Added #
- Connection pooling with HTTP/2 multiplexing, TLS resumption, and gzip/deflate for faster handshakes and reduced CPU/RAM usage.
- Concurrency limiter using token-bucket and isolates for JSON parsing, with adaptive concurrency to device cores to prevent socket exhaustion and maintain UI at 60FPS.
- Multi-thread offloading for heavy JSON/XML parsing, compression, and encryption in isolates for smoother main thread and no frame drops.
- Smarter retries with exponential backoff and jitter, tuned for flaky networks to improve recovery and user experience.
- CancelToken for each request, enabling socket abort to save sockets, avoid leaks, and support instant cancellation.
- Timeout control with per-call and global deadlines, auto-closing sockets to prevent hangs and ensure the app never freezes.
- Request deduplication with in-flight cache keyed by URL and params to remove duplicate API hits and save bandwidth.
- Multipart uploads using streams with chunked encoding in background isolate for faster uploads and lower memory usage.
- Centralized headers to auto-attach JWT, device info, and tracing headers for consistent authentication across endpoints.
- Categorized error domains (Timeout, Network, Server, Cancel) with structured logging for improved error handling.
- TLS optimization enforcing modern ciphers and enabling HTTP/2 by default for stronger security and faster requests.
- Adaptive caching supporting ETag, Last-Modified, conditional requests, and in-memory/disk cache for bandwidth savings and instant reloads.
- Monitoring hooks with built-in interceptors for latency, retries, payload size, and socket reuse for easy profiling and SLA tracking.
2.0.0 - 2025-05-27 #
Added #
- New modular architecture for enhanced customization of generated structures.
- Support for generating unit test templates for services and repositories.
- Added
ThemeGeneratorfor customizable theme configurations.
Changed #
- Breaking: Refactored core generator logic to support plugin-based extensions, requiring updates to existing usage.
- Upgraded dependencies to latest versions for improved performance and compatibility:
get: ^4.6.6flutter_screenutil: ^5.9.0http: ^1.1.0logger: ^2.0.0
- Improved error reporting with detailed diagnostics in
LoggerService.
Removed #
- Deprecated
directory_generatorlogic in favor of new modular approach.
1.1.12 - 2025-05-27 #
Changed #
- Removed automatic
pubspec.yamlmodification to prevent overwriting project configurations. - Users must now manually add required dependencies to
pubspec.yaml.
1.1.6 - 2025-04-29 #
Added #
LocationServicefor user location retrieval usinggeolocatorandpermission_handler.ApiResponseHandlerfor unified API response processing withGetXsupport.LoggerServicefor consistent and clean log management across all services.- New body models:
DriverSignupBodyModelGarageSignupBodyModelAddCarBodyModelBuyCarRequestModel
- Generic
ApiResponse<T>model for flexible and type-safe API data handling.
Changed #
- Enhanced
HttpsCallsfor advancedMultipartRequesthandling across:- Driver/Garage profile uploads
- Car create/update/delete operations
- Car buying requests
- Standardized repository implementation via
AuthRepositoryandDataRepositoryusingApiResponseHandler. - Renamed
ApiUrlstoAppUrlsfor naming consistency. - Upgraded dependencies:
geolocator: ^10.0.0permission_handler: ^10.0.0
- Improved generator logic with better documentation and scalability.
1.0.4 - 2025-03-15 #
Changed #
- Optimized retry logic in
HttpsCallsfor improved performance. - Enhanced error handling in
SharedPreferencesService. - Improved documentation clarity with practical usage examples.
- Minor fixes in
directory_generatorlogic.
1.0.3 - 2025-02-20 #
1.0.2 - 2025-01-10 #
1.0.1 - 2024-12-01 #
1.0.0 - 2024-11-15 #
Added #
- Stable release: Full MVVM-based directory structure generator for Flutter.
HttpsCallsfor handling API requests with retry and timeout support.SharedPreferencesServicefor local storage handling.- Integrated
GetXfor navigation and state management. flutter_screenutilfor adaptive screen responsiveness.- Core configuration files:
AppColors,AppRoutes,AppUrls, etc.
Changed #
- Refactored generator logic for improved modularity and code reuse.
- Enhanced error handling during directory and file creation.