From e264a9e6c2fc8c3db7ed16ac1112db1715dc90d6 Mon Sep 17 00:00:00 2001 From: Nathan Kot Date: Wed, 5 Aug 2015 15:51:10 +0900 Subject: [PATCH] Add podspec + other doc changes --- LICENSE | 21 +++++++++++++++++++++ NKMultipeer.podspec | 21 +++++++++++++++++++++ Podfile | 4 ++-- Podfile.lock | 2 +- README.md | 31 +++++++------------------------ 5 files changed, 52 insertions(+), 27 deletions(-) create mode 100644 LICENSE create mode 100644 NKMultipeer.podspec diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..417ca6f --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2015 Nathan Kot + +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/NKMultipeer.podspec b/NKMultipeer.podspec new file mode 100644 index 0000000..d822a31 --- /dev/null +++ b/NKMultipeer.podspec @@ -0,0 +1,21 @@ + +Pod::Spec.new do |s| + s.name = "NKMultipeer" + s.version = "0.1.0" + s.summary = "Testable p2p abstraction using the adapter pattern. Comes with MultipeerConnectivity support." + s.homepage = "https://github.com/nathankot/NKMultipeer" + s.license = 'MIT' + s.author = { "Nathan Kot" => "nk@nathankot.com" } + s.source = { :git => "https://github.com/nathankot/NKMultipeer.git", :tag => s.version.to_s } + + s.platform = :ios + s.ios.deployment_target = "8.0" + s.requires_arc = true + + s.source_files = 'NKMultipeer/**/*' + s.resource_bundles = {} + + # s.public_header_files = 'Pod/Classes/**/*.h' + s.frameworks = 'MultipeerConnectivity' + s.dependency 'RxSwift', '~> 1.8' +end diff --git a/Podfile b/Podfile index fc65e0d..3869eed 100644 --- a/Podfile +++ b/Podfile @@ -4,11 +4,11 @@ use_frameworks! target 'NKMultipeer' do - pod "RxSwift" + pod "RxSwift", "~> 1.8" end target 'NKMultipeerTests' do pod "Quick", "~> 0.3.1" pod "Nimble", "~> 1.0.0" - pod "RxSwift" + pod "RxSwift", "~> 1.8" end diff --git a/Podfile.lock b/Podfile.lock index 1b5f940..fd86d00 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -6,7 +6,7 @@ PODS: DEPENDENCIES: - Nimble (~> 1.0.0) - Quick (~> 0.3.1) - - RxSwift + - RxSwift (~> 1.8) SPEC CHECKSUMS: Nimble: 8bee528e5fcc403653076545db562d2b5db7bb87 diff --git a/README.md b/README.md index 7f135fa..c260b53 100644 --- a/README.md +++ b/README.md @@ -10,32 +10,15 @@ your own adapters for different protocols. Please note that NKMultipeer makes heavy use of [RxSwift](https://github.com/kzaher/RxSwift) which you should read up on if unfamiliar with Rx* libraries. +## Installation + +``` +use_frameworks! +pod "NKMultipeer" +``` + ## Example code ### @TODO : Testing ### @TODO : Usage - -## License - -The MIT License (MIT) - -Copyright (c) 2015 Nathan Kot - -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.