Skip to content

Commit

Permalink
add podspec file
Browse files Browse the repository at this point in the history
  • Loading branch information
futuun committed Jul 18, 2018
1 parent de45479 commit 6a45ff7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ Install `react-native-sensitive-info` using:

#### iOS

If you are using Cocoapods add the following line to your Podfile:
```ruby
pod 'react-native-sensitive-info', path: "../node_modules/react-native-sensitive-info"
```

otherwise follow those steps:

In XCode, in the project navigator:

* Right click Libraries
Expand Down
17 changes: 17 additions & 0 deletions react-native-sensitive-info.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require 'json'

package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Pod::Spec.new do |s|
s.name = package['name']
s.version = package['version']
s.source_files = 'ios/**/*.{h,m}'
s.platform = :ios, "9.1"
s.author = package['author']
s.license = package['license']
s.summary = package['description']
s.homepage = 'https://github.com/mCodex/react-native-sensitive-info'
s.source = { :git => 'https://github.com/mCodex/react-native-sensitive-info.git' }

s.dependency "React"
end

0 comments on commit 6a45ff7

Please sign in to comment.