Merge pull request #1 from Titozzz/master

Add support for cocoapods
This commit is contained in:
Jamon Holmgren 2018-09-09 15:57:27 -07:00 committed by GitHub
commit 14b2f8a3a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 1 deletions

View File

@ -4,6 +4,7 @@
"main": "index.js",
"author": "Jamon Holmgren <jamon@infinite.red>",
"version": "0.1.0",
"homepage": "https://github.com/react-native-community/react-native-webview#readme",
"peerDependencies": {
"react": "^16.0",
"react-native": "^0.56"
@ -12,4 +13,4 @@
"escape-string-regexp": "^1.0.5",
"fbjs": "^0.8.17"
}
}
}

View File

@ -0,0 +1,18 @@
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.summary = package['description']
s.authors = package['author']
s.homepage = package['homepage']
s.platform = :ios, "9.0"
s.source = { :git => "https://github.com/react-native-community/react-native-webview.git" }
s.source_files = "ios/**/*.{h,m}"
s.dependency 'React'
end