Тёмный

Environments (Flavors) in Flutter with Codemagic CI/CD 

Reso Coder
Подписаться 112 тыс.
Просмотров 32 тыс.
50% 1

📗 Learn from the written tutorial 👇👇
resocoder.com/env-flutter-cod...
✨ CI/CD tailored for your Flutter apps:
codemagic.io
📧 Get Flutter news 📰 and resources:
👉 flutter.education
👨‍💻 Do you write good code? Find out now!
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:
● resocoder.com
Follow me on social media:
● / resocoder
● / resocoder
● / resocoder

Опубликовано:

 

18 фев 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 72   
@Fanaro
@Fanaro 4 года назад
The Codemagic setup starts at 36:41. Btw, 44:25, @ResoCoder, this "|" symbol is called the "pipe" symbol.
@Coopervise
@Coopervise 4 года назад
This is great I’ve been waiting for tutorials about how to mange apps not just code. Saved for my weekend!!
@GabrielCosta-xr5vr
@GabrielCosta-xr5vr 4 года назад
Thank you for another great tutorial! At the end of the written one I saw that it is sponsored and I think that it was the first time that I was glad for it! The tutorial is very good (as Codemagic really is) and it's awesome that you get this sponsorship. You deserve so much more for contributing so much to the community with such quality content! Thanks again!
@ResoCoder
@ResoCoder 4 года назад
Thank you. You made me think that I didn't mention the sponsorship at the beginning of the video 😄 I did though.
@GabrielCosta-xr5vr
@GabrielCosta-xr5vr 4 года назад
@@ResoCoder I always check the written tutorial first when I don't have so much time to watch the video so I didn't see 😅. (also thanks for providing written tutorial, it helps a lot!)
@brady5790
@brady5790 2 года назад
You never disappoint!
@h3w45
@h3w45 4 года назад
before watching just wanted to say good job.
@k_boss9
@k_boss9 4 года назад
Thank you, nice tutorial
@joliver1981
@joliver1981 3 года назад
Awesome job. Very helpful. Would like to see iOS build as it can be challenging.
@xjfelli
@xjfelli 7 месяцев назад
Thanks man!
@tintin537
@tintin537 4 года назад
Hello reso coder thank you for your great content. I hope I could put this into work some day. And by the way the horizontal line in linux commands is called pipe.
@khanaa13
@khanaa13 4 года назад
Absolutely mind-blowing tutorial!! Is there a way to prevent development files from being included in production builds to reduce the build assets size? Maybe some way of loading up those development files while developing yet they are stored in the test folder?
@cuong1112035
@cuong1112035 Год назад
very helpful, thanks so much
@RagaGaming
@RagaGaming 4 года назад
Hi thankyou for the tutorials, really helped me, and please create one for appcenter also!
@RiccardoCalligaro
@RiccardoCalligaro 4 года назад
Amazing as always. Oh and what is that new font? I really like it
@ResoCoder
@ResoCoder 4 года назад
JetBrains Mono
@akshaymankodia9003
@akshaymankodia9003 4 года назад
We need to see a comparison video of fastlane and Codemagic please :)
@Baraka0369
@Baraka0369 4 года назад
Thanks !!!!! 💪💪💪💪
@ResoCoder
@ResoCoder 4 года назад
You're welcome!
@user-jo1mz4se4j
@user-jo1mz4se4j 4 года назад
Great videos! Do you plan to record anything about Xamarin.Android or Xamarin.Forms, or you now record videos only about Flutter ?
@albanr8028
@albanr8028 3 года назад
Top !
@karlon908
@karlon908 4 года назад
This is it!!!!
@samadshukr4111
@samadshukr4111 4 года назад
does have we any package to compression size of the image when we import in the gallery or take without messing in quality? well done keep going.
@mohammadmujahid8850
@mohammadmujahid8850 Год назад
What a tutorial, Sometime I think how you just do all these.
@hassanhallak4758
@hassanhallak4758 4 года назад
Thank you very match for your perfict tutourial Please can you add tutourial How to use code magic to build ipa on windows
@ercuesy
@ercuesy 4 года назад
Thanks, Matt, great tutorial as always. Will you maybe do a follow-up of iOS build and deployment to both Android and iOS stores? Much appreciated!
@ResoCoder
@ResoCoder 4 года назад
I think so!
@SaladAssGaming2014
@SaladAssGaming2014 4 года назад
@@ResoCoder Yes. could you please do this? It will be a great help. thanks
@marcelnehrig145
@marcelnehrig145 3 года назад
still waiting for this! :D
@alexanderkubi9017
@alexanderkubi9017 3 года назад
I'm waiting for this too
@kamilpius8185
@kamilpius8185 4 года назад
Good job. I would like to see flavors tutorial. Its realy pain in the ass for me in ios.
@bernardomesk
@bernardomesk 3 года назад
Nice tutorial! Why not pass the color with the env parameter to make it less code at the common file? Thanks!
@wajeehulhassan_vii
@wajeehulhassan_vii 4 года назад
What do you recommend for backend? What about Flask?
@BonBaisers
@BonBaisers 4 года назад
Great as always ! You have switched back to Windows ? :) Would like to share why ?
@ResoCoder
@ResoCoder 4 года назад
Linux is a configuration hell. Now I also have a Mac though.
@TVHovna
@TVHovna 4 года назад
@@ResoCoder :(
@hishamshawky2481
@hishamshawky2481 4 года назад
is that support code push? or just push another release to play store for review?
@vaibhavdangayachvd
@vaibhavdangayachvd 4 года назад
Does this mean that only those who have config files locally will be able to develop the project ?
@programan6391
@programan6391 4 года назад
Hey there, why don't you enabled memberships on your channel?
@CryptoWulf_app
@CryptoWulf_app 3 года назад
This environment config does not work for platform specific configurations like firebase right?
@pradeep422
@pradeep422 4 года назад
holy moly 1 hour gotta schedule this 1 lol, doing this only cause dont wanna skip a sec...
@ResoCoder
@ResoCoder 4 года назад
I didn't think it was going to be this long but every minute is packed with information.
@DhavalParmar01
@DhavalParmar01 4 года назад
​@@ResoCoder Thanks for this great tutorial 🙌. I go with 2x speed so that packs more information in a minute 😉
@ResoCoder
@ResoCoder 4 года назад
@@DhavalParmar01 Speed control is the best thing on RU-vid.
@MrFallout86
@MrFallout86 3 года назад
Great video. but why abstract class for the Environment class? PS. Also can codemagic deal with GoogleService-Info.plist for different builds?
@yukiotsuka4373
@yukiotsuka4373 4 года назад
Make sure to write mkdir -p $FCI_BUILD_DIR/config at Pre-test script otherwise, the test will fail because pubspec.yml try to read config dir before while running tests. Thank you for the great tutorial
@matthieuregnauld9648
@matthieuregnauld9648 Год назад
35:06 I do appreciate, indeed! ;)
@kbodka
@kbodka 4 года назад
Hey Reso Coder, could you please make a review for Angel framework for dart? I am in love with dart and would like to know is that good for creating APIs? 😊
@ResoCoder
@ResoCoder 4 года назад
Hello! As much as I'd love to build backends in Dart, I would rather go with a more supported language/framework. With Angel and Aqueduct, you'll have to reinvent the wheel a lot and if you encounter a blocking issue, you're currently kind of on your own.
@danielpardamean3883
@danielpardamean3883 4 года назад
What font you're using?
@metamadz
@metamadz 4 года назад
32:35 hello there.
@chetan6406
@chetan6406 4 года назад
When you will make series flutter with firebase.....bro
@MrRahulmalik
@MrRahulmalik 4 года назад
Please make more android Kotlin videos
@akshaymankodia9003
@akshaymankodia9003 4 года назад
Hey Reso, may I know why you have not configured app/build.gradle files for android here?
@akshaymankodia9003
@akshaymankodia9003 4 года назад
I think because here you have done for VS code and we configure app/build,gradle files only when we use Android Studio or IntelIJ ?
@davidagyakwa288
@davidagyakwa288 3 года назад
can you do a video with bloc and code magic
@ianjaspersantos7229
@ianjaspersantos7229 4 года назад
Is there any difference with fastlane and this one, codemagic?
@ResoCoder
@ResoCoder 4 года назад
Fastlane runs locally and, as of now, it's only available on Mac.
@brianmanuputty4412
@brianmanuputty4412 4 года назад
definitely a good repository name 😂👌
@ResoCoder
@ResoCoder 4 года назад
It shows that I'm a pro, huh? 😎🤣
@viveksehrawat36
@viveksehrawat36 4 года назад
Please create for iOS also
@fluttermaster6148
@fluttermaster6148 4 года назад
Is there a good way to test (with simulator) and deploy IOS apps without mac?
@ResoCoder
@ResoCoder 4 года назад
Testing with a simulator - not yet. Deploying can be all done with Codemagic.
@fluttermaster6148
@fluttermaster6148 4 года назад
​@@ResoCoder Thanks for the answer. I will try codemagic after watching the video.
@sagarsha7734
@sagarsha7734 4 года назад
what is the hardware requirements for Fast flutter development?
@ResoCoder
@ResoCoder 4 года назад
Flutter doesn't require a lot to run and build apps. A recent 4 core CPU and 8 GB RAM should be plenty enough for a good experience.
@sagarsha7734
@sagarsha7734 4 года назад
@@ResoCoder Thank You Bro🙂
@hl6903
@hl6903 3 года назад
vs code theme ?
@pradeep422
@pradeep422 4 года назад
I think these days Boring show is little boring and reso show is more like adding new and magical content frequently...
@ResoCoder
@ResoCoder 4 года назад
Glad to hear this! 💙
@andreygritsay762
@andreygritsay762 4 года назад
You switched back to Windows again. Why is that? I'd highly recommend you to buy a MacBook. Even though it seems overpriced it's really worth it
@ResoCoder
@ResoCoder 4 года назад
I have a MacBook now, actually. It's a breath of fresh air but I still do the majority of work on my main desktop PC.
Далее
Flutter SVG Animations With Rive
1:00:44
Просмотров 33 тыс.
How to Make Responsive Flutter Apps, Pixel Perfect
14:58
CI / CD in Flutter - GitHub Actions vs. Codemagic
14:53