diff --git a/.gitignore b/.gitignore index a7d7348..2f3bde0 100644 --- a/.gitignore +++ b/.gitignore @@ -180,6 +180,7 @@ Pods *.orig Carthage/Checkouts/* +Carthage/Build/* backboneLocalizationBuilder .idea/babylon-ios.iml .idea/runConfigurations/Babylon_STAGING1.xml diff --git a/.swift-version b/.swift-version new file mode 100644 index 0000000..5186d07 --- /dev/null +++ b/.swift-version @@ -0,0 +1 @@ +4.0 diff --git a/Cartfile b/Cartfile new file mode 100644 index 0000000..229fab6 --- /dev/null +++ b/Cartfile @@ -0,0 +1 @@ +github "ReactiveCocoa/ReactiveSwift" ~> 2.0 diff --git a/Cartfile.private b/Cartfile.private new file mode 100644 index 0000000..c085112 --- /dev/null +++ b/Cartfile.private @@ -0,0 +1,6 @@ +# Example app. +github "ReactiveCocoa/ReactiveCocoa" ~> 6.0 +github "onevcat/Kingfisher" ~> 4.0 + +# Tests +github "Quick/Nimble" ~> 7.0 diff --git a/Cartfile.resolved b/Cartfile.resolved new file mode 100644 index 0000000..28ec09a --- /dev/null +++ b/Cartfile.resolved @@ -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" diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..55b47b1 --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +source 'https://rubygems.org' + +gem 'xcpretty' diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..9fdad4a --- /dev/null +++ b/LICENSE @@ -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. diff --git a/Podfile b/Podfile index 5b10842..ae0c3d0 100644 --- a/Podfile +++ b/Podfile @@ -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 diff --git a/Podfile.lock b/Podfile.lock index 9215cd1..2524d7a 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -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 diff --git a/ReactiveFeedback.podspec b/ReactiveFeedback.podspec new file mode 100644 index 0000000..9d2441d --- /dev/null +++ b/ReactiveFeedback.podspec @@ -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" => "ios.development@babylonhealth.com" } + 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 diff --git a/ReactiveFeedback.xcodeproj/project.pbxproj b/ReactiveFeedback.xcodeproj/project.pbxproj index 57cc276..2c8cedd 100644 --- a/ReactiveFeedback.xcodeproj/project.pbxproj +++ b/ReactiveFeedback.xcodeproj/project.pbxproj @@ -7,9 +7,6 @@ objects = { /* Begin PBXBuildFile section */ - 25CC87B21F92855300A6EBFC /* ReactiveFeedback.h in Headers */ = {isa = PBXBuildFile; fileRef = 25CC87B01F92855300A6EBFC /* ReactiveFeedback.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 25CC87B51F92855300A6EBFC /* ReactiveFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25CC87AE1F92855300A6EBFC /* ReactiveFeedback.framework */; }; - 25CC87B61F92855300A6EBFC /* ReactiveFeedback.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 25CC87AE1F92855300A6EBFC /* ReactiveFeedback.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 25CC87BB1F92859800A6EBFC /* SignalProducer+System.swift in Sources */ = {isa = PBXBuildFile; fileRef = 25E1D2331F54951100D90192 /* SignalProducer+System.swift */; }; 25CC87BC1F92859800A6EBFC /* FeedbackLoops.swift in Sources */ = {isa = PBXBuildFile; fileRef = 25E1D2351F54A20F00D90192 /* FeedbackLoops.swift */; }; 25E1D2211F5493D000D90192 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 25E1D2201F5493D000D90192 /* AppDelegate.swift */; }; @@ -18,17 +15,43 @@ 25E1D2281F5493D000D90192 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 25E1D2271F5493D000D90192 /* Assets.xcassets */; }; 25E1D22B1F5493D000D90192 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 25E1D2291F5493D000D90192 /* LaunchScreen.storyboard */; }; 25E1D2381F56091A00D90192 /* PaginationViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 25E1D2371F56091A00D90192 /* PaginationViewController.swift */; }; - 5ADC924A28DF345A8A87BC66 /* Pods_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 38F33DE5E569B3B3F5DA953E /* Pods_Example.framework */; }; - F596074DD6EEFF0C213FCBB7 /* Pods_ReactiveFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E1FF34B62E94DB41C288BD1E /* Pods_ReactiveFeedback.framework */; }; + 9A4CCB0B1F95D5CA00ACF758 /* Nimble.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9A4CCB0C1F95D5CA00ACF758 /* Nimble.framework */; }; + 9A4CCB0D1F95D5D500ACF758 /* Nimble.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 9A4CCB0C1F95D5CA00ACF758 /* Nimble.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 9AE181B91F95A71B00A07551 /* ReactiveFeedbackTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9AE181B81F95A71B00A07551 /* ReactiveFeedbackTests.swift */; }; + 9AE181BB1F95A71B00A07551 /* ReactiveFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25CC87AE1F92855300A6EBFC /* ReactiveFeedback.framework */; }; + 9AE181C21F95A77500A07551 /* ReactiveSwift.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 9AFA212A1F95135B001DBF7C /* ReactiveSwift.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 9AE181C31F95A77500A07551 /* Result.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 9AFA212B1F95135B001DBF7C /* Result.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 9AE181C41F95A77C00A07551 /* ReactiveSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9AFA212A1F95135B001DBF7C /* ReactiveSwift.framework */; }; + 9AE181C51F95A77C00A07551 /* Result.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9AFA212B1F95135B001DBF7C /* Result.framework */; }; + 9AFA21261F9511A5001DBF7C /* ReactiveFeedback.podspec in Resources */ = {isa = PBXBuildFile; fileRef = 9AFA21251F9511A5001DBF7C /* ReactiveFeedback.podspec */; }; + 9AFA21281F95135B001DBF7C /* ReactiveSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9AFA212A1F95135B001DBF7C /* ReactiveSwift.framework */; }; + 9AFA21291F95135B001DBF7C /* Result.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9AFA212B1F95135B001DBF7C /* Result.framework */; }; + 9AFA21321F9513C2001DBF7C /* ReactiveSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9AFA212A1F95135B001DBF7C /* ReactiveSwift.framework */; }; + 9AFA21331F9513C2001DBF7C /* ReactiveSwift.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9AFA212A1F95135B001DBF7C /* ReactiveSwift.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 9AFA21341F9513C2001DBF7C /* Result.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9AFA212B1F95135B001DBF7C /* Result.framework */; }; + 9AFA21351F9513C2001DBF7C /* Result.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9AFA212B1F95135B001DBF7C /* Result.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 9AFA213A1F951440001DBF7C /* ReactiveCocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9AFA21391F951435001DBF7C /* ReactiveCocoa.framework */; }; + 9AFA213B1F951440001DBF7C /* ReactiveCocoa.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9AFA21391F951435001DBF7C /* ReactiveCocoa.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 9AFA213C1F9514E4001DBF7C /* ReactiveFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25CC87AE1F92855300A6EBFC /* ReactiveFeedback.framework */; }; + 9AFA213D1F9514E4001DBF7C /* ReactiveFeedback.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 25CC87AE1F92855300A6EBFC /* ReactiveFeedback.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 9AFA21441F951828001DBF7C /* Kingfisher.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9AFA21431F95181E001DBF7C /* Kingfisher.framework */; }; + 9AFA21451F951828001DBF7C /* Kingfisher.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9AFA21431F95181E001DBF7C /* Kingfisher.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ - 25CC87B31F92855300A6EBFC /* PBXContainerItemProxy */ = { + 9AE181BC1F95A71B00A07551 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 25E1D2151F5493D000D90192 /* Project object */; proxyType = 1; remoteGlobalIDString = 25CC87AD1F92855300A6EBFC; - remoteInfo = Framework; + remoteInfo = ReactiveFeedback; + }; + 9AFA213E1F9514E4001DBF7C /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 25E1D2151F5493D000D90192 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 25CC87AD1F92855300A6EBFC; + remoteInfo = ReactiveFeedback; }; /* End PBXContainerItemProxy section */ @@ -39,18 +62,31 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( - 25CC87B61F92855300A6EBFC /* ReactiveFeedback.framework in Embed Frameworks */, + 9AFA21451F951828001DBF7C /* Kingfisher.framework in Embed Frameworks */, + 9AFA21351F9513C2001DBF7C /* Result.framework in Embed Frameworks */, + 9AFA21331F9513C2001DBF7C /* ReactiveSwift.framework in Embed Frameworks */, + 9AFA213D1F9514E4001DBF7C /* ReactiveFeedback.framework in Embed Frameworks */, + 9AFA213B1F951440001DBF7C /* ReactiveCocoa.framework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; }; + 9AE181C11F95A76B00A07551 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + 9AE181C21F95A77500A07551 /* ReactiveSwift.framework in CopyFiles */, + 9AE181C31F95A77500A07551 /* Result.framework in CopyFiles */, + 9A4CCB0D1F95D5D500ACF758 /* Nimble.framework in CopyFiles */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 0E77C601AD66358FF722A92D /* Pods-ReactiveFeedback.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactiveFeedback.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ReactiveFeedback/Pods-ReactiveFeedback.debug.xcconfig"; sourceTree = ""; }; - 0FF141D36657EB5FEE4E2674 /* Pods-ReactiveFeedback.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactiveFeedback.release.xcconfig"; path = "Pods/Target Support Files/Pods-ReactiveFeedback/Pods-ReactiveFeedback.release.xcconfig"; sourceTree = ""; }; 25CC87AE1F92855300A6EBFC /* ReactiveFeedback.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ReactiveFeedback.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 25CC87B01F92855300A6EBFC /* ReactiveFeedback.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ReactiveFeedback.h; sourceTree = ""; }; 25CC87B11F92855300A6EBFC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 25E1D21D1F5493D000D90192 /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 25E1D2201F5493D000D90192 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; @@ -62,10 +98,15 @@ 25E1D2331F54951100D90192 /* SignalProducer+System.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "SignalProducer+System.swift"; sourceTree = ""; }; 25E1D2351F54A20F00D90192 /* FeedbackLoops.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FeedbackLoops.swift; sourceTree = ""; }; 25E1D2371F56091A00D90192 /* PaginationViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PaginationViewController.swift; sourceTree = ""; }; - 38F33DE5E569B3B3F5DA953E /* Pods_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 53FA37CB4CD78E32B13FE929 /* Pods-Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Example/Pods-Example.debug.xcconfig"; sourceTree = ""; }; - 6A87A8196913DA0EAC921114 /* Pods-Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-Example/Pods-Example.release.xcconfig"; sourceTree = ""; }; - E1FF34B62E94DB41C288BD1E /* Pods_ReactiveFeedback.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ReactiveFeedback.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 9A4CCB0C1F95D5CA00ACF758 /* Nimble.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = Nimble.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 9AE181B61F95A71B00A07551 /* ReactiveFeedbackTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ReactiveFeedbackTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 9AE181B81F95A71B00A07551 /* ReactiveFeedbackTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReactiveFeedbackTests.swift; sourceTree = ""; }; + 9AE181BA1F95A71B00A07551 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 9AFA21251F9511A5001DBF7C /* ReactiveFeedback.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ReactiveFeedback.podspec; sourceTree = ""; }; + 9AFA212A1F95135B001DBF7C /* ReactiveSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = ReactiveSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 9AFA212B1F95135B001DBF7C /* Result.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = Result.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 9AFA21391F951435001DBF7C /* ReactiveCocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = ReactiveCocoa.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 9AFA21431F95181E001DBF7C /* Kingfisher.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Kingfisher.framework; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -73,7 +114,8 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - F596074DD6EEFF0C213FCBB7 /* Pods_ReactiveFeedback.framework in Frameworks */, + 9AFA21281F95135B001DBF7C /* ReactiveSwift.framework in Frameworks */, + 9AFA21291F95135B001DBF7C /* Result.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -81,42 +123,36 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 25CC87B51F92855300A6EBFC /* ReactiveFeedback.framework in Frameworks */, - 5ADC924A28DF345A8A87BC66 /* Pods_Example.framework in Frameworks */, + 9AFA21441F951828001DBF7C /* Kingfisher.framework in Frameworks */, + 9AFA21341F9513C2001DBF7C /* Result.framework in Frameworks */, + 9AFA21321F9513C2001DBF7C /* ReactiveSwift.framework in Frameworks */, + 9AFA213C1F9514E4001DBF7C /* ReactiveFeedback.framework in Frameworks */, + 9AFA213A1F951440001DBF7C /* ReactiveCocoa.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 9AE181B31F95A71B00A07551 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 9A4CCB0B1F95D5CA00ACF758 /* Nimble.framework in Frameworks */, + 9AE181BB1F95A71B00A07551 /* ReactiveFeedback.framework in Frameworks */, + 9AE181C41F95A77C00A07551 /* ReactiveSwift.framework in Frameworks */, + 9AE181C51F95A77C00A07551 /* Result.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 174F2FA698F98CBAFEAE93B2 /* Pods */ = { - isa = PBXGroup; - children = ( - 0E77C601AD66358FF722A92D /* Pods-ReactiveFeedback.debug.xcconfig */, - 0FF141D36657EB5FEE4E2674 /* Pods-ReactiveFeedback.release.xcconfig */, - 53FA37CB4CD78E32B13FE929 /* Pods-Example.debug.xcconfig */, - 6A87A8196913DA0EAC921114 /* Pods-Example.release.xcconfig */, - ); - name = Pods; - sourceTree = ""; - }; 25CC87AF1F92855300A6EBFC /* ReactiveFeedback */ = { - isa = PBXGroup; - children = ( - 25CC87C21F928A0A00A6EBFC /* Sources */, - 25CC87B01F92855300A6EBFC /* ReactiveFeedback.h */, - 25CC87B11F92855300A6EBFC /* Info.plist */, - ); - path = ReactiveFeedback; - sourceTree = ""; - }; - 25CC87C21F928A0A00A6EBFC /* Sources */ = { isa = PBXGroup; children = ( 25E1D2331F54951100D90192 /* SignalProducer+System.swift */, 25E1D2351F54A20F00D90192 /* FeedbackLoops.swift */, + 25CC87B11F92855300A6EBFC /* Info.plist */, ); - path = Sources; + path = ReactiveFeedback; sourceTree = ""; }; 25E1D2141F5493D000D90192 = { @@ -124,9 +160,10 @@ children = ( 25E1D21F1F5493D000D90192 /* Example */, 25CC87AF1F92855300A6EBFC /* ReactiveFeedback */, + 9AFA21251F9511A5001DBF7C /* ReactiveFeedback.podspec */, + 9AE181B71F95A71B00A07551 /* ReactiveFeedbackTests */, 25E1D21E1F5493D000D90192 /* Products */, - 174F2FA698F98CBAFEAE93B2 /* Pods */, - E282725AB0C9AD8AD39C04D3 /* Frameworks */, + 9AFA21271F95135B001DBF7C /* Frameworks */, ); sourceTree = ""; }; @@ -135,6 +172,7 @@ children = ( 25E1D21D1F5493D000D90192 /* Example.app */, 25CC87AE1F92855300A6EBFC /* ReactiveFeedback.framework */, + 9AE181B61F95A71B00A07551 /* ReactiveFeedbackTests.xctest */, ); name = Products; sourceTree = ""; @@ -153,11 +191,23 @@ path = Example; sourceTree = ""; }; - E282725AB0C9AD8AD39C04D3 /* Frameworks */ = { + 9AE181B71F95A71B00A07551 /* ReactiveFeedbackTests */ = { + isa = PBXGroup; + children = ( + 9AE181B81F95A71B00A07551 /* ReactiveFeedbackTests.swift */, + 9AE181BA1F95A71B00A07551 /* Info.plist */, + ); + path = ReactiveFeedbackTests; + sourceTree = ""; + }; + 9AFA21271F95135B001DBF7C /* Frameworks */ = { isa = PBXGroup; children = ( - E1FF34B62E94DB41C288BD1E /* Pods_ReactiveFeedback.framework */, - 38F33DE5E569B3B3F5DA953E /* Pods_Example.framework */, + 9A4CCB0C1F95D5CA00ACF758 /* Nimble.framework */, + 9AFA21431F95181E001DBF7C /* Kingfisher.framework */, + 9AFA21391F951435001DBF7C /* ReactiveCocoa.framework */, + 9AFA212A1F95135B001DBF7C /* ReactiveSwift.framework */, + 9AFA212B1F95135B001DBF7C /* Result.framework */, ); name = Frameworks; sourceTree = ""; @@ -169,7 +219,6 @@ isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - 25CC87B21F92855300A6EBFC /* ReactiveFeedback.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -180,12 +229,10 @@ isa = PBXNativeTarget; buildConfigurationList = 25CC87B91F92855300A6EBFC /* Build configuration list for PBXNativeTarget "ReactiveFeedback" */; buildPhases = ( - 5F6A1986DC56266FD730C4A3 /* [CP] Check Pods Manifest.lock */, 25CC87A91F92855300A6EBFC /* Sources */, 25CC87AA1F92855300A6EBFC /* Frameworks */, 25CC87AB1F92855300A6EBFC /* Headers */, 25CC87AC1F92855300A6EBFC /* Resources */, - C73960866BFA9E3FCDD6B95A /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -200,33 +247,49 @@ isa = PBXNativeTarget; buildConfigurationList = 25E1D22F1F5493D100D90192 /* Build configuration list for PBXNativeTarget "Example" */; buildPhases = ( - 6B25EF362A86D4466C7623DD /* [CP] Check Pods Manifest.lock */, 25E1D2191F5493D000D90192 /* Sources */, 25E1D21A1F5493D000D90192 /* Frameworks */, 25E1D21B1F5493D000D90192 /* Resources */, - 1941ECC6040E446EF9939235 /* [CP] Embed Pods Frameworks */, - 6ADDA50C92B3166125E07A49 /* [CP] Copy Pods Resources */, 25CC87BA1F92855300A6EBFC /* Embed Frameworks */, ); buildRules = ( ); dependencies = ( - 25CC87B41F92855300A6EBFC /* PBXTargetDependency */, + 9AFA213F1F9514E4001DBF7C /* PBXTargetDependency */, ); name = Example; productName = ReactiveFeedback; productReference = 25E1D21D1F5493D000D90192 /* Example.app */; productType = "com.apple.product-type.application"; }; + 9AE181B51F95A71B00A07551 /* ReactiveFeedbackTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 9AE181C01F95A71B00A07551 /* Build configuration list for PBXNativeTarget "ReactiveFeedbackTests" */; + buildPhases = ( + 9AE181B21F95A71B00A07551 /* Sources */, + 9AE181B31F95A71B00A07551 /* Frameworks */, + 9AE181B41F95A71B00A07551 /* Resources */, + 9AE181C11F95A76B00A07551 /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + 9AE181BD1F95A71B00A07551 /* PBXTargetDependency */, + ); + name = ReactiveFeedbackTests; + productName = ReactiveFeedbackTests; + productReference = 9AE181B61F95A71B00A07551 /* ReactiveFeedbackTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ 25E1D2151F5493D000D90192 /* Project object */ = { isa = PBXProject; attributes = { - LastSwiftUpdateCheck = 0830; + LastSwiftUpdateCheck = 0900; LastUpgradeCheck = 0900; - ORGANIZATIONNAME = sergdort; + ORGANIZATIONNAME = ""; TargetAttributes = { 25CC87AD1F92855300A6EBFC = { CreatedOnToolsVersion = 9.0; @@ -236,6 +299,9 @@ CreatedOnToolsVersion = 8.3; ProvisioningStyle = Automatic; }; + 9AE181B51F95A71B00A07551 = { + CreatedOnToolsVersion = 9.0; + }; }; }; buildConfigurationList = 25E1D2181F5493D000D90192 /* Build configuration list for PBXProject "ReactiveFeedback" */; @@ -251,8 +317,9 @@ projectDirPath = ""; projectRoot = ""; targets = ( - 25E1D21C1F5493D000D90192 /* Example */, 25CC87AD1F92855300A6EBFC /* ReactiveFeedback */, + 9AE181B51F95A71B00A07551 /* ReactiveFeedbackTests */, + 25E1D21C1F5493D000D90192 /* Example */, ); }; /* End PBXProject section */ @@ -269,106 +336,21 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 9AFA21261F9511A5001DBF7C /* ReactiveFeedback.podspec in Resources */, 25E1D22B1F5493D000D90192 /* LaunchScreen.storyboard in Resources */, 25E1D2281F5493D000D90192 /* Assets.xcassets in Resources */, 25E1D2261F5493D000D90192 /* Main.storyboard in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 1941ECC6040E446EF9939235 /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "${SRCROOT}/Pods/Target Support Files/Pods-Example/Pods-Example-frameworks.sh", - "${BUILT_PRODUCTS_DIR}/ReactiveCocoa/ReactiveCocoa.framework", - "${BUILT_PRODUCTS_DIR}/ReactiveSwift/ReactiveSwift.framework", - "${BUILT_PRODUCTS_DIR}/Result/Result.framework", - "${BUILT_PRODUCTS_DIR}/Kingfisher/Kingfisher.framework", - ); - name = "[CP] Embed Pods Frameworks"; - outputPaths = ( - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ReactiveCocoa.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ReactiveSwift.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Result.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Kingfisher.framework", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Example/Pods-Example-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - 5F6A1986DC56266FD730C4A3 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-ReactiveFeedback-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; - 6ADDA50C92B3166125E07A49 /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "[CP] Copy Pods Resources"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Example/Pods-Example-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; - 6B25EF362A86D4466C7623DD /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-Example-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; - C73960866BFA9E3FCDD6B95A /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; + 9AE181B41F95A71B00A07551 /* Resources */ = { + isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( ); - inputPaths = ( - ); - name = "[CP] Copy Pods Resources"; - outputPaths = ( - ); runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ReactiveFeedback/Pods-ReactiveFeedback-resources.sh\"\n"; - showEnvVarsInLog = 0; }; -/* End PBXShellScriptBuildPhase section */ +/* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ 25CC87A91F92855300A6EBFC /* Sources */ = { @@ -390,13 +372,26 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 9AE181B21F95A71B00A07551 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 9AE181B91F95A71B00A07551 /* ReactiveFeedbackTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ - 25CC87B41F92855300A6EBFC /* PBXTargetDependency */ = { + 9AE181BD1F95A71B00A07551 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 25CC87AD1F92855300A6EBFC /* ReactiveFeedback */; + targetProxy = 9AE181BC1F95A71B00A07551 /* PBXContainerItemProxy */; + }; + 9AFA213F1F9514E4001DBF7C /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 25CC87AD1F92855300A6EBFC /* ReactiveFeedback */; - targetProxy = 25CC87B31F92855300A6EBFC /* PBXContainerItemProxy */; + targetProxy = 9AFA213E1F9514E4001DBF7C /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ @@ -422,55 +417,55 @@ /* Begin XCBuildConfiguration section */ 25CC87B71F92855300A6EBFC /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 0E77C601AD66358FF722A92D /* Pods-ReactiveFeedback.debug.xcconfig */; buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CODE_SIGN_IDENTITY = "iPhone Developer"; - CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; - GCC_C_LANGUAGE_STANDARD = gnu11; INFOPLIST_FILE = "$(SRCROOT)/ReactiveFeedback/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks @loader_path/../Frameworks @executable_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 10.9; PRODUCT_BUNDLE_IDENTIFIER = com.babylonhealth.ReactiveFeedback; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = macosx; SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "appletvsimulator appletvos watchsimulator watchos iphonesimulator iphoneos macosx"; SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; + TARGETED_DEVICE_FAMILY = "1,2,3,4"; + TVOS_DEPLOYMENT_TARGET = 9.0; + VALID_ARCHS = "i386 x86_64 arm64 armv7 armv7k armv7s"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; + WATCHOS_DEPLOYMENT_TARGET = 2.0; }; name = Debug; }; 25CC87B81F92855300A6EBFC /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 0FF141D36657EB5FEE4E2674 /* Pods-ReactiveFeedback.release.xcconfig */; buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CODE_SIGN_IDENTITY = "iPhone Developer"; - CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; - GCC_C_LANGUAGE_STANDARD = gnu11; INFOPLIST_FILE = "$(SRCROOT)/ReactiveFeedback/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks @loader_path/../Frameworks @executable_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 10.9; PRODUCT_BUNDLE_IDENTIFIER = com.babylonhealth.ReactiveFeedback; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = macosx; SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "appletvsimulator appletvos watchsimulator watchos iphonesimulator iphoneos macosx"; SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; + TARGETED_DEVICE_FAMILY = "1,2,3,4"; + TVOS_DEPLOYMENT_TARGET = 9.0; + VALID_ARCHS = "i386 x86_64 arm64 armv7 armv7k armv7s"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; + WATCHOS_DEPLOYMENT_TARGET = 2.0; }; name = Release; }; @@ -507,6 +502,10 @@ DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; + FRAMEWORK_SEARCH_PATHS = ( + "$(BUILT_PRODUCTS_DIR)/Result", + "$(BUILT_PRODUCTS_DIR)/ReactiveSwift", + ); GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; @@ -563,6 +562,10 @@ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; + FRAMEWORK_SEARCH_PATHS = ( + "$(BUILT_PRODUCTS_DIR)/Result", + "$(BUILT_PRODUCTS_DIR)/ReactiveSwift", + ); GCC_C_LANGUAGE_STANDARD = gnu99; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; @@ -581,11 +584,14 @@ }; 25E1D2301F5493D100D90192 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 53FA37CB4CD78E32B13FE929 /* Pods-Example.debug.xcconfig */; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(BUILT_PRODUCTS_DIR)/Kingfisher", + ); INFOPLIST_FILE = "$(SRCROOT)/Example/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.babylonhealth.Example; @@ -596,11 +602,14 @@ }; 25E1D2311F5493D100D90192 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 6A87A8196913DA0EAC921114 /* Pods-Example.release.xcconfig */; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(BUILT_PRODUCTS_DIR)/Kingfisher", + ); INFOPLIST_FILE = "$(SRCROOT)/Example/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.babylonhealth.Example; @@ -609,6 +618,46 @@ }; name = Release; }; + 9AE181BE1F95A71B00A07551 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + COMBINE_HIDPI_IMAGES = YES; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(BUILT_PRODUCTS_DIR)/Nimble", + ); + INFOPLIST_FILE = ReactiveFeedbackTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks @loader_path/Frameworks @executable_path/Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 10.13; + PRODUCT_BUNDLE_IDENTIFIER = com.babylonhealth.ReactiveFeedbackTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + SUPPORTED_PLATFORMS = "macosx iphonesimulator watchsimulator appletvsimulator"; + SWIFT_VERSION = 4.0; + }; + name = Debug; + }; + 9AE181BF1F95A71B00A07551 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + COMBINE_HIDPI_IMAGES = YES; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(BUILT_PRODUCTS_DIR)/Nimble", + ); + INFOPLIST_FILE = ReactiveFeedbackTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks @loader_path/Frameworks @executable_path/Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 10.13; + PRODUCT_BUNDLE_IDENTIFIER = com.babylonhealth.ReactiveFeedbackTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + SUPPORTED_PLATFORMS = "macosx iphonesimulator watchsimulator appletvsimulator"; + SWIFT_VERSION = 4.0; + }; + name = Release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -639,6 +688,15 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 9AE181C01F95A71B00A07551 /* Build configuration list for PBXNativeTarget "ReactiveFeedbackTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9AE181BE1F95A71B00A07551 /* Debug */, + 9AE181BF1F95A71B00A07551 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; /* End XCConfigurationList section */ }; rootObject = 25E1D2151F5493D000D90192 /* Project object */; diff --git a/ReactiveFeedback.xcodeproj/xcshareddata/xcschemes/Example.xcscheme b/ReactiveFeedback.xcodeproj/xcshareddata/xcschemes/Example.xcscheme new file mode 100644 index 0000000..4fd6b25 --- /dev/null +++ b/ReactiveFeedback.xcodeproj/xcshareddata/xcschemes/Example.xcscheme @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ReactiveFeedback.xcodeproj/xcshareddata/xcschemes/ReactiveFeedback.xcscheme b/ReactiveFeedback.xcodeproj/xcshareddata/xcschemes/ReactiveFeedback.xcscheme new file mode 100644 index 0000000..b999253 --- /dev/null +++ b/ReactiveFeedback.xcodeproj/xcshareddata/xcschemes/ReactiveFeedback.xcscheme @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ReactiveFeedback.xcworkspace/contents.xcworkspacedata b/ReactiveFeedback.xcworkspace/contents.xcworkspacedata index aa43d00..5fe4aa3 100644 --- a/ReactiveFeedback.xcworkspace/contents.xcworkspacedata +++ b/ReactiveFeedback.xcworkspace/contents.xcworkspacedata @@ -1,10 +1,26 @@ + + + + + + + + + + + + - - diff --git a/ReactiveFeedback/Sources/FeedbackLoops.swift b/ReactiveFeedback/FeedbackLoops.swift similarity index 100% rename from ReactiveFeedback/Sources/FeedbackLoops.swift rename to ReactiveFeedback/FeedbackLoops.swift diff --git a/ReactiveFeedback/ReactiveFeedback.h b/ReactiveFeedback/ReactiveFeedback.h deleted file mode 100644 index 27b20e3..0000000 --- a/ReactiveFeedback/ReactiveFeedback.h +++ /dev/null @@ -1,12 +0,0 @@ - -#import - -//! Project version number for Framework. -FOUNDATION_EXPORT double ReactiveFeedbackVersionNumber; - -//! Project version string for Framework. -FOUNDATION_EXPORT const unsigned char ReactiveFeedbackVersionString[]; - -// In this header, you should import all the public headers of your framework using statements like #import - - diff --git a/ReactiveFeedback/Sources/SignalProducer+System.swift b/ReactiveFeedback/SignalProducer+System.swift similarity index 100% rename from ReactiveFeedback/Sources/SignalProducer+System.swift rename to ReactiveFeedback/SignalProducer+System.swift diff --git a/ReactiveFeedbackTests/Info.plist b/ReactiveFeedbackTests/Info.plist new file mode 100644 index 0000000..6c40a6c --- /dev/null +++ b/ReactiveFeedbackTests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/ReactiveFeedbackTests/ReactiveFeedbackTests.swift b/ReactiveFeedbackTests/ReactiveFeedbackTests.swift new file mode 100644 index 0000000..666d605 --- /dev/null +++ b/ReactiveFeedbackTests/ReactiveFeedbackTests.swift @@ -0,0 +1,8 @@ +import XCTest +import ReactiveSwift +import Result +import Nimble + +class ReactiveFeedbackTests: XCTestCase { + func testPlaceholder() {} +} diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..47183d7 --- /dev/null +++ b/circle.yml @@ -0,0 +1,19 @@ +machine: + xcode: + version: "9.0" + +dependencies: + cache_directories: + - "Carthage/" + - "~/.cocoapods" + +test: + pre: + - carthage bootstrap --no-build + override: + - script/test iphonesimulator "platform=iOS Simulator,name=iPhone 6s" ReactiveFeedback + - script/test macosx "arch=x86_64" ReactiveFeedback + - script/test appletvsimulator "platform=tvOS Simulator,name=Apple TV" ReactiveFeedback + - script/test iphonesimulator "platform=iOS Simulator,name=iPhone 6s" Example build + - pod lib lint + - carthage build --no-skip-current --cache-builds diff --git a/script/test b/script/test new file mode 100755 index 0000000..9638888 --- /dev/null +++ b/script/test @@ -0,0 +1,29 @@ +#!/bin/bash + +if [[ "$1" == "macosx" ]]; then + XCODE_ACTION="build" +fi + +if [[ "$1" == "iphonesimulator" || "$1" == "appletvsimulator" ]]; then + XCODE_ACTION="build-for-testing test-without-building" +fi + +if [[ -n "$4" ]]; then + XCODE_ACTION="$4" +fi + +set -o pipefail +xcodebuild $XCODE_ACTION \ + -workspace ReactiveFeedback.xcworkspace \ + -scheme "$3" \ + -sdk "$1" \ + -destination "$2" \ + -configuration Release \ + ENABLE_TESTABILITY=YES \ + GCC_GENERATE_DEBUGGING_SYMBOLS=NO \ + RUN_CLANG_STATIC_ANALYZER=NO | bundle exec xcpretty +result=$? + +if [ "$result" -ne 0 ]; then + exit $result +fi