tianhaoz95 / photochat

Works cool: I use a secure app to chat. Next level: I encrypt my chats with a private key. Intergalactic level: I encrypt my chats with a one-time token and then make them deceptively public ;)
https://medium.com/minidonkey101
MIT License
42 stars 16 forks source link

Add how flutter_version works in Fastlane script into documentation for easier access #89

Open tianhaoz95 opened 4 years ago

tianhaoz95 commented 4 years ago

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

ramiechaarani commented 4 years ago

Dude you're amazing! Thanks for the response on this! I'll be trying to implement that soon!

tianhaoz95 commented 4 years ago

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

tianhaoz95 commented 4 years ago

BTW, the docs uses vuepress.