You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,4 +23,19 @@ You can automatically format your code using:
23
23
24
24
```shell
25
25
swift test
26
-
```
26
+
```
27
+
28
+
### Maintaining CocoaPods Integration
29
+
30
+
The project includes CocoaPods support via the `OpenFeature.podspec` file. When making changes:
31
+
32
+
1. The version in the podspec is automatically updated from `version.txt` during the release process
33
+
2. To validate the podspec locally, run:
34
+
```shell
35
+
pod spec lint OpenFeature.podspec --allow-warnings
36
+
```
37
+
3. The CocoaPods validation and publishing is handled automatically via GitHub workflows on release
38
+
39
+
#### Token Management
40
+
41
+
For information on regenerating the CocoaPods trunk token used in CI/CD, see the "CocoaPods Release Token Management" section in [OWNERS.md](OWNERS.md).
Copy file name to clipboardExpand all lines: OWNERS.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,3 +8,32 @@
8
8
- Mattias Frånberg (mfranberg, Spotify)
9
9
- Alina Andersone (alina-v1, Spotify)
10
10
- Brian Hackett (Calibretto, Spotify)
11
+
12
+
## CocoaPods Release Token Management
13
+
14
+
The automated CocoaPods releases require a valid trunk token that expires every 128 days (~4 months). When the token expires, a core developer needs to update the `COCOAPODS_TRUNK_TOKEN` repository secret.
15
+
16
+
### Getting a New Token
17
+
18
+
1. Install CocoaPods if not already installed:
19
+
```bash
20
+
gem install cocoapods
21
+
```
22
+
23
+
2. Register with CocoaPods trunk to generate a new token:
24
+
```bash
25
+
pod trunk register openfeature-core@groups.io 'OpenFeature' --description='OpenFeature Deployment User'
26
+
```
27
+
28
+
3. Check your email and click the verification link (check https://groups.io/g/openfeature-core for the email)
29
+
30
+
4. Extract the token from your local configuration:
31
+
```bash
32
+
cat ~/.netrc
33
+
```
34
+
Look for the `password` field
35
+
36
+
### Updating the GitHub Secret
37
+
38
+
1. Go to the repository settings: `Settings` → `Secrets and variables` → `Actions`
39
+
2. Find the existing `COCOAPODS_TRUNK_TOKEN` secret and update it
OpenFeature is an open specification that provides a vendor-agnostic, community-driven API for feature flagging that works with your favorite feature flag management tool or in-house solution.
0 commit comments