Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To setup project using pod file podspec file added #281

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions react-native-webview-bridge.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
equire 'json'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a typo and it should be require?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, rewrote this as a Github Suggestion for easier application!

Suggested change
equire 'json'
require 'json'

version = JSON.parse(File.read('package.json'))["version"]

Pod::Spec.new do |s|

s.name = "react-native-webview-bridge"
s.version = version
s.homepage = "https://github.com/alinz/react-native-webview-bridge"
s.summary = "A webview bridge for react-native"
s.license = "MIT"
s.author = { "alinz" => "[email protected]" }
s.ios.deployment_target = '7.0'
s.tvos.deployment_target = '9.0'
s.source = { :git => "https://github.com/alinz/react-native-webview-bridge", :tag => "#{s.version}" }
s.source_files = 'ios/*.{h,m}'
s.preserve_paths = "**/*.js"
s.frameworks = 'UIKit', 'QuartzCore', 'Foundation'

s.dependency 'React'

end