https://kotlinlang.org logo
s

Sebastien Leclerc Lavallee

11/12/2020, 9:34 PM
Hey! I wanted to know if it’s possible to set the version ( among other fields ) when generating a podspec file using the gradle task? By default, it outputs:
spec.version                  = 'unspecified'
which is not OK for Cocoapods and we need to set a version. I did set the version manually but for some reason, when executing Fastlane to bundle and upload my app, the
shared:podspec
task is executed. I don’t exactly where and why it’s executed, I’m still trying to figure it out. But I would prefer to have a way to set it by code inside my gradle file. Thanks 🙂
a

Artyom Degtyarev [JB]

11/13/2020, 7:41 AM
Hello, @Sebastien Leclerc Lavallee! IIRC, Cocoapods plugin utilizes project version for it. See the details here.
1
💯 1
s

Sebastien Leclerc Lavallee

11/13/2020, 2:15 PM
🤦 Thanks..! Exactly what I needed