Skip to content

Commit

Permalink
Split products and rename them
Browse files Browse the repository at this point in the history
  • Loading branch information
luizmb committed Jul 8, 2019
1 parent 608d077 commit 3b8a865
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 53 deletions.
27 changes: 27 additions & 0 deletions CombineRex.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Pod::Spec.new do |s|
s.name = 'CombineRex'
s.version = '0.5.0'
s.summary = 'SwiftRex is a Redux implementation on top of Combine, RxSwift or ReactiveSwift. This package implements SwiftRex using RxSwift.'
s.description = <<-DESC
SwiftRex is a framework that combines event-sourcing pattern and reactive programming (Combine, RxSwift or ReactiveSwift), providing a central state Store of which your ViewControllers or SwiftUI Views can observe and react to, as well as dispatching events coming from the user interaction.
This pattern is also known as 'Unidirectional Dataflow' or 'Redux'.
DESC
s.homepage = 'https://github.com/SwiftRex/SwiftRex'
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
s.author = { 'Luiz Barbosa' => 'swiftrex@developercity.de' }
s.source = { :git => 'https://github.com/swiftrex/SwiftRex.git',
:tag => "v#{s.version}" }

s.requires_arc = true

s.frameworks = 'Foundation', 'Combine'

s.ios.deployment_target = '13.0'
s.osx.deployment_target = '10.15'
s.watchos.deployment_target = '6.0'
s.tvos.deployment_target = '13.0'
s.swift_version = '5.1'

s.source_files = "Sources/Combine/"
s.dependency 'SwiftRex', "#{s.version}"
end
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set-version:
$(error Missing new version number. Please use `make set-version TO=1.2.3`)
else
set-version:
sed -i .bkp -E "s/(s\.version.*=.*)'.*'/\1'${TO}'/" SwiftRex.podspec
sed -i .bkp -E "s/(s\.version.*=.*)'.*'/\1'${TO}'/" *.podspec
sed -i .bkp -E "s/(CURRENT_PROJECT_VERSION.*= ).*/\1${TO}/" Configuration/SwiftRex-Common.xcconfig
endif

Expand Down
13 changes: 6 additions & 7 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@ import PackageDescription
let package = Package(
name: "SwiftRex",
products: [
.library(name: "SwiftRex", targets: ["SwiftRex"]),
.library(name: "SwiftRexForCombine", targets: ["SwiftRexForCombine"]),
.library(name: "SwiftRexForRac", targets: ["SwiftRexForRac"]),
.library(name: "SwiftRexForRx", targets: ["SwiftRexForRx"])
.library(name: "CombineRex", targets: ["SwiftRex", "CombineRex"]),
.library(name: "ReactiveSwiftRex", targets: ["SwiftRex", "ReactiveSwiftRex"]),
.library(name: "RxSwiftRex", targets: ["SwiftRex", "RxSwiftRex"])
],
dependencies: [
.package(url: "https://github.com/ReactiveCocoa/ReactiveSwift.git", .exact("6.0.0")),
.package(url: "https://github.com/ReactiveX/RxSwift.git", .exact("5.0.0"))
],
targets: [
.target(name: "SwiftRex", dependencies: [], path: "Sources/Common"),
.target(name: "SwiftRexForCombine", dependencies: ["SwiftRex"], path: "Sources/Combine"),
.target(name: "SwiftRexForRac", dependencies: ["SwiftRex", "ReactiveSwift"], path: "Sources/ReactiveSwift"),
.target(name: "SwiftRexForRx", dependencies: ["SwiftRex", "RxSwift"], path: "Sources/RxSwift")
.target(name: "CombineRex", dependencies: ["SwiftRex"], path: "Sources/Combine"),
.target(name: "ReactiveSwiftRex", dependencies: ["SwiftRex", "ReactiveSwift"], path: "Sources/ReactiveSwift"),
.target(name: "RxSwiftRex", dependencies: ["SwiftRex", "RxSwift"], path: "Sources/RxSwift")
],
swiftLanguageVersions: [.v5]
)
28 changes: 28 additions & 0 deletions ReactiveSwiftRex.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Pod::Spec.new do |s|
s.name = 'ReactiveSwiftRex'
s.version = '0.5.0'
s.summary = 'SwiftRex is a Redux implementation on top of Combine, RxSwift or ReactiveSwift. This package implements SwiftRex using ReactiveSwift.'
s.description = <<-DESC
SwiftRex is a framework that combines event-sourcing pattern and reactive programming (Combine, RxSwift or ReactiveSwift), providing a central state Store of which your ViewControllers or SwiftUI Views can observe and react to, as well as dispatching events coming from the user interaction.
This pattern is also known as 'Unidirectional Dataflow' or 'Redux'.
DESC
s.homepage = 'https://github.com/SwiftRex/SwiftRex'
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
s.author = { 'Luiz Barbosa' => 'swiftrex@developercity.de' }
s.source = { :git => 'https://github.com/swiftrex/SwiftRex.git',
:tag => "v#{s.version}" }

