Skip to content
Videos
Video

Environments (Flavors) in Flutter with Codemagic CI/CD

by Reso Coder youtube.com

1 hr 3 min 35.2k views

๐Ÿ“— Learn from the written tutorial ๐Ÿ‘‡๐Ÿ‘‡ https://resocoder.com/env-flutter-codemagic โœจ CI/CD tailored for your Flutter apps: https://codemagic.io ๐Ÿ“ง Get Flutter news ๐Ÿ“ฐ and resources: ๐Ÿ‘‰ http://flutter.education ๐Ÿ‘จโ€๐Ÿ’ป Do you write good code? Find out now! https://resocoder.com/good-code-quiz You are tweaking an app which is already in production. You are implementing code that allows a user to delete his data. All of a sudden, you realize that you made a huge mistake! By providing a wrong ID, you accidentally deleted data of an actual user! Horror stories like this one can truly become a reality if you don't have separate production and development environments. Thankfully, it's very easy to set all of this up with Codemagic which is a CI/CD service dedicated specifically for Flutter apps. Environments can be used for just about anything - from supplying a different Firebase config file, so that you won't accidentally delete production data from Firestore, to changing the UI and even logic based on the current app environment. To keep this tutorial in a reasonable time-span, we won't deal with Firebase but we will instead create environments for a counter app! Yay ๐ŸŽ‰ But seriously, have you never wanted to change the increment amount from 1 to 5 by reading a configuration JSON file? No? Well, now you'll see what you missed! Go to my website for more information, code examples, and articles: โ— https://resocoder.com Follow me on social media: โ— https://instagram.com/resocoder โ— https://www.facebook.com/resocoder โ— https://twitter.com/resocoder

Forum

Questions about this, or something to add?

Discuss on the forum

Topics Firebase

Report this ยท Wrote this? Claim it

Supported by