From d08eda4dad3a400093dd2df5b8878c13d31d0769 Mon Sep 17 00:00:00 2001 From: skychx Date: Sat, 8 Aug 2020 14:37:01 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E6=94=B9=20podspec=20?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RCTWeChat.podspec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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}