Skip to content

Commit b3e283b

Browse files
authored
Initial commit
0 parents  commit b3e283b

14 files changed

+455
-0
lines changed

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: monthly
7+
commit-message:
8+
prefix: 'ci(Deps): '
9+
10+
- package-ecosystem: npm
11+
directory: /
12+
schedule:
13+
interval: monthly
14+
commit-message:
15+
prefix: 'ci(Deps): '

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI/CD
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
schedule:
9+
- cron: '0 0 * * *'
10+
11+
concurrency:
12+
group: ci/cd-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
cocoapods-test:
17+
name: CocoaPods
18+
uses: SwiftyLab/ci/.github/workflows/cocoapods.yml@main
19+
strategy:
20+
matrix:
21+
platforms: ['macos', 'ios', 'tvos']
22+
# platforms: ['macos tvos', 'ios', 'watchos']
23+
with:
24+
platforms: ${{ matrix.platforms }}

.gitignore

Lines changed: 211 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,211 @@
1+
# Xcode
2+
#
3+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4+
5+
## User settings
6+
xcuserdata/
7+
8+
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
9+
*.xcscmblueprint
10+
*.xccheckout
11+
12+
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
13+
build/
14+
DerivedData/
15+
*.moved-aside
16+
*.pbxuser
17+
!default.pbxuser
18+
*.mode1v3
19+
!default.mode1v3
20+
*.mode2v3
21+
!default.mode2v3
22+
*.perspectivev3
23+
!default.perspectivev3
24+
25+
## Obj-C/Swift specific
26+
*.hmap
27+
28+
# OS generated files #
29+
######################
30+
.DS_Store
31+
.DS_Store?
32+
._*
33+
.Spotlight-V100
34+
.Trashes
35+
ehthumbs.db
36+
Thumbs.db
37+
38+
## App packaging
39+
*.ipa
40+
*.dSYM.zip
41+
*.dSYM
42+
43+
## Playgrounds
44+
timeline.xctimeline
45+
playground.xcworkspace
46+
47+
# Swift Package Manager
48+
#
49+
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
50+
# Packages/
51+
# Package.pins
52+
# Package.resolved
53+
# *.xcodeproj
54+
#
55+
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
56+
# hence it is not needed unless you have added a package configuration file to your project
57+
# .swiftpm
58+
59+
.build/
60+
Sources/
61+
Tests/
62+
63+
# CocoaPods
64+
#
65+
# We recommend against adding the Pods directory to your .gitignore. However
66+
# you should judge for yourself, the pros and cons are mentioned at:
67+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
68+
#
69+
# Pods/
70+
#
71+
# Add this line if you want to avoid checking in source code from the Xcode workspace
72+
# *.xcworkspace
73+
74+
# Carthage
75+
#
76+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
77+
# Carthage/Checkouts
78+
79+
Carthage/Build/
80+
81+
# Accio dependency management
82+
Dependencies/
83+
.accio/
84+
85+
# fastlane
86+
#
87+
# It is recommended to not store the screenshots in the git repo.
88+
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
89+
# For more information about the recommended setup visit:
90+
# https://docs.fastlane.tools/best-practices/source-control/#source-control
91+
92+
fastlane/report.xml
93+
fastlane/Preview.html
94+
fastlane/screenshots/**/*.png
95+
fastlane/test_output
96+
97+
# Code Injection
98+
#
99+
# After new code Injection tools there's a generated folder /iOSInjectionProject
100+
# https://github.com/johnno1962/injectionforxcode
101+
102+
iOSInjectionProject/
103+
104+
## Node-Js ignores
105+
# Logs
106+
logs
107+
*.log
108+
npm-debug.log*
109+
yarn-debug.log*
110+
yarn-error.log*
111+
lerna-debug.log*
112+
113+
# Diagnostic reports (https://nodejs.org/api/report.html)
114+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
115+
116+
# Runtime data
117+
pids
118+
*.pid
119+
*.seed
120+
*.pid.lock
121+
122+
# Directory for instrumented libs generated by jscoverage/JSCover
123+
lib-cov
124+
125+
# Coverage directory used by tools like istanbul
126+
coverage
127+
*.lcov
128+
129+
# nyc test coverage
130+
.nyc_output
131+
132+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
133+
.grunt
134+
135+
# Bower dependency directory (https://bower.io/)
136+
bower_components
137+
138+
# node-waf configuration
139+
.lock-wscript
140+
141+
# Compiled binary addons (https://nodejs.org/api/addons.html)
142+
build/Release
143+
144+
# Dependency directories
145+
node_modules/
146+
jspm_packages/
147+
148+
# TypeScript v1 declaration files
149+
typings/
150+
151+
# TypeScript cache
152+
*.tsbuildinfo
153+
154+
# Optional npm cache directory
155+
.npm
156+
157+
# Optional eslint cache
158+
.eslintcache
159+
160+
# Microbundle cache
161+
.rpt2_cache/
162+
.rts2_cache_cjs/
163+
.rts2_cache_es/
164+
.rts2_cache_umd/
165+
166+
# Optional REPL history
167+
.node_repl_history
168+
169+
# Output of 'npm pack'
170+
*.tgz
171+
172+
# Yarn Integrity file
173+
.yarn-integrity
174+
175+
# dotenv environment variables file
176+
.env
177+
.env.test
178+
179+
# parcel-bundler cache (https://parceljs.org/)
180+
.cache
181+
182+
# Next.js build output
183+
.next
184+
185+
# Nuxt.js build / generate output
186+
.nuxt
187+
dist
188+
189+
# Gatsby files
190+
.cache/
191+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
192+
# https://nextjs.org/blog/next-9-1#public-directory-support
193+
# public
194+
195+
# vuepress build output
196+
.vuepress/dist
197+
198+
# Serverless directories
199+
.serverless/
200+
201+
# FuseBox cache
202+
.fusebox/
203+
204+
# DynamoDB Local files
205+
.dynamodb/
206+
207+
# TernJS port file
208+
.tern-port
209+
210+
# NPM package lock
211+
package-lock.json

