Skip to content

Commit

Permalink
Create podspec. Reconfigure the project for Carthage, Xcode support a…
Browse files Browse the repository at this point in the history
…nd CI. (#7)

* Create podspec. Reconfigure the project for Carthage & Xcode support.

* CircleCI test run.

* Setup an empty test target.

* Support development via CocoaPods.
  • Loading branch information
andersio authored Oct 18, 2017
1 parent ca27808 commit e1b6ced
Show file tree
Hide file tree
Showing 21 changed files with 592 additions and 212 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ Pods
*.orig

Carthage/Checkouts/*
Carthage/Build/*
backboneLocalizationBuilder
.idea/babylon-ios.iml
.idea/runConfigurations/Babylon_STAGING1.xml
Expand Down
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4.0
1 change: 1 addition & 0 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "ReactiveCocoa/ReactiveSwift" ~> 2.0
6 changes: 6 additions & 0 deletions Cartfile.private
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Example app.
github "ReactiveCocoa/ReactiveCocoa" ~> 6.0
github "onevcat/Kingfisher" ~> 4.0

# Tests
github "Quick/Nimble" ~> 7.0
5 changes: 5 additions & 0 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
github "Quick/Nimble" "v7.0.2"
github "ReactiveCocoa/ReactiveCocoa" "6.0.2"
github "ReactiveCocoa/ReactiveSwift" "2.0.1"
github "antitypical/Result" "3.2.4"
github "onevcat/Kingfisher" "4.1.1"
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'

gem 'xcpretty'
9 changes: 9 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2017 Babylon Partners Limited

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.
35 changes: 17 additions & 18 deletions Podfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
install! 'cocoapods',
:integrate_targets => false
use_frameworks!

target 'ReactiveFeedback' do

use_frameworks!
pod 'ReactiveSwift'
pod 'ReactiveCocoa'
pod 'Kingfisher'
def shared_pods
pod "ReactiveSwift", "~> 2.0"
end

target "ReactiveFeedback" do
platform :ios, "8.0"
shared_pods
end

target 'Example' do
use_frameworks!
pod 'ReactiveSwift'
pod 'ReactiveCocoa'
target "ReactiveFeedbackTests" do
platform :ios, "8.0"
shared_pods
pod "Nimble", "~> 7.0"
end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.3'
end
end
target "Example" do
platform :ios, "10.0"
shared_pods
pod "Kingfisher", "~> 4.0"
end
25 changes: 12 additions & 13 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
PODS:
- Kingfisher (3.10.4)
- ReactiveCocoa (6.0.2):
- ReactiveSwift (~> 2.0)
- ReactiveSwift (2.0.0):
- Kingfisher (4.1.0)
- Nimble (7.0.2)
- ReactiveSwift (2.0.1):
- Result (~> 3.2)
- Result (3.2.3)
- Result (3.2.4)

DEPENDENCIES:
- Kingfisher
- ReactiveCocoa
- ReactiveSwift
- Kingfisher (~> 4.0)
- Nimble (~> 7.0)
- ReactiveSwift (~> 2.0)

SPEC CHECKSUMS:
Kingfisher: dc3a4983e86d2dfa89513664983a82340c11a289
ReactiveCocoa: 9dcbd8275374f35a6e5fcce01a93b860a7b92c44
ReactiveSwift: 36339167e571774d936482d0f6512f5118a74731
Result: 128640a6347e8d2ae48b142556739a2d13f90ce6
Kingfisher: f14df8cbe576bf55f211fa589e9869bceb4ea87d
Nimble: bfe1f814edabba69ff145cb1283e04ed636a67f2
ReactiveSwift: 60a29ff35988a964fd2bb759755cb6594de523fc
Result: d2d07204ce72856f1fd9130bbe42c35a7b0fea10

PODFILE CHECKSUM: fea6eaa874597b3e8337b7ad235560373aba89f5
PODFILE CHECKSUM: 8382ae2e5d0edf1400362eaa2ce5cc2d16d032e9

COCOAPODS: 1.3.1
22 changes: 22 additions & 0 deletions ReactiveFeedback.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Pod::Spec.new do |s|

s.name = "ReactiveFeedback"
s.version = "0.0.1"
s.summary = "Unidirectional reactive architecture"

s.description = <<-DESC
A unidirectional data flow µframework, built on top of ReactiveSwift.
DESC

s.homepage = "https://github.com/Babylonpartners/ReactiveFeedback/"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "Babylon iOS" => "[email protected]" }
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.9'
s.watchos.deployment_target = '2.0'
s.tvos.deployment_target = '9.0'
s.source = { :git => "https://github.com/Babylonpartners/ReactiveFeedback.git", :tag => "#{s.version}" }
s.source_files = "ReactiveFeedback/*.{swift}"

s.dependency "ReactiveSwift", "~> 2.0"
end
Loading

0 comments on commit e1b6ced

Please sign in to comment.