Skip to content

Commit 4c565a7

Browse files
committed
parse more fields from package.json
1 parent ccc4ce1 commit 4c565a7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

RNImageRotate.podspec

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
require 'json'
2-
version = JSON.parse(File.read('package.json'))["version"]
2+
3+
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
34

45
Pod::Spec.new do |s|
56

67
s.name = "RNImageRotate"
7-
s.version = version
8+
s.version = package['version']
9+
s.summary = package['description']
10+
s.description = package['description']
811
s.homepage = "https://github.com/dgladkov/react-native-image-rotate"
9-
s.summary = "Rotate images from your react-native JavaScript code"
10-
s.license = "MIT"
12+
s.license = package['license']
1113
s.author = { "Dmitry Gladkov" => "[email protected]" }
1214
s.platform = :ios, "7.0"
1315
s.source = { :git => "https://github.com/dgladkov/react-native-image-rotate.git", :tag => s.version.to_s }

0 commit comments

Comments
 (0)