Last active
September 2, 2018 02:01
-
-
Save YutoMizutani/7ccf98cc7ff67d012f178d679ef183b9 to your computer and use it in GitHub Desktop.
複数OSに対応したSwift oss library作成チュートリアル ref: https://qiita.com/YutoMizutani/items/20ed0ae2558dbd69f463
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github "ReactiveX/RxSwift" ~> 4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ExampleApp/ | |
├ ExampleApp.xcodeproj/ | |
├ ExampleApp.xcworkspace/ | |
├ ExampleApp/ | |
└ Podfile | |
RxBluetoothKit.xcodeproj/ | |
Source/ | |
Tests/ | |
└ Info.plist | |
docs/ | |
└ index.html | |
scripts/ | |
└ all-tests.sh | |
.gitignore | |
.jazzy.yaml | |
.swift-version | |
.swiftlint.yml | |
.travis.yml | |
Cartfile | |
Cartfile.private | |
Cartfile.resolved | |
LICENSE | |
Package.swift | |
README.md | |
RxBluetoothKit.podspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir <foo> | |
$ cd <foo> | |
$ git init | |
$ git flow init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ carthage update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<foo>.xcodeproj/ | |
Source/ | |
├ <foo>/ | |
│ └ <foo>.swift | |
└ Info.plist | |
Tests/ | |
├ <foo>Tests/ | |
│ └ <foo>Tests.swift | |
└ Info.plist | |
Carthage/ | |
.build/ | |
.gitignore | |
Cartfile | |
Cartfile.private | |
Cartfile.resolved | |
LICENSE | |
Package.swift | |
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ExampleApp/ | |
├ ExampleApp.xcodeproj/ | |
└ ExampleApp/ | |
<foo>.xcodeproj/ | |
Source/ | |
├ <foo>/ | |
│ └ <foo>.swift | |
└ Info.plist | |
Tests/ | |
├ <foo>Tests/ | |
│ └ <foo>Tests.swift | |
└ Info.plist | |
Carthage/ | |
.build/ | |
.gitignore | |
Cartfile | |
Cartfile.private | |
Cartfile.resolved | |
LICENSE | |
Package.swift | |
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pod spec create <foo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ExampleApp/ | |
├ ExampleApp.xcodeproj/ | |
├ ExampleApp.xcworkspace/ | |
├ ExampleApp/ | |
└ Podfile | |
<foo>.xcodeproj/ | |
Source/ | |
├ <foo>/ | |
│ └ <foo>.swift | |
└ Info.plist | |
Tests/ | |
├ <foo>Tests/ | |
│ └ <foo>Tests.swift | |
└ Info.plist | |
Carthage/ | |
.build/ | |
.gitignore | |
Cartfile | |
Cartfile.private | |
Cartfile.resolved | |
LICENSE | |
Package.swift | |
README.md | |
<foo>.podspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ echo 4.0 > .swift-version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ [sudo] gem install jazzy | |
$ touch .jazzy.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ jazzy -o docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ExampleApp/ | |
├ ExampleApp.xcodeproj/ | |
├ ExampleApp.xcworkspace/ | |
├ ExampleApp/ | |
└ Podfile | |
<foo>.xcodeproj/ | |
Source/ | |
├ <foo>/ | |
│ └ <foo>.swift | |
└ Info.plist | |
Tests/ | |
├ <foo>Tests/ | |
│ └ <foo>Tests.swift | |
└ Info.plist | |
docs/ | |
└ index.html | |
Carthage/ | |
.build/ | |
.jazzy.yml | |
.swift-version | |
.gitignore | |
Cartfile | |
Cartfile.private | |
Cartfile.resolved | |
LICENSE | |
Package.swift | |
README.md | |
<foo>.podspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install swiftlint | |
$ touch .swiftlint.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if which swiftlint >/dev/null; then | |
swiftlint | |
else | |
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ExampleApp/ | |
├ ExampleApp.xcodeproj/ | |
├ ExampleApp.xcworkspace/ | |
├ ExampleApp/ | |
└ Podfile | |
<foo>.xcodeproj/ | |
Source/ | |
├ <foo>/ | |
│ └ <foo>.swift | |
└ Info.plist | |
Tests/ | |
├ <foo>Tests/ | |
│ └ <foo>Tests.swift | |
└ Info.plist | |
docs/ | |
└ index.html | |
Carthage/ | |
.build/ | |
.jazzy.yml | |
.swift-version | |
.swiftlint.yml | |
.gitignore | |
Cartfile | |
Cartfile.private | |
Cartfile.resolved | |
LICENSE | |
Package.swift | |
README.md | |
<foo>.podspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ touch .travis.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir scripts | |
$ touch ./scripts/all-tests.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ExampleApp/ | |
├ ExampleApp.xcodeproj/ | |
├ ExampleApp.xcworkspace/ | |
├ ExampleApp/ | |
└ Podfile | |
<foo>.xcodeproj/ | |
Source/ | |
├ <foo>/ | |
│ └ <foo>.swift | |
└ Info.plist | |
Tests/ | |
├ <foo>Tests/ | |
│ └ <foo>Tests.swift | |
└ Info.plist | |
docs/ | |
└ index.html | |
Carthage/ | |
.build/ | |
.jazzy.yml | |
.swift-version | |
.swiftlint.yml | |
.gitignore | |
.travis.yml | |
Cartfile | |
Cartfile.private | |
Cartfile.resolved | |
LICENSE | |
Package.swift | |
README.md | |
<foo>.podspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ swift package init --type library |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Source/ | |
└ <foo>/ | |
└ test.swift | |
Tests/ | |
├ <foo>Tests/ | |
│ ├ <foo>Tests.swift | |
│ └ XCTestManifests.swift | |
└ LinuxMain.swift | |
.gitignore | |
Package.swift | |
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ swift build | |
$ swift package generate-xcodeproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<foo>.xcodeproj/ | |
Source/ | |
└ <foo>/ | |
└ test.swift | |
Tests/ | |
└ <foo>Tests/ | |
└ <foo>Tests.swift | |
.build/ | |
.gitignore | |
LICENSE | |
Package.swift | |
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<foo>.xcodeproj/ | |
Source/ | |
├ <foo>/ | |
│ └ <foo>.swift | |
└ Info.plist | |
Tests/ | |
├ <foo>Tests/ | |
│ └ <foo>Tests.swift | |
└ Info.plist | |
.build/ | |
.gitignore | |
LICENSE | |
Package.swift | |
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install carthage | |
$ touch Cartfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment