Skip to content

Commit 4eb872d

Browse files
authoredMar 16, 2023
fix: Release cocoapods (#82)
* fix: Release cocoapods * add changelog * update readme
1 parent 6e81c2f commit 4eb872d

File tree

11 files changed

+50
-31
lines changed

11 files changed

+50
-31
lines changed
 

‎.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ jobs:
250250
- name: CocoaPods
251251
run: pod lib lint --allow-warnings
252252
env:
253-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
253+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
254254

255255
carthage:
256256
timeout-minutes: 25

‎.github/workflows/release.yml

+17-17
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ env:
77
CI_XCODE_LATEST: '/Applications/Xcode_14.2.app/Contents/Developer'
88

99
jobs:
10-
# cocoapods:
11-
# runs-on: macos-latest
12-
# steps:
13-
# - uses: actions/checkout@v3
14-
# - name: Get release version
15-
# run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
16-
# - name: Use multiple cores
17-
# run: defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
18-
# - name: Update Framework Version
19-
# run: ./Scripts/update_build
20-
# env:
21-
# BUILD_VERSION: ${{ env.TAG }}
22-
# - name: Deploy CocoaPods
23-
# run: set -o pipefail && env NSUnbufferedIO=YES pod trunk push ParseSwift.podspec --allow-warnings --verbose
24-
# env:
25-
# COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
26-
# DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
10+
cocoapods:
11+
runs-on: macos-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Get release version
15+
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
16+
- name: Use multiple cores
17+
run: defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
18+
- name: Update Framework Version
19+
run: ./Scripts/update_build
20+
env:
21+
BUILD_VERSION: ${{ env.TAG }}
22+
- name: Deploy CocoaPods
23+
run: set -o pipefail && env NSUnbufferedIO=YES pod trunk push ParseSwiftOG.podspec --allow-warnings --verbose
24+
env:
25+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
26+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
2727

2828
docs:
2929
runs-on: macos-latest

‎CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22
# Parse-Swift Changelog
33

44
### main
5-
[Full Changelog](https://github.com/netreconlab/Parse-Swift/compare/5.3.0...main), [Documentation](https://swiftpackageindex.com/netreconlab/Parse-Swift/main/documentation/parseswift)
5+
[Full Changelog](https://github.com/netreconlab/Parse-Swift/compare/5.3.1...main), [Documentation](https://swiftpackageindex.com/netreconlab/Parse-Swift/main/documentation/parseswift)
66
* _Contributing to this repo? Add info about your change here to be included in the next release_
77

8+
### 5.3.1
9+
[Full Changelog](https://github.com/netreconlab/Parse-Swift/compare/5.3.0...5.3.1), [Documentation](https://swiftpackageindex.com/netreconlab/Parse-Swift/5.3.1/documentation/parseswift)
10+
11+
__Fixes__
12+
* Release as ParseSwiftOG on cocoapods ([#82](https://github.com/netreconlab/Parse-Swift/pull/82)), thanks to [Corey Baker](https://github.com/cbaker6).
13+
814
### 5.3.0
915
[Full Changelog](https://github.com/netreconlab/Parse-Swift/compare/5.2.0...5.3.0), [Documentation](https://swiftpackageindex.com/netreconlab/Parse-Swift/5.3.0/documentation/parseswift)
1016

‎ParseSwift.podspec ‎ParseSwiftOG.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
2-
s.name = "ParseSwift"
3-
s.version = "1.0.0"
2+
s.name = "ParseSwiftOG"
3+
s.version = "5.3.0"
44
s.summary = "The original Parse Swift SDK"
55
s.homepage = "https://github.com/netreconlab/Parse-Swift"
66
s.authors = {

‎ParseSwift.podtemplate ‎ParseSwiftOG.podtemplate

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Pod::Spec.new do |s|
2-
s.name = "ParseSwift"
2+
s.name = "ParseSwiftOG"
33
s.version = "[[VERSION]]"
44
s.summary = "The original Parse Swift SDK"
55
s.homepage = "https://github.com/netreconlab/Parse-Swift"
@@ -14,7 +14,7 @@ Pod::Spec.new do |s|
1414
s.osx.deployment_target = "10.15"
1515
s.tvos.deployment_target = "13.0"
1616
s.watchos.deployment_target = "6.0"
17-
s.swift_versions = ['5.3', '5.4', '5.5', '5.6']
17+
s.swift_versions = ['5.5', '5.6', '5.7']
1818
s.source_files = "Sources/ParseSwift/**/*.swift"
1919
s.license = {
2020
:type => "Apache 2.0",

‎README.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
[![Build Status Release](https://github.com/netreconlab/Parse-Swift/workflows/release/badge.svg)](https://github.com/netreconlab/Parse-Swift/actions?query=workflow%3Arelease)
1313
[![Coverage](https://codecov.io/gh/netreconlab/Parse-Swift/branch/main/graph/badge.svg)](https://codecov.io/gh/netreconlab/Parse-Swift/branches)
1414
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/403b74d0f2514e288b0a1b2e52b6d841)](https://www.codacy.com/gh/netreconlab/Parse-Swift/dashboard?utm_source=github.com&utm_medium=referral&utm_content=netreconlab/Parse-Swift&utm_campaign=Badge_Grade)
15+
[![Pod](https://img.shields.io/cocoapods/v/ParseSwiftOG.svg)](https://cocoapods.org/pods/ParseSwiftOG)
1516
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)][license-link]
1617
![Xcode 13.3+](https://img.shields.io/badge/xcode-13.3%2B-blue.svg)
1718
[![Swift Versions](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fnetreconlab%2FParse-Swift%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/netreconlab/Parse-Swift)
@@ -85,7 +86,19 @@ search field.
8586
Add the following line to your Podfile:
8687

8788
```ruby
88-
pod 'ParseSwift', :git => 'https://github.com/netreconlab/Parse-Swift.git', :branch => 'main'
89+
pod 'ParseSwiftOG'
90+
```
91+
92+
To link to the latest updates on the main branch, add the following line to your Podfile:
93+
94+
```ruby
95+
pod 'ParseSwiftOG', :git => 'https://github.com/netreconlab/Parse-Swift.git', :branch => 'main'
96+
```
97+
98+
In your projects, use:
99+
100+
```swift
101+
import ParseSwiftOG
89102
```
90103

91104
### [Carthage](https://github.com/carthage/carthage)

‎Scripts/update_build

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

33
# Prepare podspec update
4-
TEMPLATE_FILE_NAME="ParseSwift.podtemplate"
5-
OUT_FILE_NAME="ParseSwift.podspec"
4+
TEMPLATE_FILE_NAME="ParseSwiftOG.podtemplate"
5+
OUT_FILE_NAME="ParseSwiftOG.podspec"
66

77
# Load the template podspec and replace version
88
TEMPLATE=$(cat "$TEMPLATE_FILE_NAME" | sed "s/\[\[VERSION\]\]/${BUILD_VERSION}/g")

‎Sources/ParseSwift/Extensions/URLSession.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ internal extension URLSession {
287287
var task: URLSessionTask?
288288
if let data = data {
289289
do {
290-
task = try ParseSwift
290+
task = try Parse
291291
.configuration
292292
.parseFileTransfer
293293
.upload(with: request,
@@ -309,7 +309,7 @@ internal extension URLSession {
309309
}
310310
} else if let file = file {
311311
do {
312-
task = try ParseSwift
312+
task = try Parse
313313
.configuration
314314
.parseFileTransfer
315315
.upload(with: request,

‎Sources/ParseSwift/ParseConstants.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Foundation
1010

1111
enum ParseConstants {
1212
static let sdk = "swift"
13-
static let version = "5.3.0"
13+
static let version = "5.3.1"
1414
static let fileManagementDirectory = "parse/"
1515
static let fileManagementPrivateDocumentsDirectory = "Private Documents/"
1616
static let fileManagementLibraryDirectory = "Library/"

‎Sources/ParseSwift/Types/ParseFile.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ extension ParseFile {
169169
}
170170

171171
func checkDownloadsForFile(options: API.Options) throws -> ParseFile? {
172-
var cachePolicy: URLRequest.CachePolicy = ParseSwift.configuration.requestCachePolicy
172+
var cachePolicy: URLRequest.CachePolicy = Parse.configuration.requestCachePolicy
173173
var shouldBreak = false
174174
for option in options {
175175
switch option {

‎Tests/ParseSwiftTests/InitializeSDKTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class InitializeSDKTests: XCTestCase {
2323
var objectId: String?
2424
var createdAt: Date?
2525
var updatedAt: Date?
26-
var ACL: ParseSwift.ParseACL?
26+
var ACL: ParseACL?
2727
}
2828

2929
struct Installation: ParseInstallation {

0 commit comments

Comments
 (0)
Please sign in to comment.