{"id":17168923,"url":"https://github.com/ciriousjoker/fake_firebase_remote_config","last_synced_at":"2026-01-30T03:01:20.629Z","repository":{"id":61973225,"uuid":"445417043","full_name":"ciriousjoker/fake_firebase_remote_config","owner":"ciriousjoker","description":"Flutter package: Fake Firebase Remote Config for use during Flutter unit \u0026 widget tests.","archived":false,"fork":false,"pushed_at":"2025-02-23T07:16:54.000Z","size":124,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T06:51:15.193Z","etag":null,"topics":["fake","firebase","firebaseremoteconfig","flutter","flutter-test","flutter-tests","mock","remoteconfig"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/fake_firebase_remote_config","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ciriousjoker.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":"2022-01-07T06:08:03.000Z","updated_at":"2025-02-23T07:16:45.000Z","dependencies_parsed_at":"2024-08-08T15:01:38.128Z","dependency_job_id":null,"html_url":"https://github.com/ciriousjoker/fake_firebase_remote_config","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciriousjoker%2Ffake_firebase_remote_config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciriousjoker%2Ffake_firebase_remote_config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciriousjoker%2Ffake_firebase_remote_config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciriousjoker%2Ffake_firebase_remote_config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ciriousjoker","download_url":"https://codeload.github.com/ciriousjoker/fake_firebase_remote_config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741145,"owners_count":21154251,"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":["fake","firebase","firebaseremoteconfig","flutter","flutter-test","flutter-tests","mock","remoteconfig"],"created_at":"2024-10-14T23:13:24.112Z","updated_at":"2026-01-30T03:01:20.623Z","avatar_url":"https://github.com/ciriousjoker.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fake Firebase Remote Config\n\n[![pub package](https://img.shields.io/pub/v/fake_firebase_remote_config.svg)](https://pub.dartlang.org/packages/fake_firebase_remote_config)\n\nFakes to write unit tests for Firebase Remote Config. Instantiate a `FakeRemoteConfig`, then pass it around your project to replace `RemoteConfig.instance`. This fake acts like `RemoteConfig` except it will load mocked data instead.\n\n## Usage\n\n### A simple usage example\n\n```dart\nimport 'package:fake_firebase_remote_config/fake_firebase_remote_config.dart';\n\nvoid main() async {\n  final config = FakeRemoteConfig();\n  await config.setDefaults({\n    // ...\n  });\n\n  config.loadMockData({\n    // ...\n  });\n\n  await config.fetchAndActivate();\n}\n```\n\nThis `config` object needs to replace the real `RemoteConfig.instance` during testing. You can do this for example with [Riverpod](https://pub.dev/packages/riverpod) or by doing something like this:\n\n```dart\nawait tester.pumpWidget(\n  MaterialApp(\n    title: 'RemoteConfig Example',\n    home: MyApp(overrideRemoteConfig: config),\n  ),\n);\n```\n\n## Missing functionality\n\n- `config.app` will throw\n- `config.pluginConstants` will throw\n- `config.onConfigUpdated` will throw\n- `config.getValue(String key)` will throw if the key is missing\n- `config.setCustomSignals` does nothing\n- Everything related to `config.settings` serve no purpose. Data is loaded manually.\n\n## Compatibility table\n\n| firebase_remote_config | fake_firebase_remote_config |\n| ---------------------- | --------------------------- |\n| \u003e=0.9.0-dev.0 \u003c4.0.0   | 1.0.x                       |\n| \u003e=4.0.0 \u003c5.0.0         | 2.0.x                       |\n| \u003e=4.0.0 \u003c5.4.0         | 2.1.x                       |\n| \u003e=4.0.0 \u003c6.0.0         | 2.2.x                       |\n| \u003e=4.0.0 \u003c7.0.0         | 2.3.x                       |\n\nLast updated for `firebase_remote_config: 6.1.4`.\n\n## Features and bugs\n\nPlease file feature requests and bugs at the [issue tracker](https://github.com/CiriousJoker/fake_firebase_remote_config/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fciriousjoker%2Ffake_firebase_remote_config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fciriousjoker%2Ffake_firebase_remote_config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fciriousjoker%2Ffake_firebase_remote_config/lists"}