about (null-safety)
it helps you to change your flutter project’s appname and bundleid for different platforms, currently only available
for ios, android, macos and web
supported platforms
you can change the bundleid and appname in following folders
- ios
- android
- macos
- linux
- web
installation
pub global activate rename
default usage
if you dont pass -t or –target parameter it will try to rename all available platform project folders inside
flutter project.
run this command inside your flutter project root.
pub global run rename --bundleid com.onatcipli.networkupp
pub global run rename --appname "network upp"
custom usage
if you want to run commands directly (without using pub global run
)
ensure
you add system cache bin directory to your path
rename --appname yourappname -t ios
or
pub global run rename --appname yourappname --target macos
to target a specific platform use the “–target” option. e.g.
pub global run rename --bundleid com.example.android.app --target android
parameters
-t, --target set which platforms to target.
[android, ios, macos, linux]
-a, --appname sets the name of the app.
-b, --bundleid sets the bundle id.
-l, --launchericon sets the launcher icon. (deprecated currently)
-h, --help shows help.
next coming
- getting the current app names and bundleids
- changing launchericon fix
- null safety
Comments are closed.