To get started, open the project in Xcode and build by Product -> Build.
OpenFeature is not keen on vendor-specific stuff in this library, but if there are changes that need to happen in the spec to enable vendor-specific stuff in user code or other extension points, check out the spec.
Code is automatically linted during build in Xcode, if you need to manually lint:
brew install swiftlint
swiftlintYou can automatically format your code using:
./scripts/swift-formatswift testThe project includes CocoaPods support via the OpenFeature.podspec file. When making changes:
- The version in the podspec is automatically updated from
version.txtduring the release process - To validate the podspec locally, run:
pod spec lint OpenFeature.podspec --allow-warnings
- The CocoaPods validation and publishing is handled automatically via GitHub workflows on release
For information on regenerating the CocoaPods trunk token used in CI/CD, see the "CocoaPods Release Token Management" section in OWNERS.md.