package_rename
1.10.1, released 12 months ago by outdatedguy.rocks
Tool to rename package identifiers across all platform files in a Flutter project
What it does
Updates package names, app names, bundle identifiers, and related fields in Android, iOS, Linux, macOS, Web, and Windows files. It scans and replaces 37 fields across 19 files to make a project production‑ready.
AI-written summary of version 1.10.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to change the package name or bundle identifier for a new release
- You want to rename the app name or organization across all platforms
- You are migrating a project to a new namespace or company
Skip it when
- You only need to change a single file manually
- You are working on a non‑Flutter project
Strengths
- Fast, handles many files automatically
- Supports all major platforms
- Configurable via a single YAML file or pubspec section
- No code generation required
Weaknesses
- Only a dev dependency, not usable at runtime
- May not cover custom or non‑standard project templates
- Requires manual configuration of fields
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Add to dev_dependencies in pubspec.yaml and run `dart run package_rename` (or with --flavour or --path). No build_runner or permissions needed.
```yaml
# pubspec.yaml
dev_dependencies:
package_rename: ^1.10.1
# package_rename_config:
# android:
# app_name: "My App"
# package_name: "com.example.myapp"
# ios:
# app_name: "My App"
# bundle_name: "My App"
# package_name: "com.example.myapp"
```
```bash
dart run package_rename
```Alternatives
Packages that do the same job and could replace package_rename.
- surf_logger
Production-level logger utility for Dart and Flutter with strategy-based configuration.
50Compare
Works with
Packages commonly used together with package_rename: ones it builds on, ones built on it, and its own family.
- yamlpackage_rename depends on itA Dart library for parsing YAML documents into Dart data structures.
- htmlpackage_rename depends on itA Dart implementation of an HTML5 parser for strings and bytes.
- argspackage_rename depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- loggerpackage_rename depends on itAn extensible logger for printing formatted logs with levels, custom filters, and printers.