Skip to content

Commit dffb57c

Browse files
authored
Add podspec and update workflow yml to lint pod (#3)
1 parent 76aaedd commit dffb57c

File tree

8 files changed

+160
-20
lines changed

8 files changed

+160
-20
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: macos-11
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
# Setup Ruby and Bundler
18+
- name: Setup Ruby
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
bundler-cache: true
22+
23+
# Build
24+
- name: Build
25+
run: swift build -v
26+
27+
# Run Unit Tests
28+
- name: Run tests
29+
run: swift test -v
30+
31+
# Verify CocoaPods
32+
- name: Verify CocoaPods
33+
run: bundle exec pod lib lint

.github/workflows/swift.yml

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

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0.2

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"files.insertFinalNewline": true,
3+
"files.trimTrailingWhitespace": true
4+
}

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "https://rubygems.org"
2+
3+
# Cocoapods for iOS dependency management
4+
gem 'cocoapods'

Gemfile.lock

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.5)
5+
rexml
6+
activesupport (6.1.4.1)
7+
concurrent-ruby (~> 1.0, >= 1.0.2)
8+
i18n (>= 1.6, < 2)
9+
minitest (>= 5.1)
10+
tzinfo (~> 2.0)
11+
zeitwerk (~> 2.3)
12+
addressable (2.8.0)
13+
public_suffix (>= 2.0.2, < 5.0)
14+
algoliasearch (1.27.5)
15+
httpclient (~> 2.8, >= 2.8.3)
16+
json (>= 1.5.1)
17+
atomos (0.1.3)
18+
claide (1.0.3)
19+
cocoapods (1.11.2)
20+
addressable (~> 2.8)
21+
claide (>= 1.0.2, < 2.0)
22+
cocoapods-core (= 1.11.2)
23+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
24+
cocoapods-downloader (>= 1.4.0, < 2.0)
25+
cocoapods-plugins (>= 1.0.0, < 2.0)
26+
cocoapods-search (>= 1.0.0, < 2.0)
27+
cocoapods-trunk (>= 1.4.0, < 2.0)
28+
cocoapods-try (>= 1.1.0, < 2.0)
29+
colored2 (~> 3.1)
30+
escape (~> 0.0.4)
31+
fourflusher (>= 2.3.0, < 3.0)
32+
gh_inspector (~> 1.0)
33+
molinillo (~> 0.8.0)
34+
nap (~> 1.0)
35+
ruby-macho (>= 1.0, < 3.0)
36+
xcodeproj (>= 1.21.0, < 2.0)
37+
cocoapods-core (1.11.2)
38+
activesupport (>= 5.0, < 7)
39+
addressable (~> 2.8)
40+
algoliasearch (~> 1.0)
41+
concurrent-ruby (~> 1.1)
42+
fuzzy_match (~> 2.0.4)
43+
nap (~> 1.0)
44+
netrc (~> 0.11)
45+
public_suffix (~> 4.0)
46+
typhoeus (~> 1.0)
47+
cocoapods-deintegrate (1.0.5)
48+
cocoapods-downloader (1.5.1)
49+
cocoapods-plugins (1.0.0)
50+
nap
51+
cocoapods-search (1.0.1)
52+
cocoapods-trunk (1.6.0)
53+
nap (>= 0.8, < 2.0)
54+
netrc (~> 0.11)
55+
cocoapods-try (1.2.0)
56+
colored2 (3.1.2)
57+
concurrent-ruby (1.1.9)
58+
escape (0.0.4)
59+
ethon (0.15.0)
60+
ffi (>= 1.15.0)
61+
ffi (1.15.4)
62+
fourflusher (2.3.1)
63+
fuzzy_match (2.0.4)
64+
gh_inspector (1.1.3)
65+
httpclient (2.8.3)
66+
i18n (1.8.11)
67+
concurrent-ruby (~> 1.0)
68+
json (2.6.1)
69+
minitest (5.14.4)
70+
molinillo (0.8.0)
71+
nanaimo (0.3.0)
72+
nap (1.1.0)
73+
netrc (0.11.0)
74+
public_suffix (4.0.6)
75+
rexml (3.2.5)
76+
ruby-macho (2.5.1)
77+
typhoeus (1.4.0)
78+
ethon (>= 0.9.0)
79+
tzinfo (2.0.4)
80+
concurrent-ruby (~> 1.0)
81+
xcodeproj (1.21.0)
82+
CFPropertyList (>= 2.3.3, < 4.0)
83+
atomos (~> 0.1.3)
84+
claide (>= 1.0.2, < 2.0)
85+
colored2 (~> 3.1)
86+
nanaimo (~> 0.3.0)
87+
rexml (~> 3.2.4)
88+
zeitwerk (2.5.1)
89+
90+
PLATFORMS
91+
arm64-darwin
92+
x86_64-darwin
93+
94+
DEPENDENCIES
95+
cocoapods
96+
97+
BUNDLED WITH
98+
2.2.22

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let package = Package(
77
name: "swift-user-defaults",
88
platforms: [
99
.macOS(.v10_12),
10-
.iOS(.v10)
10+
.iOS(.v11)
1111
],
1212
products: [
1313
.library(name: "SwiftUserDefaults", targets: ["SwiftUserDefaults"]),

SwiftUserDefaults.podspec

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Pod::Spec.new do |s|
2+
s.name = "SwiftUserDefaults"
3+
s.version = "0.0.1"
4+
s.summary = "A series of Swift friendly utilities for Foundation's UserDefaults class"
5+
s.homepage = "https://github.com/cookpad/swift-user-defaults"
6+
s.license = { :type => "MIT", :file => "LICENSE.txt" }
7+
s.authors = { 'Liam Nichols' => '[email protected]', 'Ryan Paterson' => '[email protected]' }
8+
s.source = { :git => "https://github.com/cookpad/swift-user-defaults.git", :tag => "v#{s.version}" }
9+
s.source_files = "Sources/**/*.{swift}"
10+
s.swift_version = "5.3"
11+
12+
s.ios.deployment_target = '11.0'
13+
s.osx.deployment_target = '10.12'
14+
15+
# Run Unit Tests
16+
s.test_spec 'Tests' do |test_spec|
17+
test_spec.source_files = 'Tests/**/*.{swift}'
18+
end
19+
end

0 commit comments

Comments
 (0)