0

I created a compose multiplatform project using Jetbrains template with package name as com.myapplication and app name as My Application by default. Now i'm not sure how to change both package and app name. I tried top answers in this thread but none of them working for KMM project.

Shoaib Kakal
  • 1,090
  • 2
  • 16
  • 32

1 Answers1

0

This is the best way I could find by trial and error. Let me know if a better method exists.

  • Replace all occurrences of com.myapplication.MyApplication with your intended package name like this. replace with your package name

  • Then rename the folder myapplication(located in androidApp/src/androidMain/) to your package middle name. enter image description here

  • In build.gradle.kts (from shared module) change the namespace value and add binaryOption("bundleId", "com.company.AppName") in cocoapods { ... framework { ....

You don't need to change names in BuildConfig or other folders under build folder.

Shreyash.K
  • 487
  • 4
  • 14