gradle_properties
1.0.2, released 3 years ago by birju.dev
Work with Gradle properties files easily in Dart.
What it does
Allows loading, reading, modifying, and saving Gradle properties files through a map-like interface and file extensions.
AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to read or update gradle.properties files programmatically in a Dart/Flutter project.
- You want to manipulate key-value pairs in standard Java properties format files.
Skip it when
- You are dealing with complex non-property file formats.
Strengths
- Provides a simple map-like interface for properties.
- Supports saving changes back to the same or a different file.
- Includes helpful file extension methods.
Weaknesses
- Very niche use case limited to Gradle/Java properties files.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
final properties = await GradleProperties.fromFile(File('gradle.properties'));
properties['first_name'] = 'Birju';
properties.save();Alternatives
Packages that do the same job and could replace gradle_properties.
- file_selector_macos
macOS implementation of the file_selector plugin
82Compare - flutter_downloader
Plugin to create and manage background download tasks on Android and iOS.
80Compare - path_provider_android
Android implementation of the path_provider plugin for finding commonly used locations.
79Compare - path_provider_foundation
iOS/macOS implementation of path_provider using direct FFI calls
78Compare