Skip to content

Commit

Permalink
Cocoapods Support (#3)
Browse files Browse the repository at this point in the history
* Add podspec

Co-authored-by: Aditya Ayyakad <[email protected]>
  • Loading branch information
AdiAyyakad and Aditya Ayyakad authored Mar 18, 2021
1 parent 17f470d commit 47e1bab
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
26 changes: 26 additions & 0 deletions ComposableArchitecture.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Pod::Spec.new do |s|
s.name = 'ComposableArchitecture'
s.version = '0.8.0'
s.summary = 'A RxSwift fork of The Composable Architecture.'

s.description = <<-DESC
Point-Free’s The Composable Architecture uses Apple's Combine framework as the basis of its Effect type. Unfortunately, Combine is only available on iOS 13 and macOS 10.15 and above. In order to be able to use it with earlier versions of the OSes, this fork has adapted The Composable Architecture to use RxSwift as the basis for the Effect type. Much of this work was also inspired by the wonderful ReactiveSwift port of this project as well.
DESC

s.homepage = 'https://github.com/dannyhertz/rxswift-composable-architecture'
s.author = { 'Danny Hertz' => '[email protected]' }
s.source = { :git => 'https://github.com/dannyhertz/rxswift-composable-architecture.git', :tag => s.version.to_s }
s.license = { :type => 'MIT' }

s.ios.deployment_target = '12.0'
s.swift_version = '5.2'

s.source_files = 'Sources/ComposableArchitecture/**/*.swift'

s.dependency 'CasePaths'
s.dependency 'Overture'
s.dependency 'RxSwift', '~> 5.1.1'
s.dependency 'RxRelay'
s.xcconfig = { 'ENABLE_BITCODE' => 'NO' }
end

7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,13 @@ You can add ComposableArchitecture to an Xcode project by adding it as a package
- If you have a single application target that needs access to the library, then add **ComposableArchitecture** directly to your application.
- If you want to use this library from multiple targets you must create a shared framework that depends on **ComposableArchitecture** and then depend on that framework in all of your targets. For an example of this, check out the [Tic-Tac-Toe](./Examples/TicTacToe) demo application, which splits lots of features into modules and consumes the static library in this fashion using the **TicTacToeCommon** framework.

### Cocoapods

You will need to add this to your Podfile:
```
pod 'ComposableArchitecture', :git => '[email protected]:dannyhertz/rxswift-composable-architecture.git'
```
## Help
If you want to discuss the Composable Architecture or have a question about how to use it to solve a particular problem, ask around on [its Swift forum](https://forums.swift.org/c/related-projects/swift-composable-architecture).
Expand Down

0 comments on commit 47e1bab

Please sign in to comment.