s.requires_arc = true

s.frameworks = 'Foundation'

s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.10'
s.watchos.deployment_target = '3.0'
s.tvos.deployment_target = '9.0'
s.swift_version = '5.0'

s.source_files = "Sources/ReactiveSwift/"
s.dependency 'SwiftRex', "#{s.version}"
s.dependency 'ReactiveSwift', '~> 6'
end
28 changes: 28 additions & 0 deletions RxSwiftRex.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Pod::Spec.new do |s|
s.name = 'RxSwiftRex'
s.version = '0.5.0'
s.summary = 'SwiftRex is a Redux implementation on top of Combine, RxSwift or ReactiveSwift. This package implements SwiftRex using RxSwift.'
s.description = <<-DESC
SwiftRex is a framework that combines event-sourcing pattern and reactive programming (Combine, RxSwift or ReactiveSwift), providing a central state Store of which your ViewControllers or SwiftUI Views can observe and react to, as well as dispatching events coming from the user interaction.
This pattern is also known as 'Unidirectional Dataflow' or 'Redux'.
DESC
s.homepage = 'https://github.com/SwiftRex/SwiftRex'
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
s.author = { 'Luiz Barbosa' => 'swiftrex@developercity.de' }
s.source = { :git => 'https://github.com/swiftrex/SwiftRex.git',
:tag => "v#{s.version}" }

s.requires_arc = true

s.frameworks = 'Foundation'

s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.10'
s.watchos.deployment_target = '3.0'
s.tvos.deployment_target = '9.0'
s.swift_version = '5.0'

s.source_files = "Sources/RxSwift/"
s.dependency 'SwiftRex', "#{s.version}"
s.dependency 'RxSwift', '~> 5'
end
52 changes: 7 additions & 45 deletions SwiftRex.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,51 +15,13 @@ Pod::Spec.new do |s|
s.requires_arc = true

s.frameworks = 'Foundation'
s.default_subspec = 'Core'

s.subspec "Core" do |ss|
ss.ios.deployment_target = '8.0'
ss.osx.deployment_target = '10.10'
ss.watchos.deployment_target = '3.0'
ss.tvos.deployment_target = '9.0'
ss.swift_version = '5.0'
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.10'
s.watchos.deployment_target = '3.0'
s.tvos.deployment_target = '9.0'
s.swift_version = '5.0'

ss.source_files = "Sources/Common/"
ss.framework = "Foundation"
end

s.subspec "UsingCombine" do |ss|
ss.ios.deployment_target = '13.0'
ss.osx.deployment_target = '10.15'
ss.watchos.deployment_target = '6.0'
ss.tvos.deployment_target = '13.0'
ss.swift_version = '5.1'

ss.source_files = "Sources/Combine/"
ss.dependency "SwiftRex/Core"
end

s.subspec "UsingRxSwift" do |ss|
ss.ios.deployment_target = '8.0'
ss.osx.deployment_target = '10.10'
ss.watchos.deployment_target = '3.0'
ss.tvos.deployment_target = '9.0'
ss.swift_version = '5.0'

ss.source_files = "Sources/RxSwift/"
ss.dependency "SwiftRex/Core"
ss.dependency 'RxSwift'
end

s.subspec "UsingReactiveSwift" do |ss|
ss.ios.deployment_target = '8.0'
ss.osx.deployment_target = '10.10'
ss.watchos.deployment_target = '3.0'
ss.tvos.deployment_target = '9.0'
ss.swift_version = '5.0'

ss.source_files = "Sources/ReactiveSwift/"
ss.dependency "SwiftRex/Core"
ss.dependency 'ReactiveSwift'
end
s.source_files = "Sources/Common/"
s.framework = "Foundation"
end

0 comments on commit 3b8a865

Please sign in to comment.