diff --git a/ComposableArchitecture.podspec b/ComposableArchitecture.podspec new file mode 100644 index 0000000..8da3264 --- /dev/null +++ b/ComposableArchitecture.podspec @@ -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' => 'me@dannyhertz.com' } + 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 + diff --git a/README.md b/README.md index 6e09df1..78cb9c4 100644 --- a/README.md +++ b/README.md @@ -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 => 'git@github.com: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).