Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 779f17d
Showing
18 changed files
with
953 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# OS X | ||
.DS_Store | ||
|
||
# Xcode | ||
build/ | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
xcuserdata/ | ||
*.xccheckout | ||
profile | ||
*.moved-aside | ||
DerivedData | ||
*.hmap | ||
*.ipa | ||
|
||
# Bundler | ||
.bundle | ||
|
||
Carthage | ||
# We recommend against adding the Pods directory to your .gitignore. However | ||
# you should judge for yourself, the pros and cons are mentioned at: | ||
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control | ||
# | ||
# Note: if you ignore the Pods directory, make sure to uncomment | ||
# `pod install` in .travis.yml | ||
# | ||
Pods/ | ||
Podfile.lock |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Note 1: 가독성 개선 및 코드 간략화를 위함 | ||
# Note 2: Xcode 에디터 특성상 의미 없음 | ||
# Note 3: VC 구조상 지킬 수 없음 | ||
# Note 4: API 관련 Data class와 JSI 설계를 위함 | ||
# Note 5: 속도 향상을 위함 | ||
# Note 6: ObjC 스타일의 네이밍을 사용하기 때문에 지킬 수 없음 | ||
# (Swift에 rename refactor가 지원되기 전까지는 ObjC 스타일을 유지할 예정) | ||
# Note 7: 추후 RxSwift 및 Swift3 대응으로 해결할 예정 | ||
|
||
disabled_rules: | ||
# Global | ||
- file_length # 파일 길이 제한 없음 (Note 3) | ||
- for_where # for-in-where 강제 안함 (Note 1) | ||
- force_cast # 강제 cast 허용 (Note 1) | ||
- force_try # 강제 try 허용 (Note 1) | ||
- function_body_length # 함수 구현부 길이 제한 없음 (Note 1) | ||
- function_parameter_count # 함수 파라메터 갯수 제한 없음 (Note 4) | ||
- line_length # 행 길이 제한 없음 (Note 2) | ||
- todo | ||
- trailing_whitespace # 구문 줄 바꿈 허용 (Note 1) | ||
- type_body_length # 타입 선언부 길이 제한 없음 (Note 3) | ||
- variable_name # 변수명 길이 제한 없음 (Note 4) | ||
- vertical_whitespace # 수직 여백 허용 (Note 1) | ||
# WKJavaScriptController | ||
- cyclomatic_complexity # 복잡도 무시 (Note 7) | ||
|
||
opt_in_rules: | ||
- empty_count # isEmpty 사용 강제 (Note 1, 5) | ||
- closure_end_indentation # 클로저의 시작과 끝의 들여쓰기를 동일하게 맞추도록 (Note 1) | ||
- closure_spacing # 클로저 표현식의 시작과 끝에 공백을 넣도록 (Note 1) | ||
- explicit_init # 명시적인 init 호출을 하지 않도록 (Note 1) | ||
- first_where # `.filter { … }.first` 보다 `.first(where: { … })`를 사용하도록 (Note 1, 5) | ||
|
||
included: | ||
- RxBus | ||
- RxBus-Demo | ||
|
||
excluded: | ||
- Pods |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2017 RIDI Corporation | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# RxBus | ||
Event bus framework supports sticky events and subscribers priority based on RxSwift. | ||
|
||
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/RxBus.svg?style=flat)](https://cocoadocs.org/docsets/RxBus) | ||
[![Platform](https://img.shields.io/cocoapods/p/RxBus.svg?style=flat)](https://cocoadocs.org/docsets/RxBus) | ||
[![License](https://img.shields.io/cocoapods/l/RxBus.svg?style=flat)](https://cocoadocs.org/docsets/RxBus) | ||
|
||
## Requirements | ||
- Xcode 8.0+ | ||
- Swift 3 | ||
- iOS8+ | ||
|
||
## Installation | ||
This library is distributed by [CocoaPods](https://cocoapods.org). | ||
|
||
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command: | ||
|
||
``` | ||
$ gem install cocoapods | ||
``` | ||
|
||
To integrate RxBus into your Xcode project using CocoaPods, specify it in your Podfile: | ||
|
||
```ruby | ||
source 'https://github.com/CocoaPods/Specs.git' | ||
platform :ios, '8.0' | ||
use_frameworks! | ||
|
||
target '<Target name in your project>' do | ||
pod 'RxBus' | ||
end | ||
``` | ||
|
||
Then, run the following command: | ||
|
||
``` | ||
$ pod install | ||
``` | ||
|
||
## Usage | ||
```swift | ||
import RxBus | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
platform :ios, '8.0' | ||
|
||
use_frameworks! | ||
target 'RxBus-Demo' do | ||
pod 'RxBus', :path => '../' | ||
end |
Oops, something went wrong.