Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Remove Cocoapods support #1696

Merged
merged 3 commits into from
Jan 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,6 @@ jobs:
- name: Send codecov
run: bash <(curl https://codecov.io/bash)

cocoapods:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: CocoaPods
run: set -o pipefail && env NSUnbufferedIO=YES pod lib lint --allow-warnings --verbose --skip-import-validation
env:
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}

assets:
runs-on: macos-11
env:
Expand Down
17 changes: 0 additions & 17 deletions .github/workflows/release-automated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,6 @@ jobs:
id: tag
run: echo "::set-output name=current_tag::$(git describe --tags --abbrev=0 --exact-match || echo '')"

cocoapods:
needs: release
if: needs.release.outputs.current_tag != ''
runs-on: macos-11
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: ${{ needs.release.outputs.current_tag }}
- name: CocoaPods
run: set -o pipefail && env NSUnbufferedIO=YES pod lib lint --allow-warnings --verbose
- name: Deploy CocoaPods
run: set -o pipefail && env NSUnbufferedIO=YES pod trunk push Parse.podspec --allow-warnings --verbose
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}

assets:
needs: release
if: needs.release.outputs.current_tag != ''
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/release-manual-cocoapods.yml

This file was deleted.

256 changes: 0 additions & 256 deletions Parse.podspec

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
[![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)
[![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)

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

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

## Getting Started

#### Swift Package Manager
The easiest way to install the SDK is via Swift Package Manager.

1. Open Xcode > File > Add packages...
2. Add the following package URL:
Expand Down
24 changes: 0 additions & 24 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ module Constants
script_folder = File.expand_path(File.dirname(__FILE__))

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

PLISTS = [
File.join(script_folder, 'Parse', 'Parse', 'Resources', 'Parse-iOS.Info.plist'),
Expand Down Expand Up @@ -62,12 +61,6 @@ module Constants
PLISTS.each do |plist|
update_info_plist_version(plist, version)
end

podspec_file = File.open(PARSE_PODSPEC, 'r+')
podspec = podspec_file.read
podspec.gsub!(/(.*s.version\s*=\s*')(.*)(')/, "\\1#{version}\\3")
podspec_file.seek(0)
podspec_file.write(podspec)
end

def self.update_info_plist_version(plist_path, version)
Expand Down Expand Up @@ -704,21 +697,4 @@ namespace :test do
end
end
end

desc 'Run Podspec Lint'
task :cocoapods do |_|
podspecs = ['Parse.podspec']
results = []
system("pod repo update --silent")
podspecs.each do |podspec|
results << system("pod lib lint #{podspec} --allow-warnings")
results << system("pod lib lint #{podspec} --allow-warnings --use-libraries --use-modular-headers")
end
results.each do |result|
unless result
puts 'Podspec Tests Failed!'
exit(1)
end
end
end
end
2 changes: 1 addition & 1 deletion release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async function config() {
'npmPublish': false,
}],
['@semantic-release/git', {
assets: [changelogFile, 'package.json', 'package-lock.json', 'Parse.podspec', ['Parse*/**/*.{h,plist}', '!**/xcuserdata/**'] ],
assets: [changelogFile, 'package.json', 'package-lock.json', ['Parse*/**/*.{h,plist}', '!**/xcuserdata/**'] ],
}],
['@semantic-release/github', {
successComment: getReleaseComment(),
Expand Down