CollectionsLib.podspec

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Pod::Spec.new do |s|
2+
require_relative 'utils/spec'
3+
s.extend SwiftCollections::Spec
4+
s.module_name = 'Collections'
5+
s.define
6+
7+
s.dependency 'DequeModule', "= #{s.version}"
8+
s.dependency 'OrderedCollections', "= #{s.version}"
9+
end

DequeModule.podspec

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Pod::Spec.new do |s|
2+
require_relative 'utils/spec'
3+
s.extend SwiftCollections::Spec
4+
s.define
5+
6+
s.test_spec do |ts|
7+
ts.source_files = "Tests/DequeTests/**/*.swift"
8+
ts.dependency '_CollectionsTestSupport', "= #{s.version}"
9+
end
10+
end

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 SwiftyLab
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

OrderedCollections.podspec

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Pod::Spec.new do |s|
2+
require_relative 'utils/spec'
3+
s.extend SwiftCollections::Spec
4+
s.define
5+
6+
s.test_spec do |ts|
7+
ts.source_files = "Tests/#{s.name}Tests/**/*.swift"
8+
ts.dependency '_CollectionsTestSupport', "= #{s.version}"
9+
end
10+
end

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SwiftCollections
2+
3+
Unofficial CocoaPods pod for the [swift-collections](https://github.com/apple/swift-collections) library.

SwiftyCollections.podspec

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Pod::Spec.new do |s|
2+
require_relative 'utils/spec'
3+
s.extend SwiftCollections::Spec
4+
s.define(false)
5+
6+
s.default_subspec = 'Collections'
7+
s.subspec 'Collections' do |ss|
8+
ss.dependency 'CollectionsLib', "= #{s.version}"
9+
end
10+
11+
s.subspec 'DequeModule' do |ss|
12+
ss.dependency 'DequeModule', "= #{s.version}"
13+
end
14+
15+
s.subspec 'OrderedCollections' do |ss|
16+
ss.dependency 'OrderedCollections', "= #{s.version}"
17+
end
18+
end

_CollectionsTestSupport.podspec

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Pod::Spec.new do |s|
2+
require_relative 'utils/spec'
3+
s.extend SwiftCollections::Spec
4+
s.define
5+
6+
s.frameworks = "XCTest"
7+
s.test_spec do |ts|
8+
ts.source_files = "Tests/CollectionsTestSupportTests/**/*.swift"
9+
end
10+
end

package.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "SwiftCollections",
3+
"version": "1.0.4",
4+
"summary": "Swift Collections is an open-source package of data structure implementations for the Swift programming language.",
5+
"description": "Unofficial pod for the swift-collections library.",
6+
"homepage": "https://github.com/apple/swift-collections",
7+
"license": "Apache License, Version 2.0",
8+
"author": {
9+
"name": "Soumya Ranjan Mahunt",
10+
"email": "soumya.mahunt@gmail.com",
11+
"url": "https://twitter.com/soumya_mahunt"
12+
},
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/apple/swift-collections.git"
16+
},
17+
"private": true,
18+
"dependencies": {
19+
"fs-extra": "^11.1.0",
20+
"swiftylab-ci": "github:SwiftyLab/ci"
21+
},
22+
"scripts": {
23+
"prepare": "node utils/setup.js",
24+
"push": "node utils/push.js",
25+
"pod-lint": "npm exec --package=swiftylab-ci -- pod-lint.js"
26+
}
27+
}

utils/push.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env node
2+
const { execSync } = require('child_process');
3+
const core = require('@actions/core');
4+
5+
core.startGroup(`Preparing push to CocoapPods trunk`);
6+
execSync('npm install', {
7+
stdio: ['inherit', 'inherit', 'inherit'],
8+
encoding: 'utf-8'
9+
}
10+
);
11+
core.endGroup();
12+
13+
[
14+
'_CollectionsTestSupport.podspec',
15+
'DequeModule.podspec',
16+
'OrderedCollections.podspec',
17+
'CollectionsLib.podspec',
18+
'SwiftyCollections.podspec',
19+
].forEach((spec) => {
20+
core.startGroup(`Pushing ${spec} to CocoapPods trunk`);
21+
execSync(`pod trunk push --allow-warnings --synchronous --skip-tests --verbose ${spec}`, {
22+
stdio: ['inherit', 'inherit', 'inherit'],
23+
encoding: 'utf-8'
24+
}
25+
);
26+
core.endGroup();
27+
});

0 commit comments

Comments
 (0)