Package & App Name Refactoring
Refactor package names, application ID, bundle ID, and app name across the entire project. Implemented in TypeScript — no Gradle build system required.
Command: kappmaker refactor
kappmaker refactor --app-id com.example.myapp --app-name MyApp
kappmaker refactor --app-id com.example.myapp --app-name MyApp --skip-package-rename
Run from the project root (containing MobileApp/) or from inside MobileApp/ directly.
Options
| Flag | Description | Required |
|---|---|---|
--app-id <id> | New applicationId / bundleId (e.g., com.example.myapp) | Yes |
--app-name <name> | New display name (e.g., MyApp) | Yes |
--old-app-id <id> | Current applicationId to replace | No (default: com.measify.kappmaker) |
--old-app-name <name> | Current app name to replace | No (default: KAppMakerAllModules) |
--skip-package-rename | Keep Kotlin package dirs, only update IDs and app name | No |
Full Refactor (default)
- Renames Kotlin package names in all source sets (commonMain, androidMain, iosMain, etc.)
- Moves package directories to match the new package structure
- Updates Gradle build files, Firebase configs, iOS project files, and GitHub workflows
- Updates the app display name in manifests, settings, and platform-specific files
Skip-Package-Rename Mode
Only updates applicationId / bundle ID, Firebase configs, iOS files, GitHub workflows, and app name — keeps Kotlin package directories intact.
Useful for creating multiple apps from one codebase without merge conflicts.