{"id":15549069,"url":"https://github.com/lohanidamodar/flutter_flavors","last_synced_at":"2025-09-13T01:08:35.966Z","repository":{"id":97177978,"uuid":"181035983","full_name":"lohanidamodar/flutter_flavors","owner":"lohanidamodar","description":"Flutter flavors tutorial","archived":false,"fork":false,"pushed_at":"2019-06-11T10:08:33.000Z","size":73,"stargazers_count":33,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T18:31:34.506Z","etag":null,"topics":["flutter","flutter-examples","flutter-flavors","flutter-tutorials"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lohanidamodar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-12T15:32:25.000Z","updated_at":"2023-11-11T06:13:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"d9e9d6bb-62f8-4d0f-9053-89b6c8dabf00","html_url":"https://github.com/lohanidamodar/flutter_flavors","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lohanidamodar/flutter_flavors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lohanidamodar%2Fflutter_flavors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lohanidamodar%2Fflutter_flavors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lohanidamodar%2Fflutter_flavors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lohanidamodar%2Fflutter_flavors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lohanidamodar","download_url":"https://codeload.github.com/lohanidamodar/flutter_flavors/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lohanidamodar%2Fflutter_flavors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273791761,"owners_count":25168955,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flutter","flutter-examples","flutter-flavors","flutter-tutorials"],"created_at":"2024-10-02T13:27:23.646Z","updated_at":"2025-09-05T17:39:11.477Z","avatar_url":"https://github.com/lohanidamodar.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flutter Flavors\nSeparating build environments in flutter\n\nThis is a companion repository for my youtube tutorial regarding flutter flavors. This consists of a 3 part tutorial.\n\n### [Companion Tutorial Videos ](https://www.youtube.com/watch?v=DgGUtTUatDQ\u0026list=PLUiueC0kTFqLdkuj4j8FNy1qlzcI0nyCu)\n\n## Part 1\n- Starting code is in [master](https://github.com/lohanidamodar/flutter_flavors/tree/master) branch.\n- Final code is in [part1](https://github.com/lohanidamodar/flutter_flavors/tree/part1) branch\n\nIn this part, we will learn to separate build environment and configs in dart side, we will learn to create separate main files each for the build flavors we want and apply different configs to each app.\n\n## Part 2\n- Starting code is in [part2-start](https://github.com/lohanidamodar/flutter_flavors/tree/part2-start) branch.\n- Final code is in [part2-finish](https://github.com/lohanidamodar/flutter_flavors/tree/part2-finish) branch\n\nIn part 2 we will learn to setup flavors in android side which will allow us to use two separate firebase configs based on flavors in our flutter project in android.\n\n## Part 3\n- Starting code is in [part3-start](https://github.com/lohanidamodar/flutter_flavors/tree/part3-start) branch.\n- Final code is in [part3-finish](https://github.com/lohanidamodar/flutter_flavors/tree/part3-finish) branch\n\nIn part 3 we will learn to setup schemas in iOS side, and make our flutter app able to use separate firebase config in iOS. \n\n### Run Script phase code\n```bash\nif [ \"${CONFIGURATION}\" == \"Debug-prod\" ] || [ \"${CONFIGURATION}\" == \"Release-prod\" ] || [ \"${CONFIGURATION}\" == \"Release\" ]; then\ncp -r \"${PROJECT_DIR}/Runner/Firebase/prod/GoogleService-Info.plist\" \"${PROJECT_DIR}/Runner/GoogleService-Info.plist\"\n\necho \"Production plist copied\"\n\nelif [ \"${CONFIGURATION}\" == \"Debug-dev\" ] || [ \"${CONFIGURATION}\" == \"Release-dev\" ] || [ \"${CONFIGURATION}\" == \"Debug\" ]; then\n\ncp -r \"${PROJECT_DIR}/Runner/Firebase/dev/GoogleService-Info.plist\" \"${PROJECT_DIR}/Runner/GoogleService-Info.plist\"\n\necho \"Development plist copied\"\nfi\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flohanidamodar%2Fflutter_flavors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flohanidamodar%2Fflutter_flavors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flohanidamodar%2Fflutter_flavors/lists"}