Skip to content

Commit 77fecbf

Browse files
NickGerlemanmeta-codesync[bot]
authored andcommitted
Remove CocoaPods Support (#1877)
Summary: Pull Request resolved: #1877 CocoaPods is deprecated, and the repository is going read-only by the end of the year. This change removes the logic for the version of Yoga we have been publishing to CocoaPods trunk. https://cocoapods.org/pods/Yoga This change does not effect React Native, which keeps its own Yoga podspec. The mainline Yoga repo keeps a continually validated SwiftPM build, that should be used for new versions of Yoga. Reviewed By: cortinico, cipolleschi Differential Revision: D93553409 fbshipit-source-id: 5df4f0222fa53c2388ee227c3e22514fec794177
1 parent 9753cae commit 77fecbf

6 files changed

Lines changed: 3 additions & 102 deletions

File tree

.github/actions/setup-apple/action.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ name: Setup Apple envirionment
33
runs:
44
using: "composite"
55
steps:
6-
# TODO: This and Ruby should be versioned
7-
- name: Install Cocoapods
8-
shell: bash
9-
run: sudo gem install cocoapods
10-
116
- uses: maxim-lobanov/setup-xcode@v1
127
with:
138
xcode-version: 26.2

.github/workflows/publish-cocoapods-release.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Validate Apple
1+
name: Validate SwiftPM
22

33
on:
44
pull_request:
@@ -9,21 +9,8 @@ on:
99
workflow_dispatch:
1010

1111
jobs:
12-
lint-pods:
13-
name: Build [CocoaPods]
14-
runs-on: macos-latest
15-
16-
steps:
17-
- uses: actions/checkout@v3
18-
19-
- name: Setup
20-
uses: ./.github/actions/setup-apple
21-
22-
- name: pod lib lint
23-
run: pod lib lint --verbose --include-podspecs=**/*.podspec
24-
2512
test:
26-
name: Build [SwiftPM]
13+
name: Build
2714
runs-on: macos-latest
2815

2916
steps:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Yoga [![CocoaPods](https://img.shields.io/cocoapods/v/Yoga.svg)](http://cocoapods.org/pods/Yoga) [![npm](https://img.shields.io/npm/v/yoga-layout.svg)](https://www.npmjs.com/package/yoga-layout) [![Maven Central](https://img.shields.io/maven-central/v/com.facebook.yoga/yoga)](https://search.maven.org/artifact/com.facebook.yoga/yoga) ![SPM](https://img.shields.io/badge/SPM-Supported-blue.svg)
1+
# Yoga [![npm](https://img.shields.io/npm/v/yoga-layout.svg)](https://www.npmjs.com/package/yoga-layout) [![Maven Central](https://img.shields.io/maven-central/v/com.facebook.yoga/yoga)](https://search.maven.org/artifact/com.facebook.yoga/yoga) ![SPM](https://img.shields.io/badge/SPM-Supported-blue.svg)
22

33
Yoga is an embeddable and performant flexbox layout engine with bindings for multiple languages.
44

Yoga.podspec

Lines changed: 0 additions & 50 deletions
This file was deleted.

set-version.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,3 @@
3535
f.seek(0)
3636
f.truncate()
3737
f.write(new_contents)
38-
39-
with open("Yoga.podspec", "r+") as f:
40-
new_contents = re.sub(
41-
r"spec\.version = '.*'", f"spec.version = '{version}'", f.read()
42-
)
43-
f.seek(0)
44-
f.truncate()
45-
f.write(new_contents)

0 commit comments

Comments
 (0)