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

Поделиться
HTML-код
  • Опубликовано: 5 янв 2025

Комментарии •

  • @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 8 месяцев назад

      Thank you! This had been bugging me for hours

    • @WavyWes
      @WavyWes 7 месяцев назад

      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?

    • @MrunalKumbhar-x1q
      @MrunalKumbhar-x1q 3 дня назад

      when i remove all GoogleService-info.plist in config/dev, config/prod, and in Runner. i get error default
      Looking for GoogleService-Info.plist in /Applications/Atreya/Nadi-Tarangini-App/ios/config/default/GoogleService-Info.plist
      No GoogleService-Info.plist found. Please ensure it's in the proper directory.
      Command PhaseScriptExecution failed with a nonzero exit code
      note: Run script build phase 'Thin Binary' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'Runner' from project 'Runner')
      note: Run script build phase 'Run Script' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'Runner' from project 'Runner')

  • @VikasSharma-b5p
    @VikasSharma-b5p Год назад +1

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

  • @solomonajani2358
    @solomonajani2358 3 месяца назад

    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).

  • @KameleonKraft
    @KameleonKraft Год назад

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

  • @abdullahsheraz7461
    @abdullahsheraz7461 3 месяца назад

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

  • @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

  • @engineeroncamera8711
    @engineeroncamera8711 2 месяца назад

    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.

  • @dinakarmaurya8000
    @dinakarmaurya8000 10 месяцев назад

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

  • @GadepallySukumar
    @GadepallySukumar 6 месяцев назад

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

  • @tovidd
    @tovidd 3 месяца назад

    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

  • @aunghtet3636
    @aunghtet3636 8 месяцев назад

    Great configuration video, short and efficient

  • @ahmedabdaa3468
    @ahmedabdaa3468 4 месяца назад

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

  • @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.

  • @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.

  • @Geek-jx3gw
    @Geek-jx3gw 7 месяцев назад

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

  • @mambafitnesses
    @mambafitnesses Год назад

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

  • @CodeCraftAcademy-dd1qd
    @CodeCraftAcademy-dd1qd Год назад +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 Год назад +1

      I resolved this already. Thanks again!

    • @motivaet5447
      @motivaet5447 9 месяцев назад

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

    • @rajvaghasiya469
      @rajvaghasiya469 8 месяцев назад

      @@codelate can you provide solution?

    • @SumonPaul-ym7mu
      @SumonPaul-ym7mu 7 месяцев назад

      Can anyone tell me a way to solve this

  • @WanderWiseAdmin
    @WanderWiseAdmin 8 месяцев назад

    Thank you so much for the tutorial!

  • @HarshavardhanGurramYT
    @HarshavardhanGurramYT Год назад

    Man! Million thanks!

  • @sentrycod2373
    @sentrycod2373 Год назад

    Do we need different SHA certificates for the different flavours?

  • @Ahmed-kf1ii
    @Ahmed-kf1ii 4 месяца назад

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

    • @musawwirmaqsood
      @musawwirmaqsood  4 месяца назад

      @@Ahmed-kf1ii yes, you can.

    • @Ahmed-kf1ii
      @Ahmed-kf1ii 4 месяца назад

      @@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  4 месяца назад

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

    • @Ahmed-kf1ii
      @Ahmed-kf1ii 4 месяца назад

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

  • @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

  • @shanattari8042
    @shanattari8042 6 месяцев назад

    Flutter Flavors Setup with multiple Firebase Environments using FlutterFire and CLI

  • @sepehrt6439
    @sepehrt6439 4 месяца назад

    Thank you man

  • @nabilafaraz6579
    @nabilafaraz6579 11 месяцев назад

    My name is M.Tayyab your video is ok ❤

  • @rawezhali9038
    @rawezhali9038 8 месяцев назад

    thank u brother

  • @thegrapes1281
    @thegrapes1281 Год назад

  • @vicktorManuel
    @vicktorManuel 7 месяцев назад

    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 6 месяцев назад

    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.