From fa393a7ec24c3791617cb8792da240ad0aefed8f Mon Sep 17 00:00:00 2001 From: Joel Arvidsson Date: Thu, 29 Oct 2015 11:38:50 -0400 Subject: [PATCH] Adds possibility to integrate using cocoapods. --- README.md | 14 ++++++++++++-- RNKeychain.podspec | 15 +++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 RNKeychain.podspec diff --git a/README.md b/README.md index bc472bc..dde640b 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,24 @@ # react-native-keychain Keychain Access for React Native -Currently functionality is limited to just storing internet and generic passwords. Wider exposure of the underlying API coming. +Currently functionality is limited to just storing internet and generic passwords. ## Installation -* `$ npm install react-native-keychain` +`$ npm install react-native-keychain` + +### Option: Manually + * Right click on Libraries, select **Add files to "…"** and select `node_modules/react-native-keychain/RNKeychain.xcodeproj` * Select your project and under **Build Phases** -> **Link Binary With Libraries**, press the + and select `libRNKeychain.a`. +### Option: With [CocoaPods](https://cocoapods.org/) + +Add the following to your `Podfile` and run `pod update`: + +``` +pod 'RNKeychain', :path => 'node_modules/react-native-keychain' +``` ## Usage diff --git a/RNKeychain.podspec b/RNKeychain.podspec new file mode 100644 index 0000000..29c6970 --- /dev/null +++ b/RNKeychain.podspec @@ -0,0 +1,15 @@ +Pod::Spec.new do |s| + + s.name = "RNKeychain" + s.version = "0.2.5" + s.summary = "Keychain Access for React Native." + s.homepage = "https://github.com/oblador/react-native-keychain" + s.license = "MIT" + s.author = { "Joel Arvidsson" => "joel@oblador.se" } + s.platform = :ios, "7.0" + s.source = { :git => "https://github.com/oblador/react-native-keychain.git", :tag => "v#{s.version}" } + s.source_files = 'RNKeychainManager/**/*.{h,m}' + s.preserve_paths = "**/*.js" + s.dependency 'React' + +end