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.
```
This commit is contained in:
Bae Hyeonseung
2018-10-18 11:08:49 +02:00
committed by Thibault Malbranche
parent 3c4f78df2e
commit 59b513b754
3 changed files with 17 additions and 1 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ 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']
@@ -15,4 +16,4 @@ Pod::Spec.new do |s|
s.source_files = "ios/**/*.{h,m}"
s.dependency 'React'
end
end