Open tianhaoz95 opened 4 years ago
Dude you're amazing! Thanks for the response on this! I'll be trying to implement that soon!
Reusing this issue to add the documentation on how the Fastlane plugin works and how to set it up as the flutter_version plugin was a brother project of this one and also maintained by the same contributors.
Pointers
BTW, the docs uses vuepress.
Original title: Reply to Ramie since my dumb corp laptop won't let me login my own email account
@ramiechaarani
In short, the
flutter_version()
you saw is a Fastlane plugin I wrote to help manage Flutter versioning.https://github.com/tianhaoz95/photochat/blob/9d1f3c5103c61daa64abe59aaa780afdf7b7dec1/photochatapp/android/fastlane/Fastfile#L8-L14
It's a bit confusing because the plugin doesn't live here. Instead, it in imported through a gem registry here:
https://github.com/tianhaoz95/photochat/blob/9d1f3c5103c61daa64abe59aaa780afdf7b7dec1/photochatapp/android/fastlane/Pluginfile#L1-L3
The plugin itself actually lives here: https://github.com/tianhaoz95/fastlane-plugin-flutter_version
As the plugin was built in a hurry, documentation is not fully in place now, but you can take this repository as an example.
The plugin uses GitHub registry: https://github.com/tianhaoz95/fastlane-plugin-flutter_version/packages/143774
Installing it will require logging in with your GitHub account, please take my GitHub Action script as an example:
https://github.com/tianhaoz95/photochat/blob/9d1f3c5103c61daa64abe59aaa780afdf7b7dec1/.github/workflows/loki.yml#L249-L258