diff --git a/RCTWeChat.podspec b/RCTWeChat.podspec index 8b733ba..71b8983 100644 --- a/RCTWeChat.podspec +++ b/RCTWeChat.podspec @@ -6,6 +6,9 @@ # 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 = package['version'] diff --git a/package.json b/package.json index a1e637e..e8ec076 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-wechat-lib", - "version": "1.1.22-notpay", + "version": "1.1.23-notpay", "description": "react-native library for wechat app. 支持分享和拉起小程序。", "main": "index.js", "scripts": {