diff --git a/RCTWeChat.podspec b/RCTWeChat.podspec index 5dea541..cef0aab 100644 --- a/RCTWeChat.podspec +++ b/RCTWeChat.podspec @@ -5,10 +5,13 @@ # To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html # To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ # +require 'json' + +package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) Pod::Spec.new do |s| s.name = "RCTWeChat" - s.version = "1.9.12" + s.version = package['version'] s.summary = "React-Native(iOS/Android) functionalities include WeChat Login, Share, Favorite and Payment {QQ: 336021910}" s.description = <<-DESC React-Native(iOS/Android) functionalities include WeChat Login, Share, Favorite and Payment {QQ: 336021910}