Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fumito-ito/firebaseremoteconfig-openfeature-provider-swift
Yet another OpenFeature provider for Firebase RemoteConfig
https://github.com/fumito-ito/firebaseremoteconfig-openfeature-provider-swift
Last synced: 29 days ago
JSON representation
Yet another OpenFeature provider for Firebase RemoteConfig
- Host: GitHub
- URL: https://github.com/fumito-ito/firebaseremoteconfig-openfeature-provider-swift
- Owner: fumito-ito
- License: apache-2.0
- Created: 2024-01-31T14:45:56.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-05-20T05:02:10.000Z (8 months ago)
- Last Synced: 2024-05-21T04:39:26.539Z (8 months ago)
- Language: Swift
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Swift](https://github.com/fumito-ito/FirebaseRemoteConfig-OpenFeature-Provider-Swift/actions/workflows/swift.yml/badge.svg?branch=main)](https://github.com/fumito-ito/FirebaseRemoteConfig-OpenFeature-Provider-Swift/actions/workflows/swift.yml)
# FirebaseRemoteConfig OpenFeature Provider for Swift
This is yet another OpenFeature provider for [Firebase RemoteConfig](https://firebase.google.com/docs/remote-config?hl=en).
## Installation
### Swift Package Manager
In dependencies section of Package.swift add:
```swift
dependencies: [
.package(
url: "[email protected]:fumito-ito/FirebaseRemoteConfig-OpenFeature-Provider-Swift.git",
.upToNextMajor(from: "0.0.1")
),
]
```and in the target dependencies section add:
```swift
.product(name: "FirebaseRemoteConfigOpenFeatureProvider", package: "FirebaseRemoteConfig-OpenFeature-Provider-Swift"),
```## Usage
Import the `FirebaseRemoteConfigOpenFeatureProvider` and `OpenFeature` modules.
```swift
import FirebaseRemoteConfigOpenFeatureProvider
```Create and set provider.
```swift
let provider = FirebaseRemoteConfigOpenFeatureProvider(remoteConfig: RemoteConfig.remoteConfig())
let context = MutableContext(targetingKey: "your_targeting_key", structure: MutableStructure())
OpenFeatureAPI.shared.setProvider(provider: provider, initialContext: context)
```## Contributing
Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.Please make sure to update tests as appropriate.
## License
[Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/)