mirror of
https://github.com/status-im/react-native-webview.git
synced 2025-02-22 16:58:34 +00:00
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. ```
20 lines
533 B
Ruby
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
|