{"id":26157461,"url":"https://github.com/icapps/flutter_remote_config_generator","last_synced_at":"2025-10-30T05:17:52.252Z","repository":{"id":278762768,"uuid":"936556299","full_name":"icapps/flutter_remote_config_generator","owner":"icapps","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-21T15:23:17.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-21T15:32:27.324Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/icapps.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2025-02-21T09:37:58.000Z","updated_at":"2025-02-21T15:23:21.000Z","dependencies_parsed_at":"2025-02-21T15:44:47.754Z","dependency_job_id":null,"html_url":"https://github.com/icapps/flutter_remote_config_generator","commit_stats":null,"previous_names":["icapps/flutter_remote_config_generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icapps%2Fflutter_remote_config_generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icapps%2Fflutter_remote_config_generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icapps%2Fflutter_remote_config_generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icapps%2Fflutter_remote_config_generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icapps","download_url":"https://codeload.github.com/icapps/flutter_remote_config_generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243012677,"owners_count":20221606,"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":"2025-03-11T10:00:05.393Z","updated_at":"2025-10-30T05:17:52.142Z","avatar_url":"https://github.com/icapps.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"A generator that helps you generate code for your remote config, currently only firebase is supported.\n\n## Features\n\nGenerates the nescessary code for accessing your remote config\n\n## Getting started\n\nTo get started you need 2 things, first is a firebase service account key of a service account that has access to the remote config. Second is a config.yaml file stored in the remote_config_generator folder in the root of your project.\n\nThe file should look something like this\n\n```yaml\ncredentials_path: path to credentials (ex. remote_config_generator/credentials.json)\nproject_id: project id of your firebase project\n```\n\nAfter that just run the tool by running this command:\n```bash\nflutter packages run remote_config_generator\n```\n\nThis will generate 3 files. remote_config_base.dart, remote_config_data.dart and remote_config_keys.dart. To then use these generated files create a class which extends the remoteConfigBase like this:\n\n```dart\nclass RemoteConfig extends RemoteConfigBase {\n  RemoteConfig._();\n\n  @override\n  @protected\n  Future\u003cvoid\u003e refreshRemoteConfig() async {\n    // Refresh remote config here\n  }\n\n  @override\n  String? getOptionalValue(String key) {\n    // Get the value out of your remote config (doesn't have to be from firebase)\n  }\n}\n```\n\nNow all you have to do is initialize the remote config and call the values:\n\n```dart\nfinal remoteConfig = RemoteConfig();\nremoteConfig.init();\nremoteConfig.values.{valueName}\n```\n\nIt is advised to make the RemoteConfig a singleton so you always access the same values.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficapps%2Fflutter_remote_config_generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficapps%2Fflutter_remote_config_generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficapps%2Fflutter_remote_config_generator/lists"}