Flutter Flavors(android, iOS, firebase) | Create variations of flutter app with same codebase

Поділитися
Вставка
  • Опубліковано 10 гру 2024

КОМЕНТАРІ • 54

  • @cromuelbarut4903
    @cromuelbarut4903 Рік тому +3

    this is the best flutter flavor tutorial so far

  • @nodttt
    @nodttt 10 місяців тому +7

    Thanks for the tutorial! This really saves me a lot of time for setup different env in my flutter project
    For ppl who have multiple googleservice-info.plist file in iOS, you may get error "Error (Xcode): Multiple commands produce" pointing to your GoogleService-info.plist. Just remove the GoogleService-info.plist in "Copy Bundle Resources", (as the script provided by author will add the plist file during build time)

    • @hinrikhelgason425
      @hinrikhelgason425 7 місяців тому

      Thank you! This had been bugging me for hours

    • @WavyWes
      @WavyWes 6 місяців тому

      Thank you! Quick question: in "Copy Bundle Resources" I have GoogleService-info.plist in config/dev, config/prod, and in Runner. Should I remove them all?

  • @VikasSharma-b5p
    @VikasSharma-b5p Рік тому +1

    Thanks a lot!!!!! This is the best flavors tutorial so far. Love it ❤

  • @dinakarmaurya8000
    @dinakarmaurya8000 9 місяців тому

    Excellent man plus more you should show by running from android studio vs code and xcode 🎉

  • @KameleonKraft
    @KameleonKraft Рік тому

    Thank you man, I learnt lots of things here 👏👏👏

  • @abdullahsheraz7461
    @abdullahsheraz7461 2 місяці тому

    how can i manage it with github branches. if I have three branches in my github repo like prod-branch, dev-branch, staging-branch

  • @solomonajani2358
    @solomonajani2358 2 місяці тому

    I keep getting this error Error (Xcode): Target aot_assembly_release failed: Exception: release/profile builds are only supported for physical devices. attempted to build for simulator.
    Could not build the application for the simulator.
    Error launching application on iPad Air 11-inch (M2).

  • @engineeroncamera8711
    @engineeroncamera8711 Місяць тому

    You did not specify adding configuration file to a scheme and what to write in it? Is it even required or changing api_url from flutter project is sufficient.

  • @aunghtet3636
    @aunghtet3636 7 місяців тому

    Great configuration video, short and efficient

  • @GadepallySukumar
    @GadepallySukumar 5 місяців тому

    How do we initialise the firebase database ? Without the firebase_options.dart ?

  • @tovidd
    @tovidd 2 місяці тому

    i faced "No such module Flutter" or "No such module GoogleMaps", i believe follow all your step correctly, it is because i did it on existing project ? please help

  • @jadenwatt1977
    @jadenwatt1977 11 місяців тому

    When I run the production build I get an error that module camera_avfoundation is not found. Could I have set something up wrong? I’m only getting it on the production build and not the dev build

  • @ahmedabdaa3468
    @ahmedabdaa3468 3 місяці тому

    so i need 2 firebase projects with flavors not just 1?

  • @Geek-jx3gw
    @Geek-jx3gw 6 місяців тому

    build input file cannot be found :( :(((((

  • @Frank-go5ih
    @Frank-go5ih Рік тому

    When i running my app from xcode only the the flavor last builded with vs code will run.

    • @musawwirmaqsood
      @musawwirmaqsood  Рік тому +1

      Have you selected relevant scheme in XCode? For reference go to video at 0:41 sec.

    • @Frank-go5ih
      @Frank-go5ih Рік тому +1

      @@musawwirmaqsood
      I found the solution and i realy wonder why nobody talking about this.

  • @shanattari8042
    @shanattari8042 5 місяців тому

    Flutter Flavors Setup with multiple Firebase Environments using FlutterFire and CLI

  • @jasbirkhalif1314
    @jasbirkhalif1314 Рік тому

    how did you connect the projects with firebase as separate bundle ids ? by running flutterfire configure, firebase picks the default prod bundle id for my case. whichever flavor i run with the build command, it takes only one bundle id. note that i have registered my bundle id in xcode correctly.

  • @WanderWiseAdmin
    @WanderWiseAdmin 8 місяців тому

    Thank you so much for the tutorial!

  • @CodeCraftAcademy-dd1qd
    @CodeCraftAcademy-dd1qd 11 місяців тому +2

    Thanks so much for this video. The best so far. Please I have an error. Everything works fine until I added the run script and not sure why that throws an error of a build failure. The error is
    Command PhaseScriptExecution failed with a nonzero exit code. Any Idea how to resolve this?

    • @codelate
      @codelate 11 місяців тому +1

      I resolved this already. Thanks again!

    • @motivaet5447
      @motivaet5447 8 місяців тому

      @@codelate can you tell me how you resolved it?

    • @rajvaghasiya469
      @rajvaghasiya469 7 місяців тому

      @@codelate can you provide solution?

    • @SumonPaul-ym7mu
      @SumonPaul-ym7mu 7 місяців тому

      Can anyone tell me a way to solve this

  • @mambafitnesses
    @mambafitnesses Рік тому

    This only applies to the Android and iOS or also to Web Flutter development?

  • @Ahmed-kf1ii
    @Ahmed-kf1ii 3 місяці тому

    using This method , can i uploade both of them to the store ios and android, with the different config

    • @musawwirmaqsood
      @musawwirmaqsood  3 місяці тому

      @@Ahmed-kf1ii yes, you can.

    • @Ahmed-kf1ii
      @Ahmed-kf1ii 3 місяці тому

      @@musawwirmaqsood thanks for your reply, Can i have different feachers targeting each flavor,if yes having a condition in the code , would it slow the application ?

    • @musawwirmaqsood
      @musawwirmaqsood  3 місяці тому

      @@Ahmed-kf1ii it won't slow the application but your app size will increase for sure.

    • @Ahmed-kf1ii
      @Ahmed-kf1ii 3 місяці тому

      @@musawwirmaqsood Make sence, so the assets would be for all the flavor it can not be configure

  • @sentrycod2373
    @sentrycod2373 Рік тому

    Do we need different SHA certificates for the different flavours?

  • @HarshavardhanGurramYT
    @HarshavardhanGurramYT Рік тому

    Man! Million thanks!

  • @nabilafaraz6579
    @nabilafaraz6579 10 місяців тому

    My name is M.Tayyab your video is ok ❤

  • @mixedentertainment5734
    @mixedentertainment5734 Рік тому

    Sir Kia app mjhy seekha sakty flutter plz mein disable person hon..agr app Ka koi course ho Kuch bhi jis sy mein flutter seekh sakon plzzz reply me

  • @sepehrt6439
    @sepehrt6439 3 місяці тому

    Thank you man

  • @rawezhali9038
    @rawezhali9038 7 місяців тому

    thank u brother

  • @thegrapes1281
    @thegrapes1281 11 місяців тому

  • @vicktorManuel
    @vicktorManuel 6 місяців тому

    hahaha you need more energy in your words xd but thanks

  • @manishmg3994
    @manishmg3994 4 місяці тому

    keep coding

  • @harshavardhangurram9067
    @harshavardhangurram9067 Рік тому

    I get an error while running the project from xcode. It shows: "No file found: lib/main.dart"
    I tried adding "-t main_dev.dart" to the arguments in the schema, still I can't be able to build from xcode.

    • @musawwirmaqsood
      @musawwirmaqsood  Рік тому +1

      Open flutter app in XCode, goto project Runner and click on Build Settings and make sure all and combined are selected then search for FLUTTER_TARGET and here you can edit main file path according to your flavor.

  • @GadepallySukumar
    @GadepallySukumar 5 місяців тому

    How do we initialise the firebase database ? Without the firebase_options.dart ?

  • @harshavardhangurram9067
    @harshavardhangurram9067 Рік тому

    I get an error while running the project from xcode. It shows: "No file found: lib/main.dart"
    I tried adding "-t main_dev.dart" to the arguments in the schema, still I can't be able to build from xcode.