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.
Asked
Active
Viewed 42 times
0
Shoaib Kakal
- 1,090
- 2
- 16
- 32
1 Answers
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.MyApplicationwith your intended package name like this.
Then rename the folder
myapplication(located inandroidApp/src/androidMain/) to your package middle name.
In
build.gradle.kts(fromsharedmodule) change the namespace value and addbinaryOption("bundleId", "com.company.AppName")incocoapods { ... framework { ....
You don't need to change names in BuildConfig or other folders under build folder.
Shreyash.K
- 487
- 4
- 14