Use version from package.json in podspec (#374)

This commit is contained in:
Jakob Krigovsky 2020-07-15 11:24:23 +02:00 committed by GitHub
parent d91f6dcd03
commit 79f338b513
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,10 @@
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
Pod::Spec.new do |s|
s.name = "react-native-blur"
s.version = "0.8.0"
s.version = package["version"]
s.source_files = "ios/*.{h,m}"
s.ios.deployment_target = '8.0'
s.tvos.deployment_target = '9.0'