Adds possibility to integrate using cocoapods.
This commit is contained in:
parent
5281903643
commit
fa393a7ec2
14
README.md
14
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
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue