Skip to content

Commit 03b2220

Browse files
authored
refactor: Remove Cocoapods support (#1696)
1 parent 3db216c commit 03b2220

File tree

7 files changed

+2
-337
lines changed

7 files changed

+2
-337
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,6 @@ jobs:
158158
- name: Send codecov
159159
run: bash <(curl https://codecov.io/bash)
160160

161-
cocoapods:
162-
runs-on: macos-latest
163-
steps:
164-
- uses: actions/checkout@v2
165-
- name: CocoaPods
166-
run: set -o pipefail && env NSUnbufferedIO=YES pod lib lint --allow-warnings --verbose --skip-import-validation
167-
env:
168-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
169-
170161
assets:
171162
runs-on: macos-11
172163
env:

.github/workflows/release-automated.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,6 @@ jobs:
4343
id: tag
4444
run: echo "::set-output name=current_tag::$(git describe --tags --abbrev=0 --exact-match || echo '')"
4545

46-
cocoapods:
47-
needs: release
48-
if: needs.release.outputs.current_tag != ''
49-
runs-on: macos-11
50-
steps:
51-
- name: Checkout repository
52-
uses: actions/checkout@v2
53-
with:
54-
ref: ${{ needs.release.outputs.current_tag }}
55-
- name: CocoaPods
56-
run: set -o pipefail && env NSUnbufferedIO=YES pod lib lint --allow-warnings --verbose
57-
- name: Deploy CocoaPods
58-
run: set -o pipefail && env NSUnbufferedIO=YES pod trunk push Parse.podspec --allow-warnings --verbose
59-
env:
60-
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
61-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
62-
6346
assets:
6447
needs: release
6548
if: needs.release.outputs.current_tag != ''

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

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

Parse.podspec

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

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
[![Coverage](https://img.shields.io/codecov/c/github/parse-community/Parse-SDK-iOS-OSX/master.svg)](https://codecov.io/github/parse-community/Parse-SDK-iOS-OSX?branch=master)
1111
[![auto-release](https://img.shields.io/badge/%F0%9F%9A%80-auto--release-9e34eb.svg)](https://github.com/parse-community/Parse-SDK-iOS-OSX/releases)
1212

13-
![Platforms](http://img.shields.io/cocoapods/p/Parse.svg?style=flat)
1413
![SPM](https://img.shields.io/badge/Swift_Package_Manager-compatible-green?style=flat)
1514

1615
[![Backers on Open Collective](https://opencollective.com/parse-server/backers/badge.svg)][open-collective-link]
@@ -35,7 +34,7 @@ A library that gives you access to the powerful Parse Server backend from your i
3534

3635
## Getting Started
3736

38-
#### Swift Package Manager
37+
The easiest way to install the SDK is via Swift Package Manager.
3938

4039
1. Open Xcode > File > Add packages...
4140
2. Add the following package URL:

Rakefile

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ module Constants
2424
script_folder = File.expand_path(File.dirname(__FILE__))
2525

2626
PARSE_CONSTANTS_HEADER = File.join(script_folder, 'Parse', 'Parse', 'Source/PFConstants.h')
27-
PARSE_PODSPEC = File.join(script_folder, 'Parse.podspec')
2827

2928
PLISTS = [
3029
File.join(script_folder, 'Parse', 'Parse', 'Resources', 'Parse-iOS.Info.plist'),
@@ -62,12 +61,6 @@ module Constants
6261
PLISTS.each do |plist|
6362
update_info_plist_version(plist, version)
6463
end
65-
66-
podspec_file = File.open(PARSE_PODSPEC, 'r+')
67-
podspec = podspec_file.read
68-
podspec.gsub!(/(.*s.version\s*=\s*')(.*)(')/, "\\1#{version}\\3")
69-
podspec_file.seek(0)
70-
podspec_file.write(podspec)
7164
end
7265

7366
def self.update_info_plist_version(plist_path, version)
@@ -704,21 +697,4 @@ namespace :test do
704697
end
705698
end
706699
end
707-
708-
desc 'Run Podspec Lint'
709-
task :cocoapods do |_|
710-
podspecs = ['Parse.podspec']
711-
results = []
712-
system("pod repo update --silent")
713-
podspecs.each do |podspec|
714-
results << system("pod lib lint #{podspec} --allow-warnings")
715-
results << system("pod lib lint #{podspec} --allow-warnings --use-libraries --use-modular-headers")
716-
end
717-
results.each do |result|
718-
unless result
719-
puts 'Podspec Tests Failed!'
720-
exit(1)
721-
end
722-
end
723-
end
724700
end

release.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ async function config() {
8585
'npmPublish': false,
8686
}],
8787
['@semantic-release/git', {
88-
assets: [changelogFile, 'package.json', 'package-lock.json', 'Parse.podspec', ['Parse*/**/*.{h,plist}', '!**/xcuserdata/**'] ],
88+
assets: [changelogFile, 'package.json', 'package-lock.json', ['Parse*/**/*.{h,plist}', '!**/xcuserdata/**'] ],
8989
}],
9090
['@semantic-release/github', {
9191
successComment: getReleaseComment(),

0 commit comments

Comments
 (0)