4. Changing the Package Name & Bundle ID
The package name (Android) and bundle identifier (iOS) uniquely identify an app on the stores. Use
reverse-domain form, and give each of the three apps its own identifier — they
are published as three separate listings and registered as three separate apps in Firebase:
com.yourcompany.foodie ← User App com.yourcompany.foodie.restaurant ← Restaurant App com.yourcompany.foodie.driver ← Delivery Man / Driver App
Change the identifier before registering the app in Firebase, because the Firebase
config files are tied to it. The steps below apply to one app — repeat them in each of the three
project folders.
4.1. Change the Android package name
On current Flutter versions the identifier lives in android/app/build.gradle, not in the manifest. Open that file and change both values:
android {
namespace = "com.yourcompany.foodie"
...
defaultConfig {
applicationId = "com.yourcompany.foodie"
...
}
}namespace— the package the generatedRclass andMainActivitybelong to.applicationId— the identifier Google Play and Firebase key off. This is the one that must match yourgoogle-services.json.- On older projects the same value also appears as the
packageattribute of the<manifest>tag inandroid/app/src/main/AndroidManifest.xml(and in thedebug/profilevariants) — update it there too if your copy still has it.

4.2. Update the Android source-code references
Rename the folders under android/app/src/main/kotlin/ (or .../java/) to match the new package, and update the package declaration at the top of MainActivity.kt / MainActivity.java.

4.3. Change the iOS bundle identifier
- Open
ios/Runner.xcworkspacein Xcode. - Select the Runner project → Runner target → General.
- Set Bundle Identifier to your new identifier.

Tip:
After renaming, run flutter clean followed by flutter pub get, and download fresh google-services.json / GoogleService-Info.plist files for the new identifiers (see Firebase Setup (Mobile)).
