{"id":13550681,"url":"https://github.com/icapps/flutter-template","last_synced_at":"2025-04-04T08:05:55.007Z","repository":{"id":36136562,"uuid":"189540448","full_name":"icapps/flutter-template","owner":"icapps","description":"A Flutter Template to get started quickly","archived":false,"fork":false,"pushed_at":"2025-02-21T15:28:09.000Z","size":50745,"stargazers_count":171,"open_issues_count":16,"forks_count":45,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-28T07:05:00.251Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/icapps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-05-31T06:31:13.000Z","updated_at":"2025-02-25T20:37:10.000Z","dependencies_parsed_at":"2023-02-16T07:15:57.482Z","dependency_job_id":"da91eb2b-6eb4-4e99-8076-7b4e78bdc750","html_url":"https://github.com/icapps/flutter-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icapps%2Fflutter-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icapps%2Fflutter-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icapps%2Fflutter-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icapps%2Fflutter-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icapps","download_url":"https://codeload.github.com/icapps/flutter-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142032,"owners_count":20890651,"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","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":[],"created_at":"2024-08-01T12:01:36.149Z","updated_at":"2025-04-04T08:05:54.969Z","avatar_url":"https://github.com/icapps.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Dart"],"sub_categories":[],"readme":"# Flutter Template\n\n[![Build Status](https://app.travis-ci.com/icapps/flutter-template.svg?branch=master)](https://app.travis-ci.com/icapps/flutter-template)\n[![Coverage Status](https://coveralls.io/repos/github/icapps/flutter-template/badge.svg)](https://coveralls.io/github/icapps/flutter-template)\n[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)\n\n- dependency injection (injectable/get it)\n- network layer (dio)\n- network logging (niddler, dio)\n- viewmodels (provider)\n- translations (icapps translations)\n- json serialization (json_serializable)\n- different environments\n- themes\n- navigator\n- linting (flutter analyze)\n\n## Update the translations\n\nA custom dart program is used for updating the translations\n\nhttps://pub.dev/packages/icapps_translations\n\nUpdate your config in the pubspec.yaml\n```\nicapps_translations:\n  api_key: 'enter-your-api-key'\n  default_language: 'nl'\n  languages: ['en', 'nl']\n```\n\nAdd your locale folder to your flutter config\n```\nflutter:\n  assets:\n    - assets/locale/\n```\n\nCommand to run to update the translations\n```\nfvm flutter packages pub run icapps_translations\n```\n\n## Json Serializable \u0026 Kiwi\n\n```\nfvm flutter packages pub run build_runner build --delete-conflicting-outputs\nfvm flutter packages pub run build_runner watch\n```\n## Environments\n\n`--release` is not available for emulators. Performance will be better\n\n### Dev, Debug\n```\nfvm flutter run --flavor dev -t lib/main.dart\n\nfvm flutter run --release --flavor dev -t lib/main.dart\n```\n\n### Dummy\n\nNote: a hot reload is required after launch to use the correct launch file.\n\n```\nfvm flutter run --flavor dev -t lib/main_dummy.dart\n\nfvm flutter run --release --flavor dev -t lib/main_dummy.dart\n```\n\n### Alpha\n```\nfvm flutter run --flavor alpha -t lib/main_alpha.dart\n\nfvm flutter run --release --flavor alpha -t lib/main_alpha.dart\n```\n\n### Beta\n```\nfvm flutter run --flavor beta -t lib/main_beta.dart\n\nfvm flutter run --release --flavor beta -t lib/main_beta.dart\n```\n\n### Prod, Release\n```\nfvm flutter run --flavor prod -t lib/main_prod.dart\n\nfvm flutter run --release --flavor prod -t lib/main_prod.dart\n```\n\n## Niddler\n\nhttps://github.com/Chimerapps/niddler_dart\n\nNiddler is a network tracing tool written by Nicola Verbeeck.\nAn Android Studio and Intelij plugin is available to download in the plugin store. (https://plugins.jetbrains.com/plugin/10347-niddler - https://github.com/Chimerapps/niddler-ui)\nNiddler is also available for Android \u0026 Java (OkHttp: https://github.com/icapps/niddler)\n\n## Linting\n\nTo check your code matches our linting. The `analysis_options.yaml` contains all our code checks.\n\n```\nflutter analyze\n```\n\n## Testing\n\nIn order to run our test we need to run\n\n```\nfvm flutter test\n```\n\nIf we want to update our golden files we need to run\n\n```\nfvm flutter test --update-goldens\n```\n\n## Fastlane\n\nFastlane is used for building iOS and Android\n\n## Transform this template project\n\n#### Rename this project\n\nThis script will run a dart script. The dart script itself will ask you some input to complete the full rename \n```\n./tool/rename_project.sh\n```\n\n#### Add provisioning files\n\nAdd the provisioning profiles in the ios/provisioning/ folder. The naming of the files should be the same as provided in the `ios/Configuration/{flavor}.xcconfig` files (underscore will be replaced with a space in the configuration files)\n\n#### Firebase\n\nTo setup firebase you will need to create a new firebase project with 8 new apps, 1 for each flavor on both iOS and Android. \n\nWhen creating the iOS apps on firebase you will be able to download a `GoogleService-Info.plist` file which you will need to rename according to the flavor you just created an app for e.g.: You just created the iOS App for the Dev flavor so your file should be named `GoogleService-Info-dev.plist`. \nEach `.plist` file you download from firebase needs to be placed in the ios/Configuration/GoogleService/ folder. Whenever the project is run with a different flavor from the currently active flavor, it will automatically copy the correct `GoogleService-Info-{flavor}.plist` file into the ios/Runner/ folder.\n\nWhen creating the Android apps you will be able to download a `google-services.json` file, you only need to download this file once at the end of the last Android app setup on firebase. This `.json` file contains all the configurations for the 4 Android apps which you just created. Add the `.json` file in the android/app/src/ folder.\n\n#### Languages\n\n```\nConfigure the required languages in Xcode\n```\n\n### icapps Translations\n\n```\nUpdate the translations.py file (edit the todos)\n```\n\n### Obfuscation\n\nObfuscation is enabled by default when using fastlane for building. The symbol files are stored in\n`./build/debug-info/#{options[:flavor]}`\n\n**Important**: Add the following regex to jenkins configuration to also archive the symbol files\n```\n**/*.symbols\n```\n\n### Icons\n\nReplace the files in the `assets_launcher_icons/**` folder.\n\nYou can also change the adaptive_icon_background in the `flutter_launcher_icons-{flavor}.yaml` (currently \"#CB2E63\") (only available for Android 8.0 devices and above)\n\nAfter this, run the following command\n\n```\nfvm flutter pub run flutter_launcher_icons:main -f flutter_launcher_icons-dev.yaml\n```\n\n### Common issues\n\n```\nNo flavor provided\n```\n\nAdd a flavor to your configuration. Extra info can be found in this issue -\u003e https://github.com/icapps/flutter-template/issues/3\n\n### Questions?\n\nFor question contact William Verhaeghe\n\n### Finish\n\nWhen you have completed this readme. Replace it with the readme for your project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficapps%2Fflutter-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficapps%2Fflutter-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficapps%2Fflutter-template/lists"}