I have a use case where I have to generate release versions for testing builds that follow a well documented pipeline playbook set by our testers. I already have a function that runs the logic in ruby, but I am considering creating fastlane action or fastlane plugin. Under my use case, is action sufficient or I should consider a plugin?
Fastlane plugins are similar to cocoapods pods:
fastlane add_plugin [plugin_name]
So, it's better to use plugins if you need its actions in many different places and/or you need to build up a composite plugin hierarchy structure.
Otherwise, fastlane actions are simple ruby files directly invoked from Fastfile, that can take input parameters, nonetheless see environment variables and can have a return parameter.
In order to 'clean' your code, fastlane actions could suffice.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With