react-native-webview/react-native-webview.podspec
Bae Hyeonseung 59b513b754 fix(package.json): Add license to podspec and update package.json version dynamically. (#98)
Fix cocoapods install error and warning.
```
Fetching podspec for `react-native-webview` from `../node_modules/react-native-webview`
[!] The `react-native-webview` pod failed to validate due to 1 error:
    - WARN  | attributes: Missing required attribute `license`.
    - ERROR | version: The version of the spec should be higher than 0.
    - WARN  | license: Missing license type.
    - WARN  | source: Git sources should specify a tag.
```
2018-10-18 11:08:49 +02:00

20 lines
533 B
Ruby

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.license = package['license']
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