https://kotlinlang.org logo
g

galex

04/27/2019, 7:35 AM
Within the new cocoapods gradle plugin, can I change the name of the module so my iOS project uses MyModuleCommon instead of mymodule_common?
s

svyatoslav.scherbina

04/29/2019, 9:04 AM
What do you mean by “the name of the module”?
g

galex

04/29/2019, 2:17 PM
Sorry for the confusing wording. I meant that my common code is inside an IntelliJ module named “project_common” and thus that’s the name of the Framework I have to import inside Swift code
import project_common
. I’d like to specify in the cocoapods plugin that I’d like to rename the framework to be “ProjectCommon” and not “project_common”
s

svyatoslav.scherbina

04/30/2019, 1:18 PM
Try renaming your Gradle project.
g

galex

05/01/2019, 4:26 AM
No way to specify a different name in the gradle plugin extension?
s

svyatoslav.scherbina

05/06/2019, 7:22 AM
I’m afraid so.
g

galex

05/06/2019, 10:51 AM
Okay, thanks
t

tylerwilson

05/21/2019, 3:03 PM
any plans on adding this? i am looking for the same thing, and since I am using the same lib for both Android and iOS with Android being the primary consumer I would prefer to change the name in the gradle file. Thank you.
🙏 1
i

ilya.matveev

05/22/2019, 9:28 AM
Yes, we have such plans but probably not in the nearest release. I've created a ticket to track this issue: https://youtrack.jetbrains.com/issue/KT-31542
g

galex

05/22/2019, 10:10 AM
@ilya.matveev Thank you!
3 Views