Skip to content

WIP: Swift Package Manage Support #1659

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

Closed
wants to merge 20 commits into from
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
37 changes: 2 additions & 35 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,40 +1,7 @@
## OS X
.DS_Store

## Build generated
build/
DerivedData
OCMock.framework

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata

## Other
*.xccheckout
*.moved-aside
*.xcuserstate
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa

## Dependency Managers
Pods/
Carthage/Build
Carthage/Checkouts
docs/
./Bolts
.swiftpm
.build

## AppCode
.idea/
ParseFacebookUtils/Vendor
ParseUI/Vendor
12 changes: 0 additions & 12 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,12 +0,0 @@
[submodule "Vendor/xctoolchain"]
path = Vendor/xctoolchain
url = https://github.com/parse-community/xctoolchain.git
[submodule "Carthage/Checkouts/Bolts-ObjC"]
path = Carthage/Checkouts/Bolts-ObjC
url = https://github.com/BoltsFramework/Bolts-ObjC.git
[submodule "Carthage/Checkouts/facebook-objc-sdk"]
path = Carthage/Checkouts/facebook-objc-sdk
url = https://github.com/facebook/facebook-objc-sdk.git
[submodule "Carthage/Checkouts/OCMock"]
path = Carthage/Checkouts/OCMock
url = https://github.com/erikdoe/OCMock.git
87 changes: 87 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
language: objective-c
os: osx
osx_image: xcode11.6
branches:
only:
- master
- /^v?[0-9]+\.[0-9]+\.[0-9]+(-.*)?$/
cache:
directories:
- vendor/bundle

jobs:
include:
- stage: release
env: Deployment
install:
- bundle config set path 'vendor/bundle'
- travis_wait bundle install
script:
- bundle exec rake package:release
deploy:
- provider: releases
token:
secure: m7YayvmctH5lyHj13EV2j898P5xfEfN/ZvFm2gL/xveTNOGaET1O4ZmGmHApxC2QwIZvtwmO3U9pmB4XVVQ7kIlTsl01h84y8gx1XQqEKoQINcaVaNCsh9EdxAqj08aiwe/1dp8W8rI/ptOrxzWJDWcxKx5tMIbBzctGeL3GDKphVvD44s43oosqQCKzP+qHiI6rRRxu+0QccdbTagwd0X/yaLZ0IbTo35hWFEyJ6NfJnmCW/lNwWj86YksLCZx0eKdxUSQlIhnm0upTyowudt9bv8vSdEYi2AtRKoana/X53593O8RAVEc+S6NgMmeQ1/ZD1eDeyYLzN/z21EHb4yiwTnMUUhDBMTn8KKTiiSVDQOfAyRwtKF+1qN2iDr9Dh3A8+dCxOxJJpIPImZimt8KMCKB9WTtnJhvIoMCDpc8l29XM/oBxjCiBFxPClb9CZ74T5b+xl+yIqy2u8RiaZ1Va5vmWjMSXDsGHoZ0rJTOBkBBhyr+47yIw2VeY2z2q5hiALV3DnE5Esxyddhw7OXNZcvKriujnxcTOJwphm4XBMI/3rSH27uz7AaNdUHfTwaKqimPR06Kdv65hKmFuA5p/GuRdSYfYASvXYYrPjqKkst1FP6sWjJtpXvZIT/06RXDbGXZ6LB3TFHpOahPy8ID746OyBKgWzOB3ZCNmFCk=
file_glob: true
file: build/release/*
skip_cleanup: true
on:
tags: true
all_branches: true
- stage: release
env: Facebook_Utils
install:
- bundle config set path 'vendor/bundle'
- travis_wait bundle install
script:
- bundle exec rake test:facebook_utils:ios
after_script:
- bash <(curl -s https://codecov.io/bash)
- stage: release
env: Twitter_Utils
install:
- bundle config set path 'vendor/bundle'
- travis_wait bundle install
script:
- bundle exec rake test:twitter_utils:ios
after_script:
- bash <(curl -s https://codecov.io/bash)
- stage: release
env: ParseUI
install:
- bundle config set path 'vendor/bundle'
- travis_wait bundle install
script:
- bundle exec rake test:parseui:all
after_script:
- bash <(curl -s https://codecov.io/bash)
- stage: release
env: Cocoapods
install:
- bundle config set path 'vendor/bundle'
- travis_wait bundle install
script:
- bundle exec pod setup
- travis_wait bundle exec pod lib lint --allow-warnings
deploy:
- provider: script
skip_cleanup: true
script: travis_wait bundle exec pod trunk push Parse.podspec --allow-warnings
on:
tags: true
all_branches: true
- stage: release
env: Docs
install:
- bundle config set path 'vendor/bundle'
- travis_wait bundle install
script:
- ./Scripts/jazzy.sh
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: ./docs/
on:
all_branches: true
tags: true
2 changes: 0 additions & 2 deletions Cartfile

This file was deleted.

2 changes: 0 additions & 2 deletions Cartfile.resolved

This file was deleted.

1 change: 0 additions & 1 deletion Carthage/Checkouts/Bolts-ObjC
Submodule Bolts-ObjC deleted from 74b67b
1 change: 0 additions & 1 deletion Carthage/Checkouts/OCMock
Submodule OCMock deleted from 4a49eb
1 change: 0 additions & 1 deletion Carthage/Checkouts/facebook-objc-sdk
Submodule facebook-objc-sdk deleted from cdb8c7
7 changes: 0 additions & 7 deletions Gemfile

This file was deleted.

118 changes: 0 additions & 118 deletions Gemfile.lock

This file was deleted.

25 changes: 25 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"object": {
"pins": [
{
"package": "Bolts",
"repositoryURL": "https://github.com/mman/Bolts-ObjC.git",
"state": {
"branch": "spm",
"revision": "280ce884d7c64aaf98f4f191b213dbaa0f854981",
"version": null
}
},
{
"package": "OCMock",
"repositoryURL": "https://github.com/erikdoe/ocmock.git",
"state": {
"branch": "master",
"revision": "afd2c6924e8a36cb872bc475248b978f743c6050",
"version": null
}
}
]
},
"version": 1
}
30 changes: 30 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "Parse",
platforms: [.iOS(.v9), .macOS(.v10_10), .tvOS(.v9), .watchOS(.v6)],
products: [
.library(
name: "Parse",
targets: ["Parse"]),
],
dependencies: [
.package(name: "Bolts", url: "https://github.com/mman/Bolts-ObjC.git", branch: "spm"),
.package(name: "OCMock", url: "https://github.com/erikdoe/ocmock.git", branch: "master")
],
targets: [
.target(
name: "Parse",
dependencies: ["Bolts"],
sources: ["src"],
publicHeadersPath: "include",
cSettings: [.headerSearchPath("include"), .headerSearchPath("src"), .headerSearchPath("src/internal")]),
.testTarget(
name: "ParseTests",
dependencies: ["Parse", "Bolts", "OCMock"],
cSettings: [.headerSearchPath("../../Sources/Parse/src/"), .headerSearchPath("../../Sources/Parse/src/internal")]),
]
)
Loading