Hey there! I haven't found many results on settin...
# multiplatform
i
Hey there! I haven't found many results on setting up Fastlane with KMM - are you guys using Fastlane at all? And if so, do you set it up in the root of the project (so one Fastfile etc for both iOS and Android), or do you set it up separately in
iosApp
and
androidApp
folders? Thanks!
n
Hi Igor. My team and I at Cardlay are using fastlane with KMM for our iOS app, and we have it set up in our
iosApp
directory. We’re then using the
packForXcode
gradle task in our Xcode project to build only the required architecture and configuration, which means it “just works” with fastlane as well 🙂
i
Thanks Nicklas! And for Android, are you just building from the command line?
n
Our Android developers prefers sticking to Gradle for both building, testing and publishing, and have expressed no desire in adopting Fastlane. All publishing (both iOS and Android) is eventually done through our CI pipeline, which is currently built on Jenkins, which launches Fastlane and Gradle respectively. The way we’re organized we each have our primary platform, be it either Android or iOS, and then collaborate on the common Kotlin code within the shared part. I’m primarily on iOS at the moment, so I have no strong desire to change the way our Android application is built 🙈
i
Thanks again for sharing this insight Nicklas! Yeah, I think that's a good approach and I in fact ended up using fastlane for both, but set it up (twice) in their respective folders. The only drawback is maintaining two Gemfiles, but otherwise Fastfiles are cleaner, and there's the flexibility to switch either platform to a different tooling in the future, if need